@productbrain/mcp 0.0.1-beta.16 → 0.0.1-beta.16007
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/.env.mcp.example +5 -1
- package/README.md +67 -0
- package/dist/chunk-ERVVKGIY.js +12748 -0
- package/dist/chunk-ERVVKGIY.js.map +1 -0
- package/dist/chunk-TLR7A2WH.js +2048 -0
- package/dist/chunk-TLR7A2WH.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +548 -264
- package/dist/http.js.map +1 -1
- package/dist/index.js +51 -47
- package/dist/index.js.map +1 -1
- package/dist/setup-KM6C74M2.js +205 -0
- package/dist/setup-KM6C74M2.js.map +1 -0
- package/dist/views/src/entry-cards/index.html +245 -0
- package/dist/views/src/graph-constellation/index.html +272 -0
- package/package.json +15 -9
- package/dist/chunk-47LO6K2R.js +0 -1423
- package/dist/chunk-47LO6K2R.js.map +0 -1
- package/dist/chunk-5V4JXM4G.js +0 -4552
- package/dist/chunk-5V4JXM4G.js.map +0 -1
- package/dist/chunk-XBMI6QHR.js +0 -100
- package/dist/chunk-XBMI6QHR.js.map +0 -1
- package/dist/setup-GZ5OZ5OP.js +0 -365
- package/dist/setup-GZ5OZ5OP.js.map +0 -1
- package/dist/smart-capture-4DNBNMRG.js +0 -14
- package/dist/smart-capture-4DNBNMRG.js.map +0 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Graph Constellation</title>
|
|
7
|
+
<style>
|
|
8
|
+
* { box-sizing: border-box; }
|
|
9
|
+
body { margin: 0; padding: 0; font-family: system-ui, sans-serif; font-size: 13px; }
|
|
10
|
+
#graph { width: 100%; height: 100vh; min-height: 320px; }
|
|
11
|
+
.view-title { position: absolute; top: 8px; left: 12px; font-weight: 600; color: #333; z-index: 1; }
|
|
12
|
+
.empty { display: flex; align-items: center; justify-content: center; height: 100vh; color: #888; }
|
|
13
|
+
</style>
|
|
14
|
+
<script type="module" crossorigin>var hz=Object.defineProperty;var vz=(e,n,r)=>n in e?hz(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var je=(e,n,r)=>vz(e,typeof n!="symbol"?n+"":n,r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Vl="http://www.w3.org/1999/xhtml";const Uh={svg:"http://www.w3.org/2000/svg",xhtml:Vl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xs(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Uh.hasOwnProperty(n)?{space:Uh[n],local:e}:e}function gz(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Vl&&n.documentElement.namespaceURI===Vl?n.createElement(e):n.createElementNS(r,e)}}function bz(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ib(e){var n=xs(e);return(n.local?bz:gz)(n)}function _z(){}function Uc(e){return e==null?_z:function(){return this.querySelector(e)}}function yz(e){typeof e!="function"&&(e=Uc(e));for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i)for(var o=n[i],s=o.length,u=a[i]=new Array(s),l,c,d=0;d<s;++d)(l=o[d])&&(c=e.call(l,l.__data__,d,o))&&("__data__"in l&&(c.__data__=l.__data__),u[d]=c);return new vt(a,this._parents)}function $z(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kz(){return[]}function rb(e){return e==null?kz:function(){return this.querySelectorAll(e)}}function wz(e){return function(){return $z(e.apply(this,arguments))}}function xz(e){typeof e=="function"?e=wz(e):e=rb(e);for(var n=this._groups,r=n.length,a=[],i=[],o=0;o<r;++o)for(var s=n[o],u=s.length,l,c=0;c<u;++c)(l=s[c])&&(a.push(e.call(l,l.__data__,c,s)),i.push(l));return new vt(a,i)}function ab(e){return function(){return this.matches(e)}}function ob(e){return function(n){return n.matches(e)}}var Iz=Array.prototype.find;function Sz(e){return function(){return Iz.call(this.children,e)}}function zz(){return this.firstElementChild}function Oz(e){return this.select(e==null?zz:Sz(typeof e=="function"?e:ob(e)))}var Pz=Array.prototype.filter;function Uz(){return Array.from(this.children)}function Nz(e){return function(){return Pz.call(this.children,e)}}function jz(e){return this.selectAll(e==null?Uz:Nz(typeof e=="function"?e:ob(e)))}function Tz(e){typeof e!="function"&&(e=ab(e));for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i)for(var o=n[i],s=o.length,u=a[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&u.push(l);return new vt(a,this._parents)}function sb(e){return new Array(e.length)}function Ez(){return new vt(this._enter||this._groups.map(sb),this._parents)}function Ao(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}Ao.prototype={constructor:Ao,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Zz(e){return function(){return e}}function Dz(e,n,r,a,i,o){for(var s=0,u,l=n.length,c=o.length;s<c;++s)(u=n[s])?(u.__data__=o[s],a[s]=u):r[s]=new Ao(e,o[s]);for(;s<l;++s)(u=n[s])&&(i[s]=u)}function Az(e,n,r,a,i,o,s){var u,l,c=new Map,d=n.length,f=o.length,m=new Array(d),p;for(u=0;u<d;++u)(l=n[u])&&(m[u]=p=s.call(l,l.__data__,u,n)+"",c.has(p)?i[u]=l:c.set(p,l));for(u=0;u<f;++u)p=s.call(e,o[u],u,o)+"",(l=c.get(p))?(a[u]=l,l.__data__=o[u],c.delete(p)):r[u]=new Ao(e,o[u]);for(u=0;u<d;++u)(l=n[u])&&c.get(m[u])===l&&(i[u]=l)}function Cz(e){return e.__data__}function Rz(e,n){if(!arguments.length)return Array.from(this,Cz);var r=n?Az:Dz,a=this._parents,i=this._groups;typeof e!="function"&&(e=Zz(e));for(var o=i.length,s=new Array(o),u=new Array(o),l=new Array(o),c=0;c<o;++c){var d=a[c],f=i[c],m=f.length,p=Mz(e.call(d,d&&d.__data__,c,a)),h=p.length,g=u[c]=new Array(h),b=s[c]=new Array(h),v=l[c]=new Array(m);r(d,f,g,b,v,p,n);for(var $=0,S=0,k,w;$<h;++$)if(k=g[$]){for($>=S&&(S=$+1);!(w=b[S])&&++S<h;);k._next=w||null}}return s=new vt(s,a),s._enter=u,s._exit=l,s}function Mz(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Lz(){return new vt(this._exit||this._groups.map(sb),this._parents)}function Fz(e,n,r){var a=this.enter(),i=this,o=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),n!=null&&(i=n(i),i&&(i=i.selection())),r==null?o.remove():r(o),a&&i?a.merge(i).order():i}function Jz(e){for(var n=e.selection?e.selection():e,r=this._groups,a=n._groups,i=r.length,o=a.length,s=Math.min(i,o),u=new Array(i),l=0;l<s;++l)for(var c=r[l],d=a[l],f=c.length,m=u[l]=new Array(f),p,h=0;h<f;++h)(p=c[h]||d[h])&&(m[h]=p);for(;l<i;++l)u[l]=r[l];return new vt(u,this._parents)}function qz(){for(var e=this._groups,n=-1,r=e.length;++n<r;)for(var a=e[n],i=a.length-1,o=a[i],s;--i>=0;)(s=a[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Vz(e){e||(e=Wz);function n(f,m){return f&&m?e(f.__data__,m.__data__):!f-!m}for(var r=this._groups,a=r.length,i=new Array(a),o=0;o<a;++o){for(var s=r[o],u=s.length,l=i[o]=new Array(u),c,d=0;d<u;++d)(c=s[d])&&(l[d]=c);l.sort(n)}return new vt(i,this._parents).order()}function Wz(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function Hz(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Gz(){return Array.from(this)}function Bz(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a=e[n],i=0,o=a.length;i<o;++i){var s=a[i];if(s)return s}return null}function Kz(){let e=0;for(const n of this)++e;return e}function Xz(){return!this.node()}function Yz(e){for(var n=this._groups,r=0,a=n.length;r<a;++r)for(var i=n[r],o=0,s=i.length,u;o<s;++o)(u=i[o])&&e.call(u,u.__data__,o,i);return this}function Qz(e){return function(){this.removeAttribute(e)}}function eO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tO(e,n){return function(){this.setAttribute(e,n)}}function nO(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function iO(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function rO(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function aO(e,n){var r=xs(e);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((n==null?r.local?eO:Qz:typeof n=="function"?r.local?rO:iO:r.local?nO:tO)(r,n))}function ub(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function oO(e){return function(){this.style.removeProperty(e)}}function sO(e,n,r){return function(){this.style.setProperty(e,n,r)}}function uO(e,n,r){return function(){var a=n.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,r)}}function lO(e,n,r){return arguments.length>1?this.each((n==null?oO:typeof n=="function"?uO:sO)(e,n,r??"")):Ui(this.node(),e)}function Ui(e,n){return e.style.getPropertyValue(n)||ub(e).getComputedStyle(e,null).getPropertyValue(n)}function cO(e){return function(){delete this[e]}}function dO(e,n){return function(){this[e]=n}}function fO(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function mO(e,n){return arguments.length>1?this.each((n==null?cO:typeof n=="function"?fO:dO)(e,n)):this.node()[e]}function lb(e){return e.trim().split(/^|\s+/)}function Nc(e){return e.classList||new cb(e)}function cb(e){this._node=e,this._names=lb(e.getAttribute("class")||"")}cb.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function db(e,n){for(var r=Nc(e),a=-1,i=n.length;++a<i;)r.add(n[a])}function fb(e,n){for(var r=Nc(e),a=-1,i=n.length;++a<i;)r.remove(n[a])}function pO(e){return function(){db(this,e)}}function hO(e){return function(){fb(this,e)}}function vO(e,n){return function(){(n.apply(this,arguments)?db:fb)(this,e)}}function gO(e,n){var r=lb(e+"");if(arguments.length<2){for(var a=Nc(this.node()),i=-1,o=r.length;++i<o;)if(!a.contains(r[i]))return!1;return!0}return this.each((typeof n=="function"?vO:n?pO:hO)(r,n))}function bO(){this.textContent=""}function _O(e){return function(){this.textContent=e}}function yO(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function $O(e){return arguments.length?this.each(e==null?bO:(typeof e=="function"?yO:_O)(e)):this.node().textContent}function kO(){this.innerHTML=""}function wO(e){return function(){this.innerHTML=e}}function xO(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function IO(e){return arguments.length?this.each(e==null?kO:(typeof e=="function"?xO:wO)(e)):this.node().innerHTML}function SO(){this.nextSibling&&this.parentNode.appendChild(this)}function zO(){return this.each(SO)}function OO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function PO(){return this.each(OO)}function UO(e){var n=typeof e=="function"?e:ib(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function NO(){return null}function jO(e,n){var r=typeof e=="function"?e:ib(e),a=n==null?NO:typeof n=="function"?n:Uc(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function TO(){var e=this.parentNode;e&&e.removeChild(this)}function EO(){return this.each(TO)}function ZO(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function DO(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function AO(e){return this.select(e?DO:ZO)}function CO(e){return arguments.length?this.property("__data__",e):this.node().__data__}function RO(e){return function(n){e.call(this,n,this.__data__)}}function MO(e){return e.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");return a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),{type:n,name:r}})}function LO(e){return function(){var n=this.__on;if(n){for(var r=0,a=-1,i=n.length,o;r<i;++r)o=n[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):n[++a]=o;++a?n.length=a:delete this.__on}}}function FO(e,n,r){return function(){var a=this.__on,i,o=RO(n);if(a){for(var s=0,u=a.length;s<u;++s)if((i=a[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=r),i.value=n;return}}this.addEventListener(e.type,o,r),i={type:e.type,name:e.name,value:n,listener:o,options:r},a?a.push(i):this.__on=[i]}}function JO(e,n,r){var a=MO(e+""),i,o=a.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,c=u.length,d;l<c;++l)for(i=0,d=u[l];i<o;++i)if((s=a[i]).type===d.type&&s.name===d.name)return d.value}return}for(u=n?FO:LO,i=0;i<o;++i)this.each(u(a[i],n,r));return this}function mb(e,n,r){var a=ub(e),i=a.CustomEvent;typeof i=="function"?i=new i(n,r):(i=a.document.createEvent("Event"),r?(i.initEvent(n,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(n,!1,!1)),e.dispatchEvent(i)}function qO(e,n){return function(){return mb(this,e,n)}}function VO(e,n){return function(){return mb(this,e,n.apply(this,arguments))}}function WO(e,n){return this.each((typeof n=="function"?VO:qO)(e,n))}function*HO(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a=e[n],i=0,o=a.length,s;i<o;++i)(s=a[i])&&(yield s)}var pb=[null];function vt(e,n){this._groups=e,this._parents=n}function na(){return new vt([[document.documentElement]],pb)}function GO(){return this}vt.prototype=na.prototype={constructor:vt,select:yz,selectAll:xz,selectChild:Oz,selectChildren:jz,filter:Tz,data:Rz,enter:Ez,exit:Lz,join:Fz,merge:Jz,selection:GO,order:qz,sort:Vz,call:Hz,nodes:Gz,node:Bz,size:Kz,empty:Xz,each:Yz,attr:aO,style:lO,property:mO,classed:gO,text:$O,html:IO,raise:zO,lower:PO,append:UO,insert:jO,remove:EO,clone:AO,datum:CO,on:JO,dispatch:WO,[Symbol.iterator]:HO};function It(e){return typeof e=="string"?new vt([[document.querySelector(e)]],[document.documentElement]):new vt([[e]],pb)}function BO(e){let n;for(;n=e.sourceEvent;)e=n;return e}function Bt(e,n){if(e=BO(e),n===void 0&&(n=e.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(n.getScreenCTM().inverse()),[a.x,a.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[e.clientX-i.left-n.clientLeft,e.clientY-i.top-n.clientTop]}}return[e.pageX,e.pageY]}var KO={value:()=>{}};function ia(){for(var e=0,n=arguments.length,r={},a;e<n;++e){if(!(a=arguments[e]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new zo(r)}function zo(e){this._=e}function XO(e,n){return e.trim().split(/^|\s+/).map(function(r){var a="",i=r.indexOf(".");if(i>=0&&(a=r.slice(i+1),r=r.slice(0,i)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}zo.prototype=ia.prototype={constructor:zo,on:function(e,n){var r=this._,a=XO(e+"",r),i,o=-1,s=a.length;if(arguments.length<2){for(;++o<s;)if((i=(e=a[o]).type)&&(i=YO(r[i],e.name)))return i;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++o<s;)if(i=(e=a[o]).type)r[i]=Nh(r[i],e.name,n);else if(n==null)for(i in r)r[i]=Nh(r[i],e.name,null);return this},copy:function(){var e={},n=this._;for(var r in n)e[r]=n[r].slice();return new zo(e)},call:function(e,n){if((i=arguments.length-2)>0)for(var r=new Array(i),a=0,i,o;a<i;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],a=0,i=o.length;a<i;++a)o[a].value.apply(n,r)},apply:function(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(n,r)}};function YO(e,n){for(var r=0,a=e.length,i;r<a;++r)if((i=e[r]).name===n)return i.value}function Nh(e,n,r){for(var a=0,i=e.length;a<i;++a)if(e[a].name===n){e[a]=KO,e=e.slice(0,a).concat(e.slice(a+1));break}return r!=null&&e.push({name:n,value:r}),e}const QO={passive:!1},Zr={capture:!0,passive:!1};function xl(e){e.stopImmediatePropagation()}function Si(e){e.preventDefault(),e.stopImmediatePropagation()}function hb(e){var n=e.document.documentElement,r=It(e).on("dragstart.drag",Si,Zr);"onselectstart"in n?r.on("selectstart.drag",Si,Zr):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function vb(e,n){var r=e.document.documentElement,a=It(e).on("dragstart.drag",null);n&&(a.on("click.drag",Si,Zr),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}var ao=e=>()=>e;function Wl(e,{sourceEvent:n,subject:r,target:a,identifier:i,active:o,x:s,y:u,dx:l,dy:c,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}Wl.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function eP(e){return!e.ctrlKey&&!e.button}function tP(){return this.parentNode}function nP(e,n){return n??{x:e.x,y:e.y}}function iP(){return navigator.maxTouchPoints||"ontouchstart"in this}function rP(){var e=eP,n=tP,r=nP,a=iP,i={},o=ia("start","drag","end"),s=0,u,l,c,d,f=0;function m(k){k.on("mousedown.drag",p).filter(a).on("touchstart.drag",b).on("touchmove.drag",v,QO).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(k,w){if(!(d||!e.call(this,k,w))){var I=S(this,n.call(this,k,w),k,w,"mouse");I&&(It(k.view).on("mousemove.drag",h,Zr).on("mouseup.drag",g,Zr),hb(k.view),xl(k),c=!1,u=k.clientX,l=k.clientY,I("start",k))}}function h(k){if(Si(k),!c){var w=k.clientX-u,I=k.clientY-l;c=w*w+I*I>f}i.mouse("drag",k)}function g(k){It(k.view).on("mousemove.drag mouseup.drag",null),vb(k.view,c),Si(k),i.mouse("end",k)}function b(k,w){if(e.call(this,k,w)){var I=k.changedTouches,x=n.call(this,k,w),P=I.length,Z,E;for(Z=0;Z<P;++Z)(E=S(this,x,k,w,I[Z].identifier,I[Z]))&&(xl(k),E("start",k,I[Z]))}}function v(k){var w=k.changedTouches,I=w.length,x,P;for(x=0;x<I;++x)(P=i[w[x].identifier])&&(Si(k),P("drag",k,w[x]))}function $(k){var w=k.changedTouches,I=w.length,x,P;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),x=0;x<I;++x)(P=i[w[x].identifier])&&(xl(k),P("end",k,w[x]))}function S(k,w,I,x,P,Z){var E=o.copy(),F=Bt(Z||I,w),W,Q,U;if((U=r.call(k,new Wl("beforestart",{sourceEvent:I,target:m,identifier:P,active:s,x:F[0],y:F[1],dx:0,dy:0,dispatch:E}),x))!=null)return W=U.x-F[0]||0,Q=U.y-F[1]||0,function L(T,H,ne){var ie=F,oe;switch(T){case"start":i[P]=L,oe=s++;break;case"end":delete i[P],--s;case"drag":F=Bt(ne||H,w),oe=s;break}E.call(T,k,new Wl(T,{sourceEvent:H,subject:U,target:m,identifier:P,active:oe,x:F[0]+W,y:F[1]+Q,dx:F[0]-ie[0],dy:F[1]-ie[1],dispatch:E}),x)}}return m.filter=function(k){return arguments.length?(e=typeof k=="function"?k:ao(!!k),m):e},m.container=function(k){return arguments.length?(n=typeof k=="function"?k:ao(k),m):n},m.subject=function(k){return arguments.length?(r=typeof k=="function"?k:ao(k),m):r},m.touchable=function(k){return arguments.length?(a=typeof k=="function"?k:ao(!!k),m):a},m.on=function(){var k=o.on.apply(o,arguments);return k===o?m:k},m.clickDistance=function(k){return arguments.length?(f=(k=+k)*k,m):Math.sqrt(f)},m}function er(e,n,r){e.prototype=n.prototype=r,r.constructor=e}function ra(e,n){var r=Object.create(e.prototype);for(var a in n)r[a]=n[a];return r}function Jn(){}var ai=.7,Ni=1/ai,zi="\\s*([+-]?\\d+)\\s*",Dr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aP=/^#([0-9a-f]{3,8})$/,oP=new RegExp(`^rgb\\(${zi},${zi},${zi}\\)$`),sP=new RegExp(`^rgb\\(${Qt},${Qt},${Qt}\\)$`),uP=new RegExp(`^rgba\\(${zi},${zi},${zi},${Dr}\\)$`),lP=new RegExp(`^rgba\\(${Qt},${Qt},${Qt},${Dr}\\)$`),cP=new RegExp(`^hsl\\(${Dr},${Qt},${Qt}\\)$`),dP=new RegExp(`^hsla\\(${Dr},${Qt},${Qt},${Dr}\\)$`),jh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};er(Jn,Ar,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Th,formatHex:Th,formatHex8:fP,formatHsl:mP,formatRgb:Eh,toString:Eh});function Th(){return this.rgb().formatHex()}function fP(){return this.rgb().formatHex8()}function mP(){return gb(this).formatHsl()}function Eh(){return this.rgb().formatRgb()}function Ar(e){var n,r;return e=(e+"").trim().toLowerCase(),(n=aP.exec(e))?(r=n[1].length,n=parseInt(n[1],16),r===6?Zh(n):r===3?new Ge(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?oo(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?oo(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=oP.exec(e))?new Ge(n[1],n[2],n[3],1):(n=sP.exec(e))?new Ge(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=uP.exec(e))?oo(n[1],n[2],n[3],n[4]):(n=lP.exec(e))?oo(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=cP.exec(e))?Ch(n[1],n[2]/100,n[3]/100,1):(n=dP.exec(e))?Ch(n[1],n[2]/100,n[3]/100,n[4]):jh.hasOwnProperty(e)?Zh(jh[e]):e==="transparent"?new Ge(NaN,NaN,NaN,0):null}function Zh(e){return new Ge(e>>16&255,e>>8&255,e&255,1)}function oo(e,n,r,a){return a<=0&&(e=n=r=NaN),new Ge(e,n,r,a)}function jc(e){return e instanceof Jn||(e=Ar(e)),e?(e=e.rgb(),new Ge(e.r,e.g,e.b,e.opacity)):new Ge}function Cr(e,n,r,a){return arguments.length===1?jc(e):new Ge(e,n,r,a??1)}function Ge(e,n,r,a){this.r=+e,this.g=+n,this.b=+r,this.opacity=+a}er(Ge,Cr,ra(Jn,{brighter(e){return e=e==null?Ni:Math.pow(Ni,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ai:Math.pow(ai,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ge(Qn(this.r),Qn(this.g),Qn(this.b),Co(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dh,formatHex:Dh,formatHex8:pP,formatRgb:Ah,toString:Ah}));function Dh(){return`#${Kn(this.r)}${Kn(this.g)}${Kn(this.b)}`}function pP(){return`#${Kn(this.r)}${Kn(this.g)}${Kn(this.b)}${Kn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ah(){const e=Co(this.opacity);return`${e===1?"rgb(":"rgba("}${Qn(this.r)}, ${Qn(this.g)}, ${Qn(this.b)}${e===1?")":`, ${e})`}`}function Co(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kn(e){return e=Qn(e),(e<16?"0":"")+e.toString(16)}function Ch(e,n,r,a){return a<=0?e=n=r=NaN:r<=0||r>=1?e=n=NaN:n<=0&&(e=NaN),new Lt(e,n,r,a)}function gb(e){if(e instanceof Lt)return new Lt(e.h,e.s,e.l,e.opacity);if(e instanceof Jn||(e=Ar(e)),!e)return new Lt;if(e instanceof Lt)return e;e=e.rgb();var n=e.r/255,r=e.g/255,a=e.b/255,i=Math.min(n,r,a),o=Math.max(n,r,a),s=NaN,u=o-i,l=(o+i)/2;return u?(n===o?s=(r-a)/u+(r<a)*6:r===o?s=(a-n)/u+2:s=(n-r)/u+4,u/=l<.5?o+i:2-o-i,s*=60):u=l>0&&l<1?0:s,new Lt(s,u,l,e.opacity)}function hP(e,n,r,a){return arguments.length===1?gb(e):new Lt(e,n,r,a??1)}function Lt(e,n,r,a){this.h=+e,this.s=+n,this.l=+r,this.opacity=+a}er(Lt,hP,ra(Jn,{brighter(e){return e=e==null?Ni:Math.pow(Ni,e),new Lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ai:Math.pow(ai,e),new Lt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*n,i=2*r-a;return new Ge(Il(e>=240?e-240:e+120,i,a),Il(e,i,a),Il(e<120?e+240:e-120,i,a),this.opacity)},clamp(){return new Lt(Rh(this.h),so(this.s),so(this.l),Co(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Co(this.opacity);return`${e===1?"hsl(":"hsla("}${Rh(this.h)}, ${so(this.s)*100}%, ${so(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Rh(e){return e=(e||0)%360,e<0?e+360:e}function so(e){return Math.max(0,Math.min(1,e||0))}function Il(e,n,r){return(e<60?n+(r-n)*e/60:e<180?r:e<240?n+(r-n)*(240-e)/60:n)*255}const bb=Math.PI/180,_b=180/Math.PI,Ro=18,yb=.96422,$b=1,kb=.82521,wb=4/29,Oi=6/29,xb=3*Oi*Oi,vP=Oi*Oi*Oi;function Ib(e){if(e instanceof en)return new en(e.l,e.a,e.b,e.opacity);if(e instanceof mn)return Sb(e);e instanceof Ge||(e=jc(e));var n=Pl(e.r),r=Pl(e.g),a=Pl(e.b),i=Sl((.2225045*n+.7168786*r+.0606169*a)/$b),o,s;return n===r&&r===a?o=s=i:(o=Sl((.4360747*n+.3850649*r+.1430804*a)/yb),s=Sl((.0139322*n+.0971045*r+.7141733*a)/kb)),new en(116*i-16,500*(o-i),200*(i-s),e.opacity)}function gP(e,n,r,a){return arguments.length===1?Ib(e):new en(e,n,r,a??1)}function en(e,n,r,a){this.l=+e,this.a=+n,this.b=+r,this.opacity=+a}er(en,gP,ra(Jn,{brighter(e){return new en(this.l+Ro*(e??1),this.a,this.b,this.opacity)},darker(e){return new en(this.l-Ro*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return n=yb*zl(n),e=$b*zl(e),r=kb*zl(r),new Ge(Ol(3.1338561*n-1.6168667*e-.4906146*r),Ol(-.9787684*n+1.9161415*e+.033454*r),Ol(.0719453*n-.2289914*e+1.4052427*r),this.opacity)}}));function Sl(e){return e>vP?Math.pow(e,1/3):e/xb+wb}function zl(e){return e>Oi?e*e*e:xb*(e-wb)}function Ol(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Pl(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function bP(e){if(e instanceof mn)return new mn(e.h,e.c,e.l,e.opacity);if(e instanceof en||(e=Ib(e)),e.a===0&&e.b===0)return new mn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var n=Math.atan2(e.b,e.a)*_b;return new mn(n<0?n+360:n,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function _P(e,n,r,a){return arguments.length===1?bP(e):new mn(e,n,r,a??1)}function mn(e,n,r,a){this.h=+e,this.c=+n,this.l=+r,this.opacity=+a}function Sb(e){if(isNaN(e.h))return new en(e.l,0,0,e.opacity);var n=e.h*bb;return new en(e.l,Math.cos(n)*e.c,Math.sin(n)*e.c,e.opacity)}er(mn,_P,ra(Jn,{brighter(e){return new mn(this.h,this.c,this.l+Ro*(e??1),this.opacity)},darker(e){return new mn(this.h,this.c,this.l-Ro*(e??1),this.opacity)},rgb(){return Sb(this).rgb()}}));var zb=-.14861,Tc=1.78277,Ec=-.29227,Is=-.90649,Rr=1.97294,Mh=Rr*Is,Lh=Rr*Tc,Fh=Tc*Ec-Is*zb;function yP(e){if(e instanceof ei)return new ei(e.h,e.s,e.l,e.opacity);e instanceof Ge||(e=jc(e));var n=e.r/255,r=e.g/255,a=e.b/255,i=(Fh*a+Mh*n-Lh*r)/(Fh+Mh-Lh),o=a-i,s=(Rr*(r-i)-Ec*o)/Is,u=Math.sqrt(s*s+o*o)/(Rr*i*(1-i)),l=u?Math.atan2(s,o)*_b-120:NaN;return new ei(l<0?l+360:l,u,i,e.opacity)}function tn(e,n,r,a){return arguments.length===1?yP(e):new ei(e,n,r,a??1)}function ei(e,n,r,a){this.h=+e,this.s=+n,this.l=+r,this.opacity=+a}er(ei,tn,ra(Jn,{brighter(e){return e=e==null?Ni:Math.pow(Ni,e),new ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ai:Math.pow(ai,e),new ei(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*bb,n=+this.l,r=isNaN(this.s)?0:this.s*n*(1-n),a=Math.cos(e),i=Math.sin(e);return new Ge(255*(n+r*(zb*a+Tc*i)),255*(n+r*(Ec*a+Is*i)),255*(n+r*(Rr*a)),this.opacity)}}));function $P(e,n,r,a,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*n+(4-6*o+3*s)*r+(1+3*e+3*o-3*s)*a+s*i)/6}function kP(e){var n=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,n-1):Math.floor(r*n),i=e[a],o=e[a+1],s=a>0?e[a-1]:2*i-o,u=a<n-1?e[a+2]:2*o-i;return $P((r-a/n)*n,s,i,o,u)}}var Zc=e=>()=>e;function Ob(e,n){return function(r){return e+r*n}}function wP(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(a){return Math.pow(e+a*n,r)}}function xP(e,n){var r=n-e;return r?Ob(e,r>180||r<-180?r-360*Math.round(r/360):r):Zc(isNaN(e)?n:e)}function IP(e){return(e=+e)==1?Pi:function(n,r){return r-n?wP(n,r,e):Zc(isNaN(n)?r:n)}}function Pi(e,n){var r=n-e;return r?Ob(e,r):Zc(isNaN(e)?n:e)}var Jh=(function e(n){var r=IP(n);function a(i,o){var s=r((i=Cr(i)).r,(o=Cr(o)).r),u=r(i.g,o.g),l=r(i.b,o.b),c=Pi(i.opacity,o.opacity);return function(d){return i.r=s(d),i.g=u(d),i.b=l(d),i.opacity=c(d),i+""}}return a.gamma=e,a})(1);function SP(e){return function(n){var r=n.length,a=new Array(r),i=new Array(r),o=new Array(r),s,u;for(s=0;s<r;++s)u=Cr(n[s]),a[s]=u.r||0,i[s]=u.g||0,o[s]=u.b||0;return a=e(a),i=e(i),o=e(o),u.opacity=1,function(l){return u.r=a(l),u.g=i(l),u.b=o(l),u+""}}}var zP=SP(kP);function jn(e,n){return e=+e,n=+n,function(r){return e*(1-r)+n*r}}var Hl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ul=new RegExp(Hl.source,"g");function OP(e){return function(){return e}}function PP(e){return function(n){return e(n)+""}}function UP(e,n){var r=Hl.lastIndex=Ul.lastIndex=0,a,i,o,s=-1,u=[],l=[];for(e=e+"",n=n+"";(a=Hl.exec(e))&&(i=Ul.exec(n));)(o=i.index)>r&&(o=n.slice(r,o),u[s]?u[s]+=o:u[++s]=o),(a=a[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,l.push({i:s,x:jn(a,i)})),r=Ul.lastIndex;return r<n.length&&(o=n.slice(r),u[s]?u[s]+=o:u[++s]=o),u.length<2?l[0]?PP(l[0].x):OP(n):(n=l.length,function(c){for(var d=0,f;d<n;++d)u[(f=l[d]).i]=f.x(c);return u.join("")})}var qh=180/Math.PI,Gl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Pb(e,n,r,a,i,o){var s,u,l;return(s=Math.sqrt(e*e+n*n))&&(e/=s,n/=s),(l=e*r+n*a)&&(r-=e*l,a-=n*l),(u=Math.sqrt(r*r+a*a))&&(r/=u,a/=u,l/=u),e*a<n*r&&(e=-e,n=-n,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(n,e)*qh,skewX:Math.atan(l)*qh,scaleX:s,scaleY:u}}var uo;function NP(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Gl:Pb(n.a,n.b,n.c,n.d,n.e,n.f)}function jP(e){return e==null||(uo||(uo=document.createElementNS("http://www.w3.org/2000/svg","g")),uo.setAttribute("transform",e),!(e=uo.transform.baseVal.consolidate()))?Gl:(e=e.matrix,Pb(e.a,e.b,e.c,e.d,e.e,e.f))}function Ub(e,n,r,a){function i(c){return c.length?c.pop()+" ":""}function o(c,d,f,m,p,h){if(c!==f||d!==m){var g=p.push("translate(",null,n,null,r);h.push({i:g-4,x:jn(c,f)},{i:g-2,x:jn(d,m)})}else(f||m)&&p.push("translate("+f+n+m+r)}function s(c,d,f,m){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),m.push({i:f.push(i(f)+"rotate(",null,a)-2,x:jn(c,d)})):d&&f.push(i(f)+"rotate("+d+a)}function u(c,d,f,m){c!==d?m.push({i:f.push(i(f)+"skewX(",null,a)-2,x:jn(c,d)}):d&&f.push(i(f)+"skewX("+d+a)}function l(c,d,f,m,p,h){if(c!==f||d!==m){var g=p.push(i(p)+"scale(",null,",",null,")");h.push({i:g-4,x:jn(c,f)},{i:g-2,x:jn(d,m)})}else(f!==1||m!==1)&&p.push(i(p)+"scale("+f+","+m+")")}return function(c,d){var f=[],m=[];return c=e(c),d=e(d),o(c.translateX,c.translateY,d.translateX,d.translateY,f,m),s(c.rotate,d.rotate,f,m),u(c.skewX,d.skewX,f,m),l(c.scaleX,c.scaleY,d.scaleX,d.scaleY,f,m),c=d=null,function(p){for(var h=-1,g=m.length,b;++h<g;)f[(b=m[h]).i]=b.x(p);return f.join("")}}}var TP=Ub(NP,"px, ","px)","deg)"),EP=Ub(jP,", ",")",")"),ZP=1e-12;function Vh(e){return((e=Math.exp(e))+1/e)/2}function DP(e){return((e=Math.exp(e))-1/e)/2}function AP(e){return((e=Math.exp(2*e))-1)/(e+1)}var CP=(function e(n,r,a){function i(o,s){var u=o[0],l=o[1],c=o[2],d=s[0],f=s[1],m=s[2],p=d-u,h=f-l,g=p*p+h*h,b,v;if(g<ZP)v=Math.log(m/c)/n,b=function(x){return[u+x*p,l+x*h,c*Math.exp(n*x*v)]};else{var $=Math.sqrt(g),S=(m*m-c*c+a*g)/(2*c*r*$),k=(m*m-c*c-a*g)/(2*m*r*$),w=Math.log(Math.sqrt(S*S+1)-S),I=Math.log(Math.sqrt(k*k+1)-k);v=(I-w)/n,b=function(x){var P=x*v,Z=Vh(w),E=c/(r*$)*(Z*AP(n*P+w)-DP(w));return[u+E*p,l+E*h,c*Z/Vh(n*P+w)]}}return b.duration=Math.abs(v)*1e3*n/Math.SQRT2,b}return i.rho=function(o){var s=Math.max(.001,+o),u=s*s,l=u*u;return e(s,u,l)},i})(Math.SQRT2,2,4);function Nb(e){return(function n(r){r=+r;function a(i,o){var s=e((i=tn(i)).h,(o=tn(o)).h),u=Pi(i.s,o.s),l=Pi(i.l,o.l),c=Pi(i.opacity,o.opacity);return function(d){return i.h=s(d),i.s=u(d),i.l=l(Math.pow(d,r)),i.opacity=c(d),i+""}}return a.gamma=n,a})(1)}Nb(xP);var Dc=Nb(Pi),ji=0,$r=0,lr=0,jb=1e3,Mo,kr,Lo=0,oi=0,Ss=0,Mr=typeof performance=="object"&&performance.now?performance:Date,Tb=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ac(){return oi||(Tb(RP),oi=Mr.now()+Ss)}function RP(){oi=0}function Fo(){this._call=this._time=this._next=null}Fo.prototype=Cc.prototype={constructor:Fo,restart:function(e,n,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Ac():+r)+(n==null?0:+n),!this._next&&kr!==this&&(kr?kr._next=this:Mo=this,kr=this),this._call=e,this._time=r,Bl()},stop:function(){this._call&&(this._call=null,this._time=1/0,Bl())}};function Cc(e,n,r){var a=new Fo;return a.restart(e,n,r),a}function MP(){Ac(),++ji;for(var e=Mo,n;e;)(n=oi-e._time)>=0&&e._call.call(void 0,n),e=e._next;--ji}function Wh(){oi=(Lo=Mr.now())+Ss,ji=$r=0;try{MP()}finally{ji=0,FP(),oi=0}}function LP(){var e=Mr.now(),n=e-Lo;n>jb&&(Ss-=n,Lo=e)}function FP(){for(var e,n=Mo,r,a=1/0;n;)n._call?(a>n._time&&(a=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:Mo=r);kr=e,Bl(a)}function Bl(e){if(!ji){$r&&($r=clearTimeout($r));var n=e-oi;n>24?(e<1/0&&($r=setTimeout(Wh,Math.ceil(e-Mr.now()-Ss)+1)),lr&&(lr=clearInterval(lr))):(lr||(Lo=Mr.now(),lr=setInterval(LP,jb)),ji=1,Tb(Wh))}}function Hh(e,n,r){var a=new Fo;return n=n==null?0:+n,a.restart(i=>{a.stop(),e(i+n)},n,r),a}function JP(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Rc=3;(function e(n){n=+n;function r(a){return Math.pow(a,n)}return r.exponent=e,r})(Rc);(function e(n){n=+n;function r(a){return 1-Math.pow(1-a,n)}return r.exponent=e,r})(Rc);(function e(n){n=+n;function r(a){return((a*=2)<=1?Math.pow(a,n):2-Math.pow(2-a,n))/2}return r.exponent=e,r})(Rc);function Jo(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}var Mc=1.70158;(function e(n){n=+n;function r(a){return(a=+a)*a*(n*(a-1)+a)}return r.overshoot=e,r})(Mc);(function e(n){n=+n;function r(a){return--a*a*((a+1)*n+a)+1}return r.overshoot=e,r})(Mc);(function e(n){n=+n;function r(a){return((a*=2)<1?a*a*((n+1)*a-n):(a-=2)*a*((n+1)*a+n)+2)/2}return r.overshoot=e,r})(Mc);var Ti=2*Math.PI,Lc=1,Fc=.3;(function e(n,r){var a=Math.asin(1/(n=Math.max(1,n)))*(r/=Ti);function i(o){return n*Jo(- --o)*Math.sin((a-o)/r)}return i.amplitude=function(o){return e(o,r*Ti)},i.period=function(o){return e(n,o)},i})(Lc,Fc);(function e(n,r){var a=Math.asin(1/(n=Math.max(1,n)))*(r/=Ti);function i(o){return 1-n*Jo(o=+o)*Math.sin((o+a)/r)}return i.amplitude=function(o){return e(o,r*Ti)},i.period=function(o){return e(n,o)},i})(Lc,Fc);(function e(n,r){var a=Math.asin(1/(n=Math.max(1,n)))*(r/=Ti);function i(o){return((o=o*2-1)<0?n*Jo(-o)*Math.sin((a-o)/r):2-n*Jo(o)*Math.sin((a+o)/r))/2}return i.amplitude=function(o){return e(o,r*Ti)},i.period=function(o){return e(n,o)},i})(Lc,Fc);var qP=ia("start","end","cancel","interrupt"),VP=[],Eb=0,Gh=1,Kl=2,Oo=3,Bh=4,Xl=5,Po=6;function zs(e,n,r,a,i,o){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;WP(e,r,{name:n,index:a,group:i,on:qP,tween:VP,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Eb})}function Jc(e,n){var r=Ht(e,n);if(r.state>Eb)throw new Error("too late; already scheduled");return r}function an(e,n){var r=Ht(e,n);if(r.state>Oo)throw new Error("too late; already running");return r}function Ht(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function WP(e,n,r){var a=e.__transition,i;a[n]=r,r.timer=Cc(o,0,r.time);function o(c){r.state=Gh,r.timer.restart(s,r.delay,r.time),r.delay<=c&&s(c-r.delay)}function s(c){var d,f,m,p;if(r.state!==Gh)return l();for(d in a)if(p=a[d],p.name===r.name){if(p.state===Oo)return Hh(s);p.state===Bh?(p.state=Po,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete a[d]):+d<n&&(p.state=Po,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete a[d])}if(Hh(function(){r.state===Oo&&(r.state=Bh,r.timer.restart(u,r.delay,r.time),u(c))}),r.state=Kl,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Kl){for(r.state=Oo,i=new Array(m=r.tween.length),d=0,f=-1;d<m;++d)(p=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function u(c){for(var d=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Xl,1),f=-1,m=i.length;++f<m;)i[f].call(e,d);r.state===Xl&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Po,r.timer.stop(),delete a[n];for(var c in a)return;delete e.__transition}}function Uo(e,n){var r=e.__transition,a,i,o=!0,s;if(r){n=n==null?null:n+"";for(s in r){if((a=r[s]).name!==n){o=!1;continue}i=a.state>Kl&&a.state<Xl,a.state=Po,a.timer.stop(),a.on.call(i?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete r[s]}o&&delete e.__transition}}function HP(e){return this.each(function(){Uo(this,e)})}function GP(e,n){var r,a;return function(){var i=an(this,e),o=i.tween;if(o!==r){a=r=o;for(var s=0,u=a.length;s<u;++s)if(a[s].name===n){a=a.slice(),a.splice(s,1);break}}i.tween=a}}function BP(e,n,r){var a,i;if(typeof r!="function")throw new Error;return function(){var o=an(this,e),s=o.tween;if(s!==a){i=(a=s).slice();for(var u={name:n,value:r},l=0,c=i.length;l<c;++l)if(i[l].name===n){i[l]=u;break}l===c&&i.push(u)}o.tween=i}}function KP(e,n){var r=this._id;if(e+="",arguments.length<2){for(var a=Ht(this.node(),r).tween,i=0,o=a.length,s;i<o;++i)if((s=a[i]).name===e)return s.value;return null}return this.each((n==null?GP:BP)(r,e,n))}function qc(e,n,r){var a=e._id;return e.each(function(){var i=an(this,a);(i.value||(i.value={}))[n]=r.apply(this,arguments)}),function(i){return Ht(i,a).value[n]}}function Zb(e,n){var r;return(typeof n=="number"?jn:n instanceof Ar?Jh:(r=Ar(n))?(n=r,Jh):UP)(e,n)}function XP(e){return function(){this.removeAttribute(e)}}function YP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function QP(e,n,r){var a,i=r+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===a?o:o=n(a=s,r)}}function eU(e,n,r){var a,i=r+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===a?o:o=n(a=s,r)}}function tU(e,n,r){var a,i,o;return function(){var s,u=r(this),l;return u==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=u+"",s===l?null:s===a&&l===i?o:(i=l,o=n(a=s,u)))}}function nU(e,n,r){var a,i,o;return function(){var s,u=r(this),l;return u==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=u+"",s===l?null:s===a&&l===i?o:(i=l,o=n(a=s,u)))}}function iU(e,n){var r=xs(e),a=r==="transform"?EP:Zb;return this.attrTween(e,typeof n=="function"?(r.local?nU:tU)(r,a,qc(this,"attr."+e,n)):n==null?(r.local?YP:XP)(r):(r.local?eU:QP)(r,a,n))}function rU(e,n){return function(r){this.setAttribute(e,n.call(this,r))}}function aU(e,n){return function(r){this.setAttributeNS(e.space,e.local,n.call(this,r))}}function oU(e,n){var r,a;function i(){var o=n.apply(this,arguments);return o!==a&&(r=(a=o)&&aU(e,o)),r}return i._value=n,i}function sU(e,n){var r,a;function i(){var o=n.apply(this,arguments);return o!==a&&(r=(a=o)&&rU(e,o)),r}return i._value=n,i}function uU(e,n){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var a=xs(e);return this.tween(r,(a.local?oU:sU)(a,n))}function lU(e,n){return function(){Jc(this,e).delay=+n.apply(this,arguments)}}function cU(e,n){return n=+n,function(){Jc(this,e).delay=n}}function dU(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?lU:cU)(n,e)):Ht(this.node(),n).delay}function fU(e,n){return function(){an(this,e).duration=+n.apply(this,arguments)}}function mU(e,n){return n=+n,function(){an(this,e).duration=n}}function pU(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?fU:mU)(n,e)):Ht(this.node(),n).duration}function hU(e,n){if(typeof n!="function")throw new Error;return function(){an(this,e).ease=n}}function vU(e){var n=this._id;return arguments.length?this.each(hU(n,e)):Ht(this.node(),n).ease}function gU(e,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;an(this,e).ease=r}}function bU(e){if(typeof e!="function")throw new Error;return this.each(gU(this._id,e))}function _U(e){typeof e!="function"&&(e=ab(e));for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i)for(var o=n[i],s=o.length,u=a[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&u.push(l);return new bn(a,this._parents,this._name,this._id)}function yU(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,r=e._groups,a=n.length,i=r.length,o=Math.min(a,i),s=new Array(a),u=0;u<o;++u)for(var l=n[u],c=r[u],d=l.length,f=s[u]=new Array(d),m,p=0;p<d;++p)(m=l[p]||c[p])&&(f[p]=m);for(;u<a;++u)s[u]=n[u];return new bn(s,this._parents,this._name,this._id)}function $U(e){return(e+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function kU(e,n,r){var a,i,o=$U(n)?Jc:an;return function(){var s=o(this,e),u=s.on;u!==a&&(i=(a=u).copy()).on(n,r),s.on=i}}function wU(e,n){var r=this._id;return arguments.length<2?Ht(this.node(),r).on.on(e):this.each(kU(r,e,n))}function xU(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function IU(){return this.on("end.remove",xU(this._id))}function SU(e){var n=this._name,r=this._id;typeof e!="function"&&(e=Uc(e));for(var a=this._groups,i=a.length,o=new Array(i),s=0;s<i;++s)for(var u=a[s],l=u.length,c=o[s]=new Array(l),d,f,m=0;m<l;++m)(d=u[m])&&(f=e.call(d,d.__data__,m,u))&&("__data__"in d&&(f.__data__=d.__data__),c[m]=f,zs(c[m],n,r,m,c,Ht(d,r)));return new bn(o,this._parents,n,r)}function zU(e){var n=this._name,r=this._id;typeof e!="function"&&(e=rb(e));for(var a=this._groups,i=a.length,o=[],s=[],u=0;u<i;++u)for(var l=a[u],c=l.length,d,f=0;f<c;++f)if(d=l[f]){for(var m=e.call(d,d.__data__,f,l),p,h=Ht(d,r),g=0,b=m.length;g<b;++g)(p=m[g])&&zs(p,n,r,g,m,h);o.push(m),s.push(d)}return new bn(o,s,n,r)}var OU=na.prototype.constructor;function PU(){return new OU(this._groups,this._parents)}function UU(e,n){var r,a,i;return function(){var o=Ui(this,e),s=(this.style.removeProperty(e),Ui(this,e));return o===s?null:o===r&&s===a?i:i=n(r=o,a=s)}}function Db(e){return function(){this.style.removeProperty(e)}}function NU(e,n,r){var a,i=r+"",o;return function(){var s=Ui(this,e);return s===i?null:s===a?o:o=n(a=s,r)}}function jU(e,n,r){var a,i,o;return function(){var s=Ui(this,e),u=r(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(e),Ui(this,e))),s===l?null:s===a&&l===i?o:(i=l,o=n(a=s,u))}}function TU(e,n){var r,a,i,o="style."+n,s="end."+o,u;return function(){var l=an(this,e),c=l.on,d=l.value[o]==null?u||(u=Db(n)):void 0;(c!==r||i!==d)&&(a=(r=c).copy()).on(s,i=d),l.on=a}}function EU(e,n,r){var a=(e+="")=="transform"?TP:Zb;return n==null?this.styleTween(e,UU(e,a)).on("end.style."+e,Db(e)):typeof n=="function"?this.styleTween(e,jU(e,a,qc(this,"style."+e,n))).each(TU(this._id,e)):this.styleTween(e,NU(e,a,n),r).on("end.style."+e,null)}function ZU(e,n,r){return function(a){this.style.setProperty(e,n.call(this,a),r)}}function DU(e,n,r){var a,i;function o(){var s=n.apply(this,arguments);return s!==i&&(a=(i=s)&&ZU(e,s,r)),a}return o._value=n,o}function AU(e,n,r){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,DU(e,n,r??""))}function CU(e){return function(){this.textContent=e}}function RU(e){return function(){var n=e(this);this.textContent=n??""}}function MU(e){return this.tween("text",typeof e=="function"?RU(qc(this,"text",e)):CU(e==null?"":e+""))}function LU(e){return function(n){this.textContent=e.call(this,n)}}function FU(e){var n,r;function a(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&LU(i)),n}return a._value=e,a}function JU(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,FU(e))}function qU(){for(var e=this._name,n=this._id,r=Ab(),a=this._groups,i=a.length,o=0;o<i;++o)for(var s=a[o],u=s.length,l,c=0;c<u;++c)if(l=s[c]){var d=Ht(l,n);zs(l,e,r,c,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new bn(a,this._parents,e,r)}function VU(){var e,n,r=this,a=r._id,i=r.size();return new Promise(function(o,s){var u={value:s},l={value:function(){--i===0&&o()}};r.each(function(){var c=an(this,a),d=c.on;d!==e&&(n=(e=d).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(l)),c.on=n}),i===0&&o()})}var WU=0;function bn(e,n,r,a){this._groups=e,this._parents=n,this._name=r,this._id=a}function Ab(){return++WU}var un=na.prototype;bn.prototype={constructor:bn,select:SU,selectAll:zU,selectChild:un.selectChild,selectChildren:un.selectChildren,filter:_U,merge:yU,selection:PU,transition:qU,call:un.call,nodes:un.nodes,node:un.node,size:un.size,empty:un.empty,each:un.each,on:wU,attr:iU,attrTween:uU,style:EU,styleTween:AU,text:MU,textTween:JU,remove:IU,tween:KP,delay:dU,duration:pU,ease:vU,easeVarying:bU,end:VU,[Symbol.iterator]:un[Symbol.iterator]};var HU={time:null,delay:0,duration:250,ease:JP};function GU(e,n){for(var r;!(r=e.__transition)||!(r=r[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return r}function BU(e){var n,r;e instanceof bn?(n=e._id,e=e._name):(n=Ab(),(r=HU).time=Ac(),e=e==null?null:e+"");for(var a=this._groups,i=a.length,o=0;o<i;++o)for(var s=a[o],u=s.length,l,c=0;c<u;++c)(l=s[c])&&zs(l,e,n,c,s,r||GU(l,n));return new bn(a,this._parents,e,n)}na.prototype.interrupt=HP;na.prototype.transition=BU;const lo=e=>()=>e;function KU(e,{sourceEvent:n,target:r,transform:a,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:i}})}function pn(e,n,r){this.k=e,this.x=n,this.y=r}pn.prototype={constructor:pn,scale:function(e){return e===1?this:new pn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new pn(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Vc=new pn(1,0,0);Gt.prototype=pn.prototype;function Gt(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Vc;return e.__zoom}function Nl(e){e.stopImmediatePropagation()}function cr(e){e.preventDefault(),e.stopImmediatePropagation()}function XU(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function YU(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Kh(){return this.__zoom||Vc}function QU(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eN(){return navigator.maxTouchPoints||"ontouchstart"in this}function tN(e,n,r){var a=e.invertX(n[0][0])-r[0][0],i=e.invertX(n[1][0])-r[1][0],o=e.invertY(n[0][1])-r[0][1],s=e.invertY(n[1][1])-r[1][1];return e.translate(i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function nN(){var e=XU,n=YU,r=tN,a=QU,i=eN,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,l=CP,c=ia("start","zoom","end"),d,f,m,p=500,h=150,g=0,b=10;function v(U){U.property("__zoom",Kh).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",E).filter(i).on("touchstart.zoom",F).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",Q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(U,L,T,H){var ne=U.selection?U.selection():U;ne.property("__zoom",Kh),U!==ne?w(U,L,T,H):ne.interrupt().each(function(){I(this,arguments).event(H).start().zoom(null,typeof L=="function"?L.apply(this,arguments):L).end()})},v.scaleBy=function(U,L,T,H){v.scaleTo(U,function(){var ne=this.__zoom.k,ie=typeof L=="function"?L.apply(this,arguments):L;return ne*ie},T,H)},v.scaleTo=function(U,L,T,H){v.transform(U,function(){var ne=n.apply(this,arguments),ie=this.__zoom,oe=T==null?k(ne):typeof T=="function"?T.apply(this,arguments):T,he=ie.invert(oe),be=typeof L=="function"?L.apply(this,arguments):L;return r(S($(ie,be),oe,he),ne,s)},T,H)},v.translateBy=function(U,L,T,H){v.transform(U,function(){return r(this.__zoom.translate(typeof L=="function"?L.apply(this,arguments):L,typeof T=="function"?T.apply(this,arguments):T),n.apply(this,arguments),s)},null,H)},v.translateTo=function(U,L,T,H,ne){v.transform(U,function(){var ie=n.apply(this,arguments),oe=this.__zoom,he=H==null?k(ie):typeof H=="function"?H.apply(this,arguments):H;return r(Vc.translate(he[0],he[1]).scale(oe.k).translate(typeof L=="function"?-L.apply(this,arguments):-L,typeof T=="function"?-T.apply(this,arguments):-T),ie,s)},H,ne)};function $(U,L){return L=Math.max(o[0],Math.min(o[1],L)),L===U.k?U:new pn(L,U.x,U.y)}function S(U,L,T){var H=L[0]-T[0]*U.k,ne=L[1]-T[1]*U.k;return H===U.x&&ne===U.y?U:new pn(U.k,H,ne)}function k(U){return[(+U[0][0]+ +U[1][0])/2,(+U[0][1]+ +U[1][1])/2]}function w(U,L,T,H){U.on("start.zoom",function(){I(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event(H).end()}).tween("zoom",function(){var ne=this,ie=arguments,oe=I(ne,ie).event(H),he=n.apply(ne,ie),be=T==null?k(he):typeof T=="function"?T.apply(ne,ie):T,Ve=Math.max(he[1][0]-he[0][0],he[1][1]-he[0][1]),qe=ne.__zoom,Ct=typeof L=="function"?L.apply(ne,ie):L,on=l(qe.invert(be).concat(Ve/qe.k),Ct.invert(be).concat(Ve/Ct.k));return function(Rt){if(Rt===1)Rt=Ct;else{var sn=on(Rt),wl=Ve/sn[2];Rt=new pn(wl,be[0]-sn[0]*wl,be[1]-sn[1]*wl)}oe.zoom(null,Rt)}})}function I(U,L,T){return!T&&U.__zooming||new x(U,L)}function x(U,L){this.that=U,this.args=L,this.active=0,this.sourceEvent=null,this.extent=n.apply(U,L),this.taps=0}x.prototype={event:function(U){return U&&(this.sourceEvent=U),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(U,L){return this.mouse&&U!=="mouse"&&(this.mouse[1]=L.invert(this.mouse[0])),this.touch0&&U!=="touch"&&(this.touch0[1]=L.invert(this.touch0[0])),this.touch1&&U!=="touch"&&(this.touch1[1]=L.invert(this.touch1[0])),this.that.__zoom=L,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(U){var L=It(this.that).datum();c.call(U,this.that,new KU(U,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:c}),L)}};function P(U,...L){if(!e.apply(this,arguments))return;var T=I(this,L).event(U),H=this.__zoom,ne=Math.max(o[0],Math.min(o[1],H.k*Math.pow(2,a.apply(this,arguments)))),ie=Bt(U);if(T.wheel)(T.mouse[0][0]!==ie[0]||T.mouse[0][1]!==ie[1])&&(T.mouse[1]=H.invert(T.mouse[0]=ie)),clearTimeout(T.wheel);else{if(H.k===ne)return;T.mouse=[ie,H.invert(ie)],Uo(this),T.start()}cr(U),T.wheel=setTimeout(oe,h),T.zoom("mouse",r(S($(H,ne),T.mouse[0],T.mouse[1]),T.extent,s));function oe(){T.wheel=null,T.end()}}function Z(U,...L){if(m||!e.apply(this,arguments))return;var T=U.currentTarget,H=I(this,L,!0).event(U),ne=It(U.view).on("mousemove.zoom",be,!0).on("mouseup.zoom",Ve,!0),ie=Bt(U,T),oe=U.clientX,he=U.clientY;hb(U.view),Nl(U),H.mouse=[ie,this.__zoom.invert(ie)],Uo(this),H.start();function be(qe){if(cr(qe),!H.moved){var Ct=qe.clientX-oe,on=qe.clientY-he;H.moved=Ct*Ct+on*on>g}H.event(qe).zoom("mouse",r(S(H.that.__zoom,H.mouse[0]=Bt(qe,T),H.mouse[1]),H.extent,s))}function Ve(qe){ne.on("mousemove.zoom mouseup.zoom",null),vb(qe.view,H.moved),cr(qe),H.event(qe).end()}}function E(U,...L){if(e.apply(this,arguments)){var T=this.__zoom,H=Bt(U.changedTouches?U.changedTouches[0]:U,this),ne=T.invert(H),ie=T.k*(U.shiftKey?.5:2),oe=r(S($(T,ie),H,ne),n.apply(this,L),s);cr(U),u>0?It(this).transition().duration(u).call(w,oe,H,U):It(this).call(v.transform,oe,H,U)}}function F(U,...L){if(e.apply(this,arguments)){var T=U.touches,H=T.length,ne=I(this,L,U.changedTouches.length===H).event(U),ie,oe,he,be;for(Nl(U),oe=0;oe<H;++oe)he=T[oe],be=Bt(he,this),be=[be,this.__zoom.invert(be),he.identifier],ne.touch0?!ne.touch1&&ne.touch0[2]!==be[2]&&(ne.touch1=be,ne.taps=0):(ne.touch0=be,ie=!0,ne.taps=1+!!d);d&&(d=clearTimeout(d)),ie&&(ne.taps<2&&(f=be[0],d=setTimeout(function(){d=null},p)),Uo(this),ne.start())}}function W(U,...L){if(this.__zooming){var T=I(this,L).event(U),H=U.changedTouches,ne=H.length,ie,oe,he,be;for(cr(U),ie=0;ie<ne;++ie)oe=H[ie],he=Bt(oe,this),T.touch0&&T.touch0[2]===oe.identifier?T.touch0[0]=he:T.touch1&&T.touch1[2]===oe.identifier&&(T.touch1[0]=he);if(oe=T.that.__zoom,T.touch1){var Ve=T.touch0[0],qe=T.touch0[1],Ct=T.touch1[0],on=T.touch1[1],Rt=(Rt=Ct[0]-Ve[0])*Rt+(Rt=Ct[1]-Ve[1])*Rt,sn=(sn=on[0]-qe[0])*sn+(sn=on[1]-qe[1])*sn;oe=$(oe,Math.sqrt(Rt/sn)),he=[(Ve[0]+Ct[0])/2,(Ve[1]+Ct[1])/2],be=[(qe[0]+on[0])/2,(qe[1]+on[1])/2]}else if(T.touch0)he=T.touch0[0],be=T.touch0[1];else return;T.zoom("touch",r(S(oe,he,be),T.extent,s))}}function Q(U,...L){if(this.__zooming){var T=I(this,L).event(U),H=U.changedTouches,ne=H.length,ie,oe;for(Nl(U),m&&clearTimeout(m),m=setTimeout(function(){m=null},p),ie=0;ie<ne;++ie)oe=H[ie],T.touch0&&T.touch0[2]===oe.identifier?delete T.touch0:T.touch1&&T.touch1[2]===oe.identifier&&delete T.touch1;if(T.touch1&&!T.touch0&&(T.touch0=T.touch1,delete T.touch1),T.touch0)T.touch0[1]=this.__zoom.invert(T.touch0[0]);else if(T.end(),T.taps===2&&(oe=Bt(oe,this),Math.hypot(f[0]-oe[0],f[1]-oe[1])<b)){var he=It(this).on("dblclick.zoom");he&&he.apply(this,arguments)}}}return v.wheelDelta=function(U){return arguments.length?(a=typeof U=="function"?U:lo(+U),v):a},v.filter=function(U){return arguments.length?(e=typeof U=="function"?U:lo(!!U),v):e},v.touchable=function(U){return arguments.length?(i=typeof U=="function"?U:lo(!!U),v):i},v.extent=function(U){return arguments.length?(n=typeof U=="function"?U:lo([[+U[0][0],+U[0][1]],[+U[1][0],+U[1][1]]]),v):n},v.scaleExtent=function(U){return arguments.length?(o[0]=+U[0],o[1]=+U[1],v):[o[0],o[1]]},v.translateExtent=function(U){return arguments.length?(s[0][0]=+U[0][0],s[1][0]=+U[1][0],s[0][1]=+U[0][1],s[1][1]=+U[1][1],v):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},v.constrain=function(U){return arguments.length?(r=U,v):r},v.duration=function(U){return arguments.length?(u=+U,v):u},v.interpolate=function(U){return arguments.length?(l=U,v):l},v.on=function(){var U=c.on.apply(c,arguments);return U===c?v:U},v.clickDistance=function(U){return arguments.length?(g=(U=+U)*U,v):Math.sqrt(g)},v.tapDistance=function(U){return arguments.length?(b=+U,v):b},v}function No(e,n){return e==null||n==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function iN(e,n){return e==null||n==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function Cb(e){let n,r,a;e.length!==2?(n=No,r=(u,l)=>No(e(u),l),a=(u,l)=>e(u)-l):(n=e===No||e===iN?e:rN,r=e,a=e);function i(u,l,c=0,d=u.length){if(c<d){if(n(l,l)!==0)return d;do{const f=c+d>>>1;r(u[f],l)<0?c=f+1:d=f}while(c<d)}return c}function o(u,l,c=0,d=u.length){if(c<d){if(n(l,l)!==0)return d;do{const f=c+d>>>1;r(u[f],l)<=0?c=f+1:d=f}while(c<d)}return c}function s(u,l,c=0,d=u.length){const f=i(u,l,c,d-1);return f>c&&a(u[f-1],l)>-a(u[f],l)?f-1:f}return{left:i,center:s,right:o}}function rN(){return 0}function aN(e){return e===null?NaN:+e}Cb(No);Cb(aN).center;class Xh extends Map{constructor(n,r=uN){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),n!=null)for(const[a,i]of n)this.set(a,i)}get(n){return super.get(Yh(this,n))}has(n){return super.has(Yh(this,n))}set(n,r){return super.set(oN(this,n),r)}delete(n){return super.delete(sN(this,n))}}function Yh({_intern:e,_key:n},r){const a=n(r);return e.has(a)?e.get(a):r}function oN({_intern:e,_key:n},r){const a=n(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function sN({_intern:e,_key:n},r){const a=n(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function uN(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Qh(e,n){let r;if(n===void 0)for(const a of e)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of e)(i=n(i,++a,e))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function ev(e,n){let r;if(n===void 0)for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of e)(i=n(i,++a,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function lN(e,n){let r=0;for(let a of e)(a=+a)&&(r+=a);return r}var cN=typeof global=="object"&&global&&global.Object===Object&&global,dN=typeof self=="object"&&self&&self.Object===Object&&self,Rb=cN||dN||Function("return this")(),qo=Rb.Symbol,Mb=Object.prototype,fN=Mb.hasOwnProperty,mN=Mb.toString,dr=qo?qo.toStringTag:void 0;function pN(e){var n=fN.call(e,dr),r=e[dr];try{e[dr]=void 0;var a=!0}catch{}var i=mN.call(e);return a&&(n?e[dr]=r:delete e[dr]),i}var hN=Object.prototype,vN=hN.toString;function gN(e){return vN.call(e)}var bN="[object Null]",_N="[object Undefined]",tv=qo?qo.toStringTag:void 0;function yN(e){return e==null?e===void 0?_N:bN:tv&&tv in Object(e)?pN(e):gN(e)}function $N(e){return e!=null&&typeof e=="object"}var kN="[object Symbol]";function wN(e){return typeof e=="symbol"||$N(e)&&yN(e)==kN}var xN=/\s/;function IN(e){for(var n=e.length;n--&&xN.test(e.charAt(n)););return n}var SN=/^\s+/;function zN(e){return e&&e.slice(0,IN(e)+1).replace(SN,"")}function Vo(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var nv=NaN,ON=/^[-+]0x[0-9a-f]+$/i,PN=/^0b[01]+$/i,UN=/^0o[0-7]+$/i,NN=parseInt;function iv(e){if(typeof e=="number")return e;if(wN(e))return nv;if(Vo(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Vo(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=zN(e);var r=PN.test(e);return r||UN.test(e)?NN(e.slice(2),r?2:8):ON.test(e)?nv:+e}var jl=function(){return Rb.Date.now()},jN="Expected a function",TN=Math.max,EN=Math.min;function Lb(e,n,r){var a,i,o,s,u,l,c=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(jN);n=iv(n)||0,Vo(r)&&(d=!!r.leading,f="maxWait"in r,o=f?TN(iv(r.maxWait)||0,n):o,m="trailing"in r?!!r.trailing:m);function p(I){var x=a,P=i;return a=i=void 0,c=I,s=e.apply(P,x),s}function h(I){return c=I,u=setTimeout(v,n),d?p(I):s}function g(I){var x=I-l,P=I-c,Z=n-x;return f?EN(Z,o-P):Z}function b(I){var x=I-l,P=I-c;return l===void 0||x>=n||x<0||f&&P>=o}function v(){var I=jl();if(b(I))return $(I);u=setTimeout(v,g(I))}function $(I){return u=void 0,m&&a?p(I):(a=i=void 0,s)}function S(){u!==void 0&&clearTimeout(u),c=0,a=l=i=u=void 0}function k(){return u===void 0?s:$(jl())}function w(){var I=jl(),x=b(I);if(a=arguments,i=this,l=I,x){if(u===void 0)return h(l);if(f)return clearTimeout(u),u=setTimeout(v,n),p(l)}return u===void 0&&(u=setTimeout(v,n)),s}return w.cancel=S,w.flush=k,w}var ZN="Expected a function";function DN(e,n,r){var a=!0,i=!0;if(typeof e!="function")throw new TypeError(ZN);return Vo(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),Lb(e,n,{leading:a,maxWait:n,trailing:i})}var ti=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-ti.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?ti.Bounce.In(e*2)*.5:ti.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),wr=function(){return performance.now()},Fb=(function(){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];for(var i=0,o=r;i<o.length;i++){var s=o[i];(n=s._group)===null||n===void 0||n.remove(s),s._group=this,this._tweens[s.getId()]=s,this._tweensAddedDuringUpdate[s.getId()]=s}},e.prototype.remove=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var a=0,i=n;a<i.length;a++){var o=i[a];o._group=void 0,delete this._tweens[o.getId()],delete this._tweensAddedDuringUpdate[o.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,r){n===void 0&&(n=wr()),r===void 0&&(r=!0);var a=Object.keys(this._tweens);if(a.length!==0)for(;a.length>0;){this._tweensAddedDuringUpdate={};for(var i=0;i<a.length;i++){var o=this._tweens[a[i]],s=!r;o&&o.update(n,s)===!1&&!r&&this.remove(o)}a=Object.keys(this._tweensAddedDuringUpdate)}},e})(),Yl={Linear:function(e,n){var r=e.length-1,a=r*n,i=Math.floor(a),o=Yl.Utils.Linear;return n<0?o(e[0],e[1],a):n>1?o(e[r],e[r-1],r-a):o(e[i],e[i+1>r?r:i+1],a-i)},Utils:{Linear:function(e,n,r){return(n-e)*r+e}}},Jb=(function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e})(),Ql=new Fb,rv=(function(){function e(n,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=ti.Linear.None,this._interpolationFunction=Yl.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Jb.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=Ql,Ql.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,r){if(n===void 0&&(n=wr()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var a in this._valuesStartRepeat)this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var i={};for(var o in this._valuesEnd)i[o]=this._valuesEnd[o];this._valuesEnd=i}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,r,a,i,o){for(var s in a){var u=n[s],l=Array.isArray(u),c=l?"array":typeof u,d=!l&&Array.isArray(a[s]);if(!(c==="undefined"||c==="function")){if(d){var f=a[s];if(f.length===0)continue;for(var m=[u],p=0,h=f.length;p<h;p+=1){var g=this._handleRelativeValue(u,f[p]);if(isNaN(g)){d=!1,console.warn("Found invalid interpolation list. Skipping.");break}m.push(g)}d&&(a[s]=m)}if((c==="object"||l)&&u&&!d){r[s]=l?[]:{};var b=u;for(var v in b)r[s][v]=b[v];i[s]=l?[]:{};var f=a[s];if(!this._isDynamic){var $={};for(var v in f)$[v]=f[v];a[s]=f=$}this._setupProperties(b,r[s],f,i[s],o)}else(typeof r[s]>"u"||o)&&(r[s]=u),l||(r[s]*=1),d?i[s]=a[s].slice().reverse():i[s]=r[s]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=wr()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=wr()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;n<r;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=ti.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=Yl.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,r){var a=this,i;if(n===void 0&&(n=wr()),r===void 0&&(r=e.autoStartOnUpdate),this._isPaused)return!0;var o;if(!this._goToEnd&&!this._isPlaying)if(r)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var s=n-this._startTime,u=this._duration+((i=this._repeatDelayTime)!==null&&i!==void 0?i:this._delayTime),l=this._duration+this._repeat*u,c=function(){if(a._duration===0||s>l)return 1;var g=Math.trunc(s/u),b=s-g*u,v=Math.min(b/a._duration,1);return v===0&&s===a._duration?1:v},d=c(),f=this._easingFunction(d);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,f),this._onUpdateCallback&&this._onUpdateCallback(this._object,d),this._duration===0||s>=this._duration)if(this._repeat>0){var m=Math.min(Math.trunc((s-this._duration)/u)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=m);for(o in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[o]=="string"&&(this._valuesStartRepeat[o]=this._valuesStartRepeat[o]+parseFloat(this._valuesEnd[o])),this._yoyo&&this._swapEndStartRepeatValues(o),this._valuesStart[o]=this._valuesStartRepeat[o];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=u*m,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var p=0,h=this._chainedTweens.length;p<h;p++)this._chainedTweens[p].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,a,i){for(var o in a)if(r[o]!==void 0){var s=r[o]||0,u=a[o],l=Array.isArray(n[o]),c=Array.isArray(u),d=!l&&c;d?n[o]=this._interpolationFunction(u,i):typeof u=="object"&&u?this._updateProperties(n[o],s,u,i):(u=this._handleRelativeValue(s,u),typeof u=="number"&&(n[o]=s+(u-s)*i))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],a=this._valuesEnd[n];typeof a=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(a):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e.autoStartOnUpdate=!1,e})();Jb.nextId;var nn=Ql;nn.getAll.bind(nn);nn.removeAll.bind(nn);nn.add.bind(nn);nn.remove.bind(nn);nn.update.bind(nn);function av(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function AN(e){if(Array.isArray(e))return e}function CN(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function RN(e,n,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function MN(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,o,s,u=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,n!==0)for(;!(l=(a=o.call(r)).done)&&(u.push(a.value),u.length!==n);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function LN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FN(e,n){return AN(e)||MN(e,n)||JN(e,n)||LN()}function JN(e,n){if(e){if(typeof e=="string")return av(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?av(e,n):void 0}}var qN=RN(function e(n,r){var a=r.default,i=a===void 0?null:a,o=r.triggerUpdate,s=o===void 0?!0:o,u=r.onChange,l=u===void 0?function(c,d){}:u;CN(this,e),this.name=n,this.defaultVal=i,this.triggerUpdate=s,this.onChange=l});function Wc(e){var n=e.stateInit,r=n===void 0?function(){return{}}:n,a=e.props,i=a===void 0?{}:a,o=e.methods,s=o===void 0?{}:o,u=e.aliases,l=u===void 0?{}:u,c=e.init,d=c===void 0?function(){}:c,f=e.update,m=f===void 0?function(){}:f,p=Object.keys(i).map(function(h){return new qN(h,i[h])});return function h(){for(var g=arguments.length,b=new Array(g),v=0;v<g;v++)b[v]=arguments[v];var $=!!(this instanceof h&&this.constructor),S=$?b.shift():void 0,k=b[0],w=k===void 0?{}:k,I=Object.assign({},r instanceof Function?r(w):r,{initialised:!1}),x={};function P(F){return Z(F,w),E(),P}var Z=function(W,Q){d.call(P,W,I,Q),I.initialised=!0},E=Lb(function(){I.initialised&&(m.call(P,I,x),x={})},1);return p.forEach(function(F){P[F.name]=W(F);function W(Q){var U=Q.name,L=Q.triggerUpdate,T=L===void 0?!1:L,H=Q.onChange,ne=H===void 0?function(he,be){}:H,ie=Q.defaultVal,oe=ie===void 0?null:ie;return function(he){var be=I[U];if(!arguments.length)return be;var Ve=he===void 0?oe:he;return I[U]=Ve,ne.call(P,Ve,I,be),!x.hasOwnProperty(U)&&(x[U]=be),T&&E(),P}}}),Object.keys(s).forEach(function(F){P[F]=function(){for(var W,Q=arguments.length,U=new Array(Q),L=0;L<Q;L++)U[L]=arguments[L];return(W=s[F]).call.apply(W,[P,I].concat(U))}}),Object.entries(l).forEach(function(F){var W=FN(F,2),Q=W[0],U=W[1];return P[Q]=P[U]}),P.resetProps=function(){return p.forEach(function(F){P[F.name](F.defaultVal)}),P},P.resetProps(),I._rerender=E,$&&S&&P(S),P}}var ye=(function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}});function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wo(e)}var VN=/^\s+/,WN=/\s+$/;function B(e,n){if(e=e||"",n=n||{},e instanceof B)return e;if(!(this instanceof B))return new B(e,n);var r=HN(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}B.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,a,i,o,s,u;return r=n.r/255,a=n.g/255,i=n.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),i<=.03928?u=i/12.92:u=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*u},setAlpha:function(n){return this._a=qb(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=sv(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=sv(this._r,this._g,this._b),r=Math.round(n.h*360),a=Math.round(n.s*100),i=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+a+"%, "+i+"%)":"hsva("+r+", "+a+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var n=ov(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=ov(this._r,this._g,this._b),r=Math.round(n.h*360),a=Math.round(n.s*100),i=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+a+"%, "+i+"%)":"hsla("+r+", "+a+"%, "+i+"%, "+this._roundA+")"},toHex:function(n){return uv(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return XN(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Te(this._r,255)*100)+"%",g:Math.round(Te(this._g,255)*100)+"%",b:Math.round(Te(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Te(this._r,255)*100)+"%, "+Math.round(Te(this._g,255)*100)+"%, "+Math.round(Te(this._b,255)*100)+"%)":"rgba("+Math.round(Te(this._r,255)*100)+"%, "+Math.round(Te(this._g,255)*100)+"%, "+Math.round(Te(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:l9[uv(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+lv(this._r,this._g,this._b,this._a),a=r,i=this._gradientType?"GradientType = 1, ":"";if(n){var o=B(n);a="#"+lv(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+a+")"},toString:function(n){var r=!!n;n=n||this._format;var a=!1,i=this._a<1&&this._a>=0,o=!r&&i&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return o?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(a=this.toRgbString()),n==="prgb"&&(a=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(a=this.toHexString()),n==="hex3"&&(a=this.toHexString(!0)),n==="hex4"&&(a=this.toHex8String(!0)),n==="hex8"&&(a=this.toHex8String()),n==="name"&&(a=this.toName()),n==="hsl"&&(a=this.toHslString()),n==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(n,r){var a=n.apply(null,[this].concat([].slice.call(r)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(t9,arguments)},brighten:function(){return this._applyModification(n9,arguments)},darken:function(){return this._applyModification(i9,arguments)},desaturate:function(){return this._applyModification(YN,arguments)},saturate:function(){return this._applyModification(QN,arguments)},greyscale:function(){return this._applyModification(e9,arguments)},spin:function(){return this._applyModification(r9,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(s9,arguments)},complement:function(){return this._applyCombination(a9,arguments)},monochromatic:function(){return this._applyCombination(u9,arguments)},splitcomplement:function(){return this._applyCombination(o9,arguments)},triad:function(){return this._applyCombination(cv,[3])},tetrad:function(){return this._applyCombination(cv,[4])}};B.fromRatio=function(e,n){if(Wo(e)=="object"){var r={};for(var a in e)e.hasOwnProperty(a)&&(a==="a"?r[a]=e[a]:r[a]=xr(e[a]));e=r}return B(e,n)};function HN(e){var n={r:0,g:0,b:0},r=1,a=null,i=null,o=null,s=!1,u=!1;return typeof e=="string"&&(e=m9(e)),Wo(e)=="object"&&(ln(e.r)&&ln(e.g)&&ln(e.b)?(n=GN(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ln(e.h)&&ln(e.s)&&ln(e.v)?(a=xr(e.s),i=xr(e.v),n=KN(e.h,a,i),s=!0,u="hsv"):ln(e.h)&&ln(e.s)&&ln(e.l)&&(a=xr(e.s),o=xr(e.l),n=BN(e.h,a,o),s=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=qb(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function GN(e,n,r){return{r:Te(e,255)*255,g:Te(n,255)*255,b:Te(r,255)*255}}function ov(e,n,r){e=Te(e,255),n=Te(n,255),r=Te(r,255);var a=Math.max(e,n,r),i=Math.min(e,n,r),o,s,u=(a+i)/2;if(a==i)o=s=0;else{var l=a-i;switch(s=u>.5?l/(2-a-i):l/(a+i),a){case e:o=(n-r)/l+(n<r?6:0);break;case n:o=(r-e)/l+2;break;case r:o=(e-n)/l+4;break}o/=6}return{h:o,s,l:u}}function BN(e,n,r){var a,i,o;e=Te(e,360),n=Te(n,100),r=Te(r,100);function s(c,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(d-c)*6*f:f<1/2?d:f<2/3?c+(d-c)*(2/3-f)*6:c}if(n===0)a=i=o=r;else{var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;a=s(l,u,e+1/3),i=s(l,u,e),o=s(l,u,e-1/3)}return{r:a*255,g:i*255,b:o*255}}function sv(e,n,r){e=Te(e,255),n=Te(n,255),r=Te(r,255);var a=Math.max(e,n,r),i=Math.min(e,n,r),o,s,u=a,l=a-i;if(s=a===0?0:l/a,a==i)o=0;else{switch(a){case e:o=(n-r)/l+(n<r?6:0);break;case n:o=(r-e)/l+2;break;case r:o=(e-n)/l+4;break}o/=6}return{h:o,s,v:u}}function KN(e,n,r){e=Te(e,360)*6,n=Te(n,100),r=Te(r,100);var a=Math.floor(e),i=e-a,o=r*(1-n),s=r*(1-i*n),u=r*(1-(1-i)*n),l=a%6,c=[r,s,o,o,u,r][l],d=[u,r,r,s,o,o][l],f=[o,o,u,r,r,s][l];return{r:c*255,g:d*255,b:f*255}}function uv(e,n,r,a){var i=[Ft(Math.round(e).toString(16)),Ft(Math.round(n).toString(16)),Ft(Math.round(r).toString(16))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function XN(e,n,r,a,i){var o=[Ft(Math.round(e).toString(16)),Ft(Math.round(n).toString(16)),Ft(Math.round(r).toString(16)),Ft(Vb(a))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function lv(e,n,r,a){var i=[Ft(Vb(a)),Ft(Math.round(e).toString(16)),Ft(Math.round(n).toString(16)),Ft(Math.round(r).toString(16))];return i.join("")}B.equals=function(e,n){return!e||!n?!1:B(e).toRgbString()==B(n).toRgbString()};B.random=function(){return B.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function YN(e,n){n=n===0?0:n||10;var r=B(e).toHsl();return r.s-=n/100,r.s=Os(r.s),B(r)}function QN(e,n){n=n===0?0:n||10;var r=B(e).toHsl();return r.s+=n/100,r.s=Os(r.s),B(r)}function e9(e){return B(e).desaturate(100)}function t9(e,n){n=n===0?0:n||10;var r=B(e).toHsl();return r.l+=n/100,r.l=Os(r.l),B(r)}function n9(e,n){n=n===0?0:n||10;var r=B(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),B(r)}function i9(e,n){n=n===0?0:n||10;var r=B(e).toHsl();return r.l-=n/100,r.l=Os(r.l),B(r)}function r9(e,n){var r=B(e).toHsl(),a=(r.h+n)%360;return r.h=a<0?360+a:a,B(r)}function a9(e){var n=B(e).toHsl();return n.h=(n.h+180)%360,B(n)}function cv(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=B(e).toHsl(),a=[B(e)],i=360/n,o=1;o<n;o++)a.push(B({h:(r.h+o*i)%360,s:r.s,l:r.l}));return a}function o9(e){var n=B(e).toHsl(),r=n.h;return[B(e),B({h:(r+72)%360,s:n.s,l:n.l}),B({h:(r+216)%360,s:n.s,l:n.l})]}function s9(e,n,r){n=n||6,r=r||30;var a=B(e).toHsl(),i=360/r,o=[B(e)];for(a.h=(a.h-(i*n>>1)+720)%360;--n;)a.h=(a.h+i)%360,o.push(B(a));return o}function u9(e,n){n=n||6;for(var r=B(e).toHsv(),a=r.h,i=r.s,o=r.v,s=[],u=1/n;n--;)s.push(B({h:a,s:i,v:o})),o=(o+u)%1;return s}B.mix=function(e,n,r){r=r===0?0:r||50;var a=B(e).toRgb(),i=B(n).toRgb(),o=r/100,s={r:(i.r-a.r)*o+a.r,g:(i.g-a.g)*o+a.g,b:(i.b-a.b)*o+a.b,a:(i.a-a.a)*o+a.a};return B(s)};B.readability=function(e,n){var r=B(e),a=B(n);return(Math.max(r.getLuminance(),a.getLuminance())+.05)/(Math.min(r.getLuminance(),a.getLuminance())+.05)};B.isReadable=function(e,n,r){var a=B.readability(e,n),i,o;switch(o=!1,i=p9(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7;break}return o};B.mostReadable=function(e,n,r){var a=null,i=0,o,s,u,l;r=r||{},s=r.includeFallbackColors,u=r.level,l=r.size;for(var c=0;c<n.length;c++)o=B.readability(e,n[c]),o>i&&(i=o,a=B(n[c]));return B.isReadable(e,a,{level:u,size:l})||!s?a:(r.includeFallbackColors=!1,B.mostReadable(e,["#fff","#000"],r))};var ec=B.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},l9=B.hexNames=c9(ec);function c9(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function qb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Te(e,n){d9(e)&&(e="100%");var r=f9(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function Os(e){return Math.min(1,Math.max(0,e))}function pt(e){return parseInt(e,16)}function d9(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function f9(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ft(e){return e.length==1?"0"+e:""+e}function xr(e){return e<=1&&(e=e*100+"%"),e}function Vb(e){return Math.round(parseFloat(e)*255).toString(16)}function dv(e){return pt(e)/255}var Mt=(function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+a),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+a),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+a),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ln(e){return!!Mt.CSS_UNIT.exec(e)}function m9(e){e=e.replace(VN,"").replace(WN,"").toLowerCase();var n=!1;if(ec[e])e=ec[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Mt.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Mt.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Mt.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Mt.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Mt.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Mt.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Mt.hex8.exec(e))?{r:pt(r[1]),g:pt(r[2]),b:pt(r[3]),a:dv(r[4]),format:n?"name":"hex8"}:(r=Mt.hex6.exec(e))?{r:pt(r[1]),g:pt(r[2]),b:pt(r[3]),format:n?"name":"hex"}:(r=Mt.hex4.exec(e))?{r:pt(r[1]+""+r[1]),g:pt(r[2]+""+r[2]),b:pt(r[3]+""+r[3]),a:dv(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=Mt.hex3.exec(e))?{r:pt(r[1]+""+r[1]),g:pt(r[2]+""+r[2]),b:pt(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function p9(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function tc(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function h9(e){if(Array.isArray(e))return tc(e)}function Wb(e,n,r){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:r;throw new TypeError("Private element is not present on this object")}function v9(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g9(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function wt(e,n){return e.get(Wb(e,n))}function fv(e,n,r){v9(e,n),n.set(e,r)}function mv(e,n,r){return e.set(Wb(e,n),r),r}function b9(e,n){for(var r=0;r<n.length;r++){var a=n[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,x9(a.key),a)}}function _9(e,n,r){return n&&b9(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k9(e){return h9(e)||y9(e)||I9(e)||$9()}function w9(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function x9(e){var n=w9(e,"string");return typeof n=="symbol"?n:n+""}function I9(e,n){if(e){if(typeof e=="string")return tc(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tc(e,n):void 0}}var S9=123,z9=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},Hb=function(n,r,a){return(n<<16)+(r<<8)+a},O9=function(n){var r=B(n).toRgb(),a=r.r,i=r.g,o=r.b;return Hb(a,i,o)},pv=function(n,r){return n*S9%Math.pow(2,r)},Hn=new WeakMap,cn=new WeakMap,P9=(function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;g9(this,e),fv(this,Hn,void 0),fv(this,cn,void 0),mv(cn,this,n),this.reset()}return _9(e,[{key:"reset",value:function(){mv(Hn,this,["__reserved for background__"])}},{key:"register",value:function(r){if(wt(Hn,this).length>=Math.pow(2,24-wt(cn,this)))return null;var a=wt(Hn,this).length,i=pv(a,wt(cn,this)),o=z9(a+(i<<24-wt(cn,this)));return wt(Hn,this).push(r),o}},{key:"lookup",value:function(r){if(!r)return null;var a=typeof r=="string"?O9(r):Hb.apply(void 0,k9(r));if(!a)return null;var i=a&Math.pow(2,24-wt(cn,this))-1,o=a>>24-wt(cn,this)&Math.pow(2,wt(cn,this))-1;return pv(i,wt(cn,this))!==o||i>=wt(Hn,this).length?null:wt(Hn,this)[i]}}])})(),aa,Ee,Gb,Bb,Tn,hv,Kb,Xb,Tl,jo,Pr,Yb,Hc,nc,ic,Ho={},Go=[],U9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ps=Array.isArray;function Kt(e,n){for(var r in n)e[r]=n[r];return e}function Gc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function N9(e,n,r){var a,i,o,s={};for(o in n)o=="key"?a=n[o]:o=="ref"?i=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?aa.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Ur(e,s,a,i,null)}function Ur(e,n,r,a,i){var o={type:e,props:n,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Gb,__i:-1,__u:0};return i==null&&Ee.vnode!=null&&Ee.vnode(o),o}function Us(e){return e.children}function To(e,n){this.props=e,this.context=n}function Ei(e,n){if(n==null)return e.__?Ei(e.__,e.__i+1):null;for(var r;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Ei(e):null}function j9(e){if(e.__P&&e.__d){var n=e.__v,r=n.__e,a=[],i=[],o=Kt({},n);o.__v=n.__v+1,Ee.vnode&&Ee.vnode(o),Bc(e.__P,o,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,a,r??Ei(n),!!(32&n.__u),i),o.__v=n.__v,o.__.__k[o.__i]=o,i_(a,o,i),n.__e=n.__=null,o.__e!=r&&Qb(o)}}function Qb(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(n){if(n!=null&&n.__e!=null)return e.__e=e.__c.base=n.__e}),Qb(e)}function vv(e){(!e.__d&&(e.__d=!0)&&Tn.push(e)&&!Bo.__r++||hv!=Ee.debounceRendering)&&((hv=Ee.debounceRendering)||Kb)(Bo)}function Bo(){try{for(var e,n=1;Tn.length;)Tn.length>n&&Tn.sort(Xb),e=Tn.shift(),n=Tn.length,j9(e)}finally{Tn.length=Bo.__r=0}}function e_(e,n,r,a,i,o,s,u,l,c,d){var f,m,p,h,g,b,v,$=a&&a.__k||Go,S=n.length;for(l=T9(r,n,$,l,S),f=0;f<S;f++)(p=r.__k[f])!=null&&(m=p.__i!=-1&&$[p.__i]||Ho,p.__i=f,b=Bc(e,p,m,i,o,s,u,l,c,d),h=p.__e,p.ref&&m.ref!=p.ref&&(m.ref&&Kc(m.ref,null,p),d.push(p.ref,p.__c||h,p)),g==null&&h!=null&&(g=h),(v=!!(4&p.__u))||m.__k===p.__k?(l=t_(p,l,e,v),v&&m.__e&&(m.__e=null)):typeof p.type=="function"&&b!==void 0?l=b:h&&(l=h.nextSibling),p.__u&=-7);return r.__e=g,l}function T9(e,n,r,a,i){var o,s,u,l,c,d=r.length,f=d,m=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=n[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[o]=Ur(null,s,null,null,null):Ps(s)?s=e.__k[o]=Ur(Us,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[o]=Ur(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[o]=s,l=o+m,s.__=e,s.__b=e.__b+1,u=null,(c=s.__i=E9(s,r,l,f))!=-1&&(f--,(u=r[c])&&(u.__u|=2)),u==null||u.__v==null?(c==-1&&(i>d?m--:i<d&&m++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?m--:c==l+1?m++:(c>l?m--:m++,s.__u|=4))):e.__k[o]=null;if(f)for(o=0;o<d;o++)(u=r[o])!=null&&(2&u.__u)==0&&(u.__e==a&&(a=Ei(u)),a_(u,u));return a}function t_(e,n,r,a){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,n=t_(i[o],n,r,a));return n}e.__e!=n&&(a&&(n&&e.type&&!n.parentNode&&(n=Ei(e)),r.insertBefore(e.__e,n||null)),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function E9(e,n,r,a){var i,o,s,u=e.key,l=e.type,c=n[r],d=c!=null&&(2&c.__u)==0;if(c===null&&u==null||d&&u==c.key&&l==c.type)return r;if(a>(d?1:0)){for(i=r-1,o=r+1;i>=0||o<n.length;)if((c=n[s=i>=0?i--:o++])!=null&&(2&c.__u)==0&&u==c.key&&l==c.type)return s}return-1}function gv(e,n,r){n[0]=="-"?e.setProperty(n,r??""):e[n]=r==null?"":typeof r!="number"||U9.test(n)?r:r+"px"}function co(e,n,r,a,i){var o,s;e:if(n=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof a=="string"&&(e.style.cssText=a=""),a)for(n in a)r&&n in r||gv(e.style,n,"");if(r)for(n in r)a&&r[n]==a[n]||gv(e.style,n,r[n])}else if(n[0]=="o"&&n[1]=="n")o=n!=(n=n.replace(Yb,"$1")),s=n.toLowerCase(),n=s in e||n=="onFocusOut"||n=="onFocusIn"?s.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=r,r?a?r[Pr]=a[Pr]:(r[Pr]=Hc,e.addEventListener(n,o?ic:nc,o)):e.removeEventListener(n,o?ic:nc,o);else{if(i=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&r==1?"":r))}}function bv(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n[jo]==null)n[jo]=Hc++;else if(n[jo]<r[Pr])return;return r(Ee.event?Ee.event(n):n)}}}function Bc(e,n,r,a,i,o,s,u,l,c){var d,f,m,p,h,g,b,v,$,S,k,w,I,x,P,Z,E=n.type;if(n.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[u=n.__e=r.__e]),(d=Ee.__b)&&d(n);e:if(typeof E=="function"){f=s.length;try{if($=n.props,S=E.prototype&&E.prototype.render,k=(d=E.contextType)&&a[d.__c],w=d?k?k.props.value:d.__:a,r.__c?v=(m=n.__c=r.__c).__=m.__E:(S?n.__c=m=new E($,w):(n.__c=m=new To($,w),m.constructor=E,m.render=D9),k&&k.sub(m),m.state||(m.state={}),m.__n=a,p=m.__d=!0,m.__h=[],m._sb=[]),S&&m.__s==null&&(m.__s=m.state),S&&E.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=Kt({},m.__s)),Kt(m.__s,E.getDerivedStateFromProps($,m.__s))),h=m.props,g=m.state,m.__v=n,p)S&&E.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),S&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if(S&&E.getDerivedStateFromProps==null&&$!==h&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps($,w),n.__v==r.__v||!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate($,m.__s,w)===!1){n.__v!=r.__v&&(m.props=$,m.state=m.__s,m.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(F){F&&(F.__=n)}),Go.push.apply(m.__h,m._sb),m._sb=[],m.__h.length&&s.push(m);break e}m.componentWillUpdate!=null&&m.componentWillUpdate($,m.__s,w),S&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(h,g,b)})}if(m.context=w,m.props=$,m.__P=e,m.__e=!1,I=Ee.__r,x=0,S)m.state=m.__s,m.__d=!1,I&&I(n),d=m.render(m.props,m.state,m.context),Go.push.apply(m.__h,m._sb),m._sb=[];else do m.__d=!1,I&&I(n),d=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++x<25);m.state=m.__s,m.getChildContext!=null&&(a=Kt(Kt({},a),m.getChildContext())),S&&!p&&m.getSnapshotBeforeUpdate!=null&&(b=m.getSnapshotBeforeUpdate(h,g)),P=d!=null&&d.type===Us&&d.key==null?r_(d.props.children):d,u=e_(e,Ps(P)?P:[P],n,r,a,i,o,s,u,l,c),m.base=n.__e,n.__u&=-161,m.__h.length&&s.push(m),v&&(m.__E=m.__=null)}catch(F){if(s.length=f,n.__v=null,l||o!=null){if(F.then){for(n.__u|=l?160:128;u&&u.nodeType==8&&u.nextSibling;)u=u.nextSibling;o!=null&&(o[o.indexOf(u)]=null),n.__e=u}else if(o!=null)for(Z=o.length;Z--;)Gc(o[Z])}else n.__e=r.__e;n.__k==null&&(n.__k=r.__k||[]),F.then||n_(n),Ee.__e(F,n,r)}}else o==null&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):u=n.__e=Z9(r.__e,n,r,a,i,o,s,l,c);return(d=Ee.diffed)&&d(n),128&n.__u?void 0:u}function n_(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(n_))}function i_(e,n,r){for(var a=0;a<r.length;a++)Kc(r[a],r[++a],r[++a]);Ee.__c&&Ee.__c(n,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Ee.__e(o,i.__v)}})}function r_(e){return typeof e!="object"||e==null||e.__b>0?e:Ps(e)?e.map(r_):e.constructor!==void 0?null:Kt({},e)}function Z9(e,n,r,a,i,o,s,u,l){var c,d,f,m,p,h,g,b=r.props||Ho,v=n.props,$=n.type;if($=="svg"?i="http://www.w3.org/2000/svg":$=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!$&&($?p.localName==$:p.nodeType==3)){e=p,o[c]=null;break}}if(e==null){if($==null)return document.createTextNode(v);e=document.createElementNS(i,$,v.is&&v),u&&(Ee.__m&&Ee.__m(n,o),u=!1),o=null}if($==null)b===v||u&&e.data==v||(e.data=v);else{if(o=$=="textarea"&&v.defaultValue!=null?null:o&&aa.call(e.childNodes),!u&&o!=null)for(b={},c=0;c<e.attributes.length;c++)b[(p=e.attributes[c]).name]=p.value;for(c in b)p=b[c],c=="dangerouslySetInnerHTML"?f=p:c=="children"||c in v||c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v||co(e,c,null,p,i);for(c in v)p=v[c],c=="children"?m=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?h=p:c=="checked"?g=p:u&&typeof p!="function"||b[c]===p||co(e,c,p,b[c],i);if(d)u||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),n.__k=[];else if(f&&(e.innerHTML=""),e_(n.type=="template"?e.content:e,Ps(m)?m:[m],n,r,a,$=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&Ei(r,0),u,l),o!=null)for(c=o.length;c--;)Gc(o[c]);u&&$!="textarea"||(c="value",$=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[c]||$=="progress"&&!h||$=="option"&&h!=b[c])&&co(e,c,h,b[c],i),c="checked",g!=null&&g!=e[c]&&co(e,c,g,b[c],i))}return e}function Kc(e,n,r){try{if(typeof e=="function"){var a=typeof e.__u=="function";a&&e.__u(),a&&n==null||(e.__u=e(n))}else e.current=n}catch(i){Ee.__e(i,r)}}function a_(e,n,r){var a,i;if(Ee.unmount&&Ee.unmount(e),(a=e.ref)&&(a.current&&a.current!=e.__e||Kc(a,null,n)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){Ee.__e(o,n)}a.base=a.__P=a.__n=null}if(a=e.__k)for(i=0;i<a.length;i++)a[i]&&a_(a[i],n,r||typeof e.type!="function");r||Gc(e.__e),e.__c=e.__=e.__e=void 0}function D9(e,n,r){return this.constructor(e,r)}function A9(e,n,r){var a,i,o,s;n==document&&(n=document.documentElement),Ee.__&&Ee.__(e,n),i=(a=!1)?null:n.__k,o=[],s=[],Bc(n,e=n.__k=N9(Us,null,[e]),i||Ho,Ho,n.namespaceURI,i?null:n.firstChild?aa.call(n.childNodes):null,o,i?i.__e:n.firstChild,a,s),i_(o,e,s),e.props.children=null}function o_(e,n,r){var a,i,o,s,u=Kt({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),n)o=="key"?a=n[o]:o=="ref"?i=n[o]:u[o]=n[o]===void 0&&s!=null?s[o]:n[o];return arguments.length>2&&(u.children=arguments.length>3?aa.call(arguments,2):r),Ur(e.type,u,a||e.key,i||e.ref,null)}aa=Go.slice,Ee={__e:function(e,n,r,a){for(var i,o,s;n=n.__;)if((i=n.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,a||{}),s=i.__d),s)return i.__E=i}catch(u){e=u}throw e}},Gb=0,Bb=function(e){return e!=null&&e.constructor===void 0},To.prototype.setState=function(e,n){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Kt({},this.state),typeof e=="function"&&(e=e(Kt({},r),this.props)),e&&Kt(r,e),e!=null&&this.__v&&(n&&this._sb.push(n),vv(this))},To.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),vv(this))},To.prototype.render=Us,Tn=[],Kb=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xb=function(e,n){return e.__v.__b-n.__v.__b},Bo.__r=0,Tl=Math.random().toString(8),jo="__d"+Tl,Pr="__a"+Tl,Yb=/(PointerCapture)$|Capture$/i,Hc=0,nc=bv(!1),ic=bv(!0);function _v(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function C9(e){if(Array.isArray(e))return e}function R9(e,n,r){return(n=V9(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function M9(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,o,s,u=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,n!==0)for(;!(l=(a=o.call(r)).done)&&(u.push(a.value),u.length!==n);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function L9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yv(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,a)}return r}function F9(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?yv(Object(r),!0).forEach(function(a){R9(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yv(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function J9(e,n){return C9(e)||M9(e,n)||W9(e,n)||L9()}function q9(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function V9(e){var n=q9(e,"string");return typeof n=="symbol"?n:n+""}function Ko(e){"@babel/helpers - typeof";return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ko(e)}function W9(e,n){if(e){if(typeof e=="string")return _v(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_v(e,n):void 0}}var rc=function(n){if(Ko(n)!=="object")return n;var r=o_(n);if(r.props){var a;r.props=F9({},r.props),r!=null&&(a=r.props)!==null&&a!==void 0&&a.children&&(r.props.children=Array.isArray(r.props.children)?r.props.children.map(rc):rc(r.props.children))}return r},H9=function(n){return Bb(o_(n))},G9=function(n,r){delete r.__k,A9(rc(n),r)};function B9(e,n){n===void 0&&(n={});var r=n.insertAt;if(!(typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var K9=`.float-tooltip-kap {
|
|
18
|
+
position: absolute;
|
|
19
|
+
width: max-content; /* prevent shrinking near right edge */
|
|
20
|
+
max-width: max(50%, 150px);
|
|
21
|
+
padding: 3px 5px;
|
|
22
|
+
border-radius: 3px;
|
|
23
|
+
font: 12px sans-serif;
|
|
24
|
+
color: #eee;
|
|
25
|
+
background: rgba(0,0,0,0.6);
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
`;B9(K9);var X9=Wc({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=a.style,o=i===void 0?{}:i,s=!!n&&Ko(n)==="object"&&!!n.node&&typeof n.node=="function",u=It(s?n.node():n);u.style("position")==="static"&&u.style("position","relative"),r.tooltipEl=u.append("div").attr("class","float-tooltip-kap"),Object.entries(o).forEach(function(c){var d=J9(c,2),f=d[0],m=d[1];return r.tooltipEl.style(f,m)}),r.tooltipEl.style("left","-10000px").style("display","none");var l="tooltip-".concat(Math.round(Math.random()*1e12));r.mouseInside=!1,u.on("mousemove.".concat(l),function(c){r.mouseInside=!0;var d=Bt(c),f=u.node(),m=f.offsetWidth,p=f.offsetHeight,h=[r.offsetX===null||r.offsetX===void 0?"-".concat(d[0]/m*100,"%"):typeof r.offsetX=="number"?"calc(-50% + ".concat(r.offsetX,"px)"):r.offsetX,r.offsetY===null||r.offsetY===void 0?p>130&&p-d[1]<100?"calc(-100% - 6px)":"21px":typeof r.offsetY=="number"?r.offsetY<0?"calc(-100% - ".concat(Math.abs(r.offsetY),"px)"):"".concat(r.offsetY,"px"):r.offsetY];r.tooltipEl.style("left",d[0]+"px").style("top",d[1]+"px").style("transform","translate(".concat(h.join(","),")")),r.content&&r.tooltipEl.style("display","inline")}),u.on("mouseover.".concat(l),function(){r.mouseInside=!0,r.content&&r.tooltipEl.style("display","inline")}),u.on("mouseout.".concat(l),function(){r.mouseInside=!1,r.tooltipEl.style("display","none")})},update:function(n){n.tooltipEl.style("display",n.content&&n.mouseInside?"inline":"none"),n.content?n.content instanceof HTMLElement?(n.tooltipEl.text(""),n.tooltipEl.append(function(){return n.content})):typeof n.content=="string"?n.tooltipEl.html(n.content):H9(n.content)?(n.tooltipEl.text(""),G9(n.content,n.tooltipEl.node())):(n.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",n.content,n.content.toString())):n.tooltipEl.text("")}});function Y9(e,n,r){var a,i=1;e==null&&(e=0),n==null&&(n=0),r==null&&(r=0);function o(){var s,u=a.length,l,c=0,d=0,f=0;for(s=0;s<u;++s)l=a[s],c+=l.x||0,d+=l.y||0,f+=l.z||0;for(c=(c/u-e)*i,d=(d/u-n)*i,f=(f/u-r)*i,s=0;s<u;++s)l=a[s],c&&(l.x-=c),d&&(l.y-=d),f&&(l.z-=f)}return o.initialize=function(s){a=s},o.x=function(s){return arguments.length?(e=+s,o):e},o.y=function(s){return arguments.length?(n=+s,o):n},o.z=function(s){return arguments.length?(r=+s,o):r},o.strength=function(s){return arguments.length?(i=+s,o):i},o}function Q9(e){const n=+this._x.call(null,e);return s_(this.cover(n),n,e)}function s_(e,n,r){if(isNaN(n))return e;var a,i=e._root,o={data:r},s=e._x0,u=e._x1,l,c,d,f,m;if(!i)return e._root=o,e;for(;i.length;)if((d=n>=(l=(s+u)/2))?s=l:u=l,a=i,!(i=i[f=+d]))return a[f]=o,e;if(c=+e._x.call(null,i.data),n===c)return o.next=i,a?a[f]=o:e._root=o,e;do a=a?a[f]=new Array(2):e._root=new Array(2),(d=n>=(l=(s+u)/2))?s=l:u=l;while((f=+d)==(m=+(c>=l)));return a[m]=i,a[f]=o,e}function e8(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n);let a=1/0,i=-1/0;for(let o=0,s;o<n;++o)isNaN(s=+this._x.call(null,e[o]))||(r[o]=s,s<a&&(a=s),s>i&&(i=s));if(a>i)return this;this.cover(a).cover(i);for(let o=0;o<n;++o)s_(this,r[o],e[o]);return this}function t8(e){if(isNaN(e=+e))return this;var n=this._x0,r=this._x1;if(isNaN(n))r=(n=Math.floor(e))+1;else{for(var a=r-n||1,i=this._root,o,s;n>e||e>=r;)switch(s=+(e<n),o=new Array(2),o[s]=i,i=o,a*=2,s){case 0:r=n+a;break;case 1:n=r-a;break}this._root&&this._root.length&&(this._root=i)}return this._x0=n,this._x1=r,this}function n8(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function i8(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function gn(e,n,r){this.node=e,this.x0=n,this.x1=r}function r8(e,n){var r,a=this._x0,i,o,s=this._x1,u=[],l=this._root,c,d;for(l&&u.push(new gn(l,a,s)),n==null?n=1/0:(a=e-n,s=e+n);c=u.pop();)if(!(!(l=c.node)||(i=c.x0)>s||(o=c.x1)<a))if(l.length){var f=(i+o)/2;u.push(new gn(l[1],f,o),new gn(l[0],i,f)),(d=+(e>=f))&&(c=u[u.length-1],u[u.length-1]=u[u.length-1-d],u[u.length-1-d]=c)}else{var m=Math.abs(e-+this._x.call(null,l.data));m<n&&(n=m,a=e-m,s=e+m,r=l.data)}return r}function a8(e){if(isNaN(l=+this._x.call(null,e)))return this;var n,r=this._root,a,i,o,s=this._x0,u=this._x1,l,c,d,f,m;if(!r)return this;if(r.length)for(;;){if((d=l>=(c=(s+u)/2))?s=c:u=c,n=r,!(r=r[f=+d]))return this;if(!r.length)break;n[f+1&1]&&(a=n,m=f)}for(;r.data!==e;)if(i=r,!(r=r.next))return this;return(o=r.next)&&delete r.next,i?(o?i.next=o:delete i.next,this):n?(o?n[f]=o:delete n[f],(r=n[0]||n[1])&&r===(n[1]||n[0])&&!r.length&&(a?a[m]=r:this._root=r),this):(this._root=o,this)}function o8(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function s8(){return this._root}function u8(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function l8(e){var n=[],r,a=this._root,i,o,s;for(a&&n.push(new gn(a,this._x0,this._x1));r=n.pop();)if(!e(a=r.node,o=r.x0,s=r.x1)&&a.length){var u=(o+s)/2;(i=a[1])&&n.push(new gn(i,u,s)),(i=a[0])&&n.push(new gn(i,o,u))}return this}function c8(e){var n=[],r=[],a;for(this._root&&n.push(new gn(this._root,this._x0,this._x1));a=n.pop();){var i=a.node;if(i.length){var o,s=a.x0,u=a.x1,l=(s+u)/2;(o=i[0])&&n.push(new gn(o,s,l)),(o=i[1])&&n.push(new gn(o,l,u))}r.push(a)}for(;a=r.pop();)e(a.node,a.x0,a.x1);return this}function d8(e){return e[0]}function f8(e){return arguments.length?(this._x=e,this):this._x}function u_(e,n){var r=new Xc(n??d8,NaN,NaN);return e==null?r:r.addAll(e)}function Xc(e,n,r){this._x=e,this._x0=n,this._x1=r,this._root=void 0}function $v(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var ft=u_.prototype=Xc.prototype;ft.copy=function(){var e=new Xc(this._x,this._x0,this._x1),n=this._root,r,a;if(!n)return e;if(!n.length)return e._root=$v(n),e;for(r=[{source:n,target:e._root=new Array(2)}];n=r.pop();)for(var i=0;i<2;++i)(a=n.source[i])&&(a.length?r.push({source:a,target:n.target[i]=new Array(2)}):n.target[i]=$v(a));return e};ft.add=Q9;ft.addAll=e8;ft.cover=t8;ft.data=n8;ft.extent=i8;ft.find=r8;ft.remove=a8;ft.removeAll=o8;ft.root=s8;ft.size=u8;ft.visit=l8;ft.visitAfter=c8;ft.x=f8;function m8(e){const n=+this._x.call(null,e),r=+this._y.call(null,e);return l_(this.cover(n,r),n,r,e)}function l_(e,n,r,a){if(isNaN(n)||isNaN(r))return e;var i,o=e._root,s={data:a},u=e._x0,l=e._y0,c=e._x1,d=e._y1,f,m,p,h,g,b,v,$;if(!o)return e._root=s,e;for(;o.length;)if((g=n>=(f=(u+c)/2))?u=f:c=f,(b=r>=(m=(l+d)/2))?l=m:d=m,i=o,!(o=o[v=b<<1|g]))return i[v]=s,e;if(p=+e._x.call(null,o.data),h=+e._y.call(null,o.data),n===p&&r===h)return s.next=o,i?i[v]=s:e._root=s,e;do i=i?i[v]=new Array(4):e._root=new Array(4),(g=n>=(f=(u+c)/2))?u=f:c=f,(b=r>=(m=(l+d)/2))?l=m:d=m;while((v=b<<1|g)===($=(h>=m)<<1|p>=f));return i[$]=o,i[v]=s,e}function p8(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n),a=new Float64Array(n);let i=1/0,o=i,s=-i,u=s;for(let l=0,c,d,f;l<n;++l){if(isNaN(d=+this._x.call(null,c=e[l]))||isNaN(f=+this._y.call(null,c))){r[l]=NaN;continue}r[l]=d,a[l]=f,d<i&&(i=d),d>s&&(s=d),f<o&&(o=f),f>u&&(u=f)}if(i>s||o>u)return this;this.cover(i,o).cover(s,u);for(let l=0;l<n;++l)l_(this,r[l],a[l],e[l]);return this}function h8(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,a=this._y0,i=this._x1,o=this._y1;if(isNaN(r))i=(r=Math.floor(e))+1,o=(a=Math.floor(n))+1;else{for(var s=i-r||1,u=this._root,l,c;r>e||e>=i||a>n||n>=o;)switch(c=(n<a)<<1|e<r,l=new Array(4),l[c]=u,u=l,s*=2,c){case 0:i=r+s,o=a+s;break;case 1:r=i-s,o=a+s;break;case 2:i=r+s,a=o-s;break;case 3:r=i-s,a=o-s;break}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=a,this._x1=i,this._y1=o,this}function v8(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function g8(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function st(e,n,r,a,i){this.node=e,this.x0=n,this.y0=r,this.x1=a,this.y1=i}function b8(e,n,r){var a,i=this._x0,o=this._y0,s,u,l,c,d=this._x1,f=this._y1,m=[],p=this._root,h,g;for(p&&m.push(new st(p,i,o,d,f)),r==null?r=1/0:(i=e-r,o=n-r,d=e+r,f=n+r,r*=r);h=m.pop();)if(!(!(p=h.node)||(s=h.x0)>d||(u=h.y0)>f||(l=h.x1)<i||(c=h.y1)<o))if(p.length){var b=(s+l)/2,v=(u+c)/2;m.push(new st(p[3],b,v,l,c),new st(p[2],s,v,b,c),new st(p[1],b,u,l,v),new st(p[0],s,u,b,v)),(g=(n>=v)<<1|e>=b)&&(h=m[m.length-1],m[m.length-1]=m[m.length-1-g],m[m.length-1-g]=h)}else{var $=e-+this._x.call(null,p.data),S=n-+this._y.call(null,p.data),k=$*$+S*S;if(k<r){var w=Math.sqrt(r=k);i=e-w,o=n-w,d=e+w,f=n+w,a=p.data}}return a}function _8(e){if(isNaN(d=+this._x.call(null,e))||isNaN(f=+this._y.call(null,e)))return this;var n,r=this._root,a,i,o,s=this._x0,u=this._y0,l=this._x1,c=this._y1,d,f,m,p,h,g,b,v;if(!r)return this;if(r.length)for(;;){if((h=d>=(m=(s+l)/2))?s=m:l=m,(g=f>=(p=(u+c)/2))?u=p:c=p,n=r,!(r=r[b=g<<1|h]))return this;if(!r.length)break;(n[b+1&3]||n[b+2&3]||n[b+3&3])&&(a=n,v=b)}for(;r.data!==e;)if(i=r,!(r=r.next))return this;return(o=r.next)&&delete r.next,i?(o?i.next=o:delete i.next,this):n?(o?n[b]=o:delete n[b],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(a?a[v]=r:this._root=r),this):(this._root=o,this)}function y8(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function $8(){return this._root}function k8(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function w8(e){var n=[],r,a=this._root,i,o,s,u,l;for(a&&n.push(new st(a,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!e(a=r.node,o=r.x0,s=r.y0,u=r.x1,l=r.y1)&&a.length){var c=(o+u)/2,d=(s+l)/2;(i=a[3])&&n.push(new st(i,c,d,u,l)),(i=a[2])&&n.push(new st(i,o,d,c,l)),(i=a[1])&&n.push(new st(i,c,s,u,d)),(i=a[0])&&n.push(new st(i,o,s,c,d))}return this}function x8(e){var n=[],r=[],a;for(this._root&&n.push(new st(this._root,this._x0,this._y0,this._x1,this._y1));a=n.pop();){var i=a.node;if(i.length){var o,s=a.x0,u=a.y0,l=a.x1,c=a.y1,d=(s+l)/2,f=(u+c)/2;(o=i[0])&&n.push(new st(o,s,u,d,f)),(o=i[1])&&n.push(new st(o,d,u,l,f)),(o=i[2])&&n.push(new st(o,s,f,d,c)),(o=i[3])&&n.push(new st(o,d,f,l,c))}r.push(a)}for(;a=r.pop();)e(a.node,a.x0,a.y0,a.x1,a.y1);return this}function I8(e){return e[0]}function S8(e){return arguments.length?(this._x=e,this):this._x}function z8(e){return e[1]}function O8(e){return arguments.length?(this._y=e,this):this._y}function c_(e,n,r){var a=new Yc(n??I8,r??z8,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function Yc(e,n,r,a,i,o){this._x=e,this._y=n,this._x0=r,this._y0=a,this._x1=i,this._y1=o,this._root=void 0}function kv(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var ut=c_.prototype=Yc.prototype;ut.copy=function(){var e=new Yc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,r,a;if(!n)return e;if(!n.length)return e._root=kv(n),e;for(r=[{source:n,target:e._root=new Array(4)}];n=r.pop();)for(var i=0;i<4;++i)(a=n.source[i])&&(a.length?r.push({source:a,target:n.target[i]=new Array(4)}):n.target[i]=kv(a));return e};ut.add=m8;ut.addAll=p8;ut.cover=h8;ut.data=v8;ut.extent=g8;ut.find=b8;ut.remove=_8;ut.removeAll=y8;ut.root=$8;ut.size=k8;ut.visit=w8;ut.visitAfter=x8;ut.x=S8;ut.y=O8;function P8(e){const n=+this._x.call(null,e),r=+this._y.call(null,e),a=+this._z.call(null,e);return d_(this.cover(n,r,a),n,r,a,e)}function d_(e,n,r,a,i){if(isNaN(n)||isNaN(r)||isNaN(a))return e;var o,s=e._root,u={data:i},l=e._x0,c=e._y0,d=e._z0,f=e._x1,m=e._y1,p=e._z1,h,g,b,v,$,S,k,w,I,x,P;if(!s)return e._root=u,e;for(;s.length;)if((k=n>=(h=(l+f)/2))?l=h:f=h,(w=r>=(g=(c+m)/2))?c=g:m=g,(I=a>=(b=(d+p)/2))?d=b:p=b,o=s,!(s=s[x=I<<2|w<<1|k]))return o[x]=u,e;if(v=+e._x.call(null,s.data),$=+e._y.call(null,s.data),S=+e._z.call(null,s.data),n===v&&r===$&&a===S)return u.next=s,o?o[x]=u:e._root=u,e;do o=o?o[x]=new Array(8):e._root=new Array(8),(k=n>=(h=(l+f)/2))?l=h:f=h,(w=r>=(g=(c+m)/2))?c=g:m=g,(I=a>=(b=(d+p)/2))?d=b:p=b;while((x=I<<2|w<<1|k)===(P=(S>=b)<<2|($>=g)<<1|v>=h));return o[P]=s,o[x]=u,e}function U8(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n),a=new Float64Array(n),i=new Float64Array(n);let o=1/0,s=1/0,u=1/0,l=-1/0,c=-1/0,d=-1/0;for(let f=0,m,p,h,g;f<n;++f)isNaN(p=+this._x.call(null,m=e[f]))||isNaN(h=+this._y.call(null,m))||isNaN(g=+this._z.call(null,m))||(r[f]=p,a[f]=h,i[f]=g,p<o&&(o=p),p>l&&(l=p),h<s&&(s=h),h>c&&(c=h),g<u&&(u=g),g>d&&(d=g));if(o>l||s>c||u>d)return this;this.cover(o,s,u).cover(l,c,d);for(let f=0;f<n;++f)d_(this,r[f],a[f],i[f],e[f]);return this}function N8(e,n,r){if(isNaN(e=+e)||isNaN(n=+n)||isNaN(r=+r))return this;var a=this._x0,i=this._y0,o=this._z0,s=this._x1,u=this._y1,l=this._z1;if(isNaN(a))s=(a=Math.floor(e))+1,u=(i=Math.floor(n))+1,l=(o=Math.floor(r))+1;else{for(var c=s-a||1,d=this._root,f,m;a>e||e>=s||i>n||n>=u||o>r||r>=l;)switch(m=(r<o)<<2|(n<i)<<1|e<a,f=new Array(8),f[m]=d,d=f,c*=2,m){case 0:s=a+c,u=i+c,l=o+c;break;case 1:a=s-c,u=i+c,l=o+c;break;case 2:s=a+c,i=u-c,l=o+c;break;case 3:a=s-c,i=u-c,l=o+c;break;case 4:s=a+c,u=i+c,o=l-c;break;case 5:a=s-c,u=i+c,o=l-c;break;case 6:s=a+c,i=u-c,o=l-c;break;case 7:a=s-c,i=u-c,o=l-c;break}this._root&&this._root.length&&(this._root=d)}return this._x0=a,this._y0=i,this._z0=o,this._x1=s,this._y1=u,this._z1=l,this}function j8(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function T8(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function xe(e,n,r,a,i,o,s){this.node=e,this.x0=n,this.y0=r,this.z0=a,this.x1=i,this.y1=o,this.z1=s}function E8(e,n,r,a){var i,o=this._x0,s=this._y0,u=this._z0,l,c,d,f,m,p,h=this._x1,g=this._y1,b=this._z1,v=[],$=this._root,S,k;for($&&v.push(new xe($,o,s,u,h,g,b)),a==null?a=1/0:(o=e-a,s=n-a,u=r-a,h=e+a,g=n+a,b=r+a,a*=a);S=v.pop();)if(!(!($=S.node)||(l=S.x0)>h||(c=S.y0)>g||(d=S.z0)>b||(f=S.x1)<o||(m=S.y1)<s||(p=S.z1)<u))if($.length){var w=(l+f)/2,I=(c+m)/2,x=(d+p)/2;v.push(new xe($[7],w,I,x,f,m,p),new xe($[6],l,I,x,w,m,p),new xe($[5],w,c,x,f,I,p),new xe($[4],l,c,x,w,I,p),new xe($[3],w,I,d,f,m,x),new xe($[2],l,I,d,w,m,x),new xe($[1],w,c,d,f,I,x),new xe($[0],l,c,d,w,I,x)),(k=(r>=x)<<2|(n>=I)<<1|e>=w)&&(S=v[v.length-1],v[v.length-1]=v[v.length-1-k],v[v.length-1-k]=S)}else{var P=e-+this._x.call(null,$.data),Z=n-+this._y.call(null,$.data),E=r-+this._z.call(null,$.data),F=P*P+Z*Z+E*E;if(F<a){var W=Math.sqrt(a=F);o=e-W,s=n-W,u=r-W,h=e+W,g=n+W,b=r+W,i=$.data}}return i}const Z8=(e,n,r,a,i,o)=>Math.sqrt((e-a)**2+(n-i)**2+(r-o)**2);function D8(e,n,r,a){const i=[],o=e-a,s=n-a,u=r-a,l=e+a,c=n+a,d=r+a;return this.visit((f,m,p,h,g,b,v)=>{if(!f.length)do{const $=f.data;Z8(e,n,r,this._x($),this._y($),this._z($))<=a&&i.push($)}while(f=f.next);return m>l||p>c||h>d||g<o||b<s||v<u}),i}function A8(e){if(isNaN(m=+this._x.call(null,e))||isNaN(p=+this._y.call(null,e))||isNaN(h=+this._z.call(null,e)))return this;var n,r=this._root,a,i,o,s=this._x0,u=this._y0,l=this._z0,c=this._x1,d=this._y1,f=this._z1,m,p,h,g,b,v,$,S,k,w,I;if(!r)return this;if(r.length)for(;;){if(($=m>=(g=(s+c)/2))?s=g:c=g,(S=p>=(b=(u+d)/2))?u=b:d=b,(k=h>=(v=(l+f)/2))?l=v:f=v,n=r,!(r=r[w=k<<2|S<<1|$]))return this;if(!r.length)break;(n[w+1&7]||n[w+2&7]||n[w+3&7]||n[w+4&7]||n[w+5&7]||n[w+6&7]||n[w+7&7])&&(a=n,I=w)}for(;r.data!==e;)if(i=r,!(r=r.next))return this;return(o=r.next)&&delete r.next,i?(o?i.next=o:delete i.next,this):n?(o?n[w]=o:delete n[w],(r=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&r===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!r.length&&(a?a[I]=r:this._root=r),this):(this._root=o,this)}function C8(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function R8(){return this._root}function M8(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function L8(e){var n=[],r,a=this._root,i,o,s,u,l,c,d;for(a&&n.push(new xe(a,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));r=n.pop();)if(!e(a=r.node,o=r.x0,s=r.y0,u=r.z0,l=r.x1,c=r.y1,d=r.z1)&&a.length){var f=(o+l)/2,m=(s+c)/2,p=(u+d)/2;(i=a[7])&&n.push(new xe(i,f,m,p,l,c,d)),(i=a[6])&&n.push(new xe(i,o,m,p,f,c,d)),(i=a[5])&&n.push(new xe(i,f,s,p,l,m,d)),(i=a[4])&&n.push(new xe(i,o,s,p,f,m,d)),(i=a[3])&&n.push(new xe(i,f,m,u,l,c,p)),(i=a[2])&&n.push(new xe(i,o,m,u,f,c,p)),(i=a[1])&&n.push(new xe(i,f,s,u,l,m,p)),(i=a[0])&&n.push(new xe(i,o,s,u,f,m,p))}return this}function F8(e){var n=[],r=[],a;for(this._root&&n.push(new xe(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));a=n.pop();){var i=a.node;if(i.length){var o,s=a.x0,u=a.y0,l=a.z0,c=a.x1,d=a.y1,f=a.z1,m=(s+c)/2,p=(u+d)/2,h=(l+f)/2;(o=i[0])&&n.push(new xe(o,s,u,l,m,p,h)),(o=i[1])&&n.push(new xe(o,m,u,l,c,p,h)),(o=i[2])&&n.push(new xe(o,s,p,l,m,d,h)),(o=i[3])&&n.push(new xe(o,m,p,l,c,d,h)),(o=i[4])&&n.push(new xe(o,s,u,h,m,p,f)),(o=i[5])&&n.push(new xe(o,m,u,h,c,p,f)),(o=i[6])&&n.push(new xe(o,s,p,h,m,d,f)),(o=i[7])&&n.push(new xe(o,m,p,h,c,d,f))}r.push(a)}for(;a=r.pop();)e(a.node,a.x0,a.y0,a.z0,a.x1,a.y1,a.z1);return this}function J8(e){return e[0]}function q8(e){return arguments.length?(this._x=e,this):this._x}function V8(e){return e[1]}function W8(e){return arguments.length?(this._y=e,this):this._y}function H8(e){return e[2]}function G8(e){return arguments.length?(this._z=e,this):this._z}function f_(e,n,r,a){var i=new Qc(n??J8,r??V8,a??H8,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function Qc(e,n,r,a,i,o,s,u,l){this._x=e,this._y=n,this._z=r,this._x0=a,this._y0=i,this._z0=o,this._x1=s,this._y1=u,this._z1=l,this._root=void 0}function wv(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var Ke=f_.prototype=Qc.prototype;Ke.copy=function(){var e=new Qc(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root,r,a;if(!n)return e;if(!n.length)return e._root=wv(n),e;for(r=[{source:n,target:e._root=new Array(8)}];n=r.pop();)for(var i=0;i<8;++i)(a=n.source[i])&&(a.length?r.push({source:a,target:n.target[i]=new Array(8)}):n.target[i]=wv(a));return e};Ke.add=P8;Ke.addAll=U8;Ke.cover=N8;Ke.data=j8;Ke.extent=T8;Ke.find=E8;Ke.findAllWithinRadius=D8;Ke.remove=A8;Ke.removeAll=C8;Ke.root=R8;Ke.size=M8;Ke.visit=L8;Ke.visitAfter=F8;Ke.x=q8;Ke.y=W8;Ke.z=G8;function hn(e){return function(){return e}}function fn(e){return(e()-.5)*1e-6}function B8(e){return e.index}function xv(e,n){var r=e.get(n);if(!r)throw new Error("node not found: "+n);return r}function K8(e){var n=B8,r=m,a,i=hn(30),o,s,u,l,c,d,f=1;e==null&&(e=[]);function m(v){return 1/Math.min(l[v.source.index],l[v.target.index])}function p(v){for(var $=0,S=e.length;$<f;++$)for(var k=0,w,I,x,P=0,Z=0,E=0,F,W;k<S;++k)w=e[k],I=w.source,x=w.target,P=x.x+x.vx-I.x-I.vx||fn(d),u>1&&(Z=x.y+x.vy-I.y-I.vy||fn(d)),u>2&&(E=x.z+x.vz-I.z-I.vz||fn(d)),F=Math.sqrt(P*P+Z*Z+E*E),F=(F-o[k])/F*v*a[k],P*=F,Z*=F,E*=F,x.vx-=P*(W=c[k]),u>1&&(x.vy-=Z*W),u>2&&(x.vz-=E*W),I.vx+=P*(W=1-W),u>1&&(I.vy+=Z*W),u>2&&(I.vz+=E*W)}function h(){if(s){var v,$=s.length,S=e.length,k=new Map(s.map((I,x)=>[n(I,x,s),I])),w;for(v=0,l=new Array($);v<S;++v)w=e[v],w.index=v,typeof w.source!="object"&&(w.source=xv(k,w.source)),typeof w.target!="object"&&(w.target=xv(k,w.target)),l[w.source.index]=(l[w.source.index]||0)+1,l[w.target.index]=(l[w.target.index]||0)+1;for(v=0,c=new Array(S);v<S;++v)w=e[v],c[v]=l[w.source.index]/(l[w.source.index]+l[w.target.index]);a=new Array(S),g(),o=new Array(S),b()}}function g(){if(s)for(var v=0,$=e.length;v<$;++v)a[v]=+r(e[v],v,e)}function b(){if(s)for(var v=0,$=e.length;v<$;++v)o[v]=+i(e[v],v,e)}return p.initialize=function(v,...$){s=v,d=$.find(S=>typeof S=="function")||Math.random,u=$.find(S=>[1,2,3].includes(S))||2,h()},p.links=function(v){return arguments.length?(e=v,h(),p):e},p.id=function(v){return arguments.length?(n=v,p):n},p.iterations=function(v){return arguments.length?(f=+v,p):f},p.strength=function(v){return arguments.length?(r=typeof v=="function"?v:hn(+v),g(),p):r},p.distance=function(v){return arguments.length?(i=typeof v=="function"?v:hn(+v),b(),p):i},p}const X8=1664525,Y8=1013904223,Iv=4294967296;function Q8(){let e=1;return()=>(e=(X8*e+Y8)%Iv)/Iv}var Sv=3;function El(e){return e.x}function zv(e){return e.y}function ej(e){return e.z}var tj=10,nj=Math.PI*(3-Math.sqrt(5)),ij=Math.PI*20/(9+Math.sqrt(221));function rj(e,n){n=n||2;var r=Math.min(Sv,Math.max(1,Math.round(n))),a,i=1,o=.001,s=1-Math.pow(o,1/300),u=0,l=.6,c=new Map,d=Cc(p),f=ia("tick","end"),m=Q8();e==null&&(e=[]);function p(){h(),f.call("tick",a),i<o&&(d.stop(),f.call("end",a))}function h(v){var $,S=e.length,k;v===void 0&&(v=1);for(var w=0;w<v;++w)for(i+=(u-i)*s,c.forEach(function(I){I(i)}),$=0;$<S;++$)k=e[$],k.fx==null?k.x+=k.vx*=l:(k.x=k.fx,k.vx=0),r>1&&(k.fy==null?k.y+=k.vy*=l:(k.y=k.fy,k.vy=0)),r>2&&(k.fz==null?k.z+=k.vz*=l:(k.z=k.fz,k.vz=0));return a}function g(){for(var v=0,$=e.length,S;v<$;++v){if(S=e[v],S.index=v,S.fx!=null&&(S.x=S.fx),S.fy!=null&&(S.y=S.fy),S.fz!=null&&(S.z=S.fz),isNaN(S.x)||r>1&&isNaN(S.y)||r>2&&isNaN(S.z)){var k=tj*(r>2?Math.cbrt(.5+v):r>1?Math.sqrt(.5+v):v),w=v*nj,I=v*ij;r===1?S.x=k:r===2?(S.x=k*Math.cos(w),S.y=k*Math.sin(w)):(S.x=k*Math.sin(w)*Math.cos(I),S.y=k*Math.cos(w),S.z=k*Math.sin(w)*Math.sin(I))}(isNaN(S.vx)||r>1&&isNaN(S.vy)||r>2&&isNaN(S.vz))&&(S.vx=0,r>1&&(S.vy=0),r>2&&(S.vz=0))}}function b(v){return v.initialize&&v.initialize(e,m,r),v}return g(),a={tick:h,restart:function(){return d.restart(p),a},stop:function(){return d.stop(),a},numDimensions:function(v){return arguments.length?(r=Math.min(Sv,Math.max(1,Math.round(v))),c.forEach(b),a):r},nodes:function(v){return arguments.length?(e=v,g(),c.forEach(b),a):e},alpha:function(v){return arguments.length?(i=+v,a):i},alphaMin:function(v){return arguments.length?(o=+v,a):o},alphaDecay:function(v){return arguments.length?(s=+v,a):+s},alphaTarget:function(v){return arguments.length?(u=+v,a):u},velocityDecay:function(v){return arguments.length?(l=1-v,a):1-l},randomSource:function(v){return arguments.length?(m=v,c.forEach(b),a):m},force:function(v,$){return arguments.length>1?($==null?c.delete(v):c.set(v,b($)),a):c.get(v)},find:function(){var v=Array.prototype.slice.call(arguments),$=v.shift()||0,S=(r>1?v.shift():null)||0,k=(r>2?v.shift():null)||0,w=v.shift()||1/0,I=0,x=e.length,P,Z,E,F,W,Q;for(w*=w,I=0;I<x;++I)W=e[I],P=$-W.x,Z=S-(W.y||0),E=k-(W.z||0),F=P*P+Z*Z+E*E,F<w&&(Q=W,w=F);return Q},on:function(v,$){return arguments.length>1?(f.on(v,$),a):f.on(v)}}}function aj(){var e,n,r,a,i,o=hn(-30),s,u=1,l=1/0,c=.81;function d(h){var g,b=e.length,v=(n===1?u_(e,El):n===2?c_(e,El,zv):n===3?f_(e,El,zv,ej):null).visitAfter(m);for(i=h,g=0;g<b;++g)r=e[g],v.visit(p)}function f(){if(e){var h,g=e.length,b;for(s=new Array(g),h=0;h<g;++h)b=e[h],s[b.index]=+o(b,h,e)}}function m(h){var g=0,b,v,$=0,S,k,w,I,x=h.length;if(x){for(S=k=w=I=0;I<x;++I)(b=h[I])&&(v=Math.abs(b.value))&&(g+=b.value,$+=v,S+=v*(b.x||0),k+=v*(b.y||0),w+=v*(b.z||0));g*=Math.sqrt(4/x),h.x=S/$,n>1&&(h.y=k/$),n>2&&(h.z=w/$)}else{b=h,b.x=b.data.x,n>1&&(b.y=b.data.y),n>2&&(b.z=b.data.z);do g+=s[b.data.index];while(b=b.next)}h.value=g}function p(h,g,b,v,$){if(!h.value)return!0;var S=[b,v,$][n-1],k=h.x-r.x,w=n>1?h.y-r.y:0,I=n>2?h.z-r.z:0,x=S-g,P=k*k+w*w+I*I;if(x*x/c<P)return P<l&&(k===0&&(k=fn(a),P+=k*k),n>1&&w===0&&(w=fn(a),P+=w*w),n>2&&I===0&&(I=fn(a),P+=I*I),P<u&&(P=Math.sqrt(u*P)),r.vx+=k*h.value*i/P,n>1&&(r.vy+=w*h.value*i/P),n>2&&(r.vz+=I*h.value*i/P)),!0;if(h.length||P>=l)return;(h.data!==r||h.next)&&(k===0&&(k=fn(a),P+=k*k),n>1&&w===0&&(w=fn(a),P+=w*w),n>2&&I===0&&(I=fn(a),P+=I*I),P<u&&(P=Math.sqrt(u*P)));do h.data!==r&&(x=s[h.data.index]*i/P,r.vx+=k*x,n>1&&(r.vy+=w*x),n>2&&(r.vz+=I*x));while(h=h.next)}return d.initialize=function(h,...g){e=h,a=g.find(b=>typeof b=="function")||Math.random,n=g.find(b=>[1,2,3].includes(b))||2,f()},d.strength=function(h){return arguments.length?(o=typeof h=="function"?h:hn(+h),f(),d):o},d.distanceMin=function(h){return arguments.length?(u=h*h,d):Math.sqrt(u)},d.distanceMax=function(h){return arguments.length?(l=h*h,d):Math.sqrt(l)},d.theta=function(h){return arguments.length?(c=h*h,d):Math.sqrt(c)},d}function oj(e,n,r,a){var i,o,s=hn(.1),u,l;typeof e!="function"&&(e=hn(+e)),n==null&&(n=0),r==null&&(r=0),a==null&&(a=0);function c(f){for(var m=0,p=i.length;m<p;++m){var h=i[m],g=h.x-n||1e-6,b=(h.y||0)-r||1e-6,v=(h.z||0)-a||1e-6,$=Math.sqrt(g*g+b*b+v*v),S=(l[m]-$)*u[m]*f/$;h.vx+=g*S,o>1&&(h.vy+=b*S),o>2&&(h.vz+=v*S)}}function d(){if(i){var f,m=i.length;for(u=new Array(m),l=new Array(m),f=0;f<m;++f)l[f]=+e(i[f],f,i),u[f]=isNaN(l[f])?0:+s(i[f],f,i)}}return c.initialize=function(f,...m){i=f,o=m.find(p=>[1,2,3].includes(p))||2,d()},c.strength=function(f){return arguments.length?(s=typeof f=="function"?f:hn(+f),d(),c):s},c.radius=function(f){return arguments.length?(e=typeof f=="function"?f:hn(+f),d(),c):e},c.x=function(f){return arguments.length?(n=+f,c):n},c.y=function(f){return arguments.length?(r=+f,c):r},c.z=function(f){return arguments.length?(a=+f,c):a},c}const{abs:fr,cos:dn,sin:$i,acos:sj,atan2:mr,sqrt:Pn,pow:xt}=Math;function pr(e){return e<0?-xt(-e,1/3):xt(e,1/3)}const m_=Math.PI,fo=2*m_,Un=m_/2,uj=1e-6,Zl=Number.MAX_SAFE_INTEGER||9007199254740991,Dl=Number.MIN_SAFE_INTEGER||-9007199254740991,lj={x:0,y:0,z:0},M={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const r=n(e);let a=r.x*r.x+r.y*r.y;return typeof r.z<"u"&&(a+=r.z*r.z),Pn(a)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];const a=n.length-1;if(e===1)return n[a].t=1,n[a];const i=1-e;let o=n;if(a===0)return n[0].t=e,n[0];if(a===1){const u={x:i*o[0].x+e*o[1].x,y:i*o[0].y+e*o[1].y,t:e};return r&&(u.z=i*o[0].z+e*o[1].z),u}if(a<4){let u=i*i,l=e*e,c,d,f,m=0;a===2?(o=[o[0],o[1],o[2],lj],c=u,d=i*e*2,f=l):a===3&&(c=u*i,d=u*e*3,f=i*l*3,m=e*l);const p={x:c*o[0].x+d*o[1].x+f*o[2].x+m*o[3].x,y:c*o[0].y+d*o[1].y+f*o[2].y+m*o[3].y,t:e};return r&&(p.z=c*o[0].z+d*o[1].z+f*o[2].z+m*o[3].z),p}const s=JSON.parse(JSON.stringify(n));for(;s.length>1;){for(let u=0;u<s.length-1;u++)s[u]={x:s[u].x+(s[u+1].x-s[u].x)*e,y:s[u].y+(s[u+1].y-s[u].y)*e},typeof s[u].z<"u"&&(s[u].z=s[u].z+(s[u+1].z-s[u].z)*e);s.splice(s.length-1,1)}return s[0].t=e,s[0]},computeWithRatios:function(e,n,r,a){const i=1-e,o=r,s=n;let u=o[0],l=o[1],c=o[2],d=o[3],f;if(u*=i,l*=e,s.length===2)return f=u+l,{x:(u*s[0].x+l*s[1].x)/f,y:(u*s[0].y+l*s[1].y)/f,z:a?(u*s[0].z+l*s[1].z)/f:!1,t:e};if(u*=i,l*=2*i,c*=e*e,s.length===3)return f=u+l+c,{x:(u*s[0].x+l*s[1].x+c*s[2].x)/f,y:(u*s[0].y+l*s[1].y+c*s[2].y)/f,z:a?(u*s[0].z+l*s[1].z+c*s[2].z)/f:!1,t:e};if(u*=i,l*=1.5*i,c*=3*i,d*=e*e*e,s.length===4)return f=u+l+c+d,{x:(u*s[0].x+l*s[1].x+c*s[2].x+d*s[3].x)/f,y:(u*s[0].y+l*s[1].y+c*s[2].y+d*s[3].y)/f,z:a?(u*s[0].z+l*s[1].z+c*s[2].z+d*s[3].z)/f:!1,t:e}},derive:function(e,n){const r=[];for(let a=e,i=a.length,o=i-1;i>1;i--,o--){const s=[];for(let u=0,l;u<o;u++)l={x:o*(a[u+1].x-a[u].x),y:o*(a[u+1].y-a[u].y)},n&&(l.z=o*(a[u+1].z-a[u].z)),s.push(l);r.push(s),a=s}return r},between:function(e,n,r){return n<=e&&e<=r||M.approximately(e,n)||M.approximately(e,r)},approximately:function(e,n,r){return fr(e-n)<=(r||uj)},length:function(e){const r=M.Tvalues.length;let a=0;for(let i=0,o;i<r;i++)o=.5*M.Tvalues[i]+.5,a+=M.Cvalues[i]*M.arcfn(o,e);return .5*a},map:function(e,n,r,a,i){const o=r-n,s=i-a,u=e-n,l=u/o;return a+s*l},lerp:function(e,n,r){const a={x:n.x+e*(r.x-n.x),y:n.y+e*(r.y-n.y)};return n.z!==void 0&&r.z!==void 0&&(a.z=n.z+e*(r.z-n.z)),a},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map(M.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,r){const a=n.x-e.x,i=n.y-e.y,o=r.x-e.x,s=r.y-e.y,u=a*s-i*o,l=a*o+i*s;return mr(u,l)},round:function(e,n){const r=""+e,a=r.indexOf(".");return parseFloat(r.substring(0,a+1+n))},dist:function(e,n){const r=e.x-n.x,a=e.y-n.y;return Pn(r*r+a*a)},closest:function(e,n){let r=xt(2,63),a,i;return e.forEach(function(o,s){i=M.dist(n,o),i<r&&(r=i,a=s)}),{mdist:r,mpos:a}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=xt(e,n)+xt(1-e,n),a=r-1;return fr(a/r)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=xt(1-e,n),a=xt(e,n)+r;return r/a},lli8:function(e,n,r,a,i,o,s,u){const l=(e*a-n*r)*(i-s)-(e-r)*(i*u-o*s),c=(e*a-n*r)*(o-u)-(n-a)*(i*u-o*s),d=(e-r)*(o-u)-(n-a)*(i-s);return d==0?!1:{x:l/d,y:c/d}},lli4:function(e,n,r,a){const i=e.x,o=e.y,s=n.x,u=n.y,l=r.x,c=r.y,d=a.x,f=a.y;return M.lli8(i,o,s,u,l,c,d,f)},lli:function(e,n){return M.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new Ue(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=Zl,r=Zl,a=Dl,i=Dl;return e.forEach(function(o){const s=o.bbox();n>s.x.min&&(n=s.x.min),r>s.y.min&&(r=s.y.min),a<s.x.max&&(a=s.x.max),i<s.y.max&&(i=s.y.max)}),{x:{min:n,mid:(n+a)/2,max:a,size:a-n},y:{min:r,mid:(r+i)/2,max:i,size:i-r}}},shapeintersections:function(e,n,r,a,i){if(!M.bboxoverlap(n,a))return[];const o=[],s=[e.startcap,e.forward,e.back,e.endcap],u=[r.startcap,r.forward,r.back,r.endcap];return s.forEach(function(l){l.virtual||u.forEach(function(c){if(c.virtual)return;const d=l.intersects(c,i);d.length>0&&(d.c1=l,d.c2=c,d.s1=e,d.s2=r,o.push(d))})}),o},makeshape:function(e,n,r){const a=n.points.length,i=e.points.length,o=M.makeline(n.points[a-1],e.points[0]),s=M.makeline(e.points[i-1],n.points[0]),u={startcap:o,forward:e,back:n,endcap:s,bbox:M.findbbox([o,e,n,s])};return u.intersections=function(l){return M.shapeintersections(u,u.bbox,l,l.bbox,r)},u},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let a=Zl,i=Dl,o,s;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let u=0,l=r.length;u<l;u++)o=r[u],s=e.get(o),s[n]<a&&(a=s[n]),s[n]>i&&(i=s[n]);return{min:a,mid:(a+i)/2,max:i,size:i-a}},align:function(e,n){const r=n.p1.x,a=n.p1.y,i=-mr(n.p2.y-a,n.p2.x-r),o=function(s){return{x:(s.x-r)*dn(i)-(s.y-a)*$i(i),y:(s.x-r)*$i(i)+(s.y-a)*dn(i)}};return e.map(o)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const r=e.length-1,a=M.align(e,n),i=function(x){return 0<=x&&x<=1};if(r===2){const x=a[0].y,P=a[1].y,Z=a[2].y,E=x-2*P+Z;if(E!==0){const F=-Pn(P*P-x*Z),W=-x+P,Q=-(F+W)/E,U=-(-F+W)/E;return[Q,U].filter(i)}else if(P!==Z&&E===0)return[(2*P-Z)/(2*P-2*Z)].filter(i);return[]}const o=a[0].y,s=a[1].y,u=a[2].y,l=a[3].y;let c=-o+3*s-3*u+l,d=3*o-6*s+3*u,f=-3*o+3*s,m=o;if(M.approximately(c,0)){if(M.approximately(d,0))return M.approximately(f,0)?[]:[-m/f].filter(i);const x=Pn(f*f-4*d*m),P=2*d;return[(x-f)/P,(-f-x)/P].filter(i)}d/=c,f/=c,m/=c;const p=(3*f-d*d)/3,h=p/3,g=(2*d*d*d-9*d*f+27*m)/27,b=g/2,v=b*b+h*h*h;let $,S,k,w,I;if(v<0){const x=-p/3,P=x*x*x,Z=Pn(P),E=-g/(2*Z),F=E<-1?-1:E>1?1:E,W=sj(F),Q=pr(Z),U=2*Q;return k=U*dn(W/3)-d/3,w=U*dn((W+fo)/3)-d/3,I=U*dn((W+2*fo)/3)-d/3,[k,w,I].filter(i)}else{if(v===0)return $=b<0?pr(-b):-pr(b),k=2*$-d/3,w=-$-d/3,[k,w].filter(i);{const x=Pn(v);return $=pr(-b+x),S=pr(b+x),[$-S-d/3].filter(i)}}},droots:function(e){if(e.length===3){const n=e[0],r=e[1],a=e[2],i=n-2*r+a;if(i!==0){const o=-Pn(r*r-n*a),s=-n+r,u=-(o+s)/i,l=-(-o+s)/i;return[u,l]}else if(r!==a&&i===0)return[(2*r-a)/(2*(r-a))];return[]}if(e.length===2){const n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,a,i){let o,s,u,l,c=0,d=0;const f=M.compute(e,n),m=M.compute(e,r),p=f.x*f.x+f.y*f.y;if(a?(o=Pn(xt(f.y*m.z-m.y*f.z,2)+xt(f.z*m.x-m.z*f.x,2)+xt(f.x*m.y-m.x*f.y,2)),s=xt(p+f.z*f.z,3/2)):(o=f.x*m.y-f.y*m.x,s=xt(p,3/2)),o===0||s===0)return{k:0,r:0};if(c=o/s,d=s/o,!i){const h=M.curvature(e-.001,n,r,a,!0).k,g=M.curvature(e+.001,n,r,a,!0).k;l=(g-c+(c-h))/2,u=(fr(g-c)+fr(c-h))/2}return{k:c,r:d,dk:l,adk:u}},inflections:function(e){if(e.length<4)return[];const n=M.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,a=n[3].x*n[1].y,i=n[1].x*n[2].y,o=n[3].x*n[2].y,s=18*(-3*r+2*a+3*i-o),u=18*(3*r-a-3*i),l=18*(i-r);if(M.approximately(s,0)){if(!M.approximately(u,0)){let m=-l/u;if(0<=m&&m<=1)return[m]}return[]}const c=2*s;if(M.approximately(c,0))return[];const d=u*u-4*s*l;if(d<0)return[];const f=Math.sqrt(d);return[(f-u)/c,-(u+f)/c].filter(function(m){return 0<=m&&m<=1})},bboxoverlap:function(e,n){const r=["x","y"],a=r.length;for(let i=0,o,s,u,l;i<a;i++)if(o=r[i],s=e[o].mid,u=n[o].mid,l=(e[o].size+n[o].size)/2,fr(s-u)>=l)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){const a=e.bbox(),i=n.bbox(),o=1e5,s=r||.5;if(a.x.size+a.y.size<s&&i.x.size+i.y.size<s)return[(o*(e._t1+e._t2)/2|0)/o+"/"+(o*(n._t1+n._t2)/2|0)/o];let u=e.split(.5),l=n.split(.5),c=[{left:u.left,right:l.left},{left:u.left,right:l.right},{left:u.right,right:l.right},{left:u.right,right:l.left}];c=c.filter(function(f){return M.bboxoverlap(f.left.bbox(),f.right.bbox())});let d=[];return c.length===0||(c.forEach(function(f){d=d.concat(M.pairiteration(f.left,f.right,s))}),d=d.filter(function(f,m){return d.indexOf(f)===m})),d},getccenter:function(e,n,r){const a=n.x-e.x,i=n.y-e.y,o=r.x-n.x,s=r.y-n.y,u=a*dn(Un)-i*$i(Un),l=a*$i(Un)+i*dn(Un),c=o*dn(Un)-s*$i(Un),d=o*$i(Un)+s*dn(Un),f=(e.x+n.x)/2,m=(e.y+n.y)/2,p=(n.x+r.x)/2,h=(n.y+r.y)/2,g=f+u,b=m+l,v=p+c,$=h+d,S=M.lli8(f,m,g,b,p,h,v,$),k=M.dist(S,e);let w=mr(e.y-S.y,e.x-S.x),I=mr(n.y-S.y,n.x-S.x),x=mr(r.y-S.y,r.x-S.x),P;return w<x?((w>I||I>x)&&(w+=fo),w>x&&(P=x,x=w,w=P)):x<I&&I<w?(P=x,x=w,w=P):x+=fo,S.s=w,S.e=x,S.r=k,S},numberSort:function(e,n){return e-n}};class Nr{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return M.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,r){return n+r})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var r=n[0].bbox(),a=1;a<n.length;a++)M.expandbox(r,n[a].bbox());return r}offset(n){const r=[];return this.curves.forEach(function(a){r.push(...a.offset(n))}),new Nr(r)}}const{abs:hr,min:Ov,max:Pv,cos:cj,sin:dj,acos:fj,sqrt:vr}=Math,mj=Math.PI;class Ue{constructor(n){let r=n&&n.forEach?n:Array.from(arguments).slice(),a=!1;if(typeof r[0]=="object"){a=r.length;const p=[];r.forEach(function(h){["x","y","z"].forEach(function(g){typeof h[g]<"u"&&p.push(h[g])})}),r=p}let i=!1;const o=r.length;if(a){if(a>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");i=!0}}else if(o!==6&&o!==8&&o!==9&&o!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!i&&(o===9||o===12)||n&&n[0]&&typeof n[0].z<"u",u=this.points=[];for(let p=0,h=s?3:2;p<o;p+=h){var l={x:r[p],y:r[p+1]};s&&(l.z=r[p+2]),u.push(l)}const c=this.order=u.length-1,d=this.dims=["x","y"];s&&d.push("z"),this.dimlen=d.length;const f=M.align(u,{p1:u[0],p2:u[c]}),m=M.dist(u[0],u[c]);this._linear=f.reduce((p,h)=>p+hr(h.y),0)<m/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,r,a,i){if(typeof i>"u"&&(i=.5),i===0)return new Ue(r,r,a);if(i===1)return new Ue(n,r,r);const o=Ue.getABC(2,n,r,a,i);return new Ue(n,o.A,a)}static cubicFromPoints(n,r,a,i,o){typeof i>"u"&&(i=.5);const s=Ue.getABC(3,n,r,a,i);typeof o>"u"&&(o=M.dist(r,s.C));const u=o*(1-i)/i,l=M.dist(n,a),c=(a.x-n.x)/l,d=(a.y-n.y)/l,f=o*c,m=o*d,p=u*c,h=u*d,g={x:r.x-f,y:r.y-m},b={x:r.x+p,y:r.y+h},v=s.A,$={x:v.x+(g.x-v.x)/(1-i),y:v.y+(g.y-v.y)/(1-i)},S={x:v.x+(b.x-v.x)/i,y:v.y+(b.y-v.y)/i},k={x:n.x+($.x-n.x)/i,y:n.y+($.y-n.y)/i},w={x:a.x+(S.x-a.x)/(1-i),y:a.y+(S.y-a.y)/(1-i)};return new Ue(n,k,w,a)}static getUtils(){return M}getUtils(){return Ue.getUtils()}static get PolyBezier(){return Nr}valueOf(){return this.toString()}toString(){return M.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,r=n[0].x,a=n[0].y,i=["M",r,a,this.order===2?"Q":"C"];for(let o=1,s=n.length;o<s;o++)i.push(n[o].x),i.push(n[o].y);return i.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,r){return""+r+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=M.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,r=M.angle(n[0],n[this.order],n[1]);this.clockwise=r>0}length(){return M.length(this.derivative.bind(this))}static getABC(n=2,r,a,i,o=.5){const s=M.projectionratio(o,n),u=1-s,l={x:s*r.x+u*i.x,y:s*r.y+u*i.y},c=M.abcratio(o,n);return{A:{x:a.x+(a.x-l.x)/c,y:a.y+(a.y-l.y)/c},B:a,C:l,S:r,E:i}}getABC(n,r){r=r||this.get(n);let a=this.points[0],i=this.points[this.order];return Ue.getABC(this.order,a,r,i,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let r=0,a,i;r<n;r++)i=r/(n-1),a=this.compute(i),a.t=i,this._lut.push(a);return this._lut}on(n,r){r=r||5;const a=this.getLUT(),i=[];for(let o=0,s,u=0;o<a.length;o++)s=a[o],M.dist(s,n)<r&&(i.push(s),u+=o/a.length);return i.length?t/=i.length:!1}project(n){const r=this.getLUT(),a=r.length-1,i=M.closest(r,n),o=i.mpos,s=(o-1)/a,u=(o+1)/a,l=.1/a;let c=i.mdist,d=s,f=d,m;c+=1;for(let p;d<u+l;d+=l)m=this.compute(d),p=M.dist(n,m),p<c&&(c=p,f=d);return f=f<0?0:f>1?1:f,m=this.compute(f),m.t=f,m.d=c,m}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?M.computeWithRatios(n,this.points,this.ratios,this._3d):M.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,r=[n[0]],a=n.length;for(let i=1,o,s;i<a;i++)o=n[i],s=n[i-1],r[i]={x:(a-i)/a*o.x+i/a*s.x,y:(a-i)/a*o.y+i/a*s.y};return r[a]=n[a-1],new Ue(r)}derivative(n){return M.compute(n,this.dpoints[0],this._3d)}dderivative(n){return M.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new Ue(M.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return M.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return M.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const r=this.derivative(n),a=vr(r.x*r.x+r.y*r.y);return{t:n,x:-r.y/a,y:r.x/a}}__normal3(n){const r=this.derivative(n),a=this.derivative(n+.01),i=vr(r.x*r.x+r.y*r.y+r.z*r.z),o=vr(a.x*a.x+a.y*a.y+a.z*a.z);r.x/=i,r.y/=i,r.z/=i,a.x/=o,a.y/=o,a.z/=o;const s={x:a.y*r.z-a.z*r.y,y:a.z*r.x-a.x*r.z,z:a.x*r.y-a.y*r.x},u=vr(s.x*s.x+s.y*s.y+s.z*s.z);s.x/=u,s.y/=u,s.z/=u;const l=[s.x*s.x,s.x*s.y-s.z,s.x*s.z+s.y,s.x*s.y+s.z,s.y*s.y,s.y*s.z-s.x,s.x*s.z-s.y,s.y*s.z+s.x,s.z*s.z];return{t:n,x:l[0]*r.x+l[1]*r.y+l[2]*r.z,y:l[3]*r.x+l[4]*r.y+l[5]*r.z,z:l[6]*r.x+l[7]*r.y+l[8]*r.z}}hull(n){let r=this.points,a=[],i=[],o=0;for(i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],this.order===3&&(i[o++]=r[3]);r.length>1;){a=[];for(let s=0,u,l=r.length-1;s<l;s++)u=M.lerp(n,r[s],r[s+1]),i[o++]=u,a.push(u);r=a}return i}split(n,r){if(n===0&&r)return this.split(r).left;if(r===1)return this.split(n).right;const a=this.hull(n),i={left:this.order===2?new Ue([a[0],a[3],a[5]]):new Ue([a[0],a[4],a[7],a[9]]),right:this.order===2?new Ue([a[5],a[4],a[2]]):new Ue([a[9],a[8],a[6],a[3]]),span:a};return i.left._t1=M.map(0,0,1,this._t1,this._t2),i.left._t2=M.map(n,0,1,this._t1,this._t2),i.right._t1=M.map(n,0,1,this._t1,this._t2),i.right._t2=M.map(1,0,1,this._t1,this._t2),r?(r=M.map(r,n,1,0,1),i.right.split(r).left):i}extrema(){const n={};let r=[];return this.dims.forEach((function(a){let i=function(s){return s[a]},o=this.dpoints[0].map(i);n[a]=M.droots(o),this.order===3&&(o=this.dpoints[1].map(i),n[a]=n[a].concat(M.droots(o))),n[a]=n[a].filter(function(s){return s>=0&&s<=1}),r=r.concat(n[a].sort(M.numberSort))}).bind(this)),n.values=r.sort(M.numberSort).filter(function(a,i){return r.indexOf(a)===i}),n}bbox(){const n=this.extrema(),r={};return this.dims.forEach((function(a){r[a]=M.getminmax(this,a,n[a])}).bind(this)),r}overlaps(n){const r=this.bbox(),a=n.bbox();return M.bboxoverlap(r,a)}offset(n,r){if(typeof r<"u"){const a=this.get(n),i=this.normal(n),o={c:a,n:i,x:a.x+i.x*r,y:a.y+i.y*r};return this._3d&&(o.z=a.z+i.z*r),o}if(this._linear){const a=this.normal(0),i=this.points.map(function(o){const s={x:o.x+n*a.x,y:o.y+n*a.y};return o.z&&a.z&&(s.z=o.z+n*a.z),s});return[new Ue(i)]}return this.reduce().map(function(a){return a._linear?a.offset(n)[0]:a.scale(n)})}simple(){if(this.order===3){const i=M.angle(this.points[0],this.points[3],this.points[1]),o=M.angle(this.points[0],this.points[3],this.points[2]);if(i>0&&o<0||i<0&&o>0)return!1}const n=this.normal(0),r=this.normal(1);let a=n.x*r.x+n.y*r.y;return this._3d&&(a+=n.z*r.z),hr(fj(a))<mj/3}reduce(){let n,r=0,a=0,i=.01,o,s=[],u=[],l=this.extrema().values;for(l.indexOf(0)===-1&&(l=[0].concat(l)),l.indexOf(1)===-1&&l.push(1),r=l[0],n=1;n<l.length;n++)a=l[n],o=this.split(r,a),o._t1=r,o._t2=a,s.push(o),r=a;return s.forEach(function(c){for(r=0,a=0;a<=1;)for(a=r+i;a<=1+i;a+=i)if(o=c.split(r,a),!o.simple()){if(a-=i,hr(r-a)<i)return[];o=c.split(r,a),o._t1=M.map(r,0,1,c._t1,c._t2),o._t2=M.map(a,0,1,c._t1,c._t2),u.push(o),r=a;break}r<1&&(o=c.split(r,1),o._t1=M.map(r,0,1,c._t1,c._t2),o._t2=c._t2,u.push(o))}),u}translate(n,r,a){a=typeof a=="number"?a:r;const i=this.order;let o=this.points.map((s,u)=>(1-u/i)*r+u/i*a);return new Ue(this.points.map((s,u)=>({x:s.x+n.x*o[u],y:s.y+n.y*o[u]})))}scale(n){const r=this.order;let a=!1;if(typeof n=="function"&&(a=n),a&&r===2)return this.raise().scale(a);const i=this.clockwise,o=this.points;if(this._linear)return this.translate(this.normal(0),a?a(0):n,a?a(1):n);const s=a?a(0):n,u=a?a(1):n,l=[this.offset(0,10),this.offset(1,10)],c=[],d=M.lli4(l[0],l[0].c,l[1],l[1].c);if(!d)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(f){const m=c[f*r]=M.copy(o[f*r]);m.x+=(f?u:s)*l[f].n.x,m.y+=(f?u:s)*l[f].n.y}),a?([0,1].forEach(function(f){if(!(r===2&&f)){var m=o[f+1],p={x:m.x-d.x,y:m.y-d.y},h=a?a((f+1)/r):n;a&&!i&&(h=-h);var g=vr(p.x*p.x+p.y*p.y);p.x/=g,p.y/=g,c[f+1]={x:m.x+h*p.x,y:m.y+h*p.y}}}),new Ue(c)):([0,1].forEach(f=>{if(r===2&&f)return;const m=c[f*r],p=this.derivative(f),h={x:m.x+p.x,y:m.y+p.y};c[f+1]=M.lli4(m,h,d,o[f+1])}),new Ue(c))}outline(n,r,a,i){if(r=r===void 0?n:r,this._linear){const w=this.normal(0),I=this.points[0],x=this.points[this.points.length-1];let P,Z,E;a===void 0&&(a=n,i=r),P={x:I.x+w.x*n,y:I.y+w.y*n},E={x:x.x+w.x*a,y:x.y+w.y*a},Z={x:(P.x+E.x)/2,y:(P.y+E.y)/2};const F=[P,Z,E];P={x:I.x-w.x*r,y:I.y-w.y*r},E={x:x.x-w.x*i,y:x.y-w.y*i},Z={x:(P.x+E.x)/2,y:(P.y+E.y)/2};const W=[E,Z,P],Q=M.makeline(W[2],F[0]),U=M.makeline(F[2],W[0]),L=[Q,new Ue(F),U,new Ue(W)];return new Nr(L)}const o=this.reduce(),s=o.length,u=[];let l=[],c,d=0,f=this.length();const m=typeof a<"u"&&typeof i<"u";function p(w,I,x,P,Z){return function(E){const F=P/x,W=(P+Z)/x,Q=I-w;return M.map(E,0,1,w+F*Q,w+W*Q)}}o.forEach(function(w){const I=w.length();m?(u.push(w.scale(p(n,a,f,d,I))),l.push(w.scale(p(-r,-i,f,d,I)))):(u.push(w.scale(n)),l.push(w.scale(-r))),d+=I}),l=l.map(function(w){return c=w.points,c[3]?w.points=[c[3],c[2],c[1],c[0]]:w.points=[c[2],c[1],c[0]],w}).reverse();const h=u[0].points[0],g=u[s-1].points[u[s-1].points.length-1],b=l[s-1].points[l[s-1].points.length-1],v=l[0].points[0],$=M.makeline(b,h),S=M.makeline(g,v),k=[$].concat(u).concat([S]).concat(l);return new Nr(k)}outlineshapes(n,r,a){r=r||n;const i=this.outline(n,r).curves,o=[];for(let s=1,u=i.length;s<u/2;s++){const l=M.makeshape(i[s],i[u-s],a);l.startcap.virtual=s>1,l.endcap.virtual=s<u/2-1,o.push(l)}return o}intersects(n,r){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof Ue&&(n=n.reduce()),this.curveintersects(this.reduce(),n,r)):this.selfintersects(r)}lineIntersects(n){const r=Ov(n.p1.x,n.p2.x),a=Ov(n.p1.y,n.p2.y),i=Pv(n.p1.x,n.p2.x),o=Pv(n.p1.y,n.p2.y);return M.roots(this.points,n).filter(s=>{var u=this.get(s);return M.between(u.x,r,i)&&M.between(u.y,a,o)})}selfintersects(n){const r=this.reduce(),a=r.length-2,i=[];for(let o=0,s,u,l;o<a;o++)u=r.slice(o,o+1),l=r.slice(o+2),s=this.curveintersects(u,l,n),i.push(...s);return i}curveintersects(n,r,a){const i=[];n.forEach(function(s){r.forEach(function(u){s.overlaps(u)&&i.push({left:s,right:u})})});let o=[];return i.forEach(function(s){const u=M.pairiteration(s.left,s.right,a);u.length>0&&(o=o.concat(u))}),o}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,a,i){const o=(i-a)/4,s=this.get(a+o),u=this.get(i-o),l=M.dist(n,r),c=M.dist(n,s),d=M.dist(n,u);return hr(c-l)+hr(d-l)}_iterate(n,r){let a=0,i=1,o;do{o=0,i=1;let s=this.get(a),u,l,c,d,f=!1,m=!1,p,h=i,g=1;do if(m=f,d=c,h=(a+i)/2,u=this.get(h),l=this.get(i),c=M.getccenter(s,u,l),c.interval={start:a,end:i},f=this._error(c,s,a,i)<=n,p=m&&!f,p||(g=i),f){if(i>=1){if(c.interval.end=g=1,d=c,i>1){let v={x:c.x+c.r*cj(c.e),y:c.y+c.r*dj(c.e)};c.e+=M.angle({x:c.x,y:c.y},v,this.get(1))}break}i=i+(i-a)/2}else i=h;while(!p&&o++<100);if(o>=100)break;d=d||c,r.push(d),a=g}while(i<1);return r}}function ac(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function pj(e){if(Array.isArray(e))return e}function hj(e){if(Array.isArray(e))return ac(e)}function vj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gj(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,o,s,u=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,n!==0)for(;!(l=(a=o.call(r)).done)&&(u.push(a.value),u.length!==n);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function bj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _j(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yj(e,n){if(e==null)return{};var r,a,i=$j(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function $j(e,n){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(n.includes(a))continue;r[a]=e[a]}return r}function kj(e,n){return pj(e)||gj(e,n)||p_(e,n)||bj()}function wj(e){return hj(e)||vj(e)||p_(e)||_j()}function xj(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ij(e){var n=xj(e,"string");return typeof n=="symbol"?n:n+""}function p_(e,n){if(e){if(typeof e=="string")return ac(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ac(e,n):void 0}}var Sj=(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(u){return{keyAccessor:u,isProp:!(u instanceof Function)}}),o=e.reduce(function(u,l){var c=u,d=l;return i.forEach(function(f,m){var p=f.keyAccessor,h=f.isProp,g;if(h){var b=d,v=b[p],$=yj(b,[p].map(Ij));g=v,d=$}else g=p(d,m);m+1<i.length?(c.hasOwnProperty(g)||(c[g]={}),c=c[g]):r?(c.hasOwnProperty(g)||(c[g]=[]),c[g].push(d)):c[g]=d}),u},{});r instanceof Function&&(function u(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;c===i.length?Object.keys(l).forEach(function(d){return l[d]=r(l[d])}):Object.values(l).forEach(function(d){return u(d,c+1)})})(o);var s=o;return a&&(s=[],(function u(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];c.length===i.length?s.push({keys:c,vals:l}):Object.entries(l).forEach(function(d){var f=kj(d,2),m=f[0],p=f[1];return u(p,[].concat(wj(c),[m]))})})(o),n instanceof Array&&n.length===0&&s.length===1&&(s[0].keys=[])),s});function zj(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const Uv=Symbol("implicit");function h_(){var e=new Xh,n=[],r=[],a=Uv;function i(o){let s=e.get(o);if(s===void 0){if(a!==Uv)return a;e.set(o,s=n.push(o)-1)}return r[s%r.length]}return i.domain=function(o){if(!arguments.length)return n.slice();n=[],e=new Xh;for(const s of o)e.has(s)||e.set(s,n.push(s)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(a=o,i):a},i.copy=function(){return h_(n,r).unknown(a)},zj.apply(i,arguments),i}function se(e){for(var n=e.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+e.slice(a*6,++a*6);return r}se("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");se("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");se("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");se("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");var Oj=se("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");se("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");se("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");se("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");se("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");se("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");se("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var Ie=e=>zP(e[e.length-1]),Pj=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(se);Ie(Pj);var Uj=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(se);Ie(Uj);var Nj=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(se);Ie(Nj);var jj=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(se);Ie(jj);var Tj=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(se);Ie(Tj);var Ej=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(se);Ie(Ej);var Zj=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(se);Ie(Zj);var Dj=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(se);Ie(Dj);var Aj=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(se);Ie(Aj);var Cj=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(se);Ie(Cj);var Rj=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(se);Ie(Rj);var Mj=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(se);Ie(Mj);var Lj=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(se);Ie(Lj);var Fj=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(se);Ie(Fj);var Jj=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(se);Ie(Jj);var qj=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(se);Ie(qj);var Vj=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(se);Ie(Vj);var Wj=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(se);Ie(Wj);var Hj=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(se);Ie(Hj);var Gj=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(se);Ie(Gj);var Bj=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(se);Ie(Bj);var Kj=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(se);Ie(Kj);var Xj=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(se);Ie(Xj);var Yj=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(se);Ie(Yj);var Qj=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(se);Ie(Qj);var e3=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(se);Ie(e3);var t3=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(se);Ie(t3);Dc(tn(300,.5,0),tn(-240,.5,1));Dc(tn(-100,.75,.35),tn(80,1.5,.8));Dc(tn(260,.75,.35),tn(80,1.5,.8));tn();Cr();function Ns(e){var n=e.length;return function(r){return e[Math.max(0,Math.min(n-1,Math.floor(r*n)))]}}Ns(se("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));Ns(se("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));Ns(se("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));Ns(se("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function n3(e,n){n===void 0&&(n={});var r=n.insertAt;if(!(typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var i3=`.force-graph-container canvas {
|
|
31
|
+
display: block;
|
|
32
|
+
user-select: none;
|
|
33
|
+
outline: none;
|
|
34
|
+
-webkit-tap-highlight-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.force-graph-container .clickable {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.force-graph-container .grabbable {
|
|
42
|
+
cursor: move;
|
|
43
|
+
cursor: grab;
|
|
44
|
+
cursor: -moz-grab;
|
|
45
|
+
cursor: -webkit-grab;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.force-graph-container .grabbable:active {
|
|
49
|
+
cursor: grabbing;
|
|
50
|
+
cursor: -moz-grabbing;
|
|
51
|
+
cursor: -webkit-grabbing;
|
|
52
|
+
}
|
|
53
|
+
`;n3(i3);function oc(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function r3(e){if(Array.isArray(e))return e}function a3(e){if(Array.isArray(e))return oc(e)}function Nv(e,n,r){if(v_())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,n);var i=new(e.bind.apply(e,a));return i}function Lr(e,n,r){return(n=d3(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function v_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v_=function(){return!!e})()}function o3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s3(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,o,s,u=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,n!==0)for(;!(l=(a=o.call(r)).done)&&(u.push(a.value),u.length!==n);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function u3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
55
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jv(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,a)}return r}function ki(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?jv(Object(r),!0).forEach(function(a){Lr(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jv(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function jr(e,n){return r3(e)||s3(e,n)||g_(e,n)||u3()}function St(e){return a3(e)||o3(e)||g_(e)||l3()}function c3(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function d3(e){var n=c3(e,"string");return typeof n=="symbol"?n:n+""}function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sc(e)}function g_(e,n){if(e){if(typeof e=="string")return oc(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oc(e,n):void 0}}var f3=h_(Oj);function Tv(e,n,r){!n||typeof r!="string"||e.filter(function(a){return!a[r]}).forEach(function(a){a[r]=f3(n(a))})}function m3(e,n){var r=e.nodes,a=e.links,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.nodeFilter,s=o===void 0?function(){return!0}:o,u=i.onLoopError,l=u===void 0?function(p){throw"Invalid DAG structure! Found cycle in node path: ".concat(p.join(" -> "),".")}:u,c={};r.forEach(function(p){return c[n(p)]={data:p,out:[],depth:-1,skip:!s(p)}}),a.forEach(function(p){var h=p.source,g=p.target,b=k(h),v=k(g);if(!c.hasOwnProperty(b))throw"Missing source node with id: ".concat(b);if(!c.hasOwnProperty(v))throw"Missing target node with id: ".concat(v);var $=c[b],S=c[v];$.out.push(S);function k(w){return sc(w)==="object"?n(w):w}});var d=[];m(Object.values(c));var f=Object.assign.apply(Object,[{}].concat(St(Object.entries(c).filter(function(p){var h=jr(p,2),g=h[1];return!g.skip}).map(function(p){var h=jr(p,2),g=h[0],b=h[1];return Lr({},g,b.depth)}))));return f;function m(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,b=function(){var k=p[v];if(h.indexOf(k)!==-1){var w=[].concat(St(h.slice(h.indexOf(k))),[k]).map(function(I){return n(I.data)});return d.some(function(I){return I.length===w.length&&I.every(function(x,P){return x===w[P]})})||(d.push(w),l(w)),1}g>k.depth&&(k.depth=g,m(k.out,[].concat(St(h),[k]),g+(k.skip?0:1)))},v=0,$=p.length;v<$;v++)b()}}var p3=2,Qe=function(n,r){return r.onNeedsRedraw&&r.onNeedsRedraw()},Ev=function(n,r){if(!r.isShadow){var a=ye(r.linkDirectionalParticles);r.graphData.links.forEach(function(i){var o=Math.round(Math.abs(a(i)));o?i.__photons=St(Array(o)).map(function(){return{}}):delete i.__photons})}},Xo=Wc({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,r){r.engineRunning=!1,Ev(n,r)}},dagMode:{onChange:function(n,r){!n&&(r.graphData.nodes||[]).forEach(function(a){return a.fx=a.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(n){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:Qe},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:Qe},nodeColor:{default:"color",triggerUpdate:!1,onChange:Qe},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:Qe},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:Qe},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:Qe},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:Qe},linkColor:{default:"color",triggerUpdate:!1,onChange:Qe},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:Qe},linkWidth:{default:1,triggerUpdate:!1,onChange:Qe},linkCurvature:{default:0,triggerUpdate:!1,onChange:Qe},linkCanvasObject:{triggerUpdate:!1,onChange:Qe},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:Qe},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:Qe},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:Qe},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:Qe},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:Ev},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleOffset:{default:0,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},linkDirectionalParticleCanvasObject:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.alphaDecay(n)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.alphaTarget(n)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.velocityDecay(n)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(n,r,a){return a===void 0?n.forceLayout.force(r):(n.forceLayout.force(r,a),this)},d3ReheatSimulation:function(n){return n.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(n){return n.cntTicks=0,n.startTickTime=new Date,n.engineRunning=!0,this},isEngineRunning:function(n){return!!n.engineRunning},tickFrame:function(n){return!n.isShadow&&r(),i(),!n.isShadow&&o(),!n.isShadow&&s(),a(),this;function r(){n.engineRunning&&(++n.cntTicks>n.cooldownTicks||new Date-n.startTickTime>n.cooldownTime||n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin?(n.engineRunning=!1,n.onEngineStop()):(n.forceLayout.tick(),n.onEngineTick()))}function a(){var u=ye(n.nodeVisibility),l=ye(n.nodeVal),c=ye(n.nodeColor),d=ye(n.nodeCanvasObjectMode),f=n.ctx,m=n.isShadow/n.globalScale,p=n.graphData.nodes.filter(u);f.save(),p.forEach(function(h){var g=d(h);if(n.nodeCanvasObject&&(g==="before"||g==="replace")&&(n.nodeCanvasObject(h,f,n.globalScale),g==="replace")){f.restore();return}var b=Math.sqrt(Math.max(0,l(h)||1))*n.nodeRelSize+m;f.beginPath(),f.arc(h.x,h.y,b,0,2*Math.PI,!1),f.fillStyle=c(h)||"rgba(31, 120, 180, 0.92)",f.fill(),n.nodeCanvasObject&&g==="after"&&n.nodeCanvasObject(h,n.ctx,n.globalScale)}),f.restore()}function i(){var u=ye(n.linkVisibility),l=ye(n.linkColor),c=ye(n.linkWidth),d=ye(n.linkLineDash),f=ye(n.linkCurvature),m=ye(n.linkCanvasObjectMode),p=n.ctx,h=n.isShadow*2,g=n.graphData.links.filter(u);g.forEach(I);var b=[],v=[],$=g;if(n.linkCanvasObject){var S=[],k=[];g.forEach(function(x){return({before:b,after:v,replace:S}[m(x)]||k).push(x)}),$=[].concat(St(b),v,k),b=b.concat(S)}p.save(),b.forEach(function(x){return n.linkCanvasObject(x,p,n.globalScale)}),p.restore();var w=Sj($,[l,c,d]);p.save(),Object.entries(w).forEach(function(x){var P=jr(x,2),Z=P[0],E=P[1],F=!Z||Z==="undefined"?"rgba(0,0,0,0.15)":Z;Object.entries(E).forEach(function(W){var Q=jr(W,2),U=Q[0],L=Q[1],T=(U||1)/n.globalScale+h;Object.entries(L).forEach(function(H){var ne=jr(H,2);ne[0];var ie=ne[1],oe=d(ie[0]);p.beginPath(),ie.forEach(function(he){var be=he.source,Ve=he.target;if(!(!be||!Ve||!be.hasOwnProperty("x")||!Ve.hasOwnProperty("x"))){p.moveTo(be.x,be.y);var qe=he.__controlPoints;qe?p[qe.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(p,St(qe).concat([Ve.x,Ve.y])):p.lineTo(Ve.x,Ve.y)}}),p.strokeStyle=F,p.lineWidth=T,p.setLineDash(oe||[]),p.stroke()})})}),p.restore(),p.save(),v.forEach(function(x){return n.linkCanvasObject(x,p,n.globalScale)}),p.restore();function I(x){var P=f(x);if(!P){x.__controlPoints=null;return}var Z=x.source,E=x.target;if(!(!Z||!E||!Z.hasOwnProperty("x")||!E.hasOwnProperty("x"))){var F=Math.sqrt(Math.pow(E.x-Z.x,2)+Math.pow(E.y-Z.y,2));if(F>0){var W=Math.atan2(E.y-Z.y,E.x-Z.x),Q=F*P,U={x:(Z.x+E.x)/2+Q*Math.cos(W-Math.PI/2),y:(Z.y+E.y)/2+Q*Math.sin(W-Math.PI/2)};x.__controlPoints=[U.x,U.y]}else{var L=P*70;x.__controlPoints=[E.x,E.y-L,E.x+L,E.y]}}}}function o(){var u=1.6,l=.2,c=ye(n.linkDirectionalArrowLength),d=ye(n.linkDirectionalArrowRelPos),f=ye(n.linkVisibility),m=ye(n.linkDirectionalArrowColor||n.linkColor),p=ye(n.nodeVal),h=n.ctx;h.save(),n.graphData.links.filter(f).forEach(function(g){var b=c(g);if(!(!b||b<0)){var v=g.source,$=g.target;if(!(!v||!$||!v.hasOwnProperty("x")||!$.hasOwnProperty("x"))){var S=Math.sqrt(Math.max(0,p(v)||1))*n.nodeRelSize,k=Math.sqrt(Math.max(0,p($)||1))*n.nodeRelSize,w=Math.min(1,Math.max(0,d(g))),I=m(g)||"rgba(0,0,0,0.28)",x=b/u/2,P=g.__controlPoints&&Nv(Ue,[v.x,v.y].concat(St(g.__controlPoints),[$.x,$.y])),Z=P?function(T){return P.get(T)}:function(T){return{x:v.x+($.x-v.x)*T||0,y:v.y+($.y-v.y)*T||0}},E=P?P.length():Math.sqrt(Math.pow($.x-v.x,2)+Math.pow($.y-v.y,2)),F=S+b+(E-S-k-b)*w,W=Z(F/E),Q=Z((F-b)/E),U=Z((F-b*(1-l))/E),L=Math.atan2(W.y-Q.y,W.x-Q.x)-Math.PI/2;h.beginPath(),h.moveTo(W.x,W.y),h.lineTo(Q.x+x*Math.cos(L),Q.y+x*Math.sin(L)),h.lineTo(U.x,U.y),h.lineTo(Q.x-x*Math.cos(L),Q.y-x*Math.sin(L)),h.fillStyle=I,h.fill()}}}),h.restore()}function s(){var u=ye(n.linkDirectionalParticles),l=ye(n.linkDirectionalParticleSpeed),c=ye(n.linkDirectionalParticleOffset),d=ye(n.linkDirectionalParticleWidth),f=ye(n.linkVisibility),m=ye(n.linkDirectionalParticleColor||n.linkColor),p=n.ctx;p.save(),n.graphData.links.filter(f).forEach(function(h){var g=u(h);if(!(!h.hasOwnProperty("__photons")||!h.__photons.length)){var b=h.source,v=h.target;if(!(!b||!v||!b.hasOwnProperty("x")||!v.hasOwnProperty("x"))){var $=l(h),S=Math.abs(c(h)),k=h.__photons||[],w=Math.max(0,d(h)/2)/Math.sqrt(n.globalScale),I=m(h)||"rgba(0,0,0,0.28)";p.fillStyle=I;var x=h.__controlPoints?Nv(Ue,[b.x,b.y].concat(St(h.__controlPoints),[v.x,v.y])):null,P=0,Z=!1;k.forEach(function(E){var F=!!E.__singleHop;if(E.hasOwnProperty("__progressRatio")||(E.__progressRatio=F?0:(P+S)/g),!F&&P++,E.__progressRatio+=$,E.__progressRatio>=1)if(!F)E.__progressRatio=E.__progressRatio%1;else{Z=!0;return}var W=E.__progressRatio,Q=x?x.get(W):{x:b.x+(v.x-b.x)*W||0,y:b.y+(v.y-b.y)*W||0};n.linkDirectionalParticleCanvasObject?n.linkDirectionalParticleCanvasObject(Q.x,Q.y,h,p,n.globalScale):(p.beginPath(),p.arc(Q.x,Q.y,w,0,2*Math.PI,!1),p.fill())}),Z&&(h.__photons=h.__photons.filter(function(E){return!E.__singleHop||E.__progressRatio<=1}))}}}),p.restore()}},emitParticle:function(n,r){return r&&(!r.__photons&&(r.__photons=[]),r.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:rj().force("link",K8()).force("charge",aj()).force("center",Y9()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,r){r.ctx=n},update:function(n,r){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&Tv(n.graphData.nodes,ye(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&Tv(n.graphData.links,ye(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(m){m.source=m[n.linkSource],m.target=m[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var a=n.forceLayout.force("link");a&&a.id(function(m){return m[n.nodeId]}).links(n.graphData.links);var i=n.dagMode&&m3(n.graphData,function(m){return m[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),o=Math.max.apply(Math,St(Object.values(i||[]))),s=n.dagLevelDistance||n.graphData.nodes.length/(o||1)*p3*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(r.dagMode)){var u=["lr","rl"].includes(r.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(m){return delete m[u]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var l=["rl","bu"].includes(n.dagMode),c=function(p){return(i[p[n.nodeId]]-o/2)*s*(l?-1:1)},d=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(m){return m[d]=c(m)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?oj(function(m){var p=i[m[n.nodeId]]||-1;return(n.dagMode==="radialin"?o-p:p)*s}).strength(function(m){return n.dagNodeFilter(m)?1:0}):null);for(var f=0;f<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);f++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function b_(e,n){var r=e instanceof Array?e:[e],a=new n;return a._destructor&&a._destructor(),{linkProp:function(o){return{default:a[o](),onChange:function(u,l){r.forEach(function(c){return l[c][o](u)})},triggerUpdate:!1}},linkMethod:function(o){return function(s){for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];var d=[];return r.forEach(function(f){var m=s[f],p=m[o].apply(m,l);p!==m&&d.push(p)}),d.length?d[0]:this}}}}var h3=800,v3=4,g3=5,__=b_("forceGraph",Xo),b3=b_(["forceGraph","shadowGraph"],Xo),_3=Object.assign.apply(Object,St(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleOffset","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleCanvasObject","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map(function(e){return Lr({},e,__.linkProp(e))})).concat(St(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return Lr({},e,b3.linkProp(e))})))),y3=Object.assign.apply(Object,St(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return Lr({},e,__.linkMethod(e))})));function Al(e){if(e.canvas){var n=e.canvas.width,r=e.canvas.height;n===300&&r===150&&(n=r=0);var a=window.devicePixelRatio;n/=a,r/=a,[e.canvas,e.shadowCanvas].forEach(function(o){o.style.width="".concat(e.width,"px"),o.style.height="".concat(e.height,"px"),o.width=e.width*a,o.height=e.height*a,!n&&!r&&o.getContext("2d").scale(a,a)});var i=Gt(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/i,(e.height-r)/2/i),e.needsRedraw=!0}}function y_(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Zv(e,n,r){e.save(),y_(e),e.clearRect(0,0,n,r),e.restore()}var $3=Wc({props:ki({width:{default:window.innerWidth,onChange:function(n,r){return Al(r)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,r){return Al(r)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(n,r){[n.nodes,n.links].every(function(i){return(i||[]).every(function(o){return!o.hasOwnProperty("__indexColor")})})&&r.colorTracker.reset(),[{type:"Node",objs:n.nodes},{type:"Link",objs:n.links}].forEach(a),r.forceGraph.graphData(n),r.shadowGraph.graphData(n);function a(i){var o=i.type,s=i.objs;s.filter(function(u){if(!u.hasOwnProperty("__indexColor"))return!0;var l=r.colorTracker.lookup(u.__indexColor);return!l||!l.hasOwnProperty("d")||l.d!==u}).forEach(function(u){u.__indexColor=r.colorTracker.register({type:o,d:u})})}},triggerUpdate:!1},backgroundColor:{onChange:function(n,r){r.canvas&&n&&(r.canvas.style.background=n)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(n,r){r.shadowGraph.nodeCanvasObject(n?function(a,i,o){return n(a,a.__indexColor,i,o)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(n,r){r.shadowGraph.linkCanvasObject(n?function(a,i,o){return n(a,a.__indexColor,i,o)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(n,r){r.zoom.scaleExtent([n,r.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(n,r){r.zoom.scaleExtent([r.zoom.scaleExtent()[0],n])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(n,r){r.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},showPointerCursor:{default:!0,triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},_3),aliases:{stopAnimation:"pauseAnimation"},methods:ki({graph2ScreenCoords:function(n,r,a){var i=Gt(n.canvas);return{x:r*i.k+i.x,y:a*i.k+i.y}},screen2GraphCoords:function(n,r,a){var i=Gt(n.canvas);return{x:(r-i.x)/i.k,y:(a-i.y)/i.k}},centerAt:function(n,r,a,i){if(!n.canvas)return null;if(r!==void 0||a!==void 0){var o=Object.assign({},r!==void 0?{x:r}:{},a!==void 0?{y:a}:{});return i?n.tweenGroup.add(new rv(s()).to(o,i).easing(ti.Quadratic.Out).onUpdate(u).start()):u(o),this}return s();function s(){var l=Gt(n.canvas);return{x:(n.width/2-l.x)/l.k,y:(n.height/2-l.y)/l.k}}function u(l){var c=l.x,d=l.y;n.zoom.translateTo(n.zoom.__baseElem,c===void 0?s().x:c,d===void 0?s().y:d),n.needsRedraw=!0}},zoom:function(n,r,a){if(!n.canvas)return null;if(r!==void 0)return a?n.tweenGroup.add(new rv({k:i()}).to({k:r},a).easing(ti.Quadratic.Out).onUpdate(function(s){var u=s.k;return o(u)}).start()):o(r),this;return i();function i(){return Gt(n.canvas).k}function o(s){n.zoom.scaleTo(n.zoom.__baseElem,s),n.needsRedraw=!0}},zoomToFit:function(n){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,i=arguments.length,o=new Array(i>3?i-3:0),s=3;s<i;s++)o[s-3]=arguments[s];var u=this.getGraphBbox.apply(this,o);if(u){var l={x:(u.x[0]+u.x[1])/2,y:(u.y[0]+u.y[1])/2},c=Math.max(1e-12,Math.min(1e12,(n.width-a*2)/(u.x[1]-u.x[0]),(n.height-a*2)/(u.y[1]-u.y[0])));this.centerAt(l.x,l.y,r),this.zoom(c,r)}return this},getGraphBbox:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},a=ye(n.nodeVal),i=function(u){return Math.sqrt(Math.max(0,a(u)||1))*n.nodeRelSize},o=n.graphData.nodes.filter(r).map(function(s){return{x:s.x,y:s.y,r:i(s)}});return o.length?{x:[ev(o,function(s){return s.x-s.r}),Qh(o,function(s){return s.x+s.r})],y:[ev(o,function(s){return s.y-s.r}),Qh(o,function(s){return s.y+s.r})]}:null},pauseAnimation:function(n){return n.animationFrameRequestId&&(cancelAnimationFrame(n.animationFrameRequestId),n.animationFrameRequestId=null),this},resumeAnimation:function(n){return n.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},y3),stateInit:function(){return{lastSetZoom:1,zoom:nN(),forceGraph:new Xo,shadowGraph:new Xo().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new P9,tweenGroup:new Fb}},init:function(n,r){var a=this;n.innerHTML="";var i=document.createElement("div");i.classList.add("force-graph-container"),i.style.position="relative",n.appendChild(i),r.canvas=document.createElement("canvas"),r.backgroundColor&&(r.canvas.style.background=r.backgroundColor),i.appendChild(r.canvas),r.shadowCanvas=document.createElement("canvas");var o=r.canvas.getContext("2d"),s=r.shadowCanvas.getContext("2d",{willReadFrequently:!0}),u={x:-1e12,y:-1e12},l=function(){var f=null,m=window.devicePixelRatio,p=u.x>0&&u.y>0?s.getImageData(u.x*m,u.y*m,1,1):null;return p&&(f=r.colorTracker.lookup(p.data)),f};It(r.canvas).call(rP().subject(function(){if(!r.enableNodeDrag)return null;var d=l();return d&&d.type==="Node"?d.d:null}).on("start",function(d){var f=d.subject;f.__initialDragPos={x:f.x,y:f.y,fx:f.fx,fy:f.fy},d.active||(f.fx=f.x,f.fy=f.y),r.canvas.classList.add("grabbable")}).on("drag",function(d){var f=d.subject,m=f.__initialDragPos,p=d,h=Gt(r.canvas).k,g={x:m.x+(p.x-m.x)/h-f.x,y:m.y+(p.y-m.y)/h-f.y};["x","y"].forEach(function(b){return f["f".concat(b)]=f[b]=m[b]+(p[b]-m[b])/h}),!(!f.__dragged&&g3>=Math.sqrt(lN(["x","y"].map(function(b){return Math.pow(d[b]-m[b],2)}))))&&(r.forceGraph.d3AlphaTarget(.3).resetCountdown(),r.isPointerDragging=!0,f.__dragged=!0,r.onNodeDrag(f,g))}).on("end",function(d){var f=d.subject,m=f.__initialDragPos,p={x:f.x-m.x,y:f.y-m.y};m.fx===void 0&&(f.fx=void 0),m.fy===void 0&&(f.fy=void 0),delete f.__initialDragPos,r.forceGraph.d3AlphaTarget()&&r.forceGraph.d3AlphaTarget(0).resetCountdown(),r.canvas.classList.remove("grabbable"),r.isPointerDragging=!1,f.__dragged&&(delete f.__dragged,r.onNodeDragEnd(f,p))})),r.zoom(r.zoom.__baseElem=It(r.canvas)),r.zoom.__baseElem.on("dblclick.zoom",null),r.zoom.filter(function(d){return!d.button&&r.enableZoomPanInteraction&&(d.type!=="wheel"||ye(r.enableZoomInteraction)(d))&&(d.type==="wheel"||ye(r.enablePanInteraction)(d))}).on("zoom",function(d){var f=d.transform;[o,s].forEach(function(m){y_(m),m.translate(f.x,f.y),m.scale(f.k,f.k)}),r.isPointerDragging=!0,r.onZoom&&r.onZoom(ki(ki({},f),a.centerAt())),r.needsRedraw=!0}).on("end",function(d){r.isPointerDragging=!1,r.onZoomEnd&&r.onZoomEnd(ki(ki({},d.transform),a.centerAt()))}),Al(r),r.forceGraph.onNeedsRedraw(function(){return r.needsRedraw=!0}).onFinishUpdate(function(){Gt(r.canvas).k===r.lastSetZoom&&r.graphData.nodes.length&&(r.zoom.scaleTo(r.zoom.__baseElem,r.lastSetZoom=v3/Math.cbrt(r.graphData.nodes.length)),r.needsRedraw=!0)}),r.tooltip=new X9(i),["pointermove","pointerdown"].forEach(function(d){return i.addEventListener(d,function(f){d==="pointerdown"&&(r.isPointerPressed=!0,r.pointerDownEvent=f),!r.isPointerDragging&&f.type==="pointermove"&&r.onBackgroundClick&&(f.pressure>0||r.isPointerPressed)&&(f.pointerType==="mouse"||f.movementX===void 0||[f.movementX,f.movementY].some(function(h){return Math.abs(h)>1}))&&(r.isPointerDragging=!0);var m=p(i);u.x=f.pageX-m.left,u.y=f.pageY-m.top;function p(h){var g=h.getBoundingClientRect(),b=window.pageXOffset||document.documentElement.scrollLeft,v=window.pageYOffset||document.documentElement.scrollTop;return{top:g.top+v,left:g.left+b}}},{passive:!0})}),i.addEventListener("pointerup",function(d){if(r.isPointerPressed){if(r.isPointerPressed=!1,r.isPointerDragging){r.isPointerDragging=!1;return}var f=[d,r.pointerDownEvent];requestAnimationFrame(function(){if(d.button===0)if(r.hoverObj){var m=r["on".concat(r.hoverObj.type,"Click")];m&&m.apply(void 0,[r.hoverObj.d].concat(f))}else r.onBackgroundClick&&r.onBackgroundClick.apply(r,f);if(d.button===2)if(r.hoverObj){var p=r["on".concat(r.hoverObj.type,"RightClick")];p&&p.apply(void 0,[r.hoverObj.d].concat(f))}else r.onBackgroundRightClick&&r.onBackgroundRightClick.apply(r,f)})}},{passive:!0}),i.addEventListener("contextmenu",function(d){return!r.onBackgroundRightClick&&!r.onNodeRightClick&&!r.onLinkRightClick?!0:(d.preventDefault(),!1)}),r.forceGraph(o),r.shadowGraph(s);var c=DN(function(){Zv(s,r.width,r.height),r.shadowGraph.linkWidth(function(f){return ye(r.linkWidth)(f)+r.linkHoverPrecision});var d=Gt(r.canvas);r.shadowGraph.globalScale(d.k).tickFrame()},h3);r.flushShadowCanvas=c.flush,(this._animationCycle=function d(){var f=!r.autoPauseRedraw||!!r.needsRedraw||r.forceGraph.isEngineRunning()||r.graphData.links.some(function(S){return S.__photons&&S.__photons.length});if(r.needsRedraw=!1,r.enablePointerInteraction){var m=r.isPointerDragging?null:l();if(m!==r.hoverObj){var p=r.hoverObj,h=p?p.type:null,g=m?m.type:null;if(h&&h!==g){var b=r["on".concat(h,"Hover")];b&&b(null,p.d)}if(g){var v=r["on".concat(g,"Hover")];v&&v(m.d,h===g?p.d:null)}r.tooltip.content(m&&ye(r["".concat(m.type.toLowerCase(),"Label")])(m.d)||null),r.canvas.classList[(m&&r["on".concat(g,"Click")]||!m&&r.onBackgroundClick)&&ye(r.showPointerCursor)(m==null?void 0:m.d)?"add":"remove"]("clickable"),r.hoverObj=m}f&&c()}if(f){Zv(o,r.width,r.height);var $=Gt(r.canvas).k;r.onRenderFramePre&&r.onRenderFramePre(o,$),r.forceGraph.globalScale($).tickFrame(),r.onRenderFramePost&&r.onRenderFramePost(o,$)}r.tweenGroup.update(),r.animationFrameRequestId=requestAnimationFrame(d)})()},update:function(n){}});function uc(e){const n=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,i])=>n.indexOf(+a)===-1).map(([a,i])=>i)}function Dv(e,n="|"){return e.map(r=>I_(r)).join(n)}function lc(e,n){return typeof n=="bigint"?n.toString():n}class k3{constructor(n){this._getter=n,this._value=void 0}get value(){const n=this._getter;return n!==void 0&&(this._value=n(),this._getter=void 0),this._value}}function js(e){return new k3(e)}function w3(e){return e==null}function ed(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function x3(e,n){const r=e/n,a=Math.round(r),i=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-a)<i?0:r-a}function kn(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function td(e){const n=Object.getOwnPropertyDescriptor(e,"shape");return n!=null&&n.get?n.get.raw:n==null?void 0:n.value}function _n(e){return td(e._zod.def)??e._zod.def.shape}function $_(e,n,r){Object.defineProperty(e,n,{get(){const a=r();return kn(this,n,a),a},enumerable:!0,configurable:!0})}function k_(e,n,r){n in e?kn(e,n,r):e[n]=r}function si(e,n,r,a){const i=_n(n);for(const o of r){const s=Object.getOwnPropertyDescriptor(i,o);s.enumerable&&(s.get?$_(e,o,()=>{const u=n._zod.def.shape[o];return a?a(u,o):u}):k_(e,o,a?a(s.value,o):s.value))}}function I3(e,n){for(const r of Reflect.ownKeys(n)){const a=Object.getOwnPropertyDescriptor(n,r);a.enumerable&&(a.get?$_(e,r,()=>n[r]):k_(e,r,a.value))}}function ht(...e){const n={};for(const r of e){const a=Object.getOwnPropertyDescriptors(r);Object.assign(n,a)}return Object.defineProperties({},n)}function S3(e){return JSON.stringify(e)}function z3(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const w_="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Fr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const O3=js(()=>{var e;if(Wt.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function Zi(e){if(Fr(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Fr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function x_(e){return Zi(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const P3=new Set(["string","number","symbol"]);function Di(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qn(e,n,r){const a=new e._zod.constr(n??e._zod.def);return(!n||r!=null&&r.parent)&&(a._zod.parent=e),a}function G(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if((n==null?void 0:n.message)!==void 0){if((n==null?void 0:n.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function I_(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function U3(e){return Object.keys(e).filter(n=>e[n]._zod.optin!==void 0&&e[n]._zod.optout==="optional")}const S_={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]},N3={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function j3(e,n){const r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o={};return si(o,e,Ts(e,n)),qn(e,ht(r,{shape:o,checks:[]}))}function Ts(e,n){var i;const r=_n(e),a=[];for(const o of Reflect.ownKeys(n)){if(!((i=Object.getOwnPropertyDescriptor(r,o))!=null&&i.enumerable))throw new Error(`Unrecognized key: "${String(o)}"`);n[o]&&a.push(o)}return a}function T3(e,n){const r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=new Set(Ts(e,n)),s={};return si(s,e,Reflect.ownKeys(_n(e)).filter(u=>!o.has(u))),qn(e,ht(r,{shape:s,checks:[]}))}function E3(e,n){if(!Zi(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const i=_n(e);for(const o of Reflect.ownKeys(n))if(Object.getOwnPropertyDescriptor(i,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return qn(e,ht(e._zod.def,{shape:z_(e,n)}))}function z_(e,n){const r={};return si(r,e,Reflect.ownKeys(_n(e))),I3(r,n),r}function Z3(e,n){if(!Zi(n))throw new Error("Invalid input to safeExtend: expected a plain object");return qn(e,ht(e._zod.def,{shape:z_(e,n)}))}function D3(e,n){var i,o;if(!((i=n==null?void 0:n._zod)!=null&&i.def))throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r={};si(r,e,Reflect.ownKeys(_n(e))),si(r,n,Reflect.ownKeys(_n(n)));const a=ht(e._zod.def,{shape:r,get catchall(){return n._zod.def.catchall},checks:n._zod.def.checks??[]});return qn(e,a)}function Av(e,n,r,a="partial"){const o=n._zod.def.checks;if(o&&o.length>0)throw new Error(`.${a}() cannot be used on object schemas containing refinements`);const u=r?new Set(Ts(n,r)):void 0,l={};return si(l,n,Reflect.ownKeys(_n(n)),e&&((c,d)=>u&&!u.has(d)?c:new e({type:"optional",innerType:c}))),qn(n,ht(n._zod.def,{shape:l,checks:[]}))}function A3(e,n,r){const a=r?new Set(Ts(n,r)):void 0,i={};return si(i,n,Reflect.ownKeys(_n(n)),(o,s)=>a&&!a.has(s)?o:new e({type:"nonoptional",innerType:o})),qn(n,ht(n._zod.def,{shape:i}))}function vn(e,n=0){var r;if(e.aborted===!0)return!0;for(let a=n;a<e.issues.length;a++)if(((r=e.issues[a])==null?void 0:r.continue)!==!0)return!0;return!1}function C3(e,n=0){var r;if(e.aborted===!0)return!0;for(let a=n;a<e.issues.length;a++)if(((r=e.issues[a])==null?void 0:r.continue)===!1)return!0;return!1}function Ii(e,n){return n.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function gr(e){return typeof e=="string"?e:e==null?void 0:e.message}function Cv(e){const n=[];for(const r of e??[]){const a=r._zod.def;if(!/_(length|size)$|_equals$/.test(a.check))break;const i=a.maximum??a.length??a.size;i>=0&&n.push([i,r])}return n}function cc(e,n,r){var a;for(let i=n;i<e.length;i++)(a=e[i]).schema??(a.schema=r)}function En(e,n,r){var l,c,d,f,m,p,h,g,b,v;var a;const i=(c=(l=e.inst)==null?void 0:l._zod)==null?void 0:c.traits;i!=null&&i.has("$ZodType")&&(i.has("$ZodCheck")?(a=e).schema??(a.schema=e.inst):e.schema=e.inst);const o=e.schema!==e.inst?(f=(d=e.schema)==null?void 0:d._zod.def)==null?void 0:f.error:void 0,s=e.message?e.message:gr((h=(p=(m=e.inst)==null?void 0:m._zod.def)==null?void 0:p.error)==null?void 0:h.call(p,e))??gr(o==null?void 0:o(e))??gr((g=n==null?void 0:n.error)==null?void 0:g.call(n,e))??gr((b=r.customError)==null?void 0:b.call(r,e))??gr((v=r.localeError)==null?void 0:v.call(r,e))??"Invalid input",u={};for(const $ of Object.keys(e))$==="inst"||$==="schema"||$==="continue"||$==="input"||$==="__proto__"||(u[$]=e[$]);return u.path??(u.path=[]),u.message=s,n!=null&&n.reportInput&&(u.input=e.input),u}const R3=/[\uD800-\uDBFF]/;function nd(e){const n=e.length;if(!R3.test(e))return n;let r=n;for(let a=0;a<n-1;a++)(e.charCodeAt(a)&64512)===55296&&(e.charCodeAt(a+1)&64512)===56320&&(r--,a++);return r}function id(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function M3(e){const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return n}function Jr(...e){const[n,r,a]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:a}:{...n}}function L3(e,n){for(const r in n){const a=Object.getOwnPropertyDescriptor(n,r);a.get?Object.defineProperty(e,r,{...a,enumerable:!1}):F3(e,r,a.value)}}function Zn(e,n,r,a=!0){return Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:a,value:r}),r}function O_(e,n,r){return Zn(e,n,r,!1)}function P_(e,n){for(const r in e){const a=e[r];Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get(){return Zn(this,r,a(this))},set(i){Zn(this,r,i)}})}return n}function F3(e,n,r){Object.defineProperty(e,n,{configurable:!0,get(){return this==null?r:Zn(this,n,r.bind(this))},set(a){Zn(this,n,a)}})}function J3(e,n){const r=Object.getPrototypeOf(e);return n in r?void 0:r}let Cl,Nn=!1;const q3={configurable:!0,get(){Nn=!0}};function _e(e,n,r){const a=Object.getPrototypeOf(e._zod);if(n in a&&Cl!==e._zod){Cl=void 0;return}Cl=e._zod,Object.defineProperty(a,n,{configurable:!0,get(){Object.defineProperty(this,n,q3);const i=Nn;Nn=!1;try{const o=r(this);return Nn?delete this[n]:Object.defineProperty(this,n,{configurable:!0,writable:!0,value:o}),Nn=Nn||i,o}catch(o){throw delete this[n],Nn=Nn||i,o}},set(i){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:i})}})}function V3(e,n,r,a){const i=J3(e,n);i&&Object.defineProperty(i,n,{configurable:!0,get(){const o={configurable:!0,writable:!0,enumerable:a,value:void 0};return Object.defineProperty(this,n,o),o.value=r(this),Object.defineProperty(this,n,o),o.value},set(o){Object.defineProperty(this,n,{configurable:!0,writable:!0,enumerable:a,value:o})}})}const W3="~constantCatch";function H3(e){const n=()=>e;return n[W3]=!0,n}var Rv;const Rl={value:void 0,enumerable:!1};let Mv="captureStackTrace"in Error?Error:null;function G3(e){const n=Mv;if(n){const r=n.stackTraceLimit;if(typeof r=="number"){try{n.stackTraceLimit=0}catch{return Mv=null,new e}try{return new e}finally{n.stackTraceLimit=r}}}return new e}function j(e,n,r,a){const i={};function o(m){this.def=m,this.constr=f,this.traits=new Set}o.prototype=i;const s=r,u=s&&new WeakSet;function l(m,p){if(m._zod){if(m._zod.traits.has(e))return}else{Rl.value=new o(p);try{Object.defineProperty(m,"_zod",Rl)}finally{Rl.value=void 0}}if(m._zod.traits.add(e),n(m,p),u){const g=Object.getPrototypeOf(m),b=m._zod.constr.prototype;let v=g;for(;v&&v!==b;)v=Object.getPrototypeOf(v);const $=v??g;u.has($)||(u.add($),L3($,s))}const h=f.prototype;for(const g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in m||(m[g]=h[g].bind(m)))}const c=(a==null?void 0:a.Parent)??Object;class d extends c{}Object.defineProperty(d,"name",{value:e});function f(m){var b;const p=a!=null&&a.Parent?G3(d):this;l(p,m);const h=p._zod.deferred;if(h){for(const v of h)v();p._zod.deferred=void 0}const g=(b=globalThis.__zod_globalConfig)==null?void 0:b.postProcessor;return g&&g(p),p}return Object.defineProperty(f,"init",{value:l}),Object.defineProperty(f,Symbol.hasInstance,{value:m=>{var p,h;return a!=null&&a.Parent&&m instanceof a.Parent?!0:(h=(p=m==null?void 0:m._zod)==null?void 0:p.traits)==null?void 0:h.has(e)}}),Object.defineProperty(f,"name",{value:e}),f}class ni extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class U_ extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}(Rv=globalThis).__zod_globalConfig??(Rv.__zod_globalConfig={});const Wt=globalThis.__zod_globalConfig;function rn(e){return e&&Object.assign(Wt,e),Wt}function B3(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,lc,2)),e.message}function K3(e){this._zod.message=e}const X3={get:B3,set:K3,enumerable:!0,configurable:!0},Ml={value:void 0,enumerable:!1},Lv=new WeakSet([Object.prototype,Error.prototype]),N_=(e,n)=>{e.name="$ZodError",Ml.value=n,Object.defineProperty(e,"issues",Ml),Ml.value=void 0,Object.defineProperty(e,"message",X3);const r=Object.getPrototypeOf(e);Lv.has(r)||(Lv.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){const a=()=>this.message;return Object.defineProperty(this,"toString",{value:a,configurable:!0,writable:!0}),a},set(a){Object.defineProperty(this,"toString",{value:a,configurable:!0,writable:!0})}}))},Y3=j("$ZodError",N_),Q3=j("$ZodError",N_,void 0,{Parent:Error});function eT(e,n,r){return Object.prototype.hasOwnProperty.call(e,n)||(n==="__proto__"?Object.defineProperty(e,n,{value:r(),writable:!0,enumerable:!0,configurable:!0}):e[n]=r()),e[n]}function tT(e,n=r=>r.message){const r={},a=[];for(const i of e.issues)i.path.length>0?eT(r,i.path[0],()=>[]).push(n(i)):a.push(n(i));return{formErrors:a,fieldErrors:r}}function nT(e,n=r=>r.message){const r={_errors:[]},a=(i,o=[])=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>a({issues:u},[...o,...s.path]));else if(s.code==="invalid_key")a({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")a({issues:s.issues},[...o,...s.path]);else{const u=[...o,...s.path];if(u.length===0)r._errors.push(n(s));else{let l=r,c=0;for(;c<u.length;){const d=u[c],f=c===u.length-1;if(d==="_errors"){f&&l._errors.push(n(s)),c++;continue}Object.prototype.hasOwnProperty.call(l,d)||Object.defineProperty(l,d,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const m=l[d];f&&m._errors.push(n(s)),l=m,c++}}}};return a(e),r}function Es(e,n){return{callee:(n==null?void 0:n.callee)??e,Err:n==null?void 0:n.Err}}const rd=e=>{const n=(r,a,i,o)=>{const s=i?{...i,async:!1}:{async:!1},u=r._zod.run({value:a,issues:[]},s);if(u instanceof Promise)throw new ni;if(u.issues.length){const l=new((o==null?void 0:o.Err)??e)(u.issues.map(c=>En(c,s,rn())));throw w_(l,(o==null?void 0:o.callee)??n),l}return u.value};return n},ad=e=>{const n=async(r,a,i,o)=>{const s=i?{...i,async:!0}:{async:!0};let u=r._zod.run({value:a,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){const l=new((o==null?void 0:o.Err)??e)(u.issues.map(c=>En(c,s,rn())));throw w_(l,(o==null?void 0:o.callee)??n),l}return u.value};return n},Zs=e=>(n,r,a)=>{const i=a?{...a,async:!1}:{async:!1},o=n._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new ni;return o.issues.length?j_(e,o.issues,i):{success:!0,data:o.value}},iT=Zs(Q3);function j_(e,n,r){let a;return{success:!1,get error(){return a||(a=new e(n.map(i=>En(i,r,rn()))),n=void 0,r=void 0),a},set error(i){a=i,n=void 0,r=void 0}}}const od=e=>async(n,r,a)=>{const i=a?{...a,async:!0}:{async:!0};let o=n._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?j_(e,o.issues,i):{success:!0,data:o.value}},rT=Symbol.for("zod.compile.invalid"),aT=Symbol.for("zod.compile.fallback"),oT=((e,n,r)=>{const a=e._zod.bag.validator;if(a!==void 0){if(a(n)!==rT)return!0;if(a.definite===!0&&r===void 0)return!1}return sT(e,n,r)});function sT(e,n,r){const a=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun;let o;if(i?(a[aT]=!0,o=i({value:n,issues:[]},a)):o=e._zod.run({value:n,issues:[]},a),o instanceof Promise)throw new ni;return o.issues.length===0}const uT=async(e,n,r)=>{const a=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let i=e._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length===0},lT=e=>{const n=rd(e),r=(a,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return n(a,i,u,Es(r,s))};return r},cT=e=>{const n=rd(e),r=(a,i,o,s)=>n(a,i,o,Es(r,s));return r},dT=e=>{const n=ad(e),r=async(a,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return await n(a,i,u,Es(r,s))};return r},fT=e=>{const n=ad(e),r=async(a,i,o,s)=>await n(a,i,o,Es(r,s));return r},mT=e=>(n,r,a)=>{const i=a?{...a,direction:"backward"}:{direction:"backward"};return Zs(e)(n,r,i)},pT=e=>(n,r,a)=>Zs(e)(n,r,a),hT=e=>async(n,r,a)=>{const i=a?{...a,direction:"backward"}:{direction:"backward"};return od(e)(n,r,i)},vT=e=>async(n,r,a)=>od(e)(n,r,a),gT=/^[cC][0-9a-z]{6,}$/,bT=/^[0-9a-z]+$/,_T=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,yT=/^[0-9a-vA-V]{20}$/,$T=/^[A-Za-z0-9]{27}$/,kT=/^[a-zA-Z0-9_-]{21}$/;function wT(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const xT=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,IT=/^([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})$/,Fv=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)$/,ST=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zT="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function OT(){return new RegExp(zT,"u")}const PT=/^(?:(?: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])$/,UT=/^(([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}|:))$/,NT=/^((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])$/,jT=/^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,TT=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ET=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,ZT=/^https?$/,DT=/^\+[1-9]\d{6,14}$/,T_="(?:(?:\\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])))";function AT(e){return new RegExp(`^${e}$`)}const CT=AT(T_);function dc(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${n}:[0-5]\\d(?:\\.\\d+)?`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function RT(e){return new RegExp(`^${dc(e)}$`)}function MT(e){const n=["Z"];e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${dc({precision:e.precision,seconds:!0})}(?:${n.join("|")})`,a=e.local?`${r}|${dc({precision:e.precision})}`:r;return new RegExp(`^${T_}T(?:${a})$`)}const LT=/^[\s\S]{0,}$/,FT=/^-?\d+$/,sd=/^-?\d+(?:\.\d+)?$/,JT=/^(?:true|false)$/i,qT=/^null$/i,VT=/^[^A-Z]*$/,WT=/^[^a-z]*$/,mt=j("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),ud=e=>{const n=e.value;return!w3(n)&&n.length!==void 0},Yo={number:"number",bigint:"bigint",object:"date"},E_=j("$ZodCheckLessThan",(e,n)=>{mt.init(e,n);const r=Yo[typeof n.value];e._zod.check=a=>{(n.inclusive?a.value<=n.value:a.value<n.value)||a.issues.push({origin:Yo[typeof a.value]??r,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:a.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Z_=j("$ZodCheckGreaterThan",(e,n)=>{mt.init(e,n);const r=Yo[typeof n.value];e._zod.check=a=>{(n.inclusive?a.value>=n.value:a.value>n.value)||a.issues.push({origin:Yo[typeof a.value]??r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:a.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),HT=j("$ZodCheckMultipleOf",(e,n)=>{mt.init(e,n),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?n.value!==BigInt(0)&&r.value%n.value===BigInt(0):x3(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),GT=j("$ZodCheckNumberFormat",(e,n)=>{var s;mt.init(e,n),n.format=n.format||"float64";const r=(s=n.format)==null?void 0:s.includes("int"),a=r?"int":"number",[i,o]=S_[n.format];e._zod.check=u=>{const l=u.value;if(r){if(!Number.isInteger(l)){u.issues.push({expected:a,format:n.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?u.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!n.abort}):u.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!n.abort});return}}l<i&&u.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),l>o&&u.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!n.abort})}}),BT=j("$ZodCheckMaxLength",(e,n)=>{var r;mt.init(e,n),(r=e._zod.def).when??(r.when=ud),e._zod.check=a=>{const i=a.value,o=i.length;if((typeof i=="string"&&o>n.maximum?nd(i):o)<=n.maximum)return;const u=id(i);a.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),KT=j("$ZodCheckMinLength",(e,n)=>{var r;mt.init(e,n),(r=e._zod.def).when??(r.when=ud),e._zod.check=a=>{const i=a.value,o=i.length;if((typeof i=="string"&&o>=n.minimum&&o<n.minimum*2?nd(i):o)>=n.minimum)return;const u=id(i);a.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),XT=j("$ZodCheckLengthEquals",(e,n)=>{var r;mt.init(e,n),(r=e._zod.def).when??(r.when=ud),e._zod.check=a=>{const i=a.value,o=i.length,s=typeof i=="string"&&o>=n.length&&o<=n.length*2?nd(i):o;if(s===n.length)return;const u=id(i),l=s>n.length;a.issues.push({origin:u,...l?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!n.abort})}}),Ds=j("$ZodCheckStringFormat",(e,n)=>{var r,a;mt.init(e,n),n.pattern?(r=e._zod).check??(r.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:n.format,input:i.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(a=e._zod).check??(a.check=()=>{})}),YT=j("$ZodCheckRegex",(e,n)=>{Ds.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),QT=j("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=VT),Ds.init(e,n)}),e5=j("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=WT),Ds.init(e,n)}),t5=j("$ZodCheckIncludes",(e,n)=>{mt.init(e,n);const r=Di(n.includes),a=new RegExp(typeof n.position=="number"?`^.{${n.position},}${r}`:r);n.pattern=a,e._zod.check=i=>{i.value.includes(n.includes,n.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:i.value,inst:e,continue:!n.abort})}}),n5=j("$ZodCheckStartsWith",(e,n)=>{mt.init(e,n);const r=new RegExp(`^${Di(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.check=a=>{a.value.startsWith(n.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:a.value,inst:e,continue:!n.abort})}}),i5=j("$ZodCheckEndsWith",(e,n)=>{mt.init(e,n);const r=new RegExp(`.*${Di(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.check=a=>{a.value.endsWith(n.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:a.value,inst:e,continue:!n.abort})}}),r5=j("$ZodCheckOverwrite",(e,n)=>{mt.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class a5{constructor(n=[],r={}){this.content=[],this.indent=0,this.args=n,this.closed=r}indented(n){this.indent+=1;try{n(this)}finally{this.indent-=1}}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const a=n.split(`
|
|
56
|
+
`).filter(s=>s),i=Math.min(...a.map(s=>s.length-s.trimStart().length)),o=a.map(s=>s.slice(i)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const n=Function,r=(this==null?void 0:this.content)??[""];return new n(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
57
|
+
${r.join(`
|
|
58
|
+
`)}
|
|
59
|
+
};`)(...Object.values(this.closed))}}const o5={major:4,minor:6,patch:6},Ze=j("$ZodType",(e,n)=>{var o;var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=o5;const a=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...a??[]]:a!=null&&a.length?[...a]:[];for(const s of i)for(const u of s._zod.onattach)u(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const s=(l,c,d)=>{if(l.memo)return l;let f=vn(l),m;for(const p of c){if(p._zod.def.when){if(C3(l)||!p._zod.def.when(l))continue}else if(f)continue;const h=l.issues.length,g=p._zod.check(l);if(g instanceof Promise&&(d==null?void 0:d.async)===!1)throw new ni;if(m||g instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await g,l.issues.length!==h&&(cc(l.issues,h,e),f||(f=vn(l,h)))});else{if(l.issues.length===h)continue;cc(l.issues,h,e),f||(f=vn(l,h))}}return m?m.then(()=>l):l},u=(l,c,d)=>{if(vn(l))return l.aborted=!0,l;const f=s(c,i,d);if(f instanceof Promise){if(d.async===!1)throw new ni;return f.then(m=>e._zod.parse(m,d))}return e._zod.parse(f,d)};e._zod.run=(l,c)=>{if(c.skipChecks)return e._zod.parse(l,c);if(c.direction==="backward"){const f=e._zod.parse({value:l.value,issues:[]},{...c,skipChecks:!0});return f instanceof Promise?f.then(m=>u(m,l,c)):u(f,l,c)}const d=e._zod.parse(l,c);if(d instanceof Promise){if(c.async===!1)throw new ni;return d.then(f=>s(f,i,c))}return s(d,i,c)}}},{get"~standard"(){return O_(this,"~standard",A_(this))},set"~standard"(e){Zn(this,"~standard",e)}}),D_=(e,n)=>e.issues.length?{issues:e.issues.map(r=>En(r,n,rn()))}:{value:e.value};async function s5(e,n){const r={async:!0};return D_(await e._zod.run({value:n,issues:[]},r),r)}function A_(e){return{validate:n=>{const r={async:!1};try{const a=e._zod.run({value:n,issues:[]},r);if(!(a instanceof Promise))return D_(a,r)}catch{}return s5(e,n)},vendor:"zod",version:1}}const ld=j("$ZodString",(e,n)=>{Ze.init(e,n),e._zod.pattern=n.pattern??LT,e._zod.parse=(r,a)=>{if(n.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}}),De=j("$ZodStringFormat",(e,n)=>{Ds.init(e,n),ld.init(e,n)}),u5=j("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=IT),De.init(e,n)}),l5=j("$ZodUUID",(e,n)=>{if(n.version){const a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(a===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Fv(a))}else n.pattern??(n.pattern=Fv());De.init(e,n)}),c5=j("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=ST),De.init(e,n)}),C_=1,Qo=2;function R_(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function d5(e,n){return!("normalize"in n)&&!("hostname"in n)&&!("protocol"in n)?R_(e)||Qo:f5(e,n)}function f5(e,n){var r;if(!n.normalize&&((r=n.protocol)==null?void 0:r.source)===ZT.source&&!/^https?:\/\//i.test(e))return C_;try{if(typeof URL<"u"){const a=URL;if(typeof a.parse=="function")return a.parse(e)??Qo}return new URL(e)}catch{return Qo}}const m5=/[\t\n\r]/g;function Jv(e){return e.replace(m5,"")}function p5(e,n){return n.lastIndex=0,n.test(e.hostname)}function h5(e,n){return n.lastIndex=0,n.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}const v5=j("$ZodURL",(e,n)=>{De.init(e,n),e._zod.check=r=>{try{const a=r.value.trim(),i=d5(a,n);if(i===C_){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!n.abort});return}if(i===Qo){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort});return}if(i===!0){r.value=Jv(a);return}n.hostname&&!p5(i,n.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:r.value,inst:e,continue:!n.abort}),n.protocol&&!h5(i,n.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort}),r.value=n.normalize?i.href:Jv(a);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),g5=j("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=OT()),De.init(e,n)}),b5=j("$ZodNanoID",(e,n)=>{if(n.length!==void 0&&(!Number.isInteger(n.length)||n.length<1))throw new Error(`Invalid nanoid length: ${n.length}`);n.pattern??(n.pattern=n.length===void 0?kT:wT(n.length)),De.init(e,n)}),_5=j("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=gT),De.init(e,n)}),y5=j("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=bT),De.init(e,n)}),$5=j("$ZodULID",(e,n)=>{n.pattern??(n.pattern=_T),De.init(e,n)}),k5=j("$ZodXID",(e,n)=>{n.pattern??(n.pattern=yT),De.init(e,n)}),w5=j("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=$T),De.init(e,n)}),x5=j("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=MT(n)),De.init(e,n)}),I5=j("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=CT),De.init(e,n)}),S5=j("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=RT(n)),De.init(e,n)}),z5=j("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=xT),De.init(e,n)}),O5=j("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=PT),De.init(e,n)}),P5=/^[0-9a-fA-F:.]+$/;function M_(e){return P5.test(e)?R_(`http://[${e}]`):!1}const U5=j("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=UT),De.init(e,n),e._zod.check=r=>{M_(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}),N5=j("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=NT),De.init(e,n)});function j5(e){const n=e.split("/");if(n.length!==2)return!1;const[r,a]=n;if(!a)return!1;const i=Number(a);return`${i}`!==a||i<0||i>128?!1:M_(r)}const T5=j("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=jT),De.init(e,n),e._zod.check=r=>{j5(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}});function L_(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const F_=/^[0-9a-zA-Z+/]*={0,2}$/,E5=j("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=F_),De.init(e,n),e._zod.check=r=>{L_(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}}),cd=/^[A-Za-z0-9_-]*$/;function Z5(e){if(!cd.test(e))return!1;const n=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return L_(r)}const D5=j("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=cd),De.init(e,n),e._zod.check=r=>{Z5(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),A5=j("$ZodE164",(e,n)=>{n.pattern??(n.pattern=DT),De.init(e,n)});function C5(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[a]=r;if(!a)return!1;const i=JSON.parse(atob(a));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||n&&(!("alg"in i)||i.alg!==n))}catch{return!1}}const R5=j("$ZodJWT",(e,n)=>{De.init(e,n),e._zod.check=r=>{C5(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),J_=j("$ZodNumber",(e,n)=>{Ze.init(e,n),e._zod.pattern=sd,e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}const i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),M5=j("$ZodNumberFormat",(e,n)=>{GT.init(e,n),J_.init(e,n)}),L5=j("$ZodBoolean",(e,n)=>{Ze.init(e,n),e._zod.pattern=JT,e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=!!r.value}catch{}const i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),F5=j("$ZodNull",(e,n)=>{Ze.init(e,n),e._zod.pattern=qT,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{const i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),J5=j("$ZodUnknown",(e,n)=>{Ze.init(e,n),e._zod.parse=r=>r}),q5=j("$ZodNever",(e,n)=>{Ze.init(e,n),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function V5(e,n){const r=Cv(e._zod.def.checks);if(!r.length)return;const a=Math.min(...r.map(o=>o[0])),i=e._zod.parse;e._zod.parse=(o,s)=>{const u=n(o.value);if(u>a&&!(s!=null&&s.skipChecks)&&(s==null?void 0:s.direction)!=="backward"){for(const[l,c]of Cv(e._zod.def.checks))if(u>l&&c._zod.def.when(o)){const d=o.issues.length;return c._zod.check(o),o.issues[d].continue=!1,cc(o.issues,d,e),o}}return i(o,s)}}const W5=e=>Array.isArray(e)?e.length:-1;function qv(e,n,r){e.issues.length&&n.issues.push(...Ii(r,e.issues)),n.value[r]=e.value}const H5=j("$ZodArray",(e,n)=>{Ze.init(e,n);const r=Wt.memoizer;r==null||r.attach(e),e._zod.parse=(a,i)=>{const o=a.value;if(!Array.isArray(o))return a.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),a;a.value=r?r.alloc(e,a,Array(o.length),i):Array(o.length);const s=[],u=i==null?void 0:i.abortEarly;for(let l=0;l<o.length;l++){const c=o[l],d=n.element._zod.run({value:c,issues:[]},i);if(d instanceof Promise)s.push(d.then(f=>qv(f,a,l)));else if(qv(d,a,l),u&&d.issues.length!==0&&vn(d))break}return s.length?Promise.all(s).then(()=>a):a},V5(e,W5)});function es(e,n,r,a,i,o){const s=r in a,u=o==="optional";if(!(!s&&u&&i==="optional")){if(e.issues.length){if(i!==void 0&&u&&!s)return;n.issues.push(...Ii(r,e.issues))}if(!s&&i===void 0){e.issues.length||n.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?(s||i==="defaulted"&&!u)&&(n.value[r]=void 0):n.value[r]=e.value}}const G5=[];function q_(e){var s,u,l,c;const n=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),a=r.length?r:G5,i=a.length?[...n,...a]:n;for(const d of i)if(!((c=(l=(u=(s=e.shape)==null?void 0:s[d])==null?void 0:u._zod)==null?void 0:l.traits)!=null&&c.has("$ZodType")))throw new Error(`Invalid element at key "${String(d)}": expected a Zod schema`);const o=U3(e.shape);return{...e,allKeys:i,symbolKeys:a,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(o)}}function V_(e,n,r,a,i,o,s){const u=[],l=i.keySet,c=i.catchall._zod,d=c.def.type,f=c.optin,m=c.optout;let p=0;for(const h in n){if(s&&r.issues.length!==p){if(vn(r,p))break;p=r.issues.length}if(l.has(h))continue;if(h==="__proto__"){d==="never"&&u.push(h);continue}if(d==="never"){u.push(h);continue}const g=c.run({value:n[h],issues:[]},a);g instanceof Promise?e.push(g.then(b=>es(b,r,h,n,f,m))):es(g,r,h,n,f,m)}return u.length&&r.issues.push({code:"unrecognized_keys",keys:u,input:n,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>r):r}const B5=j("$ZodObject",(e,n)=>{Ze.init(e,n);const r=Object.getOwnPropertyDescriptor(n,"shape"),a=r!=null&&r.get?r.get.raw:n.shape??{};if(a){const c=()=>{const d={...a};return Object.defineProperty(n,"shape",{value:d}),c.raw=d,d};c.raw=a,Object.defineProperty(n,"shape",{get:c})}const i=js(()=>q_(n));_e(e,"propValues",c=>{const d=c.def.shape,f={};for(const m in d){const p=d[m]._zod;if(p.values){Object.prototype.hasOwnProperty.call(f,m)||kn(f,m,new Set);for(const h of p.values)f[m].add(h);p.optin!==void 0&&f[m].add(void 0)}}return f});const o=Fr,s=n.catchall;let u;const l=Wt.memoizer;l==null||l.attach(e),e._zod.parse=(c,d)=>{u??(u=i.value);const f=c.value;if(!o(f))return c.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),c;c.value=l?l.alloc(e,c,{},d):{};const m=[],p=u.shape,h=d==null?void 0:d.abortEarly;let g=c.issues.length;for(const b of u.allKeys){if(h&&c.issues.length!==g){if(vn(c,g))break;g=c.issues.length}if(b==="__proto__")continue;const v=p[b],$=v._zod.optin,S=v._zod.optout,k=v._zod.run({value:f[b],issues:[]},d);k instanceof Promise?m.push(k.then(w=>es(w,c,b,f,$,S))):es(k,c,b,f,$,S)}return s?V_(m,f,c,d,i.value,e,h===!0):m.length?Promise.all(m).then(()=>c):c}}),K5=j("$ZodObjectJIT",(e,n)=>{B5.init(e,n);const r=e._zod.parse,a=js(()=>q_(n)),i=Wt.memoizer,o=p=>{var w,I;const h=a.value,g=h.symbolKeys,b=new a5(["payload","ctx"],{shape:p,inst:e,memo:i,syms:g}),v=x=>`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`,$=(x,P)=>`
|
|
60
|
+
let ${x}_ab = false;
|
|
61
|
+
for (let i = 0; i < ${x}.issues.length; i++) {
|
|
62
|
+
const iss = ${x}.issues[i];
|
|
63
|
+
iss.path = iss.path ? [${P}, ...iss.path] : [${P}];
|
|
64
|
+
payload.issues.push(iss);
|
|
65
|
+
if (iss.continue !== true) ${x}_ab = true;
|
|
66
|
+
}
|
|
67
|
+
if (${x}_ab && ctx && ctx.abortEarly) {
|
|
68
|
+
payload.value = newResult;
|
|
69
|
+
return payload;
|
|
70
|
+
}`;b.write("const input = payload.value;");const S=Object.create(null);let k=0;for(const x of h.allKeys)S[x]=`key_${k++}`;b.write(i?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const x of h.allKeys){if(x==="__proto__")continue;const P=S[x],Z=typeof x=="symbol"?`syms[${g.indexOf(x)}]`:S3(x),E=`${Z} in input`,F=p[x],W=(w=F==null?void 0:F._zod)==null?void 0:w.optin,Q=W!==void 0,U=((I=F==null?void 0:F._zod)==null?void 0:I.optout)==="optional";if(b.write(`const ${P} = ${v(Z)};`),Q&&U){const L=W==="optional"?`${P}_present`:`${P}.value !== undefined || ${P}_present`;b.write(`
|
|
71
|
+
const ${P}_present = ${E};
|
|
72
|
+
if (!${P}.issues.length || ${P}_present) {
|
|
73
|
+
if (${P}.issues.length) {${$(P,Z)}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (${L}) {
|
|
77
|
+
newResult[${Z}] = ${P}.value;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
`)}else Q?(b.write(`
|
|
82
|
+
if (${P}.issues.length) {${$(P,Z)}
|
|
83
|
+
}
|
|
84
|
+
`),W==="defaulted"?b.write(`newResult[${Z}] = ${P}.value;`):b.write(`
|
|
85
|
+
if (${P}.value !== undefined || ${E}) {
|
|
86
|
+
newResult[${Z}] = ${P}.value;
|
|
87
|
+
}
|
|
88
|
+
`)):b.write(`
|
|
89
|
+
const ${P}_present = ${E};
|
|
90
|
+
if (${P}.issues.length) {${$(P,Z)}
|
|
91
|
+
}
|
|
92
|
+
if (!${P}_present && !${P}.issues.length) {
|
|
93
|
+
payload.issues.push({
|
|
94
|
+
code: "invalid_type",
|
|
95
|
+
expected: "nonoptional",
|
|
96
|
+
input: undefined,
|
|
97
|
+
path: [${Z}]
|
|
98
|
+
});
|
|
99
|
+
if (ctx && ctx.abortEarly) {
|
|
100
|
+
payload.value = newResult;
|
|
101
|
+
return payload;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (${P}_present) {
|
|
106
|
+
newResult[${Z}] = ${P}.value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
`)}return b.write("payload.value = newResult;"),b.write("return payload;"),b.compile()};let s;const u=Fr,l=!Wt.jitless,d=l&&O3.value,f=n.catchall;let m;e._zod.parse=(p,h)=>{m??(m=a.value);const g=p.value;return u(g)?l&&d&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(s||(s=o(n.shape)),p=s(p,h),f?V_([],g,p,h,m,e,(h==null?void 0:h.abortEarly)===!0):p):r(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function Vv(e,n,r,a){for(const o of e)if(o.issues.length===0)return n.value=o.value,n;const i=e.filter(o=>!vn(o));return i.length===1?(n.value=i[0].value,i[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(s=>En(s,a,rn())))}),n)}const W_=j("$ZodUnion",(e,n)=>{Ze.init(e,n),_e(e,"optin",a=>a.def.options.some(i=>i._zod.optin==="defaulted")?"defaulted":a.def.options.some(i=>i._zod.optin!==void 0)?"optional":void 0),_e(e,"optout",a=>a.def.options.some(i=>i._zod.optout==="optional")?"optional":void 0),_e(e,"values",a=>{if(a.def.options.every(i=>i._zod.values))return new Set(a.def.options.flatMap(i=>Array.from(i._zod.values)))}),_e(e,"pattern",a=>{if(a.def.options.every(i=>i._zod.pattern)){const i=a.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>ed(o.source)).join("|")})$`)}});const r=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(a,i)=>{if(r)return r(a,i);let o=!1;const s=[];for(const u of n.options){const l=u._zod.run({value:a.value,issues:[]},i);if(l instanceof Promise)s.push(l),o=!0;else{if(l.issues.length===0)return l;s.push(l)}}return o?Promise.all(s).then(u=>Vv(u,a,e,i)):Vv(s,a,e,i)}});function X5(e){var r;const n=new Map;for(const a of e.options){const i=(r=a._zod.propValues)==null?void 0:r[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const o of i)if(n.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);n.set(o,null)}else n.set(o,a)}return n}const Y5=j("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,W_.init(e,n);const r=e._zod.parse;_e(e,"propValues",i=>{var u,l;const o={};let s=0;for(const c of i.def.options){const d=c._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${i.def.options.indexOf(c)}"`);(u=d[i.def.discriminator])!=null&&u.has(void 0)&&s++;for(const[f,m]of Object.entries(d)){Object.prototype.hasOwnProperty.call(o,f)||kn(o,f,new Set);for(const p of m)o[f].add(p)}}return!i.def.unionFallback&&s>1&&((l=o[i.def.discriminator])==null||l.delete(void 0)),o}),n.options.forEach((i,o)=>{const s=td(i._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,n.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});const a=js(()=>X5(n));e._zod.parse=(i,o)=>{const s=i.value;if(!Fr(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;const u=s==null?void 0:s[n.discriminator],l=a.value.get(u);return l&&(u!==void 0||o.direction!=="backward")?l._zod.run(i,o):n.unionFallback||o.direction==="backward"?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,options:Array.from(a.value.keys()).filter(c=>a.value.get(c)!==null),input:s,path:[n.discriminator],inst:e}),i)}}),Q5=j("$ZodIntersection",(e,n)=>{Ze.init(e,n),e._zod.parse=(r,a)=>{const i=r.value,o=n.left._zod.run({value:i,issues:[]},a),s=n.right._zod.run({value:i,issues:[]},a);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,c])=>Wv(r,l,c)):Wv(r,o,s)}});function fc(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Zi(e)&&Zi(n)){const r=Object.keys(n),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),i={...e,...n};Object.prototype.hasOwnProperty.call(i,"__proto__")&&delete i.__proto__;for(const o of a){if(o==="__proto__")continue;const s=fc(e[o],n[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let a=0;a<e.length;a++){const i=e[a],o=n[a],s=fc(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Wv(e,n,r){const a=new Map;let i;const o=new Map,s=(c,d)=>{var m,p;let f;if(c.code==="unrecognized_keys"&&!((m=c.path)!=null&&m.length))i??(i=c),f=c.keys;else if(c.code==="invalid_key"&&c.origin==="record"&&((p=c.path)==null?void 0:p.length)===1){const h=String(c.path[0]);o.has(h)||o.set(h,c),f=[h]}else return!1;for(const h of f)a.has(h)||a.set(h,{}),a.get(h)[d]=!0;return!0};for(const c of n.issues)s(c,"l")||e.issues.push(c);for(const c of r.issues)s(c,"r")||e.issues.push(c);const u=[...a].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(u.length){const c=i?u.filter(d=>i.keys.includes(d)):[];c.length&&e.issues.push({...i,keys:c});for(const d of u)!c.includes(d)&&o.has(d)&&e.issues.push(o.get(d))}const l=fc(n.value,r.value);if(!l.valid){if(vn(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}const eE=j("$ZodRecord",(e,n)=>{Ze.init(e,n);const r=Wt.memoizer;r==null||r.attach(e),e._zod.parse=(a,i)=>{const o=a.value;if(!Zi(o))return a.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),a;const s=[],u=n.keyType._zod.values;if(u&&!n.partial){a.value=r?r.alloc(e,a,{},i):{};const l=new Set;for(const d of u)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){if(l.add(typeof d=="number"?d.toString():d),d==="__proto__")continue;const f=n.keyType._zod.run({value:d,issues:[]},i);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){a.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(h=>En(h,i,rn())),input:d,path:[d],inst:e});continue}const m=f.value;if(m==="__proto__")continue;const p=n.valueType._zod.run({value:o[d],issues:[]},i);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&a.issues.push(...Ii(d,h.issues)),a.value[m]=h.value})):(p.issues.length&&a.issues.push(...Ii(d,p.issues)),a.value[m]=p.value)}let c;for(const d in o)if(!l.has(d))if(n.mode==="loose"){if(d==="__proto__")continue;a.value[d]=o[d]}else c=c??[],c.push(d);c&&c.length>0&&a.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c,continue:!0})}else{a.value=r?r.alloc(e,a,{},i):{};let l;for(const c of Reflect.ownKeys(o)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,c))continue;let d=n.keyType._zod.run({value:c,issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&sd.test(c)&&d.issues.length){const h=n.keyType._zod.run({value:Number(c),issues:[]},i);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(d=h)}if(d.issues.length){n.mode==="loose"?a.value[c]=o[c]:u?(l=l??[],l.push(c)):a.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>En(h,i,rn())),input:c,path:[c],inst:e});continue}const m=d.value;if(m==="__proto__")continue;const p=n.valueType._zod.run({value:o[c],issues:[]},i);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&a.issues.push(...Ii(c,h.issues)),a.value[m]=h.value})):(p.issues.length&&a.issues.push(...Ii(c,p.issues)),a.value[m]=p.value)}l&&l.length>0&&a.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l,continue:!0})}return s.length?Promise.all(s).then(()=>a):a}}),tE=j("$ZodEnum",(e,n)=>{Ze.init(e,n);const r=uc(n.entries),a=new Set(r);e._zod.values=a,_e(e,"pattern",i=>{const o=uc(i.def.entries).filter(s=>P3.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>Di(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,o)=>{const s=i.value;return a.has(s)||i.issues.push({code:"invalid_value",values:r,input:s,inst:e}),i}}),nE=j("$ZodLiteral",(e,n)=>{Ze.init(e,n);const r=new Set(n.values);e._zod.values=r,_e(e,"pattern",a=>{const i=a.def.values;return new RegExp(i.length?`^(${i.map(o=>typeof o=="string"?Di(o):o?Di(o.toString()):String(o)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(a,i)=>{const o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),a}}),iE=j("$ZodTransform",(e,n)=>{var r;Ze.init(e,n),e._zod.optin="optional",(r=Wt.memoizer)==null||r.guard(e),e._zod.parse=(a,i)=>{if(i.direction==="backward")throw new U_(e.constructor.name);const o=n.transform(a.value,a);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(u=>(a.value=u,a));if(o instanceof Promise)throw new ni;return a.value=o,a}});function Hv(e,n){return e.value=n.issues.length?void 0:n.value,e}const H_=j("$ZodOptional",(e,n)=>{Ze.init(e,n),_e(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",_e(e,"values",r=>{const a=r.def.innerType._zod.values;return a?new Set([...a,void 0]):void 0}),_e(e,"pattern",r=>{const a=r.def.innerType._zod.pattern;return a?new RegExp(`^(${ed(a.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(r.value===void 0){if(n.innerType._zod.optin!=="defaulted")return r;const i=n.innerType._zod.run({value:r.value,issues:[]},a);return i instanceof Promise?i.then(o=>Hv(r,o)):Hv(r,i)}return n.innerType._zod.run(r,a)}}),rE=j("$ZodExactOptional",(e,n)=>{H_.init(e,n),_e(e,"values",r=>r.def.innerType._zod.values),_e(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,a)=>n.innerType._zod.run(r,a)}),aE=j("$ZodNullable",(e,n)=>{Ze.init(e,n),_e(e,"optin",r=>r.def.innerType._zod.optin),_e(e,"optout",r=>r.def.innerType._zod.optout),_e(e,"pattern",r=>{const a=r.def.innerType._zod.pattern;return a?new RegExp(`^(${ed(a.source)}|null)$`):void 0}),_e(e,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:n.innerType._zod.run(r,a)}),oE=j("$ZodDefault",(e,n)=>{Ze.init(e,n),e._zod.optin="defaulted",_e(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);if(r.value===void 0)return r.value=n.defaultValue,r;const i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>Gv(o,n)):Gv(i,n)}});function Gv(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const sE=j("$ZodPrefault",(e,n)=>{Ze.init(e,n),e._zod.optin="defaulted",_e(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,a))}),uE=j("$ZodNonOptional",(e,n)=>{Ze.init(e,n),_e(e,"values",r=>{const a=r.def.innerType._zod.values;return a?new Set([...a].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,a)=>{const i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>Bv(o,e)):Bv(i,e)}});function Bv(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}function Kv(e,n,r,a){return n.issues.length?(e.value=r.catchValue({...n,value:e.value,error:{issues:n.issues.map(i=>En(i,a,rn()))},input:e.value}),e):(e.value=n.value,n.memo&&(e.memo=!0),e)}const lE=j("$ZodCatch",(e,n)=>{Ze.init(e,n),_e(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),_e(e,"optout",r=>r.def.innerType._zod.optout),_e(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);const i=n.innerType._zod.run({value:r.value,issues:[]},a);return i instanceof Promise?i.then(o=>Kv(r,o,n,a)):Kv(r,i,n,a)}}),G_=j("$ZodPipe",(e,n)=>{Ze.init(e,n),_e(e,"values",r=>r.def.in._zod.values),_e(e,"optin",r=>r.def.in._zod.optin),_e(e,"optout",r=>r.def.out._zod.optout),_e(e,"propValues",r=>r.def.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){const o=n.out._zod.run(r,a);return o instanceof Promise?o.then(s=>mo(s,n.in,a)):mo(o,n.in,a)}const i=n.in._zod.run(r,a);return i instanceof Promise?i.then(o=>mo(o,n.out,a)):mo(i,n.out,a)}});function mo(e,n,r){return e.issues.some(a=>a.code!=="unrecognized_keys")?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}const cE=j("$ZodPreprocess",(e,n)=>{G_.init(e,n)}),dE=j("$ZodReadonly",(e,n)=>{Ze.init(e,n),_e(e,"propValues",r=>r.def.innerType._zod.propValues),_e(e,"values",r=>r.def.innerType._zod.values),_e(e,"optin",r=>{var a,i;return(i=(a=r.def.innerType)==null?void 0:a._zod)==null?void 0:i.optin}),_e(e,"optout",r=>{var a,i;return(i=(a=r.def.innerType)==null?void 0:a._zod)==null?void 0:i.optout}),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);const i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(Xv):Xv(i)}});function Xv(e){return e.memo||(e.value=Object.freeze(e.value)),e}const fE=j("$ZodCustom",(e,n)=>{mt.init(e,n),Ze.init(e,n),e._zod.parse=(r,a)=>r,e._zod.check=r=>{const a=r.value,i=n.fn(a);if(i instanceof Promise)return i.then(o=>Yv(o,r,a,e));Yv(i,r,a,e)}});function Yv(e,n,r,a){if(!e){const i={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(i.params=a._zod.def.params),n.issues.push(Jr(i))}}class mE extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const mc="~memo",Qv=[];function B_(e){return e!==null&&typeof e=="object"}function Ll(e){return e.map(n=>n.path?{...n,path:n.path.slice()}:{...n})}const K_=new WeakMap,Ir=0,Eo=1,Tr=2;function Zo(e,n,r){const a=K_.get(e);if(a!==void 0)return a?Tr:Ir;if(n.has(e))return Tr;n.add(e);let i=Ir;const o=d=>{if(i!==Tr&&(d!=null&&d._zod)){const f=Zo(d,n);f>i&&(i=f)}},s=(d,f)=>{var p;let m=Ir;for(const h of Reflect.ownKeys(d)){const g=Object.getOwnPropertyDescriptor(d,h);if(!g.enumerable)continue;const b=g.get?Eo:(p=g.value)!=null&&p._zod?Zo(g.value,n):Ir;b>m&&(m=b)}return m},u=d=>{d>i&&(i=d)},l=e._zod.def;switch(l.type){case"object":{const d=td(l);u(d?s(d):Eo),o(l.catchall);break}case"array":o(l.element);break;case"tuple":for(const d of l.items)o(d);o(l.rest);break;case"record":case"map":o(l.keyType),o(l.valueType);break;case"set":o(l.valueType);break;case"union":for(const d of l.options)o(d);break;case"intersection":o(l.left),o(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(l.innerType);break;case"pipe":o(l.in),o(l.out);break;case"function":o(l.input),o(l.output);break;case"lazy":{const d=l._cachedInner??void 0;u(d?Zo(d,n):Eo);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const d in l){const f=Object.getOwnPropertyDescriptor(l,d);if(!f||f.get)continue;const m=f.value;if(!(!m||typeof m!="object")){if(m._zod)o(m);else if(Array.isArray(m))for(const p of m)o(p)}}}return n.delete(e),pE(e,i)}function pE(e,n){return n!==Eo&&K_.set(e,n===Tr),n}function hE(e,n){let r=e.buckets.get(n);return r||(r=new WeakMap,e.buckets.set(n,r)),r}let po;const ho=[],vE={alloc(e,n,r){const a=po;if(!a)return r;po=void 0;const i={value:r,issues:null};return a.set(n.value,i),ho.push(i),r},guard(e){var n;(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred.push(()=>{const r=e._zod.parse,a=(i,o)=>{if(o.direction!=="backward"&&bE(o,i.value))throw new mE;return r(i,o)};e._zod.parse=a,e._zod.run===r&&(e._zod.run=a)})},attach(e){var n;let r,a=!1,i,o;(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred.push(()=>{const s=e._zod.parse,u=(l,c)=>{if(r===void 0){const v=Zo(e,new Set);if(v===Ir)return e._zod.parse=s,e._zod.run===u&&(e._zod.run=s),s(l,c);v===Tr||a?r=!0:a=!0}const d=l.value;if(!B_(d))return s(l,c);let f=c[mc];f||(f={buckets:new WeakMap,backEdges:void 0},c[mc]=f);let m;i===c?m=o:(m=hE(f,e),i=c,o=m);const p=m.get(d);if(p)return l.value=p.value,p.issues?p.issues.length&&l.issues.push(...Ll(p.issues)):(l.memo=!0,f.backEdges??(f.backEdges=new WeakSet),f.backEdges.add(p.value)),l;po=m;const h=ho.length,g=s(l,c);po=void 0;const b=ho.length>h?ho.pop():void 0;return g instanceof Promise?g.then(v=>(b&&(b.issues=v.issues.length?Ll(v.issues):Qv),v)):(b&&(b.issues=g.issues.length?Ll(g.issues):Qv),g)};e._zod.parse=u,e._zod.run===s&&(e._zod.run=u)})}};function gE(){return vE}function bE(e,n){var a;const r=(a=e[mc])==null?void 0:a.backEdges;return r!==void 0&&B_(n)&&r.has(n)}const _E=()=>{const 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 n(o){return e[o]??null}const 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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};function i(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):a[o]??o}return o=>{switch(o.code){case"invalid_type":{const s=i(o.expected),u=M3(o.input),l=i(u,o.input);return`Invalid input: expected ${s}, received ${l}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${I_(o.values[0])}`:`Invalid option: expected one of ${Dv(o.values,"|")}`;case"too_big":{const s=o.exact?"exactly ":o.inclusive?"<=":"<",u=n(o.origin);return u?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{const s=o.exact?"exactly ":o.inclusive?">=":">",u=n(o.origin);return u?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${u.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{const s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${Dv(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(u=>`'${u}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function yE(){return{localeError:_E()}}var eg;class $E{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const a=r[0];return this._map.set(n,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const a={...this.get(r)??{}};delete a.id;const i={...a,...this._map.get(n)};return Object.keys(i).length?i:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function kE(){return new $E}(eg=globalThis).__zod_globalRegistry??(eg.__zod_globalRegistry=kE());const Sr=globalThis.__zod_globalRegistry;function X_(e){return e.checks&&(e.checks=[...e.checks]),e}function wE(e,n){return new e(X_({type:"string",...G(n)}))}function xE(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...G(n)})}function IE(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...G(n)})}function SE(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...G(n)})}function zE(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...G(n)})}function OE(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...G(n)})}function PE(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...G(n)})}function UE(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...G(n)})}function NE(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...G(n)})}function jE(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...G(n)})}function TE(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...G(n)})}function EE(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...G(n)})}function ZE(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...G(n)})}function DE(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...G(n)})}function AE(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...G(n)})}function CE(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...G(n)})}function RE(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...G(n)})}function ME(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...G(n)})}function LE(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...G(n)})}function FE(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...G(n)})}function JE(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...G(n)})}function qE(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...G(n)})}function VE(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...G(n)})}function Y_(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...G(n)})}function WE(e,n){return new e({type:"string",format:"date",check:"string_format",...G(n)})}function HE(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...G(n)})}function GE(e,n){return new e({type:"string",format:"duration",check:"string_format",...G(n)})}function BE(e,n){return new e(X_({type:"number",checks:[],...G(n)}))}function KE(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...G(n)})}function XE(e,n){return new e({type:"boolean",...G(n)})}function YE(e,n){return new e({type:"null",...G(n)})}function QE(e){return new e({type:"unknown"})}function eZ(e,n){return new e({type:"never",...G(n)})}function tg(e,n){return new E_({check:"less_than",...G(n),value:e,inclusive:!1})}function Fl(e,n){return new E_({check:"less_than",...G(n),value:e,inclusive:!0})}function ng(e,n){return new Z_({check:"greater_than",...G(n),value:e,inclusive:!1})}function Jl(e,n){return new Z_({check:"greater_than",...G(n),value:e,inclusive:!0})}function ig(e,n){return new HT({check:"multiple_of",...G(n),value:e})}function Q_(e,n){return new BT({check:"max_length",...G(n),maximum:e})}function ts(e,n){return new KT({check:"min_length",...G(n),minimum:e})}function ey(e,n){return new XT({check:"length_equals",...G(n),length:e})}function tZ(e,n){return new YT({check:"string_format",format:"regex",...G(n),pattern:e})}function nZ(e){return new QT({check:"string_format",format:"lowercase",...G(e)})}function iZ(e){return new e5({check:"string_format",format:"uppercase",...G(e)})}function rZ(e,n){return new t5({check:"string_format",format:"includes",...G(n),includes:e})}function aZ(e,n){return new n5({check:"string_format",format:"starts_with",...G(n),prefix:e})}function oZ(e,n){return new i5({check:"string_format",format:"ends_with",...G(n),suffix:e})}function tr(e){return new r5({check:"overwrite",tx:e})}function sZ(e){return tr(n=>n.normalize(e))}function uZ(){return tr(e=>e.trim())}function lZ(){return tr(e=>e.toLowerCase())}function cZ(){return tr(e=>e.toUpperCase())}function dZ(){return tr(e=>z3(e))}function fZ(e,n,r){return new e({type:"array",element:n,...G(r)})}function mZ(e,n,r){const a=G(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:n,...a})}function pZ(e,n,r){return new e({type:"custom",check:"custom",fn:n,...G(r)})}function hZ(e,n){const r=vZ(a=>(a.addIssue=i=>{if(typeof i=="string")a.issues.push(Jr(i,a.value,r._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=a.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),a.issues.push(Jr(o))}},e(a.value,a)),n);return r}function vZ(e,n){const r=new mt({check:"custom",...G(n)});return r._zod.check=e,r}function Er(e,...n){for(const r of n)for(const a of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,a)&&kn(e,a,r[a]);return e}function ty(e){let n=(e==null?void 0:e.target)??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Sr,target:n,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",intersections:[],deferred:[],external:(e==null?void 0:e.external)??void 0}}function Dn(e,n,r,a,i){const o=typeof n.unrepresentable=="function"?n.unrepresentable({zodSchema:e,path:a.path,message:i}):n.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(i);return Object.assign(r,o),!0}function We(e,n,r={path:[],schemaPath:[]}){var d,f;var a;const i=e._zod.def,o=n.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,s),n.sharedDefsExtractedFor=void 0,n.sharedEmitDoneFor=void 0;const u=(f=(d=e._zod).toJSONSchema)==null?void 0:f.call(d);if(u)s.schema=u;else{const m={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,s.schema,m);else{const h=s.schema,g=n.processors[i.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);g(e,n,h,m)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),We(p,n,m),n.seen.get(p).isParent=!0)}const l=n.metadataRegistry.get(e);return l&&Er(s.schema,l),n.io==="input"&&rt(e)&&(delete s.schema.examples,delete s.schema.default),n.io==="input"&&"_prefault"in s.schema&&((a=s.schema).default??(a.default=s.schema._prefault)),delete s.schema._prefault,n.seen.get(e).schema}function rg(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ny(e,n){var s,u,l,c;const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const a=new Map;for(const d of e.seen.entries()){const f=(s=e.metadataRegistry.get(d[0]))==null?void 0:s.id;if(f){const m=a.get(f);if(m&&m!==d[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(f,d[0])}}const i=d=>{var g;const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const b=(g=e.external.registry.get(d[0]))==null?void 0:g.id,v=e.external.uri??(S=>S);if(b)return{ref:v(b)};const $=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=$,{defId:$,ref:`${v("__shared")}#/${f}/${rg($)}`}}const m="#",p=`${m}/${f}/`;if(d[1]===r&&!d[1].schema.id)return{ref:m};const h=d[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:p+rg(h)}},o=d=>{if(d[1].schema.$ref)return;const f=d[1],{ref:m,defId:p}=i(d);f.def={...f.schema},p&&(f.defId=p);const h=f.schema;for(const g in h)delete h[g];h.$ref=m};if(e.cycles==="throw")for(const d of e.seen.entries()){const f=d[1];if(f.cycle)throw new Error(`Cycle detected: #/${(u=f.cycle)==null?void 0:u.join("/")}/<root>
|
|
110
|
+
|
|
111
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of e.seen.entries()){const f=d[1];if(n===d[0]){o(d);continue}if(e.external){const p=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(n!==d[0]&&p){o(d);continue}}if((c=e.metadataRegistry.get(d[0]))==null?void 0:c.id){o(d);continue}if(f.cycle){o(d);continue}f.count>1&&e.reused==="ref"&&o(d)}e.external&&(e.sharedDefsExtractedFor=e.external)}function iy(e){const n=e.anyOf;if(!Array.isArray(n)||n.length===0||e.type!==void 0)return;const r=[];for(const a of n){if(!a||typeof a!="object")return;iy(a);const i=Object.keys(a);if(i.length!==1||i[0]!=="type")return;const o=a.type;for(const s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;r.includes(s)||r.push(s)}}delete e.anyOf,e.type=r.length===1?r[0]:r}const ry=new Set(["type","properties","required","additionalProperties"]),ag=["oneOf","anyOf"];function og(e){const n=e.additionalProperties;return n===void 0||n===!1||typeof n!="object"||n===null?null:Object.keys(n).length?n:null}function pc(e){var o;const n=[];for(const s of e){if(typeof s!="object"||s.type!=="object")return null;for(const u in s)if(!ry.has(u))return null;n.push(s)}const r={},a=new Set;for(const s of n){for(const u in s.properties){if(Object.prototype.hasOwnProperty.call(r,u))continue;const l=[];for(const d of n){const f=((o=d.properties)==null?void 0:o[u])??og(d);f!=null&&(l.some(m=>JSON.stringify(m)===JSON.stringify(f))||l.push(f))}const c=l.length===1?l[0]:pc(l)??{allOf:l};kn(r,u,c)}for(const u of s.required??[])a.add(u)}const i={type:"object",properties:r};if(a.size&&(i.required=[...a]),n.every(s=>s.additionalProperties===!1))i.additionalProperties=!1;else{const s=[];for(const u of n){const l=og(u);l&&!s.some(c=>JSON.stringify(c)===JSON.stringify(l))&&s.push(l)}s.length===1?i.additionalProperties=s[0]:s.length>1&&(i.additionalProperties={allOf:s})}return i}function gZ(e){const n=e.allOf;if(!Array.isArray(n)||n.length<2)return;for(const i of ry)if(i in e)return;const r=n.filter(i=>ag.some(o=>Array.isArray(i[o])));let a=null;if(!r.length)a=pc(n);else{const i=r[0],o=ag.find(l=>Array.isArray(i[l]));if(Object.keys(i).length!==1)return;const s=n.filter(l=>l!==i),u=i[o].map(l=>pc([...s,l]));if(u.some(l=>!l))return;a={[o]:u}}a&&(delete e.allOf,Er(e,a))}function ay(e,n){var u,l,c,d;const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=f=>{const m=e.seen.get(f);if(m.ref===null)return;const p=m.def??m.schema,h={...p},g=m.ref;if(m.ref=null,g){a(g);const v=e.seen.get(g),$=v.schema;if($.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push($)):Er(p,$),Er(p,h),f._zod.parent===g)for(const k in p)k==="$ref"||k==="allOf"||k in h||delete p[k];if($.$ref&&v.def)for(const k in p)k==="$ref"||k==="allOf"||k in v.def&&JSON.stringify(p[k])===JSON.stringify(v.def[k])&&delete p[k]}const b=f._zod.parent;if(b&&b!==g){a(b);const v=e.seen.get(b);if(v!=null&&v.schema.$ref&&(p.$ref=v.schema.$ref,v.def))for(const $ in p)$==="$ref"||$==="allOf"||$ in v.def&&JSON.stringify(p[$])===JSON.stringify(v.def[$])&&delete p[$]}e.override({zodSchema:f,jsonSchema:p,path:m.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const f of[...e.seen.entries()].reverse())a(f[0]);if(e.target!=="openapi-3.0")for(const f of e.seen.entries())iy(f[1].def??f[1].schema);for(const f of e.deferred)f();if(e.intersections.length){const f=new Map;for(const m of e.seen.values())for(const p of[m.schema,m.def]){const h=p==null?void 0:p.allOf;if(!Array.isArray(h))continue;const g=f.get(h);g?g.push(p):f.set(h,[p])}for(const m of e.intersections)for(const p of f.get(m)??[])gZ(p)}}const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){const f=(l=e.external.registry.get(n))==null?void 0:l.id;if(!f)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(f)}Er(i,r.defId?r.schema:r.def??r.schema);const o=(c=e.metadataRegistry.get(n))==null?void 0:c.id;o!==void 0&&i.id===o&&delete i.id;const s=((d=e.external)==null?void 0:d.defs)??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const f of e.seen.entries()){const m=f[1];m.def&&m.defId&&(m.def.id===m.defId&&delete m.def.id,kn(s,m.defId,m.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const f=JSON.parse(JSON.stringify(i));return Object.defineProperty(f,"~standard",{value:{...n["~standard"],jsonSchema:{input:ns(n,"input",e.processors),output:ns(n,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function rt(e,n){const r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return rt(a.element,r);if(a.type==="set")return rt(a.valueType,r);if(a.type==="lazy")return rt(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault"||a.type==="catch")return rt(a.innerType,r);if(a.type==="intersection")return rt(a.left,r)||rt(a.right,r);if(a.type==="record"||a.type==="map")return rt(a.keyType,r)||rt(a.valueType,r);if(a.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:rt(a.in,r)||rt(a.out,r);if(a.type==="object"){for(const i in a.shape)if(rt(a.shape[i],r))return!0;return!1}if(a.type==="union"){for(const i of a.options)if(rt(i,r))return!0;return!1}if(a.type==="tuple"){for(const i of a.items)if(rt(i,r))return!0;return!!(a.rest&&rt(a.rest,r))}return!1}const bZ=(e,n={})=>r=>{const a=ty({...r,processors:n});return We(e,a),ny(a,e),ay(a,e)},ns=(e,n,r={})=>a=>{const{libraryOptions:i,target:o}=a??{},s=ty({...i??{},target:o,io:n,processors:r});return We(e,s),ny(s,e),ay(s,e)},Ai=(e,n,r)=>{(e[n]===void 0||r>e[n])&&(e[n]=r)},Ci=(e,n,r)=>{(e[n]===void 0||r<e[n])&&(e[n]=r)},sg=(e,n)=>{Ai(e,"minimum",n),Ci(e,"maximum",n)},oy=(e,n)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(n)||e.multipleOf.push(n)},sy=(e,n)=>{e.patterns??(e.patterns=new Set),e.patterns.add(n)},uy=(e,n)=>{e.mime=e.mime?e.mime.filter(r=>n.includes(r)):[...n]},ly=(e,n)=>{e.format=n,n.includes("int")&&(e.isInt=!0)},ug=(e,n)=>Ai(e,"minimum",n.minimum),lg=(e,n)=>Ci(e,"maximum",n.maximum),cg=e=>(n,r)=>{ly(n,r.format);const[a,i]=e[r.format];Ai(n,"minimum",a),Ci(n,"maximum",i)},ql={greater_than:(e,n)=>Ai(e,n.inclusive?"minimum":"exclusiveMinimum",n.value),less_than:(e,n)=>Ci(e,n.inclusive?"maximum":"exclusiveMaximum",n.value),multiple_of:(e,n)=>oy(e,n.value),number_format:cg(S_),bigint_format:cg(N3),min_length:ug,max_length:lg,length_equals:(e,n)=>sg(e,n.length),min_size:ug,max_size:lg,size_equals:(e,n)=>sg(e,n.size),string_format:(e,n)=>{ly(e,n.format),n.pattern&&sy(e,n.pattern),(n.format==="base64"||n.format==="base64url")&&(e.contentEncoding=n.format),(n.local||n.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,n)=>uy(e,n.mime)};function Jt(e){var o;const n={},r=e._zod.def,a=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(const s of a)(o=ql[s._zod.def.check])==null||o.call(ql,n,s._zod.def);const i=e._zod.bag;i.minimum!==void 0&&Ai(n,"minimum",i.minimum),i.exclusiveMinimum!==void 0&&Ai(n,"exclusiveMinimum",i.exclusiveMinimum),i.maximum!==void 0&&Ci(n,"maximum",i.maximum),i.exclusiveMaximum!==void 0&&Ci(n,"exclusiveMaximum",i.exclusiveMaximum),i.multipleOf!==void 0&&oy(n,i.multipleOf),i.format!==void 0&&(n.format??(n.format=i.format),i.format.includes("int")&&(n.isInt=!0)),i.mime&&uy(n,i.mime);for(const s of i.patterns??[])sy(n,s);return n}const _Z={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yZ=new Map([[F_,TT],[cd,ET]]),cy=e=>yZ.get(e)??e,$Z=(e,n,r,a)=>{const i=r;i.type="string";const{minimum:o,maximum:s,format:u,patterns:l,contentEncoding:c,laxFormat:d}=Jt(e);if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=_Z[u]??u,i.format===""&&delete i.format,(u==="time"||d)&&delete i.format),c&&(i.contentEncoding=c),l&&l.size>0){const f=[...l].map(cy);f.length===1?i.pattern=f[0].source:f.length>1&&(i.allOf=[...f.map(m=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},kZ=(e,n,r,a)=>{const i=r,{minimum:o,maximum:s,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:c,isInt:d}=Jt(e);i.type=d?"integer":"number";const f=typeof c=="number"&&c>=(o??Number.NEGATIVE_INFINITY),m=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),p=n.target==="draft-04"||n.target==="openapi-3.0";if(f?p?(i.minimum=c,i.exclusiveMinimum=!0):i.exclusiveMinimum=c:typeof o=="number"&&(i.minimum=o),m?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof s=="number"&&(i.maximum=s),u){const h=new Set;for(const v of u)Number.isFinite(v)&&v!==0?h.add(Math.abs(v)):Dn(e,n,i,a,`A multipleOf divisor of ${v} cannot be represented in JSON Schema`);const[g,...b]=h;g!==void 0&&(i.multipleOf=g),b.length&&(i.allOf=[...i.allOf??[],...b.map(v=>({multipleOf:v}))])}},wZ=(e,n,r,a)=>{r.type="boolean"},xZ=(e,n,r,a)=>{n.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},IZ=(e,n,r,a)=>{r.not={}},SZ=(e,n,r,a)=>{},zZ=(e,n,r,a)=>{const i=e._zod.def,o=uc(i.entries);if(o.length===0){r.not={};return}o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},OZ=(e,n,r,a)=>{const i=e._zod.def;if(i.values.length===0){r.not={};return}const o=[];for(const s of i.values)if(s===void 0){if(Dn(e,n,r,a,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(Dn(e,n,r,a,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){const s=o[0];r.type=s===null?"null":typeof s,n.target==="draft-04"||n.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},PZ=(e,n,r,a)=>{Dn(e,n,r,a,"Custom types cannot be represented in JSON Schema")},UZ=(e,n,r,a)=>{Dn(e,n,r,a,"Transforms cannot be represented in JSON Schema")},NZ=(e,n,r,a)=>{const i=r,o=e._zod.def,{minimum:s,maximum:u}=Jt(e);typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=We(o.element,n,{...a,path:[...a.path,"items"]})};function is(e){const n=e._zod.def;return n.type==="pipe"&&n.in._zod.traits.has("$ZodTransform")?is(n.out):n.type==="catch"?is(n.innerType):e._zod.optin}const jZ=(e,n,r,a)=>{var c;const i=r,o=e._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&Dn(e,n,i,a,"Symbol keys cannot be represented in JSON Schema"))return;i.type="object",i.properties={};for(const d in s)kn(i.properties,d,We(s[d],n,{...a,path:[...a.path,"properties",d]}));const l=[];for(const d of Object.keys(s)){const f=o.shape[d];(n.io==="input"?is(f)===void 0:f._zod.optout===void 0)&&l.push(d)}l.length>0&&(i.required=l),((c=o.catchall)==null?void 0:c._zod.def.type)==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=We(o.catchall,n,{...a,path:[...a.path,"additionalProperties"]})):n.io==="output"&&(i.additionalProperties=!1)},TZ=(e,n,r,a)=>{const i=e._zod.def,o=i.inclusive===!1,s=i.options.map((u,l)=>We(u,n,{...a,path:[...a.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=s:r.anyOf=s},EZ=(e,n,r,a)=>{const i=e._zod.def,o=We(i.left,n,{...a,path:[...a.path,"allOf",0]}),s=We(i.right,n,{...a,path:[...a.path,"allOf",1]}),u=c=>"allOf"in c&&Object.keys(c).length===1,l=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];r.allOf=l,n.intersections.push(l)};function hc(e,n,r){var h;if(n.$ref){if(r.has(n))return n;r.add(n);const g=(h=e.get(n))==null?void 0:h.def;if(!g)return n;const b=hc(e,g,r);return b===g?n:b}for(const g of["anyOf","oneOf"]){const b=n[g];if(!Array.isArray(b))continue;const v=b.map($=>hc(e,$,r));v.some(($,S)=>$!==b[S])&&(n={...n,[g]:v})}const a=Array.isArray(n.type)?n.type:[n.type],i=!a.includes("string")&&a.some(g=>g==="number"||g==="integer"),o=n.enum??(n.const!==void 0?[n.const]:void 0);if(!i&&!(o!=null&&o.some(g=>typeof g=="number")))return n;const{minimum:s,maximum:u,exclusiveMinimum:l,exclusiveMaximum:c,multipleOf:d,format:f,id:m,...p}=n;return p.enum?p.enum=p.enum.map(g=>typeof g=="number"?String(g):g):typeof p.const=="number"&&(p.const=String(p.const)),i&&(p.type="string",o||(p.pattern=(a.includes("number")?sd:FT).source)),p}const vc=new WeakMap;function ZZ(e){var a;const n=new Map;for(const i of e.seen.values())i.def&&!n.has(i.schema)&&n.set(i.schema,i);const r=new Map;for(const i of vc.get(e)??[]){const o=e.seen.get(i),s=(a=(o==null?void 0:o.def)??(o==null?void 0:o.schema))==null?void 0:a.propertyNames;if(!s||s===!0||r.has(s))continue;const u=hc(n,s,new Set);u!==s&&r.set(s,u)}if(r.size)for(const i of e.seen.values())for(const o of[i.schema,i.def]){const s=o&&r.get(o.propertyNames);s&&(o.propertyNames=s)}}const DZ=(e,n,r,a)=>{const i=r,o=e._zod.def;i.type="object";const s=o.keyType,u=Jt(s).patterns;if(o.mode==="loose"&&u&&u.size>0){const d=We(o.valueType,n,{...a,path:[...a.path,"patternProperties","*"]});i.patternProperties={};for(const f of u)kn(i.patternProperties,cy(f).source,d)}else{if(n.target==="draft-07"||n.target==="draft-2020-12"){i.propertyNames=We(o.keyType,n,{...a,path:[...a.path,"propertyNames"]});let d=vc.get(n);d||(d=[],vc.set(n,d),n.deferred.push(()=>ZZ(n))),d.push(e)}i.additionalProperties=We(o.valueType,n,{...a,path:[...a.path,"additionalProperties"]})}const l=s._zod.values,c=n.io==="input"&&is(o.valueType)!==void 0;if(l&&!o.partial&&!c){const d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(i.required=d.map(String))}},AZ=(e,n,r,a)=>{const i=e._zod.def,o=We(i.innerType,n,a),s=n.seen.get(e);n.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},CZ=(e,n,r,a)=>{const i=e._zod.def;We(i.innerType,n,a);const o=n.seen.get(e);o.ref=i.innerType},dd=Symbol();function dy(e,n,r,a,i){let o=!1;const s=JSON.stringify(e,(u,l)=>typeof l!="bigint"?l:(o=!0,null));return o?(Dn(n,r,a,i,"BigInt defaults cannot be represented in JSON Schema"),dd):JSON.parse(s)}const RZ=(e,n,r,a)=>{const i=e._zod.def;We(i.innerType,n,a);const o=n.seen.get(e);o.ref=i.innerType;const s=dy(i.defaultValue,e,n,r,a);s!==dd&&(r.default=s)},MZ=(e,n,r,a)=>{const i=e._zod.def;We(i.innerType,n,a);const o=n.seen.get(e);if(o.ref=i.innerType,n.io!=="input")return;const s=dy(i.defaultValue,e,n,r,a);s!==dd&&(r._prefault=s)},LZ=(e,n,r,a)=>{const i=e._zod.def;We(i.innerType,n,a);const o=n.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{Dn(e,n,r,a,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},FZ=(e,n,r,a)=>{const i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),s=n.io==="input"?o?i.out:i.in:i.out;We(s,n,a);const u=n.seen.get(e);u.ref=s},JZ=(e,n,r,a)=>{const i=e._zod.def;We(i.innerType,n,a);const o=n.seen.get(e);o.ref=i.innerType,r.readOnly=!0},fy=(e,n,r,a)=>{const i=e._zod.def;We(i.innerType,n,a);const o=n.seen.get(e);o.ref=i.innerType};function fd(e){return!!e._zod}function my(e,n){return fd(e)?iT(e,n):e.safeParse(n)}function qZ(e){var r,a;if(!e)return;let n;if(fd(e)?n=(a=(r=e._zod)==null?void 0:r.def)==null?void 0:a.shape:n=e.shape,!!n){if(typeof n=="function")try{return n()}catch{return}return n}}function VZ(e){var i;if(fd(e)){const s=(i=e._zod)==null?void 0:i.def;if(s){if(s.value!==void 0)return s.value;if(Array.isArray(s.values)&&s.values.length>0)return s.values[0]}}const r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}const a=e.value;if(a!==void 0)return a}const dg=new WeakSet([Object.prototype,Error.prototype]);function vo(e,n,r){Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get(){const a=r(this);return Object.defineProperty(this,n,{value:a,configurable:!0,writable:!0}),a},set(a){Object.defineProperty(this,n,{value:a,configurable:!0,writable:!0})}})}const WZ=(e,n)=>{Y3.init(e,n),e.name="ZodError";const r=Object.getPrototypeOf(e);dg.has(r)||(dg.add(r),vo(r,"format",a=>i=>nT(a,i)),vo(r,"flatten",a=>i=>tT(a,i)),vo(r,"addIssue",a=>i=>{a.issues.push(i),a.message=JSON.stringify(a.issues,lc,2)}),vo(r,"addIssues",a=>i=>{a.issues.push(...i),a.message=JSON.stringify(a.issues,lc,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Tt=j("ZodError",WZ,void 0,{Parent:Error}),HZ=rd(Tt),GZ=ad(Tt),BZ=Zs(Tt),KZ=od(Tt),XZ=lT(Tt),YZ=cT(Tt),QZ=dT(Tt),eD=fT(Tt),tD=mT(Tt),nD=pT(Tt),iD=hT(Tt),rD=vT(Tt);function aD(){Wt.localeError||rn(yE())}function As(){Wt.memoizer||rn({memoizer:gE()})}const Ae=j("ZodType",(e,n)=>(aD(),Ze.init(e,n),e.def=n,e.type=n.type,e),{check(...e){const n=this.def;return this.clone(ht(n,{checks:[...n.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,n){return qn(this,e,n)},brand(){return this},register(e,n){return e.add(this,n),this},refine(e,n){return this.check(QD(e,n))},superRefine(e,n){return this.check(e7(e,n))},overwrite(e){return this.check(tr(e))},optional(){return Le(this)},exactOptional(){return MD(this)},nullable(){return pg(this)},nullish(){return Le(pg(this))},nonoptional(e){return WD(this,e)},array(){return ve(this)},or(e){return Ce([this,e])},and(e){return md(this,e)},transform(e){return hg(this,yy(e))},default(e){return JD(this,e)},prefault(e){return VD(this,e)},catch(e){return GD(this,e)},pipe(e){return hg(this,e)},readonly(){return XD(this)},describe(e){const n=this.clone();return Sr.add(n,{description:e}),n},meta(...e){if(e.length===0)return Sr.get(this);const n=this.clone();return Sr.add(n,e[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...n){return n.length===0?e(this):e(this,...n)},get"~standard"(){return O_(this,"~standard",{...A_(this),jsonSchema:{input:ns(this,"input"),output:ns(this,"output")}})},set"~standard"(e){Zn(this,"~standard",e)},parse:function e(n,r){return HZ(this,n,r,{callee:e})},parseAsync:async function e(n,r){return await GZ(this,n,r,{callee:e})},safeParse(e,n){return BZ(this,e,n)},async safeParseAsync(e,n){return KZ(this,e,n)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){Zn(this,"spa",e)},validate(e,n){return oT(this,e,n)},validateAsync(e,n){return uT(this,e,n)},encode:function e(n,r){return XZ(this,n,r,{callee:e})},decode:function e(n,r){return YZ(this,n,r,{callee:e})},encodeAsync:async function e(n,r){return await QZ(this,n,r,{callee:e})},decodeAsync:async function e(n,r){return await eD(this,n,r,{callee:e})},safeEncode(e,n){return tD(this,e,n)},safeDecode(e,n){return nD(this,e,n)},async safeEncodeAsync(e,n){return iD(this,e,n)},async safeDecodeAsync(e,n){return rD(this,e,n)},toJSONSchema(e){return bZ(this,{})(e)},get description(){var e;return(e=Sr.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),py=j("_ZodString",(e,n)=>{ld.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>$Z(e,r,a)},P_({format:e=>Jt(e).format??null,minLength:e=>Jt(e).minimum??null,maxLength:e=>Jt(e).maximum??null},{regex(...e){return this.check(tZ(...e))},includes(...e){return this.check(rZ(...e))},startsWith(...e){return this.check(aZ(...e))},endsWith(...e){return this.check(oZ(...e))},min(...e){return this.check(ts(...e))},max(...e){return this.check(Q_(...e))},length(...e){return this.check(ey(...e))},nonempty(...e){return this.check(ts(1,...e))},lowercase(e){return this.check(nZ(e))},uppercase(e){return this.check(iZ(e))},trim(){return this.check(uZ())},normalize(...e){return this.check(sZ(...e))},toLowerCase(){return this.check(lZ())},toUpperCase(){return this.check(cZ())},slugify(){return this.check(dZ())}})),oD=j("ZodString",(e,n)=>{ld.init(e,n),py.init(e,n)},{email(e){return this.check(xE(cD,e))},url(e){return this.check(UE(fD,e))},jwt(e){return this.check(VE(zD,e))},emoji(e){return this.check(NE(mD,e))},guid(e){return this.check(IE(dD,e))},uuid(e){return this.check(SE(go,e))},uuidv4(e){return this.check(zE(go,e))},uuidv6(e){return this.check(OE(go,e))},uuidv7(e){return this.check(PE(go,e))},nanoid(e){return this.check(jE(pD,e))},cuid(e){return this.check(TE(hD,e))},cuid2(e){return this.check(EE(vD,e))},ulid(e){return this.check(ZE(gD,e))},base64(e){return this.check(FE(xD,e))},base64url(e){return this.check(JE(ID,e))},xid(e){return this.check(DE(bD,e))},ksuid(e){return this.check(AE(_D,e))},ipv4(e){return this.check(CE(yD,e))},ipv6(e){return this.check(RE($D,e))},cidrv4(e){return this.check(ME(kD,e))},cidrv6(e){return this.check(LE(wD,e))},e164(e){return this.check(qE(SD,e))},datetime(e){return this.check(Y_(hy,e))},date(e){return this.check(WE(sD,e))},time(e){return this.check(HE(uD,e))},duration(e){return this.check(GE(lD,e))}});function N(e){return wE(oD,e)}const Je=j("ZodStringFormat",(e,n)=>{De.init(e,n),py.init(e,n)}),hy=j("ZodISODateTime",(e,n)=>{x5.init(e,n),Je.init(e,n)}),sD=j("ZodISODate",(e,n)=>{I5.init(e,n),Je.init(e,n)}),uD=j("ZodISOTime",(e,n)=>{S5.init(e,n),Je.init(e,n)}),lD=j("ZodISODuration",(e,n)=>{z5.init(e,n),Je.init(e,n)}),cD=j("ZodEmail",(e,n)=>{c5.init(e,n),Je.init(e,n)}),dD=j("ZodGUID",(e,n)=>{u5.init(e,n),Je.init(e,n)}),go=j("ZodUUID",(e,n)=>{l5.init(e,n),Je.init(e,n)}),fD=j("ZodURL",(e,n)=>{v5.init(e,n),Je.init(e,n)}),mD=j("ZodEmoji",(e,n)=>{g5.init(e,n),Je.init(e,n)}),pD=j("ZodNanoID",(e,n)=>{b5.init(e,n),Je.init(e,n)}),hD=j("ZodCUID",(e,n)=>{_5.init(e,n),Je.init(e,n)}),vD=j("ZodCUID2",(e,n)=>{y5.init(e,n),Je.init(e,n)}),gD=j("ZodULID",(e,n)=>{$5.init(e,n),Je.init(e,n)}),bD=j("ZodXID",(e,n)=>{k5.init(e,n),Je.init(e,n)}),_D=j("ZodKSUID",(e,n)=>{w5.init(e,n),Je.init(e,n)}),yD=j("ZodIPv4",(e,n)=>{O5.init(e,n),Je.init(e,n)}),$D=j("ZodIPv6",(e,n)=>{U5.init(e,n),Je.init(e,n)}),kD=j("ZodCIDRv4",(e,n)=>{N5.init(e,n),Je.init(e,n)}),wD=j("ZodCIDRv6",(e,n)=>{T5.init(e,n),Je.init(e,n)}),xD=j("ZodBase64",(e,n)=>{E5.init(e,n),Je.init(e,n)}),ID=j("ZodBase64URL",(e,n)=>{D5.init(e,n),Je.init(e,n)}),SD=j("ZodE164",(e,n)=>{A5.init(e,n),Je.init(e,n)}),zD=j("ZodJWT",(e,n)=>{R5.init(e,n),Je.init(e,n)}),vy=j("ZodNumber",(e,n)=>{J_.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>kZ(e,r,a,i),e.isFinite=!0},P_({minValue:e=>{const{minimum:n,exclusiveMinimum:r}=Jt(e);return Math.max(n??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:n,exclusiveMaximum:r}=Jt(e);return Math.min(n??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:n,multipleOf:r}=Jt(e);return!!n||!!(r!=null&&r.some(Number.isSafeInteger))},format:e=>Jt(e).format??null},{gt(e,n){return this.check(ng(e,n))},gte(e,n){return this.check(Jl(e,n))},min(e,n){return this.check(Jl(e,n))},lt(e,n){return this.check(tg(e,n))},lte(e,n){return this.check(Fl(e,n))},max(e,n){return this.check(Fl(e,n))},int(e){return this.check(fg(e))},safe(e){return this.check(fg(e))},positive(e){return this.check(ng(0,e))},nonnegative(e){return this.check(Jl(0,e))},negative(e){return this.check(tg(0,e))},nonpositive(e){return this.check(Fl(0,e))},multipleOf(e,n){return this.check(ig(e,n))},step(e,n){return this.check(ig(e,n))},finite(){return this}}));function $e(e){return BE(vy,e)}const OD=j("ZodNumberFormat",(e,n)=>{M5.init(e,n),vy.init(e,n)});function fg(e){return KE(OD,e)}const PD=j("ZodBoolean",(e,n)=>{L5.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>wZ(e,r,a)});function Be(e){return XE(PD,e)}const UD=j("ZodNull",(e,n)=>{F5.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>xZ(e,r,a)});function ND(e){return YE(UD,e)}const jD=j("ZodUnknown",(e,n)=>{J5.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>SZ()});function Fe(){return QE(jD)}const TD=j("ZodNever",(e,n)=>{q5.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>IZ(e,r,a)});function ED(e){return eZ(TD,e)}const ZD=j("ZodArray",(e,n)=>{As(),H5.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>NZ(e,r,a,i),e.element=n.element},{min(e,n){return this.check(ts(e,n))},nonempty(e){return this.check(ts(1,e))},max(e,n){return this.check(Q_(e,n))},length(e,n){return this.check(ey(e,n))},unwrap(){return this.element}});function ve(e,n){return fZ(ZD,e,n)}const gy=j("ZodObject",(e,n)=>{As(),K5.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>jZ(e,r,a,i),V3(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return gt(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ht(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ht(this._zod.def,{catchall:Fe()}))},loose(){return this.clone(ht(this._zod.def,{catchall:Fe()}))},strict(){return this.clone(ht(this._zod.def,{catchall:ED()}))},strip(){return this.clone(ht(this._zod.def,{catchall:void 0}))},extend(e){return E3(this,e)},safeExtend(e){return Z3(this,e)},merge(e){return D3(this,e)},pick(e){return j3(this,e)},omit(e){return T3(this,e)},partial(...e){return Av($y,this,e[0])},exactPartial(...e){return Av(ky,this,e[0],"exactPartial")},required(...e){return A3(wy,this,e[0])}});function V(e,n){const r={type:"object",shape:e??{},...G(n)};return new gy(r)}function dt(e,n){return new gy({type:"object",shape:e,catchall:Fe(),...G(n)})}const by=j("ZodUnion",(e,n)=>{W_.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>TZ(e,r,a,i),e.options=n.options});function Ce(e,n){return new by({type:"union",options:e,...G(n)})}const DD=j("ZodDiscriminatedUnion",(e,n)=>{by.init(e,n),Y5.init(e,n)});function _y(e,n,r){return new DD({type:"union",options:n,discriminator:e,...G(r)})}const AD=j("ZodIntersection",(e,n)=>{Q5.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>EZ(e,r,a,i)});function md(e,n){return new AD({type:"intersection",left:e,right:n})}const mg=j("ZodRecord",(e,n)=>{As(),eE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>DZ(e,r,a,i),e.keyType=n.keyType,e.valueType=n.valueType});function Ne(e,n,r){return!n||!n._zod?new mg({type:"record",keyType:N(),valueType:e,...G(n)}):new mg({type:"record",keyType:e,valueType:n,...G(r)})}const gc=j("ZodEnum",(e,n)=>{tE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(a,i,o)=>zZ(e,a,i),e.enum=n.entries,e.options=[...e._zod.values];const r=new Set(Object.keys(n.entries));e.extract=(a,i)=>{const o={};for(const s of a)if(r.has(s))o[s]=n.entries[s];else throw new Error(`Key ${s} not found in enum`);return new gc({...n,checks:[],...G(i),entries:o})},e.exclude=(a,i)=>{const o={...n.entries};for(const s of a)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new gc({...n,checks:[],...G(i),entries:o})}});function gt(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new gc({type:"enum",entries:r,...G(n)})}const CD=j("ZodLiteral",(e,n)=>{nE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>OZ(e,r,a,i),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function K(e,n){return new CD({type:"literal",values:Array.isArray(e)?e:[e],...G(n)})}const RD=j("ZodTransform",(e,n)=>{As(),iE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>UZ(e,r,a,i),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new U_(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Jr(o,r.value,n));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=e),r.issues.push(Jr(s))}};const i=n.transform(r.value,r);return i instanceof Promise?i.then(o=>(r.value=o,r)):(r.value=i,r)}});function yy(e){return new RD({type:"transform",transform:e})}const $y=j("ZodOptional",(e,n)=>{H_.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>fy(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Le(e){return new $y({type:"optional",innerType:e})}const ky=j("ZodExactOptional",(e,n)=>{rE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>fy(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function MD(e){return new ky({type:"optional",innerType:e})}const LD=j("ZodNullable",(e,n)=>{aE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>AZ(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function pg(e){return new LD({type:"nullable",innerType:e})}const FD=j("ZodDefault",(e,n)=>{oE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>RZ(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function JD(e,n){return new FD({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():x_(n)}})}const qD=j("ZodPrefault",(e,n)=>{sE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>MZ(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function VD(e,n){return new qD({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():x_(n)}})}const wy=j("ZodNonOptional",(e,n)=>{uE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>CZ(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function WD(e,n){return new wy({type:"nonoptional",innerType:e,...G(n)})}const HD=j("ZodCatch",(e,n)=>{lE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>LZ(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function GD(e,n){return new HD({type:"catch",innerType:e,catchValue:typeof n=="function"?n:H3(n)})}const xy=j("ZodPipe",(e,n)=>{G_.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>FZ(e,r,a,i),e.in=n.in,e.out=n.out});function hg(e,n){return new xy({type:"pipe",in:e,out:n})}const BD=j("ZodPreprocess",(e,n)=>{xy.init(e,n),cE.init(e,n)}),KD=j("ZodReadonly",(e,n)=>{dE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>JZ(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function XD(e){return new KD({type:"readonly",innerType:e})}const Iy=j("ZodCustom",(e,n)=>{fE.init(e,n),Ae.init(e,n),e._zod.processJSONSchema=(r,a,i)=>PZ(e,r,a,i)});function YD(e,n){return mZ(Iy,e??(()=>!0),n)}function QD(e,n={}){return pZ(Iy,e,n)}function e7(e,n){return hZ(e,n)}function Sy(e,n){return new BD({type:"pipe",in:yy(e),out:n})}function t7(e){return Y_(hy,e)}const Bn="io.modelcontextprotocol/related-task",Cs="2.0",He=YD(e=>e!==null&&(typeof e=="object"||typeof e=="function")),zy=Ce([N(),$e().int()]),Oy=N();dt({ttl:$e().optional(),pollInterval:$e().optional()});const n7=V({ttl:$e().optional()}),i7=V({taskId:N()}),pd=dt({progressToken:zy.optional(),[Bn]:i7.optional()}),bt=V({_meta:pd.optional()}),oa=bt.extend({task:n7.optional()}),r7=e=>oa.safeParse(e).success,Xe=V({method:N(),params:bt.loose().optional()}),Et=V({_meta:pd.optional()}),Zt=V({method:N(),params:Et.loose().optional()}),Ye=dt({_meta:pd.optional()}),nr=Ce([N(),$e().int()]),Py=V({jsonrpc:K(Cs),id:nr,...Xe.shape}).strict(),vg=e=>Py.safeParse(e).success,Uy=V({jsonrpc:K(Cs),...Zt.shape}).strict(),a7=e=>Uy.safeParse(e).success,hd=V({jsonrpc:K(Cs),id:nr,result:Ye}).strict(),bo=e=>hd.safeParse(e).success;var ge;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(ge||(ge={}));const vd=V({jsonrpc:K(Cs),id:nr.optional(),error:V({code:$e().int(),message:N(),data:Fe().optional()})}).strict(),o7=e=>vd.safeParse(e).success,Ny=Ce([Py,Uy,hd,vd]);Ce([hd,vd]);const gd=Ye.strict(),s7=Et.extend({requestId:nr.optional(),reason:N().optional()}),bd=Zt.extend({method:K("notifications/cancelled"),params:s7}),u7=V({src:N(),mimeType:N().optional(),sizes:ve(N()).optional(),theme:gt(["light","dark"]).optional()}),sa=V({icons:ve(u7).optional()}),Ri=V({name:N(),title:N().optional()}),ir=Ri.extend({...Ri.shape,...sa.shape,version:N(),websiteUrl:N().optional(),description:N().optional()}),l7=md(V({applyDefaults:Be().optional()}),Ne(N(),Fe())),c7=Sy(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,md(V({form:l7.optional(),url:He.optional()}),Ne(N(),Fe()).optional())),d7=dt({list:He.optional(),cancel:He.optional(),requests:dt({sampling:dt({createMessage:He.optional()}).optional(),elicitation:dt({create:He.optional()}).optional()}).optional()}),f7=dt({list:He.optional(),cancel:He.optional(),requests:dt({tools:dt({call:He.optional()}).optional()}).optional()}),m7=V({experimental:Ne(N(),He).optional(),sampling:V({context:He.optional(),tools:He.optional()}).optional(),elicitation:c7.optional(),roots:V({listChanged:Be().optional()}).optional(),tasks:d7.optional(),extensions:Ne(N(),He).optional()}),p7=bt.extend({protocolVersion:N(),capabilities:m7,clientInfo:ir}),h7=Xe.extend({method:K("initialize"),params:p7}),v7=V({experimental:Ne(N(),He).optional(),logging:He.optional(),completions:He.optional(),prompts:V({listChanged:Be().optional()}).optional(),resources:V({subscribe:Be().optional(),listChanged:Be().optional()}).optional(),tools:V({listChanged:Be().optional()}).optional(),tasks:f7.optional(),extensions:Ne(N(),He).optional()}),g7=Ye.extend({protocolVersion:N(),capabilities:v7,serverInfo:ir,instructions:N().optional()}),b7=Zt.extend({method:K("notifications/initialized"),params:Et.optional()}),Rs=Xe.extend({method:K("ping"),params:bt.optional()}),_7=V({progress:$e(),total:Le($e()),message:Le(N())}),y7=V({...Et.shape,..._7.shape,progressToken:zy}),_d=Zt.extend({method:K("notifications/progress"),params:y7}),$7=bt.extend({cursor:Oy.optional()}),ua=Xe.extend({params:$7.optional()}),la=Ye.extend({nextCursor:Oy.optional()}),k7=gt(["working","input_required","completed","failed","cancelled"]),ca=V({taskId:N(),status:k7,ttl:Ce([$e(),ND()]),createdAt:N(),lastUpdatedAt:N(),pollInterval:Le($e()),statusMessage:Le(N())}),yd=Ye.extend({task:ca}),w7=Et.merge(ca),rs=Zt.extend({method:K("notifications/tasks/status"),params:w7}),$d=Xe.extend({method:K("tasks/get"),params:bt.extend({taskId:N()})}),kd=Ye.merge(ca),wd=Xe.extend({method:K("tasks/result"),params:bt.extend({taskId:N()})});Ye.loose();const xd=ua.extend({method:K("tasks/list")}),Id=la.extend({tasks:ve(ca)}),Sd=Xe.extend({method:K("tasks/cancel"),params:bt.extend({taskId:N()})}),x7=Ye.merge(ca),jy=V({uri:N(),mimeType:Le(N()),_meta:Ne(N(),Fe()).optional()}),Ty=jy.extend({text:N()}),zd=N().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Ey=jy.extend({blob:zd}),da=gt(["user","assistant"]),rr=V({audience:ve(da).optional(),priority:$e().min(0).max(1).optional(),lastModified:t7({offset:!0}).optional()}),Zy=V({...Ri.shape,...sa.shape,uri:N(),description:Le(N()),mimeType:Le(N()),size:Le($e()),annotations:rr.optional(),_meta:Le(dt({}))}),I7=V({...Ri.shape,...sa.shape,uriTemplate:N(),description:Le(N()),mimeType:Le(N()),annotations:rr.optional(),_meta:Le(dt({}))}),S7=ua.extend({method:K("resources/list")}),z7=la.extend({resources:ve(Zy)}),O7=ua.extend({method:K("resources/templates/list")}),P7=la.extend({resourceTemplates:ve(I7)}),Od=bt.extend({uri:N()}),U7=Od,N7=Xe.extend({method:K("resources/read"),params:U7}),j7=Ye.extend({contents:ve(Ce([Ty,Ey]))}),T7=Zt.extend({method:K("notifications/resources/list_changed"),params:Et.optional()}),E7=Od,Z7=Xe.extend({method:K("resources/subscribe"),params:E7}),D7=Od,A7=Xe.extend({method:K("resources/unsubscribe"),params:D7}),C7=Et.extend({uri:N()}),R7=Zt.extend({method:K("notifications/resources/updated"),params:C7}),M7=V({name:N(),description:Le(N()),required:Le(Be())}),L7=V({...Ri.shape,...sa.shape,description:Le(N()),arguments:Le(ve(M7)),_meta:Le(dt({}))}),F7=ua.extend({method:K("prompts/list")}),J7=la.extend({prompts:ve(L7)}),q7=bt.extend({name:N(),arguments:Ne(N(),N()).optional()}),V7=Xe.extend({method:K("prompts/get"),params:q7}),Pd=V({type:K("text"),text:N(),annotations:rr.optional(),_meta:Ne(N(),Fe()).optional()}),Ud=V({type:K("image"),data:zd,mimeType:N(),annotations:rr.optional(),_meta:Ne(N(),Fe()).optional()}),Nd=V({type:K("audio"),data:zd,mimeType:N(),annotations:rr.optional(),_meta:Ne(N(),Fe()).optional()}),W7=V({type:K("tool_use"),name:N(),id:N(),input:Ne(N(),Fe()),_meta:Ne(N(),Fe()).optional()}),jd=V({type:K("resource"),resource:Ce([Ty,Ey]),annotations:rr.optional(),_meta:Ne(N(),Fe()).optional()}),Td=Zy.extend({type:K("resource_link")}),pi=Ce([Pd,Ud,Nd,Td,jd]),H7=V({role:da,content:pi}),G7=Ye.extend({description:N().optional(),messages:ve(H7)}),B7=Zt.extend({method:K("notifications/prompts/list_changed"),params:Et.optional()}),K7=V({title:N().optional(),readOnlyHint:Be().optional(),destructiveHint:Be().optional(),idempotentHint:Be().optional(),openWorldHint:Be().optional()}),X7=V({taskSupport:gt(["required","optional","forbidden"]).optional()}),Ms=V({...Ri.shape,...sa.shape,description:N().optional(),inputSchema:V({type:K("object"),properties:Ne(N(),He).optional(),required:ve(N()).optional()}).catchall(Fe()),outputSchema:V({type:K("object"),properties:Ne(N(),He).optional(),required:ve(N()).optional()}).catchall(Fe()).optional(),annotations:K7.optional(),execution:X7.optional(),_meta:Ne(N(),Fe()).optional()}),Dy=ua.extend({method:K("tools/list")}),Y7=la.extend({tools:ve(Ms)}),fa=Ye.extend({content:ve(pi).default([]),structuredContent:Ne(N(),Fe()).optional(),isError:Be().optional()});fa.or(Ye.extend({toolResult:Fe()}));const Q7=oa.extend({name:N(),arguments:Ne(N(),Fe()).optional()}),Ay=Xe.extend({method:K("tools/call"),params:Q7}),eA=Zt.extend({method:K("notifications/tools/list_changed"),params:Et.optional()});V({autoRefresh:Be().default(!0),debounceMs:$e().int().nonnegative().default(300)});const Cy=gt(["debug","info","notice","warning","error","critical","alert","emergency"]),tA=bt.extend({level:Cy}),nA=Xe.extend({method:K("logging/setLevel"),params:tA}),iA=Et.extend({level:Cy,logger:N().optional(),data:Fe()}),rA=Zt.extend({method:K("notifications/message"),params:iA}),aA=V({name:N().optional()}),oA=V({hints:ve(aA).optional(),costPriority:$e().min(0).max(1).optional(),speedPriority:$e().min(0).max(1).optional(),intelligencePriority:$e().min(0).max(1).optional()}),sA=V({mode:gt(["auto","required","none"]).optional()}),uA=V({type:K("tool_result"),toolUseId:N().describe("The unique identifier for the corresponding tool call."),content:ve(pi).default([]),structuredContent:V({}).loose().optional(),isError:Be().optional(),_meta:Ne(N(),Fe()).optional()}),lA=_y("type",[Pd,Ud,Nd]),as=_y("type",[Pd,Ud,Nd,W7,uA]),cA=V({role:da,content:Ce([as,ve(as)]),_meta:Ne(N(),Fe()).optional()}),dA=oa.extend({messages:ve(cA),modelPreferences:oA.optional(),systemPrompt:N().optional(),includeContext:gt(["none","thisServer","allServers"]).optional(),temperature:$e().optional(),maxTokens:$e().int(),stopSequences:ve(N()).optional(),metadata:He.optional(),tools:ve(Ms).optional(),toolChoice:sA.optional()}),fA=Xe.extend({method:K("sampling/createMessage"),params:dA}),mA=Ye.extend({model:N(),stopReason:Le(gt(["endTurn","stopSequence","maxTokens"]).or(N())),role:da,content:lA}),pA=Ye.extend({model:N(),stopReason:Le(gt(["endTurn","stopSequence","maxTokens","toolUse"]).or(N())),role:da,content:Ce([as,ve(as)])}),hA=V({type:K("boolean"),title:N().optional(),description:N().optional(),default:Be().optional()}),vA=V({type:K("string"),title:N().optional(),description:N().optional(),minLength:$e().optional(),maxLength:$e().optional(),format:gt(["email","uri","date","date-time"]).optional(),default:N().optional()}),gA=V({type:gt(["number","integer"]),title:N().optional(),description:N().optional(),minimum:$e().optional(),maximum:$e().optional(),default:$e().optional()}),bA=V({type:K("string"),title:N().optional(),description:N().optional(),enum:ve(N()),default:N().optional()}),_A=V({type:K("string"),title:N().optional(),description:N().optional(),oneOf:ve(V({const:N(),title:N()})),default:N().optional()}),yA=V({type:K("string"),title:N().optional(),description:N().optional(),enum:ve(N()),enumNames:ve(N()).optional(),default:N().optional()}),$A=Ce([bA,_A]),kA=V({type:K("array"),title:N().optional(),description:N().optional(),minItems:$e().optional(),maxItems:$e().optional(),items:V({type:K("string"),enum:ve(N())}),default:ve(N()).optional()}),wA=V({type:K("array"),title:N().optional(),description:N().optional(),minItems:$e().optional(),maxItems:$e().optional(),items:V({anyOf:ve(V({const:N(),title:N()}))}),default:ve(N()).optional()}),xA=Ce([kA,wA]),IA=Ce([yA,$A,xA]),SA=Ce([IA,hA,vA,gA]),zA=oa.extend({mode:K("form").optional(),message:N(),requestedSchema:V({type:K("object"),properties:Ne(N(),SA),required:ve(N()).optional()})}),OA=oa.extend({mode:K("url"),message:N(),elicitationId:N(),url:N().url()}),PA=Ce([zA,OA]),UA=Xe.extend({method:K("elicitation/create"),params:PA}),NA=Et.extend({elicitationId:N()}),jA=Zt.extend({method:K("notifications/elicitation/complete"),params:NA}),TA=Ye.extend({action:gt(["accept","decline","cancel"]),content:Sy(e=>e===null?void 0:e,Ne(N(),Ce([N(),$e(),Be(),ve(N())])).optional())}),EA=V({type:K("ref/resource"),uri:N()}),ZA=V({type:K("ref/prompt"),name:N()}),DA=bt.extend({ref:Ce([ZA,EA]),argument:V({name:N(),value:N()}),context:V({arguments:Ne(N(),N()).optional()}).optional()}),AA=Xe.extend({method:K("completion/complete"),params:DA}),CA=Ye.extend({completion:dt({values:ve(N()).max(100),total:Le($e().int()),hasMore:Le(Be())})}),RA=V({uri:N().startsWith("file://"),name:N().optional(),_meta:Ne(N(),Fe()).optional()}),MA=Xe.extend({method:K("roots/list"),params:bt.optional()}),LA=Ye.extend({roots:ve(RA)}),FA=Zt.extend({method:K("notifications/roots/list_changed"),params:Et.optional()});Ce([Rs,h7,AA,nA,V7,F7,S7,O7,N7,Z7,A7,Ay,Dy,$d,wd,xd,Sd]);Ce([bd,_d,b7,FA,rs]);Ce([gd,mA,pA,TA,LA,kd,Id,yd]);Ce([Rs,fA,UA,MA,$d,wd,xd,Sd]);Ce([bd,_d,rA,R7,T7,eA,B7,rs,jA]);Ce([gd,g7,CA,G7,J7,z7,P7,j7,fa,Y7,kd,Id,yd]);class pe extends Error{constructor(n,r,a){super(`MCP error ${n}: ${r}`),this.code=n,this.data=a,this.name="McpError"}static fromError(n,r,a){if(n===ge.UrlElicitationRequired&&a){const i=a;if(i.elicitations)return new JA(i.elicitations,r)}return new pe(n,r,a)}}class JA extends pe{constructor(n,r=`URL elicitation${n.length>1?"s":""} required`){super(ge.UrlElicitationRequired,r,{elicitations:n})}get elicitations(){var n;return((n=this.data)==null?void 0:n.elicitations)??[]}}function Gn(e){return e==="completed"||e==="failed"||e==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function gg(e){const n=qZ(e),r=n==null?void 0:n.method;if(!r)throw new Error("Schema is missing a method literal");const a=VZ(r);if(typeof a!="string")throw new Error("Schema method literal must be a string");return a}function bg(e,n){const r=my(e,n);if(!r.success)throw r.error;return r.data}const qA=6e4;class VA{constructor(n){this._options=n,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(bd,r=>{this._oncancel(r)}),this.setNotificationHandler(_d,r=>{this._onprogress(r)}),this.setRequestHandler(Rs,r=>({})),this._taskStore=n==null?void 0:n.taskStore,this._taskMessageQueue=n==null?void 0:n.taskMessageQueue,this._taskStore&&(this.setRequestHandler($d,async(r,a)=>{const i=await this._taskStore.getTask(r.params.taskId,a.sessionId);if(!i)throw new pe(ge.InvalidParams,"Failed to retrieve task: Task not found");return{...i}}),this.setRequestHandler(wd,async(r,a)=>{const i=async()=>{var u;const o=r.params.taskId;if(!await this._taskStore.getTask(o,a.sessionId))throw new pe(ge.InvalidParams,`Task not found: ${o}`);if(this._taskMessageQueue){let l;for(;l=await this._taskMessageQueue.dequeue(o,a.sessionId);){if(l.type==="response"||l.type==="error"){const c=l.message,d=c.id,f=this._requestResolvers.get(d);if(f)if(this._requestResolvers.delete(d),l.type==="response")f(c);else{const m=c,p=new pe(m.error.code,m.error.message,m.error.data);f(p)}else{const m=l.type==="response"?"Response":"Error";this._onerror(new Error(`${m} handler missing for request ${d}`))}continue}await((u=this._transport)==null?void 0:u.send(l.message,{relatedRequestId:a.requestId}))}}const s=await this._taskStore.getTask(o,a.sessionId);if(!s)throw new pe(ge.InvalidParams,`Task not found: ${o}`);if(!Gn(s.status))return await this._waitForTaskUpdate(o,a.signal,a.sessionId),await i();if(Gn(s.status)){const l=await this._taskStore.getTaskResult(o,a.sessionId);return this._clearTaskQueue(o,a.sessionId),{...l,_meta:{...l._meta,[Bn]:{taskId:o}}}}return await i()};return await i()}),this.setRequestHandler(xd,async(r,a)=>{var i;try{const{tasks:o,nextCursor:s}=await this._taskStore.listTasks((i=r.params)==null?void 0:i.cursor,a.sessionId);return{tasks:o,nextCursor:s,_meta:{}}}catch(o){throw new pe(ge.InvalidParams,`Failed to list tasks: ${o instanceof Error?o.message:String(o)}`)}}),this.setRequestHandler(Sd,async(r,a)=>{try{const i=await this._taskStore.getTask(r.params.taskId,a.sessionId);if(!i)throw new pe(ge.InvalidParams,`Task not found: ${r.params.taskId}`);if(Gn(i.status))throw new pe(ge.InvalidParams,`Cannot cancel task in terminal status: ${i.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",a.sessionId),this._clearTaskQueue(r.params.taskId,a.sessionId);const o=await this._taskStore.getTask(r.params.taskId,a.sessionId);if(!o)throw new pe(ge.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...o}}catch(i){throw i instanceof pe?i:new pe(ge.InvalidRequest,`Failed to cancel task: ${i instanceof Error?i.message:String(i)}`)}}))}async _oncancel(n){if(!n.params.requestId)return;const r=this._requestHandlerAbortControllers.get(n.params.requestId);r==null||r.abort(n.params.reason)}_setupTimeout(n,r,a,i,o=!1){this._timeoutInfo.set(n,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:a,resetTimeoutOnProgress:o,onTimeout:i})}_resetTimeout(n){const r=this._timeoutInfo.get(n);if(!r)return!1;const a=Date.now()-r.startTime;if(r.maxTotalTimeout&&a>=r.maxTotalTimeout)throw this._timeoutInfo.delete(n),pe.fromError(ge.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:a});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(n){const r=this._timeoutInfo.get(n);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(n))}async connect(n){var o,s,u;if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=n;const r=(o=this.transport)==null?void 0:o.onclose;this._transport.onclose=()=>{r==null||r(),this._onclose()};const a=(s=this.transport)==null?void 0:s.onerror;this._transport.onerror=l=>{a==null||a(l),this._onerror(l)};const i=(u=this._transport)==null?void 0:u.onmessage;this._transport.onmessage=(l,c)=>{i==null||i(l,c),bo(l)||o7(l)?this._onresponse(l):vg(l)?this._onrequest(l,c):a7(l)?this._onnotification(l):this._onerror(new Error(`Unknown message type: ${JSON.stringify(l)}`))},await this._transport.start()}_onclose(){var a;const n=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(const i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();const r=pe.fromError(ge.ConnectionClosed,"Connection closed");this._transport=void 0,(a=this.onclose)==null||a.call(this);for(const i of n.values())i(r)}_onerror(n){var r;(r=this.onerror)==null||r.call(this,n)}_onnotification(n){const r=this._notificationHandlers.get(n.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(n)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(n,r){var h,g,b,v;const a=this._requestHandlers.get(n.method)??this.fallbackRequestHandler,i=this._transport,o=(b=(g=(h=n.params)==null?void 0:h._meta)==null?void 0:g[Bn])==null?void 0:b.taskId,s=i==null?void 0:i.sessionId,u=this._taskStore;let l=!0,c;if(o&&u&&this._taskMessageQueue&&s!==void 0&&(l=!1,c=(async()=>{if(!await u.getTask(o,s))throw new pe(ge.InvalidParams,`Task not found: ${o}`);l=!0})()),a===void 0){const $={jsonrpc:"2.0",id:n.id,error:{code:ge.MethodNotFound,message:"Method not found"}};if(o&&c){const S={type:"error",message:$,timestamp:Date.now()};c.then(()=>this._enqueueTaskMessage(o,S,s),()=>i==null?void 0:i.send($)).catch(k=>this._onerror(new Error(`Failed to send an error response: ${k}`)))}else o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:$,timestamp:Date.now()},i==null?void 0:i.sessionId).catch(S=>this._onerror(new Error(`Failed to enqueue error response: ${S}`))):i==null||i.send($).catch(S=>this._onerror(new Error(`Failed to send an error response: ${S}`)));return}const d=new AbortController;this._requestHandlerAbortControllers.set(n.id,d);const f=r7(n.params)?n.params.task:void 0,m=this._taskStore?this.requestTaskStore(n,i==null?void 0:i.sessionId):void 0,p={signal:d.signal,sessionId:i==null?void 0:i.sessionId,_meta:(v=n.params)==null?void 0:v._meta,sendNotification:async $=>{if(d.signal.aborted)return;const S={relatedRequestId:n.id};o&&(S.relatedTask={taskId:o}),await this.notification($,S)},sendRequest:async($,S,k)=>{var x;if(d.signal.aborted)throw new pe(ge.ConnectionClosed,"Request was cancelled");const w={...k,relatedRequestId:n.id};o&&!w.relatedTask&&(w.relatedTask={taskId:o});const I=((x=w.relatedTask)==null?void 0:x.taskId)??o;return I&&m&&await m.updateTaskStatus(I,"input_required"),await this.request($,S,w)},authInfo:r==null?void 0:r.authInfo,requestId:n.id,requestInfo:r==null?void 0:r.requestInfo,taskId:o,taskStore:m,taskRequestedTtl:f==null?void 0:f.ttl,closeSSEStream:r==null?void 0:r.closeSSEStream,closeStandaloneSSEStream:r==null?void 0:r.closeStandaloneSSEStream};(c??Promise.resolve()).then(()=>{if(c&&d.signal.aborted)throw new pe(ge.ConnectionClosed,"Request was cancelled");f&&this.assertTaskHandlerCapability(n.method)}).then(()=>a(n,p)).then(async $=>{if(d.signal.aborted)return;const S={result:$,jsonrpc:"2.0",id:n.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:S,timestamp:Date.now()},i==null?void 0:i.sessionId):await(i==null?void 0:i.send(S))},async $=>{if(d.signal.aborted)return;const S={jsonrpc:"2.0",id:n.id,error:{code:Number.isSafeInteger($.code)?$.code:ge.InternalError,message:$.message??"Internal error",...$.data!==void 0&&{data:$.data}}};o&&this._taskMessageQueue&&l?await this._enqueueTaskMessage(o,{type:"error",message:S,timestamp:Date.now()},i==null?void 0:i.sessionId):await(i==null?void 0:i.send(S))}).catch($=>this._onerror(new Error(`Failed to send response: ${$}`))).finally(()=>{this._requestHandlerAbortControllers.get(n.id)===d&&this._requestHandlerAbortControllers.delete(n.id)})}_onprogress(n){const{progressToken:r,...a}=n.params,i=Number(r),o=this._progressHandlers.get(i);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(n)}`));return}const s=this._responseHandlers.get(i),u=this._timeoutInfo.get(i);if(u&&s&&u.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(l){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),s(l);return}o(a)}_onresponse(n){const r=Number(n.id),a=this._requestResolvers.get(r);if(a){if(this._requestResolvers.delete(r),bo(n))a(n);else{const s=new pe(n.error.code,n.error.message,n.error.data);a(s)}return}const i=this._responseHandlers.get(r);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(n)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let o=!1;if(bo(n)&&n.result&&typeof n.result=="object"){const s=n.result;if(s.task&&typeof s.task=="object"){const u=s.task;typeof u.taskId=="string"&&(o=!0,this._taskProgressTokens.set(u.taskId,r))}}if(o||this._progressHandlers.delete(r),bo(n))i(n);else{const s=pe.fromError(n.error.code,n.error.message,n.error.data);i(s)}}get transport(){return this._transport}async close(){var n;await((n=this._transport)==null?void 0:n.close())}async*requestStream(n,r,a){var s,u;const{task:i}=a??{};if(!i){try{yield{type:"result",result:await this.request(n,r,a)}}catch(l){yield{type:"error",error:l instanceof pe?l:new pe(ge.InternalError,String(l))}}return}let o;try{const l=await this.request(n,yd,a);if(l.task)o=l.task.taskId,yield{type:"taskCreated",task:l.task};else throw new pe(ge.InternalError,"Task creation did not return a task");for(;;){const c=await this.getTask({taskId:o},a);if(yield{type:"taskStatus",task:c},Gn(c.status)){c.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},r,a)}:c.status==="failed"?yield{type:"error",error:new pe(ge.InternalError,`Task ${o} failed`)}:c.status==="cancelled"&&(yield{type:"error",error:new pe(ge.InternalError,`Task ${o} was cancelled`)});return}if(c.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},r,a)};return}const d=c.pollInterval??((s=this._options)==null?void 0:s.defaultTaskPollInterval)??1e3;await new Promise(f=>setTimeout(f,d)),(u=a==null?void 0:a.signal)==null||u.throwIfAborted()}}catch(l){yield{type:"error",error:l instanceof pe?l:new pe(ge.InternalError,String(l))}}}request(n,r,a){const{relatedRequestId:i,resumptionToken:o,onresumptiontoken:s,task:u,relatedTask:l}=a??{};return new Promise((c,d)=>{var $,S,k,w,I;const f=x=>{d(x)};if(!this._transport){f(new Error("Not connected"));return}if((($=this._options)==null?void 0:$.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(n.method),u&&this.assertTaskCapability(n.method)}catch(x){f(x);return}(S=a==null?void 0:a.signal)==null||S.throwIfAborted();const m=this._requestMessageId++,p={...n,jsonrpc:"2.0",id:m};a!=null&&a.onprogress&&(this._progressHandlers.set(m,a.onprogress),p.params={...n.params,_meta:{...((k=n.params)==null?void 0:k._meta)||{},progressToken:m}}),u&&(p.params={...p.params,task:u}),l&&(p.params={...p.params,_meta:{...((w=p.params)==null?void 0:w._meta)||{},[Bn]:l}});const h=x=>{var Z;this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),(Z=this._transport)==null||Z.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(x)}},{relatedRequestId:i,resumptionToken:o,onresumptiontoken:s}).catch(E=>this._onerror(new Error(`Failed to send cancellation: ${E}`)));const P=x instanceof pe?x:new pe(ge.RequestTimeout,String(x));d(P)};this._responseHandlers.set(m,x=>{var P;if(!((P=a==null?void 0:a.signal)!=null&&P.aborted)){if(x instanceof Error)return d(x);try{const Z=my(r,x.result);Z.success?c(Z.data):d(Z.error)}catch(Z){d(Z)}}}),(I=a==null?void 0:a.signal)==null||I.addEventListener("abort",()=>{var x;h((x=a==null?void 0:a.signal)==null?void 0:x.reason)});const g=(a==null?void 0:a.timeout)??qA,b=()=>h(pe.fromError(ge.RequestTimeout,"Request timed out",{timeout:g}));this._setupTimeout(m,g,a==null?void 0:a.maxTotalTimeout,b,(a==null?void 0:a.resetTimeoutOnProgress)??!1);const v=l==null?void 0:l.taskId;if(v){const x=P=>{const Z=this._responseHandlers.get(m);Z?Z(P):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,x),this._enqueueTaskMessage(v,{type:"request",message:p,timestamp:Date.now()}).catch(P=>{this._cleanupTimeout(m),d(P)})}else this._transport.send(p,{relatedRequestId:i,resumptionToken:o,onresumptiontoken:s}).catch(x=>{this._cleanupTimeout(m),d(x)})})}async getTask(n,r){return this.request({method:"tasks/get",params:n},kd,r)}async getTaskResult(n,r,a){return this.request({method:"tasks/result",params:n},r,a)}async listTasks(n,r){return this.request({method:"tasks/list",params:n},Id,r)}async cancelTask(n,r){return this.request({method:"tasks/cancel",params:n},x7,r)}async notification(n,r){var u,l,c,d;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(n.method);const a=(u=r==null?void 0:r.relatedTask)==null?void 0:u.taskId;if(a){const f={...n,jsonrpc:"2.0",params:{...n.params,_meta:{...((l=n.params)==null?void 0:l._meta)||{},[Bn]:r.relatedTask}}};await this._enqueueTaskMessage(a,{type:"notification",message:f,timestamp:Date.now()});return}if((((c=this._options)==null?void 0:c.debouncedNotificationMethods)??[]).includes(n.method)&&!n.params&&!(r!=null&&r.relatedRequestId)&&!(r!=null&&r.relatedTask)){if(this._pendingDebouncedNotifications.has(n.method))return;this._pendingDebouncedNotifications.add(n.method),Promise.resolve().then(()=>{var m,p;if(this._pendingDebouncedNotifications.delete(n.method),!this._transport)return;let f={...n,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(f={...f,params:{...f.params,_meta:{...((m=f.params)==null?void 0:m._meta)||{},[Bn]:r.relatedTask}}}),(p=this._transport)==null||p.send(f,r).catch(h=>this._onerror(h))});return}let s={...n,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(s={...s,params:{...s.params,_meta:{...((d=s.params)==null?void 0:d._meta)||{},[Bn]:r.relatedTask}}}),await this._transport.send(s,r)}setRequestHandler(n,r){const a=gg(n);this.assertRequestHandlerCapability(a),this._requestHandlers.set(a,(i,o)=>{const s=bg(n,i);return Promise.resolve(r(s,o))})}removeRequestHandler(n){this._requestHandlers.delete(n)}assertCanSetRequestHandler(n){if(this._requestHandlers.has(n))throw new Error(`A request handler for ${n} already exists, which would be overridden`)}setNotificationHandler(n,r){const a=gg(n);this._notificationHandlers.set(a,i=>{const o=bg(n,i);return Promise.resolve(r(o))})}removeNotificationHandler(n){this._notificationHandlers.delete(n)}_cleanupTaskProgressHandler(n){const r=this._taskProgressTokens.get(n);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(n))}async _enqueueTaskMessage(n,r,a){var o,s;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const i=(o=this._options)==null?void 0:o.maxTaskQueueSize;await this._taskMessageQueue.enqueue(n,r,a??((s=this._transport)==null?void 0:s.sessionId),i)}async _clearTaskQueue(n,r){if(this._taskMessageQueue){const a=await this._taskMessageQueue.dequeueAll(n,r);for(const i of a)if(i.type==="request"&&vg(i.message)){const o=i.message.id,s=this._requestResolvers.get(o);s?(s(new pe(ge.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${n} cleanup`))}}}async _waitForTaskUpdate(n,r,a){var o,s;let i=((o=this._options)==null?void 0:o.defaultTaskPollInterval)??1e3;try{const u=await((s=this._taskStore)==null?void 0:s.getTask(n,a));u!=null&&u.pollInterval&&(i=u.pollInterval)}catch{}return new Promise((u,l)=>{if(r.aborted){l(new pe(ge.InvalidRequest,"Request cancelled"));return}const c=setTimeout(u,i);r.addEventListener("abort",()=>{clearTimeout(c),l(new pe(ge.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(n,r){const a=this._taskStore;if(!a)throw new Error("No task store configured");return{createTask:async i=>{if(!n)throw new Error("No request provided");return await a.createTask(i,n.id,{method:n.method,params:n.params},r)},getTask:async i=>{const o=await a.getTask(i,r);if(!o)throw new pe(ge.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(i,o,s)=>{await a.storeTaskResult(i,o,s,r);const u=await a.getTask(i,r);if(u){const l=rs.parse({method:"notifications/tasks/status",params:u});await this.notification(l),Gn(u.status)&&this._cleanupTaskProgressHandler(i)}},getTaskResult:i=>a.getTaskResult(i,r),updateTaskStatus:async(i,o,s)=>{const u=await a.getTask(i,r);if(!u)throw new pe(ge.InvalidParams,`Task "${i}" not found - it may have been cleaned up`);if(Gn(u.status))throw new pe(ge.InvalidParams,`Cannot update task "${i}" from terminal status "${u.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await a.updateTaskStatus(i,o,s,r);const l=await a.getTask(i,r);if(l){const c=rs.parse({method:"notifications/tasks/status",params:l});await this.notification(c),Gn(l.status)&&this._cleanupTaskProgressHandler(i)}},listTasks:i=>a.listTasks(i,r)}}}var WA=Object.defineProperty,wn=(e,n)=>{for(var r in n)WA(e,r,{get:n[r],enumerable:!0,configurable:!0,set:a=>n[r]=()=>a})};let HA=class{constructor(n=window.parent,r){je(this,"eventTarget");je(this,"eventSource");je(this,"messageListener");je(this,"onclose");je(this,"onerror");je(this,"onmessage");je(this,"sessionId");je(this,"setProtocolVersion");this.eventTarget=n,this.eventSource=r,this.messageListener=a=>{var o,s,u;if(r&&a.source!==this.eventSource){console.debug("Ignoring message from unknown source",a);return}let i=Ny.safeParse(a.data);i.success?(console.debug("Parsed message",i.data),(o=this.onmessage)==null||o.call(this,i.data)):((s=a.data)==null?void 0:s.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",i.error.message,a):(console.error("Failed to parse message",i.error.message,a),(u=this.onerror)==null||u.call(this,Error("Invalid JSON-RPC message received: "+i.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(n,r){console.debug("Sending message",n),this.eventTarget.postMessage(n,"*")}async close(){var n;window.removeEventListener("message",this.messageListener),(n=this.onclose)==null||n.call(this)}};var GA="2026-01-26",_={};wn(_,{xor:()=>tx,xid:()=>xw,void:()=>Bw,uuidv7:()=>vw,uuidv6:()=>hw,uuidv4:()=>pw,uuid:()=>mw,util:()=>fe,url:()=>gw,uppercase:()=>Bs,unknown:()=>ci,union:()=>Iu,undefined:()=>Hw,ulid:()=>ww,uint64:()=>Vw,uint32:()=>Fw,tuple:()=>nm,trim:()=>tu,treeifyError:()=>Qy,transform:()=>zu,toUpperCase:()=>iu,toLowerCase:()=>nu,toJSONSchema:()=>Vk,templateLiteral:()=>px,symbol:()=>Ww,superRefine:()=>Pm,success:()=>dx,stringbool:()=>$x,stringFormat:()=>Zw,string:()=>fs,strictObject:()=>Qw,startsWith:()=>Xs,slugify:()=>ru,size:()=>ka,setErrorMap:()=>hL,set:()=>ox,safeParseAsync:()=>nw,safeParse:()=>tw,safeEncodeAsync:()=>lw,safeEncode:()=>sw,safeDecodeAsync:()=>cw,safeDecode:()=>uw,registry:()=>of,regexes:()=>vi,regex:()=>Hs,refine:()=>Om,record:()=>im,readonly:()=>km,property:()=>Nf,promise:()=>hx,prettifyError:()=>t$,preprocess:()=>wx,prefault:()=>hm,positive:()=>zf,pipe:()=>Gr,partialRecord:()=>ix,parseAsync:()=>ew,parse:()=>Qk,overwrite:()=>In,optional:()=>Wr,object:()=>Yw,number:()=>Mf,nullish:()=>cx,nullable:()=>Hr,null:()=>Vf,normalize:()=>eu,nonpositive:()=>Pf,nonoptional:()=>vm,nonnegative:()=>Uf,never:()=>wu,negative:()=>Of,nativeEnum:()=>sx,nanoid:()=>yw,nan:()=>fx,multipleOf:()=>Fi,minSize:()=>Rn,minLength:()=>li,mime:()=>Qs,meta:()=>_x,maxSize:()=>ar,maxLength:()=>wa,map:()=>ax,mac:()=>zw,lte:()=>Pt,lt:()=>An,lowercase:()=>Gs,looseRecord:()=>rx,looseObject:()=>ex,locales:()=>af,literal:()=>ux,length:()=>xa,lazy:()=>Im,ksuid:()=>Iw,keyof:()=>Xw,jwt:()=>Ew,json:()=>kx,iso:()=>Ef,ipv6:()=>Ow,ipv4:()=>Sw,intersection:()=>em,int64:()=>qw,int32:()=>Lw,int:()=>ms,instanceof:()=>yx,includes:()=>Ks,httpUrl:()=>bw,hostname:()=>Dw,hex:()=>Aw,hash:()=>Cw,guid:()=>fw,gte:()=>lt,gt:()=>Cn,globalRegistry:()=>zt,getErrorMap:()=>vL,function:()=>ps,fromJSONSchema:()=>yL,formatError:()=>Cd,float64:()=>Mw,float32:()=>Rw,flattenError:()=>Ad,file:()=>lx,exactOptional:()=>cm,enum:()=>Su,endsWith:()=>Ys,encodeAsync:()=>aw,encode:()=>iw,emoji:()=>_w,email:()=>dw,e164:()=>Tw,discriminatedUnion:()=>nx,describe:()=>bx,decodeAsync:()=>ow,decode:()=>rw,date:()=>Kw,custom:()=>gx,cuid2:()=>kw,cuid:()=>$w,core:()=>Ry,config:()=>nt,coerce:()=>Ix,codec:()=>mx,clone:()=>Dt,cidrv6:()=>Uw,cidrv4:()=>Pw,check:()=>vx,catch:()=>_m,boolean:()=>Lf,bigint:()=>Jw,base64url:()=>jw,base64:()=>Nw,array:()=>Na,any:()=>Gw,_function:()=>ps,_default:()=>mm,_ZodString:()=>au,ZodXor:()=>Xf,ZodXID:()=>fu,ZodVoid:()=>Bf,ZodUnknown:()=>Hf,ZodUnion:()=>Ta,ZodUndefined:()=>Jf,ZodUUID:()=>Xt,ZodURL:()=>za,ZodULID:()=>du,ZodType:()=>ue,ZodTuple:()=>tm,ZodTransform:()=>um,ZodTemplateLiteral:()=>wm,ZodSymbol:()=>Ff,ZodSuccess:()=>gm,ZodStringFormat:()=>ze,ZodString:()=>Sa,ZodSet:()=>am,ZodRecord:()=>Ea,ZodRealError:()=>yt,ZodReadonly:()=>$m,ZodPromise:()=>Sm,ZodPrefault:()=>pm,ZodPipe:()=>Uu,ZodOptional:()=>Ou,ZodObject:()=>ja,ZodNumberFormat:()=>gi,ZodNumber:()=>Oa,ZodNullable:()=>dm,ZodNull:()=>qf,ZodNonOptional:()=>Pu,ZodNever:()=>Gf,ZodNanoID:()=>uu,ZodNaN:()=>ym,ZodMap:()=>rm,ZodMAC:()=>Rf,ZodLiteral:()=>om,ZodLazy:()=>xm,ZodKSUID:()=>mu,ZodJWT:()=>$u,ZodIssueCode:()=>pL,ZodIntersection:()=>Qf,ZodISOTime:()=>Af,ZodISODuration:()=>Cf,ZodISODateTime:()=>Zf,ZodISODate:()=>Df,ZodIPv6:()=>hu,ZodIPv4:()=>pu,ZodGUID:()=>Vr,ZodFunction:()=>zm,ZodFirstPartyTypeKind:()=>wc,ZodFile:()=>sm,ZodExactOptional:()=>lm,ZodError:()=>mL,ZodEnum:()=>Wi,ZodEmoji:()=>su,ZodEmail:()=>ou,ZodE164:()=>yu,ZodDiscriminatedUnion:()=>Yf,ZodDefault:()=>fm,ZodDate:()=>xu,ZodCustomStringFormat:()=>or,ZodCustom:()=>Za,ZodCodec:()=>Nu,ZodCatch:()=>bm,ZodCUID2:()=>cu,ZodCUID:()=>lu,ZodCIDRv6:()=>gu,ZodCIDRv4:()=>vu,ZodBoolean:()=>Pa,ZodBigIntFormat:()=>ku,ZodBigInt:()=>Ua,ZodBase64URL:()=>_u,ZodBase64:()=>bu,ZodArray:()=>Kf,ZodAny:()=>Wf,TimePrecision:()=>x1,NEVER:()=>My,$output:()=>b1,$input:()=>_1,$brand:()=>Ly});var Ry={};wn(Ry,{version:()=>t0,util:()=>fe,treeifyError:()=>Qy,toJSONSchema:()=>Vk,toDotPath:()=>e$,safeParseAsync:()=>i$,safeParse:()=>n$,safeEncodeAsync:()=>zC,safeEncode:()=>IC,safeDecodeAsync:()=>OC,safeDecode:()=>SC,registry:()=>of,regexes:()=>vi,process:()=>ke,prettifyError:()=>t$,parseAsync:()=>yc,parse:()=>_c,meta:()=>ak,locales:()=>af,isValidJWT:()=>S0,isValidBase64URL:()=>w0,isValidBase64:()=>Xd,initializeContext:()=>Ji,globalRegistry:()=>zt,globalConfig:()=>os,formatError:()=>Cd,flattenError:()=>Ad,finalize:()=>Vi,extractDefs:()=>qi,encodeAsync:()=>wC,encode:()=>$C,describe:()=>rk,decodeAsync:()=>xC,decode:()=>kC,createToJSONSchemaMethod:()=>sk,createStandardJSONSchemaMethod:()=>qr,config:()=>nt,clone:()=>Dt,_xor:()=>FM,_xid:()=>gf,_void:()=>G1,_uuidv7:()=>df,_uuidv6:()=>cf,_uuidv4:()=>lf,_uuid:()=>uf,_url:()=>Ws,_uppercase:()=>Bs,_unknown:()=>W1,_union:()=>LM,_undefined:()=>J1,_ulid:()=>vf,_uint64:()=>L1,_uint32:()=>Z1,_tuple:()=>VM,_trim:()=>tu,_transform:()=>YM,_toUpperCase:()=>iu,_toLowerCase:()=>nu,_templateLiteral:()=>sL,_symbol:()=>F1,_superRefine:()=>nk,_success:()=>iL,_stringbool:()=>ok,_stringFormat:()=>Ia,_string:()=>$1,_startsWith:()=>Xs,_slugify:()=>ru,_size:()=>ka,_set:()=>GM,_safeParseAsync:()=>ga,_safeParse:()=>va,_safeEncodeAsync:()=>Vd,_safeEncode:()=>Jd,_safeDecodeAsync:()=>Wd,_safeDecode:()=>qd,_regex:()=>Hs,_refine:()=>tk,_record:()=>WM,_readonly:()=>oL,_property:()=>Nf,_promise:()=>lL,_positive:()=>zf,_pipe:()=>aL,_parseAsync:()=>ha,_parse:()=>pa,_overwrite:()=>In,_optional:()=>QM,_number:()=>P1,_nullable:()=>eL,_null:()=>q1,_normalize:()=>eu,_nonpositive:()=>Pf,_nonoptional:()=>nL,_nonnegative:()=>Uf,_never:()=>H1,_negative:()=>Of,_nativeEnum:()=>KM,_nanoid:()=>mf,_nan:()=>X1,_multipleOf:()=>Fi,_minSize:()=>Rn,_minLength:()=>li,_min:()=>lt,_mime:()=>Qs,_maxSize:()=>ar,_maxLength:()=>wa,_max:()=>Pt,_map:()=>HM,_mac:()=>w1,_lte:()=>Pt,_lt:()=>An,_lowercase:()=>Gs,_literal:()=>XM,_length:()=>xa,_lazy:()=>uL,_ksuid:()=>bf,_jwt:()=>Sf,_isoTime:()=>z1,_isoDuration:()=>O1,_isoDateTime:()=>I1,_isoDate:()=>S1,_ipv6:()=>yf,_ipv4:()=>_f,_intersection:()=>qM,_int64:()=>M1,_int32:()=>E1,_int:()=>N1,_includes:()=>Ks,_guid:()=>ds,_gte:()=>lt,_gt:()=>Cn,_float64:()=>T1,_float32:()=>j1,_file:()=>Q1,_enum:()=>BM,_endsWith:()=>Ys,_encodeAsync:()=>Ld,_encode:()=>Rd,_emoji:()=>ff,_email:()=>sf,_e164:()=>If,_discriminatedUnion:()=>JM,_default:()=>tL,_decodeAsync:()=>Fd,_decode:()=>Md,_date:()=>B1,_custom:()=>ek,_cuid2:()=>hf,_cuid:()=>pf,_coercedString:()=>k1,_coercedNumber:()=>U1,_coercedDate:()=>K1,_coercedBoolean:()=>A1,_coercedBigint:()=>R1,_cidrv6:()=>kf,_cidrv4:()=>$f,_check:()=>ik,_catch:()=>rL,_boolean:()=>D1,_bigint:()=>C1,_base64url:()=>xf,_base64:()=>wf,_array:()=>Y1,_any:()=>V1,TimePrecision:()=>x1,NEVER:()=>My,JSONSchemaGenerator:()=>dL,JSONSchema:()=>fL,Doc:()=>e0,$output:()=>b1,$input:()=>_1,$constructor:()=>z,$brand:()=>Ly,$ZodXor:()=>q0,$ZodXID:()=>d0,$ZodVoid:()=>A0,$ZodUnknown:()=>Z0,$ZodUnion:()=>Vs,$ZodUndefined:()=>j0,$ZodUUID:()=>i0,$ZodURL:()=>a0,$ZodULID:()=>c0,$ZodType:()=>re,$ZodTuple:()=>tf,$ZodTransform:()=>Q0,$ZodTemplateLiteral:()=>c1,$ZodSymbol:()=>N0,$ZodSuccess:()=>a1,$ZodStringFormat:()=>Se,$ZodString:()=>$a,$ZodSet:()=>B0,$ZodRegistry:()=>y1,$ZodRecord:()=>H0,$ZodRealError:()=>_t,$ZodReadonly:()=>l1,$ZodPromise:()=>f1,$ZodPrefault:()=>i1,$ZodPipe:()=>u1,$ZodOptional:()=>nf,$ZodObjectJIT:()=>J0,$ZodObject:()=>F0,$ZodNumberFormat:()=>P0,$ZodNumber:()=>Yd,$ZodNullable:()=>t1,$ZodNull:()=>T0,$ZodNonOptional:()=>r1,$ZodNever:()=>D0,$ZodNanoID:()=>s0,$ZodNaN:()=>s1,$ZodMap:()=>G0,$ZodMAC:()=>_0,$ZodLiteral:()=>X0,$ZodLazy:()=>m1,$ZodKSUID:()=>f0,$ZodJWT:()=>z0,$ZodIntersection:()=>W0,$ZodISOTime:()=>h0,$ZodISODuration:()=>v0,$ZodISODateTime:()=>m0,$ZodISODate:()=>p0,$ZodIPv6:()=>b0,$ZodIPv4:()=>g0,$ZodGUID:()=>n0,$ZodFunction:()=>d1,$ZodFile:()=>Y0,$ZodExactOptional:()=>e1,$ZodError:()=>Dd,$ZodEnum:()=>K0,$ZodEncodeError:()=>Ls,$ZodEmoji:()=>o0,$ZodEmail:()=>r0,$ZodE164:()=>I0,$ZodDiscriminatedUnion:()=>V0,$ZodDefault:()=>n1,$ZodDate:()=>C0,$ZodCustomStringFormat:()=>O0,$ZodCustom:()=>p1,$ZodCodec:()=>rf,$ZodCheckUpperCase:()=>H$,$ZodCheckStringFormat:()=>ya,$ZodCheckStartsWith:()=>B$,$ZodCheckSizeEquals:()=>L$,$ZodCheckRegex:()=>V$,$ZodCheckProperty:()=>X$,$ZodCheckOverwrite:()=>Q$,$ZodCheckNumberFormat:()=>A$,$ZodCheckMultipleOf:()=>D$,$ZodCheckMinSize:()=>M$,$ZodCheckMinLength:()=>J$,$ZodCheckMimeType:()=>Y$,$ZodCheckMaxSize:()=>R$,$ZodCheckMaxLength:()=>F$,$ZodCheckLowerCase:()=>W$,$ZodCheckLessThan:()=>Bd,$ZodCheckLengthEquals:()=>q$,$ZodCheckIncludes:()=>G$,$ZodCheckGreaterThan:()=>Kd,$ZodCheckEndsWith:()=>K$,$ZodCheckBigIntFormat:()=>C$,$ZodCheck:()=>Re,$ZodCatch:()=>o1,$ZodCUID2:()=>l0,$ZodCUID:()=>u0,$ZodCIDRv6:()=>$0,$ZodCIDRv4:()=>y0,$ZodBoolean:()=>Qd,$ZodBigIntFormat:()=>U0,$ZodBigInt:()=>ef,$ZodBase64URL:()=>x0,$ZodBase64:()=>k0,$ZodAsyncError:()=>ii,$ZodArray:()=>R0,$ZodAny:()=>E0});var My=Object.freeze({status:"aborted"});function z(e,n,r){function a(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),n(u,l);let c=s.prototype,d=Object.keys(c);for(let f=0;f<d.length;f++){let m=d[f];m in u||(u[m]=c[m].bind(u))}}let i=(r==null?void 0:r.Parent)??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function s(u){var l;let c=r!=null&&r.Parent?new o:this;a(c,u),(l=c._zod).deferred??(l.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(s,"init",{value:a}),Object.defineProperty(s,Symbol.hasInstance,{value:u=>{var l,c;return r!=null&&r.Parent&&u instanceof r.Parent?!0:(c=(l=u==null?void 0:u._zod)==null?void 0:l.traits)==null?void 0:c.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}var Ly=Symbol("zod_brand");let ii=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ls=class extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}};var os={};function nt(e){return e&&Object.assign(os,e),os}var fe={};wn(fe,{unwrapMessage:()=>zr,uint8ArrayToHex:()=>_C,uint8ArrayToBase64url:()=>gC,uint8ArrayToBase64:()=>Xy,stringifyPrimitive:()=>X,slugify:()=>Jy,shallowClone:()=>Vy,safeExtend:()=>dC,required:()=>pC,randomString:()=>rC,propertyKeyTypes:()=>us,promiseAllObject:()=>iC,primitiveTypes:()=>Wy,prefixIssues:()=>qt,pick:()=>uC,partial:()=>mC,parsedType:()=>ee,optionalKeys:()=>Hy,omit:()=>lC,objectClone:()=>eC,numKeys:()=>aC,nullish:()=>hi,normalizeParams:()=>C,mergeDefs:()=>xn,merge:()=>fC,jsonStringifyReplacer:()=>ss,joinValues:()=>D,issue:()=>ls,isPlainObject:()=>ui,isObject:()=>Mi,hexToUint8Array:()=>bC,getSizableOrigin:()=>Js,getParsedType:()=>oC,getLengthableOrigin:()=>qs,getEnumValues:()=>Ed,getElementAtPath:()=>nC,floatSafeRemainder:()=>Fy,finalizeIssue:()=>Nt,extend:()=>cC,escapeRegex:()=>yn,esc:()=>bc,defineLazy:()=>ce,createTransparentProxy:()=>sC,cloneDef:()=>tC,clone:()=>Dt,cleanRegex:()=>Fs,cleanEnum:()=>hC,captureStackTrace:()=>Zd,cached:()=>ma,base64urlToUint8Array:()=>vC,base64ToUint8Array:()=>Ky,assignProp:()=>Vn,assertNotEqual:()=>KA,assertNever:()=>YA,assertIs:()=>XA,assertEqual:()=>BA,assert:()=>QA,allowsEval:()=>qy,aborted:()=>Xn,NUMBER_FORMAT_RANGES:()=>Gy,Class:()=>yC,BIGINT_FORMAT_RANGES:()=>By});function BA(e){return e}function KA(e){return e}function XA(e){}function YA(e){throw Error("Unexpected value in exhaustive check")}function QA(e){}function Ed(e){let n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>n.indexOf(+r)===-1).map(([r,a])=>a)}function D(e,n="|"){return e.map(r=>X(r)).join(n)}function ss(e,n){return typeof n=="bigint"?n.toString():n}function ma(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function hi(e){return e==null}function Fs(e){let n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function Fy(e,n){let r=(e.toString().split(".")[1]||"").length,a=n.toString(),i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}let o=r>i?r:i,s=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(n.toFixed(o).replace(".",""));return s%u/10**o}var _g=Symbol("evaluating");function ce(e,n,r){let a;Object.defineProperty(e,n,{get(){if(a!==_g)return a===void 0&&(a=_g,a=r()),a},set(i){Object.defineProperty(e,n,{value:i})},configurable:!0})}function eC(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Vn(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function xn(...e){let n={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(n,a)}return Object.defineProperties({},n)}function tC(e){return xn(e._zod.def)}function nC(e,n){return n?n.reduce((r,a)=>r==null?void 0:r[a],e):e}function iC(e){let n=Object.keys(e),r=n.map(a=>e[a]);return Promise.all(r).then(a=>{let i={};for(let o=0;o<n.length;o++)i[n[o]]=a[o];return i})}function rC(e=10){let n="";for(let r=0;r<e;r++)n+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return n}function bc(e){return JSON.stringify(e)}function Jy(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Zd="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Mi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var qy=ma(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{return new Function(""),!0}catch{return!1}});function ui(e){if(Mi(e)===!1)return!1;let n=e.constructor;if(n===void 0||typeof n!="function")return!0;let r=n.prototype;return!(Mi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Vy(e){return ui(e)?{...e}:Array.isArray(e)?[...e]:e}function aC(e){let n=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&n++;return n}var oC=e=>{let n=typeof e;switch(n){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 Error(`Unknown data type: ${n}`)}},us=new Set(["string","number","symbol"]),Wy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function yn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dt(e,n,r){let a=new e._zod.constr(n??e._zod.def);return(!n||r!=null&&r.parent)&&(a._zod.parent=e),a}function C(e){let n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if((n==null?void 0:n.message)!==void 0){if((n==null?void 0:n.error)!==void 0)throw Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function sC(e){let n;return new Proxy({},{get(r,a,i){return n??(n=e()),Reflect.get(n,a,i)},set(r,a,i,o){return n??(n=e()),Reflect.set(n,a,i,o)},has(r,a){return n??(n=e()),Reflect.has(n,a)},deleteProperty(r,a){return n??(n=e()),Reflect.deleteProperty(n,a)},ownKeys(r){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(r,a){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,a)},defineProperty(r,a,i){return n??(n=e()),Reflect.defineProperty(n,a,i)}})}function X(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Hy(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var Gy={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]},By={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function uC(e,n){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=xn(e._zod.def,{get shape(){let o={};for(let s in n){if(!(s in r.shape))throw Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=r.shape[s])}return Vn(this,"shape",o),o},checks:[]});return Dt(e,i)}function lC(e,n){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=xn(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let s in n){if(!(s in r.shape))throw Error(`Unrecognized key: "${s}"`);n[s]&&delete o[s]}return Vn(this,"shape",o),o},checks:[]});return Dt(e,i)}function cC(e,n){if(!ui(n))throw 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 o in n)if(Object.getOwnPropertyDescriptor(i,o)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=xn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...n};return Vn(this,"shape",i),i}});return Dt(e,a)}function dC(e,n){if(!ui(n))throw Error("Invalid input to safeExtend: expected a plain object");let r=xn(e._zod.def,{get shape(){let a={...e._zod.def.shape,...n};return Vn(this,"shape",a),a}});return Dt(e,r)}function fC(e,n){let r=xn(e._zod.def,{get shape(){let a={...e._zod.def.shape,...n._zod.def.shape};return Vn(this,"shape",a),a},get catchall(){return n._zod.def.catchall},checks:[]});return Dt(e,r)}function mC(e,n,r){let a=n._zod.def.checks;if(a&&a.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=xn(n._zod.def,{get shape(){let o=n._zod.def.shape,s={...o};if(r)for(let u in r){if(!(u in o))throw Error(`Unrecognized key: "${u}"`);r[u]&&(s[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)s[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return Vn(this,"shape",s),s},checks:[]});return Dt(n,i)}function pC(e,n,r){let a=xn(n._zod.def,{get shape(){let i=n._zod.def.shape,o={...i};if(r)for(let s in r){if(!(s in o))throw Error(`Unrecognized key: "${s}"`);r[s]&&(o[s]=new e({type:"nonoptional",innerType:i[s]}))}else for(let s in i)o[s]=new e({type:"nonoptional",innerType:i[s]});return Vn(this,"shape",o),o}});return Dt(n,a)}function Xn(e,n=0){var r;if(e.aborted===!0)return!0;for(let a=n;a<e.issues.length;a++)if(((r=e.issues[a])==null?void 0:r.continue)!==!0)return!0;return!1}function qt(e,n){return n.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function zr(e){return typeof e=="string"?e:e==null?void 0:e.message}function Nt(e,n,r){var i,o,s,u,l,c;let a={...e,path:e.path??[]};if(!e.message){let d=zr((s=(o=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:o.error)==null?void 0:s.call(o,e))??zr((u=n==null?void 0:n.error)==null?void 0:u.call(n,e))??zr((l=r.customError)==null?void 0:l.call(r,e))??zr((c=r.localeError)==null?void 0:c.call(r,e))??"Invalid input";a.message=d}return delete a.inst,delete a.continue,!(n!=null&&n.reportInput)&&delete a.input,a}function Js(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function qs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ee(e){let n=typeof e;switch(n){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 n}function ls(...e){let[n,r,a]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:a}:{...n}}function hC(e){return Object.entries(e).filter(([n,r])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}function Ky(e){let n=atob(e),r=new Uint8Array(n.length);for(let a=0;a<n.length;a++)r[a]=n.charCodeAt(a);return r}function Xy(e){let n="";for(let r=0;r<e.length;r++)n+=String.fromCharCode(e[r]);return btoa(n)}function vC(e){let n=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-n.length%4)%4);return Ky(n+r)}function gC(e){return Xy(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function bC(e){let n=e.replace(/^0x/,"");if(n.length%2!==0)throw Error("Invalid hex string length");let r=new Uint8Array(n.length/2);for(let a=0;a<n.length;a+=2)r[a/2]=Number.parseInt(n.slice(a,a+2),16);return r}function _C(e){return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}class yC{constructor(...n){}}var Yy=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,ss,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Dd=z("$ZodError",Yy),_t=z("$ZodError",Yy,{Parent:Error});function Ad(e,n=r=>r.message){let r={},a=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(n(i))):a.push(n(i));return{formErrors:a,fieldErrors:r}}function Cd(e,n=r=>r.message){let r={_errors:[]},a=i=>{for(let o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>a({issues:s}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)r._errors.push(n(o));else{let s=r,u=0;for(;u<o.path.length;){let l=o.path[u];u!==o.path.length-1?s[l]=s[l]||{_errors:[]}:(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(o))),s=s[l],u++}}};return a(e),r}function Qy(e,n=r=>r.message){let r={errors:[]},a=(i,o=[])=>{var s,u;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>a({issues:c},l.path));else if(l.code==="invalid_key")a({issues:l.issues},l.path);else if(l.code==="invalid_element")a({issues:l.issues},l.path);else{let c=[...o,...l.path];if(c.length===0){r.errors.push(n(l));continue}let d=r,f=0;for(;f<c.length;){let m=c[f],p=f===c.length-1;typeof m=="string"?(d.properties??(d.properties={}),(s=d.properties)[m]??(s[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(u=d.items)[m]??(u[m]={errors:[]}),d=d.items[m]),p&&d.errors.push(n(l)),f++}}};return a(e),r}function e$(e){let n=[],r=e.map(a=>typeof a=="object"?a.key:a);for(let a of r)typeof a=="number"?n.push(`[${a}]`):typeof a=="symbol"?n.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?n.push(`[${JSON.stringify(a)}]`):(n.length&&n.push("."),n.push(a));return n.join("")}function t$(e){var a;let n=[],r=[...e.issues].sort((i,o)=>(i.path??[]).length-(o.path??[]).length);for(let i of r)n.push(`✖ ${i.message}`),(a=i.path)!=null&&a.length&&n.push(` → at ${e$(i.path)}`);return n.join(`
|
|
112
|
+
`)}var pa=e=>(n,r,a,i)=>{let o=a?Object.assign(a,{async:!1}):{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ii;if(s.issues.length){let u=new((i==null?void 0:i.Err)??e)(s.issues.map(l=>Nt(l,o,nt())));throw Zd(u,i==null?void 0:i.callee),u}return s.value},_c=pa(_t),ha=e=>async(n,r,a,i)=>{let o=a?Object.assign(a,{async:!0}):{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new((i==null?void 0:i.Err)??e)(s.issues.map(l=>Nt(l,o,nt())));throw Zd(u,i==null?void 0:i.callee),u}return s.value},yc=ha(_t),va=e=>(n,r,a)=>{let i=a?{...a,async:!1}:{async:!1},o=n._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new ii;return o.issues.length?{success:!1,error:new(e??Dd)(o.issues.map(s=>Nt(s,i,nt())))}:{success:!0,data:o.value}},n$=va(_t),ga=e=>async(n,r,a)=>{let i=a?Object.assign(a,{async:!0}):{async:!0},o=n._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>Nt(s,i,nt())))}:{success:!0,data:o.value}},i$=ga(_t),Rd=e=>(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return pa(e)(n,r,i)},$C=Rd(_t),Md=e=>(n,r,a)=>pa(e)(n,r,a),kC=Md(_t),Ld=e=>async(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return ha(e)(n,r,i)},wC=Ld(_t),Fd=e=>async(n,r,a)=>ha(e)(n,r,a),xC=Fd(_t),Jd=e=>(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return va(e)(n,r,i)},IC=Jd(_t),qd=e=>(n,r,a)=>va(e)(n,r,a),SC=qd(_t),Vd=e=>async(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return ga(e)(n,r,i)},zC=Vd(_t),Wd=e=>async(n,r,a)=>ga(e)(n,r,a),OC=Wd(_t),vi={};wn(vi,{xid:()=>s$,uuid7:()=>jC,uuid6:()=>NC,uuid4:()=>UC,uuid:()=>Li,uppercase:()=>E$,unicodeEmail:()=>m$,undefined:()=>j$,ulid:()=>o$,time:()=>I$,string:()=>z$,sha512_hex:()=>QC,sha512_base64url:()=>tR,sha512_base64:()=>eR,sha384_hex:()=>KC,sha384_base64url:()=>YC,sha384_base64:()=>XC,sha256_hex:()=>HC,sha256_base64url:()=>BC,sha256_base64:()=>GC,sha1_hex:()=>qC,sha1_base64url:()=>WC,sha1_base64:()=>VC,rfc5322Email:()=>EC,number:()=>Gd,null:()=>N$,nanoid:()=>l$,md5_hex:()=>LC,md5_base64url:()=>JC,md5_base64:()=>FC,mac:()=>g$,lowercase:()=>T$,ksuid:()=>u$,ipv6:()=>v$,ipv4:()=>h$,integer:()=>P$,idnEmail:()=>ZC,html5Email:()=>TC,hostname:()=>CC,hex:()=>MC,guid:()=>d$,extendedDuration:()=>PC,emoji:()=>p$,email:()=>f$,e164:()=>$$,duration:()=>c$,domain:()=>RC,datetime:()=>S$,date:()=>w$,cuid2:()=>a$,cuid:()=>r$,cidrv6:()=>_$,cidrv4:()=>b$,browserEmail:()=>DC,boolean:()=>U$,bigint:()=>O$,base64url:()=>Hd,base64:()=>y$});var r$=/^[cC][^\s-]{8,}$/,a$=/^[0-9a-z]+$/,o$=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,s$=/^[0-9a-vA-V]{20}$/,u$=/^[A-Za-z0-9]{27}$/,l$=/^[a-zA-Z0-9_-]{21}$/,c$=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,PC=/^[-+]?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)?)??$/,d$=/^([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})$/,Li=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)$/,UC=Li(4),NC=Li(6),jC=Li(7),f$=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,TC=/^[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])?)*$/,EC=/^(([^<>()\[\]\\.,;:\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,}))$/,m$=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ZC=m$,DC=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,AC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function p$(){return new RegExp(AC,"u")}var h$=/^(?:(?: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])$/,v$=/^(([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}|:))$/,g$=e=>{let n=yn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`)},b$=/^((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])$/,_$=/^(([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])$/,y$=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hd=/^[A-Za-z0-9_-]*$/,CC=/^(?=.{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])?)*\.?$/,RC=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,$$=/^\+[1-9]\d{6,14}$/,k$="(?:(?:\\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])))",w$=new RegExp(`^${k$}$`);function x$(e){return typeof e.precision=="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function I$(e){return new RegExp(`^${x$(e)}$`)}function S$(e){let n=x$({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${n}(?:${r.join("|")})`;return new RegExp(`^${k$}T(?:${a})$`)}var z$=e=>{let n=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},O$=/^-?\d+n?$/,P$=/^-?\d+$/,Gd=/^-?\d+(?:\.\d+)?$/,U$=/^(?:true|false)$/i,N$=/^null$/i,j$=/^undefined$/i,T$=/^[^A-Z]*$/,E$=/^[^a-z]*$/,MC=/^[0-9a-fA-F]*$/;function ba(e,n){return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`)}function _a(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var LC=/^[0-9a-fA-F]{32}$/,FC=ba(22,"=="),JC=_a(22),qC=/^[0-9a-fA-F]{40}$/,VC=ba(27,"="),WC=_a(27),HC=/^[0-9a-fA-F]{64}$/,GC=ba(43,"="),BC=_a(43),KC=/^[0-9a-fA-F]{96}$/,XC=ba(64,""),YC=_a(64),QC=/^[0-9a-fA-F]{128}$/,eR=ba(86,"=="),tR=_a(86),Re=z("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),Z$={number:"number",bigint:"bigint",object:"date"},Bd=z("$ZodCheckLessThan",(e,n)=>{Re.init(e,n);let r=Z$[typeof n.value];e._zod.onattach.push(a=>{let i=a._zod.bag,o=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<o&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=a=>{(n.inclusive?a.value<=n.value:a.value<n.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:a.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Kd=z("$ZodCheckGreaterThan",(e,n)=>{Re.init(e,n);let r=Z$[typeof n.value];e._zod.onattach.push(a=>{let i=a._zod.bag,o=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>o&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=a=>{(n.inclusive?a.value>=n.value:a.value>n.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:a.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),D$=z("$ZodCheckMultipleOf",(e,n)=>{Re.init(e,n),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):Fy(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),A$=z("$ZodCheckNumberFormat",(e,n)=>{var s;Re.init(e,n),n.format=n.format||"float64";let r=(s=n.format)==null?void 0:s.includes("int"),a=r?"int":"number",[i,o]=Gy[n.format];e._zod.onattach.push(u=>{let l=u._zod.bag;l.format=n.format,l.minimum=i,l.maximum=o,r&&(l.pattern=P$)}),e._zod.check=u=>{let l=u.value;if(r){if(!Number.isInteger(l)){u.issues.push({expected:a,format:n.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?u.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!n.abort}):u.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!n.abort});return}}l<i&&u.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),l>o&&u.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!n.abort})}}),C$=z("$ZodCheckBigIntFormat",(e,n)=>{Re.init(e,n);let[r,a]=By[n.format];e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=n.format,o.minimum=r,o.maximum=a}),e._zod.check=i=>{let o=i.value;o<r&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!n.abort}),o>a&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!n.abort})}}),R$=z("$ZodCheckMaxSize",(e,n)=>{var r;Re.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!hi(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(a._zod.bag.maximum=n.maximum)}),e._zod.check=a=>{let i=a.value;i.size<=n.maximum||a.issues.push({origin:Js(i),code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),M$=z("$ZodCheckMinSize",(e,n)=>{var r;Re.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!hi(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(a._zod.bag.minimum=n.minimum)}),e._zod.check=a=>{let i=a.value;i.size>=n.minimum||a.issues.push({origin:Js(i),code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),L$=z("$ZodCheckSizeEquals",(e,n)=>{var r;Re.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!hi(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=a=>{let i=a.value,o=i.size;if(o===n.size)return;let s=o>n.size;a.issues.push({origin:Js(i),...s?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!n.abort})}}),F$=z("$ZodCheckMaxLength",(e,n)=>{var r;Re.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!hi(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(a._zod.bag.maximum=n.maximum)}),e._zod.check=a=>{let i=a.value;if(i.length<=n.maximum)return;let o=qs(i);a.issues.push({origin:o,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),J$=z("$ZodCheckMinLength",(e,n)=>{var r;Re.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!hi(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(a._zod.bag.minimum=n.minimum)}),e._zod.check=a=>{let i=a.value;if(i.length>=n.minimum)return;let o=qs(i);a.issues.push({origin:o,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),q$=z("$ZodCheckLengthEquals",(e,n)=>{var r;Re.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!hi(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=a=>{let i=a.value,o=i.length;if(o===n.length)return;let s=qs(i),u=o>n.length;a.issues.push({origin:s,...u?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!n.abort})}}),ya=z("$ZodCheckStringFormat",(e,n)=>{var r,a;Re.init(e,n),e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=n.format,n.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:n.format,input:i.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(a=e._zod).check??(a.check=()=>{})}),V$=z("$ZodCheckRegex",(e,n)=>{ya.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),W$=z("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=T$),ya.init(e,n)}),H$=z("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=E$),ya.init(e,n)}),G$=z("$ZodCheckIncludes",(e,n)=>{Re.init(e,n);let r=yn(n.includes),a=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=a,e._zod.onattach.push(i=>{let o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=i=>{i.value.includes(n.includes,n.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:i.value,inst:e,continue:!n.abort})}}),B$=z("$ZodCheckStartsWith",(e,n)=>{Re.init(e,n);let r=new RegExp(`^${yn(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(n.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:a.value,inst:e,continue:!n.abort})}}),K$=z("$ZodCheckEndsWith",(e,n)=>{Re.init(e,n);let r=new RegExp(`.*${yn(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(n.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:a.value,inst:e,continue:!n.abort})}});function yg(e,n,r){e.issues.length&&n.issues.push(...qt(r,e.issues))}var X$=z("$ZodCheckProperty",(e,n)=>{Re.init(e,n),e._zod.check=r=>{let a=n.schema._zod.run({value:r.value[n.property],issues:[]},{});if(a instanceof Promise)return a.then(i=>yg(i,r,n.property));yg(a,r,n.property)}}),Y$=z("$ZodCheckMimeType",(e,n)=>{Re.init(e,n);let r=new Set(n.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=n.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:n.mime,input:a.value.type,inst:e,continue:!n.abort})}}),Q$=z("$ZodCheckOverwrite",(e,n)=>{Re.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});let e0=class{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}let r=n.split(`
|
|
113
|
+
`).filter(o=>o),a=Math.min(...r.map(o=>o.length-o.trimStart().length)),i=r.map(o=>o.slice(a)).map(o=>" ".repeat(this.indent*2)+o);for(let o of i)this.content.push(o)}compile(){let n=Function,r=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new n(...r,a.join(`
|
|
114
|
+
`))}};var t0={major:4,minor:3,patch:5},re=z("$ZodType",(e,n)=>{var i;var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=t0;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let o of a)for(let s of o._zod.onattach)s(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{let o=(u,l,c)=>{let d=Xn(u),f;for(let m of l){if(m._zod.def.when){if(!m._zod.def.when(u))continue}else if(d)continue;let p=u.issues.length,h=m._zod.check(u);if(h instanceof Promise&&(c==null?void 0:c.async)===!1)throw new ii;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,u.issues.length!==p&&(d||(d=Xn(u,p)))});else{if(u.issues.length===p)continue;d||(d=Xn(u,p))}}return f?f.then(()=>u):u},s=(u,l,c)=>{if(Xn(u))return u.aborted=!0,u;let d=o(l,a,c);if(d instanceof Promise){if(c.async===!1)throw new ii;return d.then(f=>e._zod.parse(f,c))}return e._zod.parse(d,c)};e._zod.run=(u,l)=>{if(l.skipChecks)return e._zod.parse(u,l);if(l.direction==="backward"){let d=e._zod.parse({value:u.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(f=>s(f,u,l)):s(d,u,l)}let c=e._zod.parse(u,l);if(c instanceof Promise){if(l.async===!1)throw new ii;return c.then(d=>o(d,a,l))}return o(c,a,l)}}ce(e,"~standard",()=>({validate:o=>{var s;try{let u=n$(e,o);return u.success?{value:u.data}:{issues:(s=u.error)==null?void 0:s.issues}}catch{return i$(e,o).then(l=>{var c;return l.success?{value:l.data}:{issues:(c=l.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),$a=z("$ZodString",(e,n)=>{var r;re.init(e,n),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??z$(e._zod.bag),e._zod.parse=(a,i)=>{if(n.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Se=z("$ZodStringFormat",(e,n)=>{ya.init(e,n),$a.init(e,n)}),n0=z("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=d$),Se.init(e,n)}),i0=z("$ZodUUID",(e,n)=>{if(n.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Li(r))}else n.pattern??(n.pattern=Li());Se.init(e,n)}),r0=z("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=f$),Se.init(e,n)}),a0=z("$ZodURL",(e,n)=>{Se.init(e,n),e._zod.check=r=>{try{let a=r.value.trim(),i=new URL(a);n.hostname&&(n.hostname.lastIndex=0,!n.hostname.test(i.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,!n.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=i.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),o0=z("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=p$()),Se.init(e,n)}),s0=z("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=l$),Se.init(e,n)}),u0=z("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=r$),Se.init(e,n)}),l0=z("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=a$),Se.init(e,n)}),c0=z("$ZodULID",(e,n)=>{n.pattern??(n.pattern=o$),Se.init(e,n)}),d0=z("$ZodXID",(e,n)=>{n.pattern??(n.pattern=s$),Se.init(e,n)}),f0=z("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=u$),Se.init(e,n)}),m0=z("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=S$(n)),Se.init(e,n)}),p0=z("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=w$),Se.init(e,n)}),h0=z("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=I$(n)),Se.init(e,n)}),v0=z("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=c$),Se.init(e,n)}),g0=z("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=h$),Se.init(e,n),e._zod.bag.format="ipv4"}),b0=z("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=v$),Se.init(e,n),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:!n.abort})}}}),_0=z("$ZodMAC",(e,n)=>{n.pattern??(n.pattern=g$(n.delimiter)),Se.init(e,n),e._zod.bag.format="mac"}),y0=z("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=b$),Se.init(e,n)}),$0=z("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=_$),Se.init(e,n),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw Error();let[i,o]=a;if(!o)throw Error();let s=Number(o);if(`${s}`!==o||s<0||s>128)throw Error();new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function Xd(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var k0=z("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=y$),Se.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Xd(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function w0(e){if(!Hd.test(e))return!1;let n=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return Xd(r)}var x0=z("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=Hd),Se.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{w0(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),I0=z("$ZodE164",(e,n)=>{n.pattern??(n.pattern=$$),Se.init(e,n)});function S0(e,n=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let i=JSON.parse(atob(a));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||n&&(!("alg"in i)||i.alg!==n))}catch{return!1}}var z0=z("$ZodJWT",(e,n)=>{Se.init(e,n),e._zod.check=r=>{S0(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),O0=z("$ZodCustomStringFormat",(e,n)=>{Se.init(e,n),e._zod.check=r=>{n.fn(r.value)||r.issues.push({code:"invalid_format",format:n.format,input:r.value,inst:e,continue:!n.abort})}}),Yd=z("$ZodNumber",(e,n)=>{re.init(e,n),e._zod.pattern=e._zod.bag.pattern??Gd,e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),P0=z("$ZodNumberFormat",(e,n)=>{A$.init(e,n),Yd.init(e,n)}),Qd=z("$ZodBoolean",(e,n)=>{re.init(e,n),e._zod.pattern=U$,e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),ef=z("$ZodBigInt",(e,n)=>{re.init(e,n),e._zod.pattern=O$,e._zod.parse=(r,a)=>{if(n.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}}),U0=z("$ZodBigIntFormat",(e,n)=>{C$.init(e,n),ef.init(e,n)}),N0=z("$ZodSymbol",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;return typeof i=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),r}}),j0=z("$ZodUndefined",(e,n)=>{re.init(e,n),e._zod.pattern=j$,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),r}}),T0=z("$ZodNull",(e,n)=>{re.init(e,n),e._zod.pattern=N$,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),E0=z("$ZodAny",(e,n)=>{re.init(e,n),e._zod.parse=r=>r}),Z0=z("$ZodUnknown",(e,n)=>{re.init(e,n),e._zod.parse=r=>r}),D0=z("$ZodNever",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),A0=z("$ZodVoid",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),C0=z("$ZodDate",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),r}});function $g(e,n,r){e.issues.length&&n.issues.push(...qt(r,e.issues)),n.value[r]=e.value}var R0=z("$ZodArray",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let s=0;s<i.length;s++){let u=i[s],l=n.element._zod.run({value:u,issues:[]},a);l instanceof Promise?o.push(l.then(c=>$g(c,r,s))):$g(l,r,s)}return o.length?Promise.all(o).then(()=>r):r}});function cs(e,n,r,a,i){if(e.issues.length){if(i&&!(r in a))return;n.issues.push(...qt(r,e.issues))}e.value===void 0?r in a&&(n.value[r]=void 0):n.value[r]=e.value}function M0(e){var a,i,o,s;let n=Object.keys(e.shape);for(let u of n)if(!((s=(o=(i=(a=e.shape)==null?void 0:a[u])==null?void 0:i._zod)==null?void 0:o.traits)!=null&&s.has("$ZodType")))throw Error(`Invalid element at key "${u}": expected a Zod schema`);let r=Hy(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function L0(e,n,r,a,i,o){let s=[],u=i.keySet,l=i.catchall._zod,c=l.def.type,d=l.optout==="optional";for(let f in n){if(u.has(f))continue;if(c==="never"){s.push(f);continue}let m=l.run({value:n[f],issues:[]},a);m instanceof Promise?e.push(m.then(p=>cs(p,r,f,n,d))):cs(m,r,f,n,d)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:n,inst:o}),e.length?Promise.all(e).then(()=>r):r}var F0=z("$ZodObject",(e,n)=>{var s;if(re.init(e,n),!((s=Object.getOwnPropertyDescriptor(n,"shape"))!=null&&s.get)){let u=n.shape;Object.defineProperty(n,"shape",{get:()=>{let l={...u};return Object.defineProperty(n,"shape",{value:l}),l}})}let r=ma(()=>M0(n));ce(e._zod,"propValues",()=>{let u=n.shape,l={};for(let c in u){let d=u[c]._zod;if(d.values){l[c]??(l[c]=new Set);for(let f of d.values)l[c].add(f)}}return l});let a=Mi,i=n.catchall,o;e._zod.parse=(u,l)=>{o??(o=r.value);let c=u.value;if(!a(c))return u.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),u;u.value={};let d=[],f=o.shape;for(let m of o.keys){let p=f[m],h=p._zod.optout==="optional",g=p._zod.run({value:c[m],issues:[]},l);g instanceof Promise?d.push(g.then(b=>cs(b,u,m,c,h))):cs(g,u,m,c,h)}return i?L0(d,c,u,l,r.value,e):d.length?Promise.all(d).then(()=>u):u}}),J0=z("$ZodObjectJIT",(e,n)=>{F0.init(e,n);let r=e._zod.parse,a=ma(()=>M0(n)),i=f=>{var $,S;let m=new e0(["shape","payload","ctx"]),p=a.value,h=k=>{let w=bc(k);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};m.write("const input = payload.value;");let g=Object.create(null),b=0;for(let k of p.keys)g[k]=`key_${b++}`;m.write("const newResult = {};");for(let k of p.keys){let w=g[k],I=bc(k),x=((S=($=f[k])==null?void 0:$._zod)==null?void 0:S.optout)==="optional";m.write(`const ${w} = ${h(k)};`),x?m.write(`
|
|
115
|
+
if (${w}.issues.length) {
|
|
116
|
+
if (${I} in input) {
|
|
117
|
+
payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
118
|
+
...iss,
|
|
119
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
120
|
+
})));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (${w}.value === undefined) {
|
|
125
|
+
if (${I} in input) {
|
|
126
|
+
newResult[${I}] = undefined;
|
|
127
|
+
}
|
|
128
|
+
} else {
|
|
129
|
+
newResult[${I}] = ${w}.value;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
`):m.write(`
|
|
133
|
+
if (${w}.issues.length) {
|
|
134
|
+
payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
135
|
+
...iss,
|
|
136
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
137
|
+
})));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (${w}.value === undefined) {
|
|
141
|
+
if (${I} in input) {
|
|
142
|
+
newResult[${I}] = undefined;
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
newResult[${I}] = ${w}.value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");let v=m.compile();return(k,w)=>v(f,k,w)},o,s=Mi,u=!os.jitless,l=u&&qy.value,c=n.catchall,d;e._zod.parse=(f,m)=>{d??(d=a.value);let p=f.value;return s(p)?u&&l&&(m==null?void 0:m.async)===!1&&m.jitless!==!0?(o||(o=i(n.shape)),f=o(f,m),c?L0([],p,f,m,d,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),f)}});function kg(e,n,r,a){for(let o of e)if(o.issues.length===0)return n.value=o.value,n;let i=e.filter(o=>!Xn(o));return i.length===1?(n.value=i[0].value,i[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(s=>Nt(s,a,nt())))}),n)}var Vs=z("$ZodUnion",(e,n)=>{re.init(e,n),ce(e._zod,"optin",()=>n.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ce(e._zod,"optout",()=>n.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ce(e._zod,"values",()=>{if(n.options.every(i=>i._zod.values))return new Set(n.options.flatMap(i=>Array.from(i._zod.values)))}),ce(e._zod,"pattern",()=>{if(n.options.every(i=>i._zod.pattern)){let i=n.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Fs(o.source)).join("|")})$`)}});let r=n.options.length===1,a=n.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return a(i,o);let s=!1,u=[];for(let l of n.options){let c=l._zod.run({value:i.value,issues:[]},o);if(c instanceof Promise)u.push(c),s=!0;else{if(c.issues.length===0)return c;u.push(c)}}return s?Promise.all(u).then(l=>kg(l,i,e,o)):kg(u,i,e,o)}});function wg(e,n,r,a){let i=e.filter(o=>o.issues.length===0);return i.length===1?(n.value=i[0].value,n):(i.length===0?n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(s=>Nt(s,a,nt())))}):n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:[],inclusive:!1}),n)}var q0=z("$ZodXor",(e,n)=>{Vs.init(e,n),n.inclusive=!1;let r=n.options.length===1,a=n.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return a(i,o);let s=!1,u=[];for(let l of n.options){let c=l._zod.run({value:i.value,issues:[]},o);c instanceof Promise?(u.push(c),s=!0):u.push(c)}return s?Promise.all(u).then(l=>wg(l,i,e,o)):wg(u,i,e,o)}}),V0=z("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,Vs.init(e,n);let r=e._zod.parse;ce(e._zod,"propValues",()=>{let i={};for(let o of n.options){let s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw Error(`Invalid discriminated union option at index "${n.options.indexOf(o)}"`);for(let[u,l]of Object.entries(s)){i[u]||(i[u]=new Set);for(let c of l)i[u].add(c)}}return i});let a=ma(()=>{var s;let i=n.options,o=new Map;for(let u of i){let l=(s=u._zod.propValues)==null?void 0:s[n.discriminator];if(!l||l.size===0)throw Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`);for(let c of l){if(o.has(c))throw Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,u)}}return o});e._zod.parse=(i,o)=>{let s=i.value;if(!Mi(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let u=a.value.get(s==null?void 0:s[n.discriminator]);return u?u._zod.run(i,o):n.unionFallback?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,input:s,path:[n.discriminator],inst:e}),i)}}),W0=z("$ZodIntersection",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value,o=n.left._zod.run({value:i,issues:[]},a),s=n.right._zod.run({value:i,issues:[]},a);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([u,l])=>xg(r,u,l)):xg(r,o,s)}});function $c(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(ui(e)&&ui(n)){let r=Object.keys(n),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),i={...e,...n};for(let o of a){let s=$c(e[o],n[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let a=0;a<e.length;a++){let i=e[a],o=n[a],s=$c(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function xg(e,n,r){let a=new Map,i;for(let u of n.issues)if(u.code==="unrecognized_keys"){i??(i=u);for(let l of u.keys)a.has(l)||a.set(l,{}),a.get(l).l=!0}else e.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let l of u.keys)a.has(l)||a.set(l,{}),a.get(l).r=!0;else e.issues.push(u);let o=[...a].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(o.length&&i&&e.issues.push({...i,keys:o}),Xn(e))return e;let s=$c(n.value,r.value);if(!s.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var tf=z("$ZodTuple",(e,n)=>{re.init(e,n);let r=n.items;e._zod.parse=(a,i)=>{let o=a.value;if(!Array.isArray(o))return a.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let s=[],u=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!n.rest){let d=o.length>r.length,f=o.length<l-1;if(d||f)return a.issues.push({...d?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),a}let c=-1;for(let d of r){if(c++,c>=o.length&&c>=l)continue;let f=d._zod.run({value:o[c],issues:[]},i);f instanceof Promise?s.push(f.then(m=>_o(m,a,c))):_o(f,a,c)}if(n.rest){let d=o.slice(r.length);for(let f of d){c++;let m=n.rest._zod.run({value:f,issues:[]},i);m instanceof Promise?s.push(m.then(p=>_o(p,a,c))):_o(m,a,c)}}return s.length?Promise.all(s).then(()=>a):a}});function _o(e,n,r){e.issues.length&&n.issues.push(...qt(r,e.issues)),n.value[r]=e.value}var H0=z("$ZodRecord",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!ui(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let o=[],s=n.keyType._zod.values;if(s){r.value={};let u=new Set;for(let c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){u.add(typeof c=="number"?c.toString():c);let d=n.valueType._zod.run({value:i[c],issues:[]},a);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&r.issues.push(...qt(c,f.issues)),r.value[c]=f.value})):(d.issues.length&&r.issues.push(...qt(c,d.issues)),r.value[c]=d.value)}let l;for(let c in i)u.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(i)){if(u==="__proto__")continue;let l=n.keyType._zod.run({value:u,issues:[]},a);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Gd.test(u)&&l.issues.length&&l.issues.some(d=>d.code==="invalid_type"&&d.expected==="number")){let d=n.keyType._zod.run({value:Number(u),issues:[]},a);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){n.mode==="loose"?r.value[u]=i[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>Nt(d,a,nt())),input:u,path:[u],inst:e});continue}let c=n.valueType._zod.run({value:i[u],issues:[]},a);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&r.issues.push(...qt(u,d.issues)),r.value[l.value]=d.value})):(c.issues.length&&r.issues.push(...qt(u,c.issues)),r.value[l.value]=c.value)}}return o.length?Promise.all(o).then(()=>r):r}}),G0=z("$ZodMap",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let o=[];r.value=new Map;for(let[s,u]of i){let l=n.keyType._zod.run({value:s,issues:[]},a),c=n.valueType._zod.run({value:u,issues:[]},a);l instanceof Promise||c instanceof Promise?o.push(Promise.all([l,c]).then(([d,f])=>{Ig(d,f,r,s,i,e,a)})):Ig(l,c,r,s,i,e,a)}return o.length?Promise.all(o).then(()=>r):r}});function Ig(e,n,r,a,i,o,s){e.issues.length&&(us.has(typeof a)?r.issues.push(...qt(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(u=>Nt(u,s,nt()))})),n.issues.length&&(us.has(typeof a)?r.issues.push(...qt(a,n.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:a,issues:n.issues.map(u=>Nt(u,s,nt()))})),r.value.set(e.value,n.value)}var B0=z("$ZodSet",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let s of i){let u=n.valueType._zod.run({value:s,issues:[]},a);u instanceof Promise?o.push(u.then(l=>Sg(l,r))):Sg(u,r)}return o.length?Promise.all(o).then(()=>r):r}});function Sg(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var K0=z("$ZodEnum",(e,n)=>{re.init(e,n);let r=Ed(n.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(i=>us.has(typeof i)).map(i=>typeof i=="string"?yn(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{let s=i.value;return a.has(s)||i.issues.push({code:"invalid_value",values:r,input:s,inst:e}),i}}),X0=z("$ZodLiteral",(e,n)=>{if(re.init(e,n),n.values.length===0)throw Error("Cannot create literal schema with no valid values");let r=new Set(n.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.values.map(a=>typeof a=="string"?yn(a):a?yn(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,i)=>{let o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),a}}),Y0=z("$ZodFile",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),r}}),Q0=z("$ZodTransform",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Ls(e.constructor.name);let i=n.transform(r.value,r);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new ii;return r.value=i,r}});function zg(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}var nf=z("$ZodOptional",(e,n)=>{re.init(e,n),e._zod.optin="optional",e._zod.optout="optional",ce(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),ce(e._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${Fs(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(n.innerType._zod.optin==="optional"){let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>zg(o,r.value)):zg(i,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,a)}}),e1=z("$ZodExactOptional",(e,n)=>{nf.init(e,n),ce(e._zod,"values",()=>n.innerType._zod.values),ce(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,a)=>n.innerType._zod.run(r,a)}),t1=z("$ZodNullable",(e,n)=>{re.init(e,n),ce(e._zod,"optin",()=>n.innerType._zod.optin),ce(e._zod,"optout",()=>n.innerType._zod.optout),ce(e._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${Fs(r.source)}|null)$`):void 0}),ce(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:n.innerType._zod.run(r,a)}),n1=z("$ZodDefault",(e,n)=>{re.init(e,n),e._zod.optin="optional",ce(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);if(r.value===void 0)return r.value=n.defaultValue,r;let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>Og(o,n)):Og(i,n)}});function Og(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var i1=z("$ZodPrefault",(e,n)=>{re.init(e,n),e._zod.optin="optional",ce(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,a))}),r1=z("$ZodNonOptional",(e,n)=>{re.init(e,n),ce(e._zod,"values",()=>{let r=n.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>Pg(o,e)):Pg(i,e)}});function Pg(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}var a1=z("$ZodSuccess",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Ls("ZodSuccess");let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>(r.value=o.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),o1=z("$ZodCatch",(e,n)=>{re.init(e,n),ce(e._zod,"optin",()=>n.innerType._zod.optin),ce(e._zod,"optout",()=>n.innerType._zod.optout),ce(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>(r.value=o.value,o.issues.length&&(r.value=n.catchValue({...r,error:{issues:o.issues.map(s=>Nt(s,a,nt()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=n.catchValue({...r,error:{issues:i.issues.map(o=>Nt(o,a,nt()))},input:r.value}),r.issues=[]),r)}}),s1=z("$ZodNaN",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),u1=z("$ZodPipe",(e,n)=>{re.init(e,n),ce(e._zod,"values",()=>n.in._zod.values),ce(e._zod,"optin",()=>n.in._zod.optin),ce(e._zod,"optout",()=>n.out._zod.optout),ce(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){let o=n.out._zod.run(r,a);return o instanceof Promise?o.then(s=>yo(s,n.in,a)):yo(o,n.in,a)}let i=n.in._zod.run(r,a);return i instanceof Promise?i.then(o=>yo(o,n.out,a)):yo(i,n.out,a)}});function yo(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}var rf=z("$ZodCodec",(e,n)=>{re.init(e,n),ce(e._zod,"values",()=>n.in._zod.values),ce(e._zod,"optin",()=>n.in._zod.optin),ce(e._zod,"optout",()=>n.out._zod.optout),ce(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,a)=>{if((a.direction||"forward")==="forward"){let i=n.in._zod.run(r,a);return i instanceof Promise?i.then(o=>$o(o,n,a)):$o(i,n,a)}else{let i=n.out._zod.run(r,a);return i instanceof Promise?i.then(o=>$o(o,n,a)):$o(i,n,a)}}});function $o(e,n,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let a=n.transform(e.value,e);return a instanceof Promise?a.then(i=>ko(e,i,n.out,r)):ko(e,a,n.out,r)}else{let a=n.reverseTransform(e.value,e);return a instanceof Promise?a.then(i=>ko(e,i,n.in,r)):ko(e,a,n.in,r)}}function ko(e,n,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:n,issues:e.issues},a)}var l1=z("$ZodReadonly",(e,n)=>{re.init(e,n),ce(e._zod,"propValues",()=>n.innerType._zod.propValues),ce(e._zod,"values",()=>n.innerType._zod.values),ce(e._zod,"optin",()=>{var r,a;return(a=(r=n.innerType)==null?void 0:r._zod)==null?void 0:a.optin}),ce(e._zod,"optout",()=>{var r,a;return(a=(r=n.innerType)==null?void 0:r._zod)==null?void 0:a.optout}),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(Ug):Ug(i)}});function Ug(e){return e.value=Object.freeze(e.value),e}var c1=z("$ZodTemplateLiteral",(e,n)=>{re.init(e,n);let r=[];for(let a of n.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let i=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!i)throw Error(`Invalid template literal part: ${a._zod.traits}`);let o=i.startsWith("^")?1:0,s=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(o,s))}else if(a===null||Wy.has(typeof a))r.push(yn(`${a}`));else throw Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,i)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),a)}),d1=z("$ZodFunction",(e,n)=>(re.init(e,n),e._def=n,e._zod.def=n,e.implement=r=>{if(typeof r!="function")throw Error("implement() must be called with a function");return function(...a){let i=e._def.input?_c(e._def.input,a):a,o=Reflect.apply(r,this,i);return e._def.output?_c(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw Error("implementAsync() must be called with a function");return async function(...a){let i=e._def.input?await yc(e._def.input,a):a,o=await Reflect.apply(r,this,i);return e._def.output?await yc(e._def.output,o):o}},e._zod.parse=(r,a)=>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 a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new tf({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>new e.constructor({type:"function",input:e._def.input,output:r}),e)),f1=z("$ZodPromise",(e,n)=>{re.init(e,n),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(i=>n.innerType._zod.run({value:i,issues:[]},a))}),m1=z("$ZodLazy",(e,n)=>{re.init(e,n),ce(e._zod,"innerType",()=>n.getter()),ce(e._zod,"pattern",()=>{var r,a;return(a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.pattern}),ce(e._zod,"propValues",()=>{var r,a;return(a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.propValues}),ce(e._zod,"optin",()=>{var r,a;return((a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.optin)??void 0}),ce(e._zod,"optout",()=>{var r,a;return((a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.optout)??void 0}),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),p1=z("$ZodCustom",(e,n)=>{Re.init(e,n),re.init(e,n),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,i=n.fn(a);if(i instanceof Promise)return i.then(o=>Ng(o,r,a,e));Ng(i,r,a,e)}});function Ng(e,n,r,a){if(!e){let i={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(i.params=a._zod.def.params),n.issues.push(ls(i))}}var af={};wn(af,{zhTW:()=>CM,zhCN:()=>DM,yo:()=>MM,vi:()=>EM,uz:()=>jM,ur:()=>UM,uk:()=>g1,ua:()=>OM,tr:()=>SM,th:()=>xM,ta:()=>kM,sv:()=>yM,sl:()=>bM,ru:()=>vM,pt:()=>pM,ps:()=>cM,pl:()=>fM,ota:()=>uM,no:()=>oM,nl:()=>rM,ms:()=>nM,mk:()=>eM,lt:()=>YR,ko:()=>KR,km:()=>v1,kh:()=>GR,ka:()=>WR,ja:()=>qR,it:()=>FR,is:()=>MR,id:()=>CR,hy:()=>DR,hu:()=>ER,he:()=>jR,frCA:()=>UR,fr:()=>OR,fi:()=>SR,fa:()=>xR,es:()=>kR,eo:()=>yR,en:()=>h1,de:()=>gR,da:()=>hR,cs:()=>mR,ca:()=>dR,bg:()=>lR,be:()=>sR,az:()=>aR,ar:()=>iR});var nR=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function n(i){return e[i]??null}let r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${i.expected}، ولكن تم إدخال ${u}`:`مدخلات غير مقبولة: يفترض إدخال ${o}، ولكن تم إدخال ${u}`}case"invalid_value":return i.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${X(i.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?` أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${o} ${i.maximum.toString()} ${s.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${o} ${i.minimum.toString()} ${s.unit}`:`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${i.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${r[o.format]??i.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${i.divisor}`;case"unrecognized_keys":return`معرف${i.keys.length>1?"ات":""} غريب${i.keys.length>1?"ة":""}: ${D(i.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${i.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${i.origin}`;default:return"مدخل غير مقبول"}}};function iR(){return{localeError:nR()}}var rR=()=>{let e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function n(i){return e[i]??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"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Yanlış dəyər: gözlənilən instanceof ${i.expected}, daxil olan ${u}`:`Yanlış dəyər: gözlənilən ${o}, daxil olan ${u}`}case"invalid_value":return i.values.length===1?`Yanlış dəyər: gözlənilən ${X(i.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${o}${i.maximum.toString()} ${s.unit??"element"}`:`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Çox kiçik: gözlənilən ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`Çox kiçik: gözlənilən ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[o.format]??i.format}`}case"not_multiple_of":return`Yanlış ədəd: ${i.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${i.keys.length>1?"lar":""}: ${D(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${i.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function aR(){return{localeError:rR()}}function jg(e,n,r,a){let i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?a:o===1?n:o>=2&&o<=4?r:a}var oR=()=>{let e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function n(i){return e[i]??null}let r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},a={nan:"NaN",number:"лік",array:"масіў"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Няправільны ўвод: чакаўся instanceof ${i.expected}, атрымана ${u}`:`Няправільны ўвод: чакаўся ${o}, атрымана ${u}`}case"invalid_value":return i.values.length===1?`Няправільны ўвод: чакалася ${X(i.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);if(s){let u=Number(i.maximum),l=jg(u,s.unit.one,s.unit.few,s.unit.many);return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна ${s.verb} ${o}${i.maximum.toString()} ${l}`}return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна быць ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);if(s){let u=Number(i.minimum),l=jg(u,s.unit.one,s.unit.few,s.unit.many);return`Занадта малы: чакалася, што ${i.origin} павінна ${s.verb} ${o}${i.minimum.toString()} ${l}`}return`Занадта малы: чакалася, што ${i.origin} павінна быць ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${r[o.format]??i.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${i.keys.length>1?"ключы":"ключ"}: ${D(i.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${i.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${i.origin}`;default:return"Няправільны ўвод"}}};function sR(){return{localeError:oR()}}var uR=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function n(i){return e[i]??null}let r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},a={nan:"NaN",number:"число",array:"масив"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Невалиден вход: очакван instanceof ${i.expected}, получен ${u}`:`Невалиден вход: очакван ${o}, получен ${u}`}case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${X(i.values[0])}`:`Невалидна опция: очаквано едно от ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${o}${i.maximum.toString()} ${s.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Твърде малко: очаква се ${i.origin} да съдържа ${o}${i.minimum.toString()} ${s.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;if(o.format==="starts_with")return`Невалиден низ: трябва да започва с "${o.prefix}"`;if(o.format==="ends_with")return`Невалиден низ: трябва да завършва с "${o.suffix}"`;if(o.format==="includes")return`Невалиден низ: трябва да включва "${o.includes}"`;if(o.format==="regex")return`Невалиден низ: трябва да съвпада с ${o.pattern}`;let s="Невалиден";return o.format==="emoji"&&(s="Невалидно"),o.format==="datetime"&&(s="Невалидно"),o.format==="date"&&(s="Невалидна"),o.format==="time"&&(s="Невалидно"),o.format==="duration"&&(s="Невалидна"),`${s} ${r[o.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function lR(){return{localeError:uR()}}var cR=()=>{let e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(i){return e[i]??null}let r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Tipus invàlid: s'esperava instanceof ${i.expected}, s'ha rebut ${u}`:`Tipus invàlid: s'esperava ${o}, s'ha rebut ${u}`}case"invalid_value":return i.values.length===1?`Valor invàlid: s'esperava ${X(i.values[0])}`:`Opció invàlida: s'esperava una de ${D(i.values," o ")}`;case"too_big":{let o=i.inclusive?"com a màxim":"menys de",s=n(i.origin);return s?`Massa gran: s'esperava que ${i.origin??"el valor"} contingués ${o} ${i.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"com a mínim":"més de",s=n(i.origin);return s?`Massa petit: s'esperava que ${i.origin} contingués ${o} ${i.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${r[o.format]??i.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${i.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${i.origin}`;default:return"Entrada invàlida"}}};function dR(){return{localeError:cR()}}var fR=()=>{let e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function n(i){return e[i]??null}let r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Neplatný vstup: očekáváno instanceof ${i.expected}, obdrženo ${u}`:`Neplatný vstup: očekáváno ${o}, obdrženo ${u}`}case"invalid_value":return i.values.length===1?`Neplatný vstup: očekáváno ${X(i.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Hodnota je příliš velká: ${i.origin??"hodnota"} musí mít ${o}${i.maximum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš velká: ${i.origin??"hodnota"} musí být ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Hodnota je příliš malá: ${i.origin??"hodnota"} musí mít ${o}${i.minimum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš malá: ${i.origin??"hodnota"} musí být ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${r[o.format]??i.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${i.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${D(i.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${i.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${i.origin}`;default:return"Neplatný vstup"}}};function mR(){return{localeError:fR()}}var pR=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function n(i){return e[i]??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æt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",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"},a={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${u}`:`Ugyldigt input: forventede ${o}, fik ${u}`}case"invalid_value":return i.values.length===1?`Ugyldig værdi: forventede ${X(i.values[0])}`:`Ugyldigt valg: forventede en af følgende ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin),u=a[i.origin]??i.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${o} ${i.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin),u=a[i.origin]??i.origin;return s?`For lille: forventede ${u} ${s.verb} ${o} ${i.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${D(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${i.origin}`;default:return"Ugyldigt input"}}};function hR(){return{localeError:pR()}}var vR=()=>{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 n(i){return e[i]??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"},a={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ungültige Eingabe: erwartet instanceof ${i.expected}, erhalten ${u}`:`Ungültige Eingabe: erwartet ${o}, erhalten ${u}`}case"invalid_value":return i.values.length===1?`Ungültige Eingabe: erwartet ${X(i.values[0])}`:`Ungültige Option: erwartet eine von ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Zu groß: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ist`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ist`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${r[o.format]??i.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${D(i.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${i.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${i.origin}`;default:return"Ungültige Eingabe"}}};function gR(){return{localeError:vR()}}var bR=()=>{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 n(i){return e[i]??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"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return`Invalid input: expected ${o}, received ${u}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${X(i.values[0])}`:`Invalid option: expected one of ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function h1(){return{localeError:bR()}}var _R=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(i){return e[i]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendiĝis instanceof ${i.expected}, riceviĝis ${u}`:`Nevalida enigo: atendiĝis ${o}, riceviĝis ${u}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${X(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Tro malgranda: atendiĝis ke ${i.origin} havu ${o}${i.minimum.toString()} ${s.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function yR(){return{localeError:_R()}}var $R=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(i){return e[i]??null}let r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Entrada inválida: se esperaba instanceof ${i.expected}, recibido ${u}`:`Entrada inválida: se esperaba ${o}, recibido ${u}`}case"invalid_value":return i.values.length===1?`Entrada inválida: se esperaba ${X(i.values[0])}`:`Opción inválida: se esperaba una de ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin),u=a[i.origin]??i.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${o}${i.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin),u=a[i.origin]??i.origin;return s?`Demasiado pequeño: se esperaba que ${u} tuviera ${o}${i.minimum.toString()} ${s.unit}`:`Demasiado pequeño: se esperaba que ${u} fuera ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${r[o.format]??i.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Llave inválida en ${a[i.origin]??i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${a[i.origin]??i.origin}`;default:return"Entrada inválida"}}};function kR(){return{localeError:$R()}}var wR=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function n(i){return e[i]??null}let r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},a={nan:"NaN",number:"عدد",array:"آرایه"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ورودی نامعتبر: میبایست instanceof ${i.expected} میبود، ${u} دریافت شد`:`ورودی نامعتبر: میبایست ${o} میبود، ${u} دریافت شد`}case"invalid_value":return i.values.length===1?`ورودی نامعتبر: میبایست ${X(i.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${D(i.values,"|")} میبود`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`خیلی بزرگ: ${i.origin??"مقدار"} باید ${o}${i.maximum.toString()} ${s.unit??"عنصر"} باشد`:`خیلی بزرگ: ${i.origin??"مقدار"} باید ${o}${i.maximum.toString()} باشد`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`خیلی کوچک: ${i.origin} باید ${o}${i.minimum.toString()} ${s.unit} باشد`:`خیلی کوچک: ${i.origin} باید ${o}${i.minimum.toString()} باشد`}case"invalid_format":{let o=i;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${r[o.format]??i.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${i.divisor} باشد`;case"unrecognized_keys":return`کلید${i.keys.length>1?"های":""} ناشناس: ${D(i.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${i.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${i.origin}`;default:return"ورودی نامعتبر"}}};function xR(){return{localeError:wR()}}var IR=()=>{let e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function n(i){return e[i]??null}let r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${u}`}case"invalid_value":return i.values.length===1?`Virheellinen syöte: täytyy olla ${X(i.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Liian suuri: ${s.subject} täytyy olla ${o}${i.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Liian pieni: ${s.subject} täytyy olla ${o}${i.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${D(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function SR(){return{localeError:IR()}}var zR=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(i){return e[i]??null}let r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},a={nan:"NaN",number:"nombre",array:"tableau"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Entrée invalide : instanceof ${i.expected} attendu, ${u} reçu`:`Entrée invalide : ${o} attendu, ${u} reçu`}case"invalid_value":return i.values.length===1?`Entrée invalide : ${X(i.values[0])} attendu`:`Option invalide : une valeur parmi ${D(i.values,"|")} attendue`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Trop grand : ${i.origin??"valeur"} doit ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"élément(s)"}`:`Trop grand : ${i.origin??"valeur"} doit être ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Trop petit : ${i.origin} doit ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Trop petit : ${i.origin} doit être ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${r[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${D(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function OR(){return{localeError:zR()}}var PR=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(i){return e[i]??null}let r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Entrée invalide : attendu instanceof ${i.expected}, reçu ${u}`:`Entrée invalide : attendu ${o}, reçu ${u}`}case"invalid_value":return i.values.length===1?`Entrée invalide : attendu ${X(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"≤":"<",s=n(i.origin);return s?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${o}${i.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"≥":">",s=n(i.origin);return s?`Trop petit : attendu que ${i.origin} ait ${o}${i.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${i.origin} soit ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${D(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function UR(){return{localeError:PR()}}var NR=()=>{let e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},n={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=c=>c?e[c]:void 0,a=c=>{let d=r(c);return d?d.label:c??e.unknown.label},i=c=>`ה${a(c)}`,o=c=>{var d;return(((d=r(c))==null?void 0:d.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},s=c=>c?n[c]??null:null,u={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",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:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},l={nan:"NaN"};return c=>{var d;switch(c.code){case"invalid_type":{let f=c.expected,m=l[f??""]??a(f),p=ee(c.input),h=l[p]??((d=e[p])==null?void 0:d.label)??p;return/^[A-Z]/.test(c.expected)?`קלט לא תקין: צריך להיות instanceof ${c.expected}, התקבל ${h}`:`קלט לא תקין: צריך להיות ${m}, התקבל ${h}`}case"invalid_value":{if(c.values.length===1)return`ערך לא תקין: הערך חייב להיות ${X(c.values[0])}`;let f=c.values.map(p=>X(p));if(c.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${f[0]} או ${f[1]}`;let m=f[f.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${f.slice(0,-1).join(", ")} או ${m}`}case"too_big":{let f=s(c.origin),m=i(c.origin??"value");if(c.origin==="string")return`${(f==null?void 0:f.longLabel)??"ארוך"} מדי: ${m} צריכה להכיל ${c.maximum.toString()} ${(f==null?void 0:f.unit)??""} ${c.inclusive?"או פחות":"לכל היותר"}`.trim();if(c.origin==="number"){let g=c.inclusive?`קטן או שווה ל-${c.maximum}`:`קטן מ-${c.maximum}`;return`גדול מדי: ${m} צריך להיות ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"צריכה":"צריך",b=c.inclusive?`${c.maximum} ${(f==null?void 0:f.unit)??""} או פחות`:`פחות מ-${c.maximum} ${(f==null?void 0:f.unit)??""}`;return`גדול מדי: ${m} ${g} להכיל ${b}`.trim()}let p=c.inclusive?"<=":"<",h=o(c.origin??"value");return f!=null&&f.unit?`${f.longLabel} מדי: ${m} ${h} ${p}${c.maximum.toString()} ${f.unit}`:`${(f==null?void 0:f.longLabel)??"גדול"} מדי: ${m} ${h} ${p}${c.maximum.toString()}`}case"too_small":{let f=s(c.origin),m=i(c.origin??"value");if(c.origin==="string")return`${(f==null?void 0:f.shortLabel)??"קצר"} מדי: ${m} צריכה להכיל ${c.minimum.toString()} ${(f==null?void 0:f.unit)??""} ${c.inclusive?"או יותר":"לפחות"}`.trim();if(c.origin==="number"){let g=c.inclusive?`גדול או שווה ל-${c.minimum}`:`גדול מ-${c.minimum}`;return`קטן מדי: ${m} צריך להיות ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"צריכה":"צריך";if(c.minimum===1&&c.inclusive){let v=(c.origin==="set","לפחות פריט אחד");return`קטן מדי: ${m} ${g} להכיל ${v}`}let b=c.inclusive?`${c.minimum} ${(f==null?void 0:f.unit)??""} או יותר`:`יותר מ-${c.minimum} ${(f==null?void 0:f.unit)??""}`;return`קטן מדי: ${m} ${g} להכיל ${b}`.trim()}let p=c.inclusive?">=":">",h=o(c.origin??"value");return f!=null&&f.unit?`${f.shortLabel} מדי: ${m} ${h} ${p}${c.minimum.toString()} ${f.unit}`:`${(f==null?void 0:f.shortLabel)??"קטן"} מדי: ${m} ${h} ${p}${c.minimum.toString()}`}case"invalid_format":{let f=c;if(f.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${f.prefix}"`;if(f.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${f.suffix}"`;if(f.format==="includes")return`המחרוזת חייבת לכלול "${f.includes}"`;if(f.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${f.pattern}`;let m=u[f.format],p=(m==null?void 0:m.label)??f.format,h=((m==null?void 0:m.gender)??"m")==="f"?"תקינה":"תקין";return`${p} לא ${h}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${c.divisor}`;case"unrecognized_keys":return`מפתח${c.keys.length>1?"ות":""} לא מזוה${c.keys.length>1?"ים":"ה"}: ${D(c.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${i(c.origin??"array")}`;default:return"קלט לא תקין"}}};function jR(){return{localeError:NR()}}var TR=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(i){return e[i]??null}let r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},a={nan:"NaN",number:"szám",array:"tömb"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Érvénytelen bemenet: a várt érték instanceof ${i.expected}, a kapott érték ${u}`:`Érvénytelen bemenet: a várt érték ${o}, a kapott érték ${u}`}case"invalid_value":return i.values.length===1?`Érvénytelen bemenet: a várt érték ${X(i.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Túl nagy: ${i.origin??"érték"} mérete túl nagy ${o}${i.maximum.toString()} ${s.unit??"elem"}`:`Túl nagy: a bemeneti érték ${i.origin??"érték"} túl nagy: ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Túl kicsi: a bemeneti érték ${i.origin} mérete túl kicsi ${o}${i.minimum.toString()} ${s.unit}`:`Túl kicsi: a bemeneti érték ${i.origin} túl kicsi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[o.format]??i.format}`}case"not_multiple_of":return`Érvénytelen szám: ${i.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${i.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${i.origin}`;default:return"Érvénytelen bemenet"}}};function ER(){return{localeError:TR()}}function Tg(e,n,r){return Math.abs(e)===1?n:r}function wi(e){if(!e)return"";let n=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(n.includes(r)?"ն":"ը")}var ZR=()=>{let e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function n(i){return e[i]??null}let r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},a={nan:"NaN",number:"թիվ",array:"զանգված"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${i.expected}, ստացվել է ${u}`:`Սխալ մուտքագրում․ սպասվում էր ${o}, ստացվել է ${u}`}case"invalid_value":return i.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${X(i.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);if(s){let u=Number(i.maximum),l=Tg(u,s.unit.one,s.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${wi(i.origin??"արժեք")} կունենա ${o}${i.maximum.toString()} ${l}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${wi(i.origin??"արժեք")} լինի ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);if(s){let u=Number(i.minimum),l=Tg(u,s.unit.one,s.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${wi(i.origin)} կունենա ${o}${i.minimum.toString()} ${l}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${wi(i.origin)} լինի ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${o.prefix}"-ով`:o.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${o.suffix}"-ով`:o.format==="includes"?`Սխալ տող․ պետք է պարունակի "${o.includes}"`:o.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${o.pattern} ձևաչափին`:`Սխալ ${r[o.format]??i.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${i.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${i.keys.length>1?"ներ":""}. ${D(i.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${wi(i.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${wi(i.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function DR(){return{localeError:ZR()}}var AR=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(i){return e[i]??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"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${o}, diterima ${u}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${X(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${o}${i.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Terlalu kecil: diharapkan ${i.origin} memiliki ${o}${i.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function CR(){return{localeError:AR()}}var RR=()=>{let e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function n(i){return e[i]??null}let r={regex:"gildi",email:"netfang",url:"vefslóð",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ími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",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ölugildi",jwt:"JWT",template_literal:"gildi"},a={nan:"NaN",number:"númer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Rangt gildi: Þú slóst inn ${u} þar sem á að vera instanceof ${i.expected}`:`Rangt gildi: Þú slóst inn ${u} þar sem á að vera ${o}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${X(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${o}${i.maximum.toString()} ${s.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${o}${i.minimum.toString()} ${s.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ógildur strengur: verður að byrja á "${o.prefix}"`:o.format==="ends_with"?`Ógildur strengur: verður að enda á "${o.suffix}"`:o.format==="includes"?`Ógildur strengur: verður að innihalda "${o.includes}"`:o.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${D(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function MR(){return{localeError:RR()}}var LR=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${u}`:`Input non valido: atteso ${o}, ricevuto ${u}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${X(i.values[0])}`:`Opzione non valida: atteso uno tra ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Troppo grande: ${i.origin??"valore"} deve avere ${o}${i.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Troppo piccolo: ${i.origin} deve avere ${o}${i.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${i.origin} deve essere ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${D(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function FR(){return{localeError:LR()}}var JR=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function n(i){return e[i]??null}let r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},a={nan:"NaN",number:"数値",array:"配列"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`無効な入力: instanceof ${i.expected}が期待されましたが、${u}が入力されました`:`無効な入力: ${o}が期待されましたが、${u}が入力されました`}case"invalid_value":return i.values.length===1?`無効な入力: ${X(i.values[0])}が期待されました`:`無効な選択: ${D(i.values,"、")}のいずれかである必要があります`;case"too_big":{let o=i.inclusive?"以下である":"より小さい",s=n(i.origin);return s?`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${s.unit??"要素"}${o}必要があります`:`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${o}必要があります`}case"too_small":{let o=i.inclusive?"以上である":"より大きい",s=n(i.origin);return s?`小さすぎる値: ${i.origin}は${i.minimum.toString()}${s.unit}${o}必要があります`:`小さすぎる値: ${i.origin}は${i.minimum.toString()}${o}必要があります`}case"invalid_format":{let o=i;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${r[o.format]??i.format}`}case"not_multiple_of":return`無効な数値: ${i.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${i.keys.length>1?"群":""}: ${D(i.keys,"、")}`;case"invalid_key":return`${i.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${i.origin}内の無効な値`;default:return"無効な入力"}}};function qR(){return{localeError:JR()}}var VR=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function n(i){return e[i]??null}let r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},a={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${i.expected}, მიღებული ${u}`:`არასწორი შეყვანა: მოსალოდნელი ${o}, მიღებული ${u}`}case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${X(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${D(i.values,"|")}-დან`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${o.prefix}"-ით`:o.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${o.suffix}"-ით`:o.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${o.includes}"-ს`:o.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${o.pattern}`:`არასწორი ${r[o.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${D(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function WR(){return{localeError:VR()}}var HR=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function n(i){return e[i]??null}let r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},a={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${i.expected} ប៉ុន្តែទទួលបាន ${u}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o} ប៉ុន្តែទទួលបាន ${u}`}case"invalid_value":return i.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${X(i.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${o} ${i.maximum.toString()} ${s.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`តូចពេក៖ ត្រូវការ ${i.origin} ${o} ${i.minimum.toString()} ${s.unit}`:`តូចពេក៖ ត្រូវការ ${i.origin} ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[o.format]??i.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${i.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${D(i.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function v1(){return{localeError:HR()}}function GR(){return v1()}var BR=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function n(i){return e[i]??null}let r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`잘못된 입력: 예상 타입은 instanceof ${i.expected}, 받은 타입은 ${u}입니다`:`잘못된 입력: 예상 타입은 ${o}, 받은 타입은 ${u}입니다`}case"invalid_value":return i.values.length===1?`잘못된 입력: 값은 ${X(i.values[0])} 이어야 합니다`:`잘못된 옵션: ${D(i.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let o=i.inclusive?"이하":"미만",s=o==="미만"?"이어야 합니다":"여야 합니다",u=n(i.origin),l=(u==null?void 0:u.unit)??"요소";return u?`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()}${l} ${o}${s}`:`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()} ${o}${s}`}case"too_small":{let o=i.inclusive?"이상":"초과",s=o==="이상"?"이어야 합니다":"여야 합니다",u=n(i.origin),l=(u==null?void 0:u.unit)??"요소";return u?`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()}${l} ${o}${s}`:`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()} ${o}${s}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[o.format]??i.format}`}case"not_multiple_of":return`잘못된 숫자: ${i.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${D(i.keys,", ")}`;case"invalid_key":return`잘못된 키: ${i.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${i.origin}`;default:return"잘못된 입력"}}};function KR(){return{localeError:BR()}}var br=e=>e.charAt(0).toUpperCase()+e.slice(1);function Eg(e){let n=Math.abs(e),r=n%10,a=n%100;return a>=11&&a<=19||r===0?"many":r===1?"one":"few"}var XR=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function n(i,o,s,u){let l=e[i]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[u][s?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. pašto 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ė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},a={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${u}, o tikėtasi - instanceof ${i.expected}`:`Gautas tipas ${u}, o tikėtasi - ${o}`}case"invalid_value":return i.values.length===1?`Privalo būti ${X(i.values[0])}`:`Privalo būti vienas iš ${D(i.values,"|")} pasirinkimų`;case"too_big":{let o=a[i.origin]??i.origin,s=n(i.origin,Eg(Number(i.maximum)),i.inclusive??!1,"smaller");if(s!=null&&s.verb)return`${br(o??i.origin??"reikšmė")} ${s.verb} ${i.maximum.toString()} ${s.unit??"elementų"}`;let u=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${br(o??i.origin??"reikšmė")} turi būti ${u} ${i.maximum.toString()} ${s==null?void 0:s.unit}`}case"too_small":{let o=a[i.origin]??i.origin,s=n(i.origin,Eg(Number(i.minimum)),i.inclusive??!1,"bigger");if(s!=null&&s.verb)return`${br(o??i.origin??"reikšmė")} ${s.verb} ${i.minimum.toString()} ${s.unit??"elementų"}`;let u=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${br(o??i.origin??"reikšmė")} turi būti ${u} ${i.minimum.toString()} ${s==null?void 0:s.unit}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Eilutė privalo prasidėti "${o.prefix}"`:o.format==="ends_with"?`Eilutė privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilutė privalo įtraukti "${o.includes}"`:o.format==="regex"?`Eilutė privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${D(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let o=a[i.origin]??i.origin;return`${br(o??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function YR(){return{localeError:XR()}}var QR=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function n(i){return e[i]??null}let r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},a={nan:"NaN",number:"број",array:"низа"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Грешен внес: се очекува instanceof ${i.expected}, примено ${u}`:`Грешен внес: се очекува ${o}, примено ${u}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${X(i.values[0])}`:`Грешана опција: се очекува една ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Премногу голем: се очекува ${i.origin??"вредноста"} да има ${o}${i.maximum.toString()} ${s.unit??"елементи"}`:`Премногу голем: се очекува ${i.origin??"вредноста"} да биде ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Премногу мал: се очекува ${i.origin} да има ${o}${i.minimum.toString()} ${s.unit}`:`Премногу мал: се очекува ${i.origin} да биде ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${D(i.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${i.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${i.origin}`;default:return"Грешен внес"}}};function eM(){return{localeError:QR()}}var tM=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${u}`:`Input tidak sah: dijangka ${o}, diterima ${u}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${X(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Terlalu besar: dijangka ${i.origin??"nilai"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Terlalu kecil: dijangka ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${D(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function nM(){return{localeError:tM()}}var iM=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${o}, ontving ${u}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${X(i.values[0])}`:`Ongeldige optie: verwacht één van ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin),u=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} is`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin),u=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} is`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function rM(){return{localeError:iM()}}var aM=()=>{let e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function n(i){return e[i]??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åde",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${u}`:`Ugyldig input: forventet ${o}, fikk ${u}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${X(i.values[0])}`:`Ugyldig valg: forventet en av ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`For stor(t): forventet ${i.origin??"value"} til å ha ${o}${i.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til å ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`For lite(n): forventet ${i.origin} til å ha ${o}${i.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${i.origin} til å ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${D(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function oM(){return{localeError:aM()}}var sM=()=>{let e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function n(i){return e[i]??null}let r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Fâsit giren: umulan instanceof ${i.expected}, alınan ${u}`:`Fâsit giren: umulan ${o}, alınan ${u}`}case"invalid_value":return i.values.length===1?`Fâsit giren: umulan ${X(i.values[0])}`:`Fâsit tercih: mûteberler ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Fazla büyük: ${i.origin??"value"}, ${o}${i.maximum.toString()} ${s.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${i.origin??"value"}, ${o}${i.maximum.toString()} olmalıydı.`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Fazla küçük: ${i.origin}, ${o}${i.minimum.toString()} ${s.unit} sahip olmalıydı.`:`Fazla küçük: ${i.origin}, ${o}${i.minimum.toString()} olmalıydı.`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${r[o.format]??i.format}`}case"not_multiple_of":return`Fâsit sayı: ${i.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`${i.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${i.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function uM(){return{localeError:sM()}}var lM=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function n(i){return e[i]??null}let r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},a={nan:"NaN",number:"عدد",array:"ارې"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ناسم ورودي: باید instanceof ${i.expected} وای, مګر ${u} ترلاسه شو`:`ناسم ورودي: باید ${o} وای, مګر ${u} ترلاسه شو`}case"invalid_value":return i.values.length===1?`ناسم ورودي: باید ${X(i.values[0])} وای`:`ناسم انتخاب: باید یو له ${D(i.values,"|")} څخه وای`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`ډیر لوی: ${i.origin??"ارزښت"} باید ${o}${i.maximum.toString()} ${s.unit??"عنصرونه"} ولري`:`ډیر لوی: ${i.origin??"ارزښت"} باید ${o}${i.maximum.toString()} وي`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`ډیر کوچنی: ${i.origin} باید ${o}${i.minimum.toString()} ${s.unit} ولري`:`ډیر کوچنی: ${i.origin} باید ${o}${i.minimum.toString()} وي`}case"invalid_format":{let o=i;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${r[o.format]??i.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${i.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${i.keys.length>1?"کلیډونه":"کلیډ"}: ${D(i.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${i.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${i.origin} کې`;default:return"ناسمه ورودي"}}};function cM(){return{localeError:lM()}}var dM=()=>{let e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function n(i){return e[i]??null}let r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},a={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${i.expected}, otrzymano ${u}`:`Nieprawidłowe dane wejściowe: oczekiwano ${o}, otrzymano ${u}`}case"invalid_value":return i.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${X(i.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Za duża wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${o}${i.maximum.toString()} ${s.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Za mała wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${o}${i.minimum.toString()} ${s.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${r[o.format]??i.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${i.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${i.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function fM(){return{localeError:dM()}}var mM=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(i){return e[i]??null}let r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",number:"número",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Tipo inválido: esperado instanceof ${i.expected}, recebido ${u}`:`Tipo inválido: esperado ${o}, recebido ${u}`}case"invalid_value":return i.values.length===1?`Entrada inválida: esperado ${X(i.values[0])}`:`Opção inválida: esperada uma das ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${o}${i.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Muito pequeno: esperado que ${i.origin} tivesse ${o}${i.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${r[o.format]??i.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Chave inválida em ${i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${i.origin}`;default:return"Campo inválido"}}};function pM(){return{localeError:mM()}}function Zg(e,n,r,a){let i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?a:o===1?n:o>=2&&o<=4?r:a}var hM=()=>{let e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function n(i){return e[i]??null}let r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},a={nan:"NaN",number:"число",array:"массив"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Неверный ввод: ожидалось instanceof ${i.expected}, получено ${u}`:`Неверный ввод: ожидалось ${o}, получено ${u}`}case"invalid_value":return i.values.length===1?`Неверный ввод: ожидалось ${X(i.values[0])}`:`Неверный вариант: ожидалось одно из ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);if(s){let u=Number(i.maximum),l=Zg(u,s.unit.one,s.unit.few,s.unit.many);return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет иметь ${o}${i.maximum.toString()} ${l}`}return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);if(s){let u=Number(i.minimum),l=Zg(u,s.unit.one,s.unit.few,s.unit.many);return`Слишком маленькое значение: ожидалось, что ${i.origin} будет иметь ${o}${i.minimum.toString()} ${l}`}return`Слишком маленькое значение: ожидалось, что ${i.origin} будет ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${r[o.format]??i.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспознанн${i.keys.length>1?"ые":"ый"} ключ${i.keys.length>1?"и":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${i.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${i.origin}`;default:return"Неверные входные данные"}}};function vM(){return{localeError:hM()}}var gM=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(i){return e[i]??null}let r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},a={nan:"NaN",number:"število",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pričakovano instanceof ${i.expected}, prejeto ${u}`:`Neveljaven vnos: pričakovano ${o}, prejeto ${u}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pričakovano ${X(i.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} imelo ${o}${i.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Premajhno: pričakovano, da bo ${i.origin} imelo ${o}${i.minimum.toString()} ${s.unit}`:`Premajhno: pričakovano, da bo ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??i.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i ključi":" ključ"}: ${D(i.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function bM(){return{localeError:gM()}}var _M=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function n(i){return e[i]??null}let r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},a={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: förväntat instanceof ${i.expected}, fick ${u}`:`Ogiltig inmatning: förväntat ${o}, fick ${u}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: förväntat ${X(i.values[0])}`:`Ogiltigt val: förväntade en av ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`För stor(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.maximum.toString()} ${s.unit??"element"}`:`För stor(t): förväntat ${i.origin??"värdet"} att ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`För lite(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.minimum.toString()} ${s.unit}`:`För lite(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${D(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${i.origin??"värdet"}`;default:return"Ogiltig input"}}};function yM(){return{localeError:_M()}}var $M=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function n(i){return e[i]??null}let r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${i.expected}, பெறப்பட்டது ${u}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${o}, பெறப்பட்டது ${u}`}case"invalid_value":return i.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${X(i.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${D(i.values,"|")} இல் ஒன்று`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${o}${i.maximum.toString()} ${s.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${o}${i.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${o}${i.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let o=i;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[o.format]??i.format}`}case"not_multiple_of":return`தவறான எண்: ${i.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${i.keys.length>1?"கள்":""}: ${D(i.keys,", ")}`;case"invalid_key":return`${i.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${i.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function kM(){return{localeError:$M()}}var wM=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function n(i){return e[i]??null}let r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},a={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${i.expected} แต่ได้รับ ${u}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${o} แต่ได้รับ ${u}`}case"invalid_value":return i.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${X(i.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"ไม่เกิน":"น้อยกว่า",s=n(i.origin);return s?`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${o} ${i.maximum.toString()} ${s.unit??"รายการ"}`:`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"อย่างน้อย":"มากกว่า",s=n(i.origin);return s?`น้อยกว่ากำหนด: ${i.origin} ควรมี${o} ${i.minimum.toString()} ${s.unit}`:`น้อยกว่ากำหนด: ${i.origin} ควรมี${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[o.format]??i.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${i.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${D(i.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${i.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${i.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function xM(){return{localeError:wM()}}var IM=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function n(i){return e[i]??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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Geçersiz değer: beklenen instanceof ${i.expected}, alınan ${u}`:`Geçersiz değer: beklenen ${o}, alınan ${u}`}case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${X(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Çok büyük: beklenen ${i.origin??"değer"} ${o}${i.maximum.toString()} ${s.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Çok küçük: beklenen ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`Çok küçük: beklenen ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Geçersiz metin: "${o.prefix}" ile başlamalı`:o.format==="ends_with"?`Geçersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Geçersiz metin: "${o.includes}" içermeli`:o.format==="regex"?`Geçersiz metin: ${o.pattern} desenine uymalı`:`Geçersiz ${r[o.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${D(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function SM(){return{localeError:IM()}}var zM=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function n(i){return e[i]??null}let r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},a={nan:"NaN",number:"число",array:"масив"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Неправильні вхідні дані: очікується instanceof ${i.expected}, отримано ${u}`:`Неправильні вхідні дані: очікується ${o}, отримано ${u}`}case"invalid_value":return i.values.length===1?`Неправильні вхідні дані: очікується ${X(i.values[0])}`:`Неправильна опція: очікується одне з ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Занадто велике: очікується, що ${i.origin??"значення"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"елементів"}`:`Занадто велике: очікується, що ${i.origin??"значення"} буде ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Занадто мале: очікується, що ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Занадто мале: очікується, що ${i.origin} буде ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${r[o.format]??i.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${i.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${i.keys.length>1?"і":""}: ${D(i.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${i.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${i.origin}`;default:return"Неправильні вхідні дані"}}};function g1(){return{localeError:zM()}}function OM(){return g1()}var PM=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function n(i){return e[i]??null}let r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},a={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`غلط ان پٹ: instanceof ${i.expected} متوقع تھا، ${u} موصول ہوا`:`غلط ان پٹ: ${o} متوقع تھا، ${u} موصول ہوا`}case"invalid_value":return i.values.length===1?`غلط ان پٹ: ${X(i.values[0])} متوقع تھا`:`غلط آپشن: ${D(i.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`بہت بڑا: ${i.origin??"ویلیو"} کے ${o}${i.maximum.toString()} ${s.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${i.origin??"ویلیو"} کا ${o}${i.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`بہت چھوٹا: ${i.origin} کے ${o}${i.minimum.toString()} ${s.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${i.origin} کا ${o}${i.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let o=i;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${r[o.format]??i.format}`}case"not_multiple_of":return`غلط نمبر: ${i.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${i.keys.length>1?"ز":""}: ${D(i.keys,"، ")}`;case"invalid_key":return`${i.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${i.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function UM(){return{localeError:PM()}}var NM=()=>{let e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${u}`:`Noto‘g‘ri kirish: kutilgan ${o}, qabul qilingan ${u}`}case"invalid_value":return i.values.length===1?`Noto‘g‘ri kirish: kutilgan ${X(i.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Noto‘g‘ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto‘g‘ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto‘g‘ri satr: "${o.includes}" ni o‘z ichiga olishi kerak`:o.format==="regex"?`Noto‘g‘ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[o.format]??i.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${i.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${i.keys.length>1?"lar":""}: ${D(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${i.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function jM(){return{localeError:NM()}}var TM=()=>{let e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function n(i){return e[i]??null}let r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},a={nan:"NaN",number:"số",array:"mảng"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${i.expected}, nhận được ${u}`:`Đầu vào không hợp lệ: mong đợi ${o}, nhận được ${u}`}case"invalid_value":return i.values.length===1?`Đầu vào không hợp lệ: mong đợi ${X(i.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Quá lớn: mong đợi ${i.origin??"giá trị"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"phần tử"}`:`Quá lớn: mong đợi ${i.origin??"giá trị"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Quá nhỏ: mong đợi ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Quá nhỏ: mong đợi ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${r[o.format]??i.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${i.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${D(i.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${i.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${i.origin}`;default:return"Đầu vào không hợp lệ"}}};function EM(){return{localeError:TM()}}var ZM=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function n(i){return e[i]??null}let r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},a={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`无效输入:期望 instanceof ${i.expected},实际接收 ${u}`:`无效输入:期望 ${o},实际接收 ${u}`}case"invalid_value":return i.values.length===1?`无效输入:期望 ${X(i.values[0])}`:`无效选项:期望以下之一 ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`数值过大:期望 ${i.origin??"值"} ${o}${i.maximum.toString()} ${s.unit??"个元素"}`:`数值过大:期望 ${i.origin??"值"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`数值过小:期望 ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`数值过小:期望 ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${r[o.format]??i.format}`}case"not_multiple_of":return`无效数字:必须是 ${i.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${D(i.keys,", ")}`;case"invalid_key":return`${i.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${i.origin} 中包含无效值(value)`;default:return"无效输入"}}};function DM(){return{localeError:ZM()}}var AM=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function n(i){return e[i]??null}let r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`無效的輸入值:預期為 instanceof ${i.expected},但收到 ${u}`:`無效的輸入值:預期為 ${o},但收到 ${u}`}case"invalid_value":return i.values.length===1?`無效的輸入值:預期為 ${X(i.values[0])}`:`無效的選項:預期為以下其中之一 ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`數值過大:預期 ${i.origin??"值"} 應為 ${o}${i.maximum.toString()} ${s.unit??"個元素"}`:`數值過大:預期 ${i.origin??"值"} 應為 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`數值過小:預期 ${i.origin} 應為 ${o}${i.minimum.toString()} ${s.unit}`:`數值過小:預期 ${i.origin} 應為 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${r[o.format]??i.format}`}case"not_multiple_of":return`無效的數字:必須為 ${i.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${i.keys.length>1?"們":""}:${D(i.keys,"、")}`;case"invalid_key":return`${i.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${i.origin} 中有無效的值`;default:return"無效的輸入值"}}};function CM(){return{localeError:AM()}}var RM=()=>{let e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function n(i){return e[i]??null}let r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},a={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=ee(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${i.expected}, àmọ̀ a rí ${u}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${o}, àmọ̀ a rí ${u}`}case"invalid_value":return i.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${X(i.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${D(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Tó pọ̀ jù: a ní láti jẹ́ pé ${i.origin??"iye"} ${s.verb} ${o}${i.maximum} ${s.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${i.maximum}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Kéré ju: a ní láti jẹ́ pé ${i.origin} ${s.verb} ${o}${i.minimum} ${s.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${i.minimum}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${r[o.format]??i.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${i.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${D(i.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${i.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${i.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function MM(){return{localeError:RM()}}var Dg,b1=Symbol("ZodOutput"),_1=Symbol("ZodInput");let y1=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){let a=r[0];return this._map.set(n,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){let r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){let r=n._zod.parent;if(r){let a={...this.get(r)??{}};delete a.id;let i={...a,...this._map.get(n)};return Object.keys(i).length?i:void 0}return this._map.get(n)}has(n){return this._map.has(n)}};function of(){return new y1}(Dg=globalThis).__zod_globalRegistry??(Dg.__zod_globalRegistry=of());var zt=globalThis.__zod_globalRegistry;function $1(e,n){return new e({type:"string",...C(n)})}function k1(e,n){return new e({type:"string",coerce:!0,...C(n)})}function sf(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...C(n)})}function ds(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...C(n)})}function uf(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...C(n)})}function lf(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...C(n)})}function cf(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...C(n)})}function df(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...C(n)})}function Ws(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...C(n)})}function ff(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...C(n)})}function mf(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...C(n)})}function pf(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...C(n)})}function hf(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...C(n)})}function vf(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...C(n)})}function gf(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...C(n)})}function bf(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...C(n)})}function _f(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...C(n)})}function yf(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...C(n)})}function w1(e,n){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...C(n)})}function $f(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...C(n)})}function kf(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...C(n)})}function wf(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...C(n)})}function xf(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...C(n)})}function If(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...C(n)})}function Sf(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...C(n)})}var x1={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function I1(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...C(n)})}function S1(e,n){return new e({type:"string",format:"date",check:"string_format",...C(n)})}function z1(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(n)})}function O1(e,n){return new e({type:"string",format:"duration",check:"string_format",...C(n)})}function P1(e,n){return new e({type:"number",checks:[],...C(n)})}function U1(e,n){return new e({type:"number",coerce:!0,checks:[],...C(n)})}function N1(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...C(n)})}function j1(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...C(n)})}function T1(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...C(n)})}function E1(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...C(n)})}function Z1(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...C(n)})}function D1(e,n){return new e({type:"boolean",...C(n)})}function A1(e,n){return new e({type:"boolean",coerce:!0,...C(n)})}function C1(e,n){return new e({type:"bigint",...C(n)})}function R1(e,n){return new e({type:"bigint",coerce:!0,...C(n)})}function M1(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...C(n)})}function L1(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...C(n)})}function F1(e,n){return new e({type:"symbol",...C(n)})}function J1(e,n){return new e({type:"undefined",...C(n)})}function q1(e,n){return new e({type:"null",...C(n)})}function V1(e){return new e({type:"any"})}function W1(e){return new e({type:"unknown"})}function H1(e,n){return new e({type:"never",...C(n)})}function G1(e,n){return new e({type:"void",...C(n)})}function B1(e,n){return new e({type:"date",...C(n)})}function K1(e,n){return new e({type:"date",coerce:!0,...C(n)})}function X1(e,n){return new e({type:"nan",...C(n)})}function An(e,n){return new Bd({check:"less_than",...C(n),value:e,inclusive:!1})}function Pt(e,n){return new Bd({check:"less_than",...C(n),value:e,inclusive:!0})}function Cn(e,n){return new Kd({check:"greater_than",...C(n),value:e,inclusive:!1})}function lt(e,n){return new Kd({check:"greater_than",...C(n),value:e,inclusive:!0})}function zf(e){return Cn(0,e)}function Of(e){return An(0,e)}function Pf(e){return Pt(0,e)}function Uf(e){return lt(0,e)}function Fi(e,n){return new D$({check:"multiple_of",...C(n),value:e})}function ar(e,n){return new R$({check:"max_size",...C(n),maximum:e})}function Rn(e,n){return new M$({check:"min_size",...C(n),minimum:e})}function ka(e,n){return new L$({check:"size_equals",...C(n),size:e})}function wa(e,n){return new F$({check:"max_length",...C(n),maximum:e})}function li(e,n){return new J$({check:"min_length",...C(n),minimum:e})}function xa(e,n){return new q$({check:"length_equals",...C(n),length:e})}function Hs(e,n){return new V$({check:"string_format",format:"regex",...C(n),pattern:e})}function Gs(e){return new W$({check:"string_format",format:"lowercase",...C(e)})}function Bs(e){return new H$({check:"string_format",format:"uppercase",...C(e)})}function Ks(e,n){return new G$({check:"string_format",format:"includes",...C(n),includes:e})}function Xs(e,n){return new B$({check:"string_format",format:"starts_with",...C(n),prefix:e})}function Ys(e,n){return new K$({check:"string_format",format:"ends_with",...C(n),suffix:e})}function Nf(e,n,r){return new X$({check:"property",property:e,schema:n,...C(r)})}function Qs(e,n){return new Y$({check:"mime_type",mime:e,...C(n)})}function In(e){return new Q$({check:"overwrite",tx:e})}function eu(e){return In(n=>n.normalize(e))}function tu(){return In(e=>e.trim())}function nu(){return In(e=>e.toLowerCase())}function iu(){return In(e=>e.toUpperCase())}function ru(){return In(e=>Jy(e))}function Y1(e,n,r){return new e({type:"array",element:n,...C(r)})}function LM(e,n,r){return new e({type:"union",options:n,...C(r)})}function FM(e,n,r){return new e({type:"union",options:n,inclusive:!1,...C(r)})}function JM(e,n,r,a){return new e({type:"union",options:r,discriminator:n,...C(a)})}function qM(e,n,r){return new e({type:"intersection",left:n,right:r})}function VM(e,n,r,a){let i=r instanceof re;return new e({type:"tuple",items:n,rest:i?r:null,...C(i?a:r)})}function WM(e,n,r,a){return new e({type:"record",keyType:n,valueType:r,...C(a)})}function HM(e,n,r,a){return new e({type:"map",keyType:n,valueType:r,...C(a)})}function GM(e,n,r){return new e({type:"set",valueType:n,...C(r)})}function BM(e,n,r){let a=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:a,...C(r)})}function KM(e,n,r){return new e({type:"enum",entries:n,...C(r)})}function XM(e,n,r){return new e({type:"literal",values:Array.isArray(n)?n:[n],...C(r)})}function Q1(e,n){return new e({type:"file",...C(n)})}function YM(e,n){return new e({type:"transform",transform:n})}function QM(e,n){return new e({type:"optional",innerType:n})}function eL(e,n){return new e({type:"nullable",innerType:n})}function tL(e,n,r){return new e({type:"default",innerType:n,get defaultValue(){return typeof r=="function"?r():Vy(r)}})}function nL(e,n,r){return new e({type:"nonoptional",innerType:n,...C(r)})}function iL(e,n){return new e({type:"success",innerType:n})}function rL(e,n,r){return new e({type:"catch",innerType:n,catchValue:typeof r=="function"?r:()=>r})}function aL(e,n,r){return new e({type:"pipe",in:n,out:r})}function oL(e,n){return new e({type:"readonly",innerType:n})}function sL(e,n,r){return new e({type:"template_literal",parts:n,...C(r)})}function uL(e,n){return new e({type:"lazy",getter:n})}function lL(e,n){return new e({type:"promise",innerType:n})}function ek(e,n,r){let a=C(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:n,...a})}function tk(e,n,r){return new e({type:"custom",check:"custom",fn:n,...C(r)})}function nk(e){let n=ik(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(ls(a,r.value,n._zod.def));else{let i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(ls(i))}},e(r.value,r)));return n}function ik(e,n){let r=new Re({check:"custom",...C(n)});return r._zod.check=e,r}function rk(e){let n=new Re({check:"describe"});return n._zod.onattach=[r=>{let a=zt.get(r)??{};zt.add(r,{...a,description:e})}],n._zod.check=()=>{},n}function ak(e){let n=new Re({check:"meta"});return n._zod.onattach=[r=>{let a=zt.get(r)??{};zt.add(r,{...a,...e})}],n._zod.check=()=>{},n}function ok(e,n){let r=C(n),a=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(m=>typeof m=="string"?m.toLowerCase():m),i=i.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(a),s=new Set(i),u=e.Codec??rf,l=e.Boolean??Qd,c=new(e.String??$a)({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),f=new u({type:"pipe",in:c,out:d,transform:(m,p)=>{let h=m;return r.case!=="sensitive"&&(h=h.toLowerCase()),o.has(h)?!0:s.has(h)?!1:(p.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:p.value,inst:f,continue:!1}),{})},reverseTransform:(m,p)=>m===!0?a[0]||"true":i[0]||"false",error:r.error});return f}function Ia(e,n,r,a={}){let i=C(a),o={...C(a),check:"string_format",type:"string",format:n,fn:typeof r=="function"?r:s=>r.test(s),...i};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ji(e){let n=(e==null?void 0:e.target)??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??zt,target:n,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function ke(e,n,r={path:[],schemaPath:[]}){var c,d;var a;let i=e._zod.def,o=n.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,s);let u=(d=(c=e._zod).toJSONSchema)==null?void 0:d.call(c);if(u)s.schema=u;else{let f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,s.schema,f);else{let p=s.schema,h=n.processors[i.type];if(!h)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);h(e,n,p,f)}let m=e._zod.parent;m&&(s.ref||(s.ref=m),ke(m,n,f),n.seen.get(m).isParent=!0)}let l=n.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),n.io==="input"&&at(e)&&(delete s.schema.examples,delete s.schema.default),n.io==="input"&&s.schema._prefault&&((a=s.schema).default??(a.default=s.schema._prefault)),delete s.schema._prefault,n.seen.get(e).schema}function qi(e,n){var s,u,l,c;let r=e.seen.get(n);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let d of e.seen.entries()){let f=(s=e.metadataRegistry.get(d[0]))==null?void 0:s.id;if(f){let m=a.get(f);if(m&&m!==d[0])throw Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(f,d[0])}}let i=d=>{var h;let f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let g=(h=e.external.registry.get(d[0]))==null?void 0:h.id,b=e.external.uri??($=>$);if(g)return{ref:b(g)};let v=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=v,{defId:v,ref:`${b("__shared")}#/${f}/${v}`}}if(d[1]===r)return{ref:"#"};let m=`#/${f}/`,p=d[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:m+p}},o=d=>{if(d[1].schema.$ref)return;let f=d[1],{ref:m,defId:p}=i(d);f.def={...f.schema},p&&(f.defId=p);let h=f.schema;for(let g in h)delete h[g];h.$ref=m};if(e.cycles==="throw")for(let d of e.seen.entries()){let f=d[1];if(f.cycle)throw Error(`Cycle detected: #/${(u=f.cycle)==null?void 0:u.join("/")}/<root>
|
|
149
|
+
|
|
150
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let f=d[1];if(n===d[0]){o(d);continue}if(e.external){let m=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(n!==d[0]&&m){o(d);continue}}if((c=e.metadataRegistry.get(d[0]))!=null&&c.id){o(d);continue}if(f.cycle){o(d);continue}if(f.count>1&&e.reused==="ref"){o(d);continue}}}function Vi(e,n){var s,u,l;let r=e.seen.get(n);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=c=>{let d=e.seen.get(c);if(d.ref===null)return;let f=d.def??d.schema,m={...f},p=d.ref;if(d.ref=null,p){a(p);let g=e.seen.get(p),b=g.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(b)):Object.assign(f,b),Object.assign(f,m),c._zod.parent===p)for(let v in f)v==="$ref"||v==="allOf"||v in m||delete f[v];if(b.$ref)for(let v in f)v==="$ref"||v==="allOf"||v in g.def&&JSON.stringify(f[v])===JSON.stringify(g.def[v])&&delete f[v]}let h=c._zod.parent;if(h&&h!==p){a(h);let g=e.seen.get(h);if(g!=null&&g.schema.$ref&&(f.$ref=g.schema.$ref,g.def))for(let b in f)b==="$ref"||b==="allOf"||b in g.def&&JSON.stringify(f[b])===JSON.stringify(g.def[b])&&delete f[b]}e.override({zodSchema:c,jsonSchema:f,path:d.path??[]})};for(let c of[...e.seen.entries()].reverse())a(c[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(s=e.external)!=null&&s.uri){let c=(u=e.external.registry.get(n))==null?void 0:u.id;if(!c)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(c)}Object.assign(i,r.def??r.schema);let o=((l=e.external)==null?void 0:l.defs)??{};for(let c of e.seen.entries()){let d=c[1];d.def&&d.defId&&(o[d.defId]=d.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{let c=JSON.parse(JSON.stringify(i));return Object.defineProperty(c,"~standard",{value:{...n["~standard"],jsonSchema:{input:qr(n,"input",e.processors),output:qr(n,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw Error("Error converting schema to JSON.")}}function at(e,n){let r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return at(a.element,r);if(a.type==="set")return at(a.valueType,r);if(a.type==="lazy")return at(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return at(a.innerType,r);if(a.type==="intersection")return at(a.left,r)||at(a.right,r);if(a.type==="record"||a.type==="map")return at(a.keyType,r)||at(a.valueType,r);if(a.type==="pipe")return at(a.in,r)||at(a.out,r);if(a.type==="object"){for(let i in a.shape)if(at(a.shape[i],r))return!0;return!1}if(a.type==="union"){for(let i of a.options)if(at(i,r))return!0;return!1}if(a.type==="tuple"){for(let i of a.items)if(at(i,r))return!0;return!!(a.rest&&at(a.rest,r))}return!1}var sk=(e,n={})=>r=>{let a=Ji({...r,processors:n});return ke(e,a),qi(a,e),Vi(a,e)},qr=(e,n,r={})=>a=>{let{libraryOptions:i,target:o}=a??{},s=Ji({...i??{},target:o,io:n,processors:r});return ke(e,s),qi(s,e),Vi(s,e)},cL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},uk=(e,n,r,a)=>{let i=r;i.type="string";let{minimum:o,maximum:s,format:u,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=cL[u]??u,i.format===""&&delete i.format,u==="time"&&delete i.format),c&&(i.contentEncoding=c),l&&l.size>0){let d=[...l];d.length===1?i.pattern=d[0].source:d.length>1&&(i.allOf=[...d.map(f=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},lk=(e,n,r,a)=>{let i=r,{minimum:o,maximum:s,format:u,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof u=="string"&&u.includes("int")?i.type="integer":i.type="number",typeof d=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d),typeof o=="number"&&(i.minimum=o,typeof d=="number"&&n.target!=="draft-04"&&(d>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof c=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c),typeof s=="number"&&(i.maximum=s,typeof c=="number"&&n.target!=="draft-04"&&(c<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},ck=(e,n,r,a)=>{r.type="boolean"},dk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},fk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},mk=(e,n,r,a)=>{n.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},pk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},hk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},vk=(e,n,r,a)=>{r.not={}},gk=(e,n,r,a)=>{},bk=(e,n,r,a)=>{},_k=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},yk=(e,n,r,a)=>{let i=e._zod.def,o=Ed(i.entries);o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},$k=(e,n,r,a)=>{let i=e._zod.def,o=[];for(let s of i.values)if(s===void 0){if(n.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(n.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,n.target==="draft-04"||n.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},kk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},wk=(e,n,r,a)=>{let i=r,o=e._zod.pattern;if(!o)throw Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},xk=(e,n,r,a)=>{let i=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:l}=e._zod.bag;s!==void 0&&(o.minLength=s),u!==void 0&&(o.maxLength=u),l?l.length===1?(o.contentMediaType=l[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(i,o)},Ik=(e,n,r,a)=>{r.type="boolean"},Sk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},zk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},Ok=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},Pk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},Uk=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},Nk=(e,n,r,a)=>{let i=r,o=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=ke(o.element,n,{...a,path:[...a.path,"items"]})},jk=(e,n,r,a)=>{var c;let i=r,o=e._zod.def;i.type="object",i.properties={};let s=o.shape;for(let d in s)i.properties[d]=ke(s[d],n,{...a,path:[...a.path,"properties",d]});let u=new Set(Object.keys(s)),l=new Set([...u].filter(d=>{let f=o.shape[d]._zod;return n.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((c=o.catchall)==null?void 0:c._zod.def.type)==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=ke(o.catchall,n,{...a,path:[...a.path,"additionalProperties"]})):n.io==="output"&&(i.additionalProperties=!1)},jf=(e,n,r,a)=>{let i=e._zod.def,o=i.inclusive===!1,s=i.options.map((u,l)=>ke(u,n,{...a,path:[...a.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=s:r.anyOf=s},Tk=(e,n,r,a)=>{let i=e._zod.def,o=ke(i.left,n,{...a,path:[...a.path,"allOf",0]}),s=ke(i.right,n,{...a,path:[...a.path,"allOf",1]}),u=c=>"allOf"in c&&Object.keys(c).length===1,l=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];r.allOf=l},Ek=(e,n,r,a)=>{let i=r,o=e._zod.def;i.type="array";let s=n.target==="draft-2020-12"?"prefixItems":"items",u=n.target==="draft-2020-12"||n.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((m,p)=>ke(m,n,{...a,path:[...a.path,s,p]})),c=o.rest?ke(o.rest,n,{...a,path:[...a.path,u,...n.target==="openapi-3.0"?[o.items.length]:[]]}):null;n.target==="draft-2020-12"?(i.prefixItems=l,c&&(i.items=c)):n.target==="openapi-3.0"?(i.items={anyOf:l},c&&i.items.anyOf.push(c),i.minItems=l.length,!c&&(i.maxItems=l.length)):(i.items=l,c&&(i.additionalItems=c));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof f=="number"&&(i.maxItems=f)},Zk=(e,n,r,a)=>{var c;let i=r,o=e._zod.def;i.type="object";let s=o.keyType,u=(c=s._zod.bag)==null?void 0:c.patterns;if(o.mode==="loose"&&u&&u.size>0){let d=ke(o.valueType,n,{...a,path:[...a.path,"patternProperties","*"]});i.patternProperties={};for(let f of u)i.patternProperties[f.source]=d}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(i.propertyNames=ke(o.keyType,n,{...a,path:[...a.path,"propertyNames"]})),i.additionalProperties=ke(o.valueType,n,{...a,path:[...a.path,"additionalProperties"]});let l=s._zod.values;if(l){let d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(i.required=d)}},Dk=(e,n,r,a)=>{let i=e._zod.def,o=ke(i.innerType,n,a),s=n.seen.get(e);n.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Ak=(e,n,r,a)=>{let i=e._zod.def;ke(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType},Ck=(e,n,r,a)=>{let i=e._zod.def;ke(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},Rk=(e,n,r,a)=>{let i=e._zod.def;ke(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Mk=(e,n,r,a)=>{let i=e._zod.def;ke(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},Lk=(e,n,r,a)=>{let i=e._zod.def,o=n.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;ke(o,n,a);let s=n.seen.get(e);s.ref=o},Fk=(e,n,r,a)=>{let i=e._zod.def;ke(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType,r.readOnly=!0},Jk=(e,n,r,a)=>{let i=e._zod.def;ke(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType},Tf=(e,n,r,a)=>{let i=e._zod.def;ke(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType},qk=(e,n,r,a)=>{let i=e._zod.innerType;ke(i,n,a);let o=n.seen.get(e);o.ref=i},kc={string:uk,number:lk,boolean:ck,bigint:dk,symbol:fk,null:mk,undefined:pk,void:hk,never:vk,any:gk,unknown:bk,date:_k,enum:yk,literal:$k,nan:kk,template_literal:wk,file:xk,success:Ik,custom:Sk,function:zk,transform:Ok,map:Pk,set:Uk,array:Nk,object:jk,union:jf,intersection:Tk,tuple:Ek,record:Zk,nullable:Dk,nonoptional:Ak,default:Ck,prefault:Rk,catch:Mk,pipe:Lk,readonly:Fk,promise:Jk,optional:Tf,lazy:qk};function Vk(e,n){if("_idmap"in e){let a=e,i=Ji({...n,processors:kc}),o={};for(let l of a._idmap.entries()){let[c,d]=l;ke(d,i)}let s={},u={registry:a,uri:n==null?void 0:n.uri,defs:o};i.external=u;for(let l of a._idmap.entries()){let[c,d]=l;qi(i,d),s[c]=Vi(i,d)}if(Object.keys(o).length>0){let l=i.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:o}}return{schemas:s}}let r=Ji({...n,processors:kc});return ke(e,r),qi(r,e),Vi(r,e)}let dL=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(n){this.ctx.counter=n}get seen(){return this.ctx.seen}constructor(n){let r=(n==null?void 0:n.target)??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ji({processors:kc,target:r,...(n==null?void 0:n.metadata)&&{metadata:n.metadata},...(n==null?void 0:n.unrepresentable)&&{unrepresentable:n.unrepresentable},...(n==null?void 0:n.override)&&{override:n.override},...(n==null?void 0:n.io)&&{io:n.io}})}process(n,r={path:[],schemaPath:[]}){return ke(n,this.ctx,r)}emit(n,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),qi(this.ctx,n);let a=Vi(this.ctx,n),{"~standard":i,...o}=a;return o}};var fL={},Wk={};wn(Wk,{xor:()=>tx,xid:()=>xw,void:()=>Bw,uuidv7:()=>vw,uuidv6:()=>hw,uuidv4:()=>pw,uuid:()=>mw,url:()=>gw,unknown:()=>ci,union:()=>Iu,undefined:()=>Hw,ulid:()=>ww,uint64:()=>Vw,uint32:()=>Fw,tuple:()=>nm,transform:()=>zu,templateLiteral:()=>px,symbol:()=>Ww,superRefine:()=>Pm,success:()=>dx,stringbool:()=>$x,stringFormat:()=>Zw,string:()=>fs,strictObject:()=>Qw,set:()=>ox,refine:()=>Om,record:()=>im,readonly:()=>km,promise:()=>hx,preprocess:()=>wx,prefault:()=>hm,pipe:()=>Gr,partialRecord:()=>ix,optional:()=>Wr,object:()=>Yw,number:()=>Mf,nullish:()=>cx,nullable:()=>Hr,null:()=>Vf,nonoptional:()=>vm,never:()=>wu,nativeEnum:()=>sx,nanoid:()=>yw,nan:()=>fx,meta:()=>_x,map:()=>ax,mac:()=>zw,looseRecord:()=>rx,looseObject:()=>ex,literal:()=>ux,lazy:()=>Im,ksuid:()=>Iw,keyof:()=>Xw,jwt:()=>Ew,json:()=>kx,ipv6:()=>Ow,ipv4:()=>Sw,intersection:()=>em,int64:()=>qw,int32:()=>Lw,int:()=>ms,instanceof:()=>yx,httpUrl:()=>bw,hostname:()=>Dw,hex:()=>Aw,hash:()=>Cw,guid:()=>fw,function:()=>ps,float64:()=>Mw,float32:()=>Rw,file:()=>lx,exactOptional:()=>cm,enum:()=>Su,emoji:()=>_w,email:()=>dw,e164:()=>Tw,discriminatedUnion:()=>nx,describe:()=>bx,date:()=>Kw,custom:()=>gx,cuid2:()=>kw,cuid:()=>$w,codec:()=>mx,cidrv6:()=>Uw,cidrv4:()=>Pw,check:()=>vx,catch:()=>_m,boolean:()=>Lf,bigint:()=>Jw,base64url:()=>jw,base64:()=>Nw,array:()=>Na,any:()=>Gw,_function:()=>ps,_default:()=>mm,_ZodString:()=>au,ZodXor:()=>Xf,ZodXID:()=>fu,ZodVoid:()=>Bf,ZodUnknown:()=>Hf,ZodUnion:()=>Ta,ZodUndefined:()=>Jf,ZodUUID:()=>Xt,ZodURL:()=>za,ZodULID:()=>du,ZodType:()=>ue,ZodTuple:()=>tm,ZodTransform:()=>um,ZodTemplateLiteral:()=>wm,ZodSymbol:()=>Ff,ZodSuccess:()=>gm,ZodStringFormat:()=>ze,ZodString:()=>Sa,ZodSet:()=>am,ZodRecord:()=>Ea,ZodReadonly:()=>$m,ZodPromise:()=>Sm,ZodPrefault:()=>pm,ZodPipe:()=>Uu,ZodOptional:()=>Ou,ZodObject:()=>ja,ZodNumberFormat:()=>gi,ZodNumber:()=>Oa,ZodNullable:()=>dm,ZodNull:()=>qf,ZodNonOptional:()=>Pu,ZodNever:()=>Gf,ZodNanoID:()=>uu,ZodNaN:()=>ym,ZodMap:()=>rm,ZodMAC:()=>Rf,ZodLiteral:()=>om,ZodLazy:()=>xm,ZodKSUID:()=>mu,ZodJWT:()=>$u,ZodIntersection:()=>Qf,ZodIPv6:()=>hu,ZodIPv4:()=>pu,ZodGUID:()=>Vr,ZodFunction:()=>zm,ZodFile:()=>sm,ZodExactOptional:()=>lm,ZodEnum:()=>Wi,ZodEmoji:()=>su,ZodEmail:()=>ou,ZodE164:()=>yu,ZodDiscriminatedUnion:()=>Yf,ZodDefault:()=>fm,ZodDate:()=>xu,ZodCustomStringFormat:()=>or,ZodCustom:()=>Za,ZodCodec:()=>Nu,ZodCatch:()=>bm,ZodCUID2:()=>cu,ZodCUID:()=>lu,ZodCIDRv6:()=>gu,ZodCIDRv4:()=>vu,ZodBoolean:()=>Pa,ZodBigIntFormat:()=>ku,ZodBigInt:()=>Ua,ZodBase64URL:()=>_u,ZodBase64:()=>bu,ZodArray:()=>Kf,ZodAny:()=>Wf});var Hk={};wn(Hk,{uppercase:()=>Bs,trim:()=>tu,toUpperCase:()=>iu,toLowerCase:()=>nu,startsWith:()=>Xs,slugify:()=>ru,size:()=>ka,regex:()=>Hs,property:()=>Nf,positive:()=>zf,overwrite:()=>In,normalize:()=>eu,nonpositive:()=>Pf,nonnegative:()=>Uf,negative:()=>Of,multipleOf:()=>Fi,minSize:()=>Rn,minLength:()=>li,mime:()=>Qs,maxSize:()=>ar,maxLength:()=>wa,lte:()=>Pt,lt:()=>An,lowercase:()=>Gs,length:()=>xa,includes:()=>Ks,gte:()=>lt,gt:()=>Cn,endsWith:()=>Ys});var Ef={};wn(Ef,{time:()=>Kk,duration:()=>Xk,datetime:()=>Gk,date:()=>Bk,ZodISOTime:()=>Af,ZodISODuration:()=>Cf,ZodISODateTime:()=>Zf,ZodISODate:()=>Df});var Zf=z("ZodISODateTime",(e,n)=>{m0.init(e,n),ze.init(e,n)});function Gk(e){return I1(Zf,e)}var Df=z("ZodISODate",(e,n)=>{p0.init(e,n),ze.init(e,n)});function Bk(e){return S1(Df,e)}var Af=z("ZodISOTime",(e,n)=>{h0.init(e,n),ze.init(e,n)});function Kk(e){return z1(Af,e)}var Cf=z("ZodISODuration",(e,n)=>{v0.init(e,n),ze.init(e,n)});function Xk(e){return O1(Cf,e)}var Yk=(e,n)=>{Dd.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Cd(e,r)},flatten:{value:r=>Ad(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ss,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ss,2)}},isEmpty:{get(){return e.issues.length===0}}})},mL=z("ZodError",Yk),yt=z("ZodError",Yk,{Parent:Error}),Qk=pa(yt),ew=ha(yt),tw=va(yt),nw=ga(yt),iw=Rd(yt),rw=Md(yt),aw=Ld(yt),ow=Fd(yt),sw=Jd(yt),uw=qd(yt),lw=Vd(yt),cw=Wd(yt),ue=z("ZodType",(e,n)=>(re.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:qr(e,"input"),output:qr(e,"output")}}),e.toJSONSchema=sk(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(fe.mergeDefs(n,{checks:[...n.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>Dt(e,r,a),e.brand=()=>e,e.register=(r,a)=>(r.add(e,a),e),e.parse=(r,a)=>Qk(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>tw(e,r,a),e.parseAsync=async(r,a)=>ew(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>nw(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>iw(e,r,a),e.decode=(r,a)=>rw(e,r,a),e.encodeAsync=async(r,a)=>aw(e,r,a),e.decodeAsync=async(r,a)=>ow(e,r,a),e.safeEncode=(r,a)=>sw(e,r,a),e.safeDecode=(r,a)=>uw(e,r,a),e.safeEncodeAsync=async(r,a)=>lw(e,r,a),e.safeDecodeAsync=async(r,a)=>cw(e,r,a),e.refine=(r,a)=>e.check(Om(r,a)),e.superRefine=r=>e.check(Pm(r)),e.overwrite=r=>e.check(In(r)),e.optional=()=>Wr(e),e.exactOptional=()=>cm(e),e.nullable=()=>Hr(e),e.nullish=()=>Wr(Hr(e)),e.nonoptional=r=>vm(e,r),e.array=()=>Na(e),e.or=r=>Iu([e,r]),e.and=r=>em(e,r),e.transform=r=>Gr(e,zu(r)),e.default=r=>mm(e,r),e.prefault=r=>hm(e,r),e.catch=r=>_m(e,r),e.pipe=r=>Gr(e,r),e.readonly=()=>km(e),e.describe=r=>{let a=e.clone();return zt.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){var r;return(r=zt.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return zt.get(e);let a=e.clone();return zt.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),au=z("_ZodString",(e,n)=>{$a.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(a,i,o)=>uk(e,a,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(Hs(...a)),e.includes=(...a)=>e.check(Ks(...a)),e.startsWith=(...a)=>e.check(Xs(...a)),e.endsWith=(...a)=>e.check(Ys(...a)),e.min=(...a)=>e.check(li(...a)),e.max=(...a)=>e.check(wa(...a)),e.length=(...a)=>e.check(xa(...a)),e.nonempty=(...a)=>e.check(li(1,...a)),e.lowercase=a=>e.check(Gs(a)),e.uppercase=a=>e.check(Bs(a)),e.trim=()=>e.check(tu()),e.normalize=(...a)=>e.check(eu(...a)),e.toLowerCase=()=>e.check(nu()),e.toUpperCase=()=>e.check(iu()),e.slugify=()=>e.check(ru())}),Sa=z("ZodString",(e,n)=>{$a.init(e,n),au.init(e,n),e.email=r=>e.check(sf(ou,r)),e.url=r=>e.check(Ws(za,r)),e.jwt=r=>e.check(Sf($u,r)),e.emoji=r=>e.check(ff(su,r)),e.guid=r=>e.check(ds(Vr,r)),e.uuid=r=>e.check(uf(Xt,r)),e.uuidv4=r=>e.check(lf(Xt,r)),e.uuidv6=r=>e.check(cf(Xt,r)),e.uuidv7=r=>e.check(df(Xt,r)),e.nanoid=r=>e.check(mf(uu,r)),e.guid=r=>e.check(ds(Vr,r)),e.cuid=r=>e.check(pf(lu,r)),e.cuid2=r=>e.check(hf(cu,r)),e.ulid=r=>e.check(vf(du,r)),e.base64=r=>e.check(wf(bu,r)),e.base64url=r=>e.check(xf(_u,r)),e.xid=r=>e.check(gf(fu,r)),e.ksuid=r=>e.check(bf(mu,r)),e.ipv4=r=>e.check(_f(pu,r)),e.ipv6=r=>e.check(yf(hu,r)),e.cidrv4=r=>e.check($f(vu,r)),e.cidrv6=r=>e.check(kf(gu,r)),e.e164=r=>e.check(If(yu,r)),e.datetime=r=>e.check(Gk(r)),e.date=r=>e.check(Bk(r)),e.time=r=>e.check(Kk(r)),e.duration=r=>e.check(Xk(r))});function fs(e){return $1(Sa,e)}var ze=z("ZodStringFormat",(e,n)=>{Se.init(e,n),au.init(e,n)}),ou=z("ZodEmail",(e,n)=>{r0.init(e,n),ze.init(e,n)});function dw(e){return sf(ou,e)}var Vr=z("ZodGUID",(e,n)=>{n0.init(e,n),ze.init(e,n)});function fw(e){return ds(Vr,e)}var Xt=z("ZodUUID",(e,n)=>{i0.init(e,n),ze.init(e,n)});function mw(e){return uf(Xt,e)}function pw(e){return lf(Xt,e)}function hw(e){return cf(Xt,e)}function vw(e){return df(Xt,e)}var za=z("ZodURL",(e,n)=>{a0.init(e,n),ze.init(e,n)});function gw(e){return Ws(za,e)}function bw(e){return Ws(za,{protocol:/^https?$/,hostname:vi.domain,...fe.normalizeParams(e)})}var su=z("ZodEmoji",(e,n)=>{o0.init(e,n),ze.init(e,n)});function _w(e){return ff(su,e)}var uu=z("ZodNanoID",(e,n)=>{s0.init(e,n),ze.init(e,n)});function yw(e){return mf(uu,e)}var lu=z("ZodCUID",(e,n)=>{u0.init(e,n),ze.init(e,n)});function $w(e){return pf(lu,e)}var cu=z("ZodCUID2",(e,n)=>{l0.init(e,n),ze.init(e,n)});function kw(e){return hf(cu,e)}var du=z("ZodULID",(e,n)=>{c0.init(e,n),ze.init(e,n)});function ww(e){return vf(du,e)}var fu=z("ZodXID",(e,n)=>{d0.init(e,n),ze.init(e,n)});function xw(e){return gf(fu,e)}var mu=z("ZodKSUID",(e,n)=>{f0.init(e,n),ze.init(e,n)});function Iw(e){return bf(mu,e)}var pu=z("ZodIPv4",(e,n)=>{g0.init(e,n),ze.init(e,n)});function Sw(e){return _f(pu,e)}var Rf=z("ZodMAC",(e,n)=>{_0.init(e,n),ze.init(e,n)});function zw(e){return w1(Rf,e)}var hu=z("ZodIPv6",(e,n)=>{b0.init(e,n),ze.init(e,n)});function Ow(e){return yf(hu,e)}var vu=z("ZodCIDRv4",(e,n)=>{y0.init(e,n),ze.init(e,n)});function Pw(e){return $f(vu,e)}var gu=z("ZodCIDRv6",(e,n)=>{$0.init(e,n),ze.init(e,n)});function Uw(e){return kf(gu,e)}var bu=z("ZodBase64",(e,n)=>{k0.init(e,n),ze.init(e,n)});function Nw(e){return wf(bu,e)}var _u=z("ZodBase64URL",(e,n)=>{x0.init(e,n),ze.init(e,n)});function jw(e){return xf(_u,e)}var yu=z("ZodE164",(e,n)=>{I0.init(e,n),ze.init(e,n)});function Tw(e){return If(yu,e)}var $u=z("ZodJWT",(e,n)=>{z0.init(e,n),ze.init(e,n)});function Ew(e){return Sf($u,e)}var or=z("ZodCustomStringFormat",(e,n)=>{O0.init(e,n),ze.init(e,n)});function Zw(e,n,r={}){return Ia(or,e,n,r)}function Dw(e){return Ia(or,"hostname",vi.hostname,e)}function Aw(e){return Ia(or,"hex",vi.hex,e)}function Cw(e,n){let r=(n==null?void 0:n.enc)??"hex",a=`${e}_${r}`,i=vi[a];if(!i)throw Error(`Unrecognized hash format: ${a}`);return Ia(or,a,i,n)}var Oa=z("ZodNumber",(e,n)=>{Yd.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(a,i,o)=>lk(e,a,i),e.gt=(a,i)=>e.check(Cn(a,i)),e.gte=(a,i)=>e.check(lt(a,i)),e.min=(a,i)=>e.check(lt(a,i)),e.lt=(a,i)=>e.check(An(a,i)),e.lte=(a,i)=>e.check(Pt(a,i)),e.max=(a,i)=>e.check(Pt(a,i)),e.int=a=>e.check(ms(a)),e.safe=a=>e.check(ms(a)),e.positive=a=>e.check(Cn(0,a)),e.nonnegative=a=>e.check(lt(0,a)),e.negative=a=>e.check(An(0,a)),e.nonpositive=a=>e.check(Pt(0,a)),e.multipleOf=(a,i)=>e.check(Fi(a,i)),e.step=(a,i)=>e.check(Fi(a,i)),e.finite=()=>e;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 Mf(e){return P1(Oa,e)}var gi=z("ZodNumberFormat",(e,n)=>{P0.init(e,n),Oa.init(e,n)});function ms(e){return N1(gi,e)}function Rw(e){return j1(gi,e)}function Mw(e){return T1(gi,e)}function Lw(e){return E1(gi,e)}function Fw(e){return Z1(gi,e)}var Pa=z("ZodBoolean",(e,n)=>{Qd.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>ck(e,r,a)});function Lf(e){return D1(Pa,e)}var Ua=z("ZodBigInt",(e,n)=>{ef.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(a,i,o)=>dk(e,a),e.gte=(a,i)=>e.check(lt(a,i)),e.min=(a,i)=>e.check(lt(a,i)),e.gt=(a,i)=>e.check(Cn(a,i)),e.gte=(a,i)=>e.check(lt(a,i)),e.min=(a,i)=>e.check(lt(a,i)),e.lt=(a,i)=>e.check(An(a,i)),e.lte=(a,i)=>e.check(Pt(a,i)),e.max=(a,i)=>e.check(Pt(a,i)),e.positive=a=>e.check(Cn(BigInt(0),a)),e.negative=a=>e.check(An(BigInt(0),a)),e.nonpositive=a=>e.check(Pt(BigInt(0),a)),e.nonnegative=a=>e.check(lt(BigInt(0),a)),e.multipleOf=(a,i)=>e.check(Fi(a,i));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Jw(e){return C1(Ua,e)}var ku=z("ZodBigIntFormat",(e,n)=>{U0.init(e,n),Ua.init(e,n)});function qw(e){return M1(ku,e)}function Vw(e){return L1(ku,e)}var Ff=z("ZodSymbol",(e,n)=>{N0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>fk(e,r)});function Ww(e){return F1(Ff,e)}var Jf=z("ZodUndefined",(e,n)=>{j0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>pk(e,r)});function Hw(e){return J1(Jf,e)}var qf=z("ZodNull",(e,n)=>{T0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>mk(e,r,a)});function Vf(e){return q1(qf,e)}var Wf=z("ZodAny",(e,n)=>{E0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>gk()});function Gw(){return V1(Wf)}var Hf=z("ZodUnknown",(e,n)=>{Z0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>bk()});function ci(){return W1(Hf)}var Gf=z("ZodNever",(e,n)=>{D0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>vk(e,r,a)});function wu(e){return H1(Gf,e)}var Bf=z("ZodVoid",(e,n)=>{A0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>hk(e,r)});function Bw(e){return G1(Bf,e)}var xu=z("ZodDate",(e,n)=>{C0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(a,i,o)=>_k(e,a),e.min=(a,i)=>e.check(lt(a,i)),e.max=(a,i)=>e.check(Pt(a,i));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Kw(e){return B1(xu,e)}var Kf=z("ZodArray",(e,n)=>{R0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Nk(e,r,a,i),e.element=n.element,e.min=(r,a)=>e.check(li(r,a)),e.nonempty=r=>e.check(li(1,r)),e.max=(r,a)=>e.check(wa(r,a)),e.length=(r,a)=>e.check(xa(r,a)),e.unwrap=()=>e.element});function Na(e,n){return Y1(Kf,e,n)}function Xw(e){let n=e._zod.def.shape;return Su(Object.keys(n))}var ja=z("ZodObject",(e,n)=>{J0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>jk(e,r,a,i),fe.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>Su(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ci()}),e.loose=()=>e.clone({...e._zod.def,catchall:ci()}),e.strict=()=>e.clone({...e._zod.def,catchall:wu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>fe.extend(e,r),e.safeExtend=r=>fe.safeExtend(e,r),e.merge=r=>fe.merge(e,r),e.pick=r=>fe.pick(e,r),e.omit=r=>fe.omit(e,r),e.partial=(...r)=>fe.partial(Ou,e,r[0]),e.required=(...r)=>fe.required(Pu,e,r[0])});function Yw(e,n){let r={type:"object",shape:e??{},...fe.normalizeParams(n)};return new ja(r)}function Qw(e,n){return new ja({type:"object",shape:e,catchall:wu(),...fe.normalizeParams(n)})}function ex(e,n){return new ja({type:"object",shape:e,catchall:ci(),...fe.normalizeParams(n)})}var Ta=z("ZodUnion",(e,n)=>{Vs.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>jf(e,r,a,i),e.options=n.options});function Iu(e,n){return new Ta({type:"union",options:e,...fe.normalizeParams(n)})}var Xf=z("ZodXor",(e,n)=>{Ta.init(e,n),q0.init(e,n),e._zod.processJSONSchema=(r,a,i)=>jf(e,r,a,i),e.options=n.options});function tx(e,n){return new Xf({type:"union",options:e,inclusive:!1,...fe.normalizeParams(n)})}var Yf=z("ZodDiscriminatedUnion",(e,n)=>{Ta.init(e,n),V0.init(e,n)});function nx(e,n,r){return new Yf({type:"union",options:n,discriminator:e,...fe.normalizeParams(r)})}var Qf=z("ZodIntersection",(e,n)=>{W0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Tk(e,r,a,i)});function em(e,n){return new Qf({type:"intersection",left:e,right:n})}var tm=z("ZodTuple",(e,n)=>{tf.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Ek(e,r,a,i),e.rest=r=>e.clone({...e._zod.def,rest:r})});function nm(e,n,r){let a=n instanceof re,i=a?r:n;return new tm({type:"tuple",items:e,rest:a?n:null,...fe.normalizeParams(i)})}var Ea=z("ZodRecord",(e,n)=>{H0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Zk(e,r,a,i),e.keyType=n.keyType,e.valueType=n.valueType});function im(e,n,r){return new Ea({type:"record",keyType:e,valueType:n,...fe.normalizeParams(r)})}function ix(e,n,r){let a=Dt(e);return a._zod.values=void 0,new Ea({type:"record",keyType:a,valueType:n,...fe.normalizeParams(r)})}function rx(e,n,r){return new Ea({type:"record",keyType:e,valueType:n,mode:"loose",...fe.normalizeParams(r)})}var rm=z("ZodMap",(e,n)=>{G0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Pk(e,r),e.keyType=n.keyType,e.valueType=n.valueType,e.min=(...r)=>e.check(Rn(...r)),e.nonempty=r=>e.check(Rn(1,r)),e.max=(...r)=>e.check(ar(...r)),e.size=(...r)=>e.check(ka(...r))});function ax(e,n,r){return new rm({type:"map",keyType:e,valueType:n,...fe.normalizeParams(r)})}var am=z("ZodSet",(e,n)=>{B0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Uk(e,r),e.min=(...r)=>e.check(Rn(...r)),e.nonempty=r=>e.check(Rn(1,r)),e.max=(...r)=>e.check(ar(...r)),e.size=(...r)=>e.check(ka(...r))});function ox(e,n){return new am({type:"set",valueType:e,...fe.normalizeParams(n)})}var Wi=z("ZodEnum",(e,n)=>{K0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(a,i,o)=>yk(e,a,i),e.enum=n.entries,e.options=Object.values(n.entries);let r=new Set(Object.keys(n.entries));e.extract=(a,i)=>{let o={};for(let s of a)if(r.has(s))o[s]=n.entries[s];else throw Error(`Key ${s} not found in enum`);return new Wi({...n,checks:[],...fe.normalizeParams(i),entries:o})},e.exclude=(a,i)=>{let o={...n.entries};for(let s of a)if(r.has(s))delete o[s];else throw Error(`Key ${s} not found in enum`);return new Wi({...n,checks:[],...fe.normalizeParams(i),entries:o})}});function Su(e,n){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Wi({type:"enum",entries:r,...fe.normalizeParams(n)})}function sx(e,n){return new Wi({type:"enum",entries:e,...fe.normalizeParams(n)})}var om=z("ZodLiteral",(e,n)=>{X0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>$k(e,r,a),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function ux(e,n){return new om({type:"literal",values:Array.isArray(e)?e:[e],...fe.normalizeParams(n)})}var sm=z("ZodFile",(e,n)=>{Y0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>xk(e,r,a),e.min=(r,a)=>e.check(Rn(r,a)),e.max=(r,a)=>e.check(ar(r,a)),e.mime=(r,a)=>e.check(Qs(Array.isArray(r)?r:[r],a))});function lx(e){return Q1(sm,e)}var um=z("ZodTransform",(e,n)=>{Q0.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Ok(e,r),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Ls(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(fe.issue(o,r.value,n));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(fe.issue(s))}};let i=n.transform(r.value,r);return i instanceof Promise?i.then(o=>(r.value=o,r)):(r.value=i,r)}});function zu(e){return new um({type:"transform",transform:e})}var Ou=z("ZodOptional",(e,n)=>{nf.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Tf(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Wr(e){return new Ou({type:"optional",innerType:e})}var lm=z("ZodExactOptional",(e,n)=>{e1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Tf(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function cm(e){return new lm({type:"optional",innerType:e})}var dm=z("ZodNullable",(e,n)=>{t1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Dk(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Hr(e){return new dm({type:"nullable",innerType:e})}function cx(e){return Wr(Hr(e))}var fm=z("ZodDefault",(e,n)=>{n1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Ck(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mm(e,n){return new fm({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():fe.shallowClone(n)}})}var pm=z("ZodPrefault",(e,n)=>{i1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Rk(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function hm(e,n){return new pm({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():fe.shallowClone(n)}})}var Pu=z("ZodNonOptional",(e,n)=>{r1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Ak(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function vm(e,n){return new Pu({type:"nonoptional",innerType:e,...fe.normalizeParams(n)})}var gm=z("ZodSuccess",(e,n)=>{a1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Ik(e,r,a),e.unwrap=()=>e._zod.def.innerType});function dx(e){return new gm({type:"success",innerType:e})}var bm=z("ZodCatch",(e,n)=>{o1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Mk(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _m(e,n){return new bm({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var ym=z("ZodNaN",(e,n)=>{s1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>kk(e,r)});function fx(e){return X1(ym,e)}var Uu=z("ZodPipe",(e,n)=>{u1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Lk(e,r,a,i),e.in=n.in,e.out=n.out});function Gr(e,n){return new Uu({type:"pipe",in:e,out:n})}var Nu=z("ZodCodec",(e,n)=>{Uu.init(e,n),rf.init(e,n)});function mx(e,n,r){return new Nu({type:"pipe",in:e,out:n,transform:r.decode,reverseTransform:r.encode})}var $m=z("ZodReadonly",(e,n)=>{l1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Fk(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function km(e){return new $m({type:"readonly",innerType:e})}var wm=z("ZodTemplateLiteral",(e,n)=>{c1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>wk(e,r,a)});function px(e,n){return new wm({type:"template_literal",parts:e,...fe.normalizeParams(n)})}var xm=z("ZodLazy",(e,n)=>{m1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>qk(e,r,a,i),e.unwrap=()=>e._zod.def.getter()});function Im(e){return new xm({type:"lazy",getter:e})}var Sm=z("ZodPromise",(e,n)=>{f1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Jk(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function hx(e){return new Sm({type:"promise",innerType:e})}var zm=z("ZodFunction",(e,n)=>{d1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>zk(e,r)});function ps(e){return new zm({type:"function",input:Array.isArray(e==null?void 0:e.input)?nm(e==null?void 0:e.input):(e==null?void 0:e.input)??Na(ci()),output:(e==null?void 0:e.output)??ci()})}var Za=z("ZodCustom",(e,n)=>{p1.init(e,n),ue.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Sk(e,r)});function vx(e){let n=new Re({check:"custom"});return n._zod.check=e,n}function gx(e,n){return ek(Za,e??(()=>!0),n)}function Om(e,n={}){return tk(Za,e,n)}function Pm(e){return nk(e)}var bx=rk,_x=ak;function yx(e,n={}){let r=new Za({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...fe.normalizeParams(n)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}var $x=(...e)=>ok({Codec:Nu,Boolean:Pa,String:Sa},...e);function kx(e){let n=Im(()=>Iu([fs(e),Mf(),Lf(),Vf(),Na(n),im(fs(),n)]));return n}function wx(e,n){return Gr(zu(e),n)}var pL={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 hL(e){nt({customError:e})}function vL(){return nt().customError}var wc;wc||(wc={});var J={...Wk,...Hk,iso:Ef},gL=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 bL(e,n){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":n??"draft-2020-12"}function _L(e,n){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return n.rootSchema;let a=n.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===a){let i=r[1];if(!i||!n.defs[i])throw Error(`Reference not found: ${e}`);return n.defs[i]}throw Error(`Reference not found: ${e}`)}function xx(e,n){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return J.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let i=e.$ref;if(n.refs.has(i))return n.refs.get(i);if(n.processing.has(i))return J.lazy(()=>{if(!n.refs.has(i))throw Error(`Circular reference not resolved: ${i}`);return n.refs.get(i)});n.processing.add(i);let o=_L(i,n),s=et(o,n);return n.refs.set(i,s),n.processing.delete(i),s}if(e.enum!==void 0){let i=e.enum;if(n.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return J.null();if(i.length===0)return J.never();if(i.length===1)return J.literal(i[0]);if(i.every(s=>typeof s=="string"))return J.enum(i);let o=i.map(s=>J.literal(s));return o.length<2?o[0]:J.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return J.literal(e.const);let r=e.type;if(Array.isArray(r)){let i=r.map(o=>{let s={...e,type:o};return xx(s,n)});return i.length===0?J.never():i.length===1?i[0]:J.union(i)}if(!r)return J.any();let a;switch(r){case"string":{let i=J.string();if(e.format){let o=e.format;o==="email"?i=i.check(J.email()):o==="uri"||o==="uri-reference"?i=i.check(J.url()):o==="uuid"||o==="guid"?i=i.check(J.uuid()):o==="date-time"?i=i.check(J.iso.datetime()):o==="date"?i=i.check(J.iso.date()):o==="time"?i=i.check(J.iso.time()):o==="duration"?i=i.check(J.iso.duration()):o==="ipv4"?i=i.check(J.ipv4()):o==="ipv6"?i=i.check(J.ipv6()):o==="mac"?i=i.check(J.mac()):o==="cidr"?i=i.check(J.cidrv4()):o==="cidr-v6"?i=i.check(J.cidrv6()):o==="base64"?i=i.check(J.base64()):o==="base64url"?i=i.check(J.base64url()):o==="e164"?i=i.check(J.e164()):o==="jwt"?i=i.check(J.jwt()):o==="emoji"?i=i.check(J.emoji()):o==="nanoid"?i=i.check(J.nanoid()):o==="cuid"?i=i.check(J.cuid()):o==="cuid2"?i=i.check(J.cuid2()):o==="ulid"?i=i.check(J.ulid()):o==="xid"?i=i.check(J.xid()):o==="ksuid"&&(i=i.check(J.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),a=i;break}case"number":case"integer":{let i=r==="integer"?J.number().int():J.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),a=i;break}case"boolean":{a=J.boolean();break}case"null":{a=J.null();break}case"object":{let i={},o=e.properties||{},s=new Set(e.required||[]);for(let[l,c]of Object.entries(o)){let d=et(c,n);i[l]=s.has(l)?d:d.optional()}if(e.propertyNames){let l=et(e.propertyNames,n),c=e.additionalProperties&&typeof e.additionalProperties=="object"?et(e.additionalProperties,n):J.any();if(Object.keys(i).length===0){a=J.record(l,c);break}let d=J.object(i).passthrough(),f=J.looseRecord(l,c);a=J.intersection(d,f);break}if(e.patternProperties){let l=e.patternProperties,c=Object.keys(l),d=[];for(let m of c){let p=et(l[m],n),h=J.string().regex(new RegExp(m));d.push(J.looseRecord(h,p))}let f=[];if(Object.keys(i).length>0&&f.push(J.object(i).passthrough()),f.push(...d),f.length===0)a=J.object({}).passthrough();else if(f.length===1)a=f[0];else{let m=J.intersection(f[0],f[1]);for(let p=2;p<f.length;p++)m=J.intersection(m,f[p]);a=m}break}let u=J.object(i);e.additionalProperties===!1?a=u.strict():typeof e.additionalProperties=="object"?a=u.catchall(et(e.additionalProperties,n)):a=u.passthrough();break}case"array":{let{prefixItems:i,items:o}=e;if(i&&Array.isArray(i)){let s=i.map(l=>et(l,n)),u=o&&typeof o=="object"&&!Array.isArray(o)?et(o,n):void 0;u?a=J.tuple(s).rest(u):a=J.tuple(s),typeof e.minItems=="number"&&(a=a.check(J.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(J.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=o.map(l=>et(l,n)),u=e.additionalItems&&typeof e.additionalItems=="object"?et(e.additionalItems,n):void 0;u?a=J.tuple(s).rest(u):a=J.tuple(s),typeof e.minItems=="number"&&(a=a.check(J.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(J.maxLength(e.maxItems)))}else if(o!==void 0){let s=et(o,n),u=J.array(s);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),a=u}else a=J.array(J.any());break}default:throw Error(`Unsupported type: ${r}`)}return e.description&&(a=a.describe(e.description)),e.default!==void 0&&(a=a.default(e.default)),a}function et(e,n){if(typeof e=="boolean")return e?J.any():J.never();let r=xx(e,n),a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(c=>et(c,n)),l=J.union(u);r=a?J.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(c=>et(c,n)),l=J.xor(u);r=a?J.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=a?r:J.any();else{let u=a?r:et(e.allOf[0],n),l=a?0:1;for(let c=l;c<e.allOf.length;c++)u=J.intersection(u,et(e.allOf[c],n));r=u}e.nullable===!0&&n.version==="openapi-3.0"&&(r=J.nullable(r)),e.readOnly===!0&&(r=J.readonly(r));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of o)u in e&&(i[u]=e[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in e&&(i[u]=e[u]);for(let u of Object.keys(e))gL.has(u)||(i[u]=e[u]);return Object.keys(i).length>0&&n.registry.add(r,i),r}function yL(e,n){if(typeof e=="boolean")return e?J.any():J.never();let r=bL(e,n==null?void 0:n.defaultTarget),a=e.$defs||e.definitions||{},i={version:r,defs:a,refs:new Map,processing:new Set,rootSchema:e,registry:(n==null?void 0:n.registry)??zt};return et(e,i)}var Ix={};wn(Ix,{string:()=>$L,number:()=>kL,date:()=>IL,boolean:()=>wL,bigint:()=>xL});function $L(e){return k1(Sa,e)}function kL(e){return U1(Oa,e)}function wL(e){return A1(Pa,e)}function xL(e){return R1(Ua,e)}function IL(e){return K1(xu,e)}nt(h1());var SL=_.union([_.literal("light"),_.literal("dark")]).describe("Color theme preference for the host environment."),Br=_.union([_.literal("inline"),_.literal("fullscreen"),_.literal("pip")]).describe("Display mode for UI presentation."),zL=_.union([_.literal("--color-background-primary"),_.literal("--color-background-secondary"),_.literal("--color-background-tertiary"),_.literal("--color-background-inverse"),_.literal("--color-background-ghost"),_.literal("--color-background-info"),_.literal("--color-background-danger"),_.literal("--color-background-success"),_.literal("--color-background-warning"),_.literal("--color-background-disabled"),_.literal("--color-text-primary"),_.literal("--color-text-secondary"),_.literal("--color-text-tertiary"),_.literal("--color-text-inverse"),_.literal("--color-text-ghost"),_.literal("--color-text-info"),_.literal("--color-text-danger"),_.literal("--color-text-success"),_.literal("--color-text-warning"),_.literal("--color-text-disabled"),_.literal("--color-text-ghost"),_.literal("--color-border-primary"),_.literal("--color-border-secondary"),_.literal("--color-border-tertiary"),_.literal("--color-border-inverse"),_.literal("--color-border-ghost"),_.literal("--color-border-info"),_.literal("--color-border-danger"),_.literal("--color-border-success"),_.literal("--color-border-warning"),_.literal("--color-border-disabled"),_.literal("--color-ring-primary"),_.literal("--color-ring-secondary"),_.literal("--color-ring-inverse"),_.literal("--color-ring-info"),_.literal("--color-ring-danger"),_.literal("--color-ring-success"),_.literal("--color-ring-warning"),_.literal("--font-sans"),_.literal("--font-mono"),_.literal("--font-weight-normal"),_.literal("--font-weight-medium"),_.literal("--font-weight-semibold"),_.literal("--font-weight-bold"),_.literal("--font-text-xs-size"),_.literal("--font-text-sm-size"),_.literal("--font-text-md-size"),_.literal("--font-text-lg-size"),_.literal("--font-heading-xs-size"),_.literal("--font-heading-sm-size"),_.literal("--font-heading-md-size"),_.literal("--font-heading-lg-size"),_.literal("--font-heading-xl-size"),_.literal("--font-heading-2xl-size"),_.literal("--font-heading-3xl-size"),_.literal("--font-text-xs-line-height"),_.literal("--font-text-sm-line-height"),_.literal("--font-text-md-line-height"),_.literal("--font-text-lg-line-height"),_.literal("--font-heading-xs-line-height"),_.literal("--font-heading-sm-line-height"),_.literal("--font-heading-md-line-height"),_.literal("--font-heading-lg-line-height"),_.literal("--font-heading-xl-line-height"),_.literal("--font-heading-2xl-line-height"),_.literal("--font-heading-3xl-line-height"),_.literal("--border-radius-xs"),_.literal("--border-radius-sm"),_.literal("--border-radius-md"),_.literal("--border-radius-lg"),_.literal("--border-radius-xl"),_.literal("--border-radius-full"),_.literal("--border-width-regular"),_.literal("--shadow-hairline"),_.literal("--shadow-sm"),_.literal("--shadow-md"),_.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),OL=_.record(zL.describe(`Style variables for theming MCP apps.
|
|
151
|
+
|
|
152
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
153
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
154
|
+
|
|
155
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
156
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),_.union([_.string(),_.undefined()]).describe(`Style variables for theming MCP apps.
|
|
157
|
+
|
|
158
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
159
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
160
|
+
|
|
161
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
162
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
|
|
163
|
+
|
|
164
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
165
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
166
|
+
|
|
167
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
168
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);_.object({method:_.literal("ui/open-link"),params:_.object({url:_.string().describe("URL to open in the host's browser")})});var PL=_.object({isError:_.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),UL=_.object({isError:_.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),NL=_.object({isError:_.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();_.object({method:_.literal("ui/notifications/sandbox-proxy-ready"),params:_.object({})});var Um=_.object({connectDomains:_.array(_.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
169
|
+
|
|
170
|
+
- Maps to CSP \`connect-src\` directive
|
|
171
|
+
- Empty or omitted → no network connections (secure default)`),resourceDomains:_.array(_.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:_.array(_.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:_.array(_.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Nm=_.object({camera:_.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:_.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:_.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:_.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});_.object({method:_.literal("ui/notifications/size-changed"),params:_.object({width:_.number().optional().describe("New width in pixels."),height:_.number().optional().describe("New height in pixels.")})});var jL=_.object({method:_.literal("ui/notifications/tool-input"),params:_.object({arguments:_.record(_.string(),_.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),TL=_.object({method:_.literal("ui/notifications/tool-input-partial"),params:_.object({arguments:_.record(_.string(),_.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),EL=_.object({method:_.literal("ui/notifications/tool-cancelled"),params:_.object({reason:_.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),ZL=_.object({fonts:_.string().optional()}),DL=_.object({variables:OL.optional().describe("CSS variables for theming the app."),css:ZL.optional().describe("CSS blocks that apps can inject.")}),AL=_.object({method:_.literal("ui/resource-teardown"),params:_.object({})});_.record(_.string(),_.unknown());var Ag=_.object({text:_.object({}).optional().describe("Host supports text content blocks."),image:_.object({}).optional().describe("Host supports image content blocks."),audio:_.object({}).optional().describe("Host supports audio content blocks."),resource:_.object({}).optional().describe("Host supports resource content blocks."),resourceLink:_.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:_.object({}).optional().describe("Host supports structured content.")}),CL=_.object({experimental:_.object({}).optional().describe("Experimental features (structure TBD)."),openLinks:_.object({}).optional().describe("Host supports opening external URLs."),downloadFile:_.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:_.object({listChanged:_.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:_.object({listChanged:_.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:_.object({}).optional().describe("Host accepts log messages."),sandbox:_.object({permissions:Nm.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:Um.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:Ag.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:Ag.optional().describe("Host supports receiving content messages (ui/message) from the view.")}),RL=_.object({experimental:_.object({}).optional().describe("Experimental features (structure TBD)."),tools:_.object({listChanged:_.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:_.array(Br).optional().describe("Display modes the app supports.")});_.object({method:_.literal("ui/notifications/initialized"),params:_.object({}).optional()});_.object({csp:Um.optional().describe("Content Security Policy configuration for UI resources."),permissions:Nm.optional().describe("Sandbox permissions requested by the UI resource."),domain:_.string().optional().describe(`Dedicated origin for view sandbox.
|
|
172
|
+
|
|
173
|
+
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
174
|
+
|
|
175
|
+
**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
|
|
176
|
+
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
|
|
177
|
+
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
|
|
178
|
+
|
|
179
|
+
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:_.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
|
|
180
|
+
|
|
181
|
+
Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
|
|
182
|
+
|
|
183
|
+
- \`true\`: request visible border + background
|
|
184
|
+
- \`false\`: request no visible border + background
|
|
185
|
+
- omitted: host decides border`)});_.object({method:_.literal("ui/request-display-mode"),params:_.object({mode:Br.describe("The display mode being requested.")})});var ML=_.object({mode:Br.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),LL=_.union([_.literal("model"),_.literal("app")]).describe("Tool visibility scope - who can access the tool.");_.object({resourceUri:_.string().optional(),visibility:_.array(LL).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
186
|
+
- "model": Tool visible to and callable by the agent
|
|
187
|
+
- "app": Tool callable by the app from this server only`)});_.object({mimeTypes:_.array(_.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});_.object({method:_.literal("ui/download-file"),params:_.object({contents:_.array(_.union([jd,Td])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});_.object({method:_.literal("ui/message"),params:_.object({role:_.literal("user").describe('Message role, currently only "user" is supported.'),content:_.array(pi).describe("Message content blocks (text, image, etc.).")})});_.object({method:_.literal("ui/notifications/sandbox-resource-ready"),params:_.object({html:_.string().describe("HTML content to load into the inner iframe."),sandbox:_.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Um.optional().describe("CSP configuration from resource metadata."),permissions:Nm.optional().describe("Sandbox permissions from resource metadata.")})});var FL=_.object({method:_.literal("ui/notifications/tool-result"),params:fa.describe("Standard MCP tool execution result.")}),Sx=_.object({toolInfo:_.object({id:nr.optional().describe("JSON-RPC id of the tools/call request."),tool:Ms.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:SL.optional().describe("Current color theme preference."),styles:DL.optional().describe("Style configuration for theming the app."),displayMode:Br.optional().describe("How the UI is currently displayed."),availableDisplayModes:_.array(Br).optional().describe("Display modes the host supports."),containerDimensions:_.union([_.object({height:_.number().describe("Fixed container height in pixels.")}),_.object({maxHeight:_.union([_.number(),_.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(_.union([_.object({width:_.number().describe("Fixed container width in pixels.")}),_.object({maxWidth:_.union([_.number(),_.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
188
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:_.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:_.string().optional().describe("User's timezone in IANA format."),userAgent:_.string().optional().describe("Host application identifier."),platform:_.union([_.literal("web"),_.literal("desktop"),_.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:_.object({touch:_.boolean().optional().describe("Whether the device supports touch input."),hover:_.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:_.object({top:_.number().describe("Top safe area inset in pixels."),right:_.number().describe("Right safe area inset in pixels."),bottom:_.number().describe("Bottom safe area inset in pixels."),left:_.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),JL=_.object({method:_.literal("ui/notifications/host-context-changed"),params:Sx.describe("Partial context update containing only changed fields.")});_.object({method:_.literal("ui/update-model-context"),params:_.object({content:_.array(pi).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:_.record(_.string(),_.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});_.object({method:_.literal("ui/initialize"),params:_.object({appInfo:ir.describe("App identification (name and version)."),appCapabilities:RL.describe("Features and capabilities this app provides."),protocolVersion:_.string().describe("Protocol version this app supports.")})});var qL=_.object({protocolVersion:_.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:ir.describe("Host application identification and version."),hostCapabilities:CL.describe("Features and capabilities provided by the host."),hostContext:Sx.describe("Rich context about the host environment.")}).passthrough();class VL extends VA{constructor(r,a={},i={autoResize:!0}){super(i);je(this,"_appInfo");je(this,"_capabilities");je(this,"options");je(this,"_hostCapabilities");je(this,"_hostInfo");je(this,"_hostContext");je(this,"sendOpenLink",this.openLink);this._appInfo=r,this._capabilities=a,this.options=i,this.setRequestHandler(Rs,o=>(console.log("Received ping:",o.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(r){this.setNotificationHandler(jL,a=>r(a.params))}set ontoolinputpartial(r){this.setNotificationHandler(TL,a=>r(a.params))}set ontoolresult(r){this.setNotificationHandler(FL,a=>r(a.params))}set ontoolcancelled(r){this.setNotificationHandler(EL,a=>r(a.params))}set onhostcontextchanged(r){this.setNotificationHandler(JL,a=>{this._hostContext={...this._hostContext,...a.params},r(a.params)})}set onteardown(r){this.setRequestHandler(AL,(a,i)=>r(a.params,i))}set oncalltool(r){this.setRequestHandler(Ay,(a,i)=>r(a.params,i))}set onlisttools(r){this.setRequestHandler(Dy,(a,i)=>r(a.params,i))}assertCapabilityForMethod(r){}assertRequestHandlerCapability(r){switch(r){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${r})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${r} registered`)}}assertNotificationCapability(r){}assertTaskCapability(r){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(r){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(r,a){if(typeof r=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${r}"). Did you mean: callServerTool({ name: "${r}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:r},fa,a)}sendMessage(r,a){return this.request({method:"ui/message",params:r},NL,a)}sendLog(r){return this.notification({method:"notifications/message",params:r})}updateModelContext(r,a){return this.request({method:"ui/update-model-context",params:r},gd,a)}openLink(r,a){return this.request({method:"ui/open-link",params:r},PL,a)}downloadFile(r,a){return this.request({method:"ui/download-file",params:r},UL,a)}requestDisplayMode(r,a){return this.request({method:"ui/request-display-mode",params:r},ML,a)}sendSizeChanged(r){return this.notification({method:"ui/notifications/size-changed",params:r})}setupSizeChangedNotifications(){let r=!1,a=0,i=0,o=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1;let u=document.documentElement,l=u.style.width,c=u.style.height;u.style.width="fit-content",u.style.height="fit-content";let d=u.getBoundingClientRect();u.style.width=l,u.style.height=c;let f=window.innerWidth-u.clientWidth,m=Math.ceil(d.width+f),p=Math.ceil(d.height);(m!==a||p!==i)&&(a=m,i=p,this.sendSizeChanged({width:m,height:p}))}))};o();let s=new ResizeObserver(o);return s.observe(document.documentElement),s.observe(document.body),()=>s.disconnect()}async connect(r=new HA(window.parent,window.parent),a){var i;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(r);try{let o=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:GA}},qL,a);if(o===void 0)throw Error(`Server sent invalid initialize result: ${o}`);this._hostCapabilities=o.hostCapabilities,this._hostInfo=o.hostInfo,this._hostContext=o.hostContext,await this.notification({method:"ui/notifications/initialized"}),(i=this.options)!=null&&i.autoResize&&this.setupSizeChangedNotifications()}catch(o){throw this.close(),o}}}var WL=Object.defineProperty,Sn=(e,n)=>{for(var r in n)WL(e,r,{get:n[r],enumerable:!0,configurable:!0,set:a=>n[r]=()=>a})},y={};Sn(y,{xor:()=>J2,xid:()=>f2,void:()=>A2,uuidv7:()=>r2,uuidv6:()=>i2,uuidv4:()=>n2,uuid:()=>t2,util:()=>me,url:()=>a2,uppercase:()=>Mu,unknown:()=>mi,union:()=>vl,undefined:()=>Z2,ulid:()=>d2,uint64:()=>T2,uint32:()=>U2,tuple:()=>Qp,trim:()=>Wu,treeifyError:()=>Lx,transform:()=>bl,toUpperCase:()=>Gu,toLowerCase:()=>Hu,toJSONSchema:()=>TS,templateLiteral:()=>nz,symbol:()=>E2,superRefine:()=>Sh,success:()=>Q2,stringbool:()=>lz,stringFormat:()=>w2,string:()=>$s,strictObject:()=>L2,startsWith:()=>Fu,slugify:()=>Bu,size:()=>Va,setErrorMap:()=>mV,set:()=>G2,safeParseAsync:()=>qS,safeParse:()=>JS,safeEncodeAsync:()=>XS,safeEncode:()=>BS,safeDecodeAsync:()=>YS,safeDecode:()=>KS,registry:()=>ip,regexes:()=>_i,regex:()=>Cu,refine:()=>Ih,record:()=>eh,readonly:()=>_h,property:()=>Op,promise:()=>iz,prettifyError:()=>Jx,preprocess:()=>dz,prefault:()=>fh,positive:()=>xp,pipe:()=>ea,partialRecord:()=>V2,parseAsync:()=>FS,parse:()=>LS,overwrite:()=>On,optional:()=>Yr,object:()=>M2,number:()=>Ap,nullish:()=>Y2,nullable:()=>Qr,null:()=>Fp,normalize:()=>Vu,nonpositive:()=>Sp,nonoptional:()=>mh,nonnegative:()=>zp,never:()=>pl,negative:()=>Ip,nativeEnum:()=>B2,nanoid:()=>u2,nan:()=>ez,multipleOf:()=>Bi,minSize:()=>Fn,minLength:()=>fi,mime:()=>qu,meta:()=>sz,maxSize:()=>sr,maxLength:()=>Wa,map:()=>H2,mac:()=>h2,lte:()=>Ut,lt:()=>Mn,lowercase:()=>Ru,looseRecord:()=>W2,looseObject:()=>F2,locales:()=>np,literal:()=>K2,length:()=>Ha,lazy:()=>kh,ksuid:()=>m2,keyof:()=>R2,jwt:()=>k2,json:()=>cz,iso:()=>Np,ipv6:()=>v2,ipv4:()=>p2,intersection:()=>Xp,int64:()=>j2,int32:()=>P2,int:()=>ks,instanceof:()=>uz,includes:()=>Lu,httpUrl:()=>o2,hostname:()=>x2,hex:()=>I2,hash:()=>S2,guid:()=>e2,gte:()=>ct,gt:()=>Ln,globalRegistry:()=>Ot,getErrorMap:()=>pV,function:()=>ws,fromJSONSchema:()=>bV,formatError:()=>Dm,float64:()=>O2,float32:()=>z2,flattenError:()=>Zm,file:()=>X2,exactOptional:()=>sh,enum:()=>gl,endsWith:()=>Ju,encodeAsync:()=>HS,encode:()=>VS,emoji:()=>s2,email:()=>QS,e164:()=>$2,discriminatedUnion:()=>q2,describe:()=>oz,decodeAsync:()=>GS,decode:()=>WS,date:()=>C2,custom:()=>az,cuid2:()=>c2,cuid:()=>l2,core:()=>zx,config:()=>it,coerce:()=>mz,codec:()=>tz,clone:()=>At,cidrv6:()=>b2,cidrv4:()=>g2,check:()=>rz,catch:()=>vh,boolean:()=>Cp,bigint:()=>N2,base64url:()=>y2,base64:()=>_2,array:()=>eo,any:()=>D2,_function:()=>ws,_default:()=>ch,_ZodString:()=>Ku,ZodXor:()=>Gp,ZodXID:()=>il,ZodVoid:()=>Wp,ZodUnknown:()=>qp,ZodUnion:()=>no,ZodUndefined:()=>Mp,ZodUUID:()=>Yt,ZodURL:()=>Ka,ZodULID:()=>nl,ZodType:()=>le,ZodTuple:()=>Yp,ZodTransform:()=>ah,ZodTemplateLiteral:()=>yh,ZodSymbol:()=>Rp,ZodSuccess:()=>ph,ZodStringFormat:()=>Pe,ZodString:()=>Ba,ZodSet:()=>nh,ZodRecord:()=>io,ZodRealError:()=>kt,ZodReadonly:()=>bh,ZodPromise:()=>wh,ZodPrefault:()=>dh,ZodPipe:()=>$l,ZodOptional:()=>_l,ZodObject:()=>to,ZodNumberFormat:()=>yi,ZodNumber:()=>Xa,ZodNullable:()=>uh,ZodNull:()=>Lp,ZodNonOptional:()=>yl,ZodNever:()=>Vp,ZodNanoID:()=>Qu,ZodNaN:()=>gh,ZodMap:()=>th,ZodMAC:()=>Dp,ZodLiteral:()=>ih,ZodLazy:()=>$h,ZodKSUID:()=>rl,ZodJWT:()=>fl,ZodIssueCode:()=>fV,ZodIntersection:()=>Kp,ZodISOTime:()=>Ep,ZodISODuration:()=>Zp,ZodISODateTime:()=>jp,ZodISODate:()=>Tp,ZodIPv6:()=>ol,ZodIPv4:()=>al,ZodGUID:()=>Xr,ZodFunction:()=>xh,ZodFirstPartyTypeKind:()=>Pc,ZodFile:()=>rh,ZodExactOptional:()=>oh,ZodError:()=>dV,ZodEnum:()=>Qi,ZodEmoji:()=>Yu,ZodEmail:()=>Xu,ZodE164:()=>dl,ZodDiscriminatedUnion:()=>Bp,ZodDefault:()=>lh,ZodDate:()=>hl,ZodCustomStringFormat:()=>ur,ZodCustom:()=>ro,ZodCodec:()=>kl,ZodCatch:()=>hh,ZodCUID2:()=>tl,ZodCUID:()=>el,ZodCIDRv6:()=>ul,ZodCIDRv4:()=>sl,ZodBoolean:()=>Ya,ZodBigIntFormat:()=>ml,ZodBigInt:()=>Qa,ZodBase64URL:()=>cl,ZodBase64:()=>ll,ZodArray:()=>Hp,ZodAny:()=>Jp,TimePrecision:()=>fI,NEVER:()=>Ox,$output:()=>oI,$input:()=>sI,$brand:()=>Px});var zx={};Sn(zx,{version:()=>J6,util:()=>me,treeifyError:()=>Lx,toJSONSchema:()=>TS,toDotPath:()=>Fx,safeParseAsync:()=>Vx,safeParse:()=>qx,safeEncodeAsync:()=>IF,safeEncode:()=>wF,safeDecodeAsync:()=>SF,safeDecode:()=>xF,registry:()=>ip,regexes:()=>_i,process:()=>we,prettifyError:()=>Jx,parseAsync:()=>Sc,parse:()=>Ic,meta:()=>HI,locales:()=>np,isValidJWT:()=>p4,isValidBase64URL:()=>d4,isValidBase64:()=>Bm,initializeContext:()=>Ki,globalRegistry:()=>Ot,globalConfig:()=>hs,formatError:()=>Dm,flattenError:()=>Zm,finalize:()=>Yi,extractDefs:()=>Xi,encodeAsync:()=>$F,encode:()=>_F,describe:()=>WI,decodeAsync:()=>kF,decode:()=>yF,createToJSONSchemaMethod:()=>BI,createStandardJSONSchemaMethod:()=>Kr,config:()=>it,clone:()=>At,_xor:()=>Mq,_xid:()=>pp,_void:()=>DI,_uuidv7:()=>up,_uuidv6:()=>sp,_uuidv4:()=>op,_uuid:()=>ap,_url:()=>Au,_uppercase:()=>Mu,_unknown:()=>EI,_union:()=>Rq,_undefined:()=>NI,_ulid:()=>mp,_uint64:()=>PI,_uint32:()=>wI,_tuple:()=>Jq,_trim:()=>Wu,_transform:()=>Kq,_toUpperCase:()=>Gu,_toLowerCase:()=>Hu,_templateLiteral:()=>aV,_symbol:()=>UI,_superRefine:()=>qI,_success:()=>tV,_stringbool:()=>GI,_stringFormat:()=>Ga,_string:()=>lI,_startsWith:()=>Fu,_slugify:()=>Bu,_size:()=>Va,_set:()=>Wq,_safeParseAsync:()=>Ma,_safeParse:()=>Ra,_safeEncodeAsync:()=>Jm,_safeEncode:()=>Lm,_safeDecodeAsync:()=>qm,_safeDecode:()=>Fm,_regex:()=>Cu,_refine:()=>JI,_record:()=>qq,_readonly:()=>rV,_property:()=>Op,_promise:()=>sV,_positive:()=>xp,_pipe:()=>iV,_parseAsync:()=>Ca,_parse:()=>Aa,_overwrite:()=>On,_optional:()=>Xq,_number:()=>gI,_nullable:()=>Yq,_null:()=>jI,_normalize:()=>Vu,_nonpositive:()=>Sp,_nonoptional:()=>eV,_nonnegative:()=>zp,_never:()=>ZI,_negative:()=>Ip,_nativeEnum:()=>Gq,_nanoid:()=>cp,_nan:()=>RI,_multipleOf:()=>Bi,_minSize:()=>Fn,_minLength:()=>fi,_min:()=>ct,_mime:()=>qu,_maxSize:()=>sr,_maxLength:()=>Wa,_max:()=>Ut,_map:()=>Vq,_mac:()=>dI,_lte:()=>Ut,_lt:()=>Mn,_lowercase:()=>Ru,_literal:()=>Bq,_length:()=>Ha,_lazy:()=>oV,_ksuid:()=>hp,_jwt:()=>wp,_isoTime:()=>hI,_isoDuration:()=>vI,_isoDateTime:()=>mI,_isoDate:()=>pI,_ipv6:()=>gp,_ipv4:()=>vp,_intersection:()=>Fq,_int64:()=>OI,_int32:()=>kI,_int:()=>_I,_includes:()=>Lu,_guid:()=>ys,_gte:()=>ct,_gt:()=>Ln,_float64:()=>$I,_float32:()=>yI,_file:()=>LI,_enum:()=>Hq,_endsWith:()=>Ju,_encodeAsync:()=>Rm,_encode:()=>Am,_emoji:()=>lp,_email:()=>rp,_e164:()=>kp,_discriminatedUnion:()=>Lq,_default:()=>Qq,_decodeAsync:()=>Mm,_decode:()=>Cm,_date:()=>AI,_custom:()=>FI,_cuid2:()=>fp,_cuid:()=>dp,_coercedString:()=>cI,_coercedNumber:()=>bI,_coercedDate:()=>CI,_coercedBoolean:()=>II,_coercedBigint:()=>zI,_cidrv6:()=>_p,_cidrv4:()=>bp,_check:()=>VI,_catch:()=>nV,_boolean:()=>xI,_bigint:()=>SI,_base64url:()=>$p,_base64:()=>yp,_array:()=>MI,_any:()=>TI,TimePrecision:()=>fI,NEVER:()=>Ox,JSONSchemaGenerator:()=>lV,JSONSchema:()=>cV,Doc:()=>F6,$output:()=>oI,$input:()=>sI,$constructor:()=>O,$brand:()=>Px,$ZodXor:()=>j4,$ZodXID:()=>Q6,$ZodVoid:()=>I4,$ZodUnknown:()=>w4,$ZodUnion:()=>Du,$ZodUndefined:()=>y4,$ZodUUID:()=>V6,$ZodURL:()=>H6,$ZodULID:()=>Y6,$ZodType:()=>ae,$ZodTuple:()=>Qm,$ZodTransform:()=>L4,$ZodTemplateLiteral:()=>Y4,$ZodSymbol:()=>_4,$ZodSuccess:()=>H4,$ZodStringFormat:()=>Oe,$ZodString:()=>qa,$ZodSet:()=>A4,$ZodRegistry:()=>uI,$ZodRecord:()=>Z4,$ZodRealError:()=>$t,$ZodReadonly:()=>X4,$ZodPromise:()=>eI,$ZodPrefault:()=>V4,$ZodPipe:()=>K4,$ZodOptional:()=>ep,$ZodObjectJIT:()=>N4,$ZodObject:()=>U4,$ZodNumberFormat:()=>g4,$ZodNumber:()=>Km,$ZodNullable:()=>J4,$ZodNull:()=>$4,$ZodNonOptional:()=>W4,$ZodNever:()=>x4,$ZodNanoID:()=>B6,$ZodNaN:()=>B4,$ZodMap:()=>D4,$ZodMAC:()=>s4,$ZodLiteral:()=>R4,$ZodLazy:()=>tI,$ZodKSUID:()=>e4,$ZodJWT:()=>h4,$ZodIntersection:()=>E4,$ZodISOTime:()=>i4,$ZodISODuration:()=>r4,$ZodISODateTime:()=>t4,$ZodISODate:()=>n4,$ZodIPv6:()=>o4,$ZodIPv4:()=>a4,$ZodGUID:()=>q6,$ZodFunction:()=>Q4,$ZodFile:()=>M4,$ZodExactOptional:()=>F4,$ZodError:()=>Em,$ZodEnum:()=>C4,$ZodEncodeError:()=>ju,$ZodEmoji:()=>G6,$ZodEmail:()=>W6,$ZodE164:()=>m4,$ZodDiscriminatedUnion:()=>T4,$ZodDefault:()=>q4,$ZodDate:()=>S4,$ZodCustomStringFormat:()=>v4,$ZodCustom:()=>nI,$ZodCodec:()=>tp,$ZodCheckUpperCase:()=>Z6,$ZodCheckStringFormat:()=>Ja,$ZodCheckStartsWith:()=>A6,$ZodCheckSizeEquals:()=>P6,$ZodCheckRegex:()=>T6,$ZodCheckProperty:()=>R6,$ZodCheckOverwrite:()=>L6,$ZodCheckNumberFormat:()=>I6,$ZodCheckMultipleOf:()=>x6,$ZodCheckMinSize:()=>O6,$ZodCheckMinLength:()=>N6,$ZodCheckMimeType:()=>M6,$ZodCheckMaxSize:()=>z6,$ZodCheckMaxLength:()=>U6,$ZodCheckLowerCase:()=>E6,$ZodCheckLessThan:()=>Hm,$ZodCheckLengthEquals:()=>j6,$ZodCheckIncludes:()=>D6,$ZodCheckGreaterThan:()=>Gm,$ZodCheckEndsWith:()=>C6,$ZodCheckBigIntFormat:()=>S6,$ZodCheck:()=>Me,$ZodCatch:()=>G4,$ZodCUID2:()=>X6,$ZodCUID:()=>K6,$ZodCIDRv6:()=>l4,$ZodCIDRv4:()=>u4,$ZodBoolean:()=>Xm,$ZodBigIntFormat:()=>b4,$ZodBigInt:()=>Ym,$ZodBase64URL:()=>f4,$ZodBase64:()=>c4,$ZodAsyncError:()=>ri,$ZodArray:()=>z4,$ZodAny:()=>k4});var Ox=Object.freeze({status:"aborted"});function O(e,n,r){function a(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),n(u,l);let c=s.prototype,d=Object.keys(c);for(let f=0;f<d.length;f++){let m=d[f];m in u||(u[m]=c[m].bind(u))}}let i=(r==null?void 0:r.Parent)??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function s(u){var l;let c=r!=null&&r.Parent?new o:this;a(c,u),(l=c._zod).deferred??(l.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(s,"init",{value:a}),Object.defineProperty(s,Symbol.hasInstance,{value:u=>{var l,c;return r!=null&&r.Parent&&u instanceof r.Parent?!0:(c=(l=u==null?void 0:u._zod)==null?void 0:l.traits)==null?void 0:c.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}var Px=Symbol("zod_brand");class ri extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ju extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}var hs={};function it(e){return e&&Object.assign(hs,e),hs}var me={};Sn(me,{unwrapMessage:()=>Or,uint8ArrayToHex:()=>gF,uint8ArrayToBase64url:()=>hF,uint8ArrayToBase64:()=>Rx,stringifyPrimitive:()=>Y,slugify:()=>Nx,shallowClone:()=>Tx,safeExtend:()=>lF,required:()=>fF,randomString:()=>nF,propertyKeyTypes:()=>gs,promiseAllObject:()=>tF,primitiveTypes:()=>Ex,prefixIssues:()=>Vt,pick:()=>oF,partial:()=>dF,parsedType:()=>te,optionalKeys:()=>Zx,omit:()=>sF,objectClone:()=>YL,numKeys:()=>iF,nullish:()=>bi,normalizeParams:()=>R,mergeDefs:()=>zn,merge:()=>cF,jsonStringifyReplacer:()=>vs,joinValues:()=>A,issue:()=>bs,isPlainObject:()=>di,isObject:()=>Hi,hexToUint8Array:()=>vF,getSizableOrigin:()=>Eu,getParsedType:()=>rF,getLengthableOrigin:()=>Zu,getEnumValues:()=>jm,getElementAtPath:()=>eF,floatSafeRemainder:()=>Ux,finalizeIssue:()=>jt,extend:()=>uF,escapeRegex:()=>$n,esc:()=>xc,defineLazy:()=>de,createTransparentProxy:()=>aF,cloneDef:()=>QL,clone:()=>At,cleanRegex:()=>Tu,cleanEnum:()=>mF,captureStackTrace:()=>Tm,cached:()=>Da,base64urlToUint8Array:()=>pF,base64ToUint8Array:()=>Cx,assignProp:()=>Wn,assertNotEqual:()=>GL,assertNever:()=>KL,assertIs:()=>BL,assertEqual:()=>HL,assert:()=>XL,allowsEval:()=>jx,aborted:()=>Yn,NUMBER_FORMAT_RANGES:()=>Dx,Class:()=>bF,BIGINT_FORMAT_RANGES:()=>Ax});function HL(e){return e}function GL(e){return e}function BL(e){}function KL(e){throw Error("Unexpected value in exhaustive check")}function XL(e){}function jm(e){let n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>n.indexOf(+r)===-1).map(([r,a])=>a)}function A(e,n="|"){return e.map(r=>Y(r)).join(n)}function vs(e,n){return typeof n=="bigint"?n.toString():n}function Da(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function bi(e){return e==null}function Tu(e){let n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function Ux(e,n){let r=(e.toString().split(".")[1]||"").length,a=n.toString(),i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}let o=r>i?r:i,s=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(n.toFixed(o).replace(".",""));return s%u/10**o}var Cg=Symbol("evaluating");function de(e,n,r){let a;Object.defineProperty(e,n,{get(){if(a!==Cg)return a===void 0&&(a=Cg,a=r()),a},set(i){Object.defineProperty(e,n,{value:i})},configurable:!0})}function YL(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Wn(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function zn(...e){let n={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(n,a)}return Object.defineProperties({},n)}function QL(e){return zn(e._zod.def)}function eF(e,n){return n?n.reduce((r,a)=>r==null?void 0:r[a],e):e}function tF(e){let n=Object.keys(e),r=n.map(a=>e[a]);return Promise.all(r).then(a=>{let i={};for(let o=0;o<n.length;o++)i[n[o]]=a[o];return i})}function nF(e=10){let n="";for(let r=0;r<e;r++)n+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return n}function xc(e){return JSON.stringify(e)}function Nx(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Tm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var jx=Da(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{return new Function(""),!0}catch{return!1}});function di(e){if(Hi(e)===!1)return!1;let n=e.constructor;if(n===void 0||typeof n!="function")return!0;let r=n.prototype;return!(Hi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Tx(e){return di(e)?{...e}:Array.isArray(e)?[...e]:e}function iF(e){let n=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&n++;return n}var rF=e=>{let n=typeof e;switch(n){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 Error(`Unknown data type: ${n}`)}},gs=new Set(["string","number","symbol"]),Ex=new Set(["string","number","bigint","boolean","symbol","undefined"]);function $n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function At(e,n,r){let a=new e._zod.constr(n??e._zod.def);return(!n||r!=null&&r.parent)&&(a._zod.parent=e),a}function R(e){let n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if((n==null?void 0:n.message)!==void 0){if((n==null?void 0:n.error)!==void 0)throw Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function aF(e){let n;return new Proxy({},{get(r,a,i){return n??(n=e()),Reflect.get(n,a,i)},set(r,a,i,o){return n??(n=e()),Reflect.set(n,a,i,o)},has(r,a){return n??(n=e()),Reflect.has(n,a)},deleteProperty(r,a){return n??(n=e()),Reflect.deleteProperty(n,a)},ownKeys(r){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(r,a){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,a)},defineProperty(r,a,i){return n??(n=e()),Reflect.defineProperty(n,a,i)}})}function Y(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Zx(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var Dx={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]},Ax={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function oF(e,n){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=zn(e._zod.def,{get shape(){let o={};for(let s in n){if(!(s in r.shape))throw Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=r.shape[s])}return Wn(this,"shape",o),o},checks:[]});return At(e,i)}function sF(e,n){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=zn(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let s in n){if(!(s in r.shape))throw Error(`Unrecognized key: "${s}"`);n[s]&&delete o[s]}return Wn(this,"shape",o),o},checks:[]});return At(e,i)}function uF(e,n){if(!di(n))throw 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 o in n)if(Object.getOwnPropertyDescriptor(i,o)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=zn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...n};return Wn(this,"shape",i),i}});return At(e,a)}function lF(e,n){if(!di(n))throw Error("Invalid input to safeExtend: expected a plain object");let r=zn(e._zod.def,{get shape(){let a={...e._zod.def.shape,...n};return Wn(this,"shape",a),a}});return At(e,r)}function cF(e,n){let r=zn(e._zod.def,{get shape(){let a={...e._zod.def.shape,...n._zod.def.shape};return Wn(this,"shape",a),a},get catchall(){return n._zod.def.catchall},checks:[]});return At(e,r)}function dF(e,n,r){let a=n._zod.def.checks;if(a&&a.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=zn(n._zod.def,{get shape(){let o=n._zod.def.shape,s={...o};if(r)for(let u in r){if(!(u in o))throw Error(`Unrecognized key: "${u}"`);r[u]&&(s[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)s[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return Wn(this,"shape",s),s},checks:[]});return At(n,i)}function fF(e,n,r){let a=zn(n._zod.def,{get shape(){let i=n._zod.def.shape,o={...i};if(r)for(let s in r){if(!(s in o))throw Error(`Unrecognized key: "${s}"`);r[s]&&(o[s]=new e({type:"nonoptional",innerType:i[s]}))}else for(let s in i)o[s]=new e({type:"nonoptional",innerType:i[s]});return Wn(this,"shape",o),o}});return At(n,a)}function Yn(e,n=0){var r;if(e.aborted===!0)return!0;for(let a=n;a<e.issues.length;a++)if(((r=e.issues[a])==null?void 0:r.continue)!==!0)return!0;return!1}function Vt(e,n){return n.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function Or(e){return typeof e=="string"?e:e==null?void 0:e.message}function jt(e,n,r){var i,o,s,u,l,c;let a={...e,path:e.path??[]};if(!e.message){let d=Or((s=(o=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:o.error)==null?void 0:s.call(o,e))??Or((u=n==null?void 0:n.error)==null?void 0:u.call(n,e))??Or((l=r.customError)==null?void 0:l.call(r,e))??Or((c=r.localeError)==null?void 0:c.call(r,e))??"Invalid input";a.message=d}return delete a.inst,delete a.continue,!(n!=null&&n.reportInput)&&delete a.input,a}function Eu(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Zu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function te(e){let n=typeof e;switch(n){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 n}function bs(...e){let[n,r,a]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:a}:{...n}}function mF(e){return Object.entries(e).filter(([n,r])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}function Cx(e){let n=atob(e),r=new Uint8Array(n.length);for(let a=0;a<n.length;a++)r[a]=n.charCodeAt(a);return r}function Rx(e){let n="";for(let r=0;r<e.length;r++)n+=String.fromCharCode(e[r]);return btoa(n)}function pF(e){let n=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-n.length%4)%4);return Cx(n+r)}function hF(e){return Rx(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function vF(e){let n=e.replace(/^0x/,"");if(n.length%2!==0)throw Error("Invalid hex string length");let r=new Uint8Array(n.length/2);for(let a=0;a<n.length;a+=2)r[a/2]=Number.parseInt(n.slice(a,a+2),16);return r}function gF(e){return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}class bF{constructor(...n){}}var Mx=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,vs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Em=O("$ZodError",Mx),$t=O("$ZodError",Mx,{Parent:Error});function Zm(e,n=r=>r.message){let r={},a=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(n(i))):a.push(n(i));return{formErrors:a,fieldErrors:r}}function Dm(e,n=r=>r.message){let r={_errors:[]},a=i=>{for(let o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>a({issues:s}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)r._errors.push(n(o));else{let s=r,u=0;for(;u<o.path.length;){let l=o.path[u];u!==o.path.length-1?s[l]=s[l]||{_errors:[]}:(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(o))),s=s[l],u++}}};return a(e),r}function Lx(e,n=r=>r.message){let r={errors:[]},a=(i,o=[])=>{var s,u;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>a({issues:c},l.path));else if(l.code==="invalid_key")a({issues:l.issues},l.path);else if(l.code==="invalid_element")a({issues:l.issues},l.path);else{let c=[...o,...l.path];if(c.length===0){r.errors.push(n(l));continue}let d=r,f=0;for(;f<c.length;){let m=c[f],p=f===c.length-1;typeof m=="string"?(d.properties??(d.properties={}),(s=d.properties)[m]??(s[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(u=d.items)[m]??(u[m]={errors:[]}),d=d.items[m]),p&&d.errors.push(n(l)),f++}}};return a(e),r}function Fx(e){let n=[],r=e.map(a=>typeof a=="object"?a.key:a);for(let a of r)typeof a=="number"?n.push(`[${a}]`):typeof a=="symbol"?n.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?n.push(`[${JSON.stringify(a)}]`):(n.length&&n.push("."),n.push(a));return n.join("")}function Jx(e){var a;let n=[],r=[...e.issues].sort((i,o)=>(i.path??[]).length-(o.path??[]).length);for(let i of r)n.push(`✖ ${i.message}`),(a=i.path)!=null&&a.length&&n.push(` → at ${Fx(i.path)}`);return n.join(`
|
|
189
|
+
`)}var Aa=e=>(n,r,a,i)=>{let o=a?Object.assign(a,{async:!1}):{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ri;if(s.issues.length){let u=new((i==null?void 0:i.Err)??e)(s.issues.map(l=>jt(l,o,it())));throw Tm(u,i==null?void 0:i.callee),u}return s.value},Ic=Aa($t),Ca=e=>async(n,r,a,i)=>{let o=a?Object.assign(a,{async:!0}):{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new((i==null?void 0:i.Err)??e)(s.issues.map(l=>jt(l,o,it())));throw Tm(u,i==null?void 0:i.callee),u}return s.value},Sc=Ca($t),Ra=e=>(n,r,a)=>{let i=a?{...a,async:!1}:{async:!1},o=n._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new ri;return o.issues.length?{success:!1,error:new(e??Em)(o.issues.map(s=>jt(s,i,it())))}:{success:!0,data:o.value}},qx=Ra($t),Ma=e=>async(n,r,a)=>{let i=a?Object.assign(a,{async:!0}):{async:!0},o=n._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>jt(s,i,it())))}:{success:!0,data:o.value}},Vx=Ma($t),Am=e=>(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Aa(e)(n,r,i)},_F=Am($t),Cm=e=>(n,r,a)=>Aa(e)(n,r,a),yF=Cm($t),Rm=e=>async(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ca(e)(n,r,i)},$F=Rm($t),Mm=e=>async(n,r,a)=>Ca(e)(n,r,a),kF=Mm($t),Lm=e=>(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ra(e)(n,r,i)},wF=Lm($t),Fm=e=>(n,r,a)=>Ra(e)(n,r,a),xF=Fm($t),Jm=e=>async(n,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ma(e)(n,r,i)},IF=Jm($t),qm=e=>async(n,r,a)=>Ma(e)(n,r,a),SF=qm($t),_i={};Sn(_i,{xid:()=>Bx,uuid7:()=>UF,uuid6:()=>PF,uuid4:()=>OF,uuid:()=>Gi,uppercase:()=>k6,unicodeEmail:()=>t6,undefined:()=>y6,ulid:()=>Gx,time:()=>m6,string:()=>h6,sha512_hex:()=>XF,sha512_base64url:()=>QF,sha512_base64:()=>YF,sha384_hex:()=>GF,sha384_base64url:()=>KF,sha384_base64:()=>BF,sha256_hex:()=>VF,sha256_base64url:()=>HF,sha256_base64:()=>WF,sha1_hex:()=>FF,sha1_base64url:()=>qF,sha1_base64:()=>JF,rfc5322Email:()=>jF,number:()=>Wm,null:()=>_6,nanoid:()=>Xx,md5_hex:()=>RF,md5_base64url:()=>LF,md5_base64:()=>MF,mac:()=>a6,lowercase:()=>$6,ksuid:()=>Kx,ipv6:()=>r6,ipv4:()=>i6,integer:()=>g6,idnEmail:()=>TF,html5Email:()=>NF,hostname:()=>DF,hex:()=>CF,guid:()=>Qx,extendedDuration:()=>zF,emoji:()=>n6,email:()=>e6,e164:()=>l6,duration:()=>Yx,domain:()=>AF,datetime:()=>p6,date:()=>d6,cuid2:()=>Hx,cuid:()=>Wx,cidrv6:()=>s6,cidrv4:()=>o6,browserEmail:()=>EF,boolean:()=>b6,bigint:()=>v6,base64url:()=>Vm,base64:()=>u6});var Wx=/^[cC][^\s-]{8,}$/,Hx=/^[0-9a-z]+$/,Gx=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Bx=/^[0-9a-vA-V]{20}$/,Kx=/^[A-Za-z0-9]{27}$/,Xx=/^[a-zA-Z0-9_-]{21}$/,Yx=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,zF=/^[-+]?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)?)??$/,Qx=/^([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})$/,Gi=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)$/,OF=Gi(4),PF=Gi(6),UF=Gi(7),e6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,NF=/^[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])?)*$/,jF=/^(([^<>()\[\]\\.,;:\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,}))$/,t6=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,TF=t6,EF=/^[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])?)*$/,ZF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function n6(){return new RegExp(ZF,"u")}var i6=/^(?:(?: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])$/,r6=/^(([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}|:))$/,a6=e=>{let n=$n(e??":");return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`)},o6=/^((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])$/,s6=/^(([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])$/,u6=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Vm=/^[A-Za-z0-9_-]*$/,DF=/^(?=.{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])?)*\.?$/,AF=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,l6=/^\+[1-9]\d{6,14}$/,c6="(?:(?:\\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])))",d6=new RegExp(`^${c6}$`);function f6(e){return typeof e.precision=="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function m6(e){return new RegExp(`^${f6(e)}$`)}function p6(e){let n=f6({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${n}(?:${r.join("|")})`;return new RegExp(`^${c6}T(?:${a})$`)}var h6=e=>{let n=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},v6=/^-?\d+n?$/,g6=/^-?\d+$/,Wm=/^-?\d+(?:\.\d+)?$/,b6=/^(?:true|false)$/i,_6=/^null$/i,y6=/^undefined$/i,$6=/^[^A-Z]*$/,k6=/^[^a-z]*$/,CF=/^[0-9a-fA-F]*$/;function La(e,n){return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`)}function Fa(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var RF=/^[0-9a-fA-F]{32}$/,MF=La(22,"=="),LF=Fa(22),FF=/^[0-9a-fA-F]{40}$/,JF=La(27,"="),qF=Fa(27),VF=/^[0-9a-fA-F]{64}$/,WF=La(43,"="),HF=Fa(43),GF=/^[0-9a-fA-F]{96}$/,BF=La(64,""),KF=Fa(64),XF=/^[0-9a-fA-F]{128}$/,YF=La(86,"=="),QF=Fa(86),Me=O("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),w6={number:"number",bigint:"bigint",object:"date"},Hm=O("$ZodCheckLessThan",(e,n)=>{Me.init(e,n);let r=w6[typeof n.value];e._zod.onattach.push(a=>{let i=a._zod.bag,o=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<o&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=a=>{(n.inclusive?a.value<=n.value:a.value<n.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:a.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Gm=O("$ZodCheckGreaterThan",(e,n)=>{Me.init(e,n);let r=w6[typeof n.value];e._zod.onattach.push(a=>{let i=a._zod.bag,o=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>o&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=a=>{(n.inclusive?a.value>=n.value:a.value>n.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:a.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),x6=O("$ZodCheckMultipleOf",(e,n)=>{Me.init(e,n),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):Ux(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),I6=O("$ZodCheckNumberFormat",(e,n)=>{var s;Me.init(e,n),n.format=n.format||"float64";let r=(s=n.format)==null?void 0:s.includes("int"),a=r?"int":"number",[i,o]=Dx[n.format];e._zod.onattach.push(u=>{let l=u._zod.bag;l.format=n.format,l.minimum=i,l.maximum=o,r&&(l.pattern=g6)}),e._zod.check=u=>{let l=u.value;if(r){if(!Number.isInteger(l)){u.issues.push({expected:a,format:n.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?u.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!n.abort}):u.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!n.abort});return}}l<i&&u.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),l>o&&u.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!n.abort})}}),S6=O("$ZodCheckBigIntFormat",(e,n)=>{Me.init(e,n);let[r,a]=Ax[n.format];e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=n.format,o.minimum=r,o.maximum=a}),e._zod.check=i=>{let o=i.value;o<r&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!n.abort}),o>a&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!n.abort})}}),z6=O("$ZodCheckMaxSize",(e,n)=>{var r;Me.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!bi(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(a._zod.bag.maximum=n.maximum)}),e._zod.check=a=>{let i=a.value;i.size<=n.maximum||a.issues.push({origin:Eu(i),code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),O6=O("$ZodCheckMinSize",(e,n)=>{var r;Me.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!bi(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(a._zod.bag.minimum=n.minimum)}),e._zod.check=a=>{let i=a.value;i.size>=n.minimum||a.issues.push({origin:Eu(i),code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),P6=O("$ZodCheckSizeEquals",(e,n)=>{var r;Me.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!bi(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=a=>{let i=a.value,o=i.size;if(o===n.size)return;let s=o>n.size;a.issues.push({origin:Eu(i),...s?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!n.abort})}}),U6=O("$ZodCheckMaxLength",(e,n)=>{var r;Me.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!bi(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(a._zod.bag.maximum=n.maximum)}),e._zod.check=a=>{let i=a.value;if(i.length<=n.maximum)return;let o=Zu(i);a.issues.push({origin:o,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),N6=O("$ZodCheckMinLength",(e,n)=>{var r;Me.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!bi(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(a._zod.bag.minimum=n.minimum)}),e._zod.check=a=>{let i=a.value;if(i.length>=n.minimum)return;let o=Zu(i);a.issues.push({origin:o,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),j6=O("$ZodCheckLengthEquals",(e,n)=>{var r;Me.init(e,n),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!bi(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=a=>{let i=a.value,o=i.length;if(o===n.length)return;let s=Zu(i),u=o>n.length;a.issues.push({origin:s,...u?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!n.abort})}}),Ja=O("$ZodCheckStringFormat",(e,n)=>{var r,a;Me.init(e,n),e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=n.format,n.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:n.format,input:i.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(a=e._zod).check??(a.check=()=>{})}),T6=O("$ZodCheckRegex",(e,n)=>{Ja.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),E6=O("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=$6),Ja.init(e,n)}),Z6=O("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=k6),Ja.init(e,n)}),D6=O("$ZodCheckIncludes",(e,n)=>{Me.init(e,n);let r=$n(n.includes),a=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=a,e._zod.onattach.push(i=>{let o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=i=>{i.value.includes(n.includes,n.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:i.value,inst:e,continue:!n.abort})}}),A6=O("$ZodCheckStartsWith",(e,n)=>{Me.init(e,n);let r=new RegExp(`^${$n(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(n.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:a.value,inst:e,continue:!n.abort})}}),C6=O("$ZodCheckEndsWith",(e,n)=>{Me.init(e,n);let r=new RegExp(`.*${$n(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(n.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:a.value,inst:e,continue:!n.abort})}});function Rg(e,n,r){e.issues.length&&n.issues.push(...Vt(r,e.issues))}var R6=O("$ZodCheckProperty",(e,n)=>{Me.init(e,n),e._zod.check=r=>{let a=n.schema._zod.run({value:r.value[n.property],issues:[]},{});if(a instanceof Promise)return a.then(i=>Rg(i,r,n.property));Rg(a,r,n.property)}}),M6=O("$ZodCheckMimeType",(e,n)=>{Me.init(e,n);let r=new Set(n.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=n.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:n.mime,input:a.value.type,inst:e,continue:!n.abort})}}),L6=O("$ZodCheckOverwrite",(e,n)=>{Me.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class F6{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}let r=n.split(`
|
|
190
|
+
`).filter(o=>o),a=Math.min(...r.map(o=>o.length-o.trimStart().length)),i=r.map(o=>o.slice(a)).map(o=>" ".repeat(this.indent*2)+o);for(let o of i)this.content.push(o)}compile(){let n=Function,r=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new n(...r,a.join(`
|
|
191
|
+
`))}}var J6={major:4,minor:3,patch:5},ae=O("$ZodType",(e,n)=>{var i;var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=J6;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let o of a)for(let s of o._zod.onattach)s(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{let o=(u,l,c)=>{let d=Yn(u),f;for(let m of l){if(m._zod.def.when){if(!m._zod.def.when(u))continue}else if(d)continue;let p=u.issues.length,h=m._zod.check(u);if(h instanceof Promise&&(c==null?void 0:c.async)===!1)throw new ri;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,u.issues.length!==p&&(d||(d=Yn(u,p)))});else{if(u.issues.length===p)continue;d||(d=Yn(u,p))}}return f?f.then(()=>u):u},s=(u,l,c)=>{if(Yn(u))return u.aborted=!0,u;let d=o(l,a,c);if(d instanceof Promise){if(c.async===!1)throw new ri;return d.then(f=>e._zod.parse(f,c))}return e._zod.parse(d,c)};e._zod.run=(u,l)=>{if(l.skipChecks)return e._zod.parse(u,l);if(l.direction==="backward"){let d=e._zod.parse({value:u.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(f=>s(f,u,l)):s(d,u,l)}let c=e._zod.parse(u,l);if(c instanceof Promise){if(l.async===!1)throw new ri;return c.then(d=>o(d,a,l))}return o(c,a,l)}}de(e,"~standard",()=>({validate:o=>{var s;try{let u=qx(e,o);return u.success?{value:u.data}:{issues:(s=u.error)==null?void 0:s.issues}}catch{return Vx(e,o).then(l=>{var c;return l.success?{value:l.data}:{issues:(c=l.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),qa=O("$ZodString",(e,n)=>{var r;ae.init(e,n),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??h6(e._zod.bag),e._zod.parse=(a,i)=>{if(n.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Oe=O("$ZodStringFormat",(e,n)=>{Ja.init(e,n),qa.init(e,n)}),q6=O("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=Qx),Oe.init(e,n)}),V6=O("$ZodUUID",(e,n)=>{if(n.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Gi(r))}else n.pattern??(n.pattern=Gi());Oe.init(e,n)}),W6=O("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=e6),Oe.init(e,n)}),H6=O("$ZodURL",(e,n)=>{Oe.init(e,n),e._zod.check=r=>{try{let a=r.value.trim(),i=new URL(a);n.hostname&&(n.hostname.lastIndex=0,!n.hostname.test(i.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,!n.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=i.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),G6=O("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=n6()),Oe.init(e,n)}),B6=O("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=Xx),Oe.init(e,n)}),K6=O("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=Wx),Oe.init(e,n)}),X6=O("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=Hx),Oe.init(e,n)}),Y6=O("$ZodULID",(e,n)=>{n.pattern??(n.pattern=Gx),Oe.init(e,n)}),Q6=O("$ZodXID",(e,n)=>{n.pattern??(n.pattern=Bx),Oe.init(e,n)}),e4=O("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=Kx),Oe.init(e,n)}),t4=O("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=p6(n)),Oe.init(e,n)}),n4=O("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=d6),Oe.init(e,n)}),i4=O("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=m6(n)),Oe.init(e,n)}),r4=O("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=Yx),Oe.init(e,n)}),a4=O("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=i6),Oe.init(e,n),e._zod.bag.format="ipv4"}),o4=O("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=r6),Oe.init(e,n),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:!n.abort})}}}),s4=O("$ZodMAC",(e,n)=>{n.pattern??(n.pattern=a6(n.delimiter)),Oe.init(e,n),e._zod.bag.format="mac"}),u4=O("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=o6),Oe.init(e,n)}),l4=O("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=s6),Oe.init(e,n),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw Error();let[i,o]=a;if(!o)throw Error();let s=Number(o);if(`${s}`!==o||s<0||s>128)throw Error();new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function Bm(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var c4=O("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=u6),Oe.init(e,n),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:!n.abort})}});function d4(e){if(!Vm.test(e))return!1;let n=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return Bm(r)}var f4=O("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=Vm),Oe.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{d4(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),m4=O("$ZodE164",(e,n)=>{n.pattern??(n.pattern=l6),Oe.init(e,n)});function p4(e,n=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let i=JSON.parse(atob(a));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||n&&(!("alg"in i)||i.alg!==n))}catch{return!1}}var h4=O("$ZodJWT",(e,n)=>{Oe.init(e,n),e._zod.check=r=>{p4(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),v4=O("$ZodCustomStringFormat",(e,n)=>{Oe.init(e,n),e._zod.check=r=>{n.fn(r.value)||r.issues.push({code:"invalid_format",format:n.format,input:r.value,inst:e,continue:!n.abort})}}),Km=O("$ZodNumber",(e,n)=>{ae.init(e,n),e._zod.pattern=e._zod.bag.pattern??Wm,e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),g4=O("$ZodNumberFormat",(e,n)=>{I6.init(e,n),Km.init(e,n)}),Xm=O("$ZodBoolean",(e,n)=>{ae.init(e,n),e._zod.pattern=b6,e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),Ym=O("$ZodBigInt",(e,n)=>{ae.init(e,n),e._zod.pattern=v6,e._zod.parse=(r,a)=>{if(n.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}}),b4=O("$ZodBigIntFormat",(e,n)=>{S6.init(e,n),Ym.init(e,n)}),_4=O("$ZodSymbol",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;return typeof i=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),r}}),y4=O("$ZodUndefined",(e,n)=>{ae.init(e,n),e._zod.pattern=y6,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),r}}),$4=O("$ZodNull",(e,n)=>{ae.init(e,n),e._zod.pattern=_6,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),k4=O("$ZodAny",(e,n)=>{ae.init(e,n),e._zod.parse=r=>r}),w4=O("$ZodUnknown",(e,n)=>{ae.init(e,n),e._zod.parse=r=>r}),x4=O("$ZodNever",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),I4=O("$ZodVoid",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),S4=O("$ZodDate",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{if(n.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),r}});function Mg(e,n,r){e.issues.length&&n.issues.push(...Vt(r,e.issues)),n.value[r]=e.value}var z4=O("$ZodArray",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let s=0;s<i.length;s++){let u=i[s],l=n.element._zod.run({value:u,issues:[]},a);l instanceof Promise?o.push(l.then(c=>Mg(c,r,s))):Mg(l,r,s)}return o.length?Promise.all(o).then(()=>r):r}});function _s(e,n,r,a,i){if(e.issues.length){if(i&&!(r in a))return;n.issues.push(...Vt(r,e.issues))}e.value===void 0?r in a&&(n.value[r]=void 0):n.value[r]=e.value}function O4(e){var a,i,o,s;let n=Object.keys(e.shape);for(let u of n)if(!((s=(o=(i=(a=e.shape)==null?void 0:a[u])==null?void 0:i._zod)==null?void 0:o.traits)!=null&&s.has("$ZodType")))throw Error(`Invalid element at key "${u}": expected a Zod schema`);let r=Zx(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function P4(e,n,r,a,i,o){let s=[],u=i.keySet,l=i.catchall._zod,c=l.def.type,d=l.optout==="optional";for(let f in n){if(u.has(f))continue;if(c==="never"){s.push(f);continue}let m=l.run({value:n[f],issues:[]},a);m instanceof Promise?e.push(m.then(p=>_s(p,r,f,n,d))):_s(m,r,f,n,d)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:n,inst:o}),e.length?Promise.all(e).then(()=>r):r}var U4=O("$ZodObject",(e,n)=>{var s;if(ae.init(e,n),!((s=Object.getOwnPropertyDescriptor(n,"shape"))!=null&&s.get)){let u=n.shape;Object.defineProperty(n,"shape",{get:()=>{let l={...u};return Object.defineProperty(n,"shape",{value:l}),l}})}let r=Da(()=>O4(n));de(e._zod,"propValues",()=>{let u=n.shape,l={};for(let c in u){let d=u[c]._zod;if(d.values){l[c]??(l[c]=new Set);for(let f of d.values)l[c].add(f)}}return l});let a=Hi,i=n.catchall,o;e._zod.parse=(u,l)=>{o??(o=r.value);let c=u.value;if(!a(c))return u.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),u;u.value={};let d=[],f=o.shape;for(let m of o.keys){let p=f[m],h=p._zod.optout==="optional",g=p._zod.run({value:c[m],issues:[]},l);g instanceof Promise?d.push(g.then(b=>_s(b,u,m,c,h))):_s(g,u,m,c,h)}return i?P4(d,c,u,l,r.value,e):d.length?Promise.all(d).then(()=>u):u}}),N4=O("$ZodObjectJIT",(e,n)=>{U4.init(e,n);let r=e._zod.parse,a=Da(()=>O4(n)),i=f=>{var $,S;let m=new F6(["shape","payload","ctx"]),p=a.value,h=k=>{let w=xc(k);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};m.write("const input = payload.value;");let g=Object.create(null),b=0;for(let k of p.keys)g[k]=`key_${b++}`;m.write("const newResult = {};");for(let k of p.keys){let w=g[k],I=xc(k),x=((S=($=f[k])==null?void 0:$._zod)==null?void 0:S.optout)==="optional";m.write(`const ${w} = ${h(k)};`),x?m.write(`
|
|
192
|
+
if (${w}.issues.length) {
|
|
193
|
+
if (${I} in input) {
|
|
194
|
+
payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
195
|
+
...iss,
|
|
196
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
197
|
+
})));
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (${w}.value === undefined) {
|
|
202
|
+
if (${I} in input) {
|
|
203
|
+
newResult[${I}] = undefined;
|
|
204
|
+
}
|
|
205
|
+
} else {
|
|
206
|
+
newResult[${I}] = ${w}.value;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
`):m.write(`
|
|
210
|
+
if (${w}.issues.length) {
|
|
211
|
+
payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
212
|
+
...iss,
|
|
213
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
214
|
+
})));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (${w}.value === undefined) {
|
|
218
|
+
if (${I} in input) {
|
|
219
|
+
newResult[${I}] = undefined;
|
|
220
|
+
}
|
|
221
|
+
} else {
|
|
222
|
+
newResult[${I}] = ${w}.value;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");let v=m.compile();return(k,w)=>v(f,k,w)},o,s=Hi,u=!hs.jitless,l=u&&jx.value,c=n.catchall,d;e._zod.parse=(f,m)=>{d??(d=a.value);let p=f.value;return s(p)?u&&l&&(m==null?void 0:m.async)===!1&&m.jitless!==!0?(o||(o=i(n.shape)),f=o(f,m),c?P4([],p,f,m,d,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),f)}});function Lg(e,n,r,a){for(let o of e)if(o.issues.length===0)return n.value=o.value,n;let i=e.filter(o=>!Yn(o));return i.length===1?(n.value=i[0].value,i[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(s=>jt(s,a,it())))}),n)}var Du=O("$ZodUnion",(e,n)=>{ae.init(e,n),de(e._zod,"optin",()=>n.options.some(i=>i._zod.optin==="optional")?"optional":void 0),de(e._zod,"optout",()=>n.options.some(i=>i._zod.optout==="optional")?"optional":void 0),de(e._zod,"values",()=>{if(n.options.every(i=>i._zod.values))return new Set(n.options.flatMap(i=>Array.from(i._zod.values)))}),de(e._zod,"pattern",()=>{if(n.options.every(i=>i._zod.pattern)){let i=n.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Tu(o.source)).join("|")})$`)}});let r=n.options.length===1,a=n.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return a(i,o);let s=!1,u=[];for(let l of n.options){let c=l._zod.run({value:i.value,issues:[]},o);if(c instanceof Promise)u.push(c),s=!0;else{if(c.issues.length===0)return c;u.push(c)}}return s?Promise.all(u).then(l=>Lg(l,i,e,o)):Lg(u,i,e,o)}});function Fg(e,n,r,a){let i=e.filter(o=>o.issues.length===0);return i.length===1?(n.value=i[0].value,n):(i.length===0?n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(s=>jt(s,a,it())))}):n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:[],inclusive:!1}),n)}var j4=O("$ZodXor",(e,n)=>{Du.init(e,n),n.inclusive=!1;let r=n.options.length===1,a=n.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return a(i,o);let s=!1,u=[];for(let l of n.options){let c=l._zod.run({value:i.value,issues:[]},o);c instanceof Promise?(u.push(c),s=!0):u.push(c)}return s?Promise.all(u).then(l=>Fg(l,i,e,o)):Fg(u,i,e,o)}}),T4=O("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,Du.init(e,n);let r=e._zod.parse;de(e._zod,"propValues",()=>{let i={};for(let o of n.options){let s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw Error(`Invalid discriminated union option at index "${n.options.indexOf(o)}"`);for(let[u,l]of Object.entries(s)){i[u]||(i[u]=new Set);for(let c of l)i[u].add(c)}}return i});let a=Da(()=>{var s;let i=n.options,o=new Map;for(let u of i){let l=(s=u._zod.propValues)==null?void 0:s[n.discriminator];if(!l||l.size===0)throw Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`);for(let c of l){if(o.has(c))throw Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,u)}}return o});e._zod.parse=(i,o)=>{let s=i.value;if(!Hi(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let u=a.value.get(s==null?void 0:s[n.discriminator]);return u?u._zod.run(i,o):n.unionFallback?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,input:s,path:[n.discriminator],inst:e}),i)}}),E4=O("$ZodIntersection",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value,o=n.left._zod.run({value:i,issues:[]},a),s=n.right._zod.run({value:i,issues:[]},a);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([u,l])=>Jg(r,u,l)):Jg(r,o,s)}});function zc(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(di(e)&&di(n)){let r=Object.keys(n),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),i={...e,...n};for(let o of a){let s=zc(e[o],n[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let a=0;a<e.length;a++){let i=e[a],o=n[a],s=zc(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Jg(e,n,r){let a=new Map,i;for(let u of n.issues)if(u.code==="unrecognized_keys"){i??(i=u);for(let l of u.keys)a.has(l)||a.set(l,{}),a.get(l).l=!0}else e.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let l of u.keys)a.has(l)||a.set(l,{}),a.get(l).r=!0;else e.issues.push(u);let o=[...a].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(o.length&&i&&e.issues.push({...i,keys:o}),Yn(e))return e;let s=zc(n.value,r.value);if(!s.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var Qm=O("$ZodTuple",(e,n)=>{ae.init(e,n);let r=n.items;e._zod.parse=(a,i)=>{let o=a.value;if(!Array.isArray(o))return a.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let s=[],u=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!n.rest){let d=o.length>r.length,f=o.length<l-1;if(d||f)return a.issues.push({...d?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),a}let c=-1;for(let d of r){if(c++,c>=o.length&&c>=l)continue;let f=d._zod.run({value:o[c],issues:[]},i);f instanceof Promise?s.push(f.then(m=>wo(m,a,c))):wo(f,a,c)}if(n.rest){let d=o.slice(r.length);for(let f of d){c++;let m=n.rest._zod.run({value:f,issues:[]},i);m instanceof Promise?s.push(m.then(p=>wo(p,a,c))):wo(m,a,c)}}return s.length?Promise.all(s).then(()=>a):a}});function wo(e,n,r){e.issues.length&&n.issues.push(...Vt(r,e.issues)),n.value[r]=e.value}var Z4=O("$ZodRecord",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!di(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let o=[],s=n.keyType._zod.values;if(s){r.value={};let u=new Set;for(let c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){u.add(typeof c=="number"?c.toString():c);let d=n.valueType._zod.run({value:i[c],issues:[]},a);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&r.issues.push(...Vt(c,f.issues)),r.value[c]=f.value})):(d.issues.length&&r.issues.push(...Vt(c,d.issues)),r.value[c]=d.value)}let l;for(let c in i)u.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(i)){if(u==="__proto__")continue;let l=n.keyType._zod.run({value:u,issues:[]},a);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Wm.test(u)&&l.issues.length&&l.issues.some(d=>d.code==="invalid_type"&&d.expected==="number")){let d=n.keyType._zod.run({value:Number(u),issues:[]},a);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){n.mode==="loose"?r.value[u]=i[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>jt(d,a,it())),input:u,path:[u],inst:e});continue}let c=n.valueType._zod.run({value:i[u],issues:[]},a);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&r.issues.push(...Vt(u,d.issues)),r.value[l.value]=d.value})):(c.issues.length&&r.issues.push(...Vt(u,c.issues)),r.value[l.value]=c.value)}}return o.length?Promise.all(o).then(()=>r):r}}),D4=O("$ZodMap",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let o=[];r.value=new Map;for(let[s,u]of i){let l=n.keyType._zod.run({value:s,issues:[]},a),c=n.valueType._zod.run({value:u,issues:[]},a);l instanceof Promise||c instanceof Promise?o.push(Promise.all([l,c]).then(([d,f])=>{qg(d,f,r,s,i,e,a)})):qg(l,c,r,s,i,e,a)}return o.length?Promise.all(o).then(()=>r):r}});function qg(e,n,r,a,i,o,s){e.issues.length&&(gs.has(typeof a)?r.issues.push(...Vt(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(u=>jt(u,s,it()))})),n.issues.length&&(gs.has(typeof a)?r.issues.push(...Vt(a,n.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:a,issues:n.issues.map(u=>jt(u,s,it()))})),r.value.set(e.value,n.value)}var A4=O("$ZodSet",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let s of i){let u=n.valueType._zod.run({value:s,issues:[]},a);u instanceof Promise?o.push(u.then(l=>Vg(l,r))):Vg(u,r)}return o.length?Promise.all(o).then(()=>r):r}});function Vg(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var C4=O("$ZodEnum",(e,n)=>{ae.init(e,n);let r=jm(n.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(i=>gs.has(typeof i)).map(i=>typeof i=="string"?$n(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{let s=i.value;return a.has(s)||i.issues.push({code:"invalid_value",values:r,input:s,inst:e}),i}}),R4=O("$ZodLiteral",(e,n)=>{if(ae.init(e,n),n.values.length===0)throw Error("Cannot create literal schema with no valid values");let r=new Set(n.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.values.map(a=>typeof a=="string"?$n(a):a?$n(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,i)=>{let o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),a}}),M4=O("$ZodFile",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{let i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),r}}),L4=O("$ZodTransform",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ju(e.constructor.name);let i=n.transform(r.value,r);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new ri;return r.value=i,r}});function Wg(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}var ep=O("$ZodOptional",(e,n)=>{ae.init(e,n),e._zod.optin="optional",e._zod.optout="optional",de(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),de(e._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${Tu(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(n.innerType._zod.optin==="optional"){let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>Wg(o,r.value)):Wg(i,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,a)}}),F4=O("$ZodExactOptional",(e,n)=>{ep.init(e,n),de(e._zod,"values",()=>n.innerType._zod.values),de(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,a)=>n.innerType._zod.run(r,a)}),J4=O("$ZodNullable",(e,n)=>{ae.init(e,n),de(e._zod,"optin",()=>n.innerType._zod.optin),de(e._zod,"optout",()=>n.innerType._zod.optout),de(e._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${Tu(r.source)}|null)$`):void 0}),de(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:n.innerType._zod.run(r,a)}),q4=O("$ZodDefault",(e,n)=>{ae.init(e,n),e._zod.optin="optional",de(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);if(r.value===void 0)return r.value=n.defaultValue,r;let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>Hg(o,n)):Hg(i,n)}});function Hg(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var V4=O("$ZodPrefault",(e,n)=>{ae.init(e,n),e._zod.optin="optional",de(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,a))}),W4=O("$ZodNonOptional",(e,n)=>{ae.init(e,n),de(e._zod,"values",()=>{let r=n.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>Gg(o,e)):Gg(i,e)}});function Gg(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}var H4=O("$ZodSuccess",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ju("ZodSuccess");let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>(r.value=o.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),G4=O("$ZodCatch",(e,n)=>{ae.init(e,n),de(e._zod,"optin",()=>n.innerType._zod.optin),de(e._zod,"optout",()=>n.innerType._zod.optout),de(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(o=>(r.value=o.value,o.issues.length&&(r.value=n.catchValue({...r,error:{issues:o.issues.map(s=>jt(s,a,it()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=n.catchValue({...r,error:{issues:i.issues.map(o=>jt(o,a,it()))},input:r.value}),r.issues=[]),r)}}),B4=O("$ZodNaN",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),K4=O("$ZodPipe",(e,n)=>{ae.init(e,n),de(e._zod,"values",()=>n.in._zod.values),de(e._zod,"optin",()=>n.in._zod.optin),de(e._zod,"optout",()=>n.out._zod.optout),de(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){let o=n.out._zod.run(r,a);return o instanceof Promise?o.then(s=>xo(s,n.in,a)):xo(o,n.in,a)}let i=n.in._zod.run(r,a);return i instanceof Promise?i.then(o=>xo(o,n.out,a)):xo(i,n.out,a)}});function xo(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}var tp=O("$ZodCodec",(e,n)=>{ae.init(e,n),de(e._zod,"values",()=>n.in._zod.values),de(e._zod,"optin",()=>n.in._zod.optin),de(e._zod,"optout",()=>n.out._zod.optout),de(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,a)=>{if((a.direction||"forward")==="forward"){let i=n.in._zod.run(r,a);return i instanceof Promise?i.then(o=>Io(o,n,a)):Io(i,n,a)}else{let i=n.out._zod.run(r,a);return i instanceof Promise?i.then(o=>Io(o,n,a)):Io(i,n,a)}}});function Io(e,n,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let a=n.transform(e.value,e);return a instanceof Promise?a.then(i=>So(e,i,n.out,r)):So(e,a,n.out,r)}else{let a=n.reverseTransform(e.value,e);return a instanceof Promise?a.then(i=>So(e,i,n.in,r)):So(e,a,n.in,r)}}function So(e,n,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:n,issues:e.issues},a)}var X4=O("$ZodReadonly",(e,n)=>{ae.init(e,n),de(e._zod,"propValues",()=>n.innerType._zod.propValues),de(e._zod,"values",()=>n.innerType._zod.values),de(e._zod,"optin",()=>{var r,a;return(a=(r=n.innerType)==null?void 0:r._zod)==null?void 0:a.optin}),de(e._zod,"optout",()=>{var r,a;return(a=(r=n.innerType)==null?void 0:r._zod)==null?void 0:a.optout}),e._zod.parse=(r,a)=>{if(a.direction==="backward")return n.innerType._zod.run(r,a);let i=n.innerType._zod.run(r,a);return i instanceof Promise?i.then(Bg):Bg(i)}});function Bg(e){return e.value=Object.freeze(e.value),e}var Y4=O("$ZodTemplateLiteral",(e,n)=>{ae.init(e,n);let r=[];for(let a of n.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let i=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!i)throw Error(`Invalid template literal part: ${a._zod.traits}`);let o=i.startsWith("^")?1:0,s=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(o,s))}else if(a===null||Ex.has(typeof a))r.push($n(`${a}`));else throw Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,i)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),a)}),Q4=O("$ZodFunction",(e,n)=>(ae.init(e,n),e._def=n,e._zod.def=n,e.implement=r=>{if(typeof r!="function")throw Error("implement() must be called with a function");return function(...a){let i=e._def.input?Ic(e._def.input,a):a,o=Reflect.apply(r,this,i);return e._def.output?Ic(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw Error("implementAsync() must be called with a function");return async function(...a){let i=e._def.input?await Sc(e._def.input,a):a,o=await Reflect.apply(r,this,i);return e._def.output?await Sc(e._def.output,o):o}},e._zod.parse=(r,a)=>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 a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new Qm({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>new e.constructor({type:"function",input:e._def.input,output:r}),e)),eI=O("$ZodPromise",(e,n)=>{ae.init(e,n),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(i=>n.innerType._zod.run({value:i,issues:[]},a))}),tI=O("$ZodLazy",(e,n)=>{ae.init(e,n),de(e._zod,"innerType",()=>n.getter()),de(e._zod,"pattern",()=>{var r,a;return(a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.pattern}),de(e._zod,"propValues",()=>{var r,a;return(a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.propValues}),de(e._zod,"optin",()=>{var r,a;return((a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.optin)??void 0}),de(e._zod,"optout",()=>{var r,a;return((a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.optout)??void 0}),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),nI=O("$ZodCustom",(e,n)=>{Me.init(e,n),ae.init(e,n),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,i=n.fn(a);if(i instanceof Promise)return i.then(o=>Kg(o,r,a,e));Kg(i,r,a,e)}});function Kg(e,n,r,a){if(!e){let i={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(i.params=a._zod.def.params),n.issues.push(bs(i))}}var np={};Sn(np,{zhTW:()=>Dq,zhCN:()=>Eq,yo:()=>Cq,vi:()=>jq,uz:()=>Uq,ur:()=>Oq,uk:()=>aI,ua:()=>Sq,tr:()=>xq,th:()=>kq,ta:()=>yq,sv:()=>bq,sl:()=>vq,ru:()=>pq,pt:()=>fq,ps:()=>uq,pl:()=>cq,ota:()=>oq,no:()=>rq,nl:()=>nq,ms:()=>eq,mk:()=>YJ,lt:()=>KJ,ko:()=>GJ,km:()=>rI,kh:()=>WJ,ka:()=>qJ,ja:()=>FJ,it:()=>MJ,is:()=>CJ,id:()=>DJ,hy:()=>EJ,hu:()=>jJ,he:()=>UJ,frCA:()=>OJ,fr:()=>SJ,fi:()=>xJ,fa:()=>kJ,es:()=>yJ,eo:()=>bJ,en:()=>iI,de:()=>hJ,da:()=>mJ,cs:()=>dJ,ca:()=>lJ,bg:()=>sJ,be:()=>aJ,az:()=>iJ,ar:()=>tJ});var eJ=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function n(i){return e[i]??null}let r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${i.expected}، ولكن تم إدخال ${u}`:`مدخلات غير مقبولة: يفترض إدخال ${o}، ولكن تم إدخال ${u}`}case"invalid_value":return i.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Y(i.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?` أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${o} ${i.maximum.toString()} ${s.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${o} ${i.minimum.toString()} ${s.unit}`:`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${i.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${r[o.format]??i.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${i.divisor}`;case"unrecognized_keys":return`معرف${i.keys.length>1?"ات":""} غريب${i.keys.length>1?"ة":""}: ${A(i.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${i.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${i.origin}`;default:return"مدخل غير مقبول"}}};function tJ(){return{localeError:eJ()}}var nJ=()=>{let e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function n(i){return e[i]??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"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Yanlış dəyər: gözlənilən instanceof ${i.expected}, daxil olan ${u}`:`Yanlış dəyər: gözlənilən ${o}, daxil olan ${u}`}case"invalid_value":return i.values.length===1?`Yanlış dəyər: gözlənilən ${Y(i.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${o}${i.maximum.toString()} ${s.unit??"element"}`:`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Çox kiçik: gözlənilən ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`Çox kiçik: gözlənilən ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[o.format]??i.format}`}case"not_multiple_of":return`Yanlış ədəd: ${i.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${i.keys.length>1?"lar":""}: ${A(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${i.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function iJ(){return{localeError:nJ()}}function Xg(e,n,r,a){let i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?a:o===1?n:o>=2&&o<=4?r:a}var rJ=()=>{let e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function n(i){return e[i]??null}let r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},a={nan:"NaN",number:"лік",array:"масіў"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Няправільны ўвод: чакаўся instanceof ${i.expected}, атрымана ${u}`:`Няправільны ўвод: чакаўся ${o}, атрымана ${u}`}case"invalid_value":return i.values.length===1?`Няправільны ўвод: чакалася ${Y(i.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);if(s){let u=Number(i.maximum),l=Xg(u,s.unit.one,s.unit.few,s.unit.many);return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна ${s.verb} ${o}${i.maximum.toString()} ${l}`}return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна быць ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);if(s){let u=Number(i.minimum),l=Xg(u,s.unit.one,s.unit.few,s.unit.many);return`Занадта малы: чакалася, што ${i.origin} павінна ${s.verb} ${o}${i.minimum.toString()} ${l}`}return`Занадта малы: чакалася, што ${i.origin} павінна быць ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${r[o.format]??i.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${i.keys.length>1?"ключы":"ключ"}: ${A(i.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${i.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${i.origin}`;default:return"Няправільны ўвод"}}};function aJ(){return{localeError:rJ()}}var oJ=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function n(i){return e[i]??null}let r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},a={nan:"NaN",number:"число",array:"масив"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Невалиден вход: очакван instanceof ${i.expected}, получен ${u}`:`Невалиден вход: очакван ${o}, получен ${u}`}case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${Y(i.values[0])}`:`Невалидна опция: очаквано едно от ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${o}${i.maximum.toString()} ${s.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Твърде малко: очаква се ${i.origin} да съдържа ${o}${i.minimum.toString()} ${s.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;if(o.format==="starts_with")return`Невалиден низ: трябва да започва с "${o.prefix}"`;if(o.format==="ends_with")return`Невалиден низ: трябва да завършва с "${o.suffix}"`;if(o.format==="includes")return`Невалиден низ: трябва да включва "${o.includes}"`;if(o.format==="regex")return`Невалиден низ: трябва да съвпада с ${o.pattern}`;let s="Невалиден";return o.format==="emoji"&&(s="Невалидно"),o.format==="datetime"&&(s="Невалидно"),o.format==="date"&&(s="Невалидна"),o.format==="time"&&(s="Невалидно"),o.format==="duration"&&(s="Невалидна"),`${s} ${r[o.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function sJ(){return{localeError:oJ()}}var uJ=()=>{let e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(i){return e[i]??null}let r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Tipus invàlid: s'esperava instanceof ${i.expected}, s'ha rebut ${u}`:`Tipus invàlid: s'esperava ${o}, s'ha rebut ${u}`}case"invalid_value":return i.values.length===1?`Valor invàlid: s'esperava ${Y(i.values[0])}`:`Opció invàlida: s'esperava una de ${A(i.values," o ")}`;case"too_big":{let o=i.inclusive?"com a màxim":"menys de",s=n(i.origin);return s?`Massa gran: s'esperava que ${i.origin??"el valor"} contingués ${o} ${i.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"com a mínim":"més de",s=n(i.origin);return s?`Massa petit: s'esperava que ${i.origin} contingués ${o} ${i.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${r[o.format]??i.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${i.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${i.origin}`;default:return"Entrada invàlida"}}};function lJ(){return{localeError:uJ()}}var cJ=()=>{let e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function n(i){return e[i]??null}let r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Neplatný vstup: očekáváno instanceof ${i.expected}, obdrženo ${u}`:`Neplatný vstup: očekáváno ${o}, obdrženo ${u}`}case"invalid_value":return i.values.length===1?`Neplatný vstup: očekáváno ${Y(i.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Hodnota je příliš velká: ${i.origin??"hodnota"} musí mít ${o}${i.maximum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš velká: ${i.origin??"hodnota"} musí být ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Hodnota je příliš malá: ${i.origin??"hodnota"} musí mít ${o}${i.minimum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš malá: ${i.origin??"hodnota"} musí být ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${r[o.format]??i.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${i.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${A(i.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${i.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${i.origin}`;default:return"Neplatný vstup"}}};function dJ(){return{localeError:cJ()}}var fJ=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function n(i){return e[i]??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æt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",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"},a={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${u}`:`Ugyldigt input: forventede ${o}, fik ${u}`}case"invalid_value":return i.values.length===1?`Ugyldig værdi: forventede ${Y(i.values[0])}`:`Ugyldigt valg: forventede en af følgende ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin),u=a[i.origin]??i.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${o} ${i.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin),u=a[i.origin]??i.origin;return s?`For lille: forventede ${u} ${s.verb} ${o} ${i.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${A(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${i.origin}`;default:return"Ugyldigt input"}}};function mJ(){return{localeError:fJ()}}var pJ=()=>{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 n(i){return e[i]??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"},a={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ungültige Eingabe: erwartet instanceof ${i.expected}, erhalten ${u}`:`Ungültige Eingabe: erwartet ${o}, erhalten ${u}`}case"invalid_value":return i.values.length===1?`Ungültige Eingabe: erwartet ${Y(i.values[0])}`:`Ungültige Option: erwartet eine von ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Zu groß: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ist`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ist`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${r[o.format]??i.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${A(i.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${i.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${i.origin}`;default:return"Ungültige Eingabe"}}};function hJ(){return{localeError:pJ()}}var vJ=()=>{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 n(i){return e[i]??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"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return`Invalid input: expected ${o}, received ${u}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Y(i.values[0])}`:`Invalid option: expected one of ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function iI(){return{localeError:vJ()}}var gJ=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(i){return e[i]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendiĝis instanceof ${i.expected}, riceviĝis ${u}`:`Nevalida enigo: atendiĝis ${o}, riceviĝis ${u}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${Y(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Tro malgranda: atendiĝis ke ${i.origin} havu ${o}${i.minimum.toString()} ${s.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function bJ(){return{localeError:gJ()}}var _J=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(i){return e[i]??null}let r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Entrada inválida: se esperaba instanceof ${i.expected}, recibido ${u}`:`Entrada inválida: se esperaba ${o}, recibido ${u}`}case"invalid_value":return i.values.length===1?`Entrada inválida: se esperaba ${Y(i.values[0])}`:`Opción inválida: se esperaba una de ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin),u=a[i.origin]??i.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${o}${i.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin),u=a[i.origin]??i.origin;return s?`Demasiado pequeño: se esperaba que ${u} tuviera ${o}${i.minimum.toString()} ${s.unit}`:`Demasiado pequeño: se esperaba que ${u} fuera ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${r[o.format]??i.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Llave inválida en ${a[i.origin]??i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${a[i.origin]??i.origin}`;default:return"Entrada inválida"}}};function yJ(){return{localeError:_J()}}var $J=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function n(i){return e[i]??null}let r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},a={nan:"NaN",number:"عدد",array:"آرایه"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ورودی نامعتبر: میبایست instanceof ${i.expected} میبود، ${u} دریافت شد`:`ورودی نامعتبر: میبایست ${o} میبود، ${u} دریافت شد`}case"invalid_value":return i.values.length===1?`ورودی نامعتبر: میبایست ${Y(i.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${A(i.values,"|")} میبود`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`خیلی بزرگ: ${i.origin??"مقدار"} باید ${o}${i.maximum.toString()} ${s.unit??"عنصر"} باشد`:`خیلی بزرگ: ${i.origin??"مقدار"} باید ${o}${i.maximum.toString()} باشد`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`خیلی کوچک: ${i.origin} باید ${o}${i.minimum.toString()} ${s.unit} باشد`:`خیلی کوچک: ${i.origin} باید ${o}${i.minimum.toString()} باشد`}case"invalid_format":{let o=i;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${r[o.format]??i.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${i.divisor} باشد`;case"unrecognized_keys":return`کلید${i.keys.length>1?"های":""} ناشناس: ${A(i.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${i.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${i.origin}`;default:return"ورودی نامعتبر"}}};function kJ(){return{localeError:$J()}}var wJ=()=>{let e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function n(i){return e[i]??null}let r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${u}`}case"invalid_value":return i.values.length===1?`Virheellinen syöte: täytyy olla ${Y(i.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Liian suuri: ${s.subject} täytyy olla ${o}${i.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Liian pieni: ${s.subject} täytyy olla ${o}${i.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${A(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function xJ(){return{localeError:wJ()}}var IJ=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(i){return e[i]??null}let r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},a={nan:"NaN",number:"nombre",array:"tableau"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Entrée invalide : instanceof ${i.expected} attendu, ${u} reçu`:`Entrée invalide : ${o} attendu, ${u} reçu`}case"invalid_value":return i.values.length===1?`Entrée invalide : ${Y(i.values[0])} attendu`:`Option invalide : une valeur parmi ${A(i.values,"|")} attendue`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Trop grand : ${i.origin??"valeur"} doit ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"élément(s)"}`:`Trop grand : ${i.origin??"valeur"} doit être ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Trop petit : ${i.origin} doit ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Trop petit : ${i.origin} doit être ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${r[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${A(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function SJ(){return{localeError:IJ()}}var zJ=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(i){return e[i]??null}let r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Entrée invalide : attendu instanceof ${i.expected}, reçu ${u}`:`Entrée invalide : attendu ${o}, reçu ${u}`}case"invalid_value":return i.values.length===1?`Entrée invalide : attendu ${Y(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"≤":"<",s=n(i.origin);return s?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${o}${i.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"≥":">",s=n(i.origin);return s?`Trop petit : attendu que ${i.origin} ait ${o}${i.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${i.origin} soit ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${A(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function OJ(){return{localeError:zJ()}}var PJ=()=>{let e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},n={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=c=>c?e[c]:void 0,a=c=>{let d=r(c);return d?d.label:c??e.unknown.label},i=c=>`ה${a(c)}`,o=c=>{var d;return(((d=r(c))==null?void 0:d.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},s=c=>c?n[c]??null:null,u={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",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:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},l={nan:"NaN"};return c=>{var d;switch(c.code){case"invalid_type":{let f=c.expected,m=l[f??""]??a(f),p=te(c.input),h=l[p]??((d=e[p])==null?void 0:d.label)??p;return/^[A-Z]/.test(c.expected)?`קלט לא תקין: צריך להיות instanceof ${c.expected}, התקבל ${h}`:`קלט לא תקין: צריך להיות ${m}, התקבל ${h}`}case"invalid_value":{if(c.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Y(c.values[0])}`;let f=c.values.map(p=>Y(p));if(c.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${f[0]} או ${f[1]}`;let m=f[f.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${f.slice(0,-1).join(", ")} או ${m}`}case"too_big":{let f=s(c.origin),m=i(c.origin??"value");if(c.origin==="string")return`${(f==null?void 0:f.longLabel)??"ארוך"} מדי: ${m} צריכה להכיל ${c.maximum.toString()} ${(f==null?void 0:f.unit)??""} ${c.inclusive?"או פחות":"לכל היותר"}`.trim();if(c.origin==="number"){let g=c.inclusive?`קטן או שווה ל-${c.maximum}`:`קטן מ-${c.maximum}`;return`גדול מדי: ${m} צריך להיות ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"צריכה":"צריך",b=c.inclusive?`${c.maximum} ${(f==null?void 0:f.unit)??""} או פחות`:`פחות מ-${c.maximum} ${(f==null?void 0:f.unit)??""}`;return`גדול מדי: ${m} ${g} להכיל ${b}`.trim()}let p=c.inclusive?"<=":"<",h=o(c.origin??"value");return f!=null&&f.unit?`${f.longLabel} מדי: ${m} ${h} ${p}${c.maximum.toString()} ${f.unit}`:`${(f==null?void 0:f.longLabel)??"גדול"} מדי: ${m} ${h} ${p}${c.maximum.toString()}`}case"too_small":{let f=s(c.origin),m=i(c.origin??"value");if(c.origin==="string")return`${(f==null?void 0:f.shortLabel)??"קצר"} מדי: ${m} צריכה להכיל ${c.minimum.toString()} ${(f==null?void 0:f.unit)??""} ${c.inclusive?"או יותר":"לפחות"}`.trim();if(c.origin==="number"){let g=c.inclusive?`גדול או שווה ל-${c.minimum}`:`גדול מ-${c.minimum}`;return`קטן מדי: ${m} צריך להיות ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"צריכה":"צריך";if(c.minimum===1&&c.inclusive){let v=(c.origin==="set","לפחות פריט אחד");return`קטן מדי: ${m} ${g} להכיל ${v}`}let b=c.inclusive?`${c.minimum} ${(f==null?void 0:f.unit)??""} או יותר`:`יותר מ-${c.minimum} ${(f==null?void 0:f.unit)??""}`;return`קטן מדי: ${m} ${g} להכיל ${b}`.trim()}let p=c.inclusive?">=":">",h=o(c.origin??"value");return f!=null&&f.unit?`${f.shortLabel} מדי: ${m} ${h} ${p}${c.minimum.toString()} ${f.unit}`:`${(f==null?void 0:f.shortLabel)??"קטן"} מדי: ${m} ${h} ${p}${c.minimum.toString()}`}case"invalid_format":{let f=c;if(f.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${f.prefix}"`;if(f.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${f.suffix}"`;if(f.format==="includes")return`המחרוזת חייבת לכלול "${f.includes}"`;if(f.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${f.pattern}`;let m=u[f.format],p=(m==null?void 0:m.label)??f.format,h=((m==null?void 0:m.gender)??"m")==="f"?"תקינה":"תקין";return`${p} לא ${h}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${c.divisor}`;case"unrecognized_keys":return`מפתח${c.keys.length>1?"ות":""} לא מזוה${c.keys.length>1?"ים":"ה"}: ${A(c.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${i(c.origin??"array")}`;default:return"קלט לא תקין"}}};function UJ(){return{localeError:PJ()}}var NJ=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(i){return e[i]??null}let r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},a={nan:"NaN",number:"szám",array:"tömb"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Érvénytelen bemenet: a várt érték instanceof ${i.expected}, a kapott érték ${u}`:`Érvénytelen bemenet: a várt érték ${o}, a kapott érték ${u}`}case"invalid_value":return i.values.length===1?`Érvénytelen bemenet: a várt érték ${Y(i.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Túl nagy: ${i.origin??"érték"} mérete túl nagy ${o}${i.maximum.toString()} ${s.unit??"elem"}`:`Túl nagy: a bemeneti érték ${i.origin??"érték"} túl nagy: ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Túl kicsi: a bemeneti érték ${i.origin} mérete túl kicsi ${o}${i.minimum.toString()} ${s.unit}`:`Túl kicsi: a bemeneti érték ${i.origin} túl kicsi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[o.format]??i.format}`}case"not_multiple_of":return`Érvénytelen szám: ${i.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${i.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${i.origin}`;default:return"Érvénytelen bemenet"}}};function jJ(){return{localeError:NJ()}}function Yg(e,n,r){return Math.abs(e)===1?n:r}function xi(e){if(!e)return"";let n=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(n.includes(r)?"ն":"ը")}var TJ=()=>{let e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function n(i){return e[i]??null}let r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},a={nan:"NaN",number:"թիվ",array:"զանգված"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${i.expected}, ստացվել է ${u}`:`Սխալ մուտքագրում․ սպասվում էր ${o}, ստացվել է ${u}`}case"invalid_value":return i.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${Y(i.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);if(s){let u=Number(i.maximum),l=Yg(u,s.unit.one,s.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${xi(i.origin??"արժեք")} կունենա ${o}${i.maximum.toString()} ${l}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${xi(i.origin??"արժեք")} լինի ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);if(s){let u=Number(i.minimum),l=Yg(u,s.unit.one,s.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${xi(i.origin)} կունենա ${o}${i.minimum.toString()} ${l}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${xi(i.origin)} լինի ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${o.prefix}"-ով`:o.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${o.suffix}"-ով`:o.format==="includes"?`Սխալ տող․ պետք է պարունակի "${o.includes}"`:o.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${o.pattern} ձևաչափին`:`Սխալ ${r[o.format]??i.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${i.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${i.keys.length>1?"ներ":""}. ${A(i.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${xi(i.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${xi(i.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function EJ(){return{localeError:TJ()}}var ZJ=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(i){return e[i]??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"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${o}, diterima ${u}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${Y(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${o}${i.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Terlalu kecil: diharapkan ${i.origin} memiliki ${o}${i.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function DJ(){return{localeError:ZJ()}}var AJ=()=>{let e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function n(i){return e[i]??null}let r={regex:"gildi",email:"netfang",url:"vefslóð",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ími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",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ölugildi",jwt:"JWT",template_literal:"gildi"},a={nan:"NaN",number:"númer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Rangt gildi: Þú slóst inn ${u} þar sem á að vera instanceof ${i.expected}`:`Rangt gildi: Þú slóst inn ${u} þar sem á að vera ${o}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${Y(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${o}${i.maximum.toString()} ${s.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${o}${i.minimum.toString()} ${s.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ógildur strengur: verður að byrja á "${o.prefix}"`:o.format==="ends_with"?`Ógildur strengur: verður að enda á "${o.suffix}"`:o.format==="includes"?`Ógildur strengur: verður að innihalda "${o.includes}"`:o.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${A(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function CJ(){return{localeError:AJ()}}var RJ=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${u}`:`Input non valido: atteso ${o}, ricevuto ${u}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${Y(i.values[0])}`:`Opzione non valida: atteso uno tra ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Troppo grande: ${i.origin??"valore"} deve avere ${o}${i.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Troppo piccolo: ${i.origin} deve avere ${o}${i.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${i.origin} deve essere ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${A(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function MJ(){return{localeError:RJ()}}var LJ=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function n(i){return e[i]??null}let r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},a={nan:"NaN",number:"数値",array:"配列"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`無効な入力: instanceof ${i.expected}が期待されましたが、${u}が入力されました`:`無効な入力: ${o}が期待されましたが、${u}が入力されました`}case"invalid_value":return i.values.length===1?`無効な入力: ${Y(i.values[0])}が期待されました`:`無効な選択: ${A(i.values,"、")}のいずれかである必要があります`;case"too_big":{let o=i.inclusive?"以下である":"より小さい",s=n(i.origin);return s?`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${s.unit??"要素"}${o}必要があります`:`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${o}必要があります`}case"too_small":{let o=i.inclusive?"以上である":"より大きい",s=n(i.origin);return s?`小さすぎる値: ${i.origin}は${i.minimum.toString()}${s.unit}${o}必要があります`:`小さすぎる値: ${i.origin}は${i.minimum.toString()}${o}必要があります`}case"invalid_format":{let o=i;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${r[o.format]??i.format}`}case"not_multiple_of":return`無効な数値: ${i.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${i.keys.length>1?"群":""}: ${A(i.keys,"、")}`;case"invalid_key":return`${i.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${i.origin}内の無効な値`;default:return"無効な入力"}}};function FJ(){return{localeError:LJ()}}var JJ=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function n(i){return e[i]??null}let r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},a={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${i.expected}, მიღებული ${u}`:`არასწორი შეყვანა: მოსალოდნელი ${o}, მიღებული ${u}`}case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Y(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${A(i.values,"|")}-დან`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${o.prefix}"-ით`:o.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${o.suffix}"-ით`:o.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${o.includes}"-ს`:o.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${o.pattern}`:`არასწორი ${r[o.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${A(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function qJ(){return{localeError:JJ()}}var VJ=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function n(i){return e[i]??null}let r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},a={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${i.expected} ប៉ុន្តែទទួលបាន ${u}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o} ប៉ុន្តែទទួលបាន ${u}`}case"invalid_value":return i.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Y(i.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${o} ${i.maximum.toString()} ${s.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`តូចពេក៖ ត្រូវការ ${i.origin} ${o} ${i.minimum.toString()} ${s.unit}`:`តូចពេក៖ ត្រូវការ ${i.origin} ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[o.format]??i.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${i.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${A(i.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function rI(){return{localeError:VJ()}}function WJ(){return rI()}var HJ=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function n(i){return e[i]??null}let r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`잘못된 입력: 예상 타입은 instanceof ${i.expected}, 받은 타입은 ${u}입니다`:`잘못된 입력: 예상 타입은 ${o}, 받은 타입은 ${u}입니다`}case"invalid_value":return i.values.length===1?`잘못된 입력: 값은 ${Y(i.values[0])} 이어야 합니다`:`잘못된 옵션: ${A(i.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let o=i.inclusive?"이하":"미만",s=o==="미만"?"이어야 합니다":"여야 합니다",u=n(i.origin),l=(u==null?void 0:u.unit)??"요소";return u?`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()}${l} ${o}${s}`:`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()} ${o}${s}`}case"too_small":{let o=i.inclusive?"이상":"초과",s=o==="이상"?"이어야 합니다":"여야 합니다",u=n(i.origin),l=(u==null?void 0:u.unit)??"요소";return u?`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()}${l} ${o}${s}`:`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()} ${o}${s}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[o.format]??i.format}`}case"not_multiple_of":return`잘못된 숫자: ${i.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${A(i.keys,", ")}`;case"invalid_key":return`잘못된 키: ${i.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${i.origin}`;default:return"잘못된 입력"}}};function GJ(){return{localeError:HJ()}}var _r=e=>e.charAt(0).toUpperCase()+e.slice(1);function Qg(e){let n=Math.abs(e),r=n%10,a=n%100;return a>=11&&a<=19||r===0?"many":r===1?"one":"few"}var BJ=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function n(i,o,s,u){let l=e[i]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[u][s?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. pašto 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ė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},a={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${u}, o tikėtasi - instanceof ${i.expected}`:`Gautas tipas ${u}, o tikėtasi - ${o}`}case"invalid_value":return i.values.length===1?`Privalo būti ${Y(i.values[0])}`:`Privalo būti vienas iš ${A(i.values,"|")} pasirinkimų`;case"too_big":{let o=a[i.origin]??i.origin,s=n(i.origin,Qg(Number(i.maximum)),i.inclusive??!1,"smaller");if(s!=null&&s.verb)return`${_r(o??i.origin??"reikšmė")} ${s.verb} ${i.maximum.toString()} ${s.unit??"elementų"}`;let u=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${_r(o??i.origin??"reikšmė")} turi būti ${u} ${i.maximum.toString()} ${s==null?void 0:s.unit}`}case"too_small":{let o=a[i.origin]??i.origin,s=n(i.origin,Qg(Number(i.minimum)),i.inclusive??!1,"bigger");if(s!=null&&s.verb)return`${_r(o??i.origin??"reikšmė")} ${s.verb} ${i.minimum.toString()} ${s.unit??"elementų"}`;let u=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${_r(o??i.origin??"reikšmė")} turi būti ${u} ${i.minimum.toString()} ${s==null?void 0:s.unit}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Eilutė privalo prasidėti "${o.prefix}"`:o.format==="ends_with"?`Eilutė privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilutė privalo įtraukti "${o.includes}"`:o.format==="regex"?`Eilutė privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${A(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let o=a[i.origin]??i.origin;return`${_r(o??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function KJ(){return{localeError:BJ()}}var XJ=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function n(i){return e[i]??null}let r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},a={nan:"NaN",number:"број",array:"низа"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Грешен внес: се очекува instanceof ${i.expected}, примено ${u}`:`Грешен внес: се очекува ${o}, примено ${u}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Y(i.values[0])}`:`Грешана опција: се очекува една ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Премногу голем: се очекува ${i.origin??"вредноста"} да има ${o}${i.maximum.toString()} ${s.unit??"елементи"}`:`Премногу голем: се очекува ${i.origin??"вредноста"} да биде ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Премногу мал: се очекува ${i.origin} да има ${o}${i.minimum.toString()} ${s.unit}`:`Премногу мал: се очекува ${i.origin} да биде ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${A(i.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${i.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${i.origin}`;default:return"Грешен внес"}}};function YJ(){return{localeError:XJ()}}var QJ=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${u}`:`Input tidak sah: dijangka ${o}, diterima ${u}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${Y(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Terlalu besar: dijangka ${i.origin??"nilai"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Terlalu kecil: dijangka ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${A(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function eq(){return{localeError:QJ()}}var tq=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${o}, ontving ${u}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${Y(i.values[0])}`:`Ongeldige optie: verwacht één van ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin),u=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} is`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin),u=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} is`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function nq(){return{localeError:tq()}}var iq=()=>{let e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function n(i){return e[i]??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åde",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${u}`:`Ugyldig input: forventet ${o}, fikk ${u}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${Y(i.values[0])}`:`Ugyldig valg: forventet en av ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`For stor(t): forventet ${i.origin??"value"} til å ha ${o}${i.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til å ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`For lite(n): forventet ${i.origin} til å ha ${o}${i.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${i.origin} til å ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${A(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function rq(){return{localeError:iq()}}var aq=()=>{let e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function n(i){return e[i]??null}let r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Fâsit giren: umulan instanceof ${i.expected}, alınan ${u}`:`Fâsit giren: umulan ${o}, alınan ${u}`}case"invalid_value":return i.values.length===1?`Fâsit giren: umulan ${Y(i.values[0])}`:`Fâsit tercih: mûteberler ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Fazla büyük: ${i.origin??"value"}, ${o}${i.maximum.toString()} ${s.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${i.origin??"value"}, ${o}${i.maximum.toString()} olmalıydı.`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Fazla küçük: ${i.origin}, ${o}${i.minimum.toString()} ${s.unit} sahip olmalıydı.`:`Fazla küçük: ${i.origin}, ${o}${i.minimum.toString()} olmalıydı.`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${r[o.format]??i.format}`}case"not_multiple_of":return`Fâsit sayı: ${i.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`${i.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${i.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function oq(){return{localeError:aq()}}var sq=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function n(i){return e[i]??null}let r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},a={nan:"NaN",number:"عدد",array:"ارې"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ناسم ورودي: باید instanceof ${i.expected} وای, مګر ${u} ترلاسه شو`:`ناسم ورودي: باید ${o} وای, مګر ${u} ترلاسه شو`}case"invalid_value":return i.values.length===1?`ناسم ورودي: باید ${Y(i.values[0])} وای`:`ناسم انتخاب: باید یو له ${A(i.values,"|")} څخه وای`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`ډیر لوی: ${i.origin??"ارزښت"} باید ${o}${i.maximum.toString()} ${s.unit??"عنصرونه"} ولري`:`ډیر لوی: ${i.origin??"ارزښت"} باید ${o}${i.maximum.toString()} وي`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`ډیر کوچنی: ${i.origin} باید ${o}${i.minimum.toString()} ${s.unit} ولري`:`ډیر کوچنی: ${i.origin} باید ${o}${i.minimum.toString()} وي`}case"invalid_format":{let o=i;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${r[o.format]??i.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${i.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${i.keys.length>1?"کلیډونه":"کلیډ"}: ${A(i.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${i.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${i.origin} کې`;default:return"ناسمه ورودي"}}};function uq(){return{localeError:sq()}}var lq=()=>{let e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function n(i){return e[i]??null}let r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},a={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${i.expected}, otrzymano ${u}`:`Nieprawidłowe dane wejściowe: oczekiwano ${o}, otrzymano ${u}`}case"invalid_value":return i.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Y(i.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Za duża wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${o}${i.maximum.toString()} ${s.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Za mała wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${o}${i.minimum.toString()} ${s.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${r[o.format]??i.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${i.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${i.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function cq(){return{localeError:lq()}}var dq=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(i){return e[i]??null}let r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",number:"número",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Tipo inválido: esperado instanceof ${i.expected}, recebido ${u}`:`Tipo inválido: esperado ${o}, recebido ${u}`}case"invalid_value":return i.values.length===1?`Entrada inválida: esperado ${Y(i.values[0])}`:`Opção inválida: esperada uma das ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${o}${i.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Muito pequeno: esperado que ${i.origin} tivesse ${o}${i.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${r[o.format]??i.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Chave inválida em ${i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${i.origin}`;default:return"Campo inválido"}}};function fq(){return{localeError:dq()}}function eb(e,n,r,a){let i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?a:o===1?n:o>=2&&o<=4?r:a}var mq=()=>{let e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function n(i){return e[i]??null}let r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},a={nan:"NaN",number:"число",array:"массив"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Неверный ввод: ожидалось instanceof ${i.expected}, получено ${u}`:`Неверный ввод: ожидалось ${o}, получено ${u}`}case"invalid_value":return i.values.length===1?`Неверный ввод: ожидалось ${Y(i.values[0])}`:`Неверный вариант: ожидалось одно из ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);if(s){let u=Number(i.maximum),l=eb(u,s.unit.one,s.unit.few,s.unit.many);return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет иметь ${o}${i.maximum.toString()} ${l}`}return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);if(s){let u=Number(i.minimum),l=eb(u,s.unit.one,s.unit.few,s.unit.many);return`Слишком маленькое значение: ожидалось, что ${i.origin} будет иметь ${o}${i.minimum.toString()} ${l}`}return`Слишком маленькое значение: ожидалось, что ${i.origin} будет ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${r[o.format]??i.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспознанн${i.keys.length>1?"ые":"ый"} ключ${i.keys.length>1?"и":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${i.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${i.origin}`;default:return"Неверные входные данные"}}};function pq(){return{localeError:mq()}}var hq=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(i){return e[i]??null}let r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},a={nan:"NaN",number:"število",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pričakovano instanceof ${i.expected}, prejeto ${u}`:`Neveljaven vnos: pričakovano ${o}, prejeto ${u}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pričakovano ${Y(i.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} imelo ${o}${i.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Premajhno: pričakovano, da bo ${i.origin} imelo ${o}${i.minimum.toString()} ${s.unit}`:`Premajhno: pričakovano, da bo ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??i.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i ključi":" ključ"}: ${A(i.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function vq(){return{localeError:hq()}}var gq=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function n(i){return e[i]??null}let r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},a={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: förväntat instanceof ${i.expected}, fick ${u}`:`Ogiltig inmatning: förväntat ${o}, fick ${u}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: förväntat ${Y(i.values[0])}`:`Ogiltigt val: förväntade en av ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`För stor(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.maximum.toString()} ${s.unit??"element"}`:`För stor(t): förväntat ${i.origin??"värdet"} att ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`För lite(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.minimum.toString()} ${s.unit}`:`För lite(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${A(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${i.origin??"värdet"}`;default:return"Ogiltig input"}}};function bq(){return{localeError:gq()}}var _q=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function n(i){return e[i]??null}let r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${i.expected}, பெறப்பட்டது ${u}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${o}, பெறப்பட்டது ${u}`}case"invalid_value":return i.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Y(i.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${A(i.values,"|")} இல் ஒன்று`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${o}${i.maximum.toString()} ${s.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${o}${i.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${o}${i.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let o=i;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[o.format]??i.format}`}case"not_multiple_of":return`தவறான எண்: ${i.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${i.keys.length>1?"கள்":""}: ${A(i.keys,", ")}`;case"invalid_key":return`${i.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${i.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function yq(){return{localeError:_q()}}var $q=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function n(i){return e[i]??null}let r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},a={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${i.expected} แต่ได้รับ ${u}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${o} แต่ได้รับ ${u}`}case"invalid_value":return i.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Y(i.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"ไม่เกิน":"น้อยกว่า",s=n(i.origin);return s?`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${o} ${i.maximum.toString()} ${s.unit??"รายการ"}`:`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"อย่างน้อย":"มากกว่า",s=n(i.origin);return s?`น้อยกว่ากำหนด: ${i.origin} ควรมี${o} ${i.minimum.toString()} ${s.unit}`:`น้อยกว่ากำหนด: ${i.origin} ควรมี${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[o.format]??i.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${i.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${A(i.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${i.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${i.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function kq(){return{localeError:$q()}}var wq=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function n(i){return e[i]??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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Geçersiz değer: beklenen instanceof ${i.expected}, alınan ${u}`:`Geçersiz değer: beklenen ${o}, alınan ${u}`}case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${Y(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Çok büyük: beklenen ${i.origin??"değer"} ${o}${i.maximum.toString()} ${s.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Çok küçük: beklenen ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`Çok küçük: beklenen ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Geçersiz metin: "${o.prefix}" ile başlamalı`:o.format==="ends_with"?`Geçersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Geçersiz metin: "${o.includes}" içermeli`:o.format==="regex"?`Geçersiz metin: ${o.pattern} desenine uymalı`:`Geçersiz ${r[o.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${A(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function xq(){return{localeError:wq()}}var Iq=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function n(i){return e[i]??null}let r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},a={nan:"NaN",number:"число",array:"масив"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Неправильні вхідні дані: очікується instanceof ${i.expected}, отримано ${u}`:`Неправильні вхідні дані: очікується ${o}, отримано ${u}`}case"invalid_value":return i.values.length===1?`Неправильні вхідні дані: очікується ${Y(i.values[0])}`:`Неправильна опція: очікується одне з ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Занадто велике: очікується, що ${i.origin??"значення"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"елементів"}`:`Занадто велике: очікується, що ${i.origin??"значення"} буде ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Занадто мале: очікується, що ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Занадто мале: очікується, що ${i.origin} буде ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${r[o.format]??i.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${i.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${i.keys.length>1?"і":""}: ${A(i.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${i.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${i.origin}`;default:return"Неправильні вхідні дані"}}};function aI(){return{localeError:Iq()}}function Sq(){return aI()}var zq=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function n(i){return e[i]??null}let r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},a={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`غلط ان پٹ: instanceof ${i.expected} متوقع تھا، ${u} موصول ہوا`:`غلط ان پٹ: ${o} متوقع تھا، ${u} موصول ہوا`}case"invalid_value":return i.values.length===1?`غلط ان پٹ: ${Y(i.values[0])} متوقع تھا`:`غلط آپشن: ${A(i.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`بہت بڑا: ${i.origin??"ویلیو"} کے ${o}${i.maximum.toString()} ${s.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${i.origin??"ویلیو"} کا ${o}${i.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`بہت چھوٹا: ${i.origin} کے ${o}${i.minimum.toString()} ${s.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${i.origin} کا ${o}${i.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let o=i;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${r[o.format]??i.format}`}case"not_multiple_of":return`غلط نمبر: ${i.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${i.keys.length>1?"ز":""}: ${A(i.keys,"، ")}`;case"invalid_key":return`${i.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${i.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Oq(){return{localeError:zq()}}var Pq=()=>{let e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function n(i){return e[i]??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"},a={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${u}`:`Noto‘g‘ri kirish: kutilgan ${o}, qabul qilingan ${u}`}case"invalid_value":return i.values.length===1?`Noto‘g‘ri kirish: kutilgan ${Y(i.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Noto‘g‘ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto‘g‘ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto‘g‘ri satr: "${o.includes}" ni o‘z ichiga olishi kerak`:o.format==="regex"?`Noto‘g‘ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[o.format]??i.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${i.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${i.keys.length>1?"lar":""}: ${A(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${i.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function Uq(){return{localeError:Pq()}}var Nq=()=>{let e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function n(i){return e[i]??null}let r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},a={nan:"NaN",number:"số",array:"mảng"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${i.expected}, nhận được ${u}`:`Đầu vào không hợp lệ: mong đợi ${o}, nhận được ${u}`}case"invalid_value":return i.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Y(i.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Quá lớn: mong đợi ${i.origin??"giá trị"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"phần tử"}`:`Quá lớn: mong đợi ${i.origin??"giá trị"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Quá nhỏ: mong đợi ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Quá nhỏ: mong đợi ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${r[o.format]??i.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${i.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${A(i.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${i.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${i.origin}`;default:return"Đầu vào không hợp lệ"}}};function jq(){return{localeError:Nq()}}var Tq=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function n(i){return e[i]??null}let r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},a={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`无效输入:期望 instanceof ${i.expected},实际接收 ${u}`:`无效输入:期望 ${o},实际接收 ${u}`}case"invalid_value":return i.values.length===1?`无效输入:期望 ${Y(i.values[0])}`:`无效选项:期望以下之一 ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`数值过大:期望 ${i.origin??"值"} ${o}${i.maximum.toString()} ${s.unit??"个元素"}`:`数值过大:期望 ${i.origin??"值"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`数值过小:期望 ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`数值过小:期望 ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${r[o.format]??i.format}`}case"not_multiple_of":return`无效数字:必须是 ${i.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${A(i.keys,", ")}`;case"invalid_key":return`${i.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${i.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Eq(){return{localeError:Tq()}}var Zq=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function n(i){return e[i]??null}let r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`無效的輸入值:預期為 instanceof ${i.expected},但收到 ${u}`:`無效的輸入值:預期為 ${o},但收到 ${u}`}case"invalid_value":return i.values.length===1?`無效的輸入值:預期為 ${Y(i.values[0])}`:`無效的選項:預期為以下其中之一 ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`數值過大:預期 ${i.origin??"值"} 應為 ${o}${i.maximum.toString()} ${s.unit??"個元素"}`:`數值過大:預期 ${i.origin??"值"} 應為 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`數值過小:預期 ${i.origin} 應為 ${o}${i.minimum.toString()} ${s.unit}`:`數值過小:預期 ${i.origin} 應為 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${r[o.format]??i.format}`}case"not_multiple_of":return`無效的數字:必須為 ${i.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${i.keys.length>1?"們":""}:${A(i.keys,"、")}`;case"invalid_key":return`${i.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${i.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Dq(){return{localeError:Zq()}}var Aq=()=>{let e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function n(i){return e[i]??null}let r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},a={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return i=>{switch(i.code){case"invalid_type":{let o=a[i.expected]??i.expected,s=te(i.input),u=a[s]??s;return/^[A-Z]/.test(i.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${i.expected}, àmọ̀ a rí ${u}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${o}, àmọ̀ a rí ${u}`}case"invalid_value":return i.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Y(i.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${A(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=n(i.origin);return s?`Tó pọ̀ jù: a ní láti jẹ́ pé ${i.origin??"iye"} ${s.verb} ${o}${i.maximum} ${s.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${i.maximum}`}case"too_small":{let o=i.inclusive?">=":">",s=n(i.origin);return s?`Kéré ju: a ní láti jẹ́ pé ${i.origin} ${s.verb} ${o}${i.minimum} ${s.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${i.minimum}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${r[o.format]??i.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${i.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${A(i.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${i.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${i.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function Cq(){return{localeError:Aq()}}var tb,oI=Symbol("ZodOutput"),sI=Symbol("ZodInput");class uI{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){let a=r[0];return this._map.set(n,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){let r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){let r=n._zod.parent;if(r){let a={...this.get(r)??{}};delete a.id;let i={...a,...this._map.get(n)};return Object.keys(i).length?i:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function ip(){return new uI}(tb=globalThis).__zod_globalRegistry??(tb.__zod_globalRegistry=ip());var Ot=globalThis.__zod_globalRegistry;function lI(e,n){return new e({type:"string",...R(n)})}function cI(e,n){return new e({type:"string",coerce:!0,...R(n)})}function rp(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...R(n)})}function ys(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...R(n)})}function ap(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...R(n)})}function op(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...R(n)})}function sp(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...R(n)})}function up(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...R(n)})}function Au(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...R(n)})}function lp(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...R(n)})}function cp(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...R(n)})}function dp(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...R(n)})}function fp(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...R(n)})}function mp(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...R(n)})}function pp(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...R(n)})}function hp(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...R(n)})}function vp(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...R(n)})}function gp(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...R(n)})}function dI(e,n){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...R(n)})}function bp(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...R(n)})}function _p(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...R(n)})}function yp(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...R(n)})}function $p(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...R(n)})}function kp(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...R(n)})}function wp(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...R(n)})}var fI={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function mI(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...R(n)})}function pI(e,n){return new e({type:"string",format:"date",check:"string_format",...R(n)})}function hI(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...R(n)})}function vI(e,n){return new e({type:"string",format:"duration",check:"string_format",...R(n)})}function gI(e,n){return new e({type:"number",checks:[],...R(n)})}function bI(e,n){return new e({type:"number",coerce:!0,checks:[],...R(n)})}function _I(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...R(n)})}function yI(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...R(n)})}function $I(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...R(n)})}function kI(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...R(n)})}function wI(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...R(n)})}function xI(e,n){return new e({type:"boolean",...R(n)})}function II(e,n){return new e({type:"boolean",coerce:!0,...R(n)})}function SI(e,n){return new e({type:"bigint",...R(n)})}function zI(e,n){return new e({type:"bigint",coerce:!0,...R(n)})}function OI(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...R(n)})}function PI(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...R(n)})}function UI(e,n){return new e({type:"symbol",...R(n)})}function NI(e,n){return new e({type:"undefined",...R(n)})}function jI(e,n){return new e({type:"null",...R(n)})}function TI(e){return new e({type:"any"})}function EI(e){return new e({type:"unknown"})}function ZI(e,n){return new e({type:"never",...R(n)})}function DI(e,n){return new e({type:"void",...R(n)})}function AI(e,n){return new e({type:"date",...R(n)})}function CI(e,n){return new e({type:"date",coerce:!0,...R(n)})}function RI(e,n){return new e({type:"nan",...R(n)})}function Mn(e,n){return new Hm({check:"less_than",...R(n),value:e,inclusive:!1})}function Ut(e,n){return new Hm({check:"less_than",...R(n),value:e,inclusive:!0})}function Ln(e,n){return new Gm({check:"greater_than",...R(n),value:e,inclusive:!1})}function ct(e,n){return new Gm({check:"greater_than",...R(n),value:e,inclusive:!0})}function xp(e){return Ln(0,e)}function Ip(e){return Mn(0,e)}function Sp(e){return Ut(0,e)}function zp(e){return ct(0,e)}function Bi(e,n){return new x6({check:"multiple_of",...R(n),value:e})}function sr(e,n){return new z6({check:"max_size",...R(n),maximum:e})}function Fn(e,n){return new O6({check:"min_size",...R(n),minimum:e})}function Va(e,n){return new P6({check:"size_equals",...R(n),size:e})}function Wa(e,n){return new U6({check:"max_length",...R(n),maximum:e})}function fi(e,n){return new N6({check:"min_length",...R(n),minimum:e})}function Ha(e,n){return new j6({check:"length_equals",...R(n),length:e})}function Cu(e,n){return new T6({check:"string_format",format:"regex",...R(n),pattern:e})}function Ru(e){return new E6({check:"string_format",format:"lowercase",...R(e)})}function Mu(e){return new Z6({check:"string_format",format:"uppercase",...R(e)})}function Lu(e,n){return new D6({check:"string_format",format:"includes",...R(n),includes:e})}function Fu(e,n){return new A6({check:"string_format",format:"starts_with",...R(n),prefix:e})}function Ju(e,n){return new C6({check:"string_format",format:"ends_with",...R(n),suffix:e})}function Op(e,n,r){return new R6({check:"property",property:e,schema:n,...R(r)})}function qu(e,n){return new M6({check:"mime_type",mime:e,...R(n)})}function On(e){return new L6({check:"overwrite",tx:e})}function Vu(e){return On(n=>n.normalize(e))}function Wu(){return On(e=>e.trim())}function Hu(){return On(e=>e.toLowerCase())}function Gu(){return On(e=>e.toUpperCase())}function Bu(){return On(e=>Nx(e))}function MI(e,n,r){return new e({type:"array",element:n,...R(r)})}function Rq(e,n,r){return new e({type:"union",options:n,...R(r)})}function Mq(e,n,r){return new e({type:"union",options:n,inclusive:!1,...R(r)})}function Lq(e,n,r,a){return new e({type:"union",options:r,discriminator:n,...R(a)})}function Fq(e,n,r){return new e({type:"intersection",left:n,right:r})}function Jq(e,n,r,a){let i=r instanceof ae;return new e({type:"tuple",items:n,rest:i?r:null,...R(i?a:r)})}function qq(e,n,r,a){return new e({type:"record",keyType:n,valueType:r,...R(a)})}function Vq(e,n,r,a){return new e({type:"map",keyType:n,valueType:r,...R(a)})}function Wq(e,n,r){return new e({type:"set",valueType:n,...R(r)})}function Hq(e,n,r){let a=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:a,...R(r)})}function Gq(e,n,r){return new e({type:"enum",entries:n,...R(r)})}function Bq(e,n,r){return new e({type:"literal",values:Array.isArray(n)?n:[n],...R(r)})}function LI(e,n){return new e({type:"file",...R(n)})}function Kq(e,n){return new e({type:"transform",transform:n})}function Xq(e,n){return new e({type:"optional",innerType:n})}function Yq(e,n){return new e({type:"nullable",innerType:n})}function Qq(e,n,r){return new e({type:"default",innerType:n,get defaultValue(){return typeof r=="function"?r():Tx(r)}})}function eV(e,n,r){return new e({type:"nonoptional",innerType:n,...R(r)})}function tV(e,n){return new e({type:"success",innerType:n})}function nV(e,n,r){return new e({type:"catch",innerType:n,catchValue:typeof r=="function"?r:()=>r})}function iV(e,n,r){return new e({type:"pipe",in:n,out:r})}function rV(e,n){return new e({type:"readonly",innerType:n})}function aV(e,n,r){return new e({type:"template_literal",parts:n,...R(r)})}function oV(e,n){return new e({type:"lazy",getter:n})}function sV(e,n){return new e({type:"promise",innerType:n})}function FI(e,n,r){let a=R(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:n,...a})}function JI(e,n,r){return new e({type:"custom",check:"custom",fn:n,...R(r)})}function qI(e){let n=VI(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(bs(a,r.value,n._zod.def));else{let i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(bs(i))}},e(r.value,r)));return n}function VI(e,n){let r=new Me({check:"custom",...R(n)});return r._zod.check=e,r}function WI(e){let n=new Me({check:"describe"});return n._zod.onattach=[r=>{let a=Ot.get(r)??{};Ot.add(r,{...a,description:e})}],n._zod.check=()=>{},n}function HI(e){let n=new Me({check:"meta"});return n._zod.onattach=[r=>{let a=Ot.get(r)??{};Ot.add(r,{...a,...e})}],n._zod.check=()=>{},n}function GI(e,n){let r=R(n),a=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(m=>typeof m=="string"?m.toLowerCase():m),i=i.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(a),s=new Set(i),u=e.Codec??tp,l=e.Boolean??Xm,c=new(e.String??qa)({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),f=new u({type:"pipe",in:c,out:d,transform:(m,p)=>{let h=m;return r.case!=="sensitive"&&(h=h.toLowerCase()),o.has(h)?!0:s.has(h)?!1:(p.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:p.value,inst:f,continue:!1}),{})},reverseTransform:(m,p)=>m===!0?a[0]||"true":i[0]||"false",error:r.error});return f}function Ga(e,n,r,a={}){let i=R(a),o={...R(a),check:"string_format",type:"string",format:n,fn:typeof r=="function"?r:s=>r.test(s),...i};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ki(e){let n=(e==null?void 0:e.target)??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Ot,target:n,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function we(e,n,r={path:[],schemaPath:[]}){var c,d;var a;let i=e._zod.def,o=n.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,s);let u=(d=(c=e._zod).toJSONSchema)==null?void 0:d.call(c);if(u)s.schema=u;else{let f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,s.schema,f);else{let p=s.schema,h=n.processors[i.type];if(!h)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);h(e,n,p,f)}let m=e._zod.parent;m&&(s.ref||(s.ref=m),we(m,n,f),n.seen.get(m).isParent=!0)}let l=n.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),n.io==="input"&&ot(e)&&(delete s.schema.examples,delete s.schema.default),n.io==="input"&&s.schema._prefault&&((a=s.schema).default??(a.default=s.schema._prefault)),delete s.schema._prefault,n.seen.get(e).schema}function Xi(e,n){var s,u,l,c;let r=e.seen.get(n);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let d of e.seen.entries()){let f=(s=e.metadataRegistry.get(d[0]))==null?void 0:s.id;if(f){let m=a.get(f);if(m&&m!==d[0])throw Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(f,d[0])}}let i=d=>{var h;let f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let g=(h=e.external.registry.get(d[0]))==null?void 0:h.id,b=e.external.uri??($=>$);if(g)return{ref:b(g)};let v=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=v,{defId:v,ref:`${b("__shared")}#/${f}/${v}`}}if(d[1]===r)return{ref:"#"};let m=`#/${f}/`,p=d[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:m+p}},o=d=>{if(d[1].schema.$ref)return;let f=d[1],{ref:m,defId:p}=i(d);f.def={...f.schema},p&&(f.defId=p);let h=f.schema;for(let g in h)delete h[g];h.$ref=m};if(e.cycles==="throw")for(let d of e.seen.entries()){let f=d[1];if(f.cycle)throw Error(`Cycle detected: #/${(u=f.cycle)==null?void 0:u.join("/")}/<root>
|
|
226
|
+
|
|
227
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let f=d[1];if(n===d[0]){o(d);continue}if(e.external){let m=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(n!==d[0]&&m){o(d);continue}}if((c=e.metadataRegistry.get(d[0]))!=null&&c.id){o(d);continue}if(f.cycle){o(d);continue}if(f.count>1&&e.reused==="ref"){o(d);continue}}}function Yi(e,n){var s,u,l;let r=e.seen.get(n);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=c=>{let d=e.seen.get(c);if(d.ref===null)return;let f=d.def??d.schema,m={...f},p=d.ref;if(d.ref=null,p){a(p);let g=e.seen.get(p),b=g.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(b)):Object.assign(f,b),Object.assign(f,m),c._zod.parent===p)for(let v in f)v==="$ref"||v==="allOf"||v in m||delete f[v];if(b.$ref)for(let v in f)v==="$ref"||v==="allOf"||v in g.def&&JSON.stringify(f[v])===JSON.stringify(g.def[v])&&delete f[v]}let h=c._zod.parent;if(h&&h!==p){a(h);let g=e.seen.get(h);if(g!=null&&g.schema.$ref&&(f.$ref=g.schema.$ref,g.def))for(let b in f)b==="$ref"||b==="allOf"||b in g.def&&JSON.stringify(f[b])===JSON.stringify(g.def[b])&&delete f[b]}e.override({zodSchema:c,jsonSchema:f,path:d.path??[]})};for(let c of[...e.seen.entries()].reverse())a(c[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(s=e.external)!=null&&s.uri){let c=(u=e.external.registry.get(n))==null?void 0:u.id;if(!c)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(c)}Object.assign(i,r.def??r.schema);let o=((l=e.external)==null?void 0:l.defs)??{};for(let c of e.seen.entries()){let d=c[1];d.def&&d.defId&&(o[d.defId]=d.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{let c=JSON.parse(JSON.stringify(i));return Object.defineProperty(c,"~standard",{value:{...n["~standard"],jsonSchema:{input:Kr(n,"input",e.processors),output:Kr(n,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw Error("Error converting schema to JSON.")}}function ot(e,n){let r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return ot(a.element,r);if(a.type==="set")return ot(a.valueType,r);if(a.type==="lazy")return ot(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return ot(a.innerType,r);if(a.type==="intersection")return ot(a.left,r)||ot(a.right,r);if(a.type==="record"||a.type==="map")return ot(a.keyType,r)||ot(a.valueType,r);if(a.type==="pipe")return ot(a.in,r)||ot(a.out,r);if(a.type==="object"){for(let i in a.shape)if(ot(a.shape[i],r))return!0;return!1}if(a.type==="union"){for(let i of a.options)if(ot(i,r))return!0;return!1}if(a.type==="tuple"){for(let i of a.items)if(ot(i,r))return!0;return!!(a.rest&&ot(a.rest,r))}return!1}var BI=(e,n={})=>r=>{let a=Ki({...r,processors:n});return we(e,a),Xi(a,e),Yi(a,e)},Kr=(e,n,r={})=>a=>{let{libraryOptions:i,target:o}=a??{},s=Ki({...i??{},target:o,io:n,processors:r});return we(e,s),Xi(s,e),Yi(s,e)},uV={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},KI=(e,n,r,a)=>{let i=r;i.type="string";let{minimum:o,maximum:s,format:u,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=uV[u]??u,i.format===""&&delete i.format,u==="time"&&delete i.format),c&&(i.contentEncoding=c),l&&l.size>0){let d=[...l];d.length===1?i.pattern=d[0].source:d.length>1&&(i.allOf=[...d.map(f=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},XI=(e,n,r,a)=>{let i=r,{minimum:o,maximum:s,format:u,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof u=="string"&&u.includes("int")?i.type="integer":i.type="number",typeof d=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d),typeof o=="number"&&(i.minimum=o,typeof d=="number"&&n.target!=="draft-04"&&(d>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof c=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c),typeof s=="number"&&(i.maximum=s,typeof c=="number"&&n.target!=="draft-04"&&(c<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},YI=(e,n,r,a)=>{r.type="boolean"},QI=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},eS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},tS=(e,n,r,a)=>{n.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},nS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},iS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},rS=(e,n,r,a)=>{r.not={}},aS=(e,n,r,a)=>{},oS=(e,n,r,a)=>{},sS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},uS=(e,n,r,a)=>{let i=e._zod.def,o=jm(i.entries);o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},lS=(e,n,r,a)=>{let i=e._zod.def,o=[];for(let s of i.values)if(s===void 0){if(n.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(n.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,n.target==="draft-04"||n.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},cS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},dS=(e,n,r,a)=>{let i=r,o=e._zod.pattern;if(!o)throw Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},fS=(e,n,r,a)=>{let i=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:l}=e._zod.bag;s!==void 0&&(o.minLength=s),u!==void 0&&(o.maxLength=u),l?l.length===1?(o.contentMediaType=l[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(i,o)},mS=(e,n,r,a)=>{r.type="boolean"},pS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},hS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},vS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},gS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},bS=(e,n,r,a)=>{if(n.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},_S=(e,n,r,a)=>{let i=r,o=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=we(o.element,n,{...a,path:[...a.path,"items"]})},yS=(e,n,r,a)=>{var c;let i=r,o=e._zod.def;i.type="object",i.properties={};let s=o.shape;for(let d in s)i.properties[d]=we(s[d],n,{...a,path:[...a.path,"properties",d]});let u=new Set(Object.keys(s)),l=new Set([...u].filter(d=>{let f=o.shape[d]._zod;return n.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((c=o.catchall)==null?void 0:c._zod.def.type)==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=we(o.catchall,n,{...a,path:[...a.path,"additionalProperties"]})):n.io==="output"&&(i.additionalProperties=!1)},Pp=(e,n,r,a)=>{let i=e._zod.def,o=i.inclusive===!1,s=i.options.map((u,l)=>we(u,n,{...a,path:[...a.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=s:r.anyOf=s},$S=(e,n,r,a)=>{let i=e._zod.def,o=we(i.left,n,{...a,path:[...a.path,"allOf",0]}),s=we(i.right,n,{...a,path:[...a.path,"allOf",1]}),u=c=>"allOf"in c&&Object.keys(c).length===1,l=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];r.allOf=l},kS=(e,n,r,a)=>{let i=r,o=e._zod.def;i.type="array";let s=n.target==="draft-2020-12"?"prefixItems":"items",u=n.target==="draft-2020-12"||n.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((m,p)=>we(m,n,{...a,path:[...a.path,s,p]})),c=o.rest?we(o.rest,n,{...a,path:[...a.path,u,...n.target==="openapi-3.0"?[o.items.length]:[]]}):null;n.target==="draft-2020-12"?(i.prefixItems=l,c&&(i.items=c)):n.target==="openapi-3.0"?(i.items={anyOf:l},c&&i.items.anyOf.push(c),i.minItems=l.length,!c&&(i.maxItems=l.length)):(i.items=l,c&&(i.additionalItems=c));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof f=="number"&&(i.maxItems=f)},wS=(e,n,r,a)=>{var c;let i=r,o=e._zod.def;i.type="object";let s=o.keyType,u=(c=s._zod.bag)==null?void 0:c.patterns;if(o.mode==="loose"&&u&&u.size>0){let d=we(o.valueType,n,{...a,path:[...a.path,"patternProperties","*"]});i.patternProperties={};for(let f of u)i.patternProperties[f.source]=d}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(i.propertyNames=we(o.keyType,n,{...a,path:[...a.path,"propertyNames"]})),i.additionalProperties=we(o.valueType,n,{...a,path:[...a.path,"additionalProperties"]});let l=s._zod.values;if(l){let d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(i.required=d)}},xS=(e,n,r,a)=>{let i=e._zod.def,o=we(i.innerType,n,a),s=n.seen.get(e);n.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},IS=(e,n,r,a)=>{let i=e._zod.def;we(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType},SS=(e,n,r,a)=>{let i=e._zod.def;we(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},zS=(e,n,r,a)=>{let i=e._zod.def;we(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},OS=(e,n,r,a)=>{let i=e._zod.def;we(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},PS=(e,n,r,a)=>{let i=e._zod.def,o=n.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;we(o,n,a);let s=n.seen.get(e);s.ref=o},US=(e,n,r,a)=>{let i=e._zod.def;we(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType,r.readOnly=!0},NS=(e,n,r,a)=>{let i=e._zod.def;we(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType},Up=(e,n,r,a)=>{let i=e._zod.def;we(i.innerType,n,a);let o=n.seen.get(e);o.ref=i.innerType},jS=(e,n,r,a)=>{let i=e._zod.innerType;we(i,n,a);let o=n.seen.get(e);o.ref=i},Oc={string:KI,number:XI,boolean:YI,bigint:QI,symbol:eS,null:tS,undefined:nS,void:iS,never:rS,any:aS,unknown:oS,date:sS,enum:uS,literal:lS,nan:cS,template_literal:dS,file:fS,success:mS,custom:pS,function:hS,transform:vS,map:gS,set:bS,array:_S,object:yS,union:Pp,intersection:$S,tuple:kS,record:wS,nullable:xS,nonoptional:IS,default:SS,prefault:zS,catch:OS,pipe:PS,readonly:US,promise:NS,optional:Up,lazy:jS};function TS(e,n){if("_idmap"in e){let a=e,i=Ki({...n,processors:Oc}),o={};for(let l of a._idmap.entries()){let[c,d]=l;we(d,i)}let s={},u={registry:a,uri:n==null?void 0:n.uri,defs:o};i.external=u;for(let l of a._idmap.entries()){let[c,d]=l;Xi(i,d),s[c]=Yi(i,d)}if(Object.keys(o).length>0){let l=i.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:o}}return{schemas:s}}let r=Ki({...n,processors:Oc});return we(e,r),Xi(r,e),Yi(r,e)}class lV{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(n){this.ctx.counter=n}get seen(){return this.ctx.seen}constructor(n){let r=(n==null?void 0:n.target)??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ki({processors:Oc,target:r,...(n==null?void 0:n.metadata)&&{metadata:n.metadata},...(n==null?void 0:n.unrepresentable)&&{unrepresentable:n.unrepresentable},...(n==null?void 0:n.override)&&{override:n.override},...(n==null?void 0:n.io)&&{io:n.io}})}process(n,r={path:[],schemaPath:[]}){return we(n,this.ctx,r)}emit(n,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Xi(this.ctx,n);let a=Yi(this.ctx,n),{"~standard":i,...o}=a;return o}}var cV={},ES={};Sn(ES,{xor:()=>J2,xid:()=>f2,void:()=>A2,uuidv7:()=>r2,uuidv6:()=>i2,uuidv4:()=>n2,uuid:()=>t2,url:()=>a2,unknown:()=>mi,union:()=>vl,undefined:()=>Z2,ulid:()=>d2,uint64:()=>T2,uint32:()=>U2,tuple:()=>Qp,transform:()=>bl,templateLiteral:()=>nz,symbol:()=>E2,superRefine:()=>Sh,success:()=>Q2,stringbool:()=>lz,stringFormat:()=>w2,string:()=>$s,strictObject:()=>L2,set:()=>G2,refine:()=>Ih,record:()=>eh,readonly:()=>_h,promise:()=>iz,preprocess:()=>dz,prefault:()=>fh,pipe:()=>ea,partialRecord:()=>V2,optional:()=>Yr,object:()=>M2,number:()=>Ap,nullish:()=>Y2,nullable:()=>Qr,null:()=>Fp,nonoptional:()=>mh,never:()=>pl,nativeEnum:()=>B2,nanoid:()=>u2,nan:()=>ez,meta:()=>sz,map:()=>H2,mac:()=>h2,looseRecord:()=>W2,looseObject:()=>F2,literal:()=>K2,lazy:()=>kh,ksuid:()=>m2,keyof:()=>R2,jwt:()=>k2,json:()=>cz,ipv6:()=>v2,ipv4:()=>p2,intersection:()=>Xp,int64:()=>j2,int32:()=>P2,int:()=>ks,instanceof:()=>uz,httpUrl:()=>o2,hostname:()=>x2,hex:()=>I2,hash:()=>S2,guid:()=>e2,function:()=>ws,float64:()=>O2,float32:()=>z2,file:()=>X2,exactOptional:()=>sh,enum:()=>gl,emoji:()=>s2,email:()=>QS,e164:()=>$2,discriminatedUnion:()=>q2,describe:()=>oz,date:()=>C2,custom:()=>az,cuid2:()=>c2,cuid:()=>l2,codec:()=>tz,cidrv6:()=>b2,cidrv4:()=>g2,check:()=>rz,catch:()=>vh,boolean:()=>Cp,bigint:()=>N2,base64url:()=>y2,base64:()=>_2,array:()=>eo,any:()=>D2,_function:()=>ws,_default:()=>ch,_ZodString:()=>Ku,ZodXor:()=>Gp,ZodXID:()=>il,ZodVoid:()=>Wp,ZodUnknown:()=>qp,ZodUnion:()=>no,ZodUndefined:()=>Mp,ZodUUID:()=>Yt,ZodURL:()=>Ka,ZodULID:()=>nl,ZodType:()=>le,ZodTuple:()=>Yp,ZodTransform:()=>ah,ZodTemplateLiteral:()=>yh,ZodSymbol:()=>Rp,ZodSuccess:()=>ph,ZodStringFormat:()=>Pe,ZodString:()=>Ba,ZodSet:()=>nh,ZodRecord:()=>io,ZodReadonly:()=>bh,ZodPromise:()=>wh,ZodPrefault:()=>dh,ZodPipe:()=>$l,ZodOptional:()=>_l,ZodObject:()=>to,ZodNumberFormat:()=>yi,ZodNumber:()=>Xa,ZodNullable:()=>uh,ZodNull:()=>Lp,ZodNonOptional:()=>yl,ZodNever:()=>Vp,ZodNanoID:()=>Qu,ZodNaN:()=>gh,ZodMap:()=>th,ZodMAC:()=>Dp,ZodLiteral:()=>ih,ZodLazy:()=>$h,ZodKSUID:()=>rl,ZodJWT:()=>fl,ZodIntersection:()=>Kp,ZodIPv6:()=>ol,ZodIPv4:()=>al,ZodGUID:()=>Xr,ZodFunction:()=>xh,ZodFile:()=>rh,ZodExactOptional:()=>oh,ZodEnum:()=>Qi,ZodEmoji:()=>Yu,ZodEmail:()=>Xu,ZodE164:()=>dl,ZodDiscriminatedUnion:()=>Bp,ZodDefault:()=>lh,ZodDate:()=>hl,ZodCustomStringFormat:()=>ur,ZodCustom:()=>ro,ZodCodec:()=>kl,ZodCatch:()=>hh,ZodCUID2:()=>tl,ZodCUID:()=>el,ZodCIDRv6:()=>ul,ZodCIDRv4:()=>sl,ZodBoolean:()=>Ya,ZodBigIntFormat:()=>ml,ZodBigInt:()=>Qa,ZodBase64URL:()=>cl,ZodBase64:()=>ll,ZodArray:()=>Hp,ZodAny:()=>Jp});var ZS={};Sn(ZS,{uppercase:()=>Mu,trim:()=>Wu,toUpperCase:()=>Gu,toLowerCase:()=>Hu,startsWith:()=>Fu,slugify:()=>Bu,size:()=>Va,regex:()=>Cu,property:()=>Op,positive:()=>xp,overwrite:()=>On,normalize:()=>Vu,nonpositive:()=>Sp,nonnegative:()=>zp,negative:()=>Ip,multipleOf:()=>Bi,minSize:()=>Fn,minLength:()=>fi,mime:()=>qu,maxSize:()=>sr,maxLength:()=>Wa,lte:()=>Ut,lt:()=>Mn,lowercase:()=>Ru,length:()=>Ha,includes:()=>Lu,gte:()=>ct,gt:()=>Ln,endsWith:()=>Ju});var Np={};Sn(Np,{time:()=>CS,duration:()=>RS,datetime:()=>DS,date:()=>AS,ZodISOTime:()=>Ep,ZodISODuration:()=>Zp,ZodISODateTime:()=>jp,ZodISODate:()=>Tp});var jp=O("ZodISODateTime",(e,n)=>{t4.init(e,n),Pe.init(e,n)});function DS(e){return mI(jp,e)}var Tp=O("ZodISODate",(e,n)=>{n4.init(e,n),Pe.init(e,n)});function AS(e){return pI(Tp,e)}var Ep=O("ZodISOTime",(e,n)=>{i4.init(e,n),Pe.init(e,n)});function CS(e){return hI(Ep,e)}var Zp=O("ZodISODuration",(e,n)=>{r4.init(e,n),Pe.init(e,n)});function RS(e){return vI(Zp,e)}var MS=(e,n)=>{Em.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Dm(e,r)},flatten:{value:r=>Zm(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,vs,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,vs,2)}},isEmpty:{get(){return e.issues.length===0}}})},dV=O("ZodError",MS),kt=O("ZodError",MS,{Parent:Error}),LS=Aa(kt),FS=Ca(kt),JS=Ra(kt),qS=Ma(kt),VS=Am(kt),WS=Cm(kt),HS=Rm(kt),GS=Mm(kt),BS=Lm(kt),KS=Fm(kt),XS=Jm(kt),YS=qm(kt),le=O("ZodType",(e,n)=>(ae.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:Kr(e,"input"),output:Kr(e,"output")}}),e.toJSONSchema=BI(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(me.mergeDefs(n,{checks:[...n.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>At(e,r,a),e.brand=()=>e,e.register=(r,a)=>(r.add(e,a),e),e.parse=(r,a)=>LS(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>JS(e,r,a),e.parseAsync=async(r,a)=>FS(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>qS(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>VS(e,r,a),e.decode=(r,a)=>WS(e,r,a),e.encodeAsync=async(r,a)=>HS(e,r,a),e.decodeAsync=async(r,a)=>GS(e,r,a),e.safeEncode=(r,a)=>BS(e,r,a),e.safeDecode=(r,a)=>KS(e,r,a),e.safeEncodeAsync=async(r,a)=>XS(e,r,a),e.safeDecodeAsync=async(r,a)=>YS(e,r,a),e.refine=(r,a)=>e.check(Ih(r,a)),e.superRefine=r=>e.check(Sh(r)),e.overwrite=r=>e.check(On(r)),e.optional=()=>Yr(e),e.exactOptional=()=>sh(e),e.nullable=()=>Qr(e),e.nullish=()=>Yr(Qr(e)),e.nonoptional=r=>mh(e,r),e.array=()=>eo(e),e.or=r=>vl([e,r]),e.and=r=>Xp(e,r),e.transform=r=>ea(e,bl(r)),e.default=r=>ch(e,r),e.prefault=r=>fh(e,r),e.catch=r=>vh(e,r),e.pipe=r=>ea(e,r),e.readonly=()=>_h(e),e.describe=r=>{let a=e.clone();return Ot.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){var r;return(r=Ot.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ot.get(e);let a=e.clone();return Ot.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Ku=O("_ZodString",(e,n)=>{qa.init(e,n),le.init(e,n),e._zod.processJSONSchema=(a,i,o)=>KI(e,a,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(Cu(...a)),e.includes=(...a)=>e.check(Lu(...a)),e.startsWith=(...a)=>e.check(Fu(...a)),e.endsWith=(...a)=>e.check(Ju(...a)),e.min=(...a)=>e.check(fi(...a)),e.max=(...a)=>e.check(Wa(...a)),e.length=(...a)=>e.check(Ha(...a)),e.nonempty=(...a)=>e.check(fi(1,...a)),e.lowercase=a=>e.check(Ru(a)),e.uppercase=a=>e.check(Mu(a)),e.trim=()=>e.check(Wu()),e.normalize=(...a)=>e.check(Vu(...a)),e.toLowerCase=()=>e.check(Hu()),e.toUpperCase=()=>e.check(Gu()),e.slugify=()=>e.check(Bu())}),Ba=O("ZodString",(e,n)=>{qa.init(e,n),Ku.init(e,n),e.email=r=>e.check(rp(Xu,r)),e.url=r=>e.check(Au(Ka,r)),e.jwt=r=>e.check(wp(fl,r)),e.emoji=r=>e.check(lp(Yu,r)),e.guid=r=>e.check(ys(Xr,r)),e.uuid=r=>e.check(ap(Yt,r)),e.uuidv4=r=>e.check(op(Yt,r)),e.uuidv6=r=>e.check(sp(Yt,r)),e.uuidv7=r=>e.check(up(Yt,r)),e.nanoid=r=>e.check(cp(Qu,r)),e.guid=r=>e.check(ys(Xr,r)),e.cuid=r=>e.check(dp(el,r)),e.cuid2=r=>e.check(fp(tl,r)),e.ulid=r=>e.check(mp(nl,r)),e.base64=r=>e.check(yp(ll,r)),e.base64url=r=>e.check($p(cl,r)),e.xid=r=>e.check(pp(il,r)),e.ksuid=r=>e.check(hp(rl,r)),e.ipv4=r=>e.check(vp(al,r)),e.ipv6=r=>e.check(gp(ol,r)),e.cidrv4=r=>e.check(bp(sl,r)),e.cidrv6=r=>e.check(_p(ul,r)),e.e164=r=>e.check(kp(dl,r)),e.datetime=r=>e.check(DS(r)),e.date=r=>e.check(AS(r)),e.time=r=>e.check(CS(r)),e.duration=r=>e.check(RS(r))});function $s(e){return lI(Ba,e)}var Pe=O("ZodStringFormat",(e,n)=>{Oe.init(e,n),Ku.init(e,n)}),Xu=O("ZodEmail",(e,n)=>{W6.init(e,n),Pe.init(e,n)});function QS(e){return rp(Xu,e)}var Xr=O("ZodGUID",(e,n)=>{q6.init(e,n),Pe.init(e,n)});function e2(e){return ys(Xr,e)}var Yt=O("ZodUUID",(e,n)=>{V6.init(e,n),Pe.init(e,n)});function t2(e){return ap(Yt,e)}function n2(e){return op(Yt,e)}function i2(e){return sp(Yt,e)}function r2(e){return up(Yt,e)}var Ka=O("ZodURL",(e,n)=>{H6.init(e,n),Pe.init(e,n)});function a2(e){return Au(Ka,e)}function o2(e){return Au(Ka,{protocol:/^https?$/,hostname:_i.domain,...me.normalizeParams(e)})}var Yu=O("ZodEmoji",(e,n)=>{G6.init(e,n),Pe.init(e,n)});function s2(e){return lp(Yu,e)}var Qu=O("ZodNanoID",(e,n)=>{B6.init(e,n),Pe.init(e,n)});function u2(e){return cp(Qu,e)}var el=O("ZodCUID",(e,n)=>{K6.init(e,n),Pe.init(e,n)});function l2(e){return dp(el,e)}var tl=O("ZodCUID2",(e,n)=>{X6.init(e,n),Pe.init(e,n)});function c2(e){return fp(tl,e)}var nl=O("ZodULID",(e,n)=>{Y6.init(e,n),Pe.init(e,n)});function d2(e){return mp(nl,e)}var il=O("ZodXID",(e,n)=>{Q6.init(e,n),Pe.init(e,n)});function f2(e){return pp(il,e)}var rl=O("ZodKSUID",(e,n)=>{e4.init(e,n),Pe.init(e,n)});function m2(e){return hp(rl,e)}var al=O("ZodIPv4",(e,n)=>{a4.init(e,n),Pe.init(e,n)});function p2(e){return vp(al,e)}var Dp=O("ZodMAC",(e,n)=>{s4.init(e,n),Pe.init(e,n)});function h2(e){return dI(Dp,e)}var ol=O("ZodIPv6",(e,n)=>{o4.init(e,n),Pe.init(e,n)});function v2(e){return gp(ol,e)}var sl=O("ZodCIDRv4",(e,n)=>{u4.init(e,n),Pe.init(e,n)});function g2(e){return bp(sl,e)}var ul=O("ZodCIDRv6",(e,n)=>{l4.init(e,n),Pe.init(e,n)});function b2(e){return _p(ul,e)}var ll=O("ZodBase64",(e,n)=>{c4.init(e,n),Pe.init(e,n)});function _2(e){return yp(ll,e)}var cl=O("ZodBase64URL",(e,n)=>{f4.init(e,n),Pe.init(e,n)});function y2(e){return $p(cl,e)}var dl=O("ZodE164",(e,n)=>{m4.init(e,n),Pe.init(e,n)});function $2(e){return kp(dl,e)}var fl=O("ZodJWT",(e,n)=>{h4.init(e,n),Pe.init(e,n)});function k2(e){return wp(fl,e)}var ur=O("ZodCustomStringFormat",(e,n)=>{v4.init(e,n),Pe.init(e,n)});function w2(e,n,r={}){return Ga(ur,e,n,r)}function x2(e){return Ga(ur,"hostname",_i.hostname,e)}function I2(e){return Ga(ur,"hex",_i.hex,e)}function S2(e,n){let r=(n==null?void 0:n.enc)??"hex",a=`${e}_${r}`,i=_i[a];if(!i)throw Error(`Unrecognized hash format: ${a}`);return Ga(ur,a,i,n)}var Xa=O("ZodNumber",(e,n)=>{Km.init(e,n),le.init(e,n),e._zod.processJSONSchema=(a,i,o)=>XI(e,a,i),e.gt=(a,i)=>e.check(Ln(a,i)),e.gte=(a,i)=>e.check(ct(a,i)),e.min=(a,i)=>e.check(ct(a,i)),e.lt=(a,i)=>e.check(Mn(a,i)),e.lte=(a,i)=>e.check(Ut(a,i)),e.max=(a,i)=>e.check(Ut(a,i)),e.int=a=>e.check(ks(a)),e.safe=a=>e.check(ks(a)),e.positive=a=>e.check(Ln(0,a)),e.nonnegative=a=>e.check(ct(0,a)),e.negative=a=>e.check(Mn(0,a)),e.nonpositive=a=>e.check(Ut(0,a)),e.multipleOf=(a,i)=>e.check(Bi(a,i)),e.step=(a,i)=>e.check(Bi(a,i)),e.finite=()=>e;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 Ap(e){return gI(Xa,e)}var yi=O("ZodNumberFormat",(e,n)=>{g4.init(e,n),Xa.init(e,n)});function ks(e){return _I(yi,e)}function z2(e){return yI(yi,e)}function O2(e){return $I(yi,e)}function P2(e){return kI(yi,e)}function U2(e){return wI(yi,e)}var Ya=O("ZodBoolean",(e,n)=>{Xm.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>YI(e,r,a)});function Cp(e){return xI(Ya,e)}var Qa=O("ZodBigInt",(e,n)=>{Ym.init(e,n),le.init(e,n),e._zod.processJSONSchema=(a,i,o)=>QI(e,a),e.gte=(a,i)=>e.check(ct(a,i)),e.min=(a,i)=>e.check(ct(a,i)),e.gt=(a,i)=>e.check(Ln(a,i)),e.gte=(a,i)=>e.check(ct(a,i)),e.min=(a,i)=>e.check(ct(a,i)),e.lt=(a,i)=>e.check(Mn(a,i)),e.lte=(a,i)=>e.check(Ut(a,i)),e.max=(a,i)=>e.check(Ut(a,i)),e.positive=a=>e.check(Ln(BigInt(0),a)),e.negative=a=>e.check(Mn(BigInt(0),a)),e.nonpositive=a=>e.check(Ut(BigInt(0),a)),e.nonnegative=a=>e.check(ct(BigInt(0),a)),e.multipleOf=(a,i)=>e.check(Bi(a,i));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function N2(e){return SI(Qa,e)}var ml=O("ZodBigIntFormat",(e,n)=>{b4.init(e,n),Qa.init(e,n)});function j2(e){return OI(ml,e)}function T2(e){return PI(ml,e)}var Rp=O("ZodSymbol",(e,n)=>{_4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>eS(e,r)});function E2(e){return UI(Rp,e)}var Mp=O("ZodUndefined",(e,n)=>{y4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>nS(e,r)});function Z2(e){return NI(Mp,e)}var Lp=O("ZodNull",(e,n)=>{$4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>tS(e,r,a)});function Fp(e){return jI(Lp,e)}var Jp=O("ZodAny",(e,n)=>{k4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>aS()});function D2(){return TI(Jp)}var qp=O("ZodUnknown",(e,n)=>{w4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>oS()});function mi(){return EI(qp)}var Vp=O("ZodNever",(e,n)=>{x4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>rS(e,r,a)});function pl(e){return ZI(Vp,e)}var Wp=O("ZodVoid",(e,n)=>{I4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>iS(e,r)});function A2(e){return DI(Wp,e)}var hl=O("ZodDate",(e,n)=>{S4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(a,i,o)=>sS(e,a),e.min=(a,i)=>e.check(ct(a,i)),e.max=(a,i)=>e.check(Ut(a,i));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function C2(e){return AI(hl,e)}var Hp=O("ZodArray",(e,n)=>{z4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>_S(e,r,a,i),e.element=n.element,e.min=(r,a)=>e.check(fi(r,a)),e.nonempty=r=>e.check(fi(1,r)),e.max=(r,a)=>e.check(Wa(r,a)),e.length=(r,a)=>e.check(Ha(r,a)),e.unwrap=()=>e.element});function eo(e,n){return MI(Hp,e,n)}function R2(e){let n=e._zod.def.shape;return gl(Object.keys(n))}var to=O("ZodObject",(e,n)=>{N4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>yS(e,r,a,i),me.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>gl(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:mi()}),e.loose=()=>e.clone({...e._zod.def,catchall:mi()}),e.strict=()=>e.clone({...e._zod.def,catchall:pl()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>me.extend(e,r),e.safeExtend=r=>me.safeExtend(e,r),e.merge=r=>me.merge(e,r),e.pick=r=>me.pick(e,r),e.omit=r=>me.omit(e,r),e.partial=(...r)=>me.partial(_l,e,r[0]),e.required=(...r)=>me.required(yl,e,r[0])});function M2(e,n){let r={type:"object",shape:e??{},...me.normalizeParams(n)};return new to(r)}function L2(e,n){return new to({type:"object",shape:e,catchall:pl(),...me.normalizeParams(n)})}function F2(e,n){return new to({type:"object",shape:e,catchall:mi(),...me.normalizeParams(n)})}var no=O("ZodUnion",(e,n)=>{Du.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Pp(e,r,a,i),e.options=n.options});function vl(e,n){return new no({type:"union",options:e,...me.normalizeParams(n)})}var Gp=O("ZodXor",(e,n)=>{no.init(e,n),j4.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Pp(e,r,a,i),e.options=n.options});function J2(e,n){return new Gp({type:"union",options:e,inclusive:!1,...me.normalizeParams(n)})}var Bp=O("ZodDiscriminatedUnion",(e,n)=>{no.init(e,n),T4.init(e,n)});function q2(e,n,r){return new Bp({type:"union",options:n,discriminator:e,...me.normalizeParams(r)})}var Kp=O("ZodIntersection",(e,n)=>{E4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>$S(e,r,a,i)});function Xp(e,n){return new Kp({type:"intersection",left:e,right:n})}var Yp=O("ZodTuple",(e,n)=>{Qm.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>kS(e,r,a,i),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Qp(e,n,r){let a=n instanceof ae,i=a?r:n;return new Yp({type:"tuple",items:e,rest:a?n:null,...me.normalizeParams(i)})}var io=O("ZodRecord",(e,n)=>{Z4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>wS(e,r,a,i),e.keyType=n.keyType,e.valueType=n.valueType});function eh(e,n,r){return new io({type:"record",keyType:e,valueType:n,...me.normalizeParams(r)})}function V2(e,n,r){let a=At(e);return a._zod.values=void 0,new io({type:"record",keyType:a,valueType:n,...me.normalizeParams(r)})}function W2(e,n,r){return new io({type:"record",keyType:e,valueType:n,mode:"loose",...me.normalizeParams(r)})}var th=O("ZodMap",(e,n)=>{D4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>gS(e,r),e.keyType=n.keyType,e.valueType=n.valueType,e.min=(...r)=>e.check(Fn(...r)),e.nonempty=r=>e.check(Fn(1,r)),e.max=(...r)=>e.check(sr(...r)),e.size=(...r)=>e.check(Va(...r))});function H2(e,n,r){return new th({type:"map",keyType:e,valueType:n,...me.normalizeParams(r)})}var nh=O("ZodSet",(e,n)=>{A4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>bS(e,r),e.min=(...r)=>e.check(Fn(...r)),e.nonempty=r=>e.check(Fn(1,r)),e.max=(...r)=>e.check(sr(...r)),e.size=(...r)=>e.check(Va(...r))});function G2(e,n){return new nh({type:"set",valueType:e,...me.normalizeParams(n)})}var Qi=O("ZodEnum",(e,n)=>{C4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(a,i,o)=>uS(e,a,i),e.enum=n.entries,e.options=Object.values(n.entries);let r=new Set(Object.keys(n.entries));e.extract=(a,i)=>{let o={};for(let s of a)if(r.has(s))o[s]=n.entries[s];else throw Error(`Key ${s} not found in enum`);return new Qi({...n,checks:[],...me.normalizeParams(i),entries:o})},e.exclude=(a,i)=>{let o={...n.entries};for(let s of a)if(r.has(s))delete o[s];else throw Error(`Key ${s} not found in enum`);return new Qi({...n,checks:[],...me.normalizeParams(i),entries:o})}});function gl(e,n){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Qi({type:"enum",entries:r,...me.normalizeParams(n)})}function B2(e,n){return new Qi({type:"enum",entries:e,...me.normalizeParams(n)})}var ih=O("ZodLiteral",(e,n)=>{R4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>lS(e,r,a),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function K2(e,n){return new ih({type:"literal",values:Array.isArray(e)?e:[e],...me.normalizeParams(n)})}var rh=O("ZodFile",(e,n)=>{M4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>fS(e,r,a),e.min=(r,a)=>e.check(Fn(r,a)),e.max=(r,a)=>e.check(sr(r,a)),e.mime=(r,a)=>e.check(qu(Array.isArray(r)?r:[r],a))});function X2(e){return LI(rh,e)}var ah=O("ZodTransform",(e,n)=>{L4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>vS(e,r),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ju(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(me.issue(o,r.value,n));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(me.issue(s))}};let i=n.transform(r.value,r);return i instanceof Promise?i.then(o=>(r.value=o,r)):(r.value=i,r)}});function bl(e){return new ah({type:"transform",transform:e})}var _l=O("ZodOptional",(e,n)=>{ep.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Up(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Yr(e){return new _l({type:"optional",innerType:e})}var oh=O("ZodExactOptional",(e,n)=>{F4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>Up(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function sh(e){return new oh({type:"optional",innerType:e})}var uh=O("ZodNullable",(e,n)=>{J4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>xS(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Qr(e){return new uh({type:"nullable",innerType:e})}function Y2(e){return Yr(Qr(e))}var lh=O("ZodDefault",(e,n)=>{q4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>SS(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ch(e,n){return new lh({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():me.shallowClone(n)}})}var dh=O("ZodPrefault",(e,n)=>{V4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>zS(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function fh(e,n){return new dh({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():me.shallowClone(n)}})}var yl=O("ZodNonOptional",(e,n)=>{W4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>IS(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function mh(e,n){return new yl({type:"nonoptional",innerType:e,...me.normalizeParams(n)})}var ph=O("ZodSuccess",(e,n)=>{H4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>mS(e,r,a),e.unwrap=()=>e._zod.def.innerType});function Q2(e){return new ph({type:"success",innerType:e})}var hh=O("ZodCatch",(e,n)=>{G4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>OS(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vh(e,n){return new hh({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var gh=O("ZodNaN",(e,n)=>{B4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>cS(e,r)});function ez(e){return RI(gh,e)}var $l=O("ZodPipe",(e,n)=>{K4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>PS(e,r,a,i),e.in=n.in,e.out=n.out});function ea(e,n){return new $l({type:"pipe",in:e,out:n})}var kl=O("ZodCodec",(e,n)=>{$l.init(e,n),tp.init(e,n)});function tz(e,n,r){return new kl({type:"pipe",in:e,out:n,transform:r.decode,reverseTransform:r.encode})}var bh=O("ZodReadonly",(e,n)=>{X4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>US(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function _h(e){return new bh({type:"readonly",innerType:e})}var yh=O("ZodTemplateLiteral",(e,n)=>{Y4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>dS(e,r,a)});function nz(e,n){return new yh({type:"template_literal",parts:e,...me.normalizeParams(n)})}var $h=O("ZodLazy",(e,n)=>{tI.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>jS(e,r,a,i),e.unwrap=()=>e._zod.def.getter()});function kh(e){return new $h({type:"lazy",getter:e})}var wh=O("ZodPromise",(e,n)=>{eI.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>NS(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function iz(e){return new wh({type:"promise",innerType:e})}var xh=O("ZodFunction",(e,n)=>{Q4.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>hS(e,r)});function ws(e){return new xh({type:"function",input:Array.isArray(e==null?void 0:e.input)?Qp(e==null?void 0:e.input):(e==null?void 0:e.input)??eo(mi()),output:(e==null?void 0:e.output)??mi()})}var ro=O("ZodCustom",(e,n)=>{nI.init(e,n),le.init(e,n),e._zod.processJSONSchema=(r,a,i)=>pS(e,r)});function rz(e){let n=new Me({check:"custom"});return n._zod.check=e,n}function az(e,n){return FI(ro,e??(()=>!0),n)}function Ih(e,n={}){return JI(ro,e,n)}function Sh(e){return qI(e)}var oz=WI,sz=HI;function uz(e,n={}){let r=new ro({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...me.normalizeParams(n)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}var lz=(...e)=>GI({Codec:kl,Boolean:Ya,String:Ba},...e);function cz(e){let n=kh(()=>vl([$s(e),Ap(),Cp(),Fp(),eo(n),eh($s(),n)]));return n}function dz(e,n){return ea(bl(e),n)}var fV={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 mV(e){it({customError:e})}function pV(){return it().customError}var Pc;Pc||(Pc={});var q={...ES,...ZS,iso:Np},hV=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 vV(e,n){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":n??"draft-2020-12"}function gV(e,n){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return n.rootSchema;let a=n.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===a){let i=r[1];if(!i||!n.defs[i])throw Error(`Reference not found: ${e}`);return n.defs[i]}throw Error(`Reference not found: ${e}`)}function fz(e,n){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return q.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let i=e.$ref;if(n.refs.has(i))return n.refs.get(i);if(n.processing.has(i))return q.lazy(()=>{if(!n.refs.has(i))throw Error(`Circular reference not resolved: ${i}`);return n.refs.get(i)});n.processing.add(i);let o=gV(i,n),s=tt(o,n);return n.refs.set(i,s),n.processing.delete(i),s}if(e.enum!==void 0){let i=e.enum;if(n.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return q.null();if(i.length===0)return q.never();if(i.length===1)return q.literal(i[0]);if(i.every(s=>typeof s=="string"))return q.enum(i);let o=i.map(s=>q.literal(s));return o.length<2?o[0]:q.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return q.literal(e.const);let r=e.type;if(Array.isArray(r)){let i=r.map(o=>{let s={...e,type:o};return fz(s,n)});return i.length===0?q.never():i.length===1?i[0]:q.union(i)}if(!r)return q.any();let a;switch(r){case"string":{let i=q.string();if(e.format){let o=e.format;o==="email"?i=i.check(q.email()):o==="uri"||o==="uri-reference"?i=i.check(q.url()):o==="uuid"||o==="guid"?i=i.check(q.uuid()):o==="date-time"?i=i.check(q.iso.datetime()):o==="date"?i=i.check(q.iso.date()):o==="time"?i=i.check(q.iso.time()):o==="duration"?i=i.check(q.iso.duration()):o==="ipv4"?i=i.check(q.ipv4()):o==="ipv6"?i=i.check(q.ipv6()):o==="mac"?i=i.check(q.mac()):o==="cidr"?i=i.check(q.cidrv4()):o==="cidr-v6"?i=i.check(q.cidrv6()):o==="base64"?i=i.check(q.base64()):o==="base64url"?i=i.check(q.base64url()):o==="e164"?i=i.check(q.e164()):o==="jwt"?i=i.check(q.jwt()):o==="emoji"?i=i.check(q.emoji()):o==="nanoid"?i=i.check(q.nanoid()):o==="cuid"?i=i.check(q.cuid()):o==="cuid2"?i=i.check(q.cuid2()):o==="ulid"?i=i.check(q.ulid()):o==="xid"?i=i.check(q.xid()):o==="ksuid"&&(i=i.check(q.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),a=i;break}case"number":case"integer":{let i=r==="integer"?q.number().int():q.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),a=i;break}case"boolean":{a=q.boolean();break}case"null":{a=q.null();break}case"object":{let i={},o=e.properties||{},s=new Set(e.required||[]);for(let[l,c]of Object.entries(o)){let d=tt(c,n);i[l]=s.has(l)?d:d.optional()}if(e.propertyNames){let l=tt(e.propertyNames,n),c=e.additionalProperties&&typeof e.additionalProperties=="object"?tt(e.additionalProperties,n):q.any();if(Object.keys(i).length===0){a=q.record(l,c);break}let d=q.object(i).passthrough(),f=q.looseRecord(l,c);a=q.intersection(d,f);break}if(e.patternProperties){let l=e.patternProperties,c=Object.keys(l),d=[];for(let m of c){let p=tt(l[m],n),h=q.string().regex(new RegExp(m));d.push(q.looseRecord(h,p))}let f=[];if(Object.keys(i).length>0&&f.push(q.object(i).passthrough()),f.push(...d),f.length===0)a=q.object({}).passthrough();else if(f.length===1)a=f[0];else{let m=q.intersection(f[0],f[1]);for(let p=2;p<f.length;p++)m=q.intersection(m,f[p]);a=m}break}let u=q.object(i);e.additionalProperties===!1?a=u.strict():typeof e.additionalProperties=="object"?a=u.catchall(tt(e.additionalProperties,n)):a=u.passthrough();break}case"array":{let{prefixItems:i,items:o}=e;if(i&&Array.isArray(i)){let s=i.map(l=>tt(l,n)),u=o&&typeof o=="object"&&!Array.isArray(o)?tt(o,n):void 0;u?a=q.tuple(s).rest(u):a=q.tuple(s),typeof e.minItems=="number"&&(a=a.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(q.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=o.map(l=>tt(l,n)),u=e.additionalItems&&typeof e.additionalItems=="object"?tt(e.additionalItems,n):void 0;u?a=q.tuple(s).rest(u):a=q.tuple(s),typeof e.minItems=="number"&&(a=a.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(q.maxLength(e.maxItems)))}else if(o!==void 0){let s=tt(o,n),u=q.array(s);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),a=u}else a=q.array(q.any());break}default:throw Error(`Unsupported type: ${r}`)}return e.description&&(a=a.describe(e.description)),e.default!==void 0&&(a=a.default(e.default)),a}function tt(e,n){if(typeof e=="boolean")return e?q.any():q.never();let r=fz(e,n),a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(c=>tt(c,n)),l=q.union(u);r=a?q.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(c=>tt(c,n)),l=q.xor(u);r=a?q.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=a?r:q.any();else{let u=a?r:tt(e.allOf[0],n),l=a?0:1;for(let c=l;c<e.allOf.length;c++)u=q.intersection(u,tt(e.allOf[c],n));r=u}e.nullable===!0&&n.version==="openapi-3.0"&&(r=q.nullable(r)),e.readOnly===!0&&(r=q.readonly(r));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of o)u in e&&(i[u]=e[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in e&&(i[u]=e[u]);for(let u of Object.keys(e))hV.has(u)||(i[u]=e[u]);return Object.keys(i).length>0&&n.registry.add(r,i),r}function bV(e,n){if(typeof e=="boolean")return e?q.any():q.never();let r=vV(e,n==null?void 0:n.defaultTarget),a=e.$defs||e.definitions||{},i={version:r,defs:a,refs:new Map,processing:new Set,rootSchema:e,registry:(n==null?void 0:n.registry)??Ot};return tt(e,i)}var mz={};Sn(mz,{string:()=>_V,number:()=>yV,date:()=>wV,boolean:()=>$V,bigint:()=>kV});function _V(e){return cI(Ba,e)}function yV(e){return bI(Xa,e)}function $V(e){return II(Ya,e)}function kV(e){return zI(Qa,e)}function wV(e){return CI(hl,e)}it(iI());var xV=y.union([y.literal("light"),y.literal("dark")]).describe("Color theme preference for the host environment."),ta=y.union([y.literal("inline"),y.literal("fullscreen"),y.literal("pip")]).describe("Display mode for UI presentation."),IV=y.union([y.literal("--color-background-primary"),y.literal("--color-background-secondary"),y.literal("--color-background-tertiary"),y.literal("--color-background-inverse"),y.literal("--color-background-ghost"),y.literal("--color-background-info"),y.literal("--color-background-danger"),y.literal("--color-background-success"),y.literal("--color-background-warning"),y.literal("--color-background-disabled"),y.literal("--color-text-primary"),y.literal("--color-text-secondary"),y.literal("--color-text-tertiary"),y.literal("--color-text-inverse"),y.literal("--color-text-ghost"),y.literal("--color-text-info"),y.literal("--color-text-danger"),y.literal("--color-text-success"),y.literal("--color-text-warning"),y.literal("--color-text-disabled"),y.literal("--color-text-ghost"),y.literal("--color-border-primary"),y.literal("--color-border-secondary"),y.literal("--color-border-tertiary"),y.literal("--color-border-inverse"),y.literal("--color-border-ghost"),y.literal("--color-border-info"),y.literal("--color-border-danger"),y.literal("--color-border-success"),y.literal("--color-border-warning"),y.literal("--color-border-disabled"),y.literal("--color-ring-primary"),y.literal("--color-ring-secondary"),y.literal("--color-ring-inverse"),y.literal("--color-ring-info"),y.literal("--color-ring-danger"),y.literal("--color-ring-success"),y.literal("--color-ring-warning"),y.literal("--font-sans"),y.literal("--font-mono"),y.literal("--font-weight-normal"),y.literal("--font-weight-medium"),y.literal("--font-weight-semibold"),y.literal("--font-weight-bold"),y.literal("--font-text-xs-size"),y.literal("--font-text-sm-size"),y.literal("--font-text-md-size"),y.literal("--font-text-lg-size"),y.literal("--font-heading-xs-size"),y.literal("--font-heading-sm-size"),y.literal("--font-heading-md-size"),y.literal("--font-heading-lg-size"),y.literal("--font-heading-xl-size"),y.literal("--font-heading-2xl-size"),y.literal("--font-heading-3xl-size"),y.literal("--font-text-xs-line-height"),y.literal("--font-text-sm-line-height"),y.literal("--font-text-md-line-height"),y.literal("--font-text-lg-line-height"),y.literal("--font-heading-xs-line-height"),y.literal("--font-heading-sm-line-height"),y.literal("--font-heading-md-line-height"),y.literal("--font-heading-lg-line-height"),y.literal("--font-heading-xl-line-height"),y.literal("--font-heading-2xl-line-height"),y.literal("--font-heading-3xl-line-height"),y.literal("--border-radius-xs"),y.literal("--border-radius-sm"),y.literal("--border-radius-md"),y.literal("--border-radius-lg"),y.literal("--border-radius-xl"),y.literal("--border-radius-full"),y.literal("--border-width-regular"),y.literal("--shadow-hairline"),y.literal("--shadow-sm"),y.literal("--shadow-md"),y.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),SV=y.record(IV.describe(`Style variables for theming MCP apps.
|
|
228
|
+
|
|
229
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
230
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
231
|
+
|
|
232
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
233
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),y.union([y.string(),y.undefined()]).describe(`Style variables for theming MCP apps.
|
|
234
|
+
|
|
235
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
236
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
237
|
+
|
|
238
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
239
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
|
|
240
|
+
|
|
241
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
242
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
243
|
+
|
|
244
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
245
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);y.object({method:y.literal("ui/open-link"),params:y.object({url:y.string().describe("URL to open in the host's browser")})});y.object({isError:y.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough();y.object({isError:y.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough();y.object({isError:y.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();y.object({method:y.literal("ui/notifications/sandbox-proxy-ready"),params:y.object({})});var zh=y.object({connectDomains:y.array(y.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
246
|
+
|
|
247
|
+
- Maps to CSP \`connect-src\` directive
|
|
248
|
+
- Empty or omitted → no network connections (secure default)`),resourceDomains:y.array(y.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:y.array(y.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:y.array(y.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Oh=y.object({camera:y.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:y.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:y.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:y.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});y.object({method:y.literal("ui/notifications/size-changed"),params:y.object({width:y.number().optional().describe("New width in pixels."),height:y.number().optional().describe("New height in pixels.")})});y.object({method:y.literal("ui/notifications/tool-input"),params:y.object({arguments:y.record(y.string(),y.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})});y.object({method:y.literal("ui/notifications/tool-input-partial"),params:y.object({arguments:y.record(y.string(),y.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})});y.object({method:y.literal("ui/notifications/tool-cancelled"),params:y.object({reason:y.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})});var zV=y.object({fonts:y.string().optional()}),OV=y.object({variables:SV.optional().describe("CSS variables for theming the app."),css:zV.optional().describe("CSS blocks that apps can inject.")});y.object({method:y.literal("ui/resource-teardown"),params:y.object({})});y.record(y.string(),y.unknown());var nb=y.object({text:y.object({}).optional().describe("Host supports text content blocks."),image:y.object({}).optional().describe("Host supports image content blocks."),audio:y.object({}).optional().describe("Host supports audio content blocks."),resource:y.object({}).optional().describe("Host supports resource content blocks."),resourceLink:y.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:y.object({}).optional().describe("Host supports structured content.")}),PV=y.object({experimental:y.object({}).optional().describe("Experimental features (structure TBD)."),openLinks:y.object({}).optional().describe("Host supports opening external URLs."),downloadFile:y.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:y.object({listChanged:y.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:y.object({listChanged:y.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:y.object({}).optional().describe("Host accepts log messages."),sandbox:y.object({permissions:Oh.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:zh.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:nb.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:nb.optional().describe("Host supports receiving content messages (ui/message) from the view.")}),UV=y.object({experimental:y.object({}).optional().describe("Experimental features (structure TBD)."),tools:y.object({listChanged:y.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:y.array(ta).optional().describe("Display modes the app supports.")});y.object({method:y.literal("ui/notifications/initialized"),params:y.object({}).optional()});y.object({csp:zh.optional().describe("Content Security Policy configuration for UI resources."),permissions:Oh.optional().describe("Sandbox permissions requested by the UI resource."),domain:y.string().optional().describe(`Dedicated origin for view sandbox.
|
|
249
|
+
|
|
250
|
+
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
251
|
+
|
|
252
|
+
**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
|
|
253
|
+
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
|
|
254
|
+
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
|
|
255
|
+
|
|
256
|
+
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:y.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
|
|
257
|
+
|
|
258
|
+
Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
|
|
259
|
+
|
|
260
|
+
- \`true\`: request visible border + background
|
|
261
|
+
- \`false\`: request no visible border + background
|
|
262
|
+
- omitted: host decides border`)});y.object({method:y.literal("ui/request-display-mode"),params:y.object({mode:ta.describe("The display mode being requested.")})});y.object({mode:ta.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var NV=y.union([y.literal("model"),y.literal("app")]).describe("Tool visibility scope - who can access the tool.");y.object({resourceUri:y.string().optional(),visibility:y.array(NV).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
263
|
+
- "model": Tool visible to and callable by the agent
|
|
264
|
+
- "app": Tool callable by the app from this server only`)});y.object({mimeTypes:y.array(y.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});y.object({method:y.literal("ui/download-file"),params:y.object({contents:y.array(y.union([jd,Td])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});y.object({method:y.literal("ui/message"),params:y.object({role:y.literal("user").describe('Message role, currently only "user" is supported.'),content:y.array(pi).describe("Message content blocks (text, image, etc.).")})});y.object({method:y.literal("ui/notifications/sandbox-resource-ready"),params:y.object({html:y.string().describe("HTML content to load into the inner iframe."),sandbox:y.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:zh.optional().describe("CSP configuration from resource metadata."),permissions:Oh.optional().describe("Sandbox permissions from resource metadata.")})});y.object({method:y.literal("ui/notifications/tool-result"),params:fa.describe("Standard MCP tool execution result.")});var pz=y.object({toolInfo:y.object({id:nr.optional().describe("JSON-RPC id of the tools/call request."),tool:Ms.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:xV.optional().describe("Current color theme preference."),styles:OV.optional().describe("Style configuration for theming the app."),displayMode:ta.optional().describe("How the UI is currently displayed."),availableDisplayModes:y.array(ta).optional().describe("Display modes the host supports."),containerDimensions:y.union([y.object({height:y.number().describe("Fixed container height in pixels.")}),y.object({maxHeight:y.union([y.number(),y.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(y.union([y.object({width:y.number().describe("Fixed container width in pixels.")}),y.object({maxWidth:y.union([y.number(),y.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
265
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:y.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:y.string().optional().describe("User's timezone in IANA format."),userAgent:y.string().optional().describe("Host application identifier."),platform:y.union([y.literal("web"),y.literal("desktop"),y.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:y.object({touch:y.boolean().optional().describe("Whether the device supports touch input."),hover:y.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:y.object({top:y.number().describe("Top safe area inset in pixels."),right:y.number().describe("Right safe area inset in pixels."),bottom:y.number().describe("Bottom safe area inset in pixels."),left:y.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();y.object({method:y.literal("ui/notifications/host-context-changed"),params:pz.describe("Partial context update containing only changed fields.")});y.object({method:y.literal("ui/update-model-context"),params:y.object({content:y.array(pi).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:y.record(y.string(),y.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});y.object({method:y.literal("ui/initialize"),params:y.object({appInfo:ir.describe("App identification (name and version)."),appCapabilities:UV.describe("Features and capabilities this app provides."),protocolVersion:y.string().describe("Protocol version this app supports.")})});y.object({protocolVersion:y.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:ir.describe("Host application identification and version."),hostCapabilities:PV.describe("Features and capabilities provided by the host."),hostContext:pz.describe("Rich context about the host environment.")}).passthrough();class jV{constructor(n=window.parent,r){je(this,"eventTarget");je(this,"eventSource");je(this,"messageListener");je(this,"onclose");je(this,"onerror");je(this,"onmessage");je(this,"sessionId");je(this,"setProtocolVersion");this.eventTarget=n,this.eventSource=r,this.messageListener=a=>{var o,s,u;if(r&&a.source!==this.eventSource){console.debug("Ignoring message from unknown source",a);return}let i=Ny.safeParse(a.data);i.success?(console.debug("Parsed message",i.data),(o=this.onmessage)==null||o.call(this,i.data)):((s=a.data)==null?void 0:s.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",i.error.message,a):(console.error("Failed to parse message",i.error.message,a),(u=this.onerror)==null||u.call(this,Error("Invalid JSON-RPC message received: "+i.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(n,r){console.debug("Sending message",n),this.eventTarget.postMessage(n,"*")}async close(){var n;window.removeEventListener("message",this.messageListener),(n=this.onclose)==null||n.call(this)}}const Ph=new VL({name:"GraphConstellation",version:"1.0.0"},{});let yr=null;function TV(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const EV={governs:"#6366f1",informs:"#8b5cf6",part_of:"#a855f7",constrains:"#d946ef",depends_on:"#ec4899",related_to:"#f43f5e",suggested:"#94a3b8",related:"#64748b"};function ZV(e){return EV[e.type??""]??"#94a3b8"}function Do(e,n){const r=document.getElementById("root");if(!r)return;if(e.length===0){r.innerHTML='<div class="empty">No graph data to display</div>',yr&&yr.graphData({nodes:[],links:[]});return}let a=document.getElementById("graph");a||(r.innerHTML='<div class="view-title">Constellation</div><div id="graph"></div>',a=document.getElementById("graph"));const i=new Map(e.map(u=>[u.id,{...u}])),o=n.filter(u=>i.has(u.source)&&i.has(u.target)).map(u=>({source:u.source,target:u.target,type:u.type??"related"})),s={nodes:Array.from(i.values()),links:o};yr||(yr=$3()(a).nodeId("id").nodeLabel(u=>TV(`${u.name??u.id}${u.collectionName?` [${u.collectionName}]`:""}`)).linkColor(u=>ZV(u)).linkDirectionalArrowLength(4).linkDirectionalArrowRelPos(1).linkCurvature(.15)),yr.graphData(s)}Ph.ontoolresult=e=>{var r,a;const n=e.structuredContent;if((r=n==null?void 0:n.nodes)!=null&&r.length){const i=n.edges??[];Do(n.nodes,i)}else if((a=n==null?void 0:n.entries)!=null&&a.length){const i=n.entries,o=i.map(u=>({id:u.entryId??String(Math.random()),name:u.name,collectionName:u.collectionName})),s=o.length>1?i.slice(1).map(u=>({source:i[0].entryId??"",target:u.entryId??"",type:"related"})):[];Do(o,s)}else Do([],[])};Ph.ontoolinput=()=>{Do([],[])};const DV=new jV(window.parent,window.parent);Ph.connect(DV);</script>
|
|
266
|
+
</head>
|
|
267
|
+
<body>
|
|
268
|
+
<div id="root">
|
|
269
|
+
<div class="empty">Waiting for graph data…</div>
|
|
270
|
+
</div>
|
|
271
|
+
</body>
|
|
272
|
+
</html>
|