@spritz-finance/api-client 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -30
- package/dist/spritz-api-client.cjs +70 -54
- package/dist/spritz-api-client.d.ts +27 -3
- package/dist/spritz-api-client.mjs +70 -54
- package/package.json +2 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),l=i.split(/\r\n|[\n\r]/g),f=l[u];if(f.length>120){for(var m=Math.floor(s/80),d=s%80,v=[],h=0;h<f.length;h+=80)v.push(f.slice(h,h+80));return c+
|
|
3
|
-
`)}function lu(e){return Array(e+1).join(" ")}function
|
|
1
|
+
import{PublicKey as av,VersionedTransaction as ov}from"@solana/web3.js";var or=(e=>(e.Sandbox="staging",e.Production="production",e))(or||{}),sv=Object.defineProperty,yn=(e,n)=>{for(var t in n)sv(e,t,{get:n[t],enumerable:!0})};function cu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cu=function(t){return typeof t}:cu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function bn(e){return cu(e)=="object"&&e!==null}var _s=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",Ce=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function sr(e,n){for(var t=/\r\n|[\n\r]/g,i=1,u=n+1,r;(r=t.exec(e.body))&&r.index<n;)i+=1,u=n+1-(r.index+r[0].length);return{line:i,column:u}}function cv(e){return As(e.source,sr(e.source,e.start))}function As(e,n){var t=e.locationOffset.column-1,i=lu(t)+e.body,u=n.line-1,r=e.locationOffset.line-1,a=n.line+r,o=n.line===1?t:0,s=n.column+o,c="".concat(e.name,":").concat(a,":").concat(s,`
|
|
2
|
+
`),l=i.split(/\r\n|[\n\r]/g),f=l[u];if(f.length>120){for(var m=Math.floor(s/80),d=s%80,v=[],h=0;h<f.length;h+=80)v.push(f.slice(h,h+80));return c+Ss([["".concat(a),v[0]]].concat(v.slice(1,m+1).map(function(b){return["",b]}),[[" ",lu(d-1)+"^"],["",v[m+1]]]))}return c+Ss([["".concat(a-1),l[u-1]],["".concat(a),f],["",lu(s-1)+"^"],["".concat(a+1),l[u+1]]])}function Ss(e){var n=e.filter(function(i){i[0];var u=i[1];return u!==void 0}),t=Math.max.apply(Math,n.map(function(i){var u=i[0];return u.length}));return n.map(function(i){var u=i[0],r=i[1];return lv(t,u)+(r?" | "+r:" |")}).join(`
|
|
3
|
+
`)}function lu(e){return Array(e+1).join(" ")}function lv(e,n){return lu(e-n.length)+n}function du(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(t){return typeof t}:du=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}function ws(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),t.push.apply(t,i)}return t}function dv(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ws(Object(t),!0).forEach(function(i){fv(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ws(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function fv(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function mv(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function vv(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function pv(e,n,t){return n&&vv(e.prototype,n),e}function hv(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&wt(e,n)}function gv(e){var n=$s();return function(){var i=Ct(e),u;if(n){var r=Ct(this).constructor;u=Reflect.construct(i,arguments,r)}else u=i.apply(this,arguments);return Cs(this,u)}}function Cs(e,n){return n&&(du(n)==="object"||typeof n=="function")?n:St(e)}function St(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cr(e){var n=typeof Map=="function"?new Map:void 0;return cr=function(i){if(i===null||!Ev(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(i))return n.get(i);n.set(i,u)}function u(){return fu(i,arguments,Ct(this).constructor)}return u.prototype=Object.create(i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),wt(u,i)},cr(e)}function fu(e,n,t){return $s()?fu=Reflect.construct:fu=function(u,r,a){var o=[null];o.push.apply(o,r);var s=Function.bind.apply(u,o),c=new s;return a&&wt(c,a.prototype),c},fu.apply(null,arguments)}function $s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ev(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function wt(e,n){return wt=Object.setPrototypeOf||function(i,u){return i.__proto__=u,i},wt(e,n)}function Ct(e){return Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(e)}var ee=function(e){hv(t,e);var n=gv(t);function t(i,u,r,a,o,s,c){var l,f,m,d;mv(this,t),d=n.call(this,i),d.name="GraphQLError",d.originalError=s??void 0,d.nodes=xs(Array.isArray(u)?u:u?[u]:void 0);for(var v=[],h=0,b=(y=d.nodes)!==null&&y!==void 0?y:[];h<b.length;h++){var y,E=b[h],k=E.loc;k!=null&&v.push(k)}v=xs(v),d.source=r??((l=v)===null||l===void 0?void 0:l[0].source),d.positions=a??((f=v)===null||f===void 0?void 0:f.map(function(_){return _.start})),d.locations=a&&r?a.map(function(_){return sr(r,_)}):(m=v)===null||m===void 0?void 0:m.map(function(_){return sr(_.source,_.start)}),d.path=o??void 0;var w=s?.extensions;return c==null&&bn(w)?d.extensions=dv({},w):d.extensions=c??{},Object.defineProperties(St(d),{message:{enumerable:!0},locations:{enumerable:d.locations!=null},path:{enumerable:d.path!=null},extensions:{enumerable:d.extensions!=null&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?(Object.defineProperty(St(d),"stack",{value:s.stack,writable:!0,configurable:!0}),Cs(d)):(Error.captureStackTrace?Error.captureStackTrace(St(d),t):Object.defineProperty(St(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return pv(t,[{key:"toString",value:function(){return yv(this)}},{key:Ce,get:function(){return"Object"}}]),t}(cr(Error));function xs(e){return e===void 0||e.length===0?void 0:e}function yv(e){var n=e.message;if(e.nodes)for(var t=0,i=e.nodes;t<i.length;t++){var u=i[t];u.loc&&(n+=`
|
|
4
4
|
|
|
5
|
-
`+
|
|
5
|
+
`+cv(u.loc))}else if(e.source&&e.locations)for(var r=0,a=e.locations;r<a.length;r++){var o=a[r];n+=`
|
|
6
6
|
|
|
7
|
-
`+
|
|
7
|
+
`+As(e.source,o)}return n}var C=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function $t(e,n){var t=!!e;if(!t)throw new Error(n??"Unexpected invariant triggered.")}var bv=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,lr=bv;function Te(e){var n=e.prototype.toJSON;typeof n=="function"||$t(0),e.prototype.inspect=n,lr&&(e.prototype[lr]=n)}var kv=function(){function e(t,i,u){this.start=t.start,this.end=i.end,this.startToken=t,this.endToken=i,this.source=u}var n=e.prototype;return n.toJSON=function(){return{start:this.start,end:this.end}},e}();Te(kv);var Dv=function(){function e(t,i,u,r,a,o,s){this.kind=t,this.start=i,this.end=u,this.line=r,this.column=a,this.value=s,this.prev=o,this.next=null}var n=e.prototype;return n.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();Te(Dv);function dr(e){return e!=null&&typeof e.kind=="string"}function mu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mu=function(t){return typeof t}:mu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}var Bv=10,Is=2;function J(e){return vu(e,[])}function vu(e,n){switch(mu(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":_v(e,n);default:return String(e)}}function _v(e,n){if(n.indexOf(e)!==-1)return"[Circular]";var t=[].concat(n,[e]),i=wv(e);if(i!==void 0){var u=i.call(e);if(u!==e)return typeof u=="string"?u:vu(u,t)}else if(Array.isArray(e))return Sv(e,t);return Av(e,t)}function Av(e,n){var t=Object.keys(e);if(t.length===0)return"{}";if(n.length>Is)return"["+Cv(e)+"]";var i=t.map(function(u){var r=vu(e[u],n);return u+": "+r});return"{ "+i.join(", ")+" }"}function Sv(e,n){if(e.length===0)return"[]";if(n.length>Is)return"[Array]";for(var t=Math.min(Bv,e.length),i=e.length-t,u=[],r=0;r<t;++r)u.push(vu(e[r],n));return i===1?u.push("... 1 more item"):i>1&&u.push("... ".concat(i," more items")),"["+u.join(", ")+"]"}function wv(e){var n=e[String(lr)];if(typeof n=="function")return n;if(typeof e.inspect=="function")return e.inspect}function Cv(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof e.constructor=="function"){var t=e.constructor.name;if(typeof t=="string"&&t!=="")return t}return n}function q(e,n){var t=!!e;if(!t)throw new Error(n)}function pu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pu=function(t){return typeof t}:pu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}var Ge=function(n,t){if(n instanceof t)return!0;if(pu(n)==="object"&&n!==null){var i,u=t.prototype[Symbol.toStringTag],r=Symbol.toStringTag in n?n[Symbol.toStringTag]:(i=n.constructor)===null||i===void 0?void 0:i.name;if(u===r){var a=J(n);throw new Error("Cannot use ".concat(u,' "').concat(a,`" from another module or realm.
|
|
8
8
|
|
|
9
9
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
10
10
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -15,20 +15,20 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
15
15
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
16
16
|
versions may have different capabilities and behavior. The data from one
|
|
17
17
|
version used in the function from another could produce confusing and
|
|
18
|
-
spurious results.`))}}return!1};function
|
|
18
|
+
spurious results.`))}}return!1};function $v(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function xv(e,n,t){return n&&$v(e.prototype,n),e}(function(){function e(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof n=="string"||q(0,"Body must be a string. Received: ".concat(J(n),".")),this.body=n,this.name=t,this.locationOffset=i,this.locationOffset.line>0||q(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||q(0,"column in locationOffset is 1-indexed and must be positive.")}return xv(e,[{key:Ce,get:function(){return"Source"}}]),e})();var K=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Iv(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=e.indexOf(`
|
|
19
19
|
`)===-1,u=e[0]===" "||e[0]===" ",r=e[e.length-1]==='"',a=e[e.length-1]==="\\",o=!i||r||a||t,s="";return o&&!(i&&u)&&(s+=`
|
|
20
20
|
`+n),s+=n?e.replace(/\n/g,`
|
|
21
21
|
`+n):e,o&&(s+=`
|
|
22
|
-
`),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var
|
|
22
|
+
`),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var Fv={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Nv=Object.freeze({});function Fs(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fv,i=void 0,u=Array.isArray(e),r=[e],a=-1,o=[],s=void 0,c=void 0,l=void 0,f=[],m=[],d=e;do{a++;var v=a===r.length,h=v&&o.length!==0;if(v){if(c=m.length===0?void 0:f[f.length-1],s=l,l=m.pop(),h){if(u)s=s.slice();else{for(var b={},y=0,E=Object.keys(s);y<E.length;y++){var k=E[y];b[k]=s[k]}s=b}for(var w=0,_=0;_<o.length;_++){var G=o[_][0],V=o[_][1];u&&(G-=w),u&&V===null?(s.splice(G,1),w++):s[G]=V}}a=i.index,r=i.keys,o=i.edits,u=i.inArray,i=i.prev}else{if(c=l?u?a:r[a]:void 0,s=l?l[c]:d,s==null)continue;l&&f.push(c)}var F=void 0;if(!Array.isArray(s)){if(!dr(s))throw new Error("Invalid AST Node: ".concat(J(s),"."));var g=fr(n,s.kind,v);if(g){if(F=g.call(n,s,c,l,f,m),F===Nv)break;if(F===!1){if(!v){f.pop();continue}}else if(F!==void 0&&(o.push([c,F]),!v))if(dr(F))s=F;else{f.pop();continue}}}if(F===void 0&&h&&o.push([c,s]),v)f.pop();else{var $;i={inArray:u,index:a,keys:r,edits:o,prev:i},u=Array.isArray(s),r=u?s:($=t[s.kind])!==null&&$!==void 0?$:[],a=-1,o=[],l&&m.push(l),l=s}}while(i!==void 0);return o.length!==0&&(d=o[o.length-1][1]),d}function fr(e,n,t){var i=e[n];if(i){if(!t&&typeof i=="function")return i;var u=t?i.leave:i.enter;if(typeof u=="function")return u}else{var r=t?e.leave:e.enter;if(r){if(typeof r=="function")return r;var a=r[n];if(typeof a=="function")return a}}}var Tv=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var i=e[t];if(n(i))return i}},Ns=Tv,Ov=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},kn=Ov,zv=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})},xt=zv;function Ts(e,n){return e.reduce(function(t,i){return t[n(i)]=i,t},Object.create(null))}function hu(e,n){for(var t=Object.create(null),i=0,u=xt(e);i<u.length;i++){var r=u[i],a=r[0],o=r[1];t[a]=n(o,a)}return t}function Ae(e){if(Object.getPrototypeOf(e)===null)return e;for(var n=Object.create(null),t=0,i=xt(e);t<i.length;t++){var u=i[t],r=u[0],a=u[1];n[r]=a}return n}function mr(e,n,t){return e.reduce(function(i,u){return i[n(u)]=t(u),i},Object.create(null))}var Uv=5;function Pv(e,n){var t=[e,n],i=t[0],u=t[1],r=" Did you mean ";r+=i+" ";var a=u.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return r+a[0]+"?";case 2:return r+a[0]+" or "+a[1]+"?"}var o=a.slice(0,Uv),s=o.pop();return r+o.join(", ")+", or "+s+"?"}function Os(e){return e}function jv(e,n){for(var t=0,i=0;t<e.length&&i<n.length;){var u=e.charCodeAt(t),r=n.charCodeAt(i);if(gu(u)&&gu(r)){var a=0;do++t,a=a*10+u-vr,u=e.charCodeAt(t);while(gu(u)&&a>0);var o=0;do++i,o=o*10+r-vr,r=n.charCodeAt(i);while(gu(r)&&o>0);if(a<o)return-1;if(a>o)return 1}else{if(u<r)return-1;if(u>r)return 1;++t,++i}}return e.length-n.length}var vr=48,Rv=57;function gu(e){return!isNaN(e)&&vr<=e&&e<=Rv}function Lv(e,n){for(var t=Object.create(null),i=new Zv(e),u=Math.floor(e.length*.4)+1,r=0;r<n.length;r++){var a=n[r],o=i.measure(a,u);o!==void 0&&(t[a]=o)}return Object.keys(t).sort(function(s,c){var l=t[s]-t[c];return l!==0?l:jv(s,c)})}var Zv=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=zs(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}var n=e.prototype;return n.measure=function(i,u){if(this._input===i)return 0;var r=i.toLowerCase();if(this._inputLowerCase===r)return 1;var a=zs(r),o=this._inputArray;if(a.length<o.length){var s=a;a=o,o=s}var c=a.length,l=o.length;if(!(c-l>u)){for(var f=this._rows,m=0;m<=l;m++)f[0][m]=m;for(var d=1;d<=c;d++){for(var v=f[(d-1)%3],h=f[d%3],b=h[0]=d,y=1;y<=l;y++){var E=a[d-1]===o[y-1]?0:1,k=Math.min(v[y]+1,h[y-1]+1,v[y-1]+E);if(d>1&&y>1&&a[d-1]===o[y-2]&&a[d-2]===o[y-1]){var w=f[(d-2)%3][y-2];k=Math.min(k,w+1)}k<b&&(b=k),h[y]=k}if(b>u)return}var _=f[c%3][l];return _<=u?_:void 0}},e}();function zs(e){for(var n=e.length,t=new Array(n),i=0;i<n;++i)t[i]=e.charCodeAt(i);return t}function Je(e){return Fs(e,{leave:qv})}var Vv=80,qv={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return x(n.definitions,`
|
|
23
23
|
|
|
24
24
|
`)+`
|
|
25
|
-
`},OperationDefinition:function(n){var t=n.operation,i=n.name,u=ne("(",x(n.variableDefinitions,", "),")"),r=x(n.directives," "),a=n.selectionSet;return!i&&!r&&!u&&t==="query"?a:x([t,x([i,u]),r,a]," ")},VariableDefinition:function(n){var t=n.variable,i=n.type,u=n.defaultValue,r=n.directives;return t+": "+i+ne(" = ",u)+ne(" ",x(r," "))},SelectionSet:function(n){var t=n.selections;return ze(t)},Field:function(n){var t=n.alias,i=n.name,u=n.arguments,r=n.directives,a=n.selectionSet,o=ne("",t,": ")+i,s=o+ne("(",x(u,", "),")");return s.length>
|
|
25
|
+
`},OperationDefinition:function(n){var t=n.operation,i=n.name,u=ne("(",x(n.variableDefinitions,", "),")"),r=x(n.directives," "),a=n.selectionSet;return!i&&!r&&!u&&t==="query"?a:x([t,x([i,u]),r,a]," ")},VariableDefinition:function(n){var t=n.variable,i=n.type,u=n.defaultValue,r=n.directives;return t+": "+i+ne(" = ",u)+ne(" ",x(r," "))},SelectionSet:function(n){var t=n.selections;return ze(t)},Field:function(n){var t=n.alias,i=n.name,u=n.arguments,r=n.directives,a=n.selectionSet,o=ne("",t,": ")+i,s=o+ne("(",x(u,", "),")");return s.length>Vv&&(s=o+ne(`(
|
|
26
26
|
`,Eu(x(u,`
|
|
27
27
|
`)),`
|
|
28
|
-
)`)),x([s,x(r," "),a]," ")},Argument:function(n){var t=n.name,i=n.value;return t+": "+i},FragmentSpread:function(n){var t=n.name,i=n.directives;return"..."+t+ne(" ",x(i," "))},InlineFragment:function(n){var t=n.typeCondition,i=n.directives,u=n.selectionSet;return x(["...",ne("on ",t),x(i," "),u]," ")},FragmentDefinition:function(n){var t=n.name,i=n.typeCondition,u=n.variableDefinitions,r=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(ne("(",x(u,", "),")")," ")+"on ".concat(i," ").concat(ne("",x(r," ")," "))+a},IntValue:function(n){var t=n.value;return t},FloatValue:function(n){var t=n.value;return t},StringValue:function(n,t){var i=n.value,u=n.block;return u?
|
|
28
|
+
)`)),x([s,x(r," "),a]," ")},Argument:function(n){var t=n.name,i=n.value;return t+": "+i},FragmentSpread:function(n){var t=n.name,i=n.directives;return"..."+t+ne(" ",x(i," "))},InlineFragment:function(n){var t=n.typeCondition,i=n.directives,u=n.selectionSet;return x(["...",ne("on ",t),x(i," "),u]," ")},FragmentDefinition:function(n){var t=n.name,i=n.typeCondition,u=n.variableDefinitions,r=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(ne("(",x(u,", "),")")," ")+"on ".concat(i," ").concat(ne("",x(r," ")," "))+a},IntValue:function(n){var t=n.value;return t},FloatValue:function(n){var t=n.value;return t},StringValue:function(n,t){var i=n.value,u=n.block;return u?Iv(i,t==="description"?"":" "):JSON.stringify(i)},BooleanValue:function(n){var t=n.value;return t?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){var t=n.value;return t},ListValue:function(n){var t=n.values;return"["+x(t,", ")+"]"},ObjectValue:function(n){var t=n.fields;return"{"+x(t,", ")+"}"},ObjectField:function(n){var t=n.name,i=n.value;return t+": "+i},Directive:function(n){var t=n.name,i=n.arguments;return"@"+t+ne("(",x(i,", "),")")},NamedType:function(n){var t=n.name;return t},ListType:function(n){var t=n.type;return"["+t+"]"},NonNullType:function(n){var t=n.type;return t+"!"},SchemaDefinition:Oe(function(e){var n=e.directives,t=e.operationTypes;return x(["schema",x(n," "),ze(t)]," ")}),OperationTypeDefinition:function(n){var t=n.operation,i=n.type;return t+": "+i},ScalarTypeDefinition:Oe(function(e){var n=e.name,t=e.directives;return x(["scalar",n,x(t," ")]," ")}),ObjectTypeDefinition:Oe(function(e){var n=e.name,t=e.interfaces,i=e.directives,u=e.fields;return x(["type",n,ne("implements ",x(t," & ")),x(i," "),ze(u)]," ")}),FieldDefinition:Oe(function(e){var n=e.name,t=e.arguments,i=e.type,u=e.directives;return n+(Us(t)?ne(`(
|
|
29
29
|
`,Eu(x(t,`
|
|
30
30
|
`)),`
|
|
31
|
-
)`):ne("(",x(t,", "),")"))+": "+i+ne(" ",x(u," "))}),InputValueDefinition:Oe(function(e){var n=e.name,t=e.type,i=e.defaultValue,u=e.directives;return x([n+": "+t,ne("= ",i),x(u," ")]," ")}),InterfaceTypeDefinition:Oe(function(e){var n=e.name,t=e.interfaces,i=e.directives,u=e.fields;return x(["interface",n,ne("implements ",x(t," & ")),x(i," "),ze(u)]," ")}),UnionTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,i=e.types;return x(["union",n,x(t," "),i&&i.length!==0?"= "+x(i," | "):""]," ")}),EnumTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,i=e.values;return x(["enum",n,x(t," "),ze(i)]," ")}),EnumValueDefinition:Oe(function(e){var n=e.name,t=e.directives;return x([n,x(t," ")]," ")}),InputObjectTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,i=e.fields;return x(["input",n,x(t," "),ze(i)]," ")}),DirectiveDefinition:Oe(function(e){var n=e.name,t=e.arguments,i=e.repeatable,u=e.locations;return"directive @"+n+(
|
|
31
|
+
)`):ne("(",x(t,", "),")"))+": "+i+ne(" ",x(u," "))}),InputValueDefinition:Oe(function(e){var n=e.name,t=e.type,i=e.defaultValue,u=e.directives;return x([n+": "+t,ne("= ",i),x(u," ")]," ")}),InterfaceTypeDefinition:Oe(function(e){var n=e.name,t=e.interfaces,i=e.directives,u=e.fields;return x(["interface",n,ne("implements ",x(t," & ")),x(i," "),ze(u)]," ")}),UnionTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,i=e.types;return x(["union",n,x(t," "),i&&i.length!==0?"= "+x(i," | "):""]," ")}),EnumTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,i=e.values;return x(["enum",n,x(t," "),ze(i)]," ")}),EnumValueDefinition:Oe(function(e){var n=e.name,t=e.directives;return x([n,x(t," ")]," ")}),InputObjectTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,i=e.fields;return x(["input",n,x(t," "),ze(i)]," ")}),DirectiveDefinition:Oe(function(e){var n=e.name,t=e.arguments,i=e.repeatable,u=e.locations;return"directive @"+n+(Us(t)?ne(`(
|
|
32
32
|
`,Eu(x(t,`
|
|
33
33
|
`)),`
|
|
34
34
|
)`):ne("(",x(t,", "),")"))+(i?" repeatable":"")+" on "+x(u," | ")}),SchemaExtension:function(n){var t=n.directives,i=n.operationTypes;return x(["extend schema",x(t," "),ze(i)]," ")},ScalarTypeExtension:function(n){var t=n.name,i=n.directives;return x(["extend scalar",t,x(i," ")]," ")},ObjectTypeExtension:function(n){var t=n.name,i=n.interfaces,u=n.directives,r=n.fields;return x(["extend type",t,ne("implements ",x(i," & ")),x(u," "),ze(r)]," ")},InterfaceTypeExtension:function(n){var t=n.name,i=n.interfaces,u=n.directives,r=n.fields;return x(["extend interface",t,ne("implements ",x(i," & ")),x(u," "),ze(r)]," ")},UnionTypeExtension:function(n){var t=n.name,i=n.directives,u=n.types;return x(["extend union",t,x(i," "),u&&u.length!==0?"= "+x(u," | "):""]," ")},EnumTypeExtension:function(n){var t=n.name,i=n.directives,u=n.values;return x(["extend enum",t,x(i," "),ze(u)]," ")},InputObjectTypeExtension:function(n){var t=n.name,i=n.directives,u=n.fields;return x(["extend input",t,x(i," "),ze(u)]," ")}};function Oe(e){return function(n){return x([n.description,e(n)],`
|
|
@@ -36,13 +36,13 @@ spurious results.`))}}return!1};function Dv(e,n){for(var t=0;t<n.length;t++){var
|
|
|
36
36
|
`,Eu(x(e,`
|
|
37
37
|
`)),`
|
|
38
38
|
}`)}function ne(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n!=null&&n!==""?e+n+t:""}function Eu(e){return ne(" ",e.replace(/\n/g,`
|
|
39
|
-
`))}function
|
|
40
|
-
`)!==-1}function Ns(e){return e!=null&&e.some(Pv)}function mr(e,n){switch(e.kind){case C.NULL:return null;case C.INT:return parseInt(e.value,10);case C.FLOAT:return parseFloat(e.value);case C.STRING:case C.ENUM:case C.BOOLEAN:return e.value;case C.LIST:return e.values.map(function(t){return mr(t,n)});case C.OBJECT:return dr(e.fields,function(t){return t.name.value},function(t){return mr(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}$t(0,"Unexpected value node: "+J(e))}function jv(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Un(e,n,t){return n&&jv(e.prototype,n),e}function Ts(e){return It(e)||Ze(e)||$e(e)||tn(e)||un(e)||Dn(e)||Ft(e)||Pn(e)}function Rv(e){if(!Ts(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL type."));return e}function It(e){return Ge(e,Bn)}function Ze(e){return Ge(e,rn)}function $e(e){return Ge(e,js)}function tn(e){return Ge(e,Rs)}function un(e){return Ge(e,ku)}function Dn(e){return Ge(e,Ls)}function Ft(e){return Ge(e,se)}function Pn(e){return Ge(e,R)}function jn(e){return It(e)||un(e)||Dn(e)||pr(e)&&jn(e.ofType)}function yu(e){return It(e)||Ze(e)||$e(e)||tn(e)||un(e)||pr(e)&&yu(e.ofType)}function Lv(e){return It(e)||un(e)}function vr(e){return Ze(e)||$e(e)||tn(e)}function Zv(e){return $e(e)||tn(e)}function se(e){if(this instanceof se)this.ofType=Rv(e);else return new se(e)}se.prototype.toString=function(){return"["+String(this.ofType)+"]"},se.prototype.toJSON=function(){return this.toString()},Object.defineProperty(se.prototype,Ce,{get:function(){return"GraphQLList"}}),Te(se);function R(e){if(this instanceof R)this.ofType=Mv(e);else return new R(e)}R.prototype.toString=function(){return String(this.ofType)+"!"},R.prototype.toJSON=function(){return this.toString()},Object.defineProperty(R.prototype,Ce,{get:function(){return"GraphQLNonNull"}}),Te(R);function pr(e){return Ft(e)||Pn(e)}function Vv(e){return Ts(e)&&!Pn(e)}function Mv(e){if(!Vv(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL nullable type."));return e}function qv(e){if(e)return Pn(e)?e.ofType:e}function Nt(e){if(e){for(var n=e;pr(n);)n=n.ofType;return n}}function bu(e){return typeof e=="function"?e():e}function Rn(e){return e&&e.length>0?e:void 0}var Bn=function(){function e(t){var i,u,r,a=(i=t.parseValue)!==null&&i!==void 0?i:Is;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(u=t.serialize)!==null&&u!==void 0?u:Is,this.parseValue=a,this.parseLiteral=(r=t.parseLiteral)!==null&&r!==void 0?r:function(o,s){return a(mr(o,s))},this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),typeof t.name=="string"||M(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||M(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(J(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||M(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||M(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var i;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLScalarType"}}]),e}();Te(Bn);var rn=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._fields=zs.bind(void 0,t),this._interfaces=Os.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||M(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(J(t.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Us(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLObjectType"}}]),e}();Te(rn);function Os(e){var n,t=(n=bu(e.interfaces))!==null&&n!==void 0?n:[];return Array.isArray(t)||M(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function zs(e){var n=bu(e.fields);return Ln(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),hu(n,function(t,i){var u;Ln(t)||M(0,"".concat(e.name,".").concat(i," field config must be an object.")),!("isDeprecated"in t)||M(0,"".concat(e.name,".").concat(i,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||M(0,"".concat(e.name,".").concat(i," field resolver must be a function if ")+"provided, but got: ".concat(J(t.resolve),"."));var r=(u=t.args)!==null&&u!==void 0?u:{};Ln(r)||M(0,"".concat(e.name,".").concat(i," args must be an object with argument names as keys."));var a=xt(r).map(function(o){var s=o[0],c=o[1];return{name:s,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&Ae(c.extensions),astNode:c.astNode}});return{name:i,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}})}function Ln(e){return bn(e)&&!Array.isArray(e)}function Us(e){return hu(e,function(n){return{description:n.description,type:n.type,args:Ps(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Ps(e){return dr(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}var js=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._fields=zs.bind(void 0,t),this._interfaces=Os.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var i;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Us(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLInterfaceType"}}]),e}();Te(js);var Rs=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._types=Gv.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},n.toConfig=function(){var i;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLUnionType"}}]),e}();Te(Rs);function Gv(e){var n=bu(e.types);return Array.isArray(n)||M(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}var ku=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._values=Jv(this.name,t.values),this._valueLookup=new Map(this._values.map(function(i){return[i.value,i]})),this._nameLookup=xs(this._values,function(i){return i.name}),typeof t.name=="string"||M(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(i){return this._nameLookup[i]},n.serialize=function(i){var u=this._valueLookup.get(i);if(u===void 0)throw new ee('Enum "'.concat(this.name,'" cannot represent value: ').concat(J(i)));return u.name},n.parseValue=function(i){if(typeof i!="string"){var u=J(i);throw new ee('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(u,".")+Du(this,u))}var r=this.getValue(i);if(r==null)throw new ee('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Du(this,i));return r.value},n.parseLiteral=function(i,u){if(i.kind!==C.ENUM){var r=Je(i);throw new ee('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(r,".")+Du(this,r),i)}var a=this.getValue(i.value);if(a==null){var o=Je(i);throw new ee('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+Du(this,o),i)}return a.value},n.toConfig=function(){var i,u=dr(this.getValues(),function(r){return r.name},function(r){return{description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,values:u,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLEnumType"}}]),e}();Te(ku);function Du(e,n){var t=e.getValues().map(function(u){return u.name}),i=Tv(n,t);return Iv("the enum value",i)}function Jv(e,n){return Ln(n)||M(0,"".concat(e," values must be an object with value names as keys.")),xt(n).map(function(t){var i=t[0],u=t[1];return Ln(u)||M(0,"".concat(e,".").concat(i,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(J(u),".")),!("isDeprecated"in u)||M(0,"".concat(e,".").concat(i,' should provide "deprecationReason" instead of "isDeprecated".')),{name:i,description:u.description,value:u.value!==void 0?u.value:i,isDeprecated:u.deprecationReason!=null,deprecationReason:u.deprecationReason,extensions:u.extensions&&Ae(u.extensions),astNode:u.astNode}})}var Ls=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._fields=Hv.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var i,u=hu(this.getFields(),function(r){return{description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,fields:u,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLInputObjectType"}}]),e}();Te(Ls);function Hv(e){var n=bu(e.fields);return Ln(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),hu(n,function(t,i){return!("resolve"in t)||M(0,"".concat(e.name,".").concat(i," field has a resolve property, but Input Types cannot define resolvers.")),{name:i,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}})}var Kv=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i=e[bs];if(typeof i=="function"){for(var u=i.call(e),r=[],a,o=0;!(a=u.next()).done;++o)if(r.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return r}var s=e.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var c=[],l=0;l<s;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]},Qv=Kv,Wv=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Tt=Wv;function Bu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bu=function(t){return typeof t}:Bu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}function Yv(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||Bu(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[bs];if(typeof t=="function"){for(var i=t.call(e),u=[],r,a=0;!(r=i.next()).done;++a)u.push(n(r.value,a));return u}var o=e.length;if(typeof o=="number"&&o>=0&&o%1===0){for(var s=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;s.push(n(e[String(c)],c))}return s}return null}var Xv=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},_u=Xv,hr=2147483647,gr=-2147483648;function ep(e){var n=Ot(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!_u(t))throw new ee("Int cannot represent non-integer value: ".concat(J(n)));if(t>hr||t<gr)throw new ee("Int cannot represent non 32-bit signed integer value: "+J(n));return t}function np(e){if(!_u(e))throw new ee("Int cannot represent non-integer value: ".concat(J(e)));if(e>hr||e<gr)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var tp=new Bn({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:ep,parseValue:np,parseLiteral:function(n){if(n.kind!==C.INT)throw new ee("Int cannot represent non-integer value: ".concat(Je(n)),n);var t=parseInt(n.value,10);if(t>hr||t<gr)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function up(e){var n=Ot(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Tt(t))throw new ee("Float cannot represent non numeric value: ".concat(J(n)));return t}function ip(e){if(!Tt(e))throw new ee("Float cannot represent non numeric value: ".concat(J(e)));return e}var rp=new Bn({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:up,parseValue:ip,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ee("Float cannot represent non numeric value: ".concat(Je(n)),n);return parseFloat(n.value)}});function Ot(e){if(bn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!bn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function ap(e){var n=Ot(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Tt(n))return n.toString();throw new ee("String cannot represent value: ".concat(J(e)))}function op(e){if(typeof e!="string")throw new ee("String cannot represent a non string value: ".concat(J(e)));return e}var te=new Bn({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:ap,parseValue:op,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ee("String cannot represent a non string value: ".concat(Je(n)),n);return n.value}});function sp(e){var n=Ot(e);if(typeof n=="boolean")return n;if(Tt(n))return n!==0;throw new ee("Boolean cannot represent a non boolean value: ".concat(J(n)))}function cp(e){if(typeof e!="boolean")throw new ee("Boolean cannot represent a non boolean value: ".concat(J(e)));return e}var xe=new Bn({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:sp,parseValue:cp,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ee("Boolean cannot represent a non boolean value: ".concat(Je(n)),n);return n.value}});function lp(e){var n=Ot(e);if(typeof n=="string")return n;if(_u(n))return String(n);throw new ee("ID cannot represent value: ".concat(J(e)))}function dp(e){if(typeof e=="string")return e;if(_u(e))return e.toString();throw new ee("ID cannot represent value: ".concat(J(e)))}var Zs=new Bn({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:lp,parseValue:dp,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ee("ID cannot represent a non-string and non-integer value: "+Je(n),n);return n.value}}),Vs=Object.freeze([te,tp,rp,xe,Zs]);function zt(e,n){if(Pn(n)){var t=zt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(Ft(n)){var i=n.ofType,u=Yv(e);if(u!=null){for(var r=[],a=0;a<u.length;a++){var o=u[a],s=zt(o,i);s!=null&&r.push(s)}return{kind:C.LIST,values:r}}return zt(e,i)}if(Dn(n)){if(!bn(e))return null;for(var c=[],l=0,f=kn(n.getFields());l<f.length;l++){var m=f[l],d=zt(e[m.name],m.type);d&&c.push({kind:C.OBJECT_FIELD,name:{kind:C.NAME,value:m.name},value:d})}return{kind:C.OBJECT,fields:c}}if(Lv(n)){var v=n.serialize(e);if(v==null)return null;if(typeof v=="boolean")return{kind:C.BOOLEAN,value:v};if(typeof v=="number"&&Tt(v)){var h=String(v);return Ms.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return un(n)?{kind:C.ENUM,value:v}:n===Zs&&Ms.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(J(v),"."))}$t(0,"Unexpected input type: "+J(n))}var Ms=/^-?(?:0|[1-9][0-9]*)$/,Er=new rn({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:te,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new R(new se(new R(Ue))),resolve:function(t){return kn(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new R(Ue),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ue,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ue,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new R(new se(new R(qs))),resolve:function(t){return t.getDirectives()}}}}}),qs=new rn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
39
|
+
`))}function Mv(e){return e.indexOf(`
|
|
40
|
+
`)!==-1}function Us(e){return e!=null&&e.some(Mv)}function pr(e,n){switch(e.kind){case C.NULL:return null;case C.INT:return parseInt(e.value,10);case C.FLOAT:return parseFloat(e.value);case C.STRING:case C.ENUM:case C.BOOLEAN:return e.value;case C.LIST:return e.values.map(function(t){return pr(t,n)});case C.OBJECT:return mr(e.fields,function(t){return t.name.value},function(t){return pr(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}$t(0,"Unexpected value node: "+J(e))}function Gv(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Un(e,n,t){return n&&Gv(e.prototype,n),e}function Ps(e){return It(e)||Ze(e)||$e(e)||tn(e)||un(e)||Dn(e)||Ft(e)||Pn(e)}function Jv(e){if(!Ps(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL type."));return e}function It(e){return Ge(e,Bn)}function Ze(e){return Ge(e,rn)}function $e(e){return Ge(e,Vs)}function tn(e){return Ge(e,qs)}function un(e){return Ge(e,ku)}function Dn(e){return Ge(e,Ms)}function Ft(e){return Ge(e,se)}function Pn(e){return Ge(e,R)}function jn(e){return It(e)||un(e)||Dn(e)||gr(e)&&jn(e.ofType)}function yu(e){return It(e)||Ze(e)||$e(e)||tn(e)||un(e)||gr(e)&&yu(e.ofType)}function Hv(e){return It(e)||un(e)}function hr(e){return Ze(e)||$e(e)||tn(e)}function Kv(e){return $e(e)||tn(e)}function se(e){if(this instanceof se)this.ofType=Jv(e);else return new se(e)}se.prototype.toString=function(){return"["+String(this.ofType)+"]"},se.prototype.toJSON=function(){return this.toString()},Object.defineProperty(se.prototype,Ce,{get:function(){return"GraphQLList"}}),Te(se);function R(e){if(this instanceof R)this.ofType=Wv(e);else return new R(e)}R.prototype.toString=function(){return String(this.ofType)+"!"},R.prototype.toJSON=function(){return this.toString()},Object.defineProperty(R.prototype,Ce,{get:function(){return"GraphQLNonNull"}}),Te(R);function gr(e){return Ft(e)||Pn(e)}function Qv(e){return Ps(e)&&!Pn(e)}function Wv(e){if(!Qv(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL nullable type."));return e}function Yv(e){if(e)return Pn(e)?e.ofType:e}function Nt(e){if(e){for(var n=e;gr(n);)n=n.ofType;return n}}function bu(e){return typeof e=="function"?e():e}function Rn(e){return e&&e.length>0?e:void 0}var Bn=function(){function e(t){var i,u,r,a=(i=t.parseValue)!==null&&i!==void 0?i:Os;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(u=t.serialize)!==null&&u!==void 0?u:Os,this.parseValue=a,this.parseLiteral=(r=t.parseLiteral)!==null&&r!==void 0?r:function(o,s){return a(pr(o,s))},this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),typeof t.name=="string"||q(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||q(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(J(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||q(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||q(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var i;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLScalarType"}}]),e}();Te(Bn);var rn=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._fields=Rs.bind(void 0,t),this._interfaces=js.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||q(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(J(t.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ls(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLObjectType"}}]),e}();Te(rn);function js(e){var n,t=(n=bu(e.interfaces))!==null&&n!==void 0?n:[];return Array.isArray(t)||q(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function Rs(e){var n=bu(e.fields);return Ln(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),hu(n,function(t,i){var u;Ln(t)||q(0,"".concat(e.name,".").concat(i," field config must be an object.")),!("isDeprecated"in t)||q(0,"".concat(e.name,".").concat(i,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||q(0,"".concat(e.name,".").concat(i," field resolver must be a function if ")+"provided, but got: ".concat(J(t.resolve),"."));var r=(u=t.args)!==null&&u!==void 0?u:{};Ln(r)||q(0,"".concat(e.name,".").concat(i," args must be an object with argument names as keys."));var a=xt(r).map(function(o){var s=o[0],c=o[1];return{name:s,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&Ae(c.extensions),astNode:c.astNode}});return{name:i,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}})}function Ln(e){return bn(e)&&!Array.isArray(e)}function Ls(e){return hu(e,function(n){return{description:n.description,type:n.type,args:Zs(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Zs(e){return mr(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}var Vs=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._fields=Rs.bind(void 0,t),this._interfaces=js.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||q(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var i;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ls(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLInterfaceType"}}]),e}();Te(Vs);var qs=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._types=Xv.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||q(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},n.toConfig=function(){var i;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLUnionType"}}]),e}();Te(qs);function Xv(e){var n=bu(e.types);return Array.isArray(n)||q(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}var ku=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._values=ep(this.name,t.values),this._valueLookup=new Map(this._values.map(function(i){return[i.value,i]})),this._nameLookup=Ts(this._values,function(i){return i.name}),typeof t.name=="string"||q(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(i){return this._nameLookup[i]},n.serialize=function(i){var u=this._valueLookup.get(i);if(u===void 0)throw new ee('Enum "'.concat(this.name,'" cannot represent value: ').concat(J(i)));return u.name},n.parseValue=function(i){if(typeof i!="string"){var u=J(i);throw new ee('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(u,".")+Du(this,u))}var r=this.getValue(i);if(r==null)throw new ee('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Du(this,i));return r.value},n.parseLiteral=function(i,u){if(i.kind!==C.ENUM){var r=Je(i);throw new ee('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(r,".")+Du(this,r),i)}var a=this.getValue(i.value);if(a==null){var o=Je(i);throw new ee('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+Du(this,o),i)}return a.value},n.toConfig=function(){var i,u=mr(this.getValues(),function(r){return r.name},function(r){return{description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,values:u,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLEnumType"}}]),e}();Te(ku);function Du(e,n){var t=e.getValues().map(function(u){return u.name}),i=Lv(n,t);return Pv("the enum value",i)}function ep(e,n){return Ln(n)||q(0,"".concat(e," values must be an object with value names as keys.")),xt(n).map(function(t){var i=t[0],u=t[1];return Ln(u)||q(0,"".concat(e,".").concat(i,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(J(u),".")),!("isDeprecated"in u)||q(0,"".concat(e,".").concat(i,' should provide "deprecationReason" instead of "isDeprecated".')),{name:i,description:u.description,value:u.value!==void 0?u.value:i,isDeprecated:u.deprecationReason!=null,deprecationReason:u.deprecationReason,extensions:u.extensions&&Ae(u.extensions),astNode:u.astNode}})}var Ms=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Rn(t.extensionASTNodes),this._fields=np.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var i,u=hu(this.getFields(),function(r){return{description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,fields:u,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Un(e,[{key:Ce,get:function(){return"GraphQLInputObjectType"}}]),e}();Te(Ms);function np(e){var n=bu(e.fields);return Ln(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),hu(n,function(t,i){return!("resolve"in t)||q(0,"".concat(e.name,".").concat(i," field has a resolve property, but Input Types cannot define resolvers.")),{name:i,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Ae(t.extensions),astNode:t.astNode}})}var tp=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i=e[_s];if(typeof i=="function"){for(var u=i.call(e),r=[],a,o=0;!(a=u.next()).done;++o)if(r.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return r}var s=e.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var c=[],l=0;l<s;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]},up=tp,ip=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Tt=ip;function Bu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bu=function(t){return typeof t}:Bu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}function rp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||Bu(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[_s];if(typeof t=="function"){for(var i=t.call(e),u=[],r,a=0;!(r=i.next()).done;++a)u.push(n(r.value,a));return u}var o=e.length;if(typeof o=="number"&&o>=0&&o%1===0){for(var s=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;s.push(n(e[String(c)],c))}return s}return null}var ap=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},_u=ap,Er=2147483647,yr=-2147483648;function op(e){var n=Ot(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!_u(t))throw new ee("Int cannot represent non-integer value: ".concat(J(n)));if(t>Er||t<yr)throw new ee("Int cannot represent non 32-bit signed integer value: "+J(n));return t}function sp(e){if(!_u(e))throw new ee("Int cannot represent non-integer value: ".concat(J(e)));if(e>Er||e<yr)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var cp=new Bn({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:op,parseValue:sp,parseLiteral:function(n){if(n.kind!==C.INT)throw new ee("Int cannot represent non-integer value: ".concat(Je(n)),n);var t=parseInt(n.value,10);if(t>Er||t<yr)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function lp(e){var n=Ot(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Tt(t))throw new ee("Float cannot represent non numeric value: ".concat(J(n)));return t}function dp(e){if(!Tt(e))throw new ee("Float cannot represent non numeric value: ".concat(J(e)));return e}var fp=new Bn({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:lp,parseValue:dp,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ee("Float cannot represent non numeric value: ".concat(Je(n)),n);return parseFloat(n.value)}});function Ot(e){if(bn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!bn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function mp(e){var n=Ot(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Tt(n))return n.toString();throw new ee("String cannot represent value: ".concat(J(e)))}function vp(e){if(typeof e!="string")throw new ee("String cannot represent a non string value: ".concat(J(e)));return e}var te=new Bn({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:mp,parseValue:vp,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ee("String cannot represent a non string value: ".concat(Je(n)),n);return n.value}});function pp(e){var n=Ot(e);if(typeof n=="boolean")return n;if(Tt(n))return n!==0;throw new ee("Boolean cannot represent a non boolean value: ".concat(J(n)))}function hp(e){if(typeof e!="boolean")throw new ee("Boolean cannot represent a non boolean value: ".concat(J(e)));return e}var xe=new Bn({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:pp,parseValue:hp,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ee("Boolean cannot represent a non boolean value: ".concat(Je(n)),n);return n.value}});function gp(e){var n=Ot(e);if(typeof n=="string")return n;if(_u(n))return String(n);throw new ee("ID cannot represent value: ".concat(J(e)))}function Ep(e){if(typeof e=="string")return e;if(_u(e))return e.toString();throw new ee("ID cannot represent value: ".concat(J(e)))}var Gs=new Bn({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:gp,parseValue:Ep,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ee("ID cannot represent a non-string and non-integer value: "+Je(n),n);return n.value}}),Js=Object.freeze([te,cp,fp,xe,Gs]);function zt(e,n){if(Pn(n)){var t=zt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(Ft(n)){var i=n.ofType,u=rp(e);if(u!=null){for(var r=[],a=0;a<u.length;a++){var o=u[a],s=zt(o,i);s!=null&&r.push(s)}return{kind:C.LIST,values:r}}return zt(e,i)}if(Dn(n)){if(!bn(e))return null;for(var c=[],l=0,f=kn(n.getFields());l<f.length;l++){var m=f[l],d=zt(e[m.name],m.type);d&&c.push({kind:C.OBJECT_FIELD,name:{kind:C.NAME,value:m.name},value:d})}return{kind:C.OBJECT,fields:c}}if(Hv(n)){var v=n.serialize(e);if(v==null)return null;if(typeof v=="boolean")return{kind:C.BOOLEAN,value:v};if(typeof v=="number"&&Tt(v)){var h=String(v);return Hs.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return un(n)?{kind:C.ENUM,value:v}:n===Gs&&Hs.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(J(v),"."))}$t(0,"Unexpected input type: "+J(n))}var Hs=/^-?(?:0|[1-9][0-9]*)$/,br=new rn({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:te,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new R(new se(new R(Ue))),resolve:function(t){return kn(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new R(Ue),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ue,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ue,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new R(new se(new R(Ks))),resolve:function(t){return t.getDirectives()}}}}}),Ks=new rn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
41
41
|
|
|
42
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isRepeatable:{type:new R(xe),resolve:function(t){return t.isRepeatable}},locations:{type:new R(new se(new R(Gs))),resolve:function(t){return t.locations}},args:{type:new R(new se(new R(Au))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;return u?t.args:t.args.filter(function(r){return r.deprecationReason==null})}}}}}),Gs=new ku({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:K.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:K.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:K.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:K.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:K.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:K.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:K.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:K.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:K.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:K.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:K.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:K.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:K.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:K.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:K.UNION,description:"Location adjacent to a union definition."},ENUM:{value:K.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:K.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:K.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:K.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ue=new rn({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new R(Ks),resolve:function(t){if(It(t))return de.SCALAR;if(Ze(t))return de.OBJECT;if($e(t))return de.INTERFACE;if(tn(t))return de.UNION;if(un(t))return de.ENUM;if(Dn(t))return de.INPUT_OBJECT;if(Ft(t))return de.LIST;if(Pn(t))return de.NON_NULL;$t(0,'Unexpected type: "'.concat(J(t),'".'))}},name:{type:te,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:te,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:te,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new se(new R(Js)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;if(Ze(t)||$e(t)){var r=kn(t.getFields());return u?r:r.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new se(new R(Ue)),resolve:function(t){if(Ze(t)||$e(t))return t.getInterfaces()}},possibleTypes:{type:new se(new R(Ue)),resolve:function(t,i,u,r){var a=r.schema;if(Zv(t))return a.getPossibleTypes(t)}},enumValues:{type:new se(new R(Hs)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;if(un(t)){var r=t.getValues();return u?r:r.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new se(new R(Au)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;if(Dn(t)){var r=kn(t.getFields());return u?r:r.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Ue,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),Js=new rn({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},args:{type:new R(new se(new R(Au))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;return u?t.args:t.args.filter(function(r){return r.deprecationReason==null})}},type:{type:new R(Ue),resolve:function(t){return t.type}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Au=new rn({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},type:{type:new R(Ue),resolve:function(t){return t.type}},defaultValue:{type:te,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var i=t.type,u=t.defaultValue,r=zt(u,i);return r?Je(r):null}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Hs=new rn({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),de=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Ks=new ku({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:de.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:de.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:de.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:de.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:de.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:de.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:de.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:de.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Qs={name:"__schema",type:new R(Er),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,i,u){var r=u.schema;return r},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Ws={name:"__type",type:Ue,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new R(te),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,i,u){var r=t.name,a=u.schema;return a.getType(r)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Ys={name:"__typename",type:new R(te),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,i,u){var r=u.parentType;return r.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Xs=Object.freeze([Er,qs,Gs,Ue,Js,Au,Hs,Ks]);function fp(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function mp(e,n,t){return n&&fp(e.prototype,n),e}function vp(e){return Ge(e,Zn)}var Zn=function(){function e(t){var i,u;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(i=t.isRepeatable)!==null&&i!==void 0?i:!1,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,t.name||M(0,"Directive must be named."),Array.isArray(t.locations)||M(0,"@".concat(t.name," locations must be an Array."));var r=(u=t.args)!==null&&u!==void 0?u:{};bn(r)&&!Array.isArray(r)||M(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=xt(r).map(function(a){var o=a[0],s=a[1];return{name:o,description:s.description,type:s.type,defaultValue:s.defaultValue,deprecationReason:s.deprecationReason,extensions:s.extensions&&Ae(s.extensions),astNode:s.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Ps(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},mp(e,[{key:Ce,get:function(){return"GraphQLDirective"}}]),e}();Te(Zn);var pp=new Zn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new R(xe),description:"Included when true."}}}),hp=new Zn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new R(xe),description:"Skipped when true."}}}),gp="No longer supported",Ep=new Zn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[K.FIELD_DEFINITION,K.ARGUMENT_DEFINITION,K.INPUT_FIELD_DEFINITION,K.ENUM_VALUE],args:{reason:{type:te,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:gp}}}),yp=new Zn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[K.SCALAR],args:{url:{type:new R(te),description:"The URL that specifies the behaviour of this scalar."}}}),bp=Object.freeze([pp,hp,Ep,yp]);function kp(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Dp(e,n,t){return n&&kp(e.prototype,n),e}(function(){function e(t){var i;this.__validationErrors=t.assumeValid===!0?[]:void 0,bn(t)||M(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||M(0,'"types" must be Array if provided but got: '.concat(J(t.types),".")),!t.directives||Array.isArray(t.directives)||M(0,'"directives" must be Array if provided but got: '+"".concat(J(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(i=t.directives)!==null&&i!==void 0?i:bp;var u=new Set(t.types);if(t.types!=null)for(var r=0,a=t.types;r<a.length;r++){var o=a[r];u.delete(o),Pe(o,u)}this._queryType!=null&&Pe(this._queryType,u),this._mutationType!=null&&Pe(this._mutationType,u),this._subscriptionType!=null&&Pe(this._subscriptionType,u);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(vp(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Pe(d.type,u)}}Pe(Er,u),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=Qv(u);v<h.length;v++){var b=h[v];if(b!=null){var y=b.name;if(y||M(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[y]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(y,'".'));if(this._typeMap[y]=b,$e(b))for(var E=0,k=b.getInterfaces();E<k.length;E++){var w=k[E];if($e(w)){var _=this._implementationsMap[w.name];_===void 0&&(_=this._implementationsMap[w.name]={objects:[],interfaces:[]}),_.interfaces.push(b)}}else if(Ze(b))for(var G=0,V=b.getInterfaces();G<V.length;G++){var F=V[G];if($e(F)){var g=this._implementationsMap[F.name];g===void 0&&(g=this._implementationsMap[F.name]={objects:[],interfaces:[]}),g.objects.push(b)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(i){return this.getTypeMap()[i]},n.getPossibleTypes=function(i){return tn(i)?i.getTypes():this.getImplementations(i).objects},n.getImplementations=function(i){var u=this._implementationsMap[i.name];return u??{objects:[],interfaces:[]}},n.isPossibleType=function(i,u){return this.isSubType(i,u)},n.isSubType=function(i,u){var r=this._subTypeMap[i.name];if(r===void 0){if(r=Object.create(null),tn(i))for(var a=0,o=i.getTypes();a<o.length;a++){var s=o[a];r[s.name]=!0}else{for(var c=this.getImplementations(i),l=0,f=c.objects;l<f.length;l++){var m=f[l];r[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];r[h.name]=!0}}this._subTypeMap[i.name]=r}return r[u.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(i){return $s(this.getDirectives(),function(u){return u.name===i})},n.toConfig=function(){var i;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:kn(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[],assumeValid:this.__validationErrors!==void 0}},Dp(e,[{key:Ce,get:function(){return"GraphQLSchema"}}]),e})();function Pe(e,n){var t=Nt(e);if(!n.has(t)){if(n.add(t),tn(t))for(var i=0,u=t.getTypes();i<u.length;i++){var r=u[i];Pe(r,n)}else if(Ze(t)||$e(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Pe(s,n)}for(var c=0,l=kn(t.getFields());c<l.length;c++){var f=l[c];Pe(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Pe(v.type,n)}}}else if(Dn(t))for(var h=0,b=kn(t.getFields());h<b.length;h++){var y=b[h];Pe(y.type,n)}}return n}function Su(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Su(e,n.type),t&&new se(t);if(n.kind===C.NON_NULL_TYPE)return t=Su(e,n.type),t&&new R(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);$t(0,"Unexpected type node: "+J(n))}var Bp=function(){function e(t,i,u){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=i??_p,u&&(jn(u)&&this._inputTypeStack.push(u),vr(u)&&this._parentTypeStack.push(u),yu(u)&&this._typeStack.push(u))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(i){var u=this._schema;switch(i.kind){case C.SELECTION_SET:{var r=Nt(this.getType());this._parentTypeStack.push(vr(r)?r:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(u,a,i),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(yu(s)?s:void 0);break}case C.DIRECTIVE:this._directive=u.getDirective(i.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(i.operation){case"query":c=u.getQueryType();break;case"mutation":c=u.getMutationType();break;case"subscription":c=u.getSubscriptionType();break}this._typeStack.push(Ze(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=i.typeCondition,f=l?Su(u,l):Nt(this.getType());this._typeStack.push(yu(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Su(u,i.type);this._inputTypeStack.push(jn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,b=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();b&&(v=$s(b.args,function(F){return F.name===i.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(jn(h)?h:void 0);break}case C.LIST:{var y=qv(this.getInputType()),E=Ft(y)?y.ofType:y;this._defaultValueStack.push(void 0),this._inputTypeStack.push(jn(E)?E:void 0);break}case C.OBJECT_FIELD:{var k=Nt(this.getInputType()),w,_;Dn(k)&&(_=k.getFields()[i.name.value],_&&(w=_.type)),this._defaultValueStack.push(_?_.defaultValue:void 0),this._inputTypeStack.push(jn(w)?w:void 0);break}case C.ENUM:{var G=Nt(this.getInputType()),V;un(G)&&(V=G.getValue(i.value)),this._enumValue=V;break}}},n.leave=function(i){switch(i.kind){case C.SELECTION_SET:this._parentTypeStack.pop();break;case C.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.DIRECTIVE:this._directive=null;break;case C.OPERATION_DEFINITION:case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.LIST:case C.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.ENUM:this._enumValue=null;break}},e}();function _p(e,n,t){var i=t.name.value;if(i===Qs.name&&e.getQueryType()===n)return Qs;if(i===Ws.name&&e.getQueryType()===n)return Ws;if(i===Ys.name&&vr(n))return Ys;if(Ze(n)||$e(n))return n.getFields()[i]}function Ap(e,n){return{enter:function(i){e.enter(i);var u=lr(n,i.kind,!1);if(u){var r=u.apply(n,arguments);return r!==void 0&&(e.leave(i),cr(r)&&e.enter(r)),r}},leave:function(i){var u=lr(n,i.kind,!0),r;return u&&(r=u.apply(n,arguments)),e.leave(i),r}}}[].concat(Vs,Xs).map(function(e){return e.name});var an;function Vn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}an={},Vn(an,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Vn(an,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Vn(an,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Vn(an,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Vn(an,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Vn(an,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function e0(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var n0=function(){function e(t,i){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=i}var n=e.prototype;return n.reportError=function(i){this._onError(i)},n.getDocument=function(){return this._ast},n.getFragment=function(i){var u=this._fragments;return u||(this._fragments=u=this.getDocument().definitions.reduce(function(r,a){return a.kind===C.FRAGMENT_DEFINITION&&(r[a.name.value]=a),r},Object.create(null))),u[i]},n.getFragmentSpreads=function(i){var u=this._fragmentSpreads.get(i);if(!u){u=[];for(var r=[i];r.length!==0;)for(var a=r.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?u.push(c):c.selectionSet&&r.push(c.selectionSet)}this._fragmentSpreads.set(i,u)}return u},n.getRecursivelyReferencedFragments=function(i){var u=this._recursivelyReferencedFragments.get(i);if(!u){u=[];for(var r=Object.create(null),a=[i.selectionSet];a.length!==0;)for(var o=a.pop(),s=0,c=this.getFragmentSpreads(o);s<c.length;s++){var l=c[s],f=l.name.value;if(r[f]!==!0){r[f]=!0;var m=this.getFragment(f);m&&(u.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(i,u)}return u},e}();(function(e){e0(n,e);function n(i,u,r){var a;return a=e.call(this,i,r)||this,a._schema=u,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(n0),function(e){e0(n,e);function n(i,u,r,a){var o;return o=e.call(this,u,a)||this,o._schema=i,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(u){var r=this._variableUsages.get(u);if(!r){var a=[],o=new Bp(this._schema);Cs(u,Ap(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),r=a,this._variableUsages.set(u,r)}return r},t.getRecursiveVariableUsages=function(u){var r=this._recursiveVariableUsages.get(u);if(!r){r=this.getVariableUsages(u);for(var a=0,o=this.getRecursivelyReferencedFragments(u);a<o.length;a++){var s=o[a];r=r.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(u,r)}return r},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},t.getEnumValue=function(){return this._typeInfo.getEnumValue()},n}(n0),xs(Vs.concat(Xs),function(e){return e.name});const t0=e=>e instanceof Error?e:new Error(e),Sp=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u",u0={staging:{baseEndpoint:"https://api-staging.spritz.finance",graphEndpoint:"https://api-staging.spritz.finance/router/graph"},production:{baseEndpoint:"https://api.spritz.finance",graphEndpoint:"https://api.spritz.finance/router/graph"}},wp=(e,n)=>{if(typeof n!="number"||!Number.isInteger(n))throw new Error(`${e} must be an integer`);if(n<0)throw new Error(`${e} must be a positive integer`);return n};class Cp extends Error{timestamp;headers;constructor(n,t,...i){super(...i),this.name="SpritzApiError",this.message=n,this.headers=t??{},this.timestamp=new Date().toISOString()}}class we extends Error{status;headers;timestamp;constructor(n,t,i,u){super(we.makeMessage(t,i)),this.status=n,this.headers=u,this.timestamp=new Date().toISOString()}static makeMessage(n,t){return n?.message?typeof n.message=="string"?n.message:JSON.stringify(n.message):n?JSON.stringify(n):t||"Unknown error occurred"}static generate(n,t,i,u){return n?n===400?new xp(n,t,i,u):n===401?new Ip(n,t,i,u):n===403?new Fp(n,t,i,u):n===404?new Np(n,t,i,u):n===409?new Tp(n,t,i,u):n===422?new Op(n,t,i,u):n===429?new zp(n,t,i,u):n>=500?new Up(n,t,i,u):new we(n,t,i,u):new yr({cause:t0(t)})}}class yr extends we{status=void 0;constructor({message:n,cause:t}){super(void 0,void 0,n||"Connection error.",void 0),t&&(this.cause=t)}}class $p extends yr{constructor(){super({message:"Request timed out."})}}class xp extends we{name="BadRequestError";status=400}class Ip extends we{name="AuthenticationError";status=401}class Fp extends we{name="PermissionDeniedError";status=403}class Np extends we{name="NotFoundError";status=404}class Tp extends we{name="ConflictError";status=409}class Op extends we{name="UnprocessableEntityError";status=422}class zp extends we{name="RateLimitError";status=429}class Up extends we{name="InternalServerError"}const Pp=e=>{try{return JSON.parse(e)}catch{return}},i0=10,r0=100;function jp(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(r=>r.kind==="OperationDefinition");if(n.length>1)throw new Error("Invalid GraphQL query: multiple operations not allowed");if(n.length===0)throw new Error("Invalid GraphQL query: no operation definition found");const t=n[0],i=Rp(t);if(i>i0)throw new Error(`GraphQL query too deep: ${i} levels (max: ${i0})`);const u=Lp(t);if(u>r0)throw new Error(`GraphQL query too complex: ${u} fields (max: ${r0})`);if(t?.operation!=="query"&&t?.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t?.operation}`)}function Rp(e){if(!e.selectionSet)return 0;function n(t){let i=0;for(const u of t.selections)if(u.kind==="Field"&&u.selectionSet){const r=1+n(u.selectionSet);i=Math.max(i,r)}else if(u.kind==="InlineFragment"&&u.selectionSet){const r=n(u.selectionSet);i=Math.max(i,r)}else u.kind==="FragmentSpread"&&(i=Math.max(i,1));return i}return n(e.selectionSet)}function Lp(e){if(!e.selectionSet)return 0;function n(t){let i=0;for(const u of t.selections)i+=1,u.kind==="Field"&&u.selectionSet||u.kind==="InlineFragment"&&u.selectionSet?i+=n(u.selectionSet):u.kind==="FragmentSpread"&&(i+=5);return i}return n(e.selectionSet)}function Zp(e){if(!e)return;const n=Object.create(null);for(const[t,i]of Object.entries(e)){if(!Vp(t))throw new Error(`Invalid GraphQL variable name: ${t}`);if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid property name: ${t}`);n[t]=br(i)}return n}function Vp(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function br(e){if(e==null)return e;if(typeof e=="string")return e.replace(/[\x00-\x1F\x7F]/g,"");if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(br);if(typeof e=="object"){const n=Object.create(null);for(const[t,i]of Object.entries(e)){if(typeof t!="string"||t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=br(i)}return n}return String(e).replace(/[\x00-\x1F\x7F]/g,"")}async function a0(e){const{response:n}=e;return n.headers.get("content-type")?.includes("application/json")?{response:await n.json(),headers:e.headers}:{response:await n.text(),headers:e.headers}}class Mp{baseGraphURL;baseRestURL;timeout;apiKey;integrationKey;constructor({environment:n,timeout:t=3e5,apiKey:i,integrationKey:u}){this.apiKey=i,this.integrationKey=u,this.baseGraphURL=u0[n].graphEndpoint,this.baseRestURL=u0[n].baseEndpoint,this.timeout=wp("timeout",t)}async query({query:n,variables:t}){jp(n);const i=Zp(t);return this.sendQuery({query:n,variables:i}).then(u=>a0(u)).then(({response:u,headers:r})=>{if(u.data)return u.data;if(u.errors){const a=u.errors[0]??{message:"Unknown error"};throw new Cp(a.message,r)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:i=void 0}){return this.sendRequest({method:n,path:t,body:i}).then(u=>a0(u)).then(({response:u})=>u)}async sendQuery({query:n,variables:t}){const{url:i,req:u,timeout:r}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:i,req:u,timeout:r})}async sendRequest({method:n,path:t,body:i}){const{url:u,req:r,timeout:a}=this.buildRestRequest(n,t,i);return this.sendHTTPRequest({url:u,req:r,timeout:a})}async sendHTTPRequest({url:n,req:t,timeout:i}){const u=new AbortController,r=await this.fetchWithTimeout(n,t,i,u).catch(t0);if(r instanceof Error)throw r.name==="AbortError"?new $p:new yr({cause:r});const a=this.getResponseHeaders(r.headers);if(!r.ok){const o=await r.text().catch(()=>"Unknown error"),s=Pp(o);throw this.makeStatusError(r.status,s,s?void 0:o,a)}return{response:r,controller:u,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),i=n.get("x-amzn-requestid");return{traceId:t,requestId:i}}async fetchWithTimeout(n,t,i,u){const{signal:r,...a}=t||{},o=AbortSignal.timeout(i),s=r?AbortSignal.any([r,o,u.signal]):AbortSignal.any([o,u.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const i={query:Je(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},u=i?JSON.stringify(i,null,2):null,r=this.calculateContentLength(u),a=this.timeout,o={...r&&{"Content-Length":r},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:"POST",...u&&{body:u},headers:s};return{url:this.baseGraphURL,req:c,timeout:a}}buildRestRequest(n,t,i){const u=i?JSON.stringify(i,null,2):null,r=this.calculateContentLength(u),a=this.timeout,o={...r&&{"Content-Length":r},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:n,...u&&{body:u},headers:s};return{url:`${this.baseRestURL}${t.startsWith("/")?t:"/"+t}`,req:c,timeout:a}}defaultHeaders(){return{Accept:"application/json","Content-Type":"application/json",...this.authHeaders()}}calculateContentLength(n){if(typeof n=="string"){if(typeof Buffer<"u")return Buffer.byteLength(n,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length.toString()}return null}authHeaders(){return{Authorization:"Bearer "+this.apiKey,...this.integrationKey?{"X-INTEGRATION-KEY":this.integrationKey}:{}}}makeStatusError(n,t,i,u){return we.generate(n,t,i,u)}}var je={};yn(je,{$brand:()=>c0,$input:()=>Ll,$output:()=>Rl,NEVER:()=>s0,TimePrecision:()=>Ml,ZodAny:()=>Hd,ZodArray:()=>Yd,ZodBase64:()=>Ka,ZodBase64URL:()=>Qa,ZodBigInt:()=>Gu,ZodBigIntFormat:()=>eo,ZodBoolean:()=>qu,ZodCIDRv4:()=>Ja,ZodCIDRv6:()=>Ha,ZodCUID:()=>Ra,ZodCUID2:()=>La,ZodCatch:()=>Ef,ZodCustom:()=>ei,ZodCustomStringFormat:()=>Ld,ZodDate:()=>no,ZodDefault:()=>ff,ZodDiscriminatedUnion:()=>Xd,ZodE164:()=>Wa,ZodEmail:()=>za,ZodEmoji:()=>Pa,ZodEnum:()=>Gt,ZodError:()=>vg,ZodFile:()=>lf,ZodFirstPartyTypeKind:()=>lo,ZodGUID:()=>Vu,ZodIPv4:()=>qa,ZodIPv6:()=>Ga,ZodISODate:()=>Ia,ZodISODateTime:()=>xa,ZodISODuration:()=>Na,ZodISOTime:()=>Fa,ZodIntersection:()=>ef,ZodIssueCode:()=>g3,ZodJWT:()=>Ya,ZodKSUID:()=>Ma,ZodLazy:()=>_f,ZodLiteral:()=>sf,ZodMap:()=>rf,ZodNaN:()=>bf,ZodNanoID:()=>ja,ZodNever:()=>Qd,ZodNonOptional:()=>so,ZodNull:()=>Gd,ZodNullable:()=>df,ZodNumber:()=>Mu,ZodNumberFormat:()=>Kn,ZodObject:()=>Ku,ZodOptional:()=>oo,ZodPipe:()=>co,ZodPrefault:()=>vf,ZodPromise:()=>Sf,ZodReadonly:()=>kf,ZodRealError:()=>qt,ZodRecord:()=>io,ZodSet:()=>af,ZodString:()=>Zu,ZodStringFormat:()=>X,ZodSuccess:()=>gf,ZodSymbol:()=>Md,ZodTemplateLiteral:()=>Bf,ZodTransform:()=>ro,ZodTuple:()=>tf,ZodType:()=>Z,ZodULID:()=>Za,ZodURL:()=>Ua,ZodUUID:()=>He,ZodUndefined:()=>qd,ZodUnion:()=>uo,ZodUnknown:()=>Kd,ZodVoid:()=>Wd,ZodXID:()=>Va,_ZodString:()=>Ta,_default:()=>mf,any:()=>Jg,array:()=>to,base64:()=>Ng,base64url:()=>Tg,bigint:()=>Zg,boolean:()=>Vd,catch:()=>yf,check:()=>wf,cidrv4:()=>Ig,cidrv6:()=>Fg,clone:()=>Ve,coerce:()=>xf,config:()=>ye,core:()=>o0,cuid:()=>_g,cuid2:()=>Ag,custom:()=>f3,date:()=>Kg,discriminatedUnion:()=>e3,e164:()=>Og,email:()=>pg,emoji:()=>Dg,endsWith:()=>Da,enum:()=>of,file:()=>a3,flattenError:()=>Ar,float32:()=>Pg,float64:()=>jg,formatError:()=>Sr,function:()=>$d,getErrorMap:()=>y3,globalRegistry:()=>Sn,gt:()=>Cn,gte:()=>Se,guid:()=>hg,includes:()=>ba,instanceof:()=>m3,int:()=>Xa,int32:()=>Rg,int64:()=>Vg,intersection:()=>nf,ipv4:()=>$g,ipv6:()=>xg,iso:()=>Id,json:()=>p3,jwt:()=>zg,keyof:()=>Qg,ksuid:()=>Cg,lazy:()=>Af,length:()=>Lu,literal:()=>cf,locales:()=>Gr,looseObject:()=>Xg,lowercase:()=>Ea,lt:()=>wn,lte:()=>Le,map:()=>u3,maxLength:()=>Ru,maxSize:()=>ju,mime:()=>Ba,minLength:()=>Hn,minSize:()=>Mt,multipleOf:()=>Vt,nan:()=>c3,nanoid:()=>Bg,nativeEnum:()=>r3,negative:()=>Ed,never:()=>Hu,nonnegative:()=>bd,nonoptional:()=>hf,nonpositive:()=>yd,normalize:()=>_a,null:()=>Jd,nullable:()=>Yu,nullish:()=>o3,number:()=>Zd,object:()=>Wg,optional:()=>Wu,overwrite:()=>$n,parse:()=>Ud,parseAsync:()=>Pd,partialRecord:()=>t3,pipe:()=>Xu,positive:()=>gd,prefault:()=>pf,preprocess:()=>h3,prettifyError:()=>k0,promise:()=>d3,property:()=>kd,readonly:()=>Df,record:()=>uf,refine:()=>Cf,regex:()=>ga,regexes:()=>Nr,registry:()=>Hr,safeParse:()=>jd,safeParseAsync:()=>Rd,set:()=>i3,setErrorMap:()=>E3,size:()=>ha,startsWith:()=>ka,strictObject:()=>Yg,string:()=>Oa,stringFormat:()=>Ug,stringbool:()=>v3,success:()=>s3,superRefine:()=>$f,symbol:()=>qg,templateLiteral:()=>l3,toJSONSchema:()=>xd,toLowerCase:()=>Sa,toUpperCase:()=>wa,transform:()=>ao,treeifyError:()=>y0,trim:()=>Aa,tuple:()=>n3,uint32:()=>Lg,uint64:()=>Mg,ulid:()=>Sg,undefined:()=>Gg,union:()=>Qu,unknown:()=>Ju,uppercase:()=>ya,url:()=>kg,uuid:()=>gg,uuidv4:()=>Eg,uuidv6:()=>yg,uuidv7:()=>bg,void:()=>Hg,xid:()=>wg});var o0={};yn(o0,{$ZodAny:()=>el,$ZodArray:()=>Lr,$ZodAsyncError:()=>Mn,$ZodBase64:()=>Zc,$ZodBase64URL:()=>Mc,$ZodBigInt:()=>Rr,$ZodBigIntFormat:()=>Qc,$ZodBoolean:()=>jr,$ZodCIDRv4:()=>Rc,$ZodCIDRv6:()=>Lc,$ZodCUID:()=>$c,$ZodCUID2:()=>xc,$ZodCatch:()=>wl,$ZodCheck:()=>ue,$ZodCheckBigIntFormat:()=>ic,$ZodCheckEndsWith:()=>hc,$ZodCheckGreaterThan:()=>zr,$ZodCheckIncludes:()=>vc,$ZodCheckLengthEquals:()=>lc,$ZodCheckLessThan:()=>Or,$ZodCheckLowerCase:()=>fc,$ZodCheckMaxLength:()=>sc,$ZodCheckMaxSize:()=>rc,$ZodCheckMimeType:()=>yc,$ZodCheckMinLength:()=>cc,$ZodCheckMinSize:()=>ac,$ZodCheckMultipleOf:()=>tc,$ZodCheckNumberFormat:()=>uc,$ZodCheckOverwrite:()=>bc,$ZodCheckProperty:()=>Ec,$ZodCheckRegex:()=>dc,$ZodCheckSizeEquals:()=>oc,$ZodCheckStartsWith:()=>pc,$ZodCheckStringFormat:()=>Lt,$ZodCheckUpperCase:()=>mc,$ZodCustom:()=>Ol,$ZodCustomStringFormat:()=>Hc,$ZodDate:()=>ul,$ZodDefault:()=>kl,$ZodDiscriminatedUnion:()=>sl,$ZodE164:()=>qc,$ZodEmail:()=>Ac,$ZodEmoji:()=>wc,$ZodEnum:()=>hl,$ZodError:()=>_r,$ZodFile:()=>El,$ZodFunction:()=>Cd,$ZodGUID:()=>Bc,$ZodIPv4:()=>Pc,$ZodIPv6:()=>jc,$ZodISODate:()=>Oc,$ZodISODateTime:()=>Tc,$ZodISODuration:()=>Uc,$ZodISOTime:()=>zc,$ZodIntersection:()=>cl,$ZodJWT:()=>Jc,$ZodKSUID:()=>Nc,$ZodLazy:()=>Tl,$ZodLiteral:()=>gl,$ZodMap:()=>fl,$ZodNaN:()=>Cl,$ZodNanoID:()=>Cc,$ZodNever:()=>nl,$ZodNonOptional:()=>_l,$ZodNull:()=>Xc,$ZodNullable:()=>bl,$ZodNumber:()=>Pr,$ZodNumberFormat:()=>Kc,$ZodObject:()=>al,$ZodOptional:()=>yl,$ZodPipe:()=>qr,$ZodPrefault:()=>Bl,$ZodPromise:()=>Nl,$ZodReadonly:()=>xl,$ZodRealError:()=>Rt,$ZodRecord:()=>dl,$ZodRegistry:()=>Jr,$ZodSet:()=>vl,$ZodString:()=>Zt,$ZodStringFormat:()=>W,$ZodSuccess:()=>Sl,$ZodSymbol:()=>Wc,$ZodTemplateLiteral:()=>Fl,$ZodTransform:()=>Mr,$ZodTuple:()=>Ou,$ZodType:()=>U,$ZodULID:()=>Ic,$ZodURL:()=>Sc,$ZodUUID:()=>_c,$ZodUndefined:()=>Yc,$ZodUnion:()=>Zr,$ZodUnknown:()=>Nu,$ZodVoid:()=>tl,$ZodXID:()=>Fc,$brand:()=>c0,$constructor:()=>p,$input:()=>Ll,$output:()=>Rl,Doc:()=>kc,JSONSchema:()=>mg,JSONSchemaGenerator:()=>$a,NEVER:()=>s0,TimePrecision:()=>Ml,_any:()=>dd,_array:()=>Ca,_base64:()=>fa,_base64url:()=>ma,_bigint:()=>id,_boolean:()=>td,_catch:()=>og,_cidrv4:()=>la,_cidrv6:()=>da,_coercedBigint:()=>rd,_coercedBoolean:()=>ud,_coercedDate:()=>pd,_coercedNumber:()=>Ql,_coercedString:()=>Vl,_cuid:()=>ua,_cuid2:()=>ia,_custom:()=>_d,_date:()=>vd,_default:()=>ig,_discriminatedUnion:()=>J6,_e164:()=>va,_email:()=>Kr,_emoji:()=>na,_endsWith:()=>Da,_enum:()=>Y6,_file:()=>Bd,_float32:()=>Yl,_float64:()=>Xl,_gt:()=>Cn,_gte:()=>Se,_guid:()=>Uu,_includes:()=>ba,_int:()=>Wl,_int32:()=>ed,_int64:()=>ad,_intersection:()=>H6,_ipv4:()=>sa,_ipv6:()=>ca,_isoDate:()=>Gl,_isoDateTime:()=>ql,_isoDuration:()=>Hl,_isoTime:()=>Jl,_jwt:()=>pa,_ksuid:()=>oa,_lazy:()=>dg,_length:()=>Lu,_literal:()=>eg,_lowercase:()=>Ea,_lt:()=>wn,_lte:()=>Le,_map:()=>Q6,_max:()=>Le,_maxLength:()=>Ru,_maxSize:()=>ju,_mime:()=>Ba,_min:()=>Se,_minLength:()=>Hn,_minSize:()=>Mt,_multipleOf:()=>Vt,_nan:()=>hd,_nanoid:()=>ta,_nativeEnum:()=>X6,_negative:()=>Ed,_never:()=>fd,_nonnegative:()=>bd,_nonoptional:()=>rg,_nonpositive:()=>yd,_normalize:()=>_a,_null:()=>ld,_nullable:()=>ug,_number:()=>Kl,_optional:()=>tg,_overwrite:()=>$n,_parse:()=>wr,_parseAsync:()=>$r,_pipe:()=>sg,_positive:()=>gd,_promise:()=>fg,_property:()=>kd,_readonly:()=>cg,_record:()=>K6,_refine:()=>Ad,_regex:()=>ga,_safeParse:()=>Ir,_safeParseAsync:()=>Fr,_set:()=>W6,_size:()=>ha,_startsWith:()=>ka,_string:()=>Zl,_stringFormat:()=>wd,_stringbool:()=>Sd,_success:()=>ag,_symbol:()=>sd,_templateLiteral:()=>lg,_toLowerCase:()=>Sa,_toUpperCase:()=>wa,_transform:()=>ng,_trim:()=>Aa,_tuple:()=>Dd,_uint32:()=>nd,_uint64:()=>od,_ulid:()=>ra,_undefined:()=>cd,_union:()=>G6,_unknown:()=>Pu,_uppercase:()=>ya,_url:()=>ea,_uuid:()=>Qr,_uuidv4:()=>Wr,_uuidv6:()=>Yr,_uuidv7:()=>Xr,_void:()=>md,_xid:()=>aa,clone:()=>Ve,config:()=>ye,flattenError:()=>Ar,formatError:()=>Sr,function:()=>$d,globalConfig:()=>wu,globalRegistry:()=>Sn,isValidBase64:()=>Ur,isValidBase64URL:()=>Vc,isValidJWT:()=>Gc,locales:()=>Gr,parse:()=>Cr,parseAsync:()=>xr,prettifyError:()=>k0,regexes:()=>Nr,registry:()=>Hr,safeParse:()=>D0,safeParseAsync:()=>B0,toDotPath:()=>b0,toJSONSchema:()=>xd,treeifyError:()=>y0,util:()=>q,version:()=>Dc});var s0=Object.freeze({status:"aborted"});function p(e,n,t){function i(o,s){var c;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(c=o._zod).traits??(c.traits=new Set),o._zod.traits.add(e),n(o,s);for(const l in a.prototype)l in o||Object.defineProperty(o,l,{value:a.prototype[l].bind(o)});o._zod.constr=a,o._zod.def=s}const u=t?.Parent??Object;class r extends u{}Object.defineProperty(r,"name",{value:e});function a(o){var s;const c=t?.Parent?new r:this;i(c,o),(s=c._zod).deferred??(s.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:o=>t?.Parent&&o instanceof t.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var c0=Symbol("zod_brand"),Mn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},wu={};function ye(e){return e&&Object.assign(wu,e),wu}var q={};yn(q,{BIGINT_FORMAT_RANGES:()=>h0,Class:()=>ch,NUMBER_FORMAT_RANGES:()=>p0,aborted:()=>Gn,allowsEval:()=>f0,assert:()=>Kp,assertEqual:()=>qp,assertIs:()=>Jp,assertNever:()=>Hp,assertNotEqual:()=>Gp,assignProp:()=>Dr,cached:()=>Cu,captureStackTrace:()=>Br,cleanEnum:()=>sh,cleanRegex:()=>$u,clone:()=>Ve,createTransparentProxy:()=>nh,defineLazy:()=>H,esc:()=>qn,escapeRegex:()=>An,extend:()=>ih,finalizeIssue:()=>Re,floatSafeRemainder:()=>d0,getElementAtPath:()=>Qp,getEnumValues:()=>kr,getLengthableOrigin:()=>Fu,getParsedType:()=>eh,getSizableOrigin:()=>Iu,isObject:()=>Ut,isPlainObject:()=>Pt,issue:()=>g0,joinValues:()=>S,jsonStringifyReplacer:()=>l0,merge:()=>rh,normalizeParams:()=>B,nullish:()=>_n,numKeys:()=>Xp,omit:()=>uh,optionalKeys:()=>v0,partial:()=>ah,pick:()=>th,prefixIssues:()=>Ie,primitiveTypes:()=>m0,promiseAllObject:()=>Wp,propertyKeyTypes:()=>xu,randomString:()=>Yp,required:()=>oh,stringifyPrimitive:()=>L,unwrapMessage:()=>jt});function qp(e){return e}function Gp(e){return e}function Jp(e){}function Hp(e){throw new Error}function Kp(e){}function kr(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,u])=>n.indexOf(+i)===-1).map(([i,u])=>u)}function S(e,n="|"){return e.map(t=>L(t)).join(n)}function l0(e,n){return typeof n=="bigint"?n.toString():n}function Cu(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function _n(e){return e==null}function $u(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function d0(e,n){const t=(e.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length,u=t>i?t:i,r=Number.parseInt(e.toFixed(u).replace(".","")),a=Number.parseInt(n.toFixed(u).replace(".",""));return r%a/10**u}function H(e,n,t){Object.defineProperty(e,n,{get(){{const i=t();return e[n]=i,i}},set(i){Object.defineProperty(e,n,{value:i})},configurable:!0})}function Dr(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Qp(e,n){return n?n.reduce((t,i)=>t?.[i],e):e}function Wp(e){const n=Object.keys(e),t=n.map(i=>e[i]);return Promise.all(t).then(i=>{const u={};for(let r=0;r<n.length;r++)u[n[r]]=i[r];return u})}function Yp(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let i=0;i<e;i++)t+=n[Math.floor(Math.random()*n.length)];return t}function qn(e){return JSON.stringify(e)}var Br=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Ut(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var f0=Cu(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Pt(e){if(Ut(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Ut(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Xp(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var eh=e=>{const 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 new Error(`Unknown data type: ${n}`)}},xu=new Set(["string","number","symbol"]),m0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ve(e,n,t){const i=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(i._zod.parent=e),i}function B(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(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 nh(e){let n;return new Proxy({},{get(t,i,u){return n??(n=e()),Reflect.get(n,i,u)},set(t,i,u,r){return n??(n=e()),Reflect.set(n,i,u,r)},has(t,i){return n??(n=e()),Reflect.has(n,i)},deleteProperty(t,i){return n??(n=e()),Reflect.deleteProperty(n,i)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,i){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,i)},defineProperty(t,i,u){return n??(n=e()),Reflect.defineProperty(n,i,u)}})}function L(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function v0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var p0={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]},h0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function th(e,n){const t={},i=e._zod.def;for(const u in n){if(!(u in i.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(t[u]=i.shape[u])}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function uh(e,n){const t={...e._zod.def.shape},i=e._zod.def;for(const u in n){if(!(u in i.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&delete t[u]}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function ih(e,n){if(!Pt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const i={...e._zod.def.shape,...n};return Dr(this,"shape",i),i},checks:[]};return Ve(e,t)}function rh(e,n){return Ve(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return Dr(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function ah(e,n,t){const i=n._zod.def.shape,u={...i};if(t)for(const r in t){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(u[r]=e?new e({type:"optional",innerType:i[r]}):i[r])}else for(const r in i)u[r]=e?new e({type:"optional",innerType:i[r]}):i[r];return Ve(n,{...n._zod.def,shape:u,checks:[]})}function oh(e,n,t){const i=n._zod.def.shape,u={...i};if(t)for(const r in t){if(!(r in u))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(u[r]=new e({type:"nonoptional",innerType:i[r]}))}else for(const r in i)u[r]=new e({type:"nonoptional",innerType:i[r]});return Ve(n,{...n._zod.def,shape:u,checks:[]})}function Gn(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Ie(e,n){return n.map(t=>{var i;return(i=t).path??(i.path=[]),t.path.unshift(e),t})}function jt(e){return typeof e=="string"?e:e?.message}function Re(e,n,t){const i={...e,path:e.path??[]};if(!e.message){const u=jt(e.inst?._zod.def?.error?.(e))??jt(n?.error?.(e))??jt(t.customError?.(e))??jt(t.localeError?.(e))??"Invalid input";i.message=u}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Iu(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Fu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function g0(...e){const[n,t,i]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:i}:{...n}}function sh(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var ch=class{constructor(...e){}},E0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,l0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},_r=p("$ZodError",E0),Rt=p("$ZodError",E0,{Parent:Error});function Ar(e,n=t=>t.message){const t={},i=[];for(const u of e.issues)u.path.length>0?(t[u.path[0]]=t[u.path[0]]||[],t[u.path[0]].push(n(u))):i.push(n(u));return{formErrors:i,fieldErrors:t}}function Sr(e,n){const t=n||function(r){return r.message},i={_errors:[]},u=r=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>u({issues:o}));else if(a.code==="invalid_key")u({issues:a.issues});else if(a.code==="invalid_element")u({issues:a.issues});else if(a.path.length===0)i._errors.push(t(a));else{let o=i,s=0;for(;s<a.path.length;){const c=a.path[s];s===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(t(a))):o[c]=o[c]||{_errors:[]},o=o[c],s++}}};return u(e),i}function y0(e,n){const t=n||function(r){return r.message},i={errors:[]},u=(r,a=[])=>{var o,s;for(const c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>u({issues:l},c.path));else if(c.code==="invalid_key")u({issues:c.issues},c.path);else if(c.code==="invalid_element")u({issues:c.issues},c.path);else{const l=[...a,...c.path];if(l.length===0){i.errors.push(t(c));continue}let f=i,m=0;for(;m<l.length;){const d=l[m],v=m===l.length-1;typeof d=="string"?(f.properties??(f.properties={}),(o=f.properties)[d]??(o[d]={errors:[]}),f=f.properties[d]):(f.items??(f.items=[]),(s=f.items)[d]??(s[d]={errors:[]}),f=f.items[d]),v&&f.errors.push(t(c)),m++}}};return u(e),i}function b0(e){const n=[];for(const t of e)typeof t=="number"?n.push(`[${t}]`):typeof t=="symbol"?n.push(`[${JSON.stringify(String(t))}]`):/[^\w$]/.test(t)?n.push(`[${JSON.stringify(t)}]`):(n.length&&n.push("."),n.push(t));return n.join("")}function k0(e){const n=[],t=[...e.issues].sort((i,u)=>i.path.length-u.path.length);for(const i of t)n.push(`\u2716 ${i.message}`),i.path?.length&&n.push(` \u2192 at ${b0(i.path)}`);return n.join(`
|
|
43
|
-
`)}var wr=e=>(n,t,i,u)=>{const r=i?Object.assign(i,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise)throw new Mn;if(a.issues.length){const o=new(u?.Err??e)(a.issues.map(s=>Re(s,r,ye())));throw Br(o,u?.callee),o}return a.value},Cr=wr(Rt),$r=e=>async(n,t,i,u)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(u?.Err??e)(a.issues.map(s=>Re(s,r,ye())));throw Br(o,u?.callee),o}return a.value},xr=$r(Rt),Ir=e=>(n,t,i)=>{const u=i?{...i,async:!1}:{async:!1},r=n._zod.run({value:t,issues:[]},u);if(r instanceof Promise)throw new Mn;return r.issues.length?{success:!1,error:new(e??_r)(r.issues.map(a=>Re(a,u,ye())))}:{success:!0,data:r.value}},D0=Ir(Rt),Fr=e=>async(n,t,i)=>{const u=i?Object.assign(i,{async:!0}):{async:!0};let r=n._zod.run({value:t,issues:[]},u);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(a=>Re(a,u,ye())))}:{success:!0,data:r.value}},B0=Fr(Rt),Nr={};yn(Nr,{base64:()=>P0,base64url:()=>Tr,bigint:()=>J0,boolean:()=>Q0,browserEmail:()=>gh,cidrv4:()=>z0,cidrv6:()=>U0,cuid:()=>_0,cuid2:()=>A0,date:()=>Z0,datetime:()=>q0,domain:()=>yh,duration:()=>x0,e164:()=>R0,email:()=>F0,emoji:()=>N0,extendedDuration:()=>lh,guid:()=>I0,hostname:()=>j0,html5Email:()=>vh,integer:()=>H0,ipv4:()=>T0,ipv6:()=>O0,ksuid:()=>C0,lowercase:()=>X0,nanoid:()=>$0,null:()=>W0,number:()=>K0,rfc5322Email:()=>ph,string:()=>G0,time:()=>M0,ulid:()=>S0,undefined:()=>Y0,unicodeEmail:()=>hh,uppercase:()=>ec,uuid:()=>Jn,uuid4:()=>dh,uuid6:()=>fh,uuid7:()=>mh,xid:()=>w0});var _0=/^[cC][^\s-]{8,}$/,A0=/^[0-9a-z]+$/,S0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,w0=/^[0-9a-vA-V]{20}$/,C0=/^[A-Za-z0-9]{27}$/,$0=/^[a-zA-Z0-9_-]{21}$/,x0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lh=/^[-+]?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)?)??$/,I0=/^([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})$/,Jn=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)$/,dh=Jn(4),fh=Jn(6),mh=Jn(7),F0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vh=/^[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])?)*$/,ph=/^(([^<>()\[\]\\.,;:\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,}))$/,hh=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,gh=/^[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])?)*$/,Eh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function N0(){return new RegExp(Eh,"u")}var T0=/^(?:(?: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])$/,O0=/^(([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})$/,z0=/^((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])$/,U0=/^(([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])$/,P0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tr=/^[A-Za-z0-9_-]*$/,j0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,yh=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,R0=/^\+(?:[0-9]){6,14}[0-9]$/,L0="(?:(?:\\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])))",Z0=new RegExp(`^${L0}$`);function V0(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}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function M0(e){return new RegExp(`^${V0(e)}$`)}function q0(e){const n=V0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const i=`${n}(?:${t.join("|")})`;return new RegExp(`^${L0}T(?:${i})$`)}var G0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},J0=/^\d+n?$/,H0=/^\d+$/,K0=/^-?\d+(?:\.\d+)?/i,Q0=/true|false/i,W0=/null/i,Y0=/undefined/i,X0=/^[^A-Z]*$/,ec=/^[^a-z]*$/,ue=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),nc={number:"number",bigint:"bigint",object:"date"},Or=p("$ZodCheckLessThan",(e,n)=>{ue.init(e,n);const t=nc[typeof n.value];e._zod.onattach.push(i=>{const u=i._zod.bag,r=(n.inclusive?u.maximum:u.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<r&&(n.inclusive?u.maximum=n.value:u.exclusiveMaximum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value<=n.value:i.value<n.value)||i.issues.push({origin:t,code:"too_big",maximum:n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),zr=p("$ZodCheckGreaterThan",(e,n)=>{ue.init(e,n);const t=nc[typeof n.value];e._zod.onattach.push(i=>{const u=i._zod.bag,r=(n.inclusive?u.minimum:u.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>r&&(n.inclusive?u.minimum=n.value:u.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:t,code:"too_small",minimum:n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),tc=p("$ZodCheckMultipleOf",(e,n)=>{ue.init(e,n),e._zod.onattach.push(t=>{var i;(i=t._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):d0(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),uc=p("$ZodCheckNumberFormat",(e,n)=>{ue.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),i=t?"int":"number",[u,r]=p0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=u,o.maximum=r,t&&(o.pattern=H0)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:i,format:n.format,code:"invalid_type",input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?a.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!n.abort}):a.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!n.abort});return}}o<u&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:u,inclusive:!0,inst:e,continue:!n.abort}),o>r&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:r,inst:e})}}),ic=p("$ZodCheckBigIntFormat",(e,n)=>{ue.init(e,n);const[t,i]=h0[n.format];e._zod.onattach.push(u=>{const r=u._zod.bag;r.format=n.format,r.minimum=t,r.maximum=i}),e._zod.check=u=>{const r=u.value;r<t&&u.issues.push({origin:"bigint",input:r,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),r>i&&u.issues.push({origin:"bigint",input:r,code:"too_big",maximum:i,inst:e})}}),rc=p("$ZodCheckMaxSize",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.size!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<u&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const u=i.value;u.size<=n.maximum||i.issues.push({origin:Iu(u),code:"too_big",maximum:n.maximum,input:u,inst:e,continue:!n.abort})}}),ac=p("$ZodCheckMinSize",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.size!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>u&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const u=i.value;u.size>=n.minimum||i.issues.push({origin:Iu(u),code:"too_small",minimum:n.minimum,input:u,inst:e,continue:!n.abort})}}),oc=p("$ZodCheckSizeEquals",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.size!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag;u.minimum=n.size,u.maximum=n.size,u.size=n.size}),e._zod.check=i=>{const u=i.value,r=u.size;if(r===n.size)return;const a=r>n.size;i.issues.push({origin:Iu(u),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),sc=p("$ZodCheckMaxLength",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.length!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<u&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const u=i.value;if(u.length<=n.maximum)return;const a=Fu(u);i.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:u,inst:e,continue:!n.abort})}}),cc=p("$ZodCheckMinLength",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.length!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>u&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const u=i.value;if(u.length>=n.minimum)return;const a=Fu(u);i.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:u,inst:e,continue:!n.abort})}}),lc=p("$ZodCheckLengthEquals",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.length!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag;u.minimum=n.length,u.maximum=n.length,u.length=n.length}),e._zod.check=i=>{const u=i.value,r=u.length;if(r===n.length)return;const a=Fu(u),o=r>n.length;i.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),Lt=p("$ZodCheckStringFormat",(e,n)=>{var t,i;ue.init(e,n),e._zod.onattach.push(u=>{const r=u._zod.bag;r.format=n.format,n.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=u=>{n.pattern.lastIndex=0,!n.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:n.format,input:u.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),dc=p("$ZodCheckRegex",(e,n)=>{Lt.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),fc=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=X0),Lt.init(e,n)}),mc=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=ec),Lt.init(e,n)}),vc=p("$ZodCheckIncludes",(e,n)=>{ue.init(e,n);const t=An(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=i,e._zod.onattach.push(u=>{const r=u._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(i)}),e._zod.check=u=>{u.value.includes(n.includes,n.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:u.value,inst:e,continue:!n.abort})}}),pc=p("$ZodCheckStartsWith",(e,n)=>{ue.init(e,n);const t=new RegExp(`^${An(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(t)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),hc=p("$ZodCheckEndsWith",(e,n)=>{ue.init(e,n);const t=new RegExp(`.*${An(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(t)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}});function gc(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues))}var Ec=p("$ZodCheckProperty",(e,n)=>{ue.init(e,n),e._zod.check=t=>{const i=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(i instanceof Promise)return i.then(u=>gc(u,t,n.property));gc(i,t,n.property)}}),yc=p("$ZodCheckMimeType",(e,n)=>{ue.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=n.mime}),e._zod.check=i=>{t.has(i.value.type)||i.issues.push({code:"invalid_value",values:n.mime,input:i.value.type,inst:e})}}),bc=p("$ZodCheckOverwrite",(e,n)=>{ue.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),kc=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
|
|
42
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isRepeatable:{type:new R(xe),resolve:function(t){return t.isRepeatable}},locations:{type:new R(new se(new R(Qs))),resolve:function(t){return t.locations}},args:{type:new R(new se(new R(Au))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;return u?t.args:t.args.filter(function(r){return r.deprecationReason==null})}}}}}),Qs=new ku({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:K.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:K.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:K.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:K.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:K.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:K.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:K.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:K.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:K.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:K.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:K.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:K.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:K.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:K.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:K.UNION,description:"Location adjacent to a union definition."},ENUM:{value:K.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:K.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:K.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:K.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ue=new rn({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new R(Xs),resolve:function(t){if(It(t))return de.SCALAR;if(Ze(t))return de.OBJECT;if($e(t))return de.INTERFACE;if(tn(t))return de.UNION;if(un(t))return de.ENUM;if(Dn(t))return de.INPUT_OBJECT;if(Ft(t))return de.LIST;if(Pn(t))return de.NON_NULL;$t(0,'Unexpected type: "'.concat(J(t),'".'))}},name:{type:te,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:te,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:te,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new se(new R(Ws)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;if(Ze(t)||$e(t)){var r=kn(t.getFields());return u?r:r.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new se(new R(Ue)),resolve:function(t){if(Ze(t)||$e(t))return t.getInterfaces()}},possibleTypes:{type:new se(new R(Ue)),resolve:function(t,i,u,r){var a=r.schema;if(Kv(t))return a.getPossibleTypes(t)}},enumValues:{type:new se(new R(Ys)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;if(un(t)){var r=t.getValues();return u?r:r.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new se(new R(Au)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;if(Dn(t)){var r=kn(t.getFields());return u?r:r.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Ue,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),Ws=new rn({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},args:{type:new R(new se(new R(Au))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,i){var u=i.includeDeprecated;return u?t.args:t.args.filter(function(r){return r.deprecationReason==null})}},type:{type:new R(Ue),resolve:function(t){return t.type}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Au=new rn({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},type:{type:new R(Ue),resolve:function(t){return t.type}},defaultValue:{type:te,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var i=t.type,u=t.defaultValue,r=zt(u,i);return r?Je(r):null}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Ys=new rn({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),de=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Xs=new ku({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:de.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:de.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:de.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:de.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:de.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:de.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:de.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:de.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),e0={name:"__schema",type:new R(br),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,i,u){var r=u.schema;return r},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},n0={name:"__type",type:Ue,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new R(te),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,i,u){var r=t.name,a=u.schema;return a.getType(r)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},t0={name:"__typename",type:new R(te),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,i,u){var r=u.parentType;return r.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},u0=Object.freeze([br,Ks,Qs,Ue,Ws,Au,Ys,Xs]);function yp(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function bp(e,n,t){return n&&yp(e.prototype,n),e}function kp(e){return Ge(e,Zn)}var Zn=function(){function e(t){var i,u;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(i=t.isRepeatable)!==null&&i!==void 0?i:!1,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,t.name||q(0,"Directive must be named."),Array.isArray(t.locations)||q(0,"@".concat(t.name," locations must be an Array."));var r=(u=t.args)!==null&&u!==void 0?u:{};bn(r)&&!Array.isArray(r)||q(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=xt(r).map(function(a){var o=a[0],s=a[1];return{name:o,description:s.description,type:s.type,defaultValue:s.defaultValue,deprecationReason:s.deprecationReason,extensions:s.extensions&&Ae(s.extensions),astNode:s.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Zs(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},bp(e,[{key:Ce,get:function(){return"GraphQLDirective"}}]),e}();Te(Zn);var Dp=new Zn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new R(xe),description:"Included when true."}}}),Bp=new Zn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new R(xe),description:"Skipped when true."}}}),_p="No longer supported",Ap=new Zn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[K.FIELD_DEFINITION,K.ARGUMENT_DEFINITION,K.INPUT_FIELD_DEFINITION,K.ENUM_VALUE],args:{reason:{type:te,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:_p}}}),Sp=new Zn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[K.SCALAR],args:{url:{type:new R(te),description:"The URL that specifies the behaviour of this scalar."}}}),wp=Object.freeze([Dp,Bp,Ap,Sp]);function Cp(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function $p(e,n,t){return n&&Cp(e.prototype,n),e}(function(){function e(t){var i;this.__validationErrors=t.assumeValid===!0?[]:void 0,bn(t)||q(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||q(0,'"types" must be Array if provided but got: '.concat(J(t.types),".")),!t.directives||Array.isArray(t.directives)||q(0,'"directives" must be Array if provided but got: '+"".concat(J(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(i=t.directives)!==null&&i!==void 0?i:wp;var u=new Set(t.types);if(t.types!=null)for(var r=0,a=t.types;r<a.length;r++){var o=a[r];u.delete(o),Pe(o,u)}this._queryType!=null&&Pe(this._queryType,u),this._mutationType!=null&&Pe(this._mutationType,u),this._subscriptionType!=null&&Pe(this._subscriptionType,u);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(kp(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Pe(d.type,u)}}Pe(br,u),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=up(u);v<h.length;v++){var b=h[v];if(b!=null){var y=b.name;if(y||q(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[y]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(y,'".'));if(this._typeMap[y]=b,$e(b))for(var E=0,k=b.getInterfaces();E<k.length;E++){var w=k[E];if($e(w)){var _=this._implementationsMap[w.name];_===void 0&&(_=this._implementationsMap[w.name]={objects:[],interfaces:[]}),_.interfaces.push(b)}}else if(Ze(b))for(var G=0,V=b.getInterfaces();G<V.length;G++){var F=V[G];if($e(F)){var g=this._implementationsMap[F.name];g===void 0&&(g=this._implementationsMap[F.name]={objects:[],interfaces:[]}),g.objects.push(b)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(i){return this.getTypeMap()[i]},n.getPossibleTypes=function(i){return tn(i)?i.getTypes():this.getImplementations(i).objects},n.getImplementations=function(i){var u=this._implementationsMap[i.name];return u??{objects:[],interfaces:[]}},n.isPossibleType=function(i,u){return this.isSubType(i,u)},n.isSubType=function(i,u){var r=this._subTypeMap[i.name];if(r===void 0){if(r=Object.create(null),tn(i))for(var a=0,o=i.getTypes();a<o.length;a++){var s=o[a];r[s.name]=!0}else{for(var c=this.getImplementations(i),l=0,f=c.objects;l<f.length;l++){var m=f[l];r[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];r[h.name]=!0}}this._subTypeMap[i.name]=r}return r[u.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(i){return Ns(this.getDirectives(),function(u){return u.name===i})},n.toConfig=function(){var i;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:kn(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(i=this.extensionASTNodes)!==null&&i!==void 0?i:[],assumeValid:this.__validationErrors!==void 0}},$p(e,[{key:Ce,get:function(){return"GraphQLSchema"}}]),e})();function Pe(e,n){var t=Nt(e);if(!n.has(t)){if(n.add(t),tn(t))for(var i=0,u=t.getTypes();i<u.length;i++){var r=u[i];Pe(r,n)}else if(Ze(t)||$e(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Pe(s,n)}for(var c=0,l=kn(t.getFields());c<l.length;c++){var f=l[c];Pe(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Pe(v.type,n)}}}else if(Dn(t))for(var h=0,b=kn(t.getFields());h<b.length;h++){var y=b[h];Pe(y.type,n)}}return n}function Su(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Su(e,n.type),t&&new se(t);if(n.kind===C.NON_NULL_TYPE)return t=Su(e,n.type),t&&new R(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);$t(0,"Unexpected type node: "+J(n))}var xp=function(){function e(t,i,u){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=i??Ip,u&&(jn(u)&&this._inputTypeStack.push(u),hr(u)&&this._parentTypeStack.push(u),yu(u)&&this._typeStack.push(u))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(i){var u=this._schema;switch(i.kind){case C.SELECTION_SET:{var r=Nt(this.getType());this._parentTypeStack.push(hr(r)?r:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(u,a,i),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(yu(s)?s:void 0);break}case C.DIRECTIVE:this._directive=u.getDirective(i.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(i.operation){case"query":c=u.getQueryType();break;case"mutation":c=u.getMutationType();break;case"subscription":c=u.getSubscriptionType();break}this._typeStack.push(Ze(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=i.typeCondition,f=l?Su(u,l):Nt(this.getType());this._typeStack.push(yu(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Su(u,i.type);this._inputTypeStack.push(jn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,b=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();b&&(v=Ns(b.args,function(F){return F.name===i.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(jn(h)?h:void 0);break}case C.LIST:{var y=Yv(this.getInputType()),E=Ft(y)?y.ofType:y;this._defaultValueStack.push(void 0),this._inputTypeStack.push(jn(E)?E:void 0);break}case C.OBJECT_FIELD:{var k=Nt(this.getInputType()),w,_;Dn(k)&&(_=k.getFields()[i.name.value],_&&(w=_.type)),this._defaultValueStack.push(_?_.defaultValue:void 0),this._inputTypeStack.push(jn(w)?w:void 0);break}case C.ENUM:{var G=Nt(this.getInputType()),V;un(G)&&(V=G.getValue(i.value)),this._enumValue=V;break}}},n.leave=function(i){switch(i.kind){case C.SELECTION_SET:this._parentTypeStack.pop();break;case C.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.DIRECTIVE:this._directive=null;break;case C.OPERATION_DEFINITION:case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.LIST:case C.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.ENUM:this._enumValue=null;break}},e}();function Ip(e,n,t){var i=t.name.value;if(i===e0.name&&e.getQueryType()===n)return e0;if(i===n0.name&&e.getQueryType()===n)return n0;if(i===t0.name&&hr(n))return t0;if(Ze(n)||$e(n))return n.getFields()[i]}function Fp(e,n){return{enter:function(i){e.enter(i);var u=fr(n,i.kind,!1);if(u){var r=u.apply(n,arguments);return r!==void 0&&(e.leave(i),dr(r)&&e.enter(r)),r}},leave:function(i){var u=fr(n,i.kind,!0),r;return u&&(r=u.apply(n,arguments)),e.leave(i),r}}}[].concat(Js,u0).map(function(e){return e.name});var an;function Vn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}an={},Vn(an,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Vn(an,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Vn(an,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Vn(an,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Vn(an,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Vn(an,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function i0(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var r0=function(){function e(t,i){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=i}var n=e.prototype;return n.reportError=function(i){this._onError(i)},n.getDocument=function(){return this._ast},n.getFragment=function(i){var u=this._fragments;return u||(this._fragments=u=this.getDocument().definitions.reduce(function(r,a){return a.kind===C.FRAGMENT_DEFINITION&&(r[a.name.value]=a),r},Object.create(null))),u[i]},n.getFragmentSpreads=function(i){var u=this._fragmentSpreads.get(i);if(!u){u=[];for(var r=[i];r.length!==0;)for(var a=r.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?u.push(c):c.selectionSet&&r.push(c.selectionSet)}this._fragmentSpreads.set(i,u)}return u},n.getRecursivelyReferencedFragments=function(i){var u=this._recursivelyReferencedFragments.get(i);if(!u){u=[];for(var r=Object.create(null),a=[i.selectionSet];a.length!==0;)for(var o=a.pop(),s=0,c=this.getFragmentSpreads(o);s<c.length;s++){var l=c[s],f=l.name.value;if(r[f]!==!0){r[f]=!0;var m=this.getFragment(f);m&&(u.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(i,u)}return u},e}();(function(e){i0(n,e);function n(i,u,r){var a;return a=e.call(this,i,r)||this,a._schema=u,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(r0),function(e){i0(n,e);function n(i,u,r,a){var o;return o=e.call(this,u,a)||this,o._schema=i,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(u){var r=this._variableUsages.get(u);if(!r){var a=[],o=new xp(this._schema);Fs(u,Fp(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),r=a,this._variableUsages.set(u,r)}return r},t.getRecursiveVariableUsages=function(u){var r=this._recursiveVariableUsages.get(u);if(!r){r=this.getVariableUsages(u);for(var a=0,o=this.getRecursivelyReferencedFragments(u);a<o.length;a++){var s=o[a];r=r.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(u,r)}return r},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},t.getEnumValue=function(){return this._typeInfo.getEnumValue()},n}(r0),Ts(Js.concat(u0),function(e){return e.name});const a0=e=>e instanceof Error?e:new Error(e),Np=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u",o0={staging:{baseEndpoint:"https://api-staging.spritz.finance",graphEndpoint:"https://api-staging.spritz.finance/router/graph"},production:{baseEndpoint:"https://api.spritz.finance",graphEndpoint:"https://api.spritz.finance/router/graph"}},Tp=(e,n)=>{if(typeof n!="number"||!Number.isInteger(n))throw new Error(`${e} must be an integer`);if(n<0)throw new Error(`${e} must be a positive integer`);return n};class Op extends Error{timestamp;headers;constructor(n,t,...i){super(...i),this.name="SpritzApiError",this.message=n,this.headers=t??{},this.timestamp=new Date().toISOString()}}class we extends Error{status;headers;timestamp;constructor(n,t,i,u){super(we.makeMessage(t,i)),this.status=n,this.headers=u,this.timestamp=new Date().toISOString()}static makeMessage(n,t){return n?.message?typeof n.message=="string"?n.message:JSON.stringify(n.message):n?JSON.stringify(n):t||"Unknown error occurred"}static generate(n,t,i,u){return n?n===400?new Up(n,t,i,u):n===401?new Pp(n,t,i,u):n===403?new jp(n,t,i,u):n===404?new Rp(n,t,i,u):n===409?new Lp(n,t,i,u):n===422?new Zp(n,t,i,u):n===429?new Vp(n,t,i,u):n>=500?new qp(n,t,i,u):new we(n,t,i,u):new kr({cause:a0(t)})}}class kr extends we{status=void 0;constructor({message:n,cause:t}){super(void 0,void 0,n||"Connection error.",void 0),t&&(this.cause=t)}}class zp extends kr{constructor(){super({message:"Request timed out."})}}class Up extends we{name="BadRequestError";status=400}class Pp extends we{name="AuthenticationError";status=401}class jp extends we{name="PermissionDeniedError";status=403}class Rp extends we{name="NotFoundError";status=404}class Lp extends we{name="ConflictError";status=409}class Zp extends we{name="UnprocessableEntityError";status=422}class Vp extends we{name="RateLimitError";status=429}class qp extends we{name="InternalServerError"}const Mp=e=>{try{return JSON.parse(e)}catch{return}},s0=10,c0=100;function Gp(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(r=>r.kind==="OperationDefinition");if(n.length>1)throw new Error("Invalid GraphQL query: multiple operations not allowed");if(n.length===0)throw new Error("Invalid GraphQL query: no operation definition found");const t=n[0],i=Jp(t);if(i>s0)throw new Error(`GraphQL query too deep: ${i} levels (max: ${s0})`);const u=Hp(t);if(u>c0)throw new Error(`GraphQL query too complex: ${u} fields (max: ${c0})`);if(t?.operation!=="query"&&t?.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t?.operation}`)}function Jp(e){if(!e.selectionSet)return 0;function n(t){let i=0;for(const u of t.selections)if(u.kind==="Field"&&u.selectionSet){const r=1+n(u.selectionSet);i=Math.max(i,r)}else if(u.kind==="InlineFragment"&&u.selectionSet){const r=n(u.selectionSet);i=Math.max(i,r)}else u.kind==="FragmentSpread"&&(i=Math.max(i,1));return i}return n(e.selectionSet)}function Hp(e){if(!e.selectionSet)return 0;function n(t){let i=0;for(const u of t.selections)i+=1,u.kind==="Field"&&u.selectionSet||u.kind==="InlineFragment"&&u.selectionSet?i+=n(u.selectionSet):u.kind==="FragmentSpread"&&(i+=5);return i}return n(e.selectionSet)}function Kp(e){if(!e)return;const n=Object.create(null);for(const[t,i]of Object.entries(e)){if(!Qp(t))throw new Error(`Invalid GraphQL variable name: ${t}`);if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid property name: ${t}`);n[t]=Dr(i)}return n}function Qp(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function Dr(e){if(e==null)return e;if(typeof e=="string")return e.replace(/[\x00-\x1F\x7F]/g,"");if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(Dr);if(typeof e=="object"){const n=Object.create(null);for(const[t,i]of Object.entries(e)){if(typeof t!="string"||t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=Dr(i)}return n}return String(e).replace(/[\x00-\x1F\x7F]/g,"")}async function l0(e){const{response:n}=e;return n.headers.get("content-type")?.includes("application/json")?{response:await n.json(),headers:e.headers}:{response:await n.text(),headers:e.headers}}class Wp{baseGraphURL;baseRestURL;timeout;apiKey;integrationKey;constructor({environment:n,timeout:t=3e5,apiKey:i,integrationKey:u}){this.apiKey=i,this.integrationKey=u,this.baseGraphURL=o0[n].graphEndpoint,this.baseRestURL=o0[n].baseEndpoint,this.timeout=Tp("timeout",t)}async query({query:n,variables:t}){Gp(n);const i=Kp(t);return this.sendQuery({query:n,variables:i}).then(u=>l0(u)).then(({response:u,headers:r})=>{if(u.data)return u.data;if(u.errors){const a=u.errors[0]??{message:"Unknown error"};throw new Op(a.message,r)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:i=void 0}){return this.sendRequest({method:n,path:t,body:i}).then(u=>l0(u)).then(({response:u})=>u)}async sendQuery({query:n,variables:t}){const{url:i,req:u,timeout:r}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:i,req:u,timeout:r})}async sendRequest({method:n,path:t,body:i}){const{url:u,req:r,timeout:a}=this.buildRestRequest(n,t,i);return this.sendHTTPRequest({url:u,req:r,timeout:a})}async sendHTTPRequest({url:n,req:t,timeout:i}){const u=new AbortController,r=await this.fetchWithTimeout(n,t,i,u).catch(a0);if(r instanceof Error)throw r.name==="AbortError"?new zp:new kr({cause:r});const a=this.getResponseHeaders(r.headers);if(!r.ok){const o=await r.text().catch(()=>"Unknown error"),s=Mp(o);throw this.makeStatusError(r.status,s,s?void 0:o,a)}return{response:r,controller:u,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),i=n.get("x-amzn-requestid");return{traceId:t,requestId:i}}async fetchWithTimeout(n,t,i,u){const{signal:r,...a}=t||{},o=AbortSignal.timeout(i),s=r?AbortSignal.any([r,o,u.signal]):AbortSignal.any([o,u.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const i={query:Je(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},u=i?JSON.stringify(i,null,2):null,r=this.calculateContentLength(u),a=this.timeout,o={...r&&{"Content-Length":r},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:"POST",...u&&{body:u},headers:s};return{url:this.baseGraphURL,req:c,timeout:a}}buildRestRequest(n,t,i){const u=i?JSON.stringify(i,null,2):null,r=this.calculateContentLength(u),a=this.timeout,o={...r&&{"Content-Length":r},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:n,...u&&{body:u},headers:s};return{url:`${this.baseRestURL}${t.startsWith("/")?t:"/"+t}`,req:c,timeout:a}}defaultHeaders(){return{Accept:"application/json","Content-Type":"application/json",...this.authHeaders()}}calculateContentLength(n){if(typeof n=="string"){if(typeof Buffer<"u")return Buffer.byteLength(n,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length.toString()}return null}authHeaders(){return{Authorization:"Bearer "+this.apiKey,...this.integrationKey?{"X-INTEGRATION-KEY":this.integrationKey}:{}}}makeStatusError(n,t,i,u){return we.generate(n,t,i,u)}}var je={};yn(je,{$brand:()=>m0,$input:()=>Ml,$output:()=>ql,NEVER:()=>f0,TimePrecision:()=>Hl,ZodAny:()=>Yd,ZodArray:()=>tf,ZodBase64:()=>Wa,ZodBase64URL:()=>Ya,ZodBigInt:()=>Gu,ZodBigIntFormat:()=>to,ZodBoolean:()=>Mu,ZodCIDRv4:()=>Ka,ZodCIDRv6:()=>Qa,ZodCUID:()=>Za,ZodCUID2:()=>Va,ZodCatch:()=>Df,ZodCustom:()=>ei,ZodCustomStringFormat:()=>Md,ZodDate:()=>uo,ZodDefault:()=>hf,ZodDiscriminatedUnion:()=>uf,ZodE164:()=>Xa,ZodEmail:()=>Pa,ZodEmoji:()=>Ra,ZodEnum:()=>Gt,ZodError:()=>kg,ZodFile:()=>vf,ZodFirstPartyTypeKind:()=>mo,ZodGUID:()=>Vu,ZodIPv4:()=>Ja,ZodIPv6:()=>Ha,ZodISODate:()=>Na,ZodISODateTime:()=>Fa,ZodISODuration:()=>Oa,ZodISOTime:()=>Ta,ZodIntersection:()=>rf,ZodIssueCode:()=>_3,ZodJWT:()=>eo,ZodKSUID:()=>Ga,ZodLazy:()=>Cf,ZodLiteral:()=>ff,ZodMap:()=>cf,ZodNaN:()=>_f,ZodNanoID:()=>La,ZodNever:()=>ef,ZodNonOptional:()=>lo,ZodNull:()=>Qd,ZodNullable:()=>pf,ZodNumber:()=>qu,ZodNumberFormat:()=>Kn,ZodObject:()=>Ku,ZodOptional:()=>co,ZodPipe:()=>fo,ZodPrefault:()=>Ef,ZodPromise:()=>xf,ZodReadonly:()=>Af,ZodRealError:()=>Mt,ZodRecord:()=>ao,ZodSet:()=>lf,ZodString:()=>Zu,ZodStringFormat:()=>X,ZodSuccess:()=>kf,ZodSymbol:()=>Hd,ZodTemplateLiteral:()=>wf,ZodTransform:()=>oo,ZodTuple:()=>of,ZodType:()=>Z,ZodULID:()=>qa,ZodURL:()=>ja,ZodUUID:()=>He,ZodUndefined:()=>Kd,ZodUnion:()=>ro,ZodUnknown:()=>Xd,ZodVoid:()=>nf,ZodXID:()=>Ma,_ZodString:()=>za,_default:()=>gf,any:()=>e3,array:()=>io,base64:()=>Rg,base64url:()=>Lg,bigint:()=>Kg,boolean:()=>Jd,catch:()=>Bf,check:()=>If,cidrv4:()=>Pg,cidrv6:()=>jg,clone:()=>Ve,coerce:()=>Tf,config:()=>ye,core:()=>d0,cuid:()=>Ig,cuid2:()=>Fg,custom:()=>y3,date:()=>t3,discriminatedUnion:()=>o3,e164:()=>Zg,email:()=>Dg,emoji:()=>$g,endsWith:()=>_a,enum:()=>df,file:()=>m3,flattenError:()=>wr,float32:()=>Mg,float64:()=>Gg,formatError:()=>Cr,function:()=>Nd,getErrorMap:()=>S3,globalRegistry:()=>Sn,gt:()=>Cn,gte:()=>Se,guid:()=>Bg,includes:()=>Da,instanceof:()=>b3,int:()=>no,int32:()=>Jg,int64:()=>Qg,intersection:()=>af,ipv4:()=>zg,ipv6:()=>Ug,iso:()=>Od,json:()=>D3,jwt:()=>Vg,keyof:()=>u3,ksuid:()=>Og,lazy:()=>$f,length:()=>Lu,literal:()=>mf,locales:()=>Hr,looseObject:()=>a3,lowercase:()=>ba,lt:()=>wn,lte:()=>Le,map:()=>l3,maxLength:()=>Ru,maxSize:()=>ju,mime:()=>Aa,minLength:()=>Hn,minSize:()=>qt,multipleOf:()=>Vt,nan:()=>h3,nanoid:()=>xg,nativeEnum:()=>f3,negative:()=>Dd,never:()=>Hu,nonnegative:()=>_d,nonoptional:()=>bf,nonpositive:()=>Bd,normalize:()=>Sa,null:()=>Wd,nullable:()=>Yu,nullish:()=>v3,number:()=>Gd,object:()=>i3,optional:()=>Wu,overwrite:()=>$n,parse:()=>Ld,parseAsync:()=>Zd,partialRecord:()=>c3,pipe:()=>Xu,positive:()=>kd,prefault:()=>yf,preprocess:()=>B3,prettifyError:()=>A0,promise:()=>E3,property:()=>Ad,readonly:()=>Sf,record:()=>sf,refine:()=>Ff,regex:()=>ya,regexes:()=>Or,registry:()=>Qr,safeParse:()=>Vd,safeParseAsync:()=>qd,set:()=>d3,setErrorMap:()=>A3,size:()=>Ea,startsWith:()=>Ba,strictObject:()=>r3,string:()=>Ua,stringFormat:()=>qg,stringbool:()=>k3,success:()=>p3,superRefine:()=>Nf,symbol:()=>Yg,templateLiteral:()=>g3,toJSONSchema:()=>Td,toLowerCase:()=>Ca,toUpperCase:()=>$a,transform:()=>so,treeifyError:()=>B0,trim:()=>wa,tuple:()=>s3,uint32:()=>Hg,uint64:()=>Wg,ulid:()=>Ng,undefined:()=>Xg,union:()=>Qu,unknown:()=>Ju,uppercase:()=>ka,url:()=>Cg,uuid:()=>_g,uuidv4:()=>Ag,uuidv6:()=>Sg,uuidv7:()=>wg,void:()=>n3,xid:()=>Tg});var d0={};yn(d0,{$ZodAny:()=>il,$ZodArray:()=>Vr,$ZodAsyncError:()=>qn,$ZodBase64:()=>Gc,$ZodBase64URL:()=>Hc,$ZodBigInt:()=>Zr,$ZodBigIntFormat:()=>el,$ZodBoolean:()=>Lr,$ZodCIDRv4:()=>qc,$ZodCIDRv6:()=>Mc,$ZodCUID:()=>Nc,$ZodCUID2:()=>Tc,$ZodCatch:()=>Il,$ZodCheck:()=>ue,$ZodCheckBigIntFormat:()=>sc,$ZodCheckEndsWith:()=>bc,$ZodCheckGreaterThan:()=>Pr,$ZodCheckIncludes:()=>Ec,$ZodCheckLengthEquals:()=>vc,$ZodCheckLessThan:()=>Ur,$ZodCheckLowerCase:()=>hc,$ZodCheckMaxLength:()=>fc,$ZodCheckMaxSize:()=>cc,$ZodCheckMimeType:()=>Bc,$ZodCheckMinLength:()=>mc,$ZodCheckMinSize:()=>lc,$ZodCheckMultipleOf:()=>ac,$ZodCheckNumberFormat:()=>oc,$ZodCheckOverwrite:()=>_c,$ZodCheckProperty:()=>Dc,$ZodCheckRegex:()=>pc,$ZodCheckSizeEquals:()=>dc,$ZodCheckStartsWith:()=>yc,$ZodCheckStringFormat:()=>Lt,$ZodCheckUpperCase:()=>gc,$ZodCustom:()=>jl,$ZodCustomStringFormat:()=>Yc,$ZodDate:()=>ol,$ZodDefault:()=>Al,$ZodDiscriminatedUnion:()=>fl,$ZodE164:()=>Kc,$ZodEmail:()=>$c,$ZodEmoji:()=>Ic,$ZodEnum:()=>bl,$ZodError:()=>Sr,$ZodFile:()=>Dl,$ZodFunction:()=>Fd,$ZodGUID:()=>wc,$ZodIPv4:()=>Zc,$ZodIPv6:()=>Vc,$ZodISODate:()=>jc,$ZodISODateTime:()=>Pc,$ZodISODuration:()=>Lc,$ZodISOTime:()=>Rc,$ZodIntersection:()=>ml,$ZodJWT:()=>Wc,$ZodKSUID:()=>Uc,$ZodLazy:()=>Pl,$ZodLiteral:()=>kl,$ZodMap:()=>hl,$ZodNaN:()=>Fl,$ZodNanoID:()=>Fc,$ZodNever:()=>rl,$ZodNonOptional:()=>Cl,$ZodNull:()=>ul,$ZodNullable:()=>_l,$ZodNumber:()=>Rr,$ZodNumberFormat:()=>Xc,$ZodObject:()=>ll,$ZodOptional:()=>Bl,$ZodPipe:()=>Jr,$ZodPrefault:()=>wl,$ZodPromise:()=>Ul,$ZodReadonly:()=>Tl,$ZodRealError:()=>Rt,$ZodRecord:()=>pl,$ZodRegistry:()=>Kr,$ZodSet:()=>El,$ZodString:()=>Zt,$ZodStringFormat:()=>W,$ZodSuccess:()=>xl,$ZodSymbol:()=>nl,$ZodTemplateLiteral:()=>zl,$ZodTransform:()=>Gr,$ZodTuple:()=>Ou,$ZodType:()=>U,$ZodULID:()=>Oc,$ZodURL:()=>xc,$ZodUUID:()=>Cc,$ZodUndefined:()=>tl,$ZodUnion:()=>qr,$ZodUnknown:()=>Nu,$ZodVoid:()=>al,$ZodXID:()=>zc,$brand:()=>m0,$constructor:()=>p,$input:()=>Ml,$output:()=>ql,Doc:()=>Ac,JSONSchema:()=>bg,JSONSchemaGenerator:()=>Ia,NEVER:()=>f0,TimePrecision:()=>Hl,_any:()=>pd,_array:()=>xa,_base64:()=>va,_base64url:()=>pa,_bigint:()=>sd,_boolean:()=>ad,_catch:()=>vg,_cidrv4:()=>fa,_cidrv6:()=>ma,_coercedBigint:()=>cd,_coercedBoolean:()=>od,_coercedDate:()=>yd,_coercedNumber:()=>ed,_coercedString:()=>Jl,_cuid:()=>ra,_cuid2:()=>aa,_custom:()=>Cd,_date:()=>Ed,_default:()=>dg,_discriminatedUnion:()=>eg,_e164:()=>ha,_email:()=>Wr,_emoji:()=>ua,_endsWith:()=>_a,_enum:()=>rg,_file:()=>wd,_float32:()=>td,_float64:()=>ud,_gt:()=>Cn,_gte:()=>Se,_guid:()=>Uu,_includes:()=>Da,_int:()=>nd,_int32:()=>id,_int64:()=>ld,_intersection:()=>ng,_ipv4:()=>la,_ipv6:()=>da,_isoDate:()=>Ql,_isoDateTime:()=>Kl,_isoDuration:()=>Yl,_isoTime:()=>Wl,_jwt:()=>ga,_ksuid:()=>ca,_lazy:()=>Eg,_length:()=>Lu,_literal:()=>og,_lowercase:()=>ba,_lt:()=>wn,_lte:()=>Le,_map:()=>ug,_max:()=>Le,_maxLength:()=>Ru,_maxSize:()=>ju,_mime:()=>Aa,_min:()=>Se,_minLength:()=>Hn,_minSize:()=>qt,_multipleOf:()=>Vt,_nan:()=>bd,_nanoid:()=>ia,_nativeEnum:()=>ag,_negative:()=>Dd,_never:()=>hd,_nonnegative:()=>_d,_nonoptional:()=>fg,_nonpositive:()=>Bd,_normalize:()=>Sa,_null:()=>vd,_nullable:()=>lg,_number:()=>Xl,_optional:()=>cg,_overwrite:()=>$n,_parse:()=>$r,_parseAsync:()=>Ir,_pipe:()=>pg,_positive:()=>kd,_promise:()=>yg,_property:()=>Ad,_readonly:()=>hg,_record:()=>tg,_refine:()=>$d,_regex:()=>ya,_safeParse:()=>Nr,_safeParseAsync:()=>Tr,_set:()=>ig,_size:()=>Ea,_startsWith:()=>Ba,_string:()=>Gl,_stringFormat:()=>Id,_stringbool:()=>xd,_success:()=>mg,_symbol:()=>fd,_templateLiteral:()=>gg,_toLowerCase:()=>Ca,_toUpperCase:()=>$a,_transform:()=>sg,_trim:()=>wa,_tuple:()=>Sd,_uint32:()=>rd,_uint64:()=>dd,_ulid:()=>oa,_undefined:()=>md,_union:()=>X6,_unknown:()=>Pu,_uppercase:()=>ka,_url:()=>ta,_uuid:()=>Yr,_uuidv4:()=>Xr,_uuidv6:()=>ea,_uuidv7:()=>na,_void:()=>gd,_xid:()=>sa,clone:()=>Ve,config:()=>ye,flattenError:()=>wr,formatError:()=>Cr,function:()=>Nd,globalConfig:()=>wu,globalRegistry:()=>Sn,isValidBase64:()=>jr,isValidBase64URL:()=>Jc,isValidJWT:()=>Qc,locales:()=>Hr,parse:()=>xr,parseAsync:()=>Fr,prettifyError:()=>A0,regexes:()=>Or,registry:()=>Qr,safeParse:()=>S0,safeParseAsync:()=>w0,toDotPath:()=>_0,toJSONSchema:()=>Td,treeifyError:()=>B0,util:()=>M,version:()=>Sc});var f0=Object.freeze({status:"aborted"});function p(e,n,t){function i(o,s){var c;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(c=o._zod).traits??(c.traits=new Set),o._zod.traits.add(e),n(o,s);for(const l in a.prototype)l in o||Object.defineProperty(o,l,{value:a.prototype[l].bind(o)});o._zod.constr=a,o._zod.def=s}const u=t?.Parent??Object;class r extends u{}Object.defineProperty(r,"name",{value:e});function a(o){var s;const c=t?.Parent?new r:this;i(c,o),(s=c._zod).deferred??(s.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:o=>t?.Parent&&o instanceof t.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var m0=Symbol("zod_brand"),qn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},wu={};function ye(e){return e&&Object.assign(wu,e),wu}var M={};yn(M,{BIGINT_FORMAT_RANGES:()=>b0,Class:()=>hh,NUMBER_FORMAT_RANGES:()=>y0,aborted:()=>Gn,allowsEval:()=>h0,assert:()=>th,assertEqual:()=>Yp,assertIs:()=>eh,assertNever:()=>nh,assertNotEqual:()=>Xp,assignProp:()=>_r,cached:()=>Cu,captureStackTrace:()=>Ar,cleanEnum:()=>ph,cleanRegex:()=>$u,clone:()=>Ve,createTransparentProxy:()=>sh,defineLazy:()=>H,esc:()=>Mn,escapeRegex:()=>An,extend:()=>dh,finalizeIssue:()=>Re,floatSafeRemainder:()=>p0,getElementAtPath:()=>uh,getEnumValues:()=>Br,getLengthableOrigin:()=>Fu,getParsedType:()=>oh,getSizableOrigin:()=>Iu,isObject:()=>Ut,isPlainObject:()=>Pt,issue:()=>k0,joinValues:()=>S,jsonStringifyReplacer:()=>v0,merge:()=>fh,normalizeParams:()=>B,nullish:()=>_n,numKeys:()=>ah,omit:()=>lh,optionalKeys:()=>E0,partial:()=>mh,pick:()=>ch,prefixIssues:()=>Ie,primitiveTypes:()=>g0,promiseAllObject:()=>ih,propertyKeyTypes:()=>xu,randomString:()=>rh,required:()=>vh,stringifyPrimitive:()=>L,unwrapMessage:()=>jt});function Yp(e){return e}function Xp(e){return e}function eh(e){}function nh(e){throw new Error}function th(e){}function Br(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,u])=>n.indexOf(+i)===-1).map(([i,u])=>u)}function S(e,n="|"){return e.map(t=>L(t)).join(n)}function v0(e,n){return typeof n=="bigint"?n.toString():n}function Cu(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function _n(e){return e==null}function $u(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function p0(e,n){const t=(e.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length,u=t>i?t:i,r=Number.parseInt(e.toFixed(u).replace(".","")),a=Number.parseInt(n.toFixed(u).replace(".",""));return r%a/10**u}function H(e,n,t){Object.defineProperty(e,n,{get(){{const i=t();return e[n]=i,i}},set(i){Object.defineProperty(e,n,{value:i})},configurable:!0})}function _r(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function uh(e,n){return n?n.reduce((t,i)=>t?.[i],e):e}function ih(e){const n=Object.keys(e),t=n.map(i=>e[i]);return Promise.all(t).then(i=>{const u={};for(let r=0;r<n.length;r++)u[n[r]]=i[r];return u})}function rh(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let i=0;i<e;i++)t+=n[Math.floor(Math.random()*n.length)];return t}function Mn(e){return JSON.stringify(e)}var Ar=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Ut(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var h0=Cu(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Pt(e){if(Ut(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Ut(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function ah(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var oh=e=>{const 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 new Error(`Unknown data type: ${n}`)}},xu=new Set(["string","number","symbol"]),g0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ve(e,n,t){const i=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(i._zod.parent=e),i}function B(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(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 sh(e){let n;return new Proxy({},{get(t,i,u){return n??(n=e()),Reflect.get(n,i,u)},set(t,i,u,r){return n??(n=e()),Reflect.set(n,i,u,r)},has(t,i){return n??(n=e()),Reflect.has(n,i)},deleteProperty(t,i){return n??(n=e()),Reflect.deleteProperty(n,i)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,i){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,i)},defineProperty(t,i,u){return n??(n=e()),Reflect.defineProperty(n,i,u)}})}function L(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function E0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var y0={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]},b0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ch(e,n){const t={},i=e._zod.def;for(const u in n){if(!(u in i.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(t[u]=i.shape[u])}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function lh(e,n){const t={...e._zod.def.shape},i=e._zod.def;for(const u in n){if(!(u in i.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&delete t[u]}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function dh(e,n){if(!Pt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const i={...e._zod.def.shape,...n};return _r(this,"shape",i),i},checks:[]};return Ve(e,t)}function fh(e,n){return Ve(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return _r(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function mh(e,n,t){const i=n._zod.def.shape,u={...i};if(t)for(const r in t){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(u[r]=e?new e({type:"optional",innerType:i[r]}):i[r])}else for(const r in i)u[r]=e?new e({type:"optional",innerType:i[r]}):i[r];return Ve(n,{...n._zod.def,shape:u,checks:[]})}function vh(e,n,t){const i=n._zod.def.shape,u={...i};if(t)for(const r in t){if(!(r in u))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(u[r]=new e({type:"nonoptional",innerType:i[r]}))}else for(const r in i)u[r]=new e({type:"nonoptional",innerType:i[r]});return Ve(n,{...n._zod.def,shape:u,checks:[]})}function Gn(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Ie(e,n){return n.map(t=>{var i;return(i=t).path??(i.path=[]),t.path.unshift(e),t})}function jt(e){return typeof e=="string"?e:e?.message}function Re(e,n,t){const i={...e,path:e.path??[]};if(!e.message){const u=jt(e.inst?._zod.def?.error?.(e))??jt(n?.error?.(e))??jt(t.customError?.(e))??jt(t.localeError?.(e))??"Invalid input";i.message=u}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Iu(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Fu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function k0(...e){const[n,t,i]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:i}:{...n}}function ph(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var hh=class{constructor(...e){}},D0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,v0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Sr=p("$ZodError",D0),Rt=p("$ZodError",D0,{Parent:Error});function wr(e,n=t=>t.message){const t={},i=[];for(const u of e.issues)u.path.length>0?(t[u.path[0]]=t[u.path[0]]||[],t[u.path[0]].push(n(u))):i.push(n(u));return{formErrors:i,fieldErrors:t}}function Cr(e,n){const t=n||function(r){return r.message},i={_errors:[]},u=r=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>u({issues:o}));else if(a.code==="invalid_key")u({issues:a.issues});else if(a.code==="invalid_element")u({issues:a.issues});else if(a.path.length===0)i._errors.push(t(a));else{let o=i,s=0;for(;s<a.path.length;){const c=a.path[s];s===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(t(a))):o[c]=o[c]||{_errors:[]},o=o[c],s++}}};return u(e),i}function B0(e,n){const t=n||function(r){return r.message},i={errors:[]},u=(r,a=[])=>{var o,s;for(const c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>u({issues:l},c.path));else if(c.code==="invalid_key")u({issues:c.issues},c.path);else if(c.code==="invalid_element")u({issues:c.issues},c.path);else{const l=[...a,...c.path];if(l.length===0){i.errors.push(t(c));continue}let f=i,m=0;for(;m<l.length;){const d=l[m],v=m===l.length-1;typeof d=="string"?(f.properties??(f.properties={}),(o=f.properties)[d]??(o[d]={errors:[]}),f=f.properties[d]):(f.items??(f.items=[]),(s=f.items)[d]??(s[d]={errors:[]}),f=f.items[d]),v&&f.errors.push(t(c)),m++}}};return u(e),i}function _0(e){const n=[];for(const t of e)typeof t=="number"?n.push(`[${t}]`):typeof t=="symbol"?n.push(`[${JSON.stringify(String(t))}]`):/[^\w$]/.test(t)?n.push(`[${JSON.stringify(t)}]`):(n.length&&n.push("."),n.push(t));return n.join("")}function A0(e){const n=[],t=[...e.issues].sort((i,u)=>i.path.length-u.path.length);for(const i of t)n.push(`\u2716 ${i.message}`),i.path?.length&&n.push(` \u2192 at ${_0(i.path)}`);return n.join(`
|
|
43
|
+
`)}var $r=e=>(n,t,i,u)=>{const r=i?Object.assign(i,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise)throw new qn;if(a.issues.length){const o=new(u?.Err??e)(a.issues.map(s=>Re(s,r,ye())));throw Ar(o,u?.callee),o}return a.value},xr=$r(Rt),Ir=e=>async(n,t,i,u)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(u?.Err??e)(a.issues.map(s=>Re(s,r,ye())));throw Ar(o,u?.callee),o}return a.value},Fr=Ir(Rt),Nr=e=>(n,t,i)=>{const u=i?{...i,async:!1}:{async:!1},r=n._zod.run({value:t,issues:[]},u);if(r instanceof Promise)throw new qn;return r.issues.length?{success:!1,error:new(e??Sr)(r.issues.map(a=>Re(a,u,ye())))}:{success:!0,data:r.value}},S0=Nr(Rt),Tr=e=>async(n,t,i)=>{const u=i?Object.assign(i,{async:!0}):{async:!0};let r=n._zod.run({value:t,issues:[]},u);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(a=>Re(a,u,ye())))}:{success:!0,data:r.value}},w0=Tr(Rt),Or={};yn(Or,{base64:()=>Z0,base64url:()=>zr,bigint:()=>W0,boolean:()=>ec,browserEmail:()=>_h,cidrv4:()=>R0,cidrv6:()=>L0,cuid:()=>C0,cuid2:()=>$0,date:()=>G0,datetime:()=>K0,domain:()=>Sh,duration:()=>T0,e164:()=>q0,email:()=>z0,emoji:()=>U0,extendedDuration:()=>gh,guid:()=>O0,hostname:()=>V0,html5Email:()=>kh,integer:()=>Y0,ipv4:()=>P0,ipv6:()=>j0,ksuid:()=>F0,lowercase:()=>uc,nanoid:()=>N0,null:()=>nc,number:()=>X0,rfc5322Email:()=>Dh,string:()=>Q0,time:()=>H0,ulid:()=>x0,undefined:()=>tc,unicodeEmail:()=>Bh,uppercase:()=>ic,uuid:()=>Jn,uuid4:()=>Eh,uuid6:()=>yh,uuid7:()=>bh,xid:()=>I0});var C0=/^[cC][^\s-]{8,}$/,$0=/^[0-9a-z]+$/,x0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,I0=/^[0-9a-vA-V]{20}$/,F0=/^[A-Za-z0-9]{27}$/,N0=/^[a-zA-Z0-9_-]{21}$/,T0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gh=/^[-+]?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)?)??$/,O0=/^([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})$/,Jn=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)$/,Eh=Jn(4),yh=Jn(6),bh=Jn(7),z0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kh=/^[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])?)*$/,Dh=/^(([^<>()\[\]\\.,;:\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,}))$/,Bh=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,_h=/^[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])?)*$/,Ah="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function U0(){return new RegExp(Ah,"u")}var P0=/^(?:(?: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])$/,j0=/^(([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})$/,R0=/^((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])$/,L0=/^(([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])$/,Z0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zr=/^[A-Za-z0-9_-]*$/,V0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Sh=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,q0=/^\+(?:[0-9]){6,14}[0-9]$/,M0="(?:(?:\\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])))",G0=new RegExp(`^${M0}$`);function J0(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}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function H0(e){return new RegExp(`^${J0(e)}$`)}function K0(e){const n=J0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const i=`${n}(?:${t.join("|")})`;return new RegExp(`^${M0}T(?:${i})$`)}var Q0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},W0=/^\d+n?$/,Y0=/^\d+$/,X0=/^-?\d+(?:\.\d+)?/i,ec=/true|false/i,nc=/null/i,tc=/undefined/i,uc=/^[^A-Z]*$/,ic=/^[^a-z]*$/,ue=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),rc={number:"number",bigint:"bigint",object:"date"},Ur=p("$ZodCheckLessThan",(e,n)=>{ue.init(e,n);const t=rc[typeof n.value];e._zod.onattach.push(i=>{const u=i._zod.bag,r=(n.inclusive?u.maximum:u.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<r&&(n.inclusive?u.maximum=n.value:u.exclusiveMaximum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value<=n.value:i.value<n.value)||i.issues.push({origin:t,code:"too_big",maximum:n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Pr=p("$ZodCheckGreaterThan",(e,n)=>{ue.init(e,n);const t=rc[typeof n.value];e._zod.onattach.push(i=>{const u=i._zod.bag,r=(n.inclusive?u.minimum:u.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>r&&(n.inclusive?u.minimum=n.value:u.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:t,code:"too_small",minimum:n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),ac=p("$ZodCheckMultipleOf",(e,n)=>{ue.init(e,n),e._zod.onattach.push(t=>{var i;(i=t._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):p0(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),oc=p("$ZodCheckNumberFormat",(e,n)=>{ue.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),i=t?"int":"number",[u,r]=y0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=u,o.maximum=r,t&&(o.pattern=Y0)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:i,format:n.format,code:"invalid_type",input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?a.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!n.abort}):a.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!n.abort});return}}o<u&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:u,inclusive:!0,inst:e,continue:!n.abort}),o>r&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:r,inst:e})}}),sc=p("$ZodCheckBigIntFormat",(e,n)=>{ue.init(e,n);const[t,i]=b0[n.format];e._zod.onattach.push(u=>{const r=u._zod.bag;r.format=n.format,r.minimum=t,r.maximum=i}),e._zod.check=u=>{const r=u.value;r<t&&u.issues.push({origin:"bigint",input:r,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),r>i&&u.issues.push({origin:"bigint",input:r,code:"too_big",maximum:i,inst:e})}}),cc=p("$ZodCheckMaxSize",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.size!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<u&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const u=i.value;u.size<=n.maximum||i.issues.push({origin:Iu(u),code:"too_big",maximum:n.maximum,input:u,inst:e,continue:!n.abort})}}),lc=p("$ZodCheckMinSize",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.size!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>u&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const u=i.value;u.size>=n.minimum||i.issues.push({origin:Iu(u),code:"too_small",minimum:n.minimum,input:u,inst:e,continue:!n.abort})}}),dc=p("$ZodCheckSizeEquals",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.size!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag;u.minimum=n.size,u.maximum=n.size,u.size=n.size}),e._zod.check=i=>{const u=i.value,r=u.size;if(r===n.size)return;const a=r>n.size;i.issues.push({origin:Iu(u),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),fc=p("$ZodCheckMaxLength",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.length!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<u&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const u=i.value;if(u.length<=n.maximum)return;const a=Fu(u);i.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:u,inst:e,continue:!n.abort})}}),mc=p("$ZodCheckMinLength",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.length!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>u&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const u=i.value;if(u.length>=n.minimum)return;const a=Fu(u);i.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:u,inst:e,continue:!n.abort})}}),vc=p("$ZodCheckLengthEquals",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=i=>{const u=i.value;return!_n(u)&&u.length!==void 0}),e._zod.onattach.push(i=>{const u=i._zod.bag;u.minimum=n.length,u.maximum=n.length,u.length=n.length}),e._zod.check=i=>{const u=i.value,r=u.length;if(r===n.length)return;const a=Fu(u),o=r>n.length;i.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),Lt=p("$ZodCheckStringFormat",(e,n)=>{var t,i;ue.init(e,n),e._zod.onattach.push(u=>{const r=u._zod.bag;r.format=n.format,n.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=u=>{n.pattern.lastIndex=0,!n.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:n.format,input:u.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),pc=p("$ZodCheckRegex",(e,n)=>{Lt.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),hc=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=uc),Lt.init(e,n)}),gc=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=ic),Lt.init(e,n)}),Ec=p("$ZodCheckIncludes",(e,n)=>{ue.init(e,n);const t=An(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=i,e._zod.onattach.push(u=>{const r=u._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(i)}),e._zod.check=u=>{u.value.includes(n.includes,n.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:u.value,inst:e,continue:!n.abort})}}),yc=p("$ZodCheckStartsWith",(e,n)=>{ue.init(e,n);const t=new RegExp(`^${An(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(t)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),bc=p("$ZodCheckEndsWith",(e,n)=>{ue.init(e,n);const t=new RegExp(`.*${An(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(t)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}});function kc(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues))}var Dc=p("$ZodCheckProperty",(e,n)=>{ue.init(e,n),e._zod.check=t=>{const i=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(i instanceof Promise)return i.then(u=>kc(u,t,n.property));kc(i,t,n.property)}}),Bc=p("$ZodCheckMimeType",(e,n)=>{ue.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=n.mime}),e._zod.check=i=>{t.has(i.value.type)||i.issues.push({code:"invalid_value",values:n.mime,input:i.value.type,inst:e})}}),_c=p("$ZodCheckOverwrite",(e,n)=>{ue.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),Ac=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
|
|
44
44
|
`).filter(r=>r),i=Math.min(...t.map(r=>r.length-r.trimStart().length)),u=t.map(r=>r.slice(i)).map(r=>" ".repeat(this.indent*2)+r);for(const r of u)this.content.push(r)}compile(){const e=Function,n=this?.args,i=[...(this?.content??[""]).map(u=>` ${u}`)];return new e(...n,i.join(`
|
|
45
|
-
`))}},
|
|
45
|
+
`))}},Sc={major:4,minor:0,patch:5},U=p("$ZodType",(e,n)=>{var t;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Sc;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const u of i)for(const r of u._zod.onattach)r(e);if(i.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const u=(r,a,o)=>{let s=Gn(r),c;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(r))continue}else if(s)continue;const f=r.issues.length,m=l._zod.check(r);if(m instanceof Promise&&o?.async===!1)throw new qn;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,r.issues.length!==f&&(s||(s=Gn(r,f)))});else{if(r.issues.length===f)continue;s||(s=Gn(r,f))}}return c?c.then(()=>r):r};e._zod.run=(r,a)=>{const o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new qn;return o.then(s=>u(s,i,a))}return u(o,i,a)}}e["~standard"]={validate:u=>{try{const r=S0(e,u);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return w0(e,u).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Zt=p("$ZodString",(e,n)=>{U.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Q0(e._zod.bag),e._zod.parse=(t,i)=>{if(n.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),W=p("$ZodStringFormat",(e,n)=>{Lt.init(e,n),Zt.init(e,n)}),wc=p("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=O0),W.init(e,n)}),Cc=p("$ZodUUID",(e,n)=>{if(n.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(i===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Jn(i))}else n.pattern??(n.pattern=Jn());W.init(e,n)}),$c=p("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=z0),W.init(e,n)}),xc=p("$ZodURL",(e,n)=>{W.init(e,n),e._zod.check=t=>{try{const i=t.value,u=new URL(i),r=u.href;n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(u.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:V0.source,input:t.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:t.value,inst:e,continue:!n.abort})),!i.endsWith("/")&&r.endsWith("/")?t.value=r.slice(0,-1):t.value=r;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),Ic=p("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=U0()),W.init(e,n)}),Fc=p("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=N0),W.init(e,n)}),Nc=p("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=C0),W.init(e,n)}),Tc=p("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=$0),W.init(e,n)}),Oc=p("$ZodULID",(e,n)=>{n.pattern??(n.pattern=x0),W.init(e,n)}),zc=p("$ZodXID",(e,n)=>{n.pattern??(n.pattern=I0),W.init(e,n)}),Uc=p("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=F0),W.init(e,n)}),Pc=p("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=K0(n)),W.init(e,n)}),jc=p("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=G0),W.init(e,n)}),Rc=p("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=H0(n)),W.init(e,n)}),Lc=p("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=T0),W.init(e,n)}),Zc=p("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=P0),W.init(e,n),e._zod.onattach.push(t=>{const i=t._zod.bag;i.format="ipv4"})}),Vc=p("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=j0),W.init(e,n),e._zod.onattach.push(t=>{const i=t._zod.bag;i.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!n.abort})}}}),qc=p("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=R0),W.init(e,n)}),Mc=p("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=L0),W.init(e,n),e._zod.check=t=>{const[i,u]=t.value.split("/");try{if(!u)throw new Error;const r=Number(u);if(`${r}`!==u)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${i}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}});function jr(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Gc=p("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=Z0),W.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{jr(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function Jc(e){if(!zr.test(e))return!1;const n=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return jr(t)}var Hc=p("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=zr),W.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{Jc(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),Kc=p("$ZodE164",(e,n)=>{n.pattern??(n.pattern=q0),W.init(e,n)});function Qc(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[i]=t;if(!i)return!1;const u=JSON.parse(atob(i));return!("typ"in u&&u?.typ!=="JWT"||!u.alg||n&&(!("alg"in u)||u.alg!==n))}catch{return!1}}var Wc=p("$ZodJWT",(e,n)=>{W.init(e,n),e._zod.check=t=>{Qc(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),Yc=p("$ZodCustomStringFormat",(e,n)=>{W.init(e,n),e._zod.check=t=>{n.fn(t.value)||t.issues.push({code:"invalid_format",format:n.format,input:t.value,inst:e,continue:!n.abort})}}),Rr=p("$ZodNumber",(e,n)=>{U.init(e,n),e._zod.pattern=e._zod.bag.pattern??X0,e._zod.parse=(t,i)=>{if(n.coerce)try{t.value=Number(t.value)}catch{}const u=t.value;if(typeof u=="number"&&!Number.isNaN(u)&&Number.isFinite(u))return t;const r=typeof u=="number"?Number.isNaN(u)?"NaN":Number.isFinite(u)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:u,inst:e,...r?{received:r}:{}}),t}}),Xc=p("$ZodNumber",(e,n)=>{oc.init(e,n),Rr.init(e,n)}),Lr=p("$ZodBoolean",(e,n)=>{U.init(e,n),e._zod.pattern=ec,e._zod.parse=(t,i)=>{if(n.coerce)try{t.value=!!t.value}catch{}const u=t.value;return typeof u=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:e}),t}}),Zr=p("$ZodBigInt",(e,n)=>{U.init(e,n),e._zod.pattern=W0,e._zod.parse=(t,i)=>{if(n.coerce)try{t.value=BigInt(t.value)}catch{}return typeof t.value=="bigint"||t.issues.push({expected:"bigint",code:"invalid_type",input:t.value,inst:e}),t}}),el=p("$ZodBigInt",(e,n)=>{sc.init(e,n),Zr.init(e,n)}),nl=p("$ZodSymbol",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;return typeof u=="symbol"||t.issues.push({expected:"symbol",code:"invalid_type",input:u,inst:e}),t}}),tl=p("$ZodUndefined",(e,n)=>{U.init(e,n),e._zod.pattern=tc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,i)=>{const u=t.value;return typeof u>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:u,inst:e}),t}}),ul=p("$ZodNull",(e,n)=>{U.init(e,n),e._zod.pattern=nc,e._zod.values=new Set([null]),e._zod.parse=(t,i)=>{const u=t.value;return u===null||t.issues.push({expected:"null",code:"invalid_type",input:u,inst:e}),t}}),il=p("$ZodAny",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),Nu=p("$ZodUnknown",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),rl=p("$ZodNever",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),al=p("$ZodVoid",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;return typeof u>"u"||t.issues.push({expected:"void",code:"invalid_type",input:u,inst:e}),t}}),ol=p("$ZodDate",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{if(n.coerce)try{t.value=new Date(t.value)}catch{}const u=t.value,r=u instanceof Date;return r&&!Number.isNaN(u.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:u,...r?{received:"Invalid Date"}:{},inst:e}),t}});function sl(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}var Vr=p("$ZodArray",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;if(!Array.isArray(u))return t.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),t;t.value=Array(u.length);const r=[];for(let a=0;a<u.length;a++){const o=u[a],s=n.element._zod.run({value:o,issues:[]},i);s instanceof Promise?r.push(s.then(c=>sl(c,t,a))):sl(s,t,a)}return r.length?Promise.all(r).then(()=>t):t}});function Tu(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}function cl(e,n,t,i){e.issues.length?i[t]===void 0?t in i?n.value[t]=void 0:n.value[t]=e.value:n.issues.push(...Ie(t,e.issues)):e.value===void 0?t in i&&(n.value[t]=void 0):n.value[t]=e.value}var ll=p("$ZodObject",(e,n)=>{U.init(e,n);const t=Cu(()=>{const f=Object.keys(n.shape);for(const d of f)if(!(n.shape[d]instanceof U))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const m=E0(n.shape);return{shape:n.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(m)}});H(e._zod,"propValues",()=>{const f=n.shape,m={};for(const d in f){const v=f[d]._zod;if(v.values){m[d]??(m[d]=new Set);for(const h of v.values)m[d].add(h)}}return m});const i=f=>{const m=new Ac(["shape","payload","ctx"]),d=t.value,v=E=>{const k=Mn(E);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};m.write("const input = payload.value;");const h=Object.create(null);let b=0;for(const E of d.keys)h[E]=`key_${b++}`;m.write("const newResult = {}");for(const E of d.keys)if(d.optionalKeys.has(E)){const k=h[E];m.write(`const ${k} = ${v(E)};`);const w=Mn(E);m.write(`
|
|
46
46
|
if (${k}.issues.length) {
|
|
47
47
|
if (input[${w}] === undefined) {
|
|
48
48
|
if (${w} in input) {
|
|
@@ -64,10 +64,10 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
64
64
|
`)}else{const k=h[E];m.write(`const ${k} = ${v(E)};`),m.write(`
|
|
65
65
|
if (${k}.issues.length) payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
|
|
66
66
|
...iss,
|
|
67
|
-
path: iss.path ? [${
|
|
68
|
-
})));`),m.write(`newResult[${qn(E)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const y=m.compile();return(E,k)=>y(f,E,k)};let u;const r=Ut,a=!wu.jitless,s=a&&f0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!r(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;const v=[];if(a&&s&&m?.async===!1&&m.jitless!==!0)u||(u=i(n.shape)),f=u(f,m);else{f.value={};const k=l.shape;for(const w of l.keys){const _=k[w],G=_._zod.run({value:d[w],issues:[]},m),V=_._zod.optin==="optional"&&_._zod.optout==="optional";G instanceof Promise?v.push(G.then(F=>V?rl(F,f,w,d):Tu(F,f,w))):V?rl(G,f,w,d):Tu(G,f,w)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],b=l.keySet,y=c._zod,E=y.def.type;for(const k of Object.keys(d)){if(b.has(k))continue;if(E==="never"){h.push(k);continue}const w=y.run({value:d[k],issues:[]},m);w instanceof Promise?v.push(w.then(_=>Tu(_,f,k))):Tu(w,f,k)}return h.length&&f.issues.push({code:"unrecognized_keys",keys:h,input:d,inst:e}),v.length?Promise.all(v).then(()=>f):f}});function ol(e,n,t,i){for(const u of e)if(u.issues.length===0)return n.value=u.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(u=>u.issues.map(r=>Re(r,i,ye())))}),n}var Zr=p("$ZodUnion",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),H(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),H(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),H(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(i=>i._zod.pattern);return new RegExp(`^(${t.map(i=>$u(i.source)).join("|")})$`)}}),e._zod.parse=(t,i)=>{let u=!1;const r=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},i);if(o instanceof Promise)r.push(o),u=!0;else{if(o.issues.length===0)return o;r.push(o)}}return u?Promise.all(r).then(a=>ol(a,t,e,i)):ol(r,t,e,i)}}),sl=p("$ZodDiscriminatedUnion",(e,n)=>{Zr.init(e,n);const t=e._zod.parse;H(e._zod,"propValues",()=>{const u={};for(const r of n.options){const a=r._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(r)}"`);for(const[o,s]of Object.entries(a)){u[o]||(u[o]=new Set);for(const c of s)u[o].add(c)}}return u});const i=Cu(()=>{const u=n.options,r=new Map;for(const a of u){const o=a._zod.propValues?.[n.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(const s of o){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,a)}}return r});e._zod.parse=(u,r)=>{const a=u.value;if(!Ut(a))return u.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),u;const o=i.value.get(a?.[n.discriminator]);return o?o._zod.run(u,r):n.unionFallback?t(u,r):(u.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),u)}}),cl=p("$ZodIntersection",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value,r=n.left._zod.run({value:u,issues:[]},i),a=n.right._zod.run({value:u,issues:[]},i);return r instanceof Promise||a instanceof Promise?Promise.all([r,a]).then(([s,c])=>ll(t,s,c)):ll(t,r,a)}});function Vr(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(Pt(e)&&Pt(n)){const t=Object.keys(n),i=Object.keys(e).filter(r=>t.indexOf(r)!==-1),u={...e,...n};for(const r of i){const a=Vr(e[r],n[r]);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};u[r]=a.data}return{valid:!0,data:u}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let i=0;i<e.length;i++){const u=e[i],r=n[i],a=Vr(u,r);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function ll(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),Gn(e))return e;const i=Vr(n.value,t.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Ou=p("$ZodTuple",(e,n)=>{U.init(e,n);const t=n.items,i=t.length-[...t].reverse().findIndex(u=>u._zod.optin!=="optional");e._zod.parse=(u,r)=>{const a=u.value;if(!Array.isArray(a))return u.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),u;u.value=[];const o=[];if(!n.rest){const c=a.length>t.length,l=a.length<i-1;if(c||l)return u.issues.push({input:a,inst:e,origin:"array",...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}}),u}let s=-1;for(const c of t){if(s++,s>=a.length&&s>=i)continue;const l=c._zod.run({value:a[s],issues:[]},r);l instanceof Promise?o.push(l.then(f=>zu(f,u,s))):zu(l,u,s)}if(n.rest){const c=a.slice(t.length);for(const l of c){s++;const f=n.rest._zod.run({value:l,issues:[]},r);f instanceof Promise?o.push(f.then(m=>zu(m,u,s))):zu(f,u,s)}}return o.length?Promise.all(o).then(()=>u):u}});function zu(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}var dl=p("$ZodRecord",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;if(!Pt(u))return t.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),t;const r=[];if(n.keyType._zod.values){const a=n.keyType._zod.values;t.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const c=n.valueType._zod.run({value:u[s],issues:[]},i);c instanceof Promise?r.push(c.then(l=>{l.issues.length&&t.issues.push(...Ie(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Ie(s,c.issues)),t.value[s]=c.value)}let o;for(const s in u)a.has(s)||(o=o??[],o.push(s));o&&o.length>0&&t.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:o})}else{t.value={};for(const a of Reflect.ownKeys(u)){if(a==="__proto__")continue;const o=n.keyType._zod.run({value:a,issues:[]},i);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(c=>Re(c,i,ye())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:u[a],issues:[]},i);s instanceof Promise?r.push(s.then(c=>{c.issues.length&&t.issues.push(...Ie(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Ie(a,s.issues)),t.value[o.value]=s.value)}}return r.length?Promise.all(r).then(()=>t):t}}),fl=p("$ZodMap",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;if(!(u instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:u,inst:e}),t;const r=[];t.value=new Map;for(const[a,o]of u){const s=n.keyType._zod.run({value:a,issues:[]},i),c=n.valueType._zod.run({value:o,issues:[]},i);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([l,f])=>{ml(l,f,t,a,u,e,i)})):ml(s,c,t,a,u,e,i)}return r.length?Promise.all(r).then(()=>t):t}});function ml(e,n,t,i,u,r,a){e.issues.length&&(xu.has(typeof i)?t.issues.push(...Ie(i,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:u,inst:r,issues:e.issues.map(o=>Re(o,a,ye()))})),n.issues.length&&(xu.has(typeof i)?t.issues.push(...Ie(i,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:u,inst:r,key:i,issues:n.issues.map(o=>Re(o,a,ye()))})),t.value.set(e.value,n.value)}var vl=p("$ZodSet",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;if(!(u instanceof Set))return t.issues.push({input:u,inst:e,expected:"set",code:"invalid_type"}),t;const r=[];t.value=new Set;for(const a of u){const o=n.valueType._zod.run({value:a,issues:[]},i);o instanceof Promise?r.push(o.then(s=>pl(s,t))):pl(o,t)}return r.length?Promise.all(r).then(()=>t):t}});function pl(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var hl=p("$ZodEnum",(e,n)=>{U.init(e,n);const t=kr(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(i=>xu.has(typeof i)).map(i=>typeof i=="string"?An(i):i.toString()).join("|")})$`),e._zod.parse=(i,u)=>{const r=i.value;return e._zod.values.has(r)||i.issues.push({code:"invalid_value",values:t,input:r,inst:e}),i}}),gl=p("$ZodLiteral",(e,n)=>{U.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?An(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,i)=>{const u=t.value;return e._zod.values.has(u)||t.issues.push({code:"invalid_value",values:n.values,input:u,inst:e}),t}}),El=p("$ZodFile",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;return u instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:u,inst:e}),t}}),Mr=p("$ZodTransform",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=n.transform(t.value,t);if(i.async)return(u instanceof Promise?u:Promise.resolve(u)).then(a=>(t.value=a,t));if(u instanceof Promise)throw new Mn;return t.value=u,t}}),yl=p("$ZodOptional",(e,n)=>{U.init(e,n),e._zod.optin="optional",e._zod.optout="optional",H(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${$u(t.source)})?$`):void 0}),e._zod.parse=(t,i)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,i):t.value===void 0?t:n.innerType._zod.run(t,i)}),bl=p("$ZodNullable",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${$u(t.source)}|null)$`):void 0}),H(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,i)=>t.value===null?t:n.innerType._zod.run(t,i)}),kl=p("$ZodDefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,i)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>Dl(r,n)):Dl(u,n)}});function Dl(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var Bl=p("$ZodPrefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,i)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,i))}),_l=p("$ZodNonOptional",(e,n)=>{U.init(e,n),H(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(i=>i!==void 0)):void 0}),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>Al(r,e)):Al(u,e)}});function Al(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 Sl=p("$ZodSuccess",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>(t.value=r.issues.length===0,t)):(t.value=u.issues.length===0,t)}}),wl=p("$ZodCatch",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>(t.value=r.value,r.issues.length&&(t.value=n.catchValue({...t,error:{issues:r.issues.map(a=>Re(a,i,ye()))},input:t.value}),t.issues=[]),t)):(t.value=u.value,u.issues.length&&(t.value=n.catchValue({...t,error:{issues:u.issues.map(r=>Re(r,i,ye()))},input:t.value}),t.issues=[]),t)}}),Cl=p("$ZodNaN",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),qr=p("$ZodPipe",(e,n)=>{U.init(e,n),H(e._zod,"values",()=>n.in._zod.values),H(e._zod,"optin",()=>n.in._zod.optin),H(e._zod,"optout",()=>n.out._zod.optout),H(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,i)=>{const u=n.in._zod.run(t,i);return u instanceof Promise?u.then(r=>$l(r,n,i)):$l(u,n,i)}});function $l(e,n,t){return Gn(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var xl=p("$ZodReadonly",(e,n)=>{U.init(e,n),H(e._zod,"propValues",()=>n.innerType._zod.propValues),H(e._zod,"values",()=>n.innerType._zod.values),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(Il):Il(u)}});function Il(e){return e.value=Object.freeze(e.value),e}var Fl=p("$ZodTemplateLiteral",(e,n)=>{U.init(e,n);const t=[];for(const i of n.parts)if(i instanceof U){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const u=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!u)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const r=u.startsWith("^")?1:0,a=u.endsWith("$")?u.length-1:u.length;t.push(u.slice(r,a))}else if(i===null||m0.has(typeof i))t.push(An(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(i,u)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Nl=p("$ZodPromise",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>Promise.resolve(t.value).then(u=>n.innerType._zod.run({value:u,issues:[]},i))}),Tl=p("$ZodLazy",(e,n)=>{U.init(e,n),H(e._zod,"innerType",()=>n.getter()),H(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),H(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),H(e._zod,"optin",()=>e._zod.innerType._zod.optin),H(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,i)=>e._zod.innerType._zod.run(t,i)}),Ol=p("$ZodCustom",(e,n)=>{ue.init(e,n),U.init(e,n),e._zod.parse=(t,i)=>t,e._zod.check=t=>{const i=t.value,u=n.fn(i);if(u instanceof Promise)return u.then(r=>zl(r,t,i,e));zl(u,t,i,e)}});function zl(e,n,t,i){if(!e){const u={code:"custom",input:t,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(u.params=i._zod.def.params),n.issues.push(g0(u))}}var Gr={};yn(Gr,{ar:()=>kh,az:()=>Bh,be:()=>Ah,ca:()=>wh,cs:()=>$h,de:()=>Ih,en:()=>Pl,eo:()=>zh,es:()=>Ph,fa:()=>Rh,fi:()=>Zh,fr:()=>Mh,frCA:()=>Gh,he:()=>Hh,hu:()=>Qh,id:()=>Yh,it:()=>e6,ja:()=>t6,kh:()=>i6,ko:()=>a6,mk:()=>s6,ms:()=>l6,nl:()=>f6,no:()=>v6,ota:()=>h6,pl:()=>b6,ps:()=>E6,pt:()=>D6,ru:()=>_6,sl:()=>S6,sv:()=>C6,ta:()=>x6,th:()=>F6,tr:()=>O6,ua:()=>U6,ur:()=>j6,vi:()=>L6,zhCN:()=>V6,zhTW:()=>q6});var bh=()=>{const e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return u=>{switch(u.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${u.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${L(u.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${u.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${u.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${u.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${u.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${u.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${u.prefix}"`:r.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${r.suffix}"`:r.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${r.includes}"`:r.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${r.pattern}`:`${i[r.format]??u.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${u.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${u.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${u.keys.length>1?"\u0629":""}: ${S(u.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${u.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${u.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function kh(){return{localeError:bh()}}var Dh=()=>{const e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${u.expected}, daxil olan ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${L(u.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${u.origin??"d\u0259y\u0259r"} ${r}${u.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${u.origin??"d\u0259y\u0259r"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${u.origin} ${r}${u.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[r.format]??u.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${u.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${u.keys.length>1?"lar":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${u.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Bh(){return{localeError:Dh()}}function Ul(e,n,t,i){const u=Math.abs(e),r=u%10,a=u%100;return a>=11&&a<=19?i:r===1?n:r>=2&&r<=4?t:i}var _h=()=>{const e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0456\u045E";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return u=>{switch(u.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${u.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${L(u.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);if(a){const o=Number(u.maximum),s=Ul(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${u.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);if(a){const o=Number(u.minimum),s=Ul(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${u.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[r.format]??u.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${u.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${u.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${u.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Ah(){return{localeError:_h()}}var Sh=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{switch(u.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${u.expected}, s'ha rebut ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Valor inv\xE0lid: s'esperava ${L(u.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${S(u.values," o ")}`;case"too_big":{const r=u.inclusive?"com a m\xE0xim":"menys de",a=n(u.origin);return a?`Massa gran: s'esperava que ${u.origin??"el valor"} contingu\xE9s ${r} ${u.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${u.origin??"el valor"} fos ${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(u.origin);return a?`Massa petit: s'esperava que ${u.origin} contingu\xE9s ${r} ${u.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${u.origin} fos ${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${i[r.format]??u.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${u.divisor}`;case"unrecognized_keys":return`Clau${u.keys.length>1?"s":""} no reconeguda${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${u.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${u.origin}`;default:return"Entrada inv\xE0lida"}}};function wh(){return{localeError:Sh()}}var Ch=()=>{const e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(u))return"pole";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return u=>{switch(u.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${u.expected}, obdr\u017Eeno ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${L(u.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${u.origin??"hodnota"} mus\xED m\xEDt ${r}${u.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${u.origin??"hodnota"} mus\xED b\xFDt ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${u.origin??"hodnota"} mus\xED m\xEDt ${r}${u.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${u.origin??"hodnota"} mus\xED b\xFDt ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${i[r.format]??u.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${u.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${S(u.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${u.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${u.origin}`;default:return"Neplatn\xFD vstup"}}};function $h(){return{localeError:Ch()}}var xh=()=>{const 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(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"Zahl";case"object":{if(Array.isArray(u))return"Array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return u=>{switch(u.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${u.expected}, erhalten ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ung\xFCltige Eingabe: erwartet ${L(u.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Zu gro\xDF: erwartet, dass ${u.origin??"Wert"} ${r}${u.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${u.origin??"Wert"} ${r}${u.maximum.toString()} ist`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Zu klein: erwartet, dass ${u.origin} ${r}${u.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${u.origin} ${r}${u.minimum.toString()} ist`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${i[r.format]??u.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${u.divisor} sein`;case"unrecognized_keys":return`${u.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${u.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${u.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Ih(){return{localeError:xh()}}var Fh=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Nh=()=>{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"}};function n(i){return e[i]??null}const t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${Fh(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${L(i.values[0])}`:`Invalid option: expected one of ${S(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",r=n(i.origin);return r?`Too big: expected ${i.origin??"value"} to have ${u}${i.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",r=n(i.origin);return r?`Too small: expected ${i.origin} to have ${u}${i.minimum.toString()} ${r.unit}`:`Too small: expected ${i.origin} to be ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Invalid string: must start with "${u.prefix}"`:u.format==="ends_with"?`Invalid string: must end with "${u.suffix}"`:u.format==="includes"?`Invalid string: must include "${u.includes}"`:u.format==="regex"?`Invalid string: must match pattern ${u.pattern}`:`Invalid ${t[u.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":""}: ${S(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 Pl(){return{localeError:Nh()}}var Th=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Oh=()=>{const 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}const t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${i.expected}, ricevi\u011Dis ${Th(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${L(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${S(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",r=n(i.origin);return r?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${u}${i.maximum.toString()} ${r.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",r=n(i.origin);return r?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${u}${i.minimum.toString()} ${r.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${u.prefix}"`:u.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${u.suffix}"`:u.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${u.includes}"`:u.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${u.pattern}`:`Nevalida ${t[u.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${S(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function zh(){return{localeError:Oh()}}var Uh=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(u))return"arreglo";if(u===null)return"nulo";if(Object.getPrototypeOf(u)!==Object.prototype)return u.constructor.name}}return r},i={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{switch(u.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${u.expected}, recibido ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entrada inv\xE1lida: se esperaba ${L(u.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Demasiado grande: se esperaba que ${u.origin??"valor"} tuviera ${r}${u.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u.origin??"valor"} fuera ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Demasiado peque\xF1o: se esperaba que ${u.origin} tuviera ${r}${u.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${u.origin} fuera ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${i[r.format]??u.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${u.divisor}`;case"unrecognized_keys":return`Llave${u.keys.length>1?"s":""} desconocida${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${u.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${u.origin}`;default:return"Entrada inv\xE1lida"}}};function Ph(){return{localeError:Uh()}}var jh=()=>{const e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(u))return"\u0622\u0631\u0627\u06CC\u0647";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return u=>{switch(u.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${u.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${t(u.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return u.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${L(u.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${S(u.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${u.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${u.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[r.format]??u.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${u.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${u.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${S(u.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${u.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${u.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Rh(){return{localeError:jh()}}var Lh=()=>{const e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return u=>{switch(u.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${u.expected}, oli ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${L(u.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${r}${u.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${r}${u.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${i[r.format]??u.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${u.divisor} monikerta`;case"unrecognized_keys":return`${u.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${S(u.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Zh(){return{localeError:Lh()}}var Vh=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"nombre";case"object":{if(Array.isArray(u))return"tableau";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return u=>{switch(u.code){case"invalid_type":return`Entr\xE9e invalide : ${u.expected} attendu, ${t(u.input)} re\xE7u`;case"invalid_value":return u.values.length===1?`Entr\xE9e invalide : ${L(u.values[0])} attendu`:`Option invalide : une valeur parmi ${S(u.values,"|")} attendue`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Trop grand : ${u.origin??"valeur"} doit ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${u.origin??"valeur"} doit \xEAtre ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Trop petit : ${u.origin} doit ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`Trop petit : ${u.origin} doit \xEAtre ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${i[r.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${u.divisor}`;case"unrecognized_keys":return`Cl\xE9${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${S(u.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${u.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entr\xE9e invalide"}}};function Mh(){return{localeError:Vh()}}var qh=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return u=>{switch(u.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${u.expected}, re\xE7u ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entr\xE9e invalide : attendu ${L(u.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"\u2264":"<",a=n(u.origin);return a?`Trop grand : attendu que ${u.origin??"la valeur"} ait ${r}${u.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${u.origin??"la valeur"} soit ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?"\u2265":">",a=n(u.origin);return a?`Trop petit : attendu que ${u.origin} ait ${r}${u.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${u.origin} soit ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${i[r.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${u.divisor}`;case"unrecognized_keys":return`Cl\xE9${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${S(u.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${u.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entr\xE9e invalide"}}};function Gh(){return{localeError:qh()}}var Jh=()=>{const e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return u=>{switch(u.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${L(u.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${u.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${u.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${u.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${u.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${r.prefix}"`:r.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${r.suffix}"`:r.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${r.includes}"`:r.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${r.pattern}`:`${i[r.format]??u.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${u.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${u.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Hh(){return{localeError:Jh()}}var Kh=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(u))return"t\xF6mb";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return u=>{switch(u.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${u.expected}, a kapott \xE9rt\xE9k ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${L(u.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`T\xFAl nagy: ${u.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${u.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${u.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${u.origin} m\xE9rete t\xFAl kicsi ${r}${u.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${u.origin} t\xFAl kicsi ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[r.format]??u.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${u.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${u.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${u.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Qh(){return{localeError:Kh()}}var Wh=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Input tidak valid: diharapkan ${u.expected}, diterima ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input tidak valid: diharapkan ${L(u.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Terlalu besar: diharapkan ${u.origin??"value"} memiliki ${r}${u.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${u.origin??"value"} menjadi ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Terlalu kecil: diharapkan ${u.origin} memiliki ${r}${u.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${u.origin} menjadi ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${i[r.format]??u.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${u.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${u.origin}`;default:return"Input tidak valid"}}};function Yh(){return{localeError:Wh()}}var Xh=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"numero";case"object":{if(Array.isArray(u))return"vettore";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Input non valido: atteso ${u.expected}, ricevuto ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input non valido: atteso ${L(u.values[0])}`:`Opzione non valida: atteso uno tra ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Troppo grande: ${u.origin??"valore"} deve avere ${r}${u.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${u.origin??"valore"} deve essere ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Troppo piccolo: ${u.origin} deve avere ${r}${u.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${u.origin} deve essere ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Invalid ${i[r.format]??u.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${u.divisor}`;case"unrecognized_keys":return`Chiav${u.keys.length>1?"i":"e"} non riconosciut${u.keys.length>1?"e":"a"}: ${S(u.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${u.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${u.origin}`;default:return"Input non valido"}}};function e6(){return{localeError:Xh()}}var n6=()=>{const e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(u))return"\u914D\u5217";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return u=>{switch(u.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${u.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${t(u.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return u.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${L(u.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${S(u.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const r=u.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(u.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${u.origin??"\u5024"}\u306F${u.maximum.toString()}${a.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${u.origin??"\u5024"}\u306F${u.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const r=u.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(u.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${u.origin}\u306F${u.minimum.toString()}${a.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${u.origin}\u306F${u.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[r.format]??u.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${u.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${u.keys.length>1?"\u7FA4":""}: ${S(u.keys,"\u3001")}`;case"invalid_key":return`${u.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${u.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function t6(){return{localeError:n6()}}var u6=()=>{const e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(u))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(u===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return u=>{switch(u.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${L(u.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${u.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin} ${r} ${u.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin} ${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${r.prefix}"`:r.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${r.suffix}"`:r.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${r.includes}"`:r.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${u.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${S(u.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${u.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${u.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function i6(){return{localeError:u6()}}var r6=()=>{const e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return u=>{switch(u.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${u.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${t(u.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return u.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${L(u.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${S(u.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const r=u.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(u.origin),s=o?.unit??"\uC694\uC18C";return o?`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${u.maximum.toString()}${s} ${r}${a}`:`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${u.maximum.toString()} ${r}${a}`}case"too_small":{const r=u.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(u.origin),s=o?.unit??"\uC694\uC18C";return o?`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${u.minimum.toString()}${s} ${r}${a}`:`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${u.minimum.toString()} ${r}${a}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[r.format]??u.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${u.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${S(u.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${u.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${u.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function a6(){return{localeError:r6()}}var o6=()=>{const e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(u))return"\u043D\u0438\u0437\u0430";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return u=>{switch(u.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Invalid input: expected ${L(u.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${u.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${u.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${r.pattern}`:`Invalid ${i[r.format]??u.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${u.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${u.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function s6(){return{localeError:o6()}}var c6=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"nombor";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Input tidak sah: dijangka ${u.expected}, diterima ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input tidak sah: dijangka ${L(u.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Terlalu besar: dijangka ${u.origin??"nilai"} ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${u.origin??"nilai"} adalah ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Terlalu kecil: dijangka ${u.origin} ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${u.origin} adalah ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${i[r.format]??u.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${S(u.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${u.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${u.origin}`;default:return"Input tidak sah"}}};function l6(){return{localeError:c6()}}var d6=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"getal";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return u=>{switch(u.code){case"invalid_type":return`Ongeldige invoer: verwacht ${u.expected}, ontving ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ongeldige invoer: verwacht ${L(u.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Te lang: verwacht dat ${u.origin??"waarde"} ${r}${u.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${u.origin??"waarde"} ${r}${u.maximum.toString()} is`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Te kort: verwacht dat ${u.origin} ${r}${u.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${u.origin} ${r}${u.minimum.toString()} is`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${i[r.format]??u.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${u.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${u.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${u.origin}`;default:return"Ongeldige invoer"}}};function f6(){return{localeError:d6()}}var m6=()=>{const e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"tall";case"object":{if(Array.isArray(u))return"liste";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Ugyldig input: forventet ${u.expected}, fikk ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ugyldig verdi: forventet ${L(u.values[0])}`:`Ugyldig valg: forventet en av ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`For stor(t): forventet ${u.origin??"value"} til \xE5 ha ${r}${u.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${u.origin??"value"} til \xE5 ha ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`For lite(n): forventet ${u.origin} til \xE5 ha ${r}${u.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${u.origin} til \xE5 ha ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${i[r.format]??u.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${u.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${u.origin}`;default:return"Ugyldig input"}}};function v6(){return{localeError:m6()}}var p6=()=>{const e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"numara";case"object":{if(Array.isArray(u))return"saf";if(u===null)return"gayb";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return u=>{switch(u.code){case"invalid_type":return`F\xE2sit giren: umulan ${u.expected}, al\u0131nan ${t(u.input)}`;case"invalid_value":return u.values.length===1?`F\xE2sit giren: umulan ${L(u.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Fazla b\xFCy\xFCk: ${u.origin??"value"}, ${r}${u.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${u.origin??"value"}, ${r}${u.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Fazla k\xFC\xE7\xFCk: ${u.origin}, ${r}${u.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${u.origin}, ${r}${u.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const r=u;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[r.format]??u.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${u.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${u.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function h6(){return{localeError:p6()}}var g6=()=>{const e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(u))return"\u0627\u0631\u06D0";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return u=>{switch(u.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${u.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${t(u.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return u.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${L(u.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${S(u.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${u.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${u.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} \u0648\u064A`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} \u0648\u064A`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[r.format]??u.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${u.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${u.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${u.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${u.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function E6(){return{localeError:g6()}}var y6=()=>{const e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"liczba";case"object":{if(Array.isArray(u))return"tablica";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return u=>{switch(u.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${u.expected}, otrzymano ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${L(u.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${u.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${u.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[r.format]??u.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${u.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${u.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${u.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function b6(){return{localeError:y6()}}var k6=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(u))return"array";if(u===null)return"nulo";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{switch(u.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${u.expected}, recebido ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entrada inv\xE1lida: esperado ${L(u.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Muito grande: esperado que ${u.origin??"valor"} tivesse ${r}${u.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${u.origin??"valor"} fosse ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Muito pequeno: esperado que ${u.origin} tivesse ${r}${u.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${u.origin} fosse ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${i[r.format]??u.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${u.divisor}`;case"unrecognized_keys":return`Chave${u.keys.length>1?"s":""} desconhecida${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${u.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${u.origin}`;default:return"Campo inv\xE1lido"}}};function D6(){return{localeError:k6()}}function jl(e,n,t,i){const u=Math.abs(e),r=u%10,a=u%100;return a>=11&&a<=19?i:r===1?n:r>=2&&r<=4?t:i}var B6=()=>{const e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return u=>{switch(u.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${u.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${L(u.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);if(a){const o=Number(u.maximum),s=jl(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${u.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);if(a){const o=Number(u.minimum),s=jl(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${u.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${u.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${u.keys.length>1?"\u0438":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${u.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${u.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function _6(){return{localeError:B6()}}var A6=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(u))return"tabela";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return u=>{switch(u.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${u.expected}, prejeto ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${L(u.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${u.origin??"vrednost"} imelo ${r}${u.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${u.origin??"vrednost"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${u.origin} imelo ${r}${u.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${i[r.format]??u.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${u.divisor}`;case"unrecognized_keys":return`Neprepoznan${u.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${S(u.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${u.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${u.origin}`;default:return"Neveljaven vnos"}}};function S6(){return{localeError:A6()}}var w6=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"antal";case"object":{if(Array.isArray(u))return"lista";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return u=>{switch(u.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${u.expected}, fick ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${L(u.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${r}${u.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${u.origin??"v\xE4rdet"} att ha ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${r}${u.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${i[r.format]??u.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${u.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${u.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function C6(){return{localeError:w6()}}var $6=()=>{const e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(u))return"\u0B85\u0BA3\u0BBF";if(u===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${L(u.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(u.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${u.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${u.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin} ${r}${u.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin} ${r}${u.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${u.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${u.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${u.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function x6(){return{localeError:$6()}}var I6=()=>{const e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(u))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(u===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return u=>{switch(u.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${u.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${L(u.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(u.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(u.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${r.prefix}"`:r.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${r.suffix}"`:r.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[r.format]??u.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${u.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${S(u.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${u.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${u.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function F6(){return{localeError:I6()}}var N6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},T6=()=>{const e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function n(i){return e[i]??null}const t={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${N6(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${L(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${S(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",r=n(i.origin);return r?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${u}${i.maximum.toString()} ${r.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",r=n(i.origin);return r?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${u}${i.minimum.toString()} ${r.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ge\xE7ersiz metin: "${u.prefix}" ile ba\u015Flamal\u0131`:u.format==="ends_with"?`Ge\xE7ersiz metin: "${u.suffix}" ile bitmeli`:u.format==="includes"?`Ge\xE7ersiz metin: "${u.includes}" i\xE7ermeli`:u.format==="regex"?`Ge\xE7ersiz metin: ${u.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${t[u.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${S(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function O6(){return{localeError:T6()}}var z6=()=>{const e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0438\u0432";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return u=>{switch(u.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${u.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${L(u.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin} ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin} \u0431\u0443\u0434\u0435 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${u.keys.length>1?"\u0456":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${u.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${u.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function U6(){return{localeError:z6()}}var P6=()=>{const e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(u))return"\u0622\u0631\u06D2";if(u===null)return"\u0646\u0644";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return u=>{switch(u.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${u.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${t(u.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return u.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${L(u.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${S(u.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${u.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${u.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${u.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${u.origin} \u06A9\u06D2 ${r}${u.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${u.origin} \u06A9\u0627 ${r}${u.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${u.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${u.keys.length>1?"\u0632":""}: ${S(u.keys,"\u060C ")}`;case"invalid_key":return`${u.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${u.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function j6(){return{localeError:P6()}}var R6=()=>{const e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(u))return"m\u1EA3ng";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return u=>{switch(u.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${u.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${L(u.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${u.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${u.origin??"gi\xE1 tr\u1ECB"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${u.origin} ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${i[r.format]??u.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${u.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${S(u.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${u.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${u.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function L6(){return{localeError:R6()}}var Z6=()=>{const e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(u))return"\u6570\u7EC4";if(u===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return u=>{switch(u.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${u.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${L(u.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${u.origin??"\u503C"} ${r}${u.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${u.origin??"\u503C"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${u.origin} ${r}${u.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${i[r.format]??u.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${u.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${u.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function V6(){return{localeError:Z6()}}var M6=()=>{const e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return u=>{switch(u.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${u.expected}\uFF0C\u4F46\u6536\u5230 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${L(u.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${u.origin??"\u503C"} \u61C9\u70BA ${r}${u.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${u.origin??"\u503C"} \u61C9\u70BA ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${u.origin} \u61C9\u70BA ${r}${u.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${u.origin} \u61C9\u70BA ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${u.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${u.keys.length>1?"\u5011":""}\uFF1A${S(u.keys,"\u3001")}`;case"invalid_key":return`${u.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${u.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function q6(){return{localeError:M6()}}var Rl=Symbol("ZodOutput"),Ll=Symbol("ZodInput"),Jr=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...n){const t=n[0];if(this._map.set(e,t),t&&typeof t=="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error(`ID ${t.id} already exists in the registry`);this._idmap.set(t.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const t={...this.get(n)??{}};return delete t.id,{...t,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Hr(){return new Jr}var Sn=Hr();function Zl(e,n){return new e({type:"string",...B(n)})}function Vl(e,n){return new e({type:"string",coerce:!0,...B(n)})}function Kr(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...B(n)})}function Uu(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...B(n)})}function Qr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...B(n)})}function Wr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(n)})}function Yr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(n)})}function Xr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(n)})}function ea(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...B(n)})}function na(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...B(n)})}function ta(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(n)})}function ua(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...B(n)})}function ia(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(n)})}function ra(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...B(n)})}function aa(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...B(n)})}function oa(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(n)})}function sa(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(n)})}function ca(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(n)})}function la(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(n)})}function da(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(n)})}function fa(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...B(n)})}function ma(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...B(n)})}function va(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...B(n)})}function pa(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...B(n)})}var Ml={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ql(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(n)})}function Gl(e,n){return new e({type:"string",format:"date",check:"string_format",...B(n)})}function Jl(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...B(n)})}function Hl(e,n){return new e({type:"string",format:"duration",check:"string_format",...B(n)})}function Kl(e,n){return new e({type:"number",checks:[],...B(n)})}function Ql(e,n){return new e({type:"number",coerce:!0,checks:[],...B(n)})}function Wl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...B(n)})}function Yl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...B(n)})}function Xl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...B(n)})}function ed(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...B(n)})}function nd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...B(n)})}function td(e,n){return new e({type:"boolean",...B(n)})}function ud(e,n){return new e({type:"boolean",coerce:!0,...B(n)})}function id(e,n){return new e({type:"bigint",...B(n)})}function rd(e,n){return new e({type:"bigint",coerce:!0,...B(n)})}function ad(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...B(n)})}function od(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...B(n)})}function sd(e,n){return new e({type:"symbol",...B(n)})}function cd(e,n){return new e({type:"undefined",...B(n)})}function ld(e,n){return new e({type:"null",...B(n)})}function dd(e){return new e({type:"any"})}function Pu(e){return new e({type:"unknown"})}function fd(e,n){return new e({type:"never",...B(n)})}function md(e,n){return new e({type:"void",...B(n)})}function vd(e,n){return new e({type:"date",...B(n)})}function pd(e,n){return new e({type:"date",coerce:!0,...B(n)})}function hd(e,n){return new e({type:"nan",...B(n)})}function wn(e,n){return new Or({check:"less_than",...B(n),value:e,inclusive:!1})}function Le(e,n){return new Or({check:"less_than",...B(n),value:e,inclusive:!0})}function Cn(e,n){return new zr({check:"greater_than",...B(n),value:e,inclusive:!1})}function Se(e,n){return new zr({check:"greater_than",...B(n),value:e,inclusive:!0})}function gd(e){return Cn(0,e)}function Ed(e){return wn(0,e)}function yd(e){return Le(0,e)}function bd(e){return Se(0,e)}function Vt(e,n){return new tc({check:"multiple_of",...B(n),value:e})}function ju(e,n){return new rc({check:"max_size",...B(n),maximum:e})}function Mt(e,n){return new ac({check:"min_size",...B(n),minimum:e})}function ha(e,n){return new oc({check:"size_equals",...B(n),size:e})}function Ru(e,n){return new sc({check:"max_length",...B(n),maximum:e})}function Hn(e,n){return new cc({check:"min_length",...B(n),minimum:e})}function Lu(e,n){return new lc({check:"length_equals",...B(n),length:e})}function ga(e,n){return new dc({check:"string_format",format:"regex",...B(n),pattern:e})}function Ea(e){return new fc({check:"string_format",format:"lowercase",...B(e)})}function ya(e){return new mc({check:"string_format",format:"uppercase",...B(e)})}function ba(e,n){return new vc({check:"string_format",format:"includes",...B(n),includes:e})}function ka(e,n){return new pc({check:"string_format",format:"starts_with",...B(n),prefix:e})}function Da(e,n){return new hc({check:"string_format",format:"ends_with",...B(n),suffix:e})}function kd(e,n,t){return new Ec({check:"property",property:e,schema:n,...B(t)})}function Ba(e,n){return new yc({check:"mime_type",mime:e,...B(n)})}function $n(e){return new bc({check:"overwrite",tx:e})}function _a(e){return $n(n=>n.normalize(e))}function Aa(){return $n(e=>e.trim())}function Sa(){return $n(e=>e.toLowerCase())}function wa(){return $n(e=>e.toUpperCase())}function Ca(e,n,t){return new e({type:"array",element:n,...B(t)})}function G6(e,n,t){return new e({type:"union",options:n,...B(t)})}function J6(e,n,t,i){return new e({type:"union",options:t,discriminator:n,...B(i)})}function H6(e,n,t){return new e({type:"intersection",left:n,right:t})}function Dd(e,n,t,i){const u=t instanceof U,r=u?i:t,a=u?t:null;return new e({type:"tuple",items:n,rest:a,...B(r)})}function K6(e,n,t,i){return new e({type:"record",keyType:n,valueType:t,...B(i)})}function Q6(e,n,t,i){return new e({type:"map",keyType:n,valueType:t,...B(i)})}function W6(e,n,t){return new e({type:"set",valueType:n,...B(t)})}function Y6(e,n,t){const i=Array.isArray(n)?Object.fromEntries(n.map(u=>[u,u])):n;return new e({type:"enum",entries:i,...B(t)})}function X6(e,n,t){return new e({type:"enum",entries:n,...B(t)})}function eg(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...B(t)})}function Bd(e,n){return new e({type:"file",...B(n)})}function ng(e,n){return new e({type:"transform",transform:n})}function tg(e,n){return new e({type:"optional",innerType:n})}function ug(e,n){return new e({type:"nullable",innerType:n})}function ig(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function rg(e,n,t){return new e({type:"nonoptional",innerType:n,...B(t)})}function ag(e,n){return new e({type:"success",innerType:n})}function og(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function sg(e,n,t){return new e({type:"pipe",in:n,out:t})}function cg(e,n){return new e({type:"readonly",innerType:n})}function lg(e,n,t){return new e({type:"template_literal",parts:n,...B(t)})}function dg(e,n){return new e({type:"lazy",getter:n})}function fg(e,n){return new e({type:"promise",innerType:n})}function _d(e,n,t){const i=B(t);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:n,...i})}function Ad(e,n,t){return new e({type:"custom",check:"custom",fn:n,...B(t)})}function Sd(e,n){const t=B(n);let i=t.truthy??["true","1","yes","on","y","enabled"],u=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(i=i.map(v=>typeof v=="string"?v.toLowerCase():v),u=u.map(v=>typeof v=="string"?v.toLowerCase():v));const r=new Set(i),a=new Set(u),o=e.Pipe??qr,s=e.Boolean??jr,c=e.String??Zt,l=e.Transform??Mr,f=new l({type:"transform",transform:(v,h)=>{let b=v;return t.case!=="sensitive"&&(b=b.toLowerCase()),r.has(b)?!0:a.has(b)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...a],input:h.value,inst:f}),{})},error:t.error}),m=new o({type:"pipe",in:new c({type:"string",error:t.error}),out:f,error:t.error});return new o({type:"pipe",in:m,out:new s({type:"boolean",error:t.error}),error:t.error})}function wd(e,n,t,i={}){const u=B(i),r={...B(i),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...u};return t instanceof RegExp&&(r.pattern=t),new e(r)}var Cd=class{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=(...t)=>{const i=this._def.input?Cr(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(i))throw new Error("Invalid arguments schema: not an array or tuple schema.");const u=e(...i);return this._def.output?Cr(this._def.output,u,void 0,{callee:n}):u};return n}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=async(...t)=>{const i=this._def.input?await xr(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(i))throw new Error("Invalid arguments schema: not an array or tuple schema.");const u=await e(...i);return this._def.output?xr(this._def.output,u,void 0,{callee:n}):u};return n}input(...e){const n=this.constructor;return Array.isArray(e[0])?new n({type:"function",input:new Ou({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new n({type:"function",input:e[0],output:this._def.output})}output(e){const n=this.constructor;return new n({type:"function",input:this._def.input,output:e})}};function $d(e){return new Cd({type:"function",input:Array.isArray(e?.input)?Dd(Ou,e?.input):e?.input??Ca(Lr,Pu(Nu)),output:e?.output??Pu(Nu)})}var $a=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Sn,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,n={path:[],schemaPath:[]}){var t;const i=e._zod.def,u={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},r=this.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(e,a);const o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{const l={...n,schemaPath:[...n.schemaPath,e],path:n.path},f=e._zod.parent;if(f)a.ref=f,this.process(f,l),this.seen.get(f).isParent=!0;else{const m=a.schema;switch(i.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:b,patterns:y,contentEncoding:E}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),b&&(d.format=u[b]??b,d.format===""&&delete d.format),E&&(d.contentEncoding=E),y&&y.size>0){const k=[...y];k.length===1?d.pattern=k[0].source:k.length>1&&(a.schema.allOf=[...k.map(w=>({...this.target==="draft-7"?{type:"string"}:{},pattern:w.source}))])}break}case"number":{const d=m,{minimum:v,maximum:h,format:b,multipleOf:y,exclusiveMaximum:E,exclusiveMinimum:k}=e._zod.bag;typeof b=="string"&&b.includes("int")?d.type="integer":d.type="number",typeof k=="number"&&(d.exclusiveMinimum=k),typeof v=="number"&&(d.minimum=v,typeof k=="number"&&(k>=v?delete d.minimum:delete d.exclusiveMinimum)),typeof E=="number"&&(d.exclusiveMaximum=E),typeof h=="number"&&(d.maximum=h,typeof E=="number"&&(E<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof y=="number"&&(d.multipleOf=y);break}case"boolean":{const d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=m,{minimum:v,maximum:h}=e._zod.bag;typeof v=="number"&&(d.minItems=v),typeof h=="number"&&(d.maxItems=h),d.type="array",d.items=this.process(i.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=i.shape;for(const y in v)d.properties[y]=this.process(v[y],{...l,path:[...l.path,"properties",y]});const h=new Set(Object.keys(v)),b=new Set([...h].filter(y=>{const E=i.shape[y]._zod;return this.io==="input"?E.optin===void 0:E.optout===void 0}));b.size>0&&(d.required=Array.from(b)),i.catchall?._zod.def.type==="never"?d.additionalProperties=!1:i.catchall?i.catchall&&(d.additionalProperties=this.process(i.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=i.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(i.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(i.right,{...l,path:[...l.path,"allOf",1]}),b=E=>"allOf"in E&&Object.keys(E).length===1,y=[...b(v)?v.allOf:[v],...b(h)?h.allOf:[h]];d.allOf=y;break}case"tuple":{const d=m;d.type="array";const v=i.items.map((y,E)=>this.process(y,{...l,path:[...l.path,"prefixItems",E]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,i.rest){const y=this.process(i.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=y:d.additionalItems=y}i.rest&&(d.items=this.process(i.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:b}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof b=="number"&&(d.maxItems=b);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(i.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(i.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=m,v=kr(i.entries);v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),d.enum=v;break}case"literal":{const d=m,v=[];for(const h of i.values)if(h===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");v.push(Number(h))}else v.push(h);if(v.length!==0)if(v.length===1){const h=v[0];d.type=h===null?"null":typeof h,d.const=h}else v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),v.every(h=>typeof h=="boolean")&&(d.type="string"),v.every(h=>h===null)&&(d.type="null"),d.enum=v;break}case"file":{const d=m,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:b,mime:y}=e._zod.bag;h!==void 0&&(v.minLength=h),b!==void 0&&(v.maxLength=b),y?y.length===1?(v.contentMediaType=y[0],Object.assign(d,v)):d.anyOf=y.map(E=>({...v,contentMediaType:E})):Object.assign(d,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(i.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(i.innerType,l),a.ref=i.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(i.innerType,l),a.ref=i.innerType,m.default=JSON.parse(JSON.stringify(i.defaultValue));break}case"prefault":{this.process(i.innerType,l),a.ref=i.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(i.defaultValue)));break}case"catch":{this.process(i.innerType,l),a.ref=i.innerType;let d;try{d=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=m,v=e._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=v.source;break}case"pipe":{const d=this.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(i.innerType,l),a.ref=i.innerType,m.readOnly=!0;break}case"promise":{this.process(i.innerType,l),a.ref=i.innerType;break}case"optional":{this.process(i.innerType,l),a.ref=i.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),a.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const s=this.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),this.io==="input"&&re(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((t=a.schema).default??(t.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,n){const t={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},i=this.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=c=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const v=t.external.registry.get(c[0])?.id,h=t.external.uri??(y=>y);if(v)return{ref:h(v)};const b=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=b,{defId:b,ref:`${h("__shared")}#/${l}/${b}`}}if(c[1]===i)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},r=c=>{if(c[1].schema.$ref)return;const l=c[1],{ref:f,defId:m}=u(c);l.def={...l.schema},m&&(l.defId=m);const d=l.schema;for(const v in d)delete d[v];d.$ref=f};if(t.cycles==="throw")for(const c of this.seen.entries()){const l=c[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
67
|
+
path: iss.path ? [${Mn(E)}, ...iss.path] : [${Mn(E)}]
|
|
68
|
+
})));`),m.write(`newResult[${Mn(E)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const y=m.compile();return(E,k)=>y(f,E,k)};let u;const r=Ut,a=!wu.jitless,s=a&&h0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!r(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;const v=[];if(a&&s&&m?.async===!1&&m.jitless!==!0)u||(u=i(n.shape)),f=u(f,m);else{f.value={};const k=l.shape;for(const w of l.keys){const _=k[w],G=_._zod.run({value:d[w],issues:[]},m),V=_._zod.optin==="optional"&&_._zod.optout==="optional";G instanceof Promise?v.push(G.then(F=>V?cl(F,f,w,d):Tu(F,f,w))):V?cl(G,f,w,d):Tu(G,f,w)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],b=l.keySet,y=c._zod,E=y.def.type;for(const k of Object.keys(d)){if(b.has(k))continue;if(E==="never"){h.push(k);continue}const w=y.run({value:d[k],issues:[]},m);w instanceof Promise?v.push(w.then(_=>Tu(_,f,k))):Tu(w,f,k)}return h.length&&f.issues.push({code:"unrecognized_keys",keys:h,input:d,inst:e}),v.length?Promise.all(v).then(()=>f):f}});function dl(e,n,t,i){for(const u of e)if(u.issues.length===0)return n.value=u.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(u=>u.issues.map(r=>Re(r,i,ye())))}),n}var qr=p("$ZodUnion",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),H(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),H(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),H(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(i=>i._zod.pattern);return new RegExp(`^(${t.map(i=>$u(i.source)).join("|")})$`)}}),e._zod.parse=(t,i)=>{let u=!1;const r=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},i);if(o instanceof Promise)r.push(o),u=!0;else{if(o.issues.length===0)return o;r.push(o)}}return u?Promise.all(r).then(a=>dl(a,t,e,i)):dl(r,t,e,i)}}),fl=p("$ZodDiscriminatedUnion",(e,n)=>{qr.init(e,n);const t=e._zod.parse;H(e._zod,"propValues",()=>{const u={};for(const r of n.options){const a=r._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(r)}"`);for(const[o,s]of Object.entries(a)){u[o]||(u[o]=new Set);for(const c of s)u[o].add(c)}}return u});const i=Cu(()=>{const u=n.options,r=new Map;for(const a of u){const o=a._zod.propValues?.[n.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(const s of o){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,a)}}return r});e._zod.parse=(u,r)=>{const a=u.value;if(!Ut(a))return u.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),u;const o=i.value.get(a?.[n.discriminator]);return o?o._zod.run(u,r):n.unionFallback?t(u,r):(u.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),u)}}),ml=p("$ZodIntersection",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value,r=n.left._zod.run({value:u,issues:[]},i),a=n.right._zod.run({value:u,issues:[]},i);return r instanceof Promise||a instanceof Promise?Promise.all([r,a]).then(([s,c])=>vl(t,s,c)):vl(t,r,a)}});function Mr(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(Pt(e)&&Pt(n)){const t=Object.keys(n),i=Object.keys(e).filter(r=>t.indexOf(r)!==-1),u={...e,...n};for(const r of i){const a=Mr(e[r],n[r]);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};u[r]=a.data}return{valid:!0,data:u}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let i=0;i<e.length;i++){const u=e[i],r=n[i],a=Mr(u,r);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function vl(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),Gn(e))return e;const i=Mr(n.value,t.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Ou=p("$ZodTuple",(e,n)=>{U.init(e,n);const t=n.items,i=t.length-[...t].reverse().findIndex(u=>u._zod.optin!=="optional");e._zod.parse=(u,r)=>{const a=u.value;if(!Array.isArray(a))return u.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),u;u.value=[];const o=[];if(!n.rest){const c=a.length>t.length,l=a.length<i-1;if(c||l)return u.issues.push({input:a,inst:e,origin:"array",...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}}),u}let s=-1;for(const c of t){if(s++,s>=a.length&&s>=i)continue;const l=c._zod.run({value:a[s],issues:[]},r);l instanceof Promise?o.push(l.then(f=>zu(f,u,s))):zu(l,u,s)}if(n.rest){const c=a.slice(t.length);for(const l of c){s++;const f=n.rest._zod.run({value:l,issues:[]},r);f instanceof Promise?o.push(f.then(m=>zu(m,u,s))):zu(f,u,s)}}return o.length?Promise.all(o).then(()=>u):u}});function zu(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}var pl=p("$ZodRecord",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;if(!Pt(u))return t.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),t;const r=[];if(n.keyType._zod.values){const a=n.keyType._zod.values;t.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const c=n.valueType._zod.run({value:u[s],issues:[]},i);c instanceof Promise?r.push(c.then(l=>{l.issues.length&&t.issues.push(...Ie(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Ie(s,c.issues)),t.value[s]=c.value)}let o;for(const s in u)a.has(s)||(o=o??[],o.push(s));o&&o.length>0&&t.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:o})}else{t.value={};for(const a of Reflect.ownKeys(u)){if(a==="__proto__")continue;const o=n.keyType._zod.run({value:a,issues:[]},i);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(c=>Re(c,i,ye())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:u[a],issues:[]},i);s instanceof Promise?r.push(s.then(c=>{c.issues.length&&t.issues.push(...Ie(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Ie(a,s.issues)),t.value[o.value]=s.value)}}return r.length?Promise.all(r).then(()=>t):t}}),hl=p("$ZodMap",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;if(!(u instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:u,inst:e}),t;const r=[];t.value=new Map;for(const[a,o]of u){const s=n.keyType._zod.run({value:a,issues:[]},i),c=n.valueType._zod.run({value:o,issues:[]},i);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([l,f])=>{gl(l,f,t,a,u,e,i)})):gl(s,c,t,a,u,e,i)}return r.length?Promise.all(r).then(()=>t):t}});function gl(e,n,t,i,u,r,a){e.issues.length&&(xu.has(typeof i)?t.issues.push(...Ie(i,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:u,inst:r,issues:e.issues.map(o=>Re(o,a,ye()))})),n.issues.length&&(xu.has(typeof i)?t.issues.push(...Ie(i,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:u,inst:r,key:i,issues:n.issues.map(o=>Re(o,a,ye()))})),t.value.set(e.value,n.value)}var El=p("$ZodSet",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;if(!(u instanceof Set))return t.issues.push({input:u,inst:e,expected:"set",code:"invalid_type"}),t;const r=[];t.value=new Set;for(const a of u){const o=n.valueType._zod.run({value:a,issues:[]},i);o instanceof Promise?r.push(o.then(s=>yl(s,t))):yl(o,t)}return r.length?Promise.all(r).then(()=>t):t}});function yl(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var bl=p("$ZodEnum",(e,n)=>{U.init(e,n);const t=Br(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(i=>xu.has(typeof i)).map(i=>typeof i=="string"?An(i):i.toString()).join("|")})$`),e._zod.parse=(i,u)=>{const r=i.value;return e._zod.values.has(r)||i.issues.push({code:"invalid_value",values:t,input:r,inst:e}),i}}),kl=p("$ZodLiteral",(e,n)=>{U.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?An(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,i)=>{const u=t.value;return e._zod.values.has(u)||t.issues.push({code:"invalid_value",values:n.values,input:u,inst:e}),t}}),Dl=p("$ZodFile",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=t.value;return u instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:u,inst:e}),t}}),Gr=p("$ZodTransform",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=n.transform(t.value,t);if(i.async)return(u instanceof Promise?u:Promise.resolve(u)).then(a=>(t.value=a,t));if(u instanceof Promise)throw new qn;return t.value=u,t}}),Bl=p("$ZodOptional",(e,n)=>{U.init(e,n),e._zod.optin="optional",e._zod.optout="optional",H(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${$u(t.source)})?$`):void 0}),e._zod.parse=(t,i)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,i):t.value===void 0?t:n.innerType._zod.run(t,i)}),_l=p("$ZodNullable",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${$u(t.source)}|null)$`):void 0}),H(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,i)=>t.value===null?t:n.innerType._zod.run(t,i)}),Al=p("$ZodDefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,i)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>Sl(r,n)):Sl(u,n)}});function Sl(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var wl=p("$ZodPrefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,i)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,i))}),Cl=p("$ZodNonOptional",(e,n)=>{U.init(e,n),H(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(i=>i!==void 0)):void 0}),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>$l(r,e)):$l(u,e)}});function $l(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 xl=p("$ZodSuccess",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>(t.value=r.issues.length===0,t)):(t.value=u.issues.length===0,t)}}),Il=p("$ZodCatch",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(r=>(t.value=r.value,r.issues.length&&(t.value=n.catchValue({...t,error:{issues:r.issues.map(a=>Re(a,i,ye()))},input:t.value}),t.issues=[]),t)):(t.value=u.value,u.issues.length&&(t.value=n.catchValue({...t,error:{issues:u.issues.map(r=>Re(r,i,ye()))},input:t.value}),t.issues=[]),t)}}),Fl=p("$ZodNaN",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Jr=p("$ZodPipe",(e,n)=>{U.init(e,n),H(e._zod,"values",()=>n.in._zod.values),H(e._zod,"optin",()=>n.in._zod.optin),H(e._zod,"optout",()=>n.out._zod.optout),H(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,i)=>{const u=n.in._zod.run(t,i);return u instanceof Promise?u.then(r=>Nl(r,n,i)):Nl(u,n,i)}});function Nl(e,n,t){return Gn(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var Tl=p("$ZodReadonly",(e,n)=>{U.init(e,n),H(e._zod,"propValues",()=>n.innerType._zod.propValues),H(e._zod,"values",()=>n.innerType._zod.values),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,i)=>{const u=n.innerType._zod.run(t,i);return u instanceof Promise?u.then(Ol):Ol(u)}});function Ol(e){return e.value=Object.freeze(e.value),e}var zl=p("$ZodTemplateLiteral",(e,n)=>{U.init(e,n);const t=[];for(const i of n.parts)if(i instanceof U){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const u=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!u)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const r=u.startsWith("^")?1:0,a=u.endsWith("$")?u.length-1:u.length;t.push(u.slice(r,a))}else if(i===null||g0.has(typeof i))t.push(An(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(i,u)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Ul=p("$ZodPromise",(e,n)=>{U.init(e,n),e._zod.parse=(t,i)=>Promise.resolve(t.value).then(u=>n.innerType._zod.run({value:u,issues:[]},i))}),Pl=p("$ZodLazy",(e,n)=>{U.init(e,n),H(e._zod,"innerType",()=>n.getter()),H(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),H(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),H(e._zod,"optin",()=>e._zod.innerType._zod.optin),H(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,i)=>e._zod.innerType._zod.run(t,i)}),jl=p("$ZodCustom",(e,n)=>{ue.init(e,n),U.init(e,n),e._zod.parse=(t,i)=>t,e._zod.check=t=>{const i=t.value,u=n.fn(i);if(u instanceof Promise)return u.then(r=>Rl(r,t,i,e));Rl(u,t,i,e)}});function Rl(e,n,t,i){if(!e){const u={code:"custom",input:t,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(u.params=i._zod.def.params),n.issues.push(k0(u))}}var Hr={};yn(Hr,{ar:()=>Ch,az:()=>xh,be:()=>Fh,ca:()=>Th,cs:()=>zh,de:()=>Ph,en:()=>Zl,eo:()=>Vh,es:()=>Mh,fa:()=>Jh,fi:()=>Kh,fr:()=>Wh,frCA:()=>Xh,he:()=>n6,hu:()=>u6,id:()=>r6,it:()=>o6,ja:()=>c6,kh:()=>d6,ko:()=>m6,mk:()=>p6,ms:()=>g6,nl:()=>y6,no:()=>k6,ota:()=>B6,pl:()=>w6,ps:()=>A6,pt:()=>$6,ru:()=>I6,sl:()=>N6,sv:()=>O6,ta:()=>U6,th:()=>j6,tr:()=>Z6,ua:()=>q6,ur:()=>G6,vi:()=>H6,zhCN:()=>Q6,zhTW:()=>Y6});var wh=()=>{const e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return u=>{switch(u.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${u.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${L(u.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${u.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${u.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${u.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${u.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${u.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${u.prefix}"`:r.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${r.suffix}"`:r.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${r.includes}"`:r.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${r.pattern}`:`${i[r.format]??u.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${u.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${u.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${u.keys.length>1?"\u0629":""}: ${S(u.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${u.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${u.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Ch(){return{localeError:wh()}}var $h=()=>{const e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${u.expected}, daxil olan ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${L(u.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${u.origin??"d\u0259y\u0259r"} ${r}${u.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${u.origin??"d\u0259y\u0259r"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${u.origin} ${r}${u.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[r.format]??u.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${u.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${u.keys.length>1?"lar":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${u.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function xh(){return{localeError:$h()}}function Ll(e,n,t,i){const u=Math.abs(e),r=u%10,a=u%100;return a>=11&&a<=19?i:r===1?n:r>=2&&r<=4?t:i}var Ih=()=>{const e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0456\u045E";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return u=>{switch(u.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${u.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${L(u.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);if(a){const o=Number(u.maximum),s=Ll(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${u.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);if(a){const o=Number(u.minimum),s=Ll(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${u.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${u.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[r.format]??u.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${u.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${u.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${u.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Fh(){return{localeError:Ih()}}var Nh=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{switch(u.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${u.expected}, s'ha rebut ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Valor inv\xE0lid: s'esperava ${L(u.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${S(u.values," o ")}`;case"too_big":{const r=u.inclusive?"com a m\xE0xim":"menys de",a=n(u.origin);return a?`Massa gran: s'esperava que ${u.origin??"el valor"} contingu\xE9s ${r} ${u.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${u.origin??"el valor"} fos ${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(u.origin);return a?`Massa petit: s'esperava que ${u.origin} contingu\xE9s ${r} ${u.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${u.origin} fos ${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${i[r.format]??u.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${u.divisor}`;case"unrecognized_keys":return`Clau${u.keys.length>1?"s":""} no reconeguda${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${u.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${u.origin}`;default:return"Entrada inv\xE0lida"}}};function Th(){return{localeError:Nh()}}var Oh=()=>{const e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(u))return"pole";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return u=>{switch(u.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${u.expected}, obdr\u017Eeno ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${L(u.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${u.origin??"hodnota"} mus\xED m\xEDt ${r}${u.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${u.origin??"hodnota"} mus\xED b\xFDt ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${u.origin??"hodnota"} mus\xED m\xEDt ${r}${u.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${u.origin??"hodnota"} mus\xED b\xFDt ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${i[r.format]??u.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${u.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${S(u.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${u.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${u.origin}`;default:return"Neplatn\xFD vstup"}}};function zh(){return{localeError:Oh()}}var Uh=()=>{const 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(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"Zahl";case"object":{if(Array.isArray(u))return"Array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return u=>{switch(u.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${u.expected}, erhalten ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ung\xFCltige Eingabe: erwartet ${L(u.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Zu gro\xDF: erwartet, dass ${u.origin??"Wert"} ${r}${u.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${u.origin??"Wert"} ${r}${u.maximum.toString()} ist`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Zu klein: erwartet, dass ${u.origin} ${r}${u.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${u.origin} ${r}${u.minimum.toString()} ist`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${i[r.format]??u.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${u.divisor} sein`;case"unrecognized_keys":return`${u.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${u.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${u.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Ph(){return{localeError:Uh()}}var jh=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Rh=()=>{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"}};function n(i){return e[i]??null}const t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${jh(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${L(i.values[0])}`:`Invalid option: expected one of ${S(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",r=n(i.origin);return r?`Too big: expected ${i.origin??"value"} to have ${u}${i.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",r=n(i.origin);return r?`Too small: expected ${i.origin} to have ${u}${i.minimum.toString()} ${r.unit}`:`Too small: expected ${i.origin} to be ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Invalid string: must start with "${u.prefix}"`:u.format==="ends_with"?`Invalid string: must end with "${u.suffix}"`:u.format==="includes"?`Invalid string: must include "${u.includes}"`:u.format==="regex"?`Invalid string: must match pattern ${u.pattern}`:`Invalid ${t[u.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":""}: ${S(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 Zl(){return{localeError:Rh()}}var Lh=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Zh=()=>{const 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}const t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${i.expected}, ricevi\u011Dis ${Lh(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${L(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${S(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",r=n(i.origin);return r?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${u}${i.maximum.toString()} ${r.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",r=n(i.origin);return r?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${u}${i.minimum.toString()} ${r.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${u.prefix}"`:u.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${u.suffix}"`:u.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${u.includes}"`:u.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${u.pattern}`:`Nevalida ${t[u.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${S(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function Vh(){return{localeError:Zh()}}var qh=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(u))return"arreglo";if(u===null)return"nulo";if(Object.getPrototypeOf(u)!==Object.prototype)return u.constructor.name}}return r},i={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{switch(u.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${u.expected}, recibido ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entrada inv\xE1lida: se esperaba ${L(u.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Demasiado grande: se esperaba que ${u.origin??"valor"} tuviera ${r}${u.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u.origin??"valor"} fuera ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Demasiado peque\xF1o: se esperaba que ${u.origin} tuviera ${r}${u.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${u.origin} fuera ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${i[r.format]??u.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${u.divisor}`;case"unrecognized_keys":return`Llave${u.keys.length>1?"s":""} desconocida${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${u.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${u.origin}`;default:return"Entrada inv\xE1lida"}}};function Mh(){return{localeError:qh()}}var Gh=()=>{const e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(u))return"\u0622\u0631\u0627\u06CC\u0647";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return u=>{switch(u.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${u.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${t(u.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return u.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${L(u.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${S(u.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${u.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${u.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[r.format]??u.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${u.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${u.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${S(u.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${u.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${u.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Jh(){return{localeError:Gh()}}var Hh=()=>{const e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return u=>{switch(u.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${u.expected}, oli ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${L(u.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${r}${u.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${r}${u.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${i[r.format]??u.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${u.divisor} monikerta`;case"unrecognized_keys":return`${u.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${S(u.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Kh(){return{localeError:Hh()}}var Qh=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"nombre";case"object":{if(Array.isArray(u))return"tableau";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return u=>{switch(u.code){case"invalid_type":return`Entr\xE9e invalide : ${u.expected} attendu, ${t(u.input)} re\xE7u`;case"invalid_value":return u.values.length===1?`Entr\xE9e invalide : ${L(u.values[0])} attendu`:`Option invalide : une valeur parmi ${S(u.values,"|")} attendue`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Trop grand : ${u.origin??"valeur"} doit ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${u.origin??"valeur"} doit \xEAtre ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Trop petit : ${u.origin} doit ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`Trop petit : ${u.origin} doit \xEAtre ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${i[r.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${u.divisor}`;case"unrecognized_keys":return`Cl\xE9${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${S(u.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${u.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entr\xE9e invalide"}}};function Wh(){return{localeError:Qh()}}var Yh=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return u=>{switch(u.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${u.expected}, re\xE7u ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entr\xE9e invalide : attendu ${L(u.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"\u2264":"<",a=n(u.origin);return a?`Trop grand : attendu que ${u.origin??"la valeur"} ait ${r}${u.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${u.origin??"la valeur"} soit ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?"\u2265":">",a=n(u.origin);return a?`Trop petit : attendu que ${u.origin} ait ${r}${u.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${u.origin} soit ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${i[r.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${u.divisor}`;case"unrecognized_keys":return`Cl\xE9${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${S(u.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${u.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entr\xE9e invalide"}}};function Xh(){return{localeError:Yh()}}var e6=()=>{const e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return u=>{switch(u.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${L(u.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${u.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${u.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${u.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${u.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${r.prefix}"`:r.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${r.suffix}"`:r.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${r.includes}"`:r.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${r.pattern}`:`${i[r.format]??u.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${u.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${u.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function n6(){return{localeError:e6()}}var t6=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(u))return"t\xF6mb";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return u=>{switch(u.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${u.expected}, a kapott \xE9rt\xE9k ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${L(u.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`T\xFAl nagy: ${u.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${u.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${u.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${u.origin} m\xE9rete t\xFAl kicsi ${r}${u.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${u.origin} t\xFAl kicsi ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[r.format]??u.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${u.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${u.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${u.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function u6(){return{localeError:t6()}}var i6=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Input tidak valid: diharapkan ${u.expected}, diterima ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input tidak valid: diharapkan ${L(u.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Terlalu besar: diharapkan ${u.origin??"value"} memiliki ${r}${u.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${u.origin??"value"} menjadi ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Terlalu kecil: diharapkan ${u.origin} memiliki ${r}${u.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${u.origin} menjadi ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${i[r.format]??u.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${u.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${u.origin}`;default:return"Input tidak valid"}}};function r6(){return{localeError:i6()}}var a6=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"numero";case"object":{if(Array.isArray(u))return"vettore";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Input non valido: atteso ${u.expected}, ricevuto ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input non valido: atteso ${L(u.values[0])}`:`Opzione non valida: atteso uno tra ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Troppo grande: ${u.origin??"valore"} deve avere ${r}${u.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${u.origin??"valore"} deve essere ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Troppo piccolo: ${u.origin} deve avere ${r}${u.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${u.origin} deve essere ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Invalid ${i[r.format]??u.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${u.divisor}`;case"unrecognized_keys":return`Chiav${u.keys.length>1?"i":"e"} non riconosciut${u.keys.length>1?"e":"a"}: ${S(u.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${u.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${u.origin}`;default:return"Input non valido"}}};function o6(){return{localeError:a6()}}var s6=()=>{const e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(u))return"\u914D\u5217";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return u=>{switch(u.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${u.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${t(u.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return u.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${L(u.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${S(u.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const r=u.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(u.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${u.origin??"\u5024"}\u306F${u.maximum.toString()}${a.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${u.origin??"\u5024"}\u306F${u.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const r=u.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(u.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${u.origin}\u306F${u.minimum.toString()}${a.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${u.origin}\u306F${u.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[r.format]??u.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${u.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${u.keys.length>1?"\u7FA4":""}: ${S(u.keys,"\u3001")}`;case"invalid_key":return`${u.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${u.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function c6(){return{localeError:s6()}}var l6=()=>{const e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(u))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(u===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return u=>{switch(u.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${L(u.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${u.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin} ${r} ${u.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin} ${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${r.prefix}"`:r.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${r.suffix}"`:r.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${r.includes}"`:r.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${u.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${S(u.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${u.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${u.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function d6(){return{localeError:l6()}}var f6=()=>{const e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return u=>{switch(u.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${u.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${t(u.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return u.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${L(u.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${S(u.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const r=u.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(u.origin),s=o?.unit??"\uC694\uC18C";return o?`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${u.maximum.toString()}${s} ${r}${a}`:`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${u.maximum.toString()} ${r}${a}`}case"too_small":{const r=u.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(u.origin),s=o?.unit??"\uC694\uC18C";return o?`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${u.minimum.toString()}${s} ${r}${a}`:`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${u.minimum.toString()} ${r}${a}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[r.format]??u.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${u.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${S(u.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${u.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${u.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function m6(){return{localeError:f6()}}var v6=()=>{const e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(u))return"\u043D\u0438\u0437\u0430";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return u=>{switch(u.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Invalid input: expected ${L(u.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${u.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${u.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${r.pattern}`:`Invalid ${i[r.format]??u.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${u.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${u.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function p6(){return{localeError:v6()}}var h6=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"nombor";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Input tidak sah: dijangka ${u.expected}, diterima ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input tidak sah: dijangka ${L(u.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Terlalu besar: dijangka ${u.origin??"nilai"} ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${u.origin??"nilai"} adalah ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Terlalu kecil: dijangka ${u.origin} ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${u.origin} adalah ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${i[r.format]??u.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${S(u.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${u.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${u.origin}`;default:return"Input tidak sah"}}};function g6(){return{localeError:h6()}}var E6=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"getal";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return u=>{switch(u.code){case"invalid_type":return`Ongeldige invoer: verwacht ${u.expected}, ontving ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ongeldige invoer: verwacht ${L(u.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Te lang: verwacht dat ${u.origin??"waarde"} ${r}${u.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${u.origin??"waarde"} ${r}${u.maximum.toString()} is`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Te kort: verwacht dat ${u.origin} ${r}${u.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${u.origin} ${r}${u.minimum.toString()} is`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${i[r.format]??u.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${u.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${u.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${u.origin}`;default:return"Ongeldige invoer"}}};function y6(){return{localeError:E6()}}var b6=()=>{const e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"tall";case"object":{if(Array.isArray(u))return"liste";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Ugyldig input: forventet ${u.expected}, fikk ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ugyldig verdi: forventet ${L(u.values[0])}`:`Ugyldig valg: forventet en av ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`For stor(t): forventet ${u.origin??"value"} til \xE5 ha ${r}${u.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${u.origin??"value"} til \xE5 ha ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`For lite(n): forventet ${u.origin} til \xE5 ha ${r}${u.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${u.origin} til \xE5 ha ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${i[r.format]??u.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${u.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${u.origin}`;default:return"Ugyldig input"}}};function k6(){return{localeError:b6()}}var D6=()=>{const e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"numara";case"object":{if(Array.isArray(u))return"saf";if(u===null)return"gayb";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return u=>{switch(u.code){case"invalid_type":return`F\xE2sit giren: umulan ${u.expected}, al\u0131nan ${t(u.input)}`;case"invalid_value":return u.values.length===1?`F\xE2sit giren: umulan ${L(u.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Fazla b\xFCy\xFCk: ${u.origin??"value"}, ${r}${u.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${u.origin??"value"}, ${r}${u.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Fazla k\xFC\xE7\xFCk: ${u.origin}, ${r}${u.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${u.origin}, ${r}${u.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const r=u;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[r.format]??u.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${u.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${u.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function B6(){return{localeError:D6()}}var _6=()=>{const e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(u))return"\u0627\u0631\u06D0";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return u=>{switch(u.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${u.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${t(u.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return u.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${L(u.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${S(u.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${u.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${u.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${u.maximum.toString()} \u0648\u064A`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${u.origin} \u0628\u0627\u06CC\u062F ${r}${u.minimum.toString()} \u0648\u064A`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[r.format]??u.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${u.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${u.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${u.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${u.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function A6(){return{localeError:_6()}}var S6=()=>{const e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"liczba";case"object":{if(Array.isArray(u))return"tablica";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return u=>{switch(u.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${u.expected}, otrzymano ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${L(u.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${u.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${u.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[r.format]??u.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${u.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${u.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${u.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function w6(){return{localeError:S6()}}var C6=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(u))return"array";if(u===null)return"nulo";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{switch(u.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${u.expected}, recebido ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entrada inv\xE1lida: esperado ${L(u.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Muito grande: esperado que ${u.origin??"valor"} tivesse ${r}${u.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${u.origin??"valor"} fosse ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Muito pequeno: esperado que ${u.origin} tivesse ${r}${u.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${u.origin} fosse ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${i[r.format]??u.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${u.divisor}`;case"unrecognized_keys":return`Chave${u.keys.length>1?"s":""} desconhecida${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${u.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${u.origin}`;default:return"Campo inv\xE1lido"}}};function $6(){return{localeError:C6()}}function Vl(e,n,t,i){const u=Math.abs(e),r=u%10,a=u%100;return a>=11&&a<=19?i:r===1?n:r>=2&&r<=4?t:i}var x6=()=>{const e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return u=>{switch(u.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${u.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${L(u.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);if(a){const o=Number(u.maximum),s=Vl(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${u.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);if(a){const o=Number(u.minimum),s=Vl(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${u.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${u.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${u.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${u.keys.length>1?"\u0438":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${u.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${u.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function I6(){return{localeError:x6()}}var F6=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(u))return"tabela";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return u=>{switch(u.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${u.expected}, prejeto ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${L(u.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${u.origin??"vrednost"} imelo ${r}${u.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${u.origin??"vrednost"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${u.origin} imelo ${r}${u.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${i[r.format]??u.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${u.divisor}`;case"unrecognized_keys":return`Neprepoznan${u.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${S(u.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${u.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${u.origin}`;default:return"Neveljaven vnos"}}};function N6(){return{localeError:F6()}}var T6=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"antal";case"object":{if(Array.isArray(u))return"lista";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return u=>{switch(u.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${u.expected}, fick ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${L(u.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${r}${u.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${u.origin??"v\xE4rdet"} att ha ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${r}${u.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${i[r.format]??u.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${u.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${u.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function O6(){return{localeError:T6()}}var z6=()=>{const e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(u))return"\u0B85\u0BA3\u0BBF";if(u===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${L(u.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(u.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${u.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${u.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin} ${r}${u.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u.origin} ${r}${u.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${u.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${u.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${u.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function U6(){return{localeError:z6()}}var P6=()=>{const e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(u))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(u===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return u=>{switch(u.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${u.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${L(u.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(u.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(u.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${r.prefix}"`:r.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${r.suffix}"`:r.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[r.format]??u.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${u.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${S(u.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${u.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${u.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function j6(){return{localeError:P6()}}var R6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},L6=()=>{const e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function n(i){return e[i]??null}const t={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${R6(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${L(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${S(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",r=n(i.origin);return r?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${u}${i.maximum.toString()} ${r.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",r=n(i.origin);return r?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${u}${i.minimum.toString()} ${r.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ge\xE7ersiz metin: "${u.prefix}" ile ba\u015Flamal\u0131`:u.format==="ends_with"?`Ge\xE7ersiz metin: "${u.suffix}" ile bitmeli`:u.format==="includes"?`Ge\xE7ersiz metin: "${u.includes}" i\xE7ermeli`:u.format==="regex"?`Ge\xE7ersiz metin: ${u.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${t[u.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${S(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Z6(){return{localeError:L6()}}var V6=()=>{const e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0438\u0432";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return u=>{switch(u.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${u.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${L(u.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin} ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${u.origin} \u0431\u0443\u0434\u0435 ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${u.keys.length>1?"\u0456":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${u.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${u.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function q6(){return{localeError:V6()}}var M6=()=>{const e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(u))return"\u0622\u0631\u06D2";if(u===null)return"\u0646\u0644";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return u=>{switch(u.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${u.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${t(u.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return u.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${L(u.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${S(u.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${u.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${u.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${u.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${u.origin} \u06A9\u06D2 ${r}${u.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${u.origin} \u06A9\u0627 ${r}${u.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${u.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${u.keys.length>1?"\u0632":""}: ${S(u.keys,"\u060C ")}`;case"invalid_key":return`${u.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${u.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function G6(){return{localeError:M6()}}var J6=()=>{const e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(u))return"m\u1EA3ng";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return u=>{switch(u.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${u.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${L(u.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${u.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${r}${u.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${u.origin??"gi\xE1 tr\u1ECB"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${u.origin} ${a.verb} ${r}${u.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${i[r.format]??u.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${u.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${S(u.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${u.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${u.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function H6(){return{localeError:J6()}}var K6=()=>{const e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(u))return"\u6570\u7EC4";if(u===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return u=>{switch(u.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${u.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${L(u.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${u.origin??"\u503C"} ${r}${u.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${u.origin??"\u503C"} ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${u.origin} ${r}${u.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${u.origin} ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${i[r.format]??u.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${u.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${u.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Q6(){return{localeError:K6()}}var W6=()=>{const e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function n(u){return e[u]??null}const t=u=>{const r=typeof u;switch(r){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return r},i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return u=>{switch(u.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${u.expected}\uFF0C\u4F46\u6536\u5230 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${L(u.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${S(u.values,"|")}`;case"too_big":{const r=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${u.origin??"\u503C"} \u61C9\u70BA ${r}${u.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${u.origin??"\u503C"} \u61C9\u70BA ${r}${u.maximum.toString()}`}case"too_small":{const r=u.inclusive?">=":">",a=n(u.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${u.origin} \u61C9\u70BA ${r}${u.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${u.origin} \u61C9\u70BA ${r}${u.minimum.toString()}`}case"invalid_format":{const r=u;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${i[r.format]??u.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${u.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${u.keys.length>1?"\u5011":""}\uFF1A${S(u.keys,"\u3001")}`;case"invalid_key":return`${u.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${u.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Y6(){return{localeError:W6()}}var ql=Symbol("ZodOutput"),Ml=Symbol("ZodInput"),Kr=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...n){const t=n[0];if(this._map.set(e,t),t&&typeof t=="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error(`ID ${t.id} already exists in the registry`);this._idmap.set(t.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const t={...this.get(n)??{}};return delete t.id,{...t,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Qr(){return new Kr}var Sn=Qr();function Gl(e,n){return new e({type:"string",...B(n)})}function Jl(e,n){return new e({type:"string",coerce:!0,...B(n)})}function Wr(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...B(n)})}function Uu(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...B(n)})}function Yr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...B(n)})}function Xr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(n)})}function ea(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(n)})}function na(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(n)})}function ta(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...B(n)})}function ua(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...B(n)})}function ia(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(n)})}function ra(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...B(n)})}function aa(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(n)})}function oa(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...B(n)})}function sa(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...B(n)})}function ca(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(n)})}function la(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(n)})}function da(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(n)})}function fa(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(n)})}function ma(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(n)})}function va(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...B(n)})}function pa(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...B(n)})}function ha(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...B(n)})}function ga(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...B(n)})}var Hl={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Kl(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(n)})}function Ql(e,n){return new e({type:"string",format:"date",check:"string_format",...B(n)})}function Wl(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...B(n)})}function Yl(e,n){return new e({type:"string",format:"duration",check:"string_format",...B(n)})}function Xl(e,n){return new e({type:"number",checks:[],...B(n)})}function ed(e,n){return new e({type:"number",coerce:!0,checks:[],...B(n)})}function nd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...B(n)})}function td(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...B(n)})}function ud(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...B(n)})}function id(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...B(n)})}function rd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...B(n)})}function ad(e,n){return new e({type:"boolean",...B(n)})}function od(e,n){return new e({type:"boolean",coerce:!0,...B(n)})}function sd(e,n){return new e({type:"bigint",...B(n)})}function cd(e,n){return new e({type:"bigint",coerce:!0,...B(n)})}function ld(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...B(n)})}function dd(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...B(n)})}function fd(e,n){return new e({type:"symbol",...B(n)})}function md(e,n){return new e({type:"undefined",...B(n)})}function vd(e,n){return new e({type:"null",...B(n)})}function pd(e){return new e({type:"any"})}function Pu(e){return new e({type:"unknown"})}function hd(e,n){return new e({type:"never",...B(n)})}function gd(e,n){return new e({type:"void",...B(n)})}function Ed(e,n){return new e({type:"date",...B(n)})}function yd(e,n){return new e({type:"date",coerce:!0,...B(n)})}function bd(e,n){return new e({type:"nan",...B(n)})}function wn(e,n){return new Ur({check:"less_than",...B(n),value:e,inclusive:!1})}function Le(e,n){return new Ur({check:"less_than",...B(n),value:e,inclusive:!0})}function Cn(e,n){return new Pr({check:"greater_than",...B(n),value:e,inclusive:!1})}function Se(e,n){return new Pr({check:"greater_than",...B(n),value:e,inclusive:!0})}function kd(e){return Cn(0,e)}function Dd(e){return wn(0,e)}function Bd(e){return Le(0,e)}function _d(e){return Se(0,e)}function Vt(e,n){return new ac({check:"multiple_of",...B(n),value:e})}function ju(e,n){return new cc({check:"max_size",...B(n),maximum:e})}function qt(e,n){return new lc({check:"min_size",...B(n),minimum:e})}function Ea(e,n){return new dc({check:"size_equals",...B(n),size:e})}function Ru(e,n){return new fc({check:"max_length",...B(n),maximum:e})}function Hn(e,n){return new mc({check:"min_length",...B(n),minimum:e})}function Lu(e,n){return new vc({check:"length_equals",...B(n),length:e})}function ya(e,n){return new pc({check:"string_format",format:"regex",...B(n),pattern:e})}function ba(e){return new hc({check:"string_format",format:"lowercase",...B(e)})}function ka(e){return new gc({check:"string_format",format:"uppercase",...B(e)})}function Da(e,n){return new Ec({check:"string_format",format:"includes",...B(n),includes:e})}function Ba(e,n){return new yc({check:"string_format",format:"starts_with",...B(n),prefix:e})}function _a(e,n){return new bc({check:"string_format",format:"ends_with",...B(n),suffix:e})}function Ad(e,n,t){return new Dc({check:"property",property:e,schema:n,...B(t)})}function Aa(e,n){return new Bc({check:"mime_type",mime:e,...B(n)})}function $n(e){return new _c({check:"overwrite",tx:e})}function Sa(e){return $n(n=>n.normalize(e))}function wa(){return $n(e=>e.trim())}function Ca(){return $n(e=>e.toLowerCase())}function $a(){return $n(e=>e.toUpperCase())}function xa(e,n,t){return new e({type:"array",element:n,...B(t)})}function X6(e,n,t){return new e({type:"union",options:n,...B(t)})}function eg(e,n,t,i){return new e({type:"union",options:t,discriminator:n,...B(i)})}function ng(e,n,t){return new e({type:"intersection",left:n,right:t})}function Sd(e,n,t,i){const u=t instanceof U,r=u?i:t,a=u?t:null;return new e({type:"tuple",items:n,rest:a,...B(r)})}function tg(e,n,t,i){return new e({type:"record",keyType:n,valueType:t,...B(i)})}function ug(e,n,t,i){return new e({type:"map",keyType:n,valueType:t,...B(i)})}function ig(e,n,t){return new e({type:"set",valueType:n,...B(t)})}function rg(e,n,t){const i=Array.isArray(n)?Object.fromEntries(n.map(u=>[u,u])):n;return new e({type:"enum",entries:i,...B(t)})}function ag(e,n,t){return new e({type:"enum",entries:n,...B(t)})}function og(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...B(t)})}function wd(e,n){return new e({type:"file",...B(n)})}function sg(e,n){return new e({type:"transform",transform:n})}function cg(e,n){return new e({type:"optional",innerType:n})}function lg(e,n){return new e({type:"nullable",innerType:n})}function dg(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function fg(e,n,t){return new e({type:"nonoptional",innerType:n,...B(t)})}function mg(e,n){return new e({type:"success",innerType:n})}function vg(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function pg(e,n,t){return new e({type:"pipe",in:n,out:t})}function hg(e,n){return new e({type:"readonly",innerType:n})}function gg(e,n,t){return new e({type:"template_literal",parts:n,...B(t)})}function Eg(e,n){return new e({type:"lazy",getter:n})}function yg(e,n){return new e({type:"promise",innerType:n})}function Cd(e,n,t){const i=B(t);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:n,...i})}function $d(e,n,t){return new e({type:"custom",check:"custom",fn:n,...B(t)})}function xd(e,n){const t=B(n);let i=t.truthy??["true","1","yes","on","y","enabled"],u=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(i=i.map(v=>typeof v=="string"?v.toLowerCase():v),u=u.map(v=>typeof v=="string"?v.toLowerCase():v));const r=new Set(i),a=new Set(u),o=e.Pipe??Jr,s=e.Boolean??Lr,c=e.String??Zt,l=e.Transform??Gr,f=new l({type:"transform",transform:(v,h)=>{let b=v;return t.case!=="sensitive"&&(b=b.toLowerCase()),r.has(b)?!0:a.has(b)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...a],input:h.value,inst:f}),{})},error:t.error}),m=new o({type:"pipe",in:new c({type:"string",error:t.error}),out:f,error:t.error});return new o({type:"pipe",in:m,out:new s({type:"boolean",error:t.error}),error:t.error})}function Id(e,n,t,i={}){const u=B(i),r={...B(i),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...u};return t instanceof RegExp&&(r.pattern=t),new e(r)}var Fd=class{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=(...t)=>{const i=this._def.input?xr(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(i))throw new Error("Invalid arguments schema: not an array or tuple schema.");const u=e(...i);return this._def.output?xr(this._def.output,u,void 0,{callee:n}):u};return n}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=async(...t)=>{const i=this._def.input?await Fr(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(i))throw new Error("Invalid arguments schema: not an array or tuple schema.");const u=await e(...i);return this._def.output?Fr(this._def.output,u,void 0,{callee:n}):u};return n}input(...e){const n=this.constructor;return Array.isArray(e[0])?new n({type:"function",input:new Ou({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new n({type:"function",input:e[0],output:this._def.output})}output(e){const n=this.constructor;return new n({type:"function",input:this._def.input,output:e})}};function Nd(e){return new Fd({type:"function",input:Array.isArray(e?.input)?Sd(Ou,e?.input):e?.input??xa(Vr,Pu(Nu)),output:e?.output??Pu(Nu)})}var Ia=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Sn,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,n={path:[],schemaPath:[]}){var t;const i=e._zod.def,u={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},r=this.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(e,a);const o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{const l={...n,schemaPath:[...n.schemaPath,e],path:n.path},f=e._zod.parent;if(f)a.ref=f,this.process(f,l),this.seen.get(f).isParent=!0;else{const m=a.schema;switch(i.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:b,patterns:y,contentEncoding:E}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),b&&(d.format=u[b]??b,d.format===""&&delete d.format),E&&(d.contentEncoding=E),y&&y.size>0){const k=[...y];k.length===1?d.pattern=k[0].source:k.length>1&&(a.schema.allOf=[...k.map(w=>({...this.target==="draft-7"?{type:"string"}:{},pattern:w.source}))])}break}case"number":{const d=m,{minimum:v,maximum:h,format:b,multipleOf:y,exclusiveMaximum:E,exclusiveMinimum:k}=e._zod.bag;typeof b=="string"&&b.includes("int")?d.type="integer":d.type="number",typeof k=="number"&&(d.exclusiveMinimum=k),typeof v=="number"&&(d.minimum=v,typeof k=="number"&&(k>=v?delete d.minimum:delete d.exclusiveMinimum)),typeof E=="number"&&(d.exclusiveMaximum=E),typeof h=="number"&&(d.maximum=h,typeof E=="number"&&(E<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof y=="number"&&(d.multipleOf=y);break}case"boolean":{const d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=m,{minimum:v,maximum:h}=e._zod.bag;typeof v=="number"&&(d.minItems=v),typeof h=="number"&&(d.maxItems=h),d.type="array",d.items=this.process(i.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=i.shape;for(const y in v)d.properties[y]=this.process(v[y],{...l,path:[...l.path,"properties",y]});const h=new Set(Object.keys(v)),b=new Set([...h].filter(y=>{const E=i.shape[y]._zod;return this.io==="input"?E.optin===void 0:E.optout===void 0}));b.size>0&&(d.required=Array.from(b)),i.catchall?._zod.def.type==="never"?d.additionalProperties=!1:i.catchall?i.catchall&&(d.additionalProperties=this.process(i.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=i.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(i.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(i.right,{...l,path:[...l.path,"allOf",1]}),b=E=>"allOf"in E&&Object.keys(E).length===1,y=[...b(v)?v.allOf:[v],...b(h)?h.allOf:[h]];d.allOf=y;break}case"tuple":{const d=m;d.type="array";const v=i.items.map((y,E)=>this.process(y,{...l,path:[...l.path,"prefixItems",E]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,i.rest){const y=this.process(i.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=y:d.additionalItems=y}i.rest&&(d.items=this.process(i.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:b}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof b=="number"&&(d.maxItems=b);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(i.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(i.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=m,v=Br(i.entries);v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),d.enum=v;break}case"literal":{const d=m,v=[];for(const h of i.values)if(h===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");v.push(Number(h))}else v.push(h);if(v.length!==0)if(v.length===1){const h=v[0];d.type=h===null?"null":typeof h,d.const=h}else v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),v.every(h=>typeof h=="boolean")&&(d.type="string"),v.every(h=>h===null)&&(d.type="null"),d.enum=v;break}case"file":{const d=m,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:b,mime:y}=e._zod.bag;h!==void 0&&(v.minLength=h),b!==void 0&&(v.maxLength=b),y?y.length===1?(v.contentMediaType=y[0],Object.assign(d,v)):d.anyOf=y.map(E=>({...v,contentMediaType:E})):Object.assign(d,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(i.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(i.innerType,l),a.ref=i.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(i.innerType,l),a.ref=i.innerType,m.default=JSON.parse(JSON.stringify(i.defaultValue));break}case"prefault":{this.process(i.innerType,l),a.ref=i.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(i.defaultValue)));break}case"catch":{this.process(i.innerType,l),a.ref=i.innerType;let d;try{d=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=m,v=e._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=v.source;break}case"pipe":{const d=this.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(i.innerType,l),a.ref=i.innerType,m.readOnly=!0;break}case"promise":{this.process(i.innerType,l),a.ref=i.innerType;break}case"optional":{this.process(i.innerType,l),a.ref=i.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),a.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const s=this.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),this.io==="input"&&re(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((t=a.schema).default??(t.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,n){const t={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},i=this.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=c=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const v=t.external.registry.get(c[0])?.id,h=t.external.uri??(y=>y);if(v)return{ref:h(v)};const b=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=b,{defId:b,ref:`${h("__shared")}#/${l}/${b}`}}if(c[1]===i)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},r=c=>{if(c[1].schema.$ref)return;const l=c[1],{ref:f,defId:m}=u(c);l.def={...l.schema},m&&(l.defId=m);const d=l.schema;for(const v in d)delete d[v];d.$ref=f};if(t.cycles==="throw")for(const c of this.seen.entries()){const l=c[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
69
69
|
|
|
70
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of this.seen.entries()){const l=c[1];if(e===c[0]){r(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){r(c);continue}}if(this.metadataRegistry.get(c[0])?.id){r(c);continue}if(l.cycle){r(c);continue}if(l.count>1&&t.reused==="ref"){r(c);continue}}const a=(c,l)=>{const f=this.seen.get(c),m=f.def??f.schema,d={...m};if(f.ref===null)return;const v=f.ref;if(f.ref=null,v){a(v,l);const h=this.seen.get(v).schema;h.$ref&&l.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(h)):(Object.assign(m,h),Object.assign(m,d))}f.isParent||this.override({zodSchema:c,jsonSchema:m,path:f.path??[]})};for(const c of[...this.seen.entries()].reverse())a(c[0],{target:this.target});const o={};if(this.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?o.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),t.external?.uri){const c=t.external.registry.get(e)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=t.external.uri(c)}Object.assign(o,i.def);const s=t.external?.defs??{};for(const c of this.seen.entries()){const l=c[1];l.def&&l.defId&&(s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(this.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{return JSON.parse(JSON.stringify(o))}catch{throw new Error("Error converting schema to JSON.")}}};function xd(e,n){if(e instanceof Jr){const i=new $a(n),u={};for(const o of e._idmap.entries()){const[s,c]=o;i.process(c)}const r={},a={registry:e,uri:n?.uri,defs:u};for(const o of e._idmap.entries()){const[s,c]=o;r[s]=i.emit(c,{...n,external:a})}if(Object.keys(u).length>0){const o=i.target==="draft-2020-12"?"$defs":"definitions";r.__shared={[o]:u}}return{schemas:r}}const t=new $a(n);return t.process(e),t.emit(e,n)}function re(e,n){const t=n??{seen:new Set};if(t.seen.has(e))return!1;t.seen.add(e);const u=e._zod.def;switch(u.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return re(u.element,t);case"object":{for(const r in u.shape)if(re(u.shape[r],t))return!0;return!1}case"union":{for(const r of u.options)if(re(r,t))return!0;return!1}case"intersection":return re(u.left,t)||re(u.right,t);case"tuple":{for(const r of u.items)if(re(r,t))return!0;return!!(u.rest&&re(u.rest,t))}case"record":return re(u.keyType,t)||re(u.valueType,t);case"map":return re(u.keyType,t)||re(u.valueType,t);case"set":return re(u.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return re(u.innerType,t);case"lazy":return re(u.getter(),t);case"default":return re(u.innerType,t);case"prefault":return re(u.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return re(u.in,t)||re(u.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${u.type}`)}var mg={},Id={};yn(Id,{ZodISODate:()=>Ia,ZodISODateTime:()=>xa,ZodISODuration:()=>Na,ZodISOTime:()=>Fa,date:()=>Nd,datetime:()=>Fd,duration:()=>Od,time:()=>Td});var xa=p("ZodISODateTime",(e,n)=>{Tc.init(e,n),X.init(e,n)});function Fd(e){return ql(xa,e)}var Ia=p("ZodISODate",(e,n)=>{Oc.init(e,n),X.init(e,n)});function Nd(e){return Gl(Ia,e)}var Fa=p("ZodISOTime",(e,n)=>{zc.init(e,n),X.init(e,n)});function Td(e){return Jl(Fa,e)}var Na=p("ZodISODuration",(e,n)=>{Uc.init(e,n),X.init(e,n)});function Od(e){return Hl(Na,e)}var zd=(e,n)=>{_r.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>Sr(e,t)},flatten:{value:t=>Ar(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},vg=p("ZodError",zd),qt=p("ZodError",zd,{Parent:Error}),Ud=wr(qt),Pd=$r(qt),jd=Ir(qt),Rd=Fr(qt),Z=p("ZodType",(e,n)=>(U.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(t,i)=>Ve(e,t,i),e.brand=()=>e,e.register=(t,i)=>(t.add(e,i),e),e.parse=(t,i)=>Ud(e,t,i,{callee:e.parse}),e.safeParse=(t,i)=>jd(e,t,i),e.parseAsync=async(t,i)=>Pd(e,t,i,{callee:e.parseAsync}),e.safeParseAsync=async(t,i)=>Rd(e,t,i),e.spa=e.safeParseAsync,e.refine=(t,i)=>e.check(Cf(t,i)),e.superRefine=t=>e.check($f(t)),e.overwrite=t=>e.check($n(t)),e.optional=()=>Wu(e),e.nullable=()=>Yu(e),e.nullish=()=>Wu(Yu(e)),e.nonoptional=t=>hf(e,t),e.array=()=>to(e),e.or=t=>Qu([e,t]),e.and=t=>nf(e,t),e.transform=t=>Xu(e,ao(t)),e.default=t=>mf(e,t),e.prefault=t=>pf(e,t),e.catch=t=>yf(e,t),e.pipe=t=>Xu(e,t),e.readonly=()=>Df(e),e.describe=t=>{const i=e.clone();return Sn.add(i,{description:t}),i},Object.defineProperty(e,"description",{get(){return Sn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Sn.get(e);const i=e.clone();return Sn.add(i,t[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ta=p("_ZodString",(e,n)=>{Zt.init(e,n),Z.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...i)=>e.check(ga(...i)),e.includes=(...i)=>e.check(ba(...i)),e.startsWith=(...i)=>e.check(ka(...i)),e.endsWith=(...i)=>e.check(Da(...i)),e.min=(...i)=>e.check(Hn(...i)),e.max=(...i)=>e.check(Ru(...i)),e.length=(...i)=>e.check(Lu(...i)),e.nonempty=(...i)=>e.check(Hn(1,...i)),e.lowercase=i=>e.check(Ea(i)),e.uppercase=i=>e.check(ya(i)),e.trim=()=>e.check(Aa()),e.normalize=(...i)=>e.check(_a(...i)),e.toLowerCase=()=>e.check(Sa()),e.toUpperCase=()=>e.check(wa())}),Zu=p("ZodString",(e,n)=>{Zt.init(e,n),Ta.init(e,n),e.email=t=>e.check(Kr(za,t)),e.url=t=>e.check(ea(Ua,t)),e.jwt=t=>e.check(pa(Ya,t)),e.emoji=t=>e.check(na(Pa,t)),e.guid=t=>e.check(Uu(Vu,t)),e.uuid=t=>e.check(Qr(He,t)),e.uuidv4=t=>e.check(Wr(He,t)),e.uuidv6=t=>e.check(Yr(He,t)),e.uuidv7=t=>e.check(Xr(He,t)),e.nanoid=t=>e.check(ta(ja,t)),e.guid=t=>e.check(Uu(Vu,t)),e.cuid=t=>e.check(ua(Ra,t)),e.cuid2=t=>e.check(ia(La,t)),e.ulid=t=>e.check(ra(Za,t)),e.base64=t=>e.check(fa(Ka,t)),e.base64url=t=>e.check(ma(Qa,t)),e.xid=t=>e.check(aa(Va,t)),e.ksuid=t=>e.check(oa(Ma,t)),e.ipv4=t=>e.check(sa(qa,t)),e.ipv6=t=>e.check(ca(Ga,t)),e.cidrv4=t=>e.check(la(Ja,t)),e.cidrv6=t=>e.check(da(Ha,t)),e.e164=t=>e.check(va(Wa,t)),e.datetime=t=>e.check(Fd(t)),e.date=t=>e.check(Nd(t)),e.time=t=>e.check(Td(t)),e.duration=t=>e.check(Od(t))});function Oa(e){return Zl(Zu,e)}var X=p("ZodStringFormat",(e,n)=>{W.init(e,n),Ta.init(e,n)}),za=p("ZodEmail",(e,n)=>{Ac.init(e,n),X.init(e,n)});function pg(e){return Kr(za,e)}var Vu=p("ZodGUID",(e,n)=>{Bc.init(e,n),X.init(e,n)});function hg(e){return Uu(Vu,e)}var He=p("ZodUUID",(e,n)=>{_c.init(e,n),X.init(e,n)});function gg(e){return Qr(He,e)}function Eg(e){return Wr(He,e)}function yg(e){return Yr(He,e)}function bg(e){return Xr(He,e)}var Ua=p("ZodURL",(e,n)=>{Sc.init(e,n),X.init(e,n)});function kg(e){return ea(Ua,e)}var Pa=p("ZodEmoji",(e,n)=>{wc.init(e,n),X.init(e,n)});function Dg(e){return na(Pa,e)}var ja=p("ZodNanoID",(e,n)=>{Cc.init(e,n),X.init(e,n)});function Bg(e){return ta(ja,e)}var Ra=p("ZodCUID",(e,n)=>{$c.init(e,n),X.init(e,n)});function _g(e){return ua(Ra,e)}var La=p("ZodCUID2",(e,n)=>{xc.init(e,n),X.init(e,n)});function Ag(e){return ia(La,e)}var Za=p("ZodULID",(e,n)=>{Ic.init(e,n),X.init(e,n)});function Sg(e){return ra(Za,e)}var Va=p("ZodXID",(e,n)=>{Fc.init(e,n),X.init(e,n)});function wg(e){return aa(Va,e)}var Ma=p("ZodKSUID",(e,n)=>{Nc.init(e,n),X.init(e,n)});function Cg(e){return oa(Ma,e)}var qa=p("ZodIPv4",(e,n)=>{Pc.init(e,n),X.init(e,n)});function $g(e){return sa(qa,e)}var Ga=p("ZodIPv6",(e,n)=>{jc.init(e,n),X.init(e,n)});function xg(e){return ca(Ga,e)}var Ja=p("ZodCIDRv4",(e,n)=>{Rc.init(e,n),X.init(e,n)});function Ig(e){return la(Ja,e)}var Ha=p("ZodCIDRv6",(e,n)=>{Lc.init(e,n),X.init(e,n)});function Fg(e){return da(Ha,e)}var Ka=p("ZodBase64",(e,n)=>{Zc.init(e,n),X.init(e,n)});function Ng(e){return fa(Ka,e)}var Qa=p("ZodBase64URL",(e,n)=>{Mc.init(e,n),X.init(e,n)});function Tg(e){return ma(Qa,e)}var Wa=p("ZodE164",(e,n)=>{qc.init(e,n),X.init(e,n)});function Og(e){return va(Wa,e)}var Ya=p("ZodJWT",(e,n)=>{Jc.init(e,n),X.init(e,n)});function zg(e){return pa(Ya,e)}var Ld=p("ZodCustomStringFormat",(e,n)=>{Hc.init(e,n),X.init(e,n)});function Ug(e,n,t={}){return wd(Ld,e,n,t)}var Mu=p("ZodNumber",(e,n)=>{Pr.init(e,n),Z.init(e,n),e.gt=(i,u)=>e.check(Cn(i,u)),e.gte=(i,u)=>e.check(Se(i,u)),e.min=(i,u)=>e.check(Se(i,u)),e.lt=(i,u)=>e.check(wn(i,u)),e.lte=(i,u)=>e.check(Le(i,u)),e.max=(i,u)=>e.check(Le(i,u)),e.int=i=>e.check(Xa(i)),e.safe=i=>e.check(Xa(i)),e.positive=i=>e.check(Cn(0,i)),e.nonnegative=i=>e.check(Se(0,i)),e.negative=i=>e.check(wn(0,i)),e.nonpositive=i=>e.check(Le(0,i)),e.multipleOf=(i,u)=>e.check(Vt(i,u)),e.step=(i,u)=>e.check(Vt(i,u)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function Zd(e){return Kl(Mu,e)}var Kn=p("ZodNumberFormat",(e,n)=>{Kc.init(e,n),Mu.init(e,n)});function Xa(e){return Wl(Kn,e)}function Pg(e){return Yl(Kn,e)}function jg(e){return Xl(Kn,e)}function Rg(e){return ed(Kn,e)}function Lg(e){return nd(Kn,e)}var qu=p("ZodBoolean",(e,n)=>{jr.init(e,n),Z.init(e,n)});function Vd(e){return td(qu,e)}var Gu=p("ZodBigInt",(e,n)=>{Rr.init(e,n),Z.init(e,n),e.gte=(i,u)=>e.check(Se(i,u)),e.min=(i,u)=>e.check(Se(i,u)),e.gt=(i,u)=>e.check(Cn(i,u)),e.gte=(i,u)=>e.check(Se(i,u)),e.min=(i,u)=>e.check(Se(i,u)),e.lt=(i,u)=>e.check(wn(i,u)),e.lte=(i,u)=>e.check(Le(i,u)),e.max=(i,u)=>e.check(Le(i,u)),e.positive=i=>e.check(Cn(BigInt(0),i)),e.negative=i=>e.check(wn(BigInt(0),i)),e.nonpositive=i=>e.check(Le(BigInt(0),i)),e.nonnegative=i=>e.check(Se(BigInt(0),i)),e.multipleOf=(i,u)=>e.check(Vt(i,u));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function Zg(e){return id(Gu,e)}var eo=p("ZodBigIntFormat",(e,n)=>{Qc.init(e,n),Gu.init(e,n)});function Vg(e){return ad(eo,e)}function Mg(e){return od(eo,e)}var Md=p("ZodSymbol",(e,n)=>{Wc.init(e,n),Z.init(e,n)});function qg(e){return sd(Md,e)}var qd=p("ZodUndefined",(e,n)=>{Yc.init(e,n),Z.init(e,n)});function Gg(e){return cd(qd,e)}var Gd=p("ZodNull",(e,n)=>{Xc.init(e,n),Z.init(e,n)});function Jd(e){return ld(Gd,e)}var Hd=p("ZodAny",(e,n)=>{el.init(e,n),Z.init(e,n)});function Jg(){return dd(Hd)}var Kd=p("ZodUnknown",(e,n)=>{Nu.init(e,n),Z.init(e,n)});function Ju(){return Pu(Kd)}var Qd=p("ZodNever",(e,n)=>{nl.init(e,n),Z.init(e,n)});function Hu(e){return fd(Qd,e)}var Wd=p("ZodVoid",(e,n)=>{tl.init(e,n),Z.init(e,n)});function Hg(e){return md(Wd,e)}var no=p("ZodDate",(e,n)=>{ul.init(e,n),Z.init(e,n),e.min=(i,u)=>e.check(Se(i,u)),e.max=(i,u)=>e.check(Le(i,u));const t=e._zod.bag;e.minDate=t.minimum?new Date(t.minimum):null,e.maxDate=t.maximum?new Date(t.maximum):null});function Kg(e){return vd(no,e)}var Yd=p("ZodArray",(e,n)=>{Lr.init(e,n),Z.init(e,n),e.element=n.element,e.min=(t,i)=>e.check(Hn(t,i)),e.nonempty=t=>e.check(Hn(1,t)),e.max=(t,i)=>e.check(Ru(t,i)),e.length=(t,i)=>e.check(Lu(t,i)),e.unwrap=()=>e.element});function to(e,n){return Ca(Yd,e,n)}function Qg(e){const n=e._zod.def.shape;return cf(Object.keys(n))}var Ku=p("ZodObject",(e,n)=>{al.init(e,n),Z.init(e,n),q.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>of(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ju()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ju()}),e.strict=()=>e.clone({...e._zod.def,catchall:Hu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>q.extend(e,t),e.merge=t=>q.merge(e,t),e.pick=t=>q.pick(e,t),e.omit=t=>q.omit(e,t),e.partial=(...t)=>q.partial(oo,e,t[0]),e.required=(...t)=>q.required(so,e,t[0])});function Wg(e,n){const t={type:"object",get shape(){return q.assignProp(this,"shape",{...e}),this.shape},...q.normalizeParams(n)};return new Ku(t)}function Yg(e,n){return new Ku({type:"object",get shape(){return q.assignProp(this,"shape",{...e}),this.shape},catchall:Hu(),...q.normalizeParams(n)})}function Xg(e,n){return new Ku({type:"object",get shape(){return q.assignProp(this,"shape",{...e}),this.shape},catchall:Ju(),...q.normalizeParams(n)})}var uo=p("ZodUnion",(e,n)=>{Zr.init(e,n),Z.init(e,n),e.options=n.options});function Qu(e,n){return new uo({type:"union",options:e,...q.normalizeParams(n)})}var Xd=p("ZodDiscriminatedUnion",(e,n)=>{uo.init(e,n),sl.init(e,n)});function e3(e,n,t){return new Xd({type:"union",options:n,discriminator:e,...q.normalizeParams(t)})}var ef=p("ZodIntersection",(e,n)=>{cl.init(e,n),Z.init(e,n)});function nf(e,n){return new ef({type:"intersection",left:e,right:n})}var tf=p("ZodTuple",(e,n)=>{Ou.init(e,n),Z.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function n3(e,n,t){const i=n instanceof U,u=i?t:n,r=i?n:null;return new tf({type:"tuple",items:e,rest:r,...q.normalizeParams(u)})}var io=p("ZodRecord",(e,n)=>{dl.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function uf(e,n,t){return new io({type:"record",keyType:e,valueType:n,...q.normalizeParams(t)})}function t3(e,n,t){return new io({type:"record",keyType:Qu([e,Hu()]),valueType:n,...q.normalizeParams(t)})}var rf=p("ZodMap",(e,n)=>{fl.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function u3(e,n,t){return new rf({type:"map",keyType:e,valueType:n,...q.normalizeParams(t)})}var af=p("ZodSet",(e,n)=>{vl.init(e,n),Z.init(e,n),e.min=(...t)=>e.check(Mt(...t)),e.nonempty=t=>e.check(Mt(1,t)),e.max=(...t)=>e.check(ju(...t)),e.size=(...t)=>e.check(ha(...t))});function i3(e,n){return new af({type:"set",valueType:e,...q.normalizeParams(n)})}var Gt=p("ZodEnum",(e,n)=>{hl.init(e,n),Z.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(i,u)=>{const r={};for(const a of i)if(t.has(a))r[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Gt({...n,checks:[],...q.normalizeParams(u),entries:r})},e.exclude=(i,u)=>{const r={...n.entries};for(const a of i)if(t.has(a))delete r[a];else throw new Error(`Key ${a} not found in enum`);return new Gt({...n,checks:[],...q.normalizeParams(u),entries:r})}});function of(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Gt({type:"enum",entries:t,...q.normalizeParams(n)})}function r3(e,n){return new Gt({type:"enum",entries:e,...q.normalizeParams(n)})}var sf=p("ZodLiteral",(e,n)=>{gl.init(e,n),Z.init(e,n),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 cf(e,n){return new sf({type:"literal",values:Array.isArray(e)?e:[e],...q.normalizeParams(n)})}var lf=p("ZodFile",(e,n)=>{El.init(e,n),Z.init(e,n),e.min=(t,i)=>e.check(Mt(t,i)),e.max=(t,i)=>e.check(ju(t,i)),e.mime=(t,i)=>e.check(Ba(Array.isArray(t)?t:[t],i))});function a3(e){return Bd(lf,e)}var ro=p("ZodTransform",(e,n)=>{Mr.init(e,n),Z.init(e,n),e._zod.parse=(t,i)=>{t.addIssue=r=>{if(typeof r=="string")t.issues.push(q.issue(r,t.value,n));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),t.issues.push(q.issue(a))}};const u=n.transform(t.value,t);return u instanceof Promise?u.then(r=>(t.value=r,t)):(t.value=u,t)}});function ao(e){return new ro({type:"transform",transform:e})}var oo=p("ZodOptional",(e,n)=>{yl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Wu(e){return new oo({type:"optional",innerType:e})}var df=p("ZodNullable",(e,n)=>{bl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Yu(e){return new df({type:"nullable",innerType:e})}function o3(e){return Wu(Yu(e))}var ff=p("ZodDefault",(e,n)=>{kl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mf(e,n){return new ff({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var vf=p("ZodPrefault",(e,n)=>{Bl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function pf(e,n){return new vf({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var so=p("ZodNonOptional",(e,n)=>{_l.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function hf(e,n){return new so({type:"nonoptional",innerType:e,...q.normalizeParams(n)})}var gf=p("ZodSuccess",(e,n)=>{Sl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function s3(e){return new gf({type:"success",innerType:e})}var Ef=p("ZodCatch",(e,n)=>{wl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function yf(e,n){return new Ef({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var bf=p("ZodNaN",(e,n)=>{Cl.init(e,n),Z.init(e,n)});function c3(e){return hd(bf,e)}var co=p("ZodPipe",(e,n)=>{qr.init(e,n),Z.init(e,n),e.in=n.in,e.out=n.out});function Xu(e,n){return new co({type:"pipe",in:e,out:n})}var kf=p("ZodReadonly",(e,n)=>{xl.init(e,n),Z.init(e,n)});function Df(e){return new kf({type:"readonly",innerType:e})}var Bf=p("ZodTemplateLiteral",(e,n)=>{Fl.init(e,n),Z.init(e,n)});function l3(e,n){return new Bf({type:"template_literal",parts:e,...q.normalizeParams(n)})}var _f=p("ZodLazy",(e,n)=>{Tl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.getter()});function Af(e){return new _f({type:"lazy",getter:e})}var Sf=p("ZodPromise",(e,n)=>{Nl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function d3(e){return new Sf({type:"promise",innerType:e})}var ei=p("ZodCustom",(e,n)=>{Ol.init(e,n),Z.init(e,n)});function wf(e){const n=new ue({check:"custom"});return n._zod.check=e,n}function f3(e,n){return _d(ei,e??(()=>!0),n)}function Cf(e,n={}){return Ad(ei,e,n)}function $f(e){const n=wf(t=>(t.addIssue=i=>{if(typeof i=="string")t.issues.push(q.issue(i,t.value,n._zod.def));else{const u=i;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=t.value),u.inst??(u.inst=n),u.continue??(u.continue=!n._zod.def.abort),t.issues.push(q.issue(u))}},e(t.value,t)));return n}function m3(e,n={error:`Input not instance of ${e.name}`}){const t=new ei({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...q.normalizeParams(n)});return t._zod.bag.Class=e,t}var v3=(...e)=>Sd({Pipe:co,Boolean:qu,String:Zu,Transform:ro},...e);function p3(e){const n=Af(()=>Qu([Oa(e),Zd(),Vd(),Jd(),to(n),uf(Oa(),n)]));return n}function h3(e,n){return Xu(ao(e),n)}var g3={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 E3(e){ye({customError:e})}function y3(){return ye().customError}var lo;lo||(lo={});var xf={};yn(xf,{bigint:()=>B3,boolean:()=>D3,date:()=>_3,number:()=>k3,string:()=>b3});function b3(e){return Vl(Zu,e)}function k3(e){return Ql(Mu,e)}function D3(e){return ud(qu,e)}function B3(e){return rd(Gu,e)}function _3(e){return pd(no,e)}ye(Pl());var Qn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountSubType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownedByUser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"USBankAccountDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1289}};Qn.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
|
|
70
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of this.seen.entries()){const l=c[1];if(e===c[0]){r(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){r(c);continue}}if(this.metadataRegistry.get(c[0])?.id){r(c);continue}if(l.cycle){r(c);continue}if(l.count>1&&t.reused==="ref"){r(c);continue}}const a=(c,l)=>{const f=this.seen.get(c),m=f.def??f.schema,d={...m};if(f.ref===null)return;const v=f.ref;if(f.ref=null,v){a(v,l);const h=this.seen.get(v).schema;h.$ref&&l.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(h)):(Object.assign(m,h),Object.assign(m,d))}f.isParent||this.override({zodSchema:c,jsonSchema:m,path:f.path??[]})};for(const c of[...this.seen.entries()].reverse())a(c[0],{target:this.target});const o={};if(this.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?o.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),t.external?.uri){const c=t.external.registry.get(e)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=t.external.uri(c)}Object.assign(o,i.def);const s=t.external?.defs??{};for(const c of this.seen.entries()){const l=c[1];l.def&&l.defId&&(s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(this.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{return JSON.parse(JSON.stringify(o))}catch{throw new Error("Error converting schema to JSON.")}}};function Td(e,n){if(e instanceof Kr){const i=new Ia(n),u={};for(const o of e._idmap.entries()){const[s,c]=o;i.process(c)}const r={},a={registry:e,uri:n?.uri,defs:u};for(const o of e._idmap.entries()){const[s,c]=o;r[s]=i.emit(c,{...n,external:a})}if(Object.keys(u).length>0){const o=i.target==="draft-2020-12"?"$defs":"definitions";r.__shared={[o]:u}}return{schemas:r}}const t=new Ia(n);return t.process(e),t.emit(e,n)}function re(e,n){const t=n??{seen:new Set};if(t.seen.has(e))return!1;t.seen.add(e);const u=e._zod.def;switch(u.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return re(u.element,t);case"object":{for(const r in u.shape)if(re(u.shape[r],t))return!0;return!1}case"union":{for(const r of u.options)if(re(r,t))return!0;return!1}case"intersection":return re(u.left,t)||re(u.right,t);case"tuple":{for(const r of u.items)if(re(r,t))return!0;return!!(u.rest&&re(u.rest,t))}case"record":return re(u.keyType,t)||re(u.valueType,t);case"map":return re(u.keyType,t)||re(u.valueType,t);case"set":return re(u.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return re(u.innerType,t);case"lazy":return re(u.getter(),t);case"default":return re(u.innerType,t);case"prefault":return re(u.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return re(u.in,t)||re(u.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${u.type}`)}var bg={},Od={};yn(Od,{ZodISODate:()=>Na,ZodISODateTime:()=>Fa,ZodISODuration:()=>Oa,ZodISOTime:()=>Ta,date:()=>Ud,datetime:()=>zd,duration:()=>jd,time:()=>Pd});var Fa=p("ZodISODateTime",(e,n)=>{Pc.init(e,n),X.init(e,n)});function zd(e){return Kl(Fa,e)}var Na=p("ZodISODate",(e,n)=>{jc.init(e,n),X.init(e,n)});function Ud(e){return Ql(Na,e)}var Ta=p("ZodISOTime",(e,n)=>{Rc.init(e,n),X.init(e,n)});function Pd(e){return Wl(Ta,e)}var Oa=p("ZodISODuration",(e,n)=>{Lc.init(e,n),X.init(e,n)});function jd(e){return Yl(Oa,e)}var Rd=(e,n)=>{Sr.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>Cr(e,t)},flatten:{value:t=>wr(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},kg=p("ZodError",Rd),Mt=p("ZodError",Rd,{Parent:Error}),Ld=$r(Mt),Zd=Ir(Mt),Vd=Nr(Mt),qd=Tr(Mt),Z=p("ZodType",(e,n)=>(U.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(t,i)=>Ve(e,t,i),e.brand=()=>e,e.register=(t,i)=>(t.add(e,i),e),e.parse=(t,i)=>Ld(e,t,i,{callee:e.parse}),e.safeParse=(t,i)=>Vd(e,t,i),e.parseAsync=async(t,i)=>Zd(e,t,i,{callee:e.parseAsync}),e.safeParseAsync=async(t,i)=>qd(e,t,i),e.spa=e.safeParseAsync,e.refine=(t,i)=>e.check(Ff(t,i)),e.superRefine=t=>e.check(Nf(t)),e.overwrite=t=>e.check($n(t)),e.optional=()=>Wu(e),e.nullable=()=>Yu(e),e.nullish=()=>Wu(Yu(e)),e.nonoptional=t=>bf(e,t),e.array=()=>io(e),e.or=t=>Qu([e,t]),e.and=t=>af(e,t),e.transform=t=>Xu(e,so(t)),e.default=t=>gf(e,t),e.prefault=t=>yf(e,t),e.catch=t=>Bf(e,t),e.pipe=t=>Xu(e,t),e.readonly=()=>Sf(e),e.describe=t=>{const i=e.clone();return Sn.add(i,{description:t}),i},Object.defineProperty(e,"description",{get(){return Sn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Sn.get(e);const i=e.clone();return Sn.add(i,t[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),za=p("_ZodString",(e,n)=>{Zt.init(e,n),Z.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...i)=>e.check(ya(...i)),e.includes=(...i)=>e.check(Da(...i)),e.startsWith=(...i)=>e.check(Ba(...i)),e.endsWith=(...i)=>e.check(_a(...i)),e.min=(...i)=>e.check(Hn(...i)),e.max=(...i)=>e.check(Ru(...i)),e.length=(...i)=>e.check(Lu(...i)),e.nonempty=(...i)=>e.check(Hn(1,...i)),e.lowercase=i=>e.check(ba(i)),e.uppercase=i=>e.check(ka(i)),e.trim=()=>e.check(wa()),e.normalize=(...i)=>e.check(Sa(...i)),e.toLowerCase=()=>e.check(Ca()),e.toUpperCase=()=>e.check($a())}),Zu=p("ZodString",(e,n)=>{Zt.init(e,n),za.init(e,n),e.email=t=>e.check(Wr(Pa,t)),e.url=t=>e.check(ta(ja,t)),e.jwt=t=>e.check(ga(eo,t)),e.emoji=t=>e.check(ua(Ra,t)),e.guid=t=>e.check(Uu(Vu,t)),e.uuid=t=>e.check(Yr(He,t)),e.uuidv4=t=>e.check(Xr(He,t)),e.uuidv6=t=>e.check(ea(He,t)),e.uuidv7=t=>e.check(na(He,t)),e.nanoid=t=>e.check(ia(La,t)),e.guid=t=>e.check(Uu(Vu,t)),e.cuid=t=>e.check(ra(Za,t)),e.cuid2=t=>e.check(aa(Va,t)),e.ulid=t=>e.check(oa(qa,t)),e.base64=t=>e.check(va(Wa,t)),e.base64url=t=>e.check(pa(Ya,t)),e.xid=t=>e.check(sa(Ma,t)),e.ksuid=t=>e.check(ca(Ga,t)),e.ipv4=t=>e.check(la(Ja,t)),e.ipv6=t=>e.check(da(Ha,t)),e.cidrv4=t=>e.check(fa(Ka,t)),e.cidrv6=t=>e.check(ma(Qa,t)),e.e164=t=>e.check(ha(Xa,t)),e.datetime=t=>e.check(zd(t)),e.date=t=>e.check(Ud(t)),e.time=t=>e.check(Pd(t)),e.duration=t=>e.check(jd(t))});function Ua(e){return Gl(Zu,e)}var X=p("ZodStringFormat",(e,n)=>{W.init(e,n),za.init(e,n)}),Pa=p("ZodEmail",(e,n)=>{$c.init(e,n),X.init(e,n)});function Dg(e){return Wr(Pa,e)}var Vu=p("ZodGUID",(e,n)=>{wc.init(e,n),X.init(e,n)});function Bg(e){return Uu(Vu,e)}var He=p("ZodUUID",(e,n)=>{Cc.init(e,n),X.init(e,n)});function _g(e){return Yr(He,e)}function Ag(e){return Xr(He,e)}function Sg(e){return ea(He,e)}function wg(e){return na(He,e)}var ja=p("ZodURL",(e,n)=>{xc.init(e,n),X.init(e,n)});function Cg(e){return ta(ja,e)}var Ra=p("ZodEmoji",(e,n)=>{Ic.init(e,n),X.init(e,n)});function $g(e){return ua(Ra,e)}var La=p("ZodNanoID",(e,n)=>{Fc.init(e,n),X.init(e,n)});function xg(e){return ia(La,e)}var Za=p("ZodCUID",(e,n)=>{Nc.init(e,n),X.init(e,n)});function Ig(e){return ra(Za,e)}var Va=p("ZodCUID2",(e,n)=>{Tc.init(e,n),X.init(e,n)});function Fg(e){return aa(Va,e)}var qa=p("ZodULID",(e,n)=>{Oc.init(e,n),X.init(e,n)});function Ng(e){return oa(qa,e)}var Ma=p("ZodXID",(e,n)=>{zc.init(e,n),X.init(e,n)});function Tg(e){return sa(Ma,e)}var Ga=p("ZodKSUID",(e,n)=>{Uc.init(e,n),X.init(e,n)});function Og(e){return ca(Ga,e)}var Ja=p("ZodIPv4",(e,n)=>{Zc.init(e,n),X.init(e,n)});function zg(e){return la(Ja,e)}var Ha=p("ZodIPv6",(e,n)=>{Vc.init(e,n),X.init(e,n)});function Ug(e){return da(Ha,e)}var Ka=p("ZodCIDRv4",(e,n)=>{qc.init(e,n),X.init(e,n)});function Pg(e){return fa(Ka,e)}var Qa=p("ZodCIDRv6",(e,n)=>{Mc.init(e,n),X.init(e,n)});function jg(e){return ma(Qa,e)}var Wa=p("ZodBase64",(e,n)=>{Gc.init(e,n),X.init(e,n)});function Rg(e){return va(Wa,e)}var Ya=p("ZodBase64URL",(e,n)=>{Hc.init(e,n),X.init(e,n)});function Lg(e){return pa(Ya,e)}var Xa=p("ZodE164",(e,n)=>{Kc.init(e,n),X.init(e,n)});function Zg(e){return ha(Xa,e)}var eo=p("ZodJWT",(e,n)=>{Wc.init(e,n),X.init(e,n)});function Vg(e){return ga(eo,e)}var Md=p("ZodCustomStringFormat",(e,n)=>{Yc.init(e,n),X.init(e,n)});function qg(e,n,t={}){return Id(Md,e,n,t)}var qu=p("ZodNumber",(e,n)=>{Rr.init(e,n),Z.init(e,n),e.gt=(i,u)=>e.check(Cn(i,u)),e.gte=(i,u)=>e.check(Se(i,u)),e.min=(i,u)=>e.check(Se(i,u)),e.lt=(i,u)=>e.check(wn(i,u)),e.lte=(i,u)=>e.check(Le(i,u)),e.max=(i,u)=>e.check(Le(i,u)),e.int=i=>e.check(no(i)),e.safe=i=>e.check(no(i)),e.positive=i=>e.check(Cn(0,i)),e.nonnegative=i=>e.check(Se(0,i)),e.negative=i=>e.check(wn(0,i)),e.nonpositive=i=>e.check(Le(0,i)),e.multipleOf=(i,u)=>e.check(Vt(i,u)),e.step=(i,u)=>e.check(Vt(i,u)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function Gd(e){return Xl(qu,e)}var Kn=p("ZodNumberFormat",(e,n)=>{Xc.init(e,n),qu.init(e,n)});function no(e){return nd(Kn,e)}function Mg(e){return td(Kn,e)}function Gg(e){return ud(Kn,e)}function Jg(e){return id(Kn,e)}function Hg(e){return rd(Kn,e)}var Mu=p("ZodBoolean",(e,n)=>{Lr.init(e,n),Z.init(e,n)});function Jd(e){return ad(Mu,e)}var Gu=p("ZodBigInt",(e,n)=>{Zr.init(e,n),Z.init(e,n),e.gte=(i,u)=>e.check(Se(i,u)),e.min=(i,u)=>e.check(Se(i,u)),e.gt=(i,u)=>e.check(Cn(i,u)),e.gte=(i,u)=>e.check(Se(i,u)),e.min=(i,u)=>e.check(Se(i,u)),e.lt=(i,u)=>e.check(wn(i,u)),e.lte=(i,u)=>e.check(Le(i,u)),e.max=(i,u)=>e.check(Le(i,u)),e.positive=i=>e.check(Cn(BigInt(0),i)),e.negative=i=>e.check(wn(BigInt(0),i)),e.nonpositive=i=>e.check(Le(BigInt(0),i)),e.nonnegative=i=>e.check(Se(BigInt(0),i)),e.multipleOf=(i,u)=>e.check(Vt(i,u));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function Kg(e){return sd(Gu,e)}var to=p("ZodBigIntFormat",(e,n)=>{el.init(e,n),Gu.init(e,n)});function Qg(e){return ld(to,e)}function Wg(e){return dd(to,e)}var Hd=p("ZodSymbol",(e,n)=>{nl.init(e,n),Z.init(e,n)});function Yg(e){return fd(Hd,e)}var Kd=p("ZodUndefined",(e,n)=>{tl.init(e,n),Z.init(e,n)});function Xg(e){return md(Kd,e)}var Qd=p("ZodNull",(e,n)=>{ul.init(e,n),Z.init(e,n)});function Wd(e){return vd(Qd,e)}var Yd=p("ZodAny",(e,n)=>{il.init(e,n),Z.init(e,n)});function e3(){return pd(Yd)}var Xd=p("ZodUnknown",(e,n)=>{Nu.init(e,n),Z.init(e,n)});function Ju(){return Pu(Xd)}var ef=p("ZodNever",(e,n)=>{rl.init(e,n),Z.init(e,n)});function Hu(e){return hd(ef,e)}var nf=p("ZodVoid",(e,n)=>{al.init(e,n),Z.init(e,n)});function n3(e){return gd(nf,e)}var uo=p("ZodDate",(e,n)=>{ol.init(e,n),Z.init(e,n),e.min=(i,u)=>e.check(Se(i,u)),e.max=(i,u)=>e.check(Le(i,u));const t=e._zod.bag;e.minDate=t.minimum?new Date(t.minimum):null,e.maxDate=t.maximum?new Date(t.maximum):null});function t3(e){return Ed(uo,e)}var tf=p("ZodArray",(e,n)=>{Vr.init(e,n),Z.init(e,n),e.element=n.element,e.min=(t,i)=>e.check(Hn(t,i)),e.nonempty=t=>e.check(Hn(1,t)),e.max=(t,i)=>e.check(Ru(t,i)),e.length=(t,i)=>e.check(Lu(t,i)),e.unwrap=()=>e.element});function io(e,n){return xa(tf,e,n)}function u3(e){const n=e._zod.def.shape;return mf(Object.keys(n))}var Ku=p("ZodObject",(e,n)=>{ll.init(e,n),Z.init(e,n),M.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>df(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ju()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ju()}),e.strict=()=>e.clone({...e._zod.def,catchall:Hu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>M.extend(e,t),e.merge=t=>M.merge(e,t),e.pick=t=>M.pick(e,t),e.omit=t=>M.omit(e,t),e.partial=(...t)=>M.partial(co,e,t[0]),e.required=(...t)=>M.required(lo,e,t[0])});function i3(e,n){const t={type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},...M.normalizeParams(n)};return new Ku(t)}function r3(e,n){return new Ku({type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},catchall:Hu(),...M.normalizeParams(n)})}function a3(e,n){return new Ku({type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},catchall:Ju(),...M.normalizeParams(n)})}var ro=p("ZodUnion",(e,n)=>{qr.init(e,n),Z.init(e,n),e.options=n.options});function Qu(e,n){return new ro({type:"union",options:e,...M.normalizeParams(n)})}var uf=p("ZodDiscriminatedUnion",(e,n)=>{ro.init(e,n),fl.init(e,n)});function o3(e,n,t){return new uf({type:"union",options:n,discriminator:e,...M.normalizeParams(t)})}var rf=p("ZodIntersection",(e,n)=>{ml.init(e,n),Z.init(e,n)});function af(e,n){return new rf({type:"intersection",left:e,right:n})}var of=p("ZodTuple",(e,n)=>{Ou.init(e,n),Z.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function s3(e,n,t){const i=n instanceof U,u=i?t:n,r=i?n:null;return new of({type:"tuple",items:e,rest:r,...M.normalizeParams(u)})}var ao=p("ZodRecord",(e,n)=>{pl.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function sf(e,n,t){return new ao({type:"record",keyType:e,valueType:n,...M.normalizeParams(t)})}function c3(e,n,t){return new ao({type:"record",keyType:Qu([e,Hu()]),valueType:n,...M.normalizeParams(t)})}var cf=p("ZodMap",(e,n)=>{hl.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function l3(e,n,t){return new cf({type:"map",keyType:e,valueType:n,...M.normalizeParams(t)})}var lf=p("ZodSet",(e,n)=>{El.init(e,n),Z.init(e,n),e.min=(...t)=>e.check(qt(...t)),e.nonempty=t=>e.check(qt(1,t)),e.max=(...t)=>e.check(ju(...t)),e.size=(...t)=>e.check(Ea(...t))});function d3(e,n){return new lf({type:"set",valueType:e,...M.normalizeParams(n)})}var Gt=p("ZodEnum",(e,n)=>{bl.init(e,n),Z.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(i,u)=>{const r={};for(const a of i)if(t.has(a))r[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Gt({...n,checks:[],...M.normalizeParams(u),entries:r})},e.exclude=(i,u)=>{const r={...n.entries};for(const a of i)if(t.has(a))delete r[a];else throw new Error(`Key ${a} not found in enum`);return new Gt({...n,checks:[],...M.normalizeParams(u),entries:r})}});function df(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Gt({type:"enum",entries:t,...M.normalizeParams(n)})}function f3(e,n){return new Gt({type:"enum",entries:e,...M.normalizeParams(n)})}var ff=p("ZodLiteral",(e,n)=>{kl.init(e,n),Z.init(e,n),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 mf(e,n){return new ff({type:"literal",values:Array.isArray(e)?e:[e],...M.normalizeParams(n)})}var vf=p("ZodFile",(e,n)=>{Dl.init(e,n),Z.init(e,n),e.min=(t,i)=>e.check(qt(t,i)),e.max=(t,i)=>e.check(ju(t,i)),e.mime=(t,i)=>e.check(Aa(Array.isArray(t)?t:[t],i))});function m3(e){return wd(vf,e)}var oo=p("ZodTransform",(e,n)=>{Gr.init(e,n),Z.init(e,n),e._zod.parse=(t,i)=>{t.addIssue=r=>{if(typeof r=="string")t.issues.push(M.issue(r,t.value,n));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),t.issues.push(M.issue(a))}};const u=n.transform(t.value,t);return u instanceof Promise?u.then(r=>(t.value=r,t)):(t.value=u,t)}});function so(e){return new oo({type:"transform",transform:e})}var co=p("ZodOptional",(e,n)=>{Bl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Wu(e){return new co({type:"optional",innerType:e})}var pf=p("ZodNullable",(e,n)=>{_l.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Yu(e){return new pf({type:"nullable",innerType:e})}function v3(e){return Wu(Yu(e))}var hf=p("ZodDefault",(e,n)=>{Al.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function gf(e,n){return new hf({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var Ef=p("ZodPrefault",(e,n)=>{wl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function yf(e,n){return new Ef({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var lo=p("ZodNonOptional",(e,n)=>{Cl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function bf(e,n){return new lo({type:"nonoptional",innerType:e,...M.normalizeParams(n)})}var kf=p("ZodSuccess",(e,n)=>{xl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function p3(e){return new kf({type:"success",innerType:e})}var Df=p("ZodCatch",(e,n)=>{Il.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Bf(e,n){return new Df({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var _f=p("ZodNaN",(e,n)=>{Fl.init(e,n),Z.init(e,n)});function h3(e){return bd(_f,e)}var fo=p("ZodPipe",(e,n)=>{Jr.init(e,n),Z.init(e,n),e.in=n.in,e.out=n.out});function Xu(e,n){return new fo({type:"pipe",in:e,out:n})}var Af=p("ZodReadonly",(e,n)=>{Tl.init(e,n),Z.init(e,n)});function Sf(e){return new Af({type:"readonly",innerType:e})}var wf=p("ZodTemplateLiteral",(e,n)=>{zl.init(e,n),Z.init(e,n)});function g3(e,n){return new wf({type:"template_literal",parts:e,...M.normalizeParams(n)})}var Cf=p("ZodLazy",(e,n)=>{Pl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.getter()});function $f(e){return new Cf({type:"lazy",getter:e})}var xf=p("ZodPromise",(e,n)=>{Ul.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function E3(e){return new xf({type:"promise",innerType:e})}var ei=p("ZodCustom",(e,n)=>{jl.init(e,n),Z.init(e,n)});function If(e){const n=new ue({check:"custom"});return n._zod.check=e,n}function y3(e,n){return Cd(ei,e??(()=>!0),n)}function Ff(e,n={}){return $d(ei,e,n)}function Nf(e){const n=If(t=>(t.addIssue=i=>{if(typeof i=="string")t.issues.push(M.issue(i,t.value,n._zod.def));else{const u=i;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=t.value),u.inst??(u.inst=n),u.continue??(u.continue=!n._zod.def.abort),t.issues.push(M.issue(u))}},e(t.value,t)));return n}function b3(e,n={error:`Input not instance of ${e.name}`}){const t=new ei({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...M.normalizeParams(n)});return t._zod.bag.Class=e,t}var k3=(...e)=>xd({Pipe:fo,Boolean:Mu,String:Zu,Transform:oo},...e);function D3(e){const n=$f(()=>Qu([Ua(e),Gd(),Jd(),Wd(),io(n),sf(Ua(),n)]));return n}function B3(e,n){return Xu(so(e),n)}var _3={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 A3(e){ye({customError:e})}function S3(){return ye().customError}var mo;mo||(mo={});var Tf={};yn(Tf,{bigint:()=>x3,boolean:()=>$3,date:()=>I3,number:()=>C3,string:()=>w3});function w3(e){return Jl(Zu,e)}function C3(e){return ed(qu,e)}function $3(e){return od(Mu,e)}function x3(e){return cd(Gu,e)}function I3(e){return yd(uo,e)}ye(Zl());var Qn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountSubType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownedByUser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"USBankAccountDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1289}};Qn.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
|
|
71
71
|
id
|
|
72
72
|
name
|
|
73
73
|
userId
|
|
@@ -134,21 +134,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
134
134
|
logo
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ni(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ni(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ni(i,n)}),e.definitions&&e.definitions.forEach(function(i){ni(i,n)})}var
|
|
137
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ni(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ni(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ni(i,n)}),e.definitions&&e.definitions.forEach(function(i){ni(i,n)})}var vo={};(function(){Qn.definitions.forEach(function(n){if(n.name){var t=new Set;ni(n,t),vo[n.name.value]=t}})})();function Of(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function F3(e,n){var t={kind:e.kind,definitions:[Of(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=vo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=vo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Of(e,o);s&&t.definitions.push(s)}),t}F3(Qn,"PayableAccountFragment");var Wn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateBankAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createAccountInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BankAccountInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createBankAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createAccountInput"},value:{kind:"Variable",name:{kind:"Name",value:"createAccountInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:229}};Wn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
138
138
|
|
|
139
139
|
mutation CreateBankAccount($createAccountInput: BankAccountInput!) {
|
|
140
140
|
createBankAccount(createAccountInput: $createAccountInput) {
|
|
141
141
|
...PayableAccountFragment
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
144
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var zf={};function N3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return zf[t]?!1:(zf[t]=!0,!0)})}Wn.definitions=Wn.definitions.concat(N3(Qn.definitions));function ti(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ti(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ti(i,n)}),e.definitions&&e.definitions.forEach(function(i){ti(i,n)})}var po={};(function(){Wn.definitions.forEach(function(n){if(n.name){var t=new Set;ti(n,t),po[n.name.value]=t}})})();function Uf(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function T3(e,n){var t={kind:e.kind,definitions:[Uf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=po[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=po[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Uf(e,o);s&&t.definitions.push(s)}),t}T3(Wn,"CreateBankAccount");var xn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};xn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
145
145
|
|
|
146
146
|
mutation DeletePayableAccount($accountId: String!) {
|
|
147
147
|
deletePayableAccount(accountId: $accountId) {
|
|
148
148
|
...PayableAccountFragment
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
151
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Pf={};function O3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Pf[t]?!1:(Pf[t]=!0,!0)})}xn.definitions=xn.definitions.concat(O3(Qn.definitions));function ui(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ui(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ui(i,n)}),e.definitions&&e.definitions.forEach(function(i){ui(i,n)})}var ho={};(function(){xn.definitions.forEach(function(n){if(n.name){var t=new Set;ui(n,t),ho[n.name.value]=t}})})();function jf(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function z3(e,n){var t={kind:e.kind,definitions:[jf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=ho[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ho[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=jf(e,o);s&&t.definitions.push(s)}),t}z3(xn,"DeletePayableAccount");var Jt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BankAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountSubType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownedByUser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"USBankAccountDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"deliveryMethods"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:580}};Jt.loc.source={body:`fragment BankAccountFragment on BankAccount {
|
|
152
152
|
id
|
|
153
153
|
name
|
|
154
154
|
userId
|
|
@@ -182,21 +182,21 @@ mutation DeletePayableAccount($accountId: String!) {
|
|
|
182
182
|
address
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ii(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ii(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ii(i,n)}),e.definitions&&e.definitions.forEach(function(i){ii(i,n)})}var
|
|
185
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ii(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ii(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ii(i,n)}),e.definitions&&e.definitions.forEach(function(i){ii(i,n)})}var go={};(function(){Jt.definitions.forEach(function(n){if(n.name){var t=new Set;ii(n,t),go[n.name.value]=t}})})();function Rf(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function U3(e,n){var t={kind:e.kind,definitions:[Rf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=go[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=go[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Rf(e,o);s&&t.definitions.push(s)}),t}U3(Jt,"BankAccountFragment");var Yn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameBankAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BankAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:218}};Yn.loc.source={body:`#import "../queries/bankAccountFragment.graphql"
|
|
186
186
|
|
|
187
187
|
mutation RenameBankAccount($accountId: String!, $name: String!) {
|
|
188
188
|
renamePayableAccount(accountId: $accountId, name: $name) {
|
|
189
189
|
...BankAccountFragment
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
192
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Lf={};function P3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Lf[t]?!1:(Lf[t]=!0,!0)})}Yn.definitions=Yn.definitions.concat(P3(Jt.definitions));function ri(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ri(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ri(i,n)}),e.definitions&&e.definitions.forEach(function(i){ri(i,n)})}var Eo={};(function(){Yn.definitions.forEach(function(n){if(n.name){var t=new Set;ri(n,t),Eo[n.name.value]=t}})})();function Zf(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function j3(e,n){var t={kind:e.kind,definitions:[Zf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Eo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Eo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Zf(e,o);s&&t.definitions.push(s)}),t}j3(Yn,"RenameBankAccount");var Xn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserBankAccounts"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankAccounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BankAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:124}};Xn.loc.source={body:`#import "./bankAccountFragment.graphql"
|
|
193
193
|
|
|
194
194
|
query UserBankAccounts {
|
|
195
195
|
bankAccounts {
|
|
196
196
|
...BankAccountFragment
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
199
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Vf={};function R3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Vf[t]?!1:(Vf[t]=!0,!0)})}Xn.definitions=Xn.definitions.concat(R3(Jt.definitions));function ai(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ai(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ai(i,n)}),e.definitions&&e.definitions.forEach(function(i){ai(i,n)})}var yo={};(function(){Xn.definitions.forEach(function(n){if(n.name){var t=new Set;ai(n,t),yo[n.name.value]=t}})})();function qf(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function L3(e,n){var t={kind:e.kind,definitions:[qf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=yo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=yo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=qf(e,o);s&&t.definitions.push(s)}),t}L3(Xn,"UserBankAccounts");function Z3(e){throw new Error(e)}var V3=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(V3||{}),Mf=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Mf||{}),et=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(et||{}),Gf=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(Gf||{}),Jf=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(Jf||{}),nt=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNINITIALIZED="UNINITIALIZED",e))(nt||{}),q3=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(q3||{}),M3=(e=>(e.Provider="Provider",e.User="User",e))(M3||{}),Hf=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.VirtualCard="VirtualCard",e))(Hf||{}),G3=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(G3||{}),Kf=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(Kf||{}),bo=(e=>(e.USVirtualDebitCard="USVirtualDebitCard",e))(bo||{});const J3=je.object({transitNumber:je.string().length(5,{message:"Transit number must be exactly 5 characters long"}).regex(/^[0-9]{5}$/,"Transit number should contain only digits."),institutionNumber:je.string().length(3,{message:"Institution number must be exactly 3 characters long"}).regex(/^[0-9]{3}$/,"Institution number should contain only digits.")}),H3=je.object({routingNumber:je.string().length(9,{message:"Routing number must be exactly 9 characters long"}).regex(/^[0-9]{9}$/,"Routing number should contain only digits.")}),K3=je.object({iban:je.string().min(15,{message:"IBAN must be at least 15 characters long"}).max(34,{message:"IBAN must be at most 34 characters long"}).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]+$/,"IBAN must start with 2 letters, followed by 2 digits, then alphanumeric characters")}),Q3=je.object({sortCode:je.string().length(6,{message:"Sort code must be exactly 6 characters long"}).regex(/^[0-9]{6}$/,"Sort code should contain only digits.")}),W3={[et.CABankAccount]:J3,[et.USBankAccount]:H3,[et.IbanAccount]:K3,[et.UKBankAccount]:Q3};class Y3{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:Xn}))?.bankAccounts??[]}async rename(n,t){return(await this.client.query({query:Yn,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:xn,variables:{accountId:n}}))?.deletePayableAccount??null}async create(n,t){const i=W3[n]??Z3("Invalid bank account type");try{const u=i.parse(t);return(await this.client.query({query:Wn,variables:{createAccountInput:{accountNumber:t.accountNumber,name:t.name,type:n,subType:t.subType,details:u,email:t.email??null,ownedByUser:t.ownedByUser??null,holder:t.holder??null}}}))?.createBankAccount??null}catch(u){throw u instanceof je.ZodError?new Error(u?.issues?.[0]?.message??"Input validation failure"):u}}}var Ht={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};Ht.loc.source={body:`fragment BillFragment on Bill {
|
|
200
200
|
id
|
|
201
201
|
name
|
|
202
202
|
userId
|
|
@@ -232,49 +232,49 @@ query UserBankAccounts {
|
|
|
232
232
|
address
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function oi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){oi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){oi(i,n)}),e.definitions&&e.definitions.forEach(function(i){oi(i,n)})}var
|
|
235
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function oi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){oi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){oi(i,n)}),e.definitions&&e.definitions.forEach(function(i){oi(i,n)})}var ko={};(function(){Ht.definitions.forEach(function(n){if(n.name){var t=new Set;oi(n,t),ko[n.name.value]=t}})})();function Qf(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function X3(e,n){var t={kind:e.kind,definitions:[Qf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=ko[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ko[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Qf(e,o);s&&t.definitions.push(s)}),t}X3(Ht,"BillFragment");var tt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSBill"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"institutionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addUSBill"},arguments:[{kind:"Argument",name:{kind:"Name",value:"institutionId"},value:{kind:"Variable",name:{kind:"Name",value:"institutionId"}}},{kind:"Argument",name:{kind:"Name",value:"accountNumber"},value:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};tt.loc.source={body:`#import "../queries/billFragment.graphql"
|
|
236
236
|
|
|
237
237
|
mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: BillType) {
|
|
238
238
|
addUSBill(institutionId: $institutionId, accountNumber: $accountNumber, type: $type) {
|
|
239
239
|
...BillFragment
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
242
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Wf={};function e1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Wf[t]?!1:(Wf[t]=!0,!0)})}tt.definitions=tt.definitions.concat(e1(Ht.definitions));function si(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){si(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){si(i,n)}),e.definitions&&e.definitions.forEach(function(i){si(i,n)})}var Do={};(function(){tt.definitions.forEach(function(n){if(n.name){var t=new Set;si(n,t),Do[n.name.value]=t}})})();function Yf(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function n1(e,n){var t={kind:e.kind,definitions:[Yf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Do[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Do[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Yf(e,o);s&&t.definitions.push(s)}),t}n1(tt,"CreateUSBill");var ut={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenamePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:227}};ut.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
243
243
|
|
|
244
244
|
mutation RenamePayableAccount($accountId: String!, $name: String!) {
|
|
245
245
|
renamePayableAccount(accountId: $accountId, name: $name) {
|
|
246
246
|
...PayableAccountFragment
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
249
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Xf={};function t1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Xf[t]?!1:(Xf[t]=!0,!0)})}ut.definitions=ut.definitions.concat(t1(Qn.definitions));function ci(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ci(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ci(i,n)}),e.definitions&&e.definitions.forEach(function(i){ci(i,n)})}var Bo={};(function(){ut.definitions.forEach(function(n){if(n.name){var t=new Set;ci(n,t),Bo[n.name.value]=t}})})();function e4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function u1(e,n){var t={kind:e.kind,definitions:[e4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Bo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Bo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=e4(e,o);s&&t.definitions.push(s)}),t}u1(ut,"RenamePayableAccount");var it={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserBills"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bills"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:96}};it.loc.source={body:`#import "./billFragment.graphql"
|
|
250
250
|
|
|
251
251
|
query UserBills {
|
|
252
252
|
bills {
|
|
253
253
|
...BillFragment
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
256
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var n4={};function i1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return n4[t]?!1:(n4[t]=!0,!0)})}it.definitions=it.definitions.concat(i1(Ht.definitions));function li(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){li(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){li(i,n)}),e.definitions&&e.definitions.forEach(function(i){li(i,n)})}var _o={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;li(n,t),_o[n.name.value]=t}})})();function t4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function r1(e,n){var t={kind:e.kind,definitions:[t4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=_o[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=_o[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=t4(e,o);s&&t.definitions.push(s)}),t}r1(it,"UserBills");class a1{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:it}))?.bills??[]}async rename(n,t){return(await this.client.query({query:ut,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:xn,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,i){return(await this.client.query({query:tt,variables:{institutionId:n,accountNumber:t,type:i??null}}))?.addUSBill??null}}var Kt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccountInstitution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}],loc:{start:0,end:126}};Kt.loc.source={body:`fragment PayableAccountInstitutionFragment on PayableAccountInstitution {
|
|
257
257
|
id
|
|
258
258
|
country
|
|
259
259
|
currency
|
|
260
260
|
name
|
|
261
261
|
logo
|
|
262
262
|
}
|
|
263
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function di(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){di(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){di(i,n)}),e.definitions&&e.definitions.forEach(function(i){di(i,n)})}var
|
|
263
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function di(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){di(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){di(i,n)}),e.definitions&&e.definitions.forEach(function(i){di(i,n)})}var Ao={};(function(){Kt.definitions.forEach(function(n){if(n.name){var t=new Set;di(n,t),Ao[n.name.value]=t}})})();function u4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function o1(e,n){var t={kind:e.kind,definitions:[u4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Ao[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Ao[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=u4(e,o);s&&t.definitions.push(s)}),t}o1(Kt,"PayableAccountInstitutionFragment");var rt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PopularBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"popularUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:214}};rt.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
|
|
264
264
|
|
|
265
265
|
query PopularBillInstitutions($billType: BillType) {
|
|
266
266
|
popularUSBillInstitutions(billType: $billType) {
|
|
267
267
|
...PayableAccountInstitutionFragment
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
270
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var i4={};function s1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return i4[t]?!1:(i4[t]=!0,!0)})}rt.definitions=rt.definitions.concat(s1(Kt.definitions));function fi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){fi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){fi(i,n)}),e.definitions&&e.definitions.forEach(function(i){fi(i,n)})}var So={};(function(){rt.definitions.forEach(function(n){if(n.name){var t=new Set;fi(n,t),So[n.name.value]=t}})})();function r4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function c1(e,n){var t={kind:e.kind,definitions:[r4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=So[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=So[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=r4(e,o);s&&t.definitions.push(s)}),t}c1(rt,"PopularBillInstitutions");var at={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchUSBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:261}};at.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
|
|
271
271
|
|
|
272
272
|
query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
273
273
|
searchUSBillInstitutions(searchTerm: $searchTerm, billType: $billType) {
|
|
274
274
|
...PayableAccountInstitutionFragment
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
277
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var a4={};function l1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return a4[t]?!1:(a4[t]=!0,!0)})}at.definitions=at.definitions.concat(l1(Kt.definitions));function mi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){mi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){mi(i,n)}),e.definitions&&e.definitions.forEach(function(i){mi(i,n)})}var wo={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;mi(n,t),wo[n.name.value]=t}})})();function o4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function d1(e,n){var t={kind:e.kind,definitions:[o4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=wo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=wo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=o4(e,o);s&&t.definitions.push(s)}),t}d1(at,"SearchUSBillInstitutions");class f1{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:rt,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:at,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}var Qt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OnrampPaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnRampPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankBeneficiaryName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositMessage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:369}};Qt.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
|
|
278
278
|
id
|
|
279
279
|
amount
|
|
280
280
|
feeAmount
|
|
@@ -295,21 +295,21 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
|
295
295
|
status
|
|
296
296
|
createdAt
|
|
297
297
|
}
|
|
298
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function vi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){vi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){vi(i,n)}),e.definitions&&e.definitions.forEach(function(i){vi(i,n)})}var
|
|
298
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function vi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){vi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){vi(i,n)}),e.definitions&&e.definitions.forEach(function(i){vi(i,n)})}var Co={};(function(){Qt.definitions.forEach(function(n){if(n.name){var t=new Set;vi(n,t),Co[n.name.value]=t}})})();function s4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function m1(e,n){var t={kind:e.kind,definitions:[s4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Co[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Co[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=s4(e,o);s&&t.definitions.push(s)}),t}m1(Qt,"OnrampPaymentFragment");var ot={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateOnrampPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateOnrampPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOnrampPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createOnrampPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OnrampPaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};ot.loc.source={body:`#import "../queries/onrampPaymentFragment.graphql"
|
|
299
299
|
|
|
300
300
|
mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput!) {
|
|
301
301
|
createOnrampPayment(createOnrampPaymentInput: $createOnrampPaymentInput) {
|
|
302
302
|
...OnrampPaymentFragment
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
305
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var c4={};function v1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return c4[t]?!1:(c4[t]=!0,!0)})}ot.definitions=ot.definitions.concat(v1(Qt.definitions));function pi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){pi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){pi(i,n)}),e.definitions&&e.definitions.forEach(function(i){pi(i,n)})}var $o={};(function(){ot.definitions.forEach(function(n){if(n.name){var t=new Set;pi(n,t),$o[n.name.value]=t}})})();function l4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function p1(e,n){var t={kind:e.kind,definitions:[l4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=$o[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=$o[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=l4(e,o);s&&t.definitions.push(s)}),t}p1(ot,"CreateOnrampPayment");var st={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnrampPayments"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onrampPayments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OnrampPaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:128}};st.loc.source={body:`#import "./onrampPaymentFragment.graphql"
|
|
306
306
|
|
|
307
307
|
query OnrampPayments {
|
|
308
308
|
onrampPayments {
|
|
309
309
|
...OnrampPaymentFragment
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
312
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var d4={};function h1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return d4[t]?!1:(d4[t]=!0,!0)})}st.definitions=st.definitions.concat(h1(Qt.definitions));function hi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){hi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){hi(i,n)}),e.definitions&&e.definitions.forEach(function(i){hi(i,n)})}var xo={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;hi(n,t),xo[n.name.value]=t}})})();function f4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function g1(e,n){var t={kind:e.kind,definitions:[f4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=xo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=xo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=f4(e,o);s&&t.definitions.push(s)}),t}g1(st,"OnrampPayments");class E1{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:ot,variables:{createOnrampPaymentInput:n}}))?.createOnrampPayment}async list(){return(await this.client.query({query:st}))?.onrampPayments}}var ct={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]}]}}],loc:{start:0,end:229}};ct.loc.source={body:`fragment PaymentFragment on Payment {
|
|
313
313
|
id
|
|
314
314
|
userId
|
|
315
315
|
status
|
|
@@ -323,28 +323,28 @@ query OnrampPayments {
|
|
|
323
323
|
targetCurrencyAmount
|
|
324
324
|
targetCurrencyRate
|
|
325
325
|
}
|
|
326
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function gi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){gi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){gi(i,n)}),e.definitions&&e.definitions.forEach(function(i){gi(i,n)})}var
|
|
326
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function gi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){gi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){gi(i,n)}),e.definitions&&e.definitions.forEach(function(i){gi(i,n)})}var Io={};(function(){ct.definitions.forEach(function(n){if(n.name){var t=new Set;gi(n,t),Io[n.name.value]=t}})})();function m4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function y1(e,n){var t={kind:e.kind,definitions:[m4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Io[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Io[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=m4(e,o);s&&t.definitions.push(s)}),t}y1(ct,"PaymentFragment");var lt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PaymentRequestPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentForPaymentRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};lt.loc.source={body:`#import "./paymentFragment.graphql"
|
|
327
327
|
|
|
328
328
|
query PaymentRequestPayment($paymentRequestId: String!) {
|
|
329
329
|
paymentForPaymentRequest(paymentRequestId: $paymentRequestId) {
|
|
330
330
|
...PaymentFragment
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
333
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var v4={};function b1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return v4[t]?!1:(v4[t]=!0,!0)})}lt.definitions=lt.definitions.concat(b1(ct.definitions));function Ei(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){Ei(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Ei(i,n)}),e.definitions&&e.definitions.forEach(function(i){Ei(i,n)})}var Fo={};(function(){lt.definitions.forEach(function(n){if(n.name){var t=new Set;Ei(n,t),Fo[n.name.value]=t}})})();function p4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function k1(e,n){var t={kind:e.kind,definitions:[p4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Fo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Fo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=p4(e,o);s&&t.definitions.push(s)}),t}k1(lt,"PaymentRequestPayment");var dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountPayments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentsForAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:165}};dt.loc.source={body:`#import "./paymentFragment.graphql"
|
|
334
334
|
|
|
335
335
|
query AccountPayments($accountId: String!) {
|
|
336
336
|
paymentsForAccount(accountId: $accountId) {
|
|
337
337
|
...PaymentFragment
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
340
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var h4={};function D1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return h4[t]?!1:(h4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(D1(ct.definitions));function yi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){yi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){yi(i,n)}),e.definitions&&e.definitions.forEach(function(i){yi(i,n)})}var No={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;yi(n,t),No[n.name.value]=t}})})();function g4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function B1(e,n){var t={kind:e.kind,definitions:[g4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=No[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=No[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=g4(e,o);s&&t.definitions.push(s)}),t}B1(dt,"AccountPayments");var ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Payment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"payment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:146}};ft.loc.source={body:`#import "./paymentFragment.graphql"
|
|
341
341
|
|
|
342
342
|
query Payment($paymentId: String!) {
|
|
343
343
|
payment(paymentId: $paymentId) {
|
|
344
344
|
...PaymentFragment
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
347
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var E4={};function _1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return E4[t]?!1:(E4[t]=!0,!0)})}ft.definitions=ft.definitions.concat(_1(ct.definitions));function bi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){bi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){bi(i,n)}),e.definitions&&e.definitions.forEach(function(i){bi(i,n)})}var To={};(function(){ft.definitions.forEach(function(n){if(n.name){var t=new Set;bi(n,t),To[n.name.value]=t}})})();function y4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function A1(e,n){var t={kind:e.kind,definitions:[y4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=To[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=To[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=y4(e,o);s&&t.definitions.push(s)}),t}A1(ft,"Payment");class S1{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:dt,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:ft,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:lt,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}}var ki={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]}]}}],loc:{start:0,end:247}};ki.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
|
|
348
348
|
id
|
|
349
349
|
userId
|
|
350
350
|
accountId
|
|
@@ -359,14 +359,30 @@ query Payment($paymentId: String!) {
|
|
|
359
359
|
targetCurrencyAmount
|
|
360
360
|
targetCurrencyRate
|
|
361
361
|
}
|
|
362
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Di(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){Di(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Di(i,n)}),e.definitions&&e.definitions.forEach(function(i){Di(i,n)})}var
|
|
362
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Di(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){Di(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Di(i,n)}),e.definitions&&e.definitions.forEach(function(i){Di(i,n)})}var Oo={};(function(){ki.definitions.forEach(function(n){if(n.name){var t=new Set;Di(n,t),Oo[n.name.value]=t}})})();function b4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function w1(e,n){var t={kind:e.kind,definitions:[b4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Oo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Oo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=b4(e,o);s&&t.definitions.push(s)}),t}w1(ki,"PaymentRequestFragment");var mt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePaymentRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateDirectPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDirectPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDirectPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentRequestFragment"},directives:[]}]}}]}}],loc:{start:0,end:260}};mt.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
|
|
363
363
|
|
|
364
364
|
mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInput!) {
|
|
365
365
|
createDirectPayment(createDirectPaymentInput: $createDirectPaymentInput) {
|
|
366
366
|
...PaymentRequestFragment
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
369
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var k4={};function C1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return k4[t]?!1:(k4[t]=!0,!0)})}mt.definitions=mt.definitions.concat(C1(ki.definitions));function Bi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){Bi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Bi(i,n)}),e.definitions&&e.definitions.forEach(function(i){Bi(i,n)})}var zo={};(function(){mt.definitions.forEach(function(n){if(n.name){var t=new Set;Bi(n,t),zo[n.name.value]=t}})})();function D4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function $1(e,n){var t={kind:e.kind,definitions:[D4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=zo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=zo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=D4(e,o);s&&t.definitions.push(s)}),t}$1(mt,"CreatePaymentRequest");var _i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSolanaPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"signer"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"solanaParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"signer"},value:{kind:"Variable",name:{kind:"Name",value:"signer"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionSerialized"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transaction"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:320}};_i.loc.source={body:`query GetSolanaPayParams(
|
|
370
|
+
$tokenAddress: String!
|
|
371
|
+
$amount: Float!
|
|
372
|
+
$reference: String!
|
|
373
|
+
$signer: String!
|
|
374
|
+
) {
|
|
375
|
+
solanaParams(
|
|
376
|
+
tokenAddress: $tokenAddress
|
|
377
|
+
amount: $amount
|
|
378
|
+
reference: $reference
|
|
379
|
+
signer: $signer
|
|
380
|
+
) {
|
|
381
|
+
transactionSerialized
|
|
382
|
+
transaction
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ai(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){Ai(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Ai(i,n)}),e.definitions&&e.definitions.forEach(function(i){Ai(i,n)})}var Uo={};(function(){_i.definitions.forEach(function(n){if(n.name){var t=new Set;Ai(n,t),Uo[n.name.value]=t}})})();function B4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function x1(e,n){var t={kind:e.kind,definitions:[B4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Uo[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Uo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=B4(e,o);s&&t.definitions.push(s)}),t}x1(_i,"GetSolanaPayParams");var Si={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSpritzPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"network"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"spritzPayParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"network"},value:{kind:"Variable",name:{kind:"Name",value:"network"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contractAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calldata"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiredTokenInput"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"suggestedGasLimit"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:399}};Si.loc.source={body:`query GetSpritzPayParams(
|
|
370
386
|
$tokenAddress: String!
|
|
371
387
|
$amount: Float!
|
|
372
388
|
$reference: String!
|
|
@@ -386,14 +402,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
|
|
|
386
402
|
suggestedGasLimit
|
|
387
403
|
}
|
|
388
404
|
}
|
|
389
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
405
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function wi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){wi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){wi(i,n)}),e.definitions&&e.definitions.forEach(function(i){wi(i,n)})}var Po={};(function(){Si.definitions.forEach(function(n){if(n.name){var t=new Set;wi(n,t),Po[n.name.value]=t}})})();function _4(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function I1(e,n){var t={kind:e.kind,definitions:[_4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Po[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Po[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=_4(e,o);s&&t.definitions.push(s)}),t}I1(Si,"GetSpritzPayParams");var vt=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Ci(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Wt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function fe(e,...n){if(!Ci(e))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function F1(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Wt(e.outputLen),Wt(e.blockLen)}function pt(e,n=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(n&&e.finished)throw new Error("Hash#digest() has already been called")}function A4(e,n){fe(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function N1(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Be(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function jo(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function qe(e,n){return e<<32-n|e>>>n}function on(e,n){return e<<n|e>>>32-n>>>0}var T1=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function O1(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function z1(e){for(let n=0;n<e.length;n++)e[n]=O1(e[n]);return e}var S4=T1?e=>e:z1,w4=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",U1=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Yt(e){if(fe(e),w4)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=U1[e[t]];return n}var Ke={_0:48,_9:57,A:65,F:70,a:97,f:102};function C4(e){if(e>=Ke._0&&e<=Ke._9)return e-Ke._0;if(e>=Ke.A&&e<=Ke.F)return e-(Ke.A-10);if(e>=Ke.a&&e<=Ke.f)return e-(Ke.a-10)}function Ro(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(w4)return Uint8Array.fromHex(e);const n=e.length,t=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const i=new Uint8Array(t);for(let u=0,r=0;u<t;u++,r+=2){const a=C4(e.charCodeAt(r)),o=C4(e.charCodeAt(r+1));if(a===void 0||o===void 0){const s=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+s+'" at index '+r)}i[u]=a*16+o}return i}function $i(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Xt(e){return typeof e=="string"&&(e=$i(e)),fe(e),e}function be(...e){let n=0;for(let i=0;i<e.length;i++){const u=e[i];fe(u),n+=u.length}const t=new Uint8Array(n);for(let i=0,u=0;i<e.length;i++){const r=e[i];t.set(r,u),u+=r.length}return t}var Lo=class{};function Me(e){const n=i=>e().update(Xt(i)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function P1(e){const n=(i,u)=>e(u).update(Xt(i)).digest(),t=e({});return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=i=>e(i),n}function $4(e=32){if(vt&&typeof vt.getRandomValues=="function")return vt.getRandomValues(new Uint8Array(e));if(vt&&typeof vt.randomBytes=="function")return Uint8Array.from(vt.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var Zo=BigInt(0),Vo=BigInt(1);function xi(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Ii(e){const n=e.toString(16);return n.length&1?"0"+n:n}function x4(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Zo:BigInt("0x"+e)}function In(e){return x4(Yt(e))}function I4(e){return fe(e),x4(Yt(Uint8Array.from(e).reverse()))}function eu(e,n){return Ro(e.toString(16).padStart(n*2,"0"))}function F4(e,n){return eu(e,n).reverse()}function ce(e,n,t){let i;if(typeof n=="string")try{i=Ro(n)}catch(r){throw new Error(e+" must be hex string or Uint8Array, cause: "+r)}else if(Ci(n))i=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const u=i.length;if(typeof t=="number"&&u!==t)throw new Error(e+" of length "+t+" expected, got "+u);return i}var qo=e=>typeof e=="bigint"&&Zo<=e;function Mo(e,n,t){return qo(e)&&qo(n)&&qo(t)&&n<=e&&e<t}function N4(e,n,t,i){if(!Mo(n,t,i))throw new Error("expected valid "+e+": "+t+" <= n < "+i+", got "+n)}function j1(e){let n;for(n=0;e>Zo;e>>=Vo,n+=1);return n}var Fi=e=>(Vo<<BigInt(e))-Vo;function R1(e,n,t){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");const i=d=>new Uint8Array(d),u=d=>Uint8Array.of(d);let r=i(e),a=i(e),o=0;const s=()=>{r.fill(1),a.fill(0),o=0},c=(...d)=>t(a,r,...d),l=(d=i(0))=>{a=c(u(0),d),r=c(),d.length!==0&&(a=c(u(1),d),r=c())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const v=[];for(;d<n;){r=c();const h=r.slice();v.push(h),d+=r.length}return be(...v)};return(d,v)=>{s(),l(d);let h;for(;!(h=v(f()));)l();return s(),h}}function L1(e){return typeof e=="function"&&Number.isSafeInteger(e.outputLen)}function Ni(e,n,t={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function i(u,r,a){const o=e[u];if(a&&o===void 0)return;const s=typeof o;if(s!==r||o===null)throw new Error(`param "${u}" is invalid: expected ${r}, got ${s}`)}Object.entries(n).forEach(([u,r])=>i(u,r,!1)),Object.entries(t).forEach(([u,r])=>i(u,r,!0))}function T4(e){const n=new WeakMap;return(t,...i)=>{const u=n.get(t);if(u!==void 0)return u;const r=e(t,...i);return n.set(t,r),r}}var Ti=BigInt(2**32-1),O4=BigInt(32);function Z1(e,n=!1){return n?{h:Number(e&Ti),l:Number(e>>O4&Ti)}:{h:Number(e>>O4&Ti)|0,l:Number(e&Ti)|0}}function z4(e,n=!1){const t=e.length;let i=new Uint32Array(t),u=new Uint32Array(t);for(let r=0;r<t;r++){const{h:a,l:o}=Z1(e[r],n);[i[r],u[r]]=[a,o]}return[i,u]}var U4=(e,n,t)=>e>>>t,P4=(e,n,t)=>e<<32-t|n>>>t,ht=(e,n,t)=>e>>>t|n<<32-t,gt=(e,n,t)=>e<<32-t|n>>>t,Oi=(e,n,t)=>e<<64-t|n>>>t-32,zi=(e,n,t)=>e>>>t-32|n<<64-t,V1=(e,n,t)=>e<<t|n>>>32-t,q1=(e,n,t)=>n<<t|e>>>32-t,M1=(e,n,t)=>n<<t-32|e>>>64-t,G1=(e,n,t)=>e<<t-32|n>>>64-t;function Qe(e,n,t,i){const u=(n>>>0)+(i>>>0);return{h:e+t+(u/2**32|0)|0,l:u|0}}var J1=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),H1=(e,n,t,i)=>n+t+i+(e/2**32|0)|0,K1=(e,n,t,i)=>(e>>>0)+(n>>>0)+(t>>>0)+(i>>>0),Q1=(e,n,t,i,u)=>n+t+i+u+(e/2**32|0)|0,W1=(e,n,t,i,u)=>(e>>>0)+(n>>>0)+(t>>>0)+(i>>>0)+(u>>>0),Y1=(e,n,t,i,u,r)=>n+t+i+u+r+(e/2**32|0)|0;/*! Bundled license information:
|
|
390
406
|
|
|
391
407
|
@noble/hashes/esm/utils.js:
|
|
392
408
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
393
409
|
|
|
394
410
|
@noble/curves/esm/utils.js:
|
|
395
411
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
396
|
-
*/function q1(e,n,t,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,i);const u=BigInt(32),r=BigInt(4294967295),a=Number(t>>u&r),o=Number(t&r),s=i?4:0,c=i?0:4;e.setUint32(n+s,a,i),e.setUint32(n+c,o,i)}function Oi(e,n,t){return e&n^~e&t}function T4(e,n,t){return e&n^e&t^n&t}var nu=class extends Po{constructor(e,n,t,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=i,this.buffer=new Uint8Array(e),this.view=zo(this.buffer)}update(e){pt(this),e=Xt(e),fe(e);const{view:n,buffer:t,blockLen:i}=this,u=e.length;for(let r=0;r<u;){const a=Math.min(i-this.pos,u-r);if(a===i){const o=zo(e);for(;i<=u-r;r+=i)this.process(o,r);continue}t.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){pt(this),b4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:i,isLE:u}=this;let{pos:r}=this;n[r++]=128,Be(this.buffer.subarray(r)),this.padOffset>i-r&&(this.process(t,0),r=0);for(let l=r;l<i;l++)n[l]=0;q1(t,i-8,BigInt(this.length*8),u),this.process(t,0);const a=zo(e),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const s=o/4,c=this.get();if(s>c.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<s;l++)a.setUint32(4*l,c[l],u)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:i,finished:u,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=u,e.length=i,e.pos=a,i%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},sn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),cn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),me=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),ve=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),G1=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ln=new Uint32Array(64),O4=class extends nu{constructor(e=32){super(64,e,8,!1),this.A=sn[0]|0,this.B=sn[1]|0,this.C=sn[2]|0,this.D=sn[3]|0,this.E=sn[4]|0,this.F=sn[5]|0,this.G=sn[6]|0,this.H=sn[7]|0}get(){const{A:e,B:n,C:t,D:i,E:u,F:r,G:a,H:o}=this;return[e,n,t,i,u,r,a,o]}set(e,n,t,i,u,r,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=i|0,this.E=u|0,this.F=r|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)ln[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=ln[l-15],m=ln[l-2],d=Me(f,7)^Me(f,18)^f>>>3,v=Me(m,17)^Me(m,19)^m>>>10;ln[l]=v+ln[l-7]+d+ln[l-16]|0}let{A:t,B:i,C:u,D:r,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=Me(a,6)^Me(a,11)^Me(a,25),m=c+f+Oi(a,o,s)+G1[l]+ln[l]|0,v=(Me(t,2)^Me(t,13)^Me(t,22))+T4(t,i,u)|0;c=s,s=o,o=a,a=r+m|0,r=u,u=i,i=t,t=m+v|0}t=t+this.A|0,i=i+this.B|0,u=u+this.C|0,r=r+this.D|0,a=a+this.E|0,o=o+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(t,i,u,r,a,o,s,c)}roundClean(){Be(ln)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}},J1=class extends O4{constructor(){super(28),this.A=cn[0]|0,this.B=cn[1]|0,this.C=cn[2]|0,this.D=cn[3]|0,this.E=cn[4]|0,this.F=cn[5]|0,this.G=cn[6]|0,this.H=cn[7]|0}},z4=I4(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),H1=z4[0],K1=z4[1],dn=new Uint32Array(80),fn=new Uint32Array(80),zi=class extends nu{constructor(e=64){super(128,e,16,!1),this.Ah=ve[0]|0,this.Al=ve[1]|0,this.Bh=ve[2]|0,this.Bl=ve[3]|0,this.Ch=ve[4]|0,this.Cl=ve[5]|0,this.Dh=ve[6]|0,this.Dl=ve[7]|0,this.Eh=ve[8]|0,this.El=ve[9]|0,this.Fh=ve[10]|0,this.Fl=ve[11]|0,this.Gh=ve[12]|0,this.Gl=ve[13]|0,this.Hh=ve[14]|0,this.Hl=ve[15]|0}get(){const{Ah:e,Al:n,Bh:t,Bl:i,Ch:u,Cl:r,Dh:a,Dl:o,Eh:s,El:c,Fh:l,Fl:f,Gh:m,Gl:d,Hh:v,Hl:h}=this;return[e,n,t,i,u,r,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,i,u,r,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=i|0,this.Ch=u|0,this.Cl=r|0,this.Dh=a|0,this.Dl=o|0,this.Eh=s|0,this.El=c|0,this.Fh=l|0,this.Fl=f|0,this.Gh=m|0,this.Gl=d|0,this.Hh=v|0,this.Hl=h|0}process(e,n){for(let E=0;E<16;E++,n+=4)dn[E]=e.getUint32(n),fn[E]=e.getUint32(n+=4);for(let E=16;E<80;E++){const k=dn[E-15]|0,w=fn[E-15]|0,_=ht(k,w,1)^ht(k,w,8)^F4(k,w,7),G=gt(k,w,1)^gt(k,w,8)^N4(k,w,7),V=dn[E-2]|0,F=fn[E-2]|0,g=ht(V,F,19)^Ni(V,F,61)^F4(V,F,6),$=gt(V,F,19)^Ti(V,F,61)^N4(V,F,6),D=L1(G,$,fn[E-7],fn[E-16]),A=Z1(D,_,g,dn[E-7],dn[E-16]);dn[E]=A|0,fn[E]=D|0}let{Ah:t,Al:i,Bh:u,Bl:r,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:b,Hl:y}=this;for(let E=0;E<80;E++){const k=ht(l,f,14)^ht(l,f,18)^Ni(l,f,41),w=gt(l,f,14)^gt(l,f,18)^Ti(l,f,41),_=l&m^~l&v,G=f&d^~f&h,V=V1(y,w,G,K1[E],fn[E]),F=M1(V,b,k,_,H1[E],dn[E]),g=V|0,$=ht(t,i,28)^Ni(t,i,34)^Ni(t,i,39),D=gt(t,i,28)^Ti(t,i,34)^Ti(t,i,39),A=t&u^t&a^u&a,I=i&r^i&o^r&o;b=v|0,y=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=Qe(s|0,c|0,F|0,g|0),s=a|0,c=o|0,a=u|0,o=r|0,u=t|0,r=i|0;const T=j1(g,D,I);t=R1(T,F,$,A),i=T|0}({h:t,l:i}=Qe(this.Ah|0,this.Al|0,t|0,i|0)),{h:u,l:r}=Qe(this.Bh|0,this.Bl|0,u|0,r|0),{h:a,l:o}=Qe(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=Qe(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=Qe(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=Qe(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=Qe(this.Gh|0,this.Gl|0,v|0,h|0),{h:b,l:y}=Qe(this.Hh|0,this.Hl|0,b|0,y|0),this.set(t,i,u,r,a,o,s,c,l,f,m,d,v,h,b,y)}roundClean(){Be(dn,fn)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Q1=class extends zi{constructor(){super(48),this.Ah=me[0]|0,this.Al=me[1]|0,this.Bh=me[2]|0,this.Bl=me[3]|0,this.Ch=me[4]|0,this.Cl=me[5]|0,this.Dh=me[6]|0,this.Dl=me[7]|0,this.Eh=me[8]|0,this.El=me[9]|0,this.Fh=me[10]|0,this.Fl=me[11]|0,this.Gh=me[12]|0,this.Gl=me[13]|0,this.Hh=me[14]|0,this.Hl=me[15]|0}},pe=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),he=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),W1=class extends zi{constructor(){super(28),this.Ah=pe[0]|0,this.Al=pe[1]|0,this.Bh=pe[2]|0,this.Bl=pe[3]|0,this.Ch=pe[4]|0,this.Cl=pe[5]|0,this.Dh=pe[6]|0,this.Dl=pe[7]|0,this.Eh=pe[8]|0,this.El=pe[9]|0,this.Fh=pe[10]|0,this.Fl=pe[11]|0,this.Gh=pe[12]|0,this.Gl=pe[13]|0,this.Hh=pe[14]|0,this.Hl=pe[15]|0}},Y1=class extends zi{constructor(){super(32),this.Ah=he[0]|0,this.Al=he[1]|0,this.Bh=he[2]|0,this.Bl=he[3]|0,this.Ch=he[4]|0,this.Cl=he[5]|0,this.Dh=he[6]|0,this.Dl=he[7]|0,this.Eh=he[8]|0,this.El=he[9]|0,this.Fh=he[10]|0,this.Fl=he[11]|0,this.Gh=he[12]|0,this.Gl=he[13]|0,this.Hh=he[14]|0,this.Hl=he[15]|0}},Ui=qe(()=>new O4);qe(()=>new J1),qe(()=>new zi),qe(()=>new Q1),qe(()=>new Y1),qe(()=>new W1);var U4=class extends Po{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,_1(e);const t=Xt(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,u=new Uint8Array(i);u.set(t.length>i?e.create().update(t).digest():t);for(let r=0;r<u.length;r++)u[r]^=54;this.iHash.update(u),this.oHash=e.create();for(let r=0;r<u.length;r++)u[r]^=106;this.oHash.update(u),Be(u)}update(e){return pt(this),this.iHash.update(e),this}digestInto(e){pt(this),fe(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:i,destroyed:u,blockLen:r,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=u,e.blockLen=r,e.outputLen=a,e.oHash=n._cloneInto(e.oHash),e.iHash=t._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},P4=(e,n,t)=>new U4(e,n).update(t).digest();P4.create=(e,n)=>new U4(e,n);var _e=BigInt(0),ke=BigInt(1),Fn=BigInt(2),X1=BigInt(3),j4=BigInt(4),R4=BigInt(5),L4=BigInt(8);function ge(e,n){const t=e%n;return t>=_e?t:n+t}function Fe(e,n,t){let i=e;for(;n-- >_e;)i*=i,i%=t;return i}function Z4(e,n){if(e===_e)throw new Error("invert: expected non-zero number");if(n<=_e)throw new Error("invert: expected positive modulus, got "+n);let t=ge(e,n),i=n,u=_e,r=ke;for(;t!==_e;){const o=i/t,s=i%t,c=u-r*o;i=t,t=s,u=r,r=c}if(i!==ke)throw new Error("invert: does not exist");return ge(u,n)}function V4(e,n){const t=(e.ORDER+ke)/j4,i=e.pow(n,t);if(!e.eql(e.sqr(i),n))throw new Error("Cannot find square root");return i}function eE(e,n){const t=(e.ORDER-R4)/L4,i=e.mul(n,Fn),u=e.pow(i,t),r=e.mul(n,u),a=e.mul(e.mul(r,Fn),u),o=e.mul(r,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function nE(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-ke,t=0;for(;n%Fn===_e;)n/=Fn,t++;let i=Fn;const u=ji(e);for(;q4(u,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return V4;let r=u.pow(i,n);const a=(n+ke)/Fn;return function(s,c){if(s.is0(c))return c;if(q4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,r),m=s.pow(c,n),d=s.pow(c,a);for(;!s.eql(m,s.ONE);){if(s.is0(m))return s.ZERO;let v=1,h=s.sqr(m);for(;!s.eql(h,s.ONE);)if(v++,h=s.sqr(h),v===l)throw new Error("Cannot find square root");const b=ke<<BigInt(l-v-1),y=s.pow(f,b);l=v,f=s.sqr(y),m=s.mul(m,f),d=s.mul(d,y)}return d}}function tE(e){return e%j4===X1?V4:e%L4===R4?eE:nE(e)}var uE=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function M4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=uE.reduce((i,u)=>(i[u]="function",i),n);return Ii(e,t),e}function iE(e,n,t){if(t<_e)throw new Error("invalid exponent, negatives unsupported");if(t===_e)return e.ONE;if(t===ke)return n;let i=e.ONE,u=n;for(;t>_e;)t&ke&&(i=e.mul(i,u)),u=e.sqr(u),t>>=ke;return i}function Pi(e,n,t=!1){const i=new Array(n.length).fill(t?e.ZERO:void 0),u=n.reduce((a,o,s)=>e.is0(o)?a:(i[s]=a,e.mul(a,o)),e.ONE),r=e.inv(u);return n.reduceRight((a,o,s)=>e.is0(o)?a:(i[s]=e.mul(a,i[s]),e.mul(a,o)),r),i}function q4(e,n){const t=(e.ORDER-ke)/Fn,i=e.pow(n,t),u=e.eql(i,e.ONE),r=e.eql(i,e.ZERO),a=e.eql(i,e.neg(e.ONE));if(!u&&!r&&!a)throw new Error("invalid Legendre symbol result");return u?1:r?0:-1}function rE(e,n){n!==void 0&&Wt(n);const t=n!==void 0?n:e.toString(2).length,i=Math.ceil(t/8);return{nBitLength:t,nByteLength:i}}function ji(e,n,t=!1,i={}){if(e<=_e)throw new Error("invalid field: expected ORDER > 0, got "+e);let u,r;if(typeof n=="object"&&n!=null){if(i.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(u=l.BITS),l.sqrt&&(r=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(u=n),i.sqrt&&(r=i.sqrt);const{nBitLength:a,nByteLength:o}=rE(e,u);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:t,BITS:a,BYTES:o,MASK:xi(a),ZERO:_e,ONE:ke,create:l=>ge(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return _e<=l&&l<e},is0:l=>l===_e,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&ke)===ke,neg:l=>ge(-l,e),eql:(l,f)=>l===f,sqr:l=>ge(l*l,e),add:(l,f)=>ge(l+f,e),sub:(l,f)=>ge(l-f,e),mul:(l,f)=>ge(l*f,e),pow:(l,f)=>iE(c,l,f),div:(l,f)=>ge(l*Z4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>Z4(l,e),sqrt:r||(l=>(s||(s=tE(e)),s(c,l))),toBytes:l=>t?w4(l,o):eu(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?S4(l):In(l)},invertBatch:l=>Pi(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function G4(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function J4(e){const n=G4(e);return n+Math.ceil(n/2)}function aE(e,n,t=!1){const i=e.length,u=G4(n),r=J4(n);if(i<16||i<r||i>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+i);const a=t?S4(e):In(e),o=ge(a,n-ke)+ke;return t?w4(o,u):eu(o,u)}var Et=BigInt(0),Nn=BigInt(1);function tu(e,n){const t=n.negate();return e?t:n}function oE(e,n,t){const i=a=>a.pz,u=Pi(e.Fp,t.map(i));return t.map((a,o)=>a.toAffine(u[o])).map(e.fromAffine)}function H4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function Vo(e,n){H4(e,n);const t=Math.ceil(n/e)+1,i=2**(e-1),u=2**e,r=xi(e),a=BigInt(e);return{windows:t,windowSize:i,mask:r,maxNumber:u,shiftBy:a}}function K4(e,n,t){const{windowSize:i,mask:u,maxNumber:r,shiftBy:a}=t;let o=Number(e&u),s=e>>a;o>i&&(o-=r,s+=Nn);const c=n*i,l=c+Math.abs(o)-1,f=o===0,m=o<0,d=n%2!==0;return{nextN:s,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:c}}function sE(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,i)=>{if(!(t instanceof n))throw new Error("invalid point at index "+i)})}function cE(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,i)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+i)})}var Mo=new WeakMap,Q4=new WeakMap;function qo(e){return Q4.get(e)||1}function W4(e){if(e!==Et)throw new Error("invalid wNAF")}function lE(e,n){return{constTimeNegate:tu,hasPrecomputes(t){return qo(t)!==1},unsafeLadder(t,i,u=e.ZERO){let r=t;for(;i>Et;)i&Nn&&(u=u.add(r)),r=r.double(),i>>=Nn;return u},precomputeWindow(t,i){const{windows:u,windowSize:r}=Vo(i,n),a=[];let o=t,s=o;for(let c=0;c<u;c++){s=o,a.push(s);for(let l=1;l<r;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,i,u){let r=e.ZERO,a=e.BASE;const o=Vo(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=K4(u,s,o);u=c,f?a=a.add(tu(d,i[v])):r=r.add(tu(m,i[l]))}return W4(u),{p:r,f:a}},wNAFUnsafe(t,i,u,r=e.ZERO){const a=Vo(t,n);for(let o=0;o<a.windows&&u!==Et;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=K4(u,o,a);if(u=s,!l){const m=i[c];r=r.add(f?m.negate():m)}}return W4(u),r},getPrecomputes(t,i,u){let r=Mo.get(i);return r||(r=this.precomputeWindow(i,t),t!==1&&(typeof u=="function"&&(r=u(r)),Mo.set(i,r))),r},wNAFCached(t,i,u){const r=qo(t);return this.wNAF(r,this.getPrecomputes(r,t,u),i)},wNAFCachedUnsafe(t,i,u,r){const a=qo(t);return a===1?this.unsafeLadder(t,i,r):this.wNAFUnsafe(a,this.getPrecomputes(a,t,u),i,r)},setWindowSize(t,i){H4(i,n),Q4.set(t,i),Mo.delete(t)}}}function dE(e,n,t,i){let u=n,r=e.ZERO,a=e.ZERO;for(;t>Et||i>Et;)t&Nn&&(r=r.add(u)),i&Nn&&(a=a.add(u)),u=u.double(),t>>=Nn,i>>=Nn;return{p1:r,p2:a}}function fE(e,n,t,i){sE(t,e),cE(i,n);const u=t.length,r=i.length;if(u!==r)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=I1(BigInt(u));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=xi(s),l=new Array(Number(c)+1).fill(a),f=Math.floor((n.BITS-1)/s)*s;let m=a;for(let d=f;d>=0;d-=s){l.fill(a);for(let h=0;h<r;h++){const b=i[h],y=Number(b>>BigInt(d)&c);l[y]=l[y].add(t[h])}let v=a;for(let h=l.length-1,b=a;h>0;h--)b=b.add(l[h]),v=v.add(b);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function Y4(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return M4(n),n}else return ji(e)}function mE(e,n,t={}){if(!n||typeof n!="object")throw new Error(`expected valid ${e} CURVE object`);for(const o of["p","n","h"]){const s=n[o];if(!(typeof s=="bigint"&&s>Et))throw new Error(`CURVE.${o} must be positive bigint`)}const i=Y4(n.p,t.Fp),u=Y4(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!i.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:i,Fn:u}}function X4(e){e.lowS!==void 0&&Ci("lowS",e.lowS),e.prehash!==void 0&&Ci("prehash",e.prehash)}var vE=class extends Error{constructor(e=""){super(e)}},We={Err:vE,_tlv:{encode:(e,n)=>{const{Err:t}=We;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const i=n.length/2,u=$i(i);if(u.length/2&128)throw new t("tlv.encode: long form length too big");const r=i>127?$i(u.length/2|128):"";return $i(e)+r+u+n},decode(e,n){const{Err:t}=We;let i=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[i++]!==e)throw new t("tlv.decode: wrong tlv");const u=n[i++],r=!!(u&128);let a=0;if(!r)a=u;else{const s=u&127;if(!s)throw new t("tlv.decode(long): indefinite length not supported");if(s>4)throw new t("tlv.decode(long): byte length is too big");const c=n.subarray(i,i+s);if(c.length!==s)throw new t("tlv.decode: length bytes not complete");if(c[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const l of c)a=a<<8|l;if(i+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(i,i+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(i+a)}}},_int:{encode(e){const{Err:n}=We;if(e<Tn)throw new n("integer: negative integers are not allowed");let t=$i(e);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return t},decode(e){const{Err:n}=We;if(e[0]&128)throw new n("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return In(e)}},toSig(e){const{Err:n,_int:t,_tlv:i}=We,u=ce("signature",e),{v:r,l:a}=i.decode(48,u);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=i.decode(2,r),{v:c,l}=i.decode(2,s);if(l.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(o),s:t.decode(c)}},hexFromSig(e){const{_tlv:n,_int:t}=We,i=n.encode(2,t.encode(e.r)),u=n.encode(2,t.encode(e.s)),r=i+u;return n.encode(48,r)}},Tn=BigInt(0),De=BigInt(1),Ye=BigInt(2),yt=BigInt(3),Go=BigInt(4);function pE(e,n,t){function i(u){const r=e.sqr(u),a=e.mul(r,u);return e.add(e.add(a,e.mul(u,n)),t)}return i}function em(e,n,t){const{BYTES:i}=e;function u(r){let a;if(typeof r=="bigint")a=r;else{let o=ce("private key",r);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(i);s.set(o,s.length-o.length),o=s}try{a=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${i}, got ${typeof r}`)}}if(t&&(a=e.create(a)),!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}return u}function hE(e,n={}){const{Fp:t,Fn:i}=mE("weierstrass",e,n),{h:u,n:r}=e;Ii(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:a}=n;if(a&&(!t.is0(e.a)||typeof a.beta!="bigint"||typeof a.splitScalar!="function"))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function o(){if(!t.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function s(F,g,$){const{x:D,y:A}=g.toAffine(),I=t.toBytes(D);if(Ci("isCompressed",$),$){o();const T=!t.isOdd(A);return be(nm(T),I)}else return be(Uint8Array.of(4),I,t.toBytes(A))}function c(F){fe(F);const g=t.BYTES,$=g+1,D=2*g+1,A=F.length,I=F[0],T=F.subarray(1);if(A===$&&(I===2||I===3)){const N=t.fromBytes(T);if(!t.isValid(N))throw new Error("bad point: is not on curve, wrong x");const O=m(N);let P;try{P=t.sqrt(O)}catch(Q){const j=Q instanceof Error?": "+Q.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}o();const z=t.isOdd(P);return(I&1)===1!==z&&(P=t.neg(P)),{x:N,y:P}}else if(A===D&&I===4){const N=t.fromBytes(T.subarray(g*0,g*1)),O=t.fromBytes(T.subarray(g*1,g*2));if(!d(N,O))throw new Error("bad point: is not on curve");return{x:N,y:O}}else throw new Error(`bad point: got length ${A}, expected compressed=${$} or uncompressed=${D}`)}const l=n.toBytes||s,f=n.fromBytes||c,m=pE(t,e.a,e.b);function d(F,g){const $=t.sqr(g),D=m(F);return t.eql($,D)}if(!d(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=t.mul(t.pow(e.a,yt),Go),h=t.mul(t.sqr(e.b),BigInt(27));if(t.is0(t.add(v,h)))throw new Error("bad curve params: a or b");function b(F,g,$=!1){if(!t.isValid(g)||$&&t.is0(g))throw new Error(`bad point coordinate ${F}`);return g}function y(F){if(!(F instanceof _))throw new Error("ProjectivePoint expected")}const E=$4((F,g)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const I=F.is0();g==null&&(g=I?t.ONE:t.inv(A));const T=t.mul($,g),N=t.mul(D,g),O=t.mul(A,g);if(I)return{x:t.ZERO,y:t.ZERO};if(!t.eql(O,t.ONE))throw new Error("invZ was invalid");return{x:T,y:N}}),k=$4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:g,y:$}=F.toAffine();if(!t.isValid(g)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(g,$))throw new Error("bad point: equation left != right");if(!F.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function w(F,g,$,D,A){return $=new _(t.mul($.px,F),$.py,$.pz),g=tu(D,g),$=tu(A,$),g.add($)}class _{constructor(g,$,D){this.px=b("x",g),this.py=b("y",$,!0),this.pz=b("z",D),Object.freeze(this)}static fromAffine(g){const{x:$,y:D}=g||{};if(!g||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(g instanceof _)throw new Error("projective point not allowed");return t.is0($)&&t.is0(D)?_.ZERO:new _($,D,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(g){return oE(_,"pz",g)}static fromBytes(g){return fe(g),_.fromHex(g)}static fromHex(g){const $=_.fromAffine(f(ce("pointHex",g)));return $.assertValidity(),$}static fromPrivateKey(g){const $=em(i,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return _.BASE.multiply($(g))}static msm(g,$){return fE(_,i,g,$)}precompute(g=8,$=!0){return V.setWindowSize(this,g),$||this.multiply(yt),this}_setWindowSize(g){this.precompute(g)}assertValidity(){k(this)}hasEvenY(){const{y:g}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(g)}equals(g){y(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g,O=t.eql(t.mul($,N),t.mul(I,A)),P=t.eql(t.mul(D,N),t.mul(T,A));return O&&P}negate(){return new _(this.px,t.neg(this.py),this.pz)}double(){const{a:g,b:$}=e,D=t.mul($,yt),{px:A,py:I,pz:T}=this;let N=t.ZERO,O=t.ZERO,P=t.ZERO,z=t.mul(A,A),ie=t.mul(I,I),Q=t.mul(T,T),j=t.mul(A,I);return j=t.add(j,j),P=t.mul(A,T),P=t.add(P,P),N=t.mul(g,P),O=t.mul(D,Q),O=t.add(N,O),N=t.sub(ie,O),O=t.add(ie,O),O=t.mul(N,O),N=t.mul(j,N),P=t.mul(D,P),Q=t.mul(g,Q),j=t.sub(z,Q),j=t.mul(g,j),j=t.add(j,P),P=t.add(z,z),z=t.add(P,z),z=t.add(z,Q),z=t.mul(z,j),O=t.add(O,z),Q=t.mul(I,T),Q=t.add(Q,Q),z=t.mul(Q,j),N=t.sub(N,z),P=t.mul(Q,ie),P=t.add(P,P),P=t.add(P,P),new _(N,O,P)}add(g){y(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g;let O=t.ZERO,P=t.ZERO,z=t.ZERO;const ie=e.a,Q=t.mul(e.b,yt);let j=t.mul($,I),ae=t.mul(D,T),oe=t.mul(A,N),le=t.add($,D),Y=t.add(I,T);le=t.mul(le,Y),Y=t.add(j,ae),le=t.sub(le,Y),Y=t.add($,A);let Ee=t.add(I,N);return Y=t.mul(Y,Ee),Ee=t.add(j,oe),Y=t.sub(Y,Ee),Ee=t.add(D,A),O=t.add(T,N),Ee=t.mul(Ee,O),O=t.add(ae,oe),Ee=t.sub(Ee,O),z=t.mul(ie,Y),O=t.mul(Q,oe),z=t.add(O,z),O=t.sub(ae,z),z=t.add(ae,z),P=t.mul(O,z),ae=t.add(j,j),ae=t.add(ae,j),oe=t.mul(ie,oe),Y=t.mul(Q,Y),ae=t.add(ae,oe),oe=t.sub(j,oe),oe=t.mul(ie,oe),Y=t.add(Y,oe),j=t.mul(ae,Y),P=t.add(P,j),j=t.mul(Ee,Y),O=t.mul(le,O),O=t.sub(O,j),j=t.mul(le,ae),z=t.mul(Ee,z),z=t.add(z,j),new _(O,P,z)}subtract(g){return this.add(g.negate())}is0(){return this.equals(_.ZERO)}multiply(g){const{endo:$}=n;if(!i.isValidNot0(g))throw new Error("invalid scalar: out of range");let D,A;const I=T=>V.wNAFCached(this,T,_.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:P}=$.splitScalar(g),{p:z,f:ie}=I(N),{p:Q,f:j}=I(P);A=ie.add(j),D=w($.beta,z,Q,T,O)}else{const{p:T,f:N}=I(g);D=T,A=N}return _.normalizeZ([D,A])[0]}multiplyUnsafe(g){const{endo:$}=n,D=this;if(!i.isValid(g))throw new Error("invalid scalar: out of range");if(g===Tn||D.is0())return _.ZERO;if(g===De)return D;if(V.hasPrecomputes(this))return this.multiply(g);if($){const{k1neg:A,k1:I,k2neg:T,k2:N}=$.splitScalar(g),{p1:O,p2:P}=dE(_,D,I,N);return w($.beta,O,P,A,T)}else return V.wNAFCachedUnsafe(D,g)}multiplyAndAddUnsafe(g,$,D){const A=this.multiplyUnsafe($).add(g.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(g){return E(this,g)}isTorsionFree(){const{isTorsionFree:g}=n;return u===De?!0:g?g(_,this):V.wNAFCachedUnsafe(this,r).is0()}clearCofactor(){const{clearCofactor:g}=n;return u===De?this:g?g(_,this):this.multiplyUnsafe(u)}toBytes(g=!0){return Ci("isCompressed",g),this.assertValidity(),l(_,this,g)}toRawBytes(g=!0){return this.toBytes(g)}toHex(g=!0){return Yt(this.toBytes(g))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}_.BASE=new _(e.Gx,e.Gy,t.ONE),_.ZERO=new _(t.ZERO,t.ONE,t.ZERO),_.Fp=t,_.Fn=i;const G=i.BITS,V=lE(_,n.endo?Math.ceil(G/2):G);return _}function nm(e){return Uint8Array.of(e?2:3)}function gE(e,n,t={}){Ii(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const i=n.randomBytes||_4,u=n.hmac||((D,...A)=>P4(n.hash,D,be(...A))),{Fp:r,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>De;return D>A}function l(D){return c(D)?a.neg(D):D}function f(D,A){if(!a.isValidNot0(A))throw new Error(`invalid signature ${D}: out of range 1..CURVE.n`)}class m{constructor(A,I,T){f("r",A),f("s",I),this.r=A,this.s=I,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const I=a.BYTES,T=ce("compactSignature",A,I*2);return new m(a.fromBytes(T.subarray(0,I)),a.fromBytes(T.subarray(I,I*2)))}static fromDER(A){const{r:I,s:T}=We.toSig(ce("DER",A));return new m(I,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const I=r.ORDER,{r:T,s:N,recovery:O}=this;if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");if(o*Ye<I&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const z=O===2||O===3?T+o:T;if(!r.isValid(z))throw new Error("recovery id 2 or 3 invalid");const ie=r.toBytes(z),Q=e.fromHex(be(nm((O&1)===0),ie)),j=a.inv(z),ae=k(ce("msgHash",A)),oe=a.create(-ae*j),le=a.create(N*j),Y=e.BASE.multiplyUnsafe(oe).add(Q.multiplyUnsafe(le));if(Y.is0())throw new Error("point at infinify");return Y.assertValidity(),Y}hasHighS(){return c(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,a.neg(this.s),this.recovery):this}toBytes(A){if(A==="compact")return be(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return Uo(We.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Yt(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Yt(this.toBytes("compact"))}}const d=em(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return aE(i(J4(D)),D)},precompute(D=8,A=e.BASE){return A.precompute(D,!1)}};function h(D,A=!0){return e.fromPrivateKey(D).toBytes(A)}function b(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const I=ce("key",D).length,T=r.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return I===N||I===O}function y(D,A,I=!0){if(b(D)===!0)throw new Error("first arg must be private key");if(b(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(I)}const E=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=In(D),I=D.length*8-s;return I>0?A>>BigInt(I):A},k=n.bits2int_modN||function(D){return a.create(E(D))},w=xi(s);function _(D){return C4("num < 2^"+s,D,Tn,w),a.toBytes(D)}function G(D,A,I=V){if(["recovered","canonical"].some(le=>le in I))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:P}=I;N==null&&(N=!0),D=ce("msgHash",D),X4(I),O&&(D=ce("prehashed msgHash",T(D)));const z=k(D),ie=d(A),Q=[_(ie),_(z)];if(P!=null&&P!==!1){const le=P===!0?i(r.BYTES):P;Q.push(ce("extraEntropy",le))}const j=be(...Q),ae=z;function oe(le){const Y=E(le);if(!a.isValidNot0(Y))return;const Ee=a.inv(Y),At=e.BASE.multiply(Y).toAffine(),On=a.create(At.x);if(On===Tn)return;const En=a.create(Ee*a.create(ae+On*ie));if(En===Tn)return;let ir=(At.x===On?0:2)|Number(At.y&De),zn=En;return N&&c(En)&&(zn=l(En),ir^=1),new m(On,zn,ir)}return{seed:j,k2sig:oe}}const V={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function g(D,A,I=V){const{seed:T,k2sig:N}=G(D,A,I);return F1(n.hash.outputLen,a.BYTES,u)(T,N)}e.BASE.precompute(8);function $(D,A,I,T=F){const N=D;A=ce("msgHash",A),I=ce("publicKey",I),X4(T);const{lowS:O,prehash:P,format:z}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(z!==void 0&&!["compact","der","js"].includes(z))throw new Error('format must be "compact", "der" or "js"');const ie=typeof N=="string"||Si(N),Q=!ie&&!z&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ie&&!Q)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let j,ae;try{if(Q)if(z===void 0||z==="js")j=new m(N.r,N.s);else throw new Error("invalid format");if(ie){try{z!=="compact"&&(j=m.fromDER(N))}catch(zn){if(!(zn instanceof We.Err))throw zn}!j&&z!=="der"&&(j=m.fromCompact(N))}ae=e.fromHex(I)}catch{return!1}if(!j||O&&j.hasHighS())return!1;P&&(A=n.hash(A));const{r:oe,s:le}=j,Y=k(A),Ee=a.inv(le),At=a.create(Y*Ee),On=a.create(oe*Ee),En=e.BASE.multiplyUnsafe(At).add(ae.multiplyUnsafe(On));return En.is0()?!1:a.create(En.x)===oe}return Object.freeze({getPublicKey:h,getSharedSecret:y,sign:g,verify:$,utils:v,Point:e,Signature:m})}function EE(e){const n={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t=e.Fp,i=ji(n.n,e.nBitLength),u={Fp:t,Fn:i,allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:n,curveOpts:u}}function yE(e){const{CURVE:n,curveOpts:t}=EE(e),i={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:n,curveOpts:t,ecdsaOpts:i}}function bE(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function kE(e){const{CURVE:n,curveOpts:t,ecdsaOpts:i}=yE(e),u=hE(n,t),r=gE(u,i,t);return bE(e,r)}function DE(e,n){const t=e.ORDER;let i=Tn;for(let v=t-De;v%Ye===Tn;v/=Ye)i+=De;const u=i,r=Ye<<u-De-De,a=r*Ye,o=(t-De)/a,s=(o-De)/Ye,c=a-De,l=r,f=e.pow(n,o),m=e.pow(n,(o+De)/Ye);let d=(v,h)=>{let b=f,y=e.pow(h,c),E=e.sqr(y);E=e.mul(E,h);let k=e.mul(v,E);k=e.pow(k,s),k=e.mul(k,y),y=e.mul(k,h),E=e.mul(k,v);let w=e.mul(E,y);k=e.pow(w,l);let _=e.eql(k,e.ONE);y=e.mul(E,m),k=e.mul(w,b),E=e.cmov(y,E,_),w=e.cmov(k,w,_);for(let G=u;G>De;G--){let V=G-Ye;V=Ye<<V-De;let F=e.pow(w,V);const g=e.eql(F,e.ONE);y=e.mul(E,b),b=e.mul(b,b),F=e.mul(w,b),E=e.cmov(y,E,g),w=e.cmov(F,w,g)}return{isValid:_,value:E}};if(e.ORDER%Go===yt){const v=(e.ORDER-yt)/Go,h=e.sqrt(e.neg(n));d=(b,y)=>{let E=e.sqr(y);const k=e.mul(b,y);E=e.mul(E,k);let w=e.pow(E,v);w=e.mul(w,k);const _=e.mul(w,h),G=e.mul(e.sqr(w),y),V=e.eql(G,b);let F=e.cmov(_,w,V);return{isValid:V,value:F}}}return d}function BE(e,n){M4(e);const{A:t,B:i,Z:u}=n;if(!e.isValid(t)||!e.isValid(i)||!e.isValid(u))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=DE(e,u);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return a=>{let o,s,c,l,f,m,d,v;o=e.sqr(a),o=e.mul(o,u),s=e.sqr(o),s=e.add(s,o),c=e.add(s,e.ONE),c=e.mul(c,i),l=e.cmov(u,e.neg(s),!e.eql(s,e.ZERO)),l=e.mul(l,t),s=e.sqr(c),m=e.sqr(l),f=e.mul(m,t),s=e.add(s,f),s=e.mul(s,c),m=e.mul(m,l),f=e.mul(m,i),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:b}=r(s,m);v=e.mul(o,a),v=e.mul(v,b),d=e.cmov(d,c,h),v=e.cmov(v,b,h);const y=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,y);const E=Pi(e,[l],!0)[0];return d=e.mul(d,E),{x:d,y:v}}}function _E(e,n){const t=i=>kE({...e,hash:i});return{...t(n),create:t}}var AE=In;function mn(e,n){if(uu(e),uu(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let i=n-1;i>=0;i--)t[i]=e&255,e>>>=8;return new Uint8Array(t)}function SE(e,n){const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e[i]^n[i];return t}function uu(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function wE(e,n,t,i){fe(e),fe(n),uu(t),n.length>255&&(n=i(be(wi("H2C-OVERSIZE-DST-"),n)));const{outputLen:u,blockLen:r}=i,a=Math.ceil(t/u);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=be(n,mn(n.length,1)),s=mn(0,r),c=mn(t,2),l=new Array(a),f=i(be(s,e,c,mn(0,1),o));l[0]=i(be(f,mn(1,1),o));for(let d=1;d<=a;d++){const v=[SE(f,l[d-1]),mn(d+1,1),o];l[d]=i(be(...v))}return be(...l).slice(0,t)}function CE(e,n,t,i,u){if(fe(e),fe(n),uu(t),n.length>255){const r=Math.ceil(2*i/8);n=u.create({dkLen:r}).update(wi("H2C-OVERSIZE-DST-")).update(n).digest()}if(t>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return u.create({dkLen:t}).update(e).update(mn(t,2)).update(n).update(mn(n.length,1)).digest()}function tm(e,n,t){Ii(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:i,k:u,m:r,hash:a,expand:o,DST:s}=t;if(!Si(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!N1(t.hash))throw new Error("expected valid hash");fe(e),uu(n);const c=typeof s=="string"?wi(s):s,l=i.toString(2).length,f=Math.ceil((l+u)/8),m=n*r*f;let d;if(o==="xmd")d=wE(e,c,m,a);else if(o==="xof")d=CE(e,c,m,u,a);else if(o==="_internal_pass")d=e;else throw new Error('expand must be "xmd" or "xof"');const v=new Array(n);for(let h=0;h<n;h++){const b=new Array(r);for(let y=0;y<r;y++){const E=f*(y+h*r),k=d.subarray(E,E+f);b[y]=ge(AE(k),i)}v[h]=b}return v}function $E(e,n){const t=n.map(i=>Array.from(i).reverse());return(i,u)=>{const[r,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,i),d))),[c,l]=Pi(e,[a,s],!0);return i=e.mul(r,c),u=e.mul(u,e.mul(o,l)),{x:i,y:u}}}function xE(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function i(r){return e.fromAffine(n(r))}function u(r){const a=r.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(r,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=tm(r,2,s),l=i(c[0]),f=i(c[1]);return u(l.add(f))},encodeToCurve(r,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=tm(r,1,s);return u(i(c[0]))},mapToCurve(r){if(!Array.isArray(r))throw new Error("expected array of bigints");for(const a of r)if(typeof a!="bigint")throw new Error("expected array of bigints");return u(i(r))}}}var Xe={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},um=BigInt(0),Ri=BigInt(1),Li=BigInt(2),im=(e,n)=>(e+n/Li)/n;function rm(e){const n=Xe.p,t=BigInt(3),i=BigInt(6),u=BigInt(11),r=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Fe(l,t,n)*l%n,m=Fe(f,t,n)*l%n,d=Fe(m,Li,n)*c%n,v=Fe(d,u,n)*d%n,h=Fe(v,r,n)*v%n,b=Fe(h,o,n)*h%n,y=Fe(b,s,n)*b%n,E=Fe(y,o,n)*h%n,k=Fe(E,t,n)*l%n,w=Fe(k,a,n)*v%n,_=Fe(w,i,n)*c%n,G=Fe(_,Li,n);if(!vn.eql(vn.sqr(G),e))throw new Error("Cannot find square root");return G}var vn=ji(Xe.p,void 0,void 0,{sqrt:rm}),Zi=_E({...Xe,Fp:vn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=Xe.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-Ri*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),u=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),r=t,a=BigInt("0x100000000000000000000000000000000"),o=im(r*e,n),s=im(-i*e,n);let c=ge(e-o*t-s*u,n),l=ge(-o*i-s*r,n);const f=c>a,m=l>a;if(f&&(c=n-c),m&&(l=n-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:c,k2neg:m,k2:l}}}},Ui),am={};function Vi(e,...n){let t=am[e];if(t===void 0){const i=Ui(Uint8Array.from(e,u=>u.charCodeAt(0)));t=be(i,i),am[e]=t}return Ui(be(t,...n))}var Jo=e=>e.toBytes(!0).slice(1),Ho=e=>eu(e,32),Ko=e=>ge(e,Xe.p),iu=e=>ge(e,Xe.n),Qo=Zi.Point,Wo=e=>e%Li===um;function Yo(e){let n=Zi.utils.normPrivateKeyToScalar(e),t=Qo.fromPrivateKey(n);return{scalar:Wo(t.y)?n:iu(-n),bytes:Jo(t)}}function om(e){C4("x",e,Ri,Xe.p);const n=Ko(e*e),t=Ko(n*e+BigInt(7));let i=rm(t);Wo(i)||(i=Ko(-i));const u=Qo.fromAffine({x:e,y:i});return u.assertValidity(),u}var bt=In;function sm(...e){return iu(bt(Vi("BIP0340/challenge",...e)))}function IE(e){return Yo(e).bytes}function FE(e,n,t=_4(32)){const i=ce("message",e),{bytes:u,scalar:r}=Yo(n),a=ce("auxRand",t,32),o=Ho(r^bt(Vi("BIP0340/aux",a))),s=Vi("BIP0340/nonce",o,u,i),c=iu(bt(s));if(c===um)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Yo(c),m=sm(l,u,i),d=new Uint8Array(64);if(d.set(l,0),d.set(Ho(iu(f+m*r)),32),!cm(d,i,u))throw new Error("sign: Invalid signature produced");return d}function cm(e,n,t){const i=ce("signature",e,64),u=ce("message",n),r=ce("publicKey",t,32);try{const a=om(bt(r)),o=bt(i.subarray(0,32));if(!Zo(o,Ri,Xe.p))return!1;const s=bt(i.subarray(32,64));if(!Zo(s,Ri,Xe.n))return!1;const c=sm(Ho(o),Jo(a),u),l=Qo.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(iu(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!Wo(m)||f!==o)}catch{return!1}}({getPublicKey:IE,sign:FE,verify:cm,utils:{randomPrivateKey:Zi.utils.randomPrivateKey,lift_x:om,pointToBytes:Jo,numberToBytesBE:eu,bytesToNumberBE:In,taggedHash:Vi,mod:ge}});var NE=$E(vn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),TE=BE(vn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:vn.create(BigInt("-11"))});xE(Zi.Point,e=>{const{x:n,y:t}=TE(vn.create(e[0]));return NE(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:vn.ORDER,m:1,k:128,expand:"xmd",hash:Ui});/*! Bundled license information:
|
|
412
|
+
*/function X1(e,n,t,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,i);const u=BigInt(32),r=BigInt(4294967295),a=Number(t>>u&r),o=Number(t&r),s=i?4:0,c=i?0:4;e.setUint32(n+s,a,i),e.setUint32(n+c,o,i)}function Ui(e,n,t){return e&n^~e&t}function j4(e,n,t){return e&n^e&t^n&t}var nu=class extends Lo{constructor(e,n,t,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=i,this.buffer=new Uint8Array(e),this.view=jo(this.buffer)}update(e){pt(this),e=Xt(e),fe(e);const{view:n,buffer:t,blockLen:i}=this,u=e.length;for(let r=0;r<u;){const a=Math.min(i-this.pos,u-r);if(a===i){const o=jo(e);for(;i<=u-r;r+=i)this.process(o,r);continue}t.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){pt(this),A4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:i,isLE:u}=this;let{pos:r}=this;n[r++]=128,Be(this.buffer.subarray(r)),this.padOffset>i-r&&(this.process(t,0),r=0);for(let l=r;l<i;l++)n[l]=0;X1(t,i-8,BigInt(this.length*8),u),this.process(t,0);const a=jo(e),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const s=o/4,c=this.get();if(s>c.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<s;l++)a.setUint32(4*l,c[l],u)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:i,finished:u,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=u,e.length=i,e.pos=a,i%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},sn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),cn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),me=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),ve=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),eE=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ln=new Uint32Array(64),R4=class extends nu{constructor(e=32){super(64,e,8,!1),this.A=sn[0]|0,this.B=sn[1]|0,this.C=sn[2]|0,this.D=sn[3]|0,this.E=sn[4]|0,this.F=sn[5]|0,this.G=sn[6]|0,this.H=sn[7]|0}get(){const{A:e,B:n,C:t,D:i,E:u,F:r,G:a,H:o}=this;return[e,n,t,i,u,r,a,o]}set(e,n,t,i,u,r,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=i|0,this.E=u|0,this.F=r|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)ln[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=ln[l-15],m=ln[l-2],d=qe(f,7)^qe(f,18)^f>>>3,v=qe(m,17)^qe(m,19)^m>>>10;ln[l]=v+ln[l-7]+d+ln[l-16]|0}let{A:t,B:i,C:u,D:r,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=qe(a,6)^qe(a,11)^qe(a,25),m=c+f+Ui(a,o,s)+eE[l]+ln[l]|0,v=(qe(t,2)^qe(t,13)^qe(t,22))+j4(t,i,u)|0;c=s,s=o,o=a,a=r+m|0,r=u,u=i,i=t,t=m+v|0}t=t+this.A|0,i=i+this.B|0,u=u+this.C|0,r=r+this.D|0,a=a+this.E|0,o=o+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(t,i,u,r,a,o,s,c)}roundClean(){Be(ln)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}},nE=class extends R4{constructor(){super(28),this.A=cn[0]|0,this.B=cn[1]|0,this.C=cn[2]|0,this.D=cn[3]|0,this.E=cn[4]|0,this.F=cn[5]|0,this.G=cn[6]|0,this.H=cn[7]|0}},L4=z4(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),tE=L4[0],uE=L4[1],dn=new Uint32Array(80),fn=new Uint32Array(80),Pi=class extends nu{constructor(e=64){super(128,e,16,!1),this.Ah=ve[0]|0,this.Al=ve[1]|0,this.Bh=ve[2]|0,this.Bl=ve[3]|0,this.Ch=ve[4]|0,this.Cl=ve[5]|0,this.Dh=ve[6]|0,this.Dl=ve[7]|0,this.Eh=ve[8]|0,this.El=ve[9]|0,this.Fh=ve[10]|0,this.Fl=ve[11]|0,this.Gh=ve[12]|0,this.Gl=ve[13]|0,this.Hh=ve[14]|0,this.Hl=ve[15]|0}get(){const{Ah:e,Al:n,Bh:t,Bl:i,Ch:u,Cl:r,Dh:a,Dl:o,Eh:s,El:c,Fh:l,Fl:f,Gh:m,Gl:d,Hh:v,Hl:h}=this;return[e,n,t,i,u,r,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,i,u,r,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=i|0,this.Ch=u|0,this.Cl=r|0,this.Dh=a|0,this.Dl=o|0,this.Eh=s|0,this.El=c|0,this.Fh=l|0,this.Fl=f|0,this.Gh=m|0,this.Gl=d|0,this.Hh=v|0,this.Hl=h|0}process(e,n){for(let E=0;E<16;E++,n+=4)dn[E]=e.getUint32(n),fn[E]=e.getUint32(n+=4);for(let E=16;E<80;E++){const k=dn[E-15]|0,w=fn[E-15]|0,_=ht(k,w,1)^ht(k,w,8)^U4(k,w,7),G=gt(k,w,1)^gt(k,w,8)^P4(k,w,7),V=dn[E-2]|0,F=fn[E-2]|0,g=ht(V,F,19)^Oi(V,F,61)^U4(V,F,6),$=gt(V,F,19)^zi(V,F,61)^P4(V,F,6),D=K1(G,$,fn[E-7],fn[E-16]),A=Q1(D,_,g,dn[E-7],dn[E-16]);dn[E]=A|0,fn[E]=D|0}let{Ah:t,Al:i,Bh:u,Bl:r,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:b,Hl:y}=this;for(let E=0;E<80;E++){const k=ht(l,f,14)^ht(l,f,18)^Oi(l,f,41),w=gt(l,f,14)^gt(l,f,18)^zi(l,f,41),_=l&m^~l&v,G=f&d^~f&h,V=W1(y,w,G,uE[E],fn[E]),F=Y1(V,b,k,_,tE[E],dn[E]),g=V|0,$=ht(t,i,28)^Oi(t,i,34)^Oi(t,i,39),D=gt(t,i,28)^zi(t,i,34)^zi(t,i,39),A=t&u^t&a^u&a,I=i&r^i&o^r&o;b=v|0,y=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=Qe(s|0,c|0,F|0,g|0),s=a|0,c=o|0,a=u|0,o=r|0,u=t|0,r=i|0;const T=J1(g,D,I);t=H1(T,F,$,A),i=T|0}({h:t,l:i}=Qe(this.Ah|0,this.Al|0,t|0,i|0)),{h:u,l:r}=Qe(this.Bh|0,this.Bl|0,u|0,r|0),{h:a,l:o}=Qe(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=Qe(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=Qe(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=Qe(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=Qe(this.Gh|0,this.Gl|0,v|0,h|0),{h:b,l:y}=Qe(this.Hh|0,this.Hl|0,b|0,y|0),this.set(t,i,u,r,a,o,s,c,l,f,m,d,v,h,b,y)}roundClean(){Be(dn,fn)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},iE=class extends Pi{constructor(){super(48),this.Ah=me[0]|0,this.Al=me[1]|0,this.Bh=me[2]|0,this.Bl=me[3]|0,this.Ch=me[4]|0,this.Cl=me[5]|0,this.Dh=me[6]|0,this.Dl=me[7]|0,this.Eh=me[8]|0,this.El=me[9]|0,this.Fh=me[10]|0,this.Fl=me[11]|0,this.Gh=me[12]|0,this.Gl=me[13]|0,this.Hh=me[14]|0,this.Hl=me[15]|0}},pe=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),he=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),rE=class extends Pi{constructor(){super(28),this.Ah=pe[0]|0,this.Al=pe[1]|0,this.Bh=pe[2]|0,this.Bl=pe[3]|0,this.Ch=pe[4]|0,this.Cl=pe[5]|0,this.Dh=pe[6]|0,this.Dl=pe[7]|0,this.Eh=pe[8]|0,this.El=pe[9]|0,this.Fh=pe[10]|0,this.Fl=pe[11]|0,this.Gh=pe[12]|0,this.Gl=pe[13]|0,this.Hh=pe[14]|0,this.Hl=pe[15]|0}},aE=class extends Pi{constructor(){super(32),this.Ah=he[0]|0,this.Al=he[1]|0,this.Bh=he[2]|0,this.Bl=he[3]|0,this.Ch=he[4]|0,this.Cl=he[5]|0,this.Dh=he[6]|0,this.Dl=he[7]|0,this.Eh=he[8]|0,this.El=he[9]|0,this.Fh=he[10]|0,this.Fl=he[11]|0,this.Gh=he[12]|0,this.Gl=he[13]|0,this.Hh=he[14]|0,this.Hl=he[15]|0}},ji=Me(()=>new R4);Me(()=>new nE),Me(()=>new Pi),Me(()=>new iE),Me(()=>new aE),Me(()=>new rE);var Z4=class extends Lo{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,F1(e);const t=Xt(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,u=new Uint8Array(i);u.set(t.length>i?e.create().update(t).digest():t);for(let r=0;r<u.length;r++)u[r]^=54;this.iHash.update(u),this.oHash=e.create();for(let r=0;r<u.length;r++)u[r]^=106;this.oHash.update(u),Be(u)}update(e){return pt(this),this.iHash.update(e),this}digestInto(e){pt(this),fe(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:i,destroyed:u,blockLen:r,outputLen:a}=this;return e=e,e.finished=i,e.destroyed=u,e.blockLen=r,e.outputLen=a,e.oHash=n._cloneInto(e.oHash),e.iHash=t._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},V4=(e,n,t)=>new Z4(e,n).update(t).digest();V4.create=(e,n)=>new Z4(e,n);var _e=BigInt(0),ke=BigInt(1),Fn=BigInt(2),oE=BigInt(3),q4=BigInt(4),M4=BigInt(5),G4=BigInt(8);function ge(e,n){const t=e%n;return t>=_e?t:n+t}function Fe(e,n,t){let i=e;for(;n-- >_e;)i*=i,i%=t;return i}function J4(e,n){if(e===_e)throw new Error("invert: expected non-zero number");if(n<=_e)throw new Error("invert: expected positive modulus, got "+n);let t=ge(e,n),i=n,u=_e,r=ke;for(;t!==_e;){const o=i/t,s=i%t,c=u-r*o;i=t,t=s,u=r,r=c}if(i!==ke)throw new Error("invert: does not exist");return ge(u,n)}function H4(e,n){const t=(e.ORDER+ke)/q4,i=e.pow(n,t);if(!e.eql(e.sqr(i),n))throw new Error("Cannot find square root");return i}function sE(e,n){const t=(e.ORDER-M4)/G4,i=e.mul(n,Fn),u=e.pow(i,t),r=e.mul(n,u),a=e.mul(e.mul(r,Fn),u),o=e.mul(r,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function cE(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-ke,t=0;for(;n%Fn===_e;)n/=Fn,t++;let i=Fn;const u=Li(e);for(;Q4(u,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return H4;let r=u.pow(i,n);const a=(n+ke)/Fn;return function(s,c){if(s.is0(c))return c;if(Q4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,r),m=s.pow(c,n),d=s.pow(c,a);for(;!s.eql(m,s.ONE);){if(s.is0(m))return s.ZERO;let v=1,h=s.sqr(m);for(;!s.eql(h,s.ONE);)if(v++,h=s.sqr(h),v===l)throw new Error("Cannot find square root");const b=ke<<BigInt(l-v-1),y=s.pow(f,b);l=v,f=s.sqr(y),m=s.mul(m,f),d=s.mul(d,y)}return d}}function lE(e){return e%q4===oE?H4:e%G4===M4?sE:cE(e)}var dE=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function K4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=dE.reduce((i,u)=>(i[u]="function",i),n);return Ni(e,t),e}function fE(e,n,t){if(t<_e)throw new Error("invalid exponent, negatives unsupported");if(t===_e)return e.ONE;if(t===ke)return n;let i=e.ONE,u=n;for(;t>_e;)t&ke&&(i=e.mul(i,u)),u=e.sqr(u),t>>=ke;return i}function Ri(e,n,t=!1){const i=new Array(n.length).fill(t?e.ZERO:void 0),u=n.reduce((a,o,s)=>e.is0(o)?a:(i[s]=a,e.mul(a,o)),e.ONE),r=e.inv(u);return n.reduceRight((a,o,s)=>e.is0(o)?a:(i[s]=e.mul(a,i[s]),e.mul(a,o)),r),i}function Q4(e,n){const t=(e.ORDER-ke)/Fn,i=e.pow(n,t),u=e.eql(i,e.ONE),r=e.eql(i,e.ZERO),a=e.eql(i,e.neg(e.ONE));if(!u&&!r&&!a)throw new Error("invalid Legendre symbol result");return u?1:r?0:-1}function mE(e,n){n!==void 0&&Wt(n);const t=n!==void 0?n:e.toString(2).length,i=Math.ceil(t/8);return{nBitLength:t,nByteLength:i}}function Li(e,n,t=!1,i={}){if(e<=_e)throw new Error("invalid field: expected ORDER > 0, got "+e);let u,r;if(typeof n=="object"&&n!=null){if(i.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(u=l.BITS),l.sqrt&&(r=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(u=n),i.sqrt&&(r=i.sqrt);const{nBitLength:a,nByteLength:o}=mE(e,u);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:t,BITS:a,BYTES:o,MASK:Fi(a),ZERO:_e,ONE:ke,create:l=>ge(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return _e<=l&&l<e},is0:l=>l===_e,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&ke)===ke,neg:l=>ge(-l,e),eql:(l,f)=>l===f,sqr:l=>ge(l*l,e),add:(l,f)=>ge(l+f,e),sub:(l,f)=>ge(l-f,e),mul:(l,f)=>ge(l*f,e),pow:(l,f)=>fE(c,l,f),div:(l,f)=>ge(l*J4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>J4(l,e),sqrt:r||(l=>(s||(s=lE(e)),s(c,l))),toBytes:l=>t?F4(l,o):eu(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?I4(l):In(l)},invertBatch:l=>Ri(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function W4(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function Y4(e){const n=W4(e);return n+Math.ceil(n/2)}function vE(e,n,t=!1){const i=e.length,u=W4(n),r=Y4(n);if(i<16||i<r||i>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+i);const a=t?I4(e):In(e),o=ge(a,n-ke)+ke;return t?F4(o,u):eu(o,u)}var Et=BigInt(0),Nn=BigInt(1);function tu(e,n){const t=n.negate();return e?t:n}function pE(e,n,t){const i=a=>a.pz,u=Ri(e.Fp,t.map(i));return t.map((a,o)=>a.toAffine(u[o])).map(e.fromAffine)}function X4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function Go(e,n){X4(e,n);const t=Math.ceil(n/e)+1,i=2**(e-1),u=2**e,r=Fi(e),a=BigInt(e);return{windows:t,windowSize:i,mask:r,maxNumber:u,shiftBy:a}}function em(e,n,t){const{windowSize:i,mask:u,maxNumber:r,shiftBy:a}=t;let o=Number(e&u),s=e>>a;o>i&&(o-=r,s+=Nn);const c=n*i,l=c+Math.abs(o)-1,f=o===0,m=o<0,d=n%2!==0;return{nextN:s,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:c}}function hE(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,i)=>{if(!(t instanceof n))throw new Error("invalid point at index "+i)})}function gE(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,i)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+i)})}var Jo=new WeakMap,nm=new WeakMap;function Ho(e){return nm.get(e)||1}function tm(e){if(e!==Et)throw new Error("invalid wNAF")}function EE(e,n){return{constTimeNegate:tu,hasPrecomputes(t){return Ho(t)!==1},unsafeLadder(t,i,u=e.ZERO){let r=t;for(;i>Et;)i&Nn&&(u=u.add(r)),r=r.double(),i>>=Nn;return u},precomputeWindow(t,i){const{windows:u,windowSize:r}=Go(i,n),a=[];let o=t,s=o;for(let c=0;c<u;c++){s=o,a.push(s);for(let l=1;l<r;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,i,u){let r=e.ZERO,a=e.BASE;const o=Go(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=em(u,s,o);u=c,f?a=a.add(tu(d,i[v])):r=r.add(tu(m,i[l]))}return tm(u),{p:r,f:a}},wNAFUnsafe(t,i,u,r=e.ZERO){const a=Go(t,n);for(let o=0;o<a.windows&&u!==Et;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=em(u,o,a);if(u=s,!l){const m=i[c];r=r.add(f?m.negate():m)}}return tm(u),r},getPrecomputes(t,i,u){let r=Jo.get(i);return r||(r=this.precomputeWindow(i,t),t!==1&&(typeof u=="function"&&(r=u(r)),Jo.set(i,r))),r},wNAFCached(t,i,u){const r=Ho(t);return this.wNAF(r,this.getPrecomputes(r,t,u),i)},wNAFCachedUnsafe(t,i,u,r){const a=Ho(t);return a===1?this.unsafeLadder(t,i,r):this.wNAFUnsafe(a,this.getPrecomputes(a,t,u),i,r)},setWindowSize(t,i){X4(i,n),nm.set(t,i),Jo.delete(t)}}}function yE(e,n,t,i){let u=n,r=e.ZERO,a=e.ZERO;for(;t>Et||i>Et;)t&Nn&&(r=r.add(u)),i&Nn&&(a=a.add(u)),u=u.double(),t>>=Nn,i>>=Nn;return{p1:r,p2:a}}function bE(e,n,t,i){hE(t,e),gE(i,n);const u=t.length,r=i.length;if(u!==r)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=j1(BigInt(u));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=Fi(s),l=new Array(Number(c)+1).fill(a),f=Math.floor((n.BITS-1)/s)*s;let m=a;for(let d=f;d>=0;d-=s){l.fill(a);for(let h=0;h<r;h++){const b=i[h],y=Number(b>>BigInt(d)&c);l[y]=l[y].add(t[h])}let v=a;for(let h=l.length-1,b=a;h>0;h--)b=b.add(l[h]),v=v.add(b);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function um(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return K4(n),n}else return Li(e)}function kE(e,n,t={}){if(!n||typeof n!="object")throw new Error(`expected valid ${e} CURVE object`);for(const o of["p","n","h"]){const s=n[o];if(!(typeof s=="bigint"&&s>Et))throw new Error(`CURVE.${o} must be positive bigint`)}const i=um(n.p,t.Fp),u=um(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!i.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:i,Fn:u}}function im(e){e.lowS!==void 0&&xi("lowS",e.lowS),e.prehash!==void 0&&xi("prehash",e.prehash)}var DE=class extends Error{constructor(e=""){super(e)}},We={Err:DE,_tlv:{encode:(e,n)=>{const{Err:t}=We;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const i=n.length/2,u=Ii(i);if(u.length/2&128)throw new t("tlv.encode: long form length too big");const r=i>127?Ii(u.length/2|128):"";return Ii(e)+r+u+n},decode(e,n){const{Err:t}=We;let i=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[i++]!==e)throw new t("tlv.decode: wrong tlv");const u=n[i++],r=!!(u&128);let a=0;if(!r)a=u;else{const s=u&127;if(!s)throw new t("tlv.decode(long): indefinite length not supported");if(s>4)throw new t("tlv.decode(long): byte length is too big");const c=n.subarray(i,i+s);if(c.length!==s)throw new t("tlv.decode: length bytes not complete");if(c[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const l of c)a=a<<8|l;if(i+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(i,i+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(i+a)}}},_int:{encode(e){const{Err:n}=We;if(e<Tn)throw new n("integer: negative integers are not allowed");let t=Ii(e);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return t},decode(e){const{Err:n}=We;if(e[0]&128)throw new n("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return In(e)}},toSig(e){const{Err:n,_int:t,_tlv:i}=We,u=ce("signature",e),{v:r,l:a}=i.decode(48,u);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=i.decode(2,r),{v:c,l}=i.decode(2,s);if(l.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(o),s:t.decode(c)}},hexFromSig(e){const{_tlv:n,_int:t}=We,i=n.encode(2,t.encode(e.r)),u=n.encode(2,t.encode(e.s)),r=i+u;return n.encode(48,r)}},Tn=BigInt(0),De=BigInt(1),Ye=BigInt(2),yt=BigInt(3),Ko=BigInt(4);function BE(e,n,t){function i(u){const r=e.sqr(u),a=e.mul(r,u);return e.add(e.add(a,e.mul(u,n)),t)}return i}function rm(e,n,t){const{BYTES:i}=e;function u(r){let a;if(typeof r=="bigint")a=r;else{let o=ce("private key",r);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(i);s.set(o,s.length-o.length),o=s}try{a=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${i}, got ${typeof r}`)}}if(t&&(a=e.create(a)),!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}return u}function _E(e,n={}){const{Fp:t,Fn:i}=kE("weierstrass",e,n),{h:u,n:r}=e;Ni(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:a}=n;if(a&&(!t.is0(e.a)||typeof a.beta!="bigint"||typeof a.splitScalar!="function"))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function o(){if(!t.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function s(F,g,$){const{x:D,y:A}=g.toAffine(),I=t.toBytes(D);if(xi("isCompressed",$),$){o();const T=!t.isOdd(A);return be(am(T),I)}else return be(Uint8Array.of(4),I,t.toBytes(A))}function c(F){fe(F);const g=t.BYTES,$=g+1,D=2*g+1,A=F.length,I=F[0],T=F.subarray(1);if(A===$&&(I===2||I===3)){const N=t.fromBytes(T);if(!t.isValid(N))throw new Error("bad point: is not on curve, wrong x");const O=m(N);let P;try{P=t.sqrt(O)}catch(Q){const j=Q instanceof Error?": "+Q.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}o();const z=t.isOdd(P);return(I&1)===1!==z&&(P=t.neg(P)),{x:N,y:P}}else if(A===D&&I===4){const N=t.fromBytes(T.subarray(g*0,g*1)),O=t.fromBytes(T.subarray(g*1,g*2));if(!d(N,O))throw new Error("bad point: is not on curve");return{x:N,y:O}}else throw new Error(`bad point: got length ${A}, expected compressed=${$} or uncompressed=${D}`)}const l=n.toBytes||s,f=n.fromBytes||c,m=BE(t,e.a,e.b);function d(F,g){const $=t.sqr(g),D=m(F);return t.eql($,D)}if(!d(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=t.mul(t.pow(e.a,yt),Ko),h=t.mul(t.sqr(e.b),BigInt(27));if(t.is0(t.add(v,h)))throw new Error("bad curve params: a or b");function b(F,g,$=!1){if(!t.isValid(g)||$&&t.is0(g))throw new Error(`bad point coordinate ${F}`);return g}function y(F){if(!(F instanceof _))throw new Error("ProjectivePoint expected")}const E=T4((F,g)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const I=F.is0();g==null&&(g=I?t.ONE:t.inv(A));const T=t.mul($,g),N=t.mul(D,g),O=t.mul(A,g);if(I)return{x:t.ZERO,y:t.ZERO};if(!t.eql(O,t.ONE))throw new Error("invZ was invalid");return{x:T,y:N}}),k=T4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:g,y:$}=F.toAffine();if(!t.isValid(g)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(g,$))throw new Error("bad point: equation left != right");if(!F.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function w(F,g,$,D,A){return $=new _(t.mul($.px,F),$.py,$.pz),g=tu(D,g),$=tu(A,$),g.add($)}class _{constructor(g,$,D){this.px=b("x",g),this.py=b("y",$,!0),this.pz=b("z",D),Object.freeze(this)}static fromAffine(g){const{x:$,y:D}=g||{};if(!g||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(g instanceof _)throw new Error("projective point not allowed");return t.is0($)&&t.is0(D)?_.ZERO:new _($,D,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(g){return pE(_,"pz",g)}static fromBytes(g){return fe(g),_.fromHex(g)}static fromHex(g){const $=_.fromAffine(f(ce("pointHex",g)));return $.assertValidity(),$}static fromPrivateKey(g){const $=rm(i,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return _.BASE.multiply($(g))}static msm(g,$){return bE(_,i,g,$)}precompute(g=8,$=!0){return V.setWindowSize(this,g),$||this.multiply(yt),this}_setWindowSize(g){this.precompute(g)}assertValidity(){k(this)}hasEvenY(){const{y:g}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(g)}equals(g){y(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g,O=t.eql(t.mul($,N),t.mul(I,A)),P=t.eql(t.mul(D,N),t.mul(T,A));return O&&P}negate(){return new _(this.px,t.neg(this.py),this.pz)}double(){const{a:g,b:$}=e,D=t.mul($,yt),{px:A,py:I,pz:T}=this;let N=t.ZERO,O=t.ZERO,P=t.ZERO,z=t.mul(A,A),ie=t.mul(I,I),Q=t.mul(T,T),j=t.mul(A,I);return j=t.add(j,j),P=t.mul(A,T),P=t.add(P,P),N=t.mul(g,P),O=t.mul(D,Q),O=t.add(N,O),N=t.sub(ie,O),O=t.add(ie,O),O=t.mul(N,O),N=t.mul(j,N),P=t.mul(D,P),Q=t.mul(g,Q),j=t.sub(z,Q),j=t.mul(g,j),j=t.add(j,P),P=t.add(z,z),z=t.add(P,z),z=t.add(z,Q),z=t.mul(z,j),O=t.add(O,z),Q=t.mul(I,T),Q=t.add(Q,Q),z=t.mul(Q,j),N=t.sub(N,z),P=t.mul(Q,ie),P=t.add(P,P),P=t.add(P,P),new _(N,O,P)}add(g){y(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g;let O=t.ZERO,P=t.ZERO,z=t.ZERO;const ie=e.a,Q=t.mul(e.b,yt);let j=t.mul($,I),ae=t.mul(D,T),oe=t.mul(A,N),le=t.add($,D),Y=t.add(I,T);le=t.mul(le,Y),Y=t.add(j,ae),le=t.sub(le,Y),Y=t.add($,A);let Ee=t.add(I,N);return Y=t.mul(Y,Ee),Ee=t.add(j,oe),Y=t.sub(Y,Ee),Ee=t.add(D,A),O=t.add(T,N),Ee=t.mul(Ee,O),O=t.add(ae,oe),Ee=t.sub(Ee,O),z=t.mul(ie,Y),O=t.mul(Q,oe),z=t.add(O,z),O=t.sub(ae,z),z=t.add(ae,z),P=t.mul(O,z),ae=t.add(j,j),ae=t.add(ae,j),oe=t.mul(ie,oe),Y=t.mul(Q,Y),ae=t.add(ae,oe),oe=t.sub(j,oe),oe=t.mul(ie,oe),Y=t.add(Y,oe),j=t.mul(ae,Y),P=t.add(P,j),j=t.mul(Ee,Y),O=t.mul(le,O),O=t.sub(O,j),j=t.mul(le,ae),z=t.mul(Ee,z),z=t.add(z,j),new _(O,P,z)}subtract(g){return this.add(g.negate())}is0(){return this.equals(_.ZERO)}multiply(g){const{endo:$}=n;if(!i.isValidNot0(g))throw new Error("invalid scalar: out of range");let D,A;const I=T=>V.wNAFCached(this,T,_.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:P}=$.splitScalar(g),{p:z,f:ie}=I(N),{p:Q,f:j}=I(P);A=ie.add(j),D=w($.beta,z,Q,T,O)}else{const{p:T,f:N}=I(g);D=T,A=N}return _.normalizeZ([D,A])[0]}multiplyUnsafe(g){const{endo:$}=n,D=this;if(!i.isValid(g))throw new Error("invalid scalar: out of range");if(g===Tn||D.is0())return _.ZERO;if(g===De)return D;if(V.hasPrecomputes(this))return this.multiply(g);if($){const{k1neg:A,k1:I,k2neg:T,k2:N}=$.splitScalar(g),{p1:O,p2:P}=yE(_,D,I,N);return w($.beta,O,P,A,T)}else return V.wNAFCachedUnsafe(D,g)}multiplyAndAddUnsafe(g,$,D){const A=this.multiplyUnsafe($).add(g.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(g){return E(this,g)}isTorsionFree(){const{isTorsionFree:g}=n;return u===De?!0:g?g(_,this):V.wNAFCachedUnsafe(this,r).is0()}clearCofactor(){const{clearCofactor:g}=n;return u===De?this:g?g(_,this):this.multiplyUnsafe(u)}toBytes(g=!0){return xi("isCompressed",g),this.assertValidity(),l(_,this,g)}toRawBytes(g=!0){return this.toBytes(g)}toHex(g=!0){return Yt(this.toBytes(g))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}_.BASE=new _(e.Gx,e.Gy,t.ONE),_.ZERO=new _(t.ZERO,t.ONE,t.ZERO),_.Fp=t,_.Fn=i;const G=i.BITS,V=EE(_,n.endo?Math.ceil(G/2):G);return _}function am(e){return Uint8Array.of(e?2:3)}function AE(e,n,t={}){Ni(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const i=n.randomBytes||$4,u=n.hmac||((D,...A)=>V4(n.hash,D,be(...A))),{Fp:r,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>De;return D>A}function l(D){return c(D)?a.neg(D):D}function f(D,A){if(!a.isValidNot0(A))throw new Error(`invalid signature ${D}: out of range 1..CURVE.n`)}class m{constructor(A,I,T){f("r",A),f("s",I),this.r=A,this.s=I,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const I=a.BYTES,T=ce("compactSignature",A,I*2);return new m(a.fromBytes(T.subarray(0,I)),a.fromBytes(T.subarray(I,I*2)))}static fromDER(A){const{r:I,s:T}=We.toSig(ce("DER",A));return new m(I,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const I=r.ORDER,{r:T,s:N,recovery:O}=this;if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");if(o*Ye<I&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const z=O===2||O===3?T+o:T;if(!r.isValid(z))throw new Error("recovery id 2 or 3 invalid");const ie=r.toBytes(z),Q=e.fromHex(be(am((O&1)===0),ie)),j=a.inv(z),ae=k(ce("msgHash",A)),oe=a.create(-ae*j),le=a.create(N*j),Y=e.BASE.multiplyUnsafe(oe).add(Q.multiplyUnsafe(le));if(Y.is0())throw new Error("point at infinify");return Y.assertValidity(),Y}hasHighS(){return c(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,a.neg(this.s),this.recovery):this}toBytes(A){if(A==="compact")return be(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return Ro(We.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Yt(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Yt(this.toBytes("compact"))}}const d=rm(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return vE(i(Y4(D)),D)},precompute(D=8,A=e.BASE){return A.precompute(D,!1)}};function h(D,A=!0){return e.fromPrivateKey(D).toBytes(A)}function b(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const I=ce("key",D).length,T=r.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return I===N||I===O}function y(D,A,I=!0){if(b(D)===!0)throw new Error("first arg must be private key");if(b(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(I)}const E=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=In(D),I=D.length*8-s;return I>0?A>>BigInt(I):A},k=n.bits2int_modN||function(D){return a.create(E(D))},w=Fi(s);function _(D){return N4("num < 2^"+s,D,Tn,w),a.toBytes(D)}function G(D,A,I=V){if(["recovered","canonical"].some(le=>le in I))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:P}=I;N==null&&(N=!0),D=ce("msgHash",D),im(I),O&&(D=ce("prehashed msgHash",T(D)));const z=k(D),ie=d(A),Q=[_(ie),_(z)];if(P!=null&&P!==!1){const le=P===!0?i(r.BYTES):P;Q.push(ce("extraEntropy",le))}const j=be(...Q),ae=z;function oe(le){const Y=E(le);if(!a.isValidNot0(Y))return;const Ee=a.inv(Y),At=e.BASE.multiply(Y).toAffine(),On=a.create(At.x);if(On===Tn)return;const En=a.create(Ee*a.create(ae+On*ie));if(En===Tn)return;let ar=(At.x===On?0:2)|Number(At.y&De),zn=En;return N&&c(En)&&(zn=l(En),ar^=1),new m(On,zn,ar)}return{seed:j,k2sig:oe}}const V={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function g(D,A,I=V){const{seed:T,k2sig:N}=G(D,A,I);return R1(n.hash.outputLen,a.BYTES,u)(T,N)}e.BASE.precompute(8);function $(D,A,I,T=F){const N=D;A=ce("msgHash",A),I=ce("publicKey",I),im(T);const{lowS:O,prehash:P,format:z}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(z!==void 0&&!["compact","der","js"].includes(z))throw new Error('format must be "compact", "der" or "js"');const ie=typeof N=="string"||Ci(N),Q=!ie&&!z&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ie&&!Q)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let j,ae;try{if(Q)if(z===void 0||z==="js")j=new m(N.r,N.s);else throw new Error("invalid format");if(ie){try{z!=="compact"&&(j=m.fromDER(N))}catch(zn){if(!(zn instanceof We.Err))throw zn}!j&&z!=="der"&&(j=m.fromCompact(N))}ae=e.fromHex(I)}catch{return!1}if(!j||O&&j.hasHighS())return!1;P&&(A=n.hash(A));const{r:oe,s:le}=j,Y=k(A),Ee=a.inv(le),At=a.create(Y*Ee),On=a.create(oe*Ee),En=e.BASE.multiplyUnsafe(At).add(ae.multiplyUnsafe(On));return En.is0()?!1:a.create(En.x)===oe}return Object.freeze({getPublicKey:h,getSharedSecret:y,sign:g,verify:$,utils:v,Point:e,Signature:m})}function SE(e){const n={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t=e.Fp,i=Li(n.n,e.nBitLength),u={Fp:t,Fn:i,allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:n,curveOpts:u}}function wE(e){const{CURVE:n,curveOpts:t}=SE(e),i={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:n,curveOpts:t,ecdsaOpts:i}}function CE(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function $E(e){const{CURVE:n,curveOpts:t,ecdsaOpts:i}=wE(e),u=_E(n,t),r=AE(u,i,t);return CE(e,r)}function xE(e,n){const t=e.ORDER;let i=Tn;for(let v=t-De;v%Ye===Tn;v/=Ye)i+=De;const u=i,r=Ye<<u-De-De,a=r*Ye,o=(t-De)/a,s=(o-De)/Ye,c=a-De,l=r,f=e.pow(n,o),m=e.pow(n,(o+De)/Ye);let d=(v,h)=>{let b=f,y=e.pow(h,c),E=e.sqr(y);E=e.mul(E,h);let k=e.mul(v,E);k=e.pow(k,s),k=e.mul(k,y),y=e.mul(k,h),E=e.mul(k,v);let w=e.mul(E,y);k=e.pow(w,l);let _=e.eql(k,e.ONE);y=e.mul(E,m),k=e.mul(w,b),E=e.cmov(y,E,_),w=e.cmov(k,w,_);for(let G=u;G>De;G--){let V=G-Ye;V=Ye<<V-De;let F=e.pow(w,V);const g=e.eql(F,e.ONE);y=e.mul(E,b),b=e.mul(b,b),F=e.mul(w,b),E=e.cmov(y,E,g),w=e.cmov(F,w,g)}return{isValid:_,value:E}};if(e.ORDER%Ko===yt){const v=(e.ORDER-yt)/Ko,h=e.sqrt(e.neg(n));d=(b,y)=>{let E=e.sqr(y);const k=e.mul(b,y);E=e.mul(E,k);let w=e.pow(E,v);w=e.mul(w,k);const _=e.mul(w,h),G=e.mul(e.sqr(w),y),V=e.eql(G,b);let F=e.cmov(_,w,V);return{isValid:V,value:F}}}return d}function IE(e,n){K4(e);const{A:t,B:i,Z:u}=n;if(!e.isValid(t)||!e.isValid(i)||!e.isValid(u))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=xE(e,u);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return a=>{let o,s,c,l,f,m,d,v;o=e.sqr(a),o=e.mul(o,u),s=e.sqr(o),s=e.add(s,o),c=e.add(s,e.ONE),c=e.mul(c,i),l=e.cmov(u,e.neg(s),!e.eql(s,e.ZERO)),l=e.mul(l,t),s=e.sqr(c),m=e.sqr(l),f=e.mul(m,t),s=e.add(s,f),s=e.mul(s,c),m=e.mul(m,l),f=e.mul(m,i),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:b}=r(s,m);v=e.mul(o,a),v=e.mul(v,b),d=e.cmov(d,c,h),v=e.cmov(v,b,h);const y=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,y);const E=Ri(e,[l],!0)[0];return d=e.mul(d,E),{x:d,y:v}}}function FE(e,n){const t=i=>$E({...e,hash:i});return{...t(n),create:t}}var NE=In;function mn(e,n){if(uu(e),uu(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let i=n-1;i>=0;i--)t[i]=e&255,e>>>=8;return new Uint8Array(t)}function TE(e,n){const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e[i]^n[i];return t}function uu(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function OE(e,n,t,i){fe(e),fe(n),uu(t),n.length>255&&(n=i(be($i("H2C-OVERSIZE-DST-"),n)));const{outputLen:u,blockLen:r}=i,a=Math.ceil(t/u);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=be(n,mn(n.length,1)),s=mn(0,r),c=mn(t,2),l=new Array(a),f=i(be(s,e,c,mn(0,1),o));l[0]=i(be(f,mn(1,1),o));for(let d=1;d<=a;d++){const v=[TE(f,l[d-1]),mn(d+1,1),o];l[d]=i(be(...v))}return be(...l).slice(0,t)}function zE(e,n,t,i,u){if(fe(e),fe(n),uu(t),n.length>255){const r=Math.ceil(2*i/8);n=u.create({dkLen:r}).update($i("H2C-OVERSIZE-DST-")).update(n).digest()}if(t>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return u.create({dkLen:t}).update(e).update(mn(t,2)).update(n).update(mn(n.length,1)).digest()}function om(e,n,t){Ni(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:i,k:u,m:r,hash:a,expand:o,DST:s}=t;if(!Ci(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!L1(t.hash))throw new Error("expected valid hash");fe(e),uu(n);const c=typeof s=="string"?$i(s):s,l=i.toString(2).length,f=Math.ceil((l+u)/8),m=n*r*f;let d;if(o==="xmd")d=OE(e,c,m,a);else if(o==="xof")d=zE(e,c,m,u,a);else if(o==="_internal_pass")d=e;else throw new Error('expand must be "xmd" or "xof"');const v=new Array(n);for(let h=0;h<n;h++){const b=new Array(r);for(let y=0;y<r;y++){const E=f*(y+h*r),k=d.subarray(E,E+f);b[y]=ge(NE(k),i)}v[h]=b}return v}function UE(e,n){const t=n.map(i=>Array.from(i).reverse());return(i,u)=>{const[r,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,i),d))),[c,l]=Ri(e,[a,s],!0);return i=e.mul(r,c),u=e.mul(u,e.mul(o,l)),{x:i,y:u}}}function PE(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function i(r){return e.fromAffine(n(r))}function u(r){const a=r.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(r,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=om(r,2,s),l=i(c[0]),f=i(c[1]);return u(l.add(f))},encodeToCurve(r,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=om(r,1,s);return u(i(c[0]))},mapToCurve(r){if(!Array.isArray(r))throw new Error("expected array of bigints");for(const a of r)if(typeof a!="bigint")throw new Error("expected array of bigints");return u(i(r))}}}var Xe={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},sm=BigInt(0),Zi=BigInt(1),Vi=BigInt(2),cm=(e,n)=>(e+n/Vi)/n;function lm(e){const n=Xe.p,t=BigInt(3),i=BigInt(6),u=BigInt(11),r=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Fe(l,t,n)*l%n,m=Fe(f,t,n)*l%n,d=Fe(m,Vi,n)*c%n,v=Fe(d,u,n)*d%n,h=Fe(v,r,n)*v%n,b=Fe(h,o,n)*h%n,y=Fe(b,s,n)*b%n,E=Fe(y,o,n)*h%n,k=Fe(E,t,n)*l%n,w=Fe(k,a,n)*v%n,_=Fe(w,i,n)*c%n,G=Fe(_,Vi,n);if(!vn.eql(vn.sqr(G),e))throw new Error("Cannot find square root");return G}var vn=Li(Xe.p,void 0,void 0,{sqrt:lm}),qi=FE({...Xe,Fp:vn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=Xe.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-Zi*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),u=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),r=t,a=BigInt("0x100000000000000000000000000000000"),o=cm(r*e,n),s=cm(-i*e,n);let c=ge(e-o*t-s*u,n),l=ge(-o*i-s*r,n);const f=c>a,m=l>a;if(f&&(c=n-c),m&&(l=n-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:c,k2neg:m,k2:l}}}},ji),dm={};function Mi(e,...n){let t=dm[e];if(t===void 0){const i=ji(Uint8Array.from(e,u=>u.charCodeAt(0)));t=be(i,i),dm[e]=t}return ji(be(t,...n))}var Qo=e=>e.toBytes(!0).slice(1),Wo=e=>eu(e,32),Yo=e=>ge(e,Xe.p),iu=e=>ge(e,Xe.n),Xo=qi.Point,es=e=>e%Vi===sm;function ns(e){let n=qi.utils.normPrivateKeyToScalar(e),t=Xo.fromPrivateKey(n);return{scalar:es(t.y)?n:iu(-n),bytes:Qo(t)}}function fm(e){N4("x",e,Zi,Xe.p);const n=Yo(e*e),t=Yo(n*e+BigInt(7));let i=lm(t);es(i)||(i=Yo(-i));const u=Xo.fromAffine({x:e,y:i});return u.assertValidity(),u}var bt=In;function mm(...e){return iu(bt(Mi("BIP0340/challenge",...e)))}function jE(e){return ns(e).bytes}function RE(e,n,t=$4(32)){const i=ce("message",e),{bytes:u,scalar:r}=ns(n),a=ce("auxRand",t,32),o=Wo(r^bt(Mi("BIP0340/aux",a))),s=Mi("BIP0340/nonce",o,u,i),c=iu(bt(s));if(c===sm)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=ns(c),m=mm(l,u,i),d=new Uint8Array(64);if(d.set(l,0),d.set(Wo(iu(f+m*r)),32),!vm(d,i,u))throw new Error("sign: Invalid signature produced");return d}function vm(e,n,t){const i=ce("signature",e,64),u=ce("message",n),r=ce("publicKey",t,32);try{const a=fm(bt(r)),o=bt(i.subarray(0,32));if(!Mo(o,Zi,Xe.p))return!1;const s=bt(i.subarray(32,64));if(!Mo(s,Zi,Xe.n))return!1;const c=mm(Wo(o),Qo(a),u),l=Xo.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(iu(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!es(m)||f!==o)}catch{return!1}}({getPublicKey:jE,sign:RE,verify:vm,utils:{randomPrivateKey:qi.utils.randomPrivateKey,lift_x:fm,pointToBytes:Qo,numberToBytesBE:eu,bytesToNumberBE:In,taggedHash:Mi,mod:ge}});var LE=UE(vn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),ZE=IE(vn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:vn.create(BigInt("-11"))});PE(qi.Point,e=>{const{x:n,y:t}=ZE(vn.create(e[0]));return LE(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:vn.ORDER,m:1,k:128,expand:"xmd",hash:ji});/*! Bundled license information:
|
|
397
413
|
|
|
398
414
|
@noble/curves/esm/abstract/modular.js:
|
|
399
415
|
@noble/curves/esm/abstract/curve.js:
|
|
@@ -401,10 +417,10 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
|
|
|
401
417
|
@noble/curves/esm/_shortw_utils.js:
|
|
402
418
|
@noble/curves/esm/secp256k1.js:
|
|
403
419
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
404
|
-
*/var
|
|
405
|
-
`);super(o,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${
|
|
406
|
-
`);super(a,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=u,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=hm}walk(n){return gm(this,n)}};function gm(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?gm(e.cause,n):n?null:e}function us(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Em(e){return us(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var ym=class extends qi{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};function Gi(e,{dir:n,size:t=32}={}){return typeof e=="string"?ny(e,{dir:n,size:t}):ty(e,{dir:n,size:t})}function ny(e,{dir:n,size:t=32}={}){if(t===null)return e;const i=e.replace("0x","");if(i.length>t*2)throw new ym({size:Math.ceil(i.length/2),targetSize:t,type:"hex"});return`0x${i[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function ty(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new ym({size:e.length,targetSize:t,type:"bytes"});const i=new Uint8Array(t);for(let u=0;u<t;u++){const r=n==="right";i[r?u:t-u-1]=e[r?u:e.length-u-1]}return i}var uy=class extends qi{constructor({max:e,min:n,signed:t,size:i,value:u}){super(`Number "${u}" is not in safe ${i?`${i*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},iy=class extends qi{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function Ji(e,{size:n}){if(Em(e)>n)throw new iy({givenSize:Em(e),maxSize:n})}function ry(e,n={}){const{signed:t}=n;n.size&&Ji(e,{size:n.size});const i=BigInt(e);if(!t)return i;const u=(e.length-2)/2,r=(1n<<BigInt(u)*8n-1n)-1n;return i<=r?i:i-BigInt(`0x${"f".padStart(u*2,"f")}`)-1n}function ay(e,n={}){return Number(ry(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function is(e,n={}){const{signed:t,size:i}=n,u=BigInt(e);let r;i?t?r=(1n<<BigInt(i)*8n-1n)-1n:r=2n**(BigInt(i)*8n)-1n:typeof e=="number"&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof r=="bigint"&&t?-r-1n:0;if(r&&u>r||u<a){const s=typeof e=="bigint"?"n":"";throw new uy({max:r?`${r}${s}`:void 0,min:`${a}${s}`,signed:t,size:i,value:`${e}${s}`})}const o=`0x${(t&&u<0?(1n<<BigInt(i*8))+BigInt(u):u).toString(16)}`;return i?Gi(o,{size:i}):o}new TextEncoder;var oy=new TextEncoder;function sy(e,n={}){return typeof e=="number"||typeof e=="bigint"?ly(e,n):typeof e=="boolean"?cy(e,n):us(e)?km(e,n):Dm(e,n)}function cy(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(Ji(t,{size:n.size}),Gi(t,{size:n.size})):t}var nn={zero:48,nine:57,A:65,F:70,a:97,f:102};function bm(e){if(e>=nn.zero&&e<=nn.nine)return e-nn.zero;if(e>=nn.A&&e<=nn.F)return e-(nn.A-10);if(e>=nn.a&&e<=nn.f)return e-(nn.a-10)}function km(e,n={}){let t=e;n.size&&(Ji(t,{size:n.size}),t=Gi(t,{dir:"right",size:n.size}));let i=t.slice(2);i.length%2&&(i=`0${i}`);const u=i.length/2,r=new Uint8Array(u);for(let a=0,o=0;a<u;a++){const s=bm(i.charCodeAt(o++)),c=bm(i.charCodeAt(o++));if(s===void 0||c===void 0)throw new qi(`Invalid byte sequence ("${i[o-2]}${i[o-1]}" in "${i}").`);r[a]=s*16+c}return r}function ly(e,n){const t=is(e,n);return km(t)}function Dm(e,n={}){const t=oy.encode(e);return typeof n.size=="number"?(Ji(t,{size:n.size}),Gi(t,{dir:"right",size:n.size})):t}var dy=BigInt(0),ru=BigInt(1),fy=BigInt(2),my=BigInt(7),vy=BigInt(256),py=BigInt(113),Bm=[],_m=[],Am=[];for(let e=0,n=ru,t=1,i=0;e<24;e++){[t,i]=[i,(2*t+3*i)%5],Bm.push(2*(5*i+t)),_m.push((e+1)*(e+2)/2%64);let u=dy;for(let r=0;r<7;r++)n=(n<<ru^(n>>my)*py)%vy,n&fy&&(u^=ru<<(ru<<BigInt(r))-ru);Am.push(u)}var Sm=I4(Am,!0),hy=Sm[0],gy=Sm[1],wm=(e,n,t)=>t>32?U1(e,n,t):O1(e,n,t),Cm=(e,n,t)=>t>32?P1(e,n,t):z1(e,n,t);function Ey(e,n=24){const t=new Uint32Array(10);for(let i=24-n;i<24;i++){for(let a=0;a<10;a++)t[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,c=t[s],l=t[s+1],f=wm(c,l,1)^t[o],m=Cm(c,l,1)^t[o+1];for(let d=0;d<50;d+=10)e[a+d]^=f,e[a+d+1]^=m}let u=e[2],r=e[3];for(let a=0;a<24;a++){const o=_m[a],s=wm(u,r,o),c=Cm(u,r,o),l=Bm[a];u=e[l],r=e[l+1],e[l]=s,e[l+1]=c}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=e[a+o];for(let o=0;o<10;o++)e[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}e[0]^=hy[i],e[1]^=gy[i]}Be(t)}var $m=class ev extends Po{constructor(n,t,i,u=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=t,this.outputLen=i,this.enableXOF=u,this.rounds=r,Wt(i),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=A1(this.state)}clone(){return this._cloneInto()}keccak(){k4(this.state32),Ey(this.state32,this.rounds),k4(this.state32),this.posOut=0,this.pos=0}update(n){pt(this),n=Xt(n),fe(n);const{blockLen:t,state:i}=this,u=n.length;for(let r=0;r<u;){const a=Math.min(t-this.pos,u-r);for(let o=0;o<a;o++)i[this.pos++]^=n[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:i,blockLen:u}=this;n[i]^=t,(t&128)!==0&&i===u-1&&this.keccak(),n[u-1]^=128,this.keccak()}writeInto(n){pt(this,!1),fe(n),this.finish();const t=this.state,{blockLen:i}=this;for(let u=0,r=n.length;u<r;){this.posOut>=i&&this.keccak();const a=Math.min(i-this.posOut,r-u);n.set(t.subarray(this.posOut,this.posOut+a),u),this.posOut+=a,u+=a}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return Wt(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(b4(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Be(this.state)}_cloneInto(n){const{blockLen:t,suffix:i,outputLen:u,rounds:r,enableXOF:a}=this;return n||(n=new ev(t,i,u,a,r)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=r,n.suffix=i,n.outputLen=u,n.enableXOF=a,n.destroyed=this.destroyed,n}},pn=(e,n,t)=>qe(()=>new $m(n,e,t));pn(6,144,224/8),pn(6,136,256/8),pn(6,104,384/8),pn(6,72,512/8),pn(1,144,224/8);var xm=pn(1,136,256/8);pn(1,104,384/8),pn(1,72,512/8);var Im=(e,n,t)=>x1((i={})=>new $m(n,e,i.dkLen===void 0?t:i.dkLen,!0));Im(31,168,128/8),Im(31,136,256/8);function yy(e,n){return xm(us(e,{strict:!1})?sy(e):e)}var au=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},by=/^0x[a-fA-F0-9]{40}$/,rs=new au(8192);function ky(e,n){const{strict:t=!0}={},i=`${e}.${t}`;if(rs.has(i))return rs.get(i);const u=by.test(e)?e.toLowerCase()===e?!0:t?Dy(e)===e:!0:!1;return rs.set(i,u),u}var as=new au(8192);function Dy(e,n){if(as.has(`${e}.${n}`))return as.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),i=yy(Dm(t)),u=t.split("");for(let a=0;a<40;a+=2)i[a>>1]>>4>=8&&u[a]&&(u[a]=u[a].toUpperCase()),(i[a>>1]&15)>=8&&u[a+1]&&(u[a+1]=u[a+1].toUpperCase());const r=`0x${u.join("")}`;return as.set(`${e}.${n}`,r),r}async function By(e,{address:n,blockTag:t="latest",blockNumber:i}){const u=await e.request({method:"eth_getTransactionCount",params:[n,typeof i=="bigint"?is(i):t]},{dedupe:!!i});return ay(u)}new au(128),is(0,{size:32}),new au(8192);var kt=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),hn=new Uint32Array(80),_y=class extends nu{constructor(){super(64,20,8,!1),this.A=kt[0]|0,this.B=kt[1]|0,this.C=kt[2]|0,this.D=kt[3]|0,this.E=kt[4]|0}get(){const{A:e,B:n,C:t,D:i,E:u}=this;return[e,n,t,i,u]}set(e,n,t,i,u){this.A=e|0,this.B=n|0,this.C=t|0,this.D=i|0,this.E=u|0}process(e,n){for(let o=0;o<16;o++,n+=4)hn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)hn[o]=on(hn[o-3]^hn[o-8]^hn[o-14]^hn[o-16],1);let{A:t,B:i,C:u,D:r,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=Oi(i,u,r),c=1518500249):o<40?(s=i^u^r,c=1859775393):o<60?(s=T4(i,u,r),c=2400959708):(s=i^u^r,c=3395469782);const l=on(t,5)+s+a+c+hn[o]|0;a=r,r=u,u=on(i,30),i=t,t=l}t=t+this.A|0,i=i+this.B|0,u=u+this.C|0,r=r+this.D|0,a=a+this.E|0,this.set(t,i,u,r,a)}roundClean(){Be(hn)}destroy(){this.set(0,0,0,0,0),Be(this.buffer)}};qe(()=>new _y);var Ay=Math.pow(2,32),Sy=Array.from({length:64},(e,n)=>Math.floor(Ay*Math.abs(Math.sin(n+1)))),Hi=kt.slice(0,4),os=new Uint32Array(16),wy=class extends nu{constructor(){super(64,16,8,!0),this.A=Hi[0]|0,this.B=Hi[1]|0,this.C=Hi[2]|0,this.D=Hi[3]|0}get(){const{A:e,B:n,C:t,D:i}=this;return[e,n,t,i]}set(e,n,t,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=i|0}process(e,n){for(let a=0;a<16;a++,n+=4)os[a]=e.getUint32(n,!0);let{A:t,B:i,C:u,D:r}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=Oi(i,u,r),s=a,c=[7,12,17,22]):a<32?(o=Oi(r,i,u),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=i^u^r,s=(3*a+5)%16,c=[4,11,16,23]):(o=u^(i|~r),s=7*a%16,c=[6,10,15,21]),o=o+t+Sy[a]+os[s],t=r,r=u,u=i,i=i+on(o,c[a%4])}t=t+this.A|0,i=i+this.B|0,u=u+this.C|0,r=r+this.D|0,this.set(t,i,u,r)}roundClean(){Be(os)}destroy(){this.set(0,0,0,0),Be(this.buffer)}};qe(()=>new wy);var Cy=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Fm=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),$y=Fm.map(e=>(9*e+5)%16),Nm=(()=>{const t=[[Fm],[$y]];for(let i=0;i<4;i++)for(let u of t)u.push(u[i].map(r=>Cy[r]));return t})(),Tm=Nm[0],Om=Nm[1],zm=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),xy=Tm.map((e,n)=>e.map(t=>zm[n][t])),Iy=Om.map((e,n)=>e.map(t=>zm[n][t])),Fy=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),Ny=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Um(e,n,t,i){return e===0?n^t^i:e===1?n&t|~n&i:e===2?(n|~t)^i:e===3?n&i|t&~i:n^(t|~i)}var Ki=new Uint32Array(16),Ty=class extends nu{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:t,h3:i,h4:u}=this;return[e,n,t,i,u]}set(e,n,t,i,u){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=i|0,this.h4=u|0}process(e,n){for(let m=0;m<16;m++,n+=4)Ki[m]=e.getUint32(n,!0);let t=this.h0|0,i=t,u=this.h1|0,r=u,a=this.h2|0,o=a,s=this.h3|0,c=s,l=this.h4|0,f=l;for(let m=0;m<5;m++){const d=4-m,v=Fy[m],h=Ny[m],b=Tm[m],y=Om[m],E=xy[m],k=Iy[m];for(let w=0;w<16;w++){const _=on(t+Um(m,u,a,s)+Ki[b[w]]+v,E[w])+l|0;t=l,l=s,s=on(a,10)|0,a=u,u=_}for(let w=0;w<16;w++){const _=on(i+Um(d,r,o,c)+Ki[y[w]]+h,k[w])+f|0;i=f,f=c,c=on(o,10)|0,o=r,r=_}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+i|0,this.h4+t+r|0,this.h0+u+o|0)}roundClean(){Be(Ki)}destroy(){this.destroyed=!0,Be(this.buffer),this.set(0,0,0,0,0)}};qe(()=>new Ty);function Oy(e){const{source:n}=e,t=new Map,i=new au(8192),u=new Map,r=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o}),l=this.get({address:a,chainId:o,client:s});this.increment({address:a,chainId:o});const f=await l;return await n.set({address:a,chainId:o},f),i.set(c,f),f},async increment({address:a,chainId:o}){const s=r({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o});let l=u.get(c);return l||(l=(async()=>{try{const m=await n.get({address:a,chainId:o,client:s}),d=i.get(c)??0;return d>0&&m<=d?d+1:(i.delete(c),m)}finally{this.reset({address:a,chainId:o})}})(),u.set(c,l)),(t.get(c)??0)+await l},reset({address:a,chainId:o}){const s=r({address:a,chainId:o});t.delete(s),u.delete(s)}}}function zy(){return{async get(e){const{address:n,client:t}=e;return By(t,{address:n,blockTag:"pending"})},set(){}}}Oy({source:zy()});function Uy(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,i=xm(RE(e));return t==="Bytes"?i:pm(i)}var Py=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},jy={checksum:new Py(8192)},ss=jy.checksum,Ry=/^0x[a-fA-F0-9]{40}$/;function Pm(e,n={}){const{strict:t=!0}=n;if(!Ry.test(e))throw new jm({address:e,cause:new Zy});if(t){if(e.toLowerCase()===e)return;if(Ly(e)!==e)throw new jm({address:e,cause:new Vy})}}function Ly(e){if(ss.has(e))return ss.get(e);Pm(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=Uy(VE(n),{as:"Bytes"}),i=n.split("");for(let r=0;r<40;r+=2)t[r>>1]>>4>=8&&i[r]&&(i[r]=i[r].toUpperCase()),(t[r>>1]&15)>=8&&i[r+1]&&(i[r+1]=i[r+1].toUpperCase());const u=`0x${i.join("")}`;return ss.set(e,u),u}var jm=class extends Ne{constructor({address:e,cause:n}){super(`Address "${e}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},Zy=class extends Ne{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},Vy=class extends Ne{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},My=/^(.*)\[([0-9]*)\]$/,qy=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Gy=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function cs(e,n){if(e.length!==n.length)throw new Hy({expectedLength:e.length,givenLength:n.length});const t=[];for(let i=0;i<e.length;i++){const u=e[i],r=n[i];t.push(cs.encode(u,r))}return vm(...t)}(function(e){function n(t,i,u=!1){if(t==="address"){const s=i;return Pm(s),Mi(s.toLowerCase(),u?32:0)}if(t==="string")return WE(i);if(t==="bytes")return i;if(t==="bool")return Mi(KE(i),u?32:1);const r=t.match(Gy);if(r){const[s,c,l="256"]=r,f=Number.parseInt(l)/8;return QE(i,{size:u?32:f,signed:c==="int"})}const a=t.match(qy);if(a){const[s,c]=a;if(Number.parseInt(c)!==(i.length-2)/2)throw new Jy({expectedSize:Number.parseInt(c),value:i});return es(i,u?32:0)}const o=t.match(My);if(o&&Array.isArray(i)){const[s,c]=o,l=[];for(let f=0;f<i.length;f++)l.push(n(c,i[f],!0));return l.length===0?"0x":vm(...l)}throw new Ky(t)}e.encode=n})(cs||(cs={}));var Jy=class extends Ne{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${ns(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},Hy=class extends Ne{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`
|
|
407
|
-
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},
|
|
420
|
+
*/var VE="0.1.1";function qE(){return VE}var Ne=class ks extends Error{constructor(n,t={}){const i=(()=>{if(t.cause instanceof ks){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&typeof t.cause.details=="string"?t.cause.details:t.cause?.message?t.cause.message:t.details})(),u=t.cause instanceof ks&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${u??""}`,o=[n||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...i||u?["",i?`Details: ${i}`:void 0,u?`See: ${a}`:void 0]:[]].filter(s=>typeof s=="string").join(`
|
|
421
|
+
`);super(o,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${qE()}`}),this.cause=t.cause,this.details=i,this.docs=a,this.docsPath=u,this.shortMessage=n}walk(n){return pm(this,n)}};function pm(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?pm(e.cause,n):n?null:e}function ME(e,n){if(Em(e)>n)throw new XE({givenSize:Em(e),maxSize:n})}var en={zero:48,nine:57,A:65,F:70,a:97,f:102};function hm(e){if(e>=en.zero&&e<=en.nine)return e-en.zero;if(e>=en.A&&e<=en.F)return e-(en.A-10);if(e>=en.a&&e<=en.f)return e-(en.a-10)}function GE(e,n={}){const{dir:t,size:i=32}=n;if(i===0)return e;if(e.length>i)throw new ey({size:e.length,targetSize:i,type:"Bytes"});const u=new Uint8Array(i);for(let r=0;r<i;r++){const a=t==="right";u[a?r:i-r-1]=e[a?r:e.length-r-1]}return u}function ts(e,n){if(is(e)>n)throw new oy({givenSize:is(e),maxSize:n})}function gm(e,n={}){const{dir:t,size:i=32}=n;if(i===0)return e;const u=e.replace("0x","");if(u.length>i*2)throw new sy({size:Math.ceil(u.length/2),targetSize:i,type:"Hex"});return`0x${u[t==="right"?"padEnd":"padStart"](i*2,"0")}`}new TextDecoder;var JE=new TextEncoder;function HE(e){return e instanceof Uint8Array?e:typeof e=="string"?QE(e):KE(e)}function KE(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function QE(e,n={}){const{size:t}=n;let i=e;t&&(ts(e,t),i=us(e,t));let u=i.slice(2);u.length%2&&(u=`0${u}`);const r=u.length/2,a=new Uint8Array(r);for(let o=0,s=0;o<r;o++){const c=hm(u.charCodeAt(s++)),l=hm(u.charCodeAt(s++));if(c===void 0||l===void 0)throw new Ne(`Invalid byte sequence ("${u[s-2]}${u[s-1]}" in "${u}").`);a[o]=c*16+l}return a}function WE(e,n={}){const{size:t}=n,i=JE.encode(e);return typeof t=="number"?(ME(i,t),YE(i,t)):i}function YE(e,n){return GE(e,{dir:"right",size:n})}function Em(e){return e.length}var XE=class extends Ne{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},ey=class extends Ne{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}},ny=new TextEncoder,ty=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ym(...e){return`0x${e.reduce((n,t)=>n+t.replace("0x",""),"")}`}function uy(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?(ts(t,n.size),Gi(t,n.size)):t}function bm(e,n={}){let t="";for(let u=0;u<e.length;u++)t+=ty[e[u]];const i=`0x${t}`;return typeof n.size=="number"?(ts(i,n.size),us(i,n.size)):i}function iy(e,n={}){const{signed:t,size:i}=n,u=BigInt(e);let r;i?t?r=(1n<<BigInt(i)*8n-1n)-1n:r=2n**(BigInt(i)*8n)-1n:typeof e=="number"&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof r=="bigint"&&t?-r-1n:0;if(r&&u>r||u<a){const c=typeof e=="bigint"?"n":"";throw new ay({max:r?`${r}${c}`:void 0,min:`${a}${c}`,signed:t,size:i,value:`${e}${c}`})}const s=`0x${(t&&u<0?(1n<<BigInt(i*8))+BigInt(u):u).toString(16)}`;return i?Gi(s,i):s}function ry(e,n={}){return bm(ny.encode(e),n)}function Gi(e,n){return gm(e,{dir:"left",size:n})}function us(e,n){return gm(e,{dir:"right",size:n})}function is(e){return Math.ceil((e.length-2)/2)}var ay=class extends Ne{constructor({max:e,min:n,signed:t,size:i,value:u}){super(`Number \`${u}\` is not in safe${i?` ${i*8}-bit`:""}${t?" signed":" unsigned"} integer range ${e?`(\`${n}\` to \`${e}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}},oy=class extends Ne{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},sy=class extends Ne{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}},km="2.31.7",rs={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0,version:`viem@${km}`},Ji=class Ds extends Error{constructor(n,t={}){const i=t.cause instanceof Ds?t.cause.details:t.cause?.message?t.cause.message:t.details,u=t.cause instanceof Ds&&t.cause.docsPath||t.docsPath,r=rs.getDocsUrl?.({...t,docsPath:u}),a=[n||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: ${r}`]:[],...i?[`Details: ${i}`]:[],...rs.version?[`Version: ${rs.version}`]:[]].join(`
|
|
422
|
+
`);super(a,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=u,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=km}walk(n){return Dm(this,n)}};function Dm(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?Dm(e.cause,n):n?null:e}function as(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Bm(e){return as(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var _m=class extends Ji{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};function Hi(e,{dir:n,size:t=32}={}){return typeof e=="string"?cy(e,{dir:n,size:t}):ly(e,{dir:n,size:t})}function cy(e,{dir:n,size:t=32}={}){if(t===null)return e;const i=e.replace("0x","");if(i.length>t*2)throw new _m({size:Math.ceil(i.length/2),targetSize:t,type:"hex"});return`0x${i[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function ly(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new _m({size:e.length,targetSize:t,type:"bytes"});const i=new Uint8Array(t);for(let u=0;u<t;u++){const r=n==="right";i[r?u:t-u-1]=e[r?u:e.length-u-1]}return i}var dy=class extends Ji{constructor({max:e,min:n,signed:t,size:i,value:u}){super(`Number "${u}" is not in safe ${i?`${i*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},fy=class extends Ji{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function Ki(e,{size:n}){if(Bm(e)>n)throw new fy({givenSize:Bm(e),maxSize:n})}function my(e,n={}){const{signed:t}=n;n.size&&Ki(e,{size:n.size});const i=BigInt(e);if(!t)return i;const u=(e.length-2)/2,r=(1n<<BigInt(u)*8n-1n)-1n;return i<=r?i:i-BigInt(`0x${"f".padStart(u*2,"f")}`)-1n}function vy(e,n={}){return Number(my(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function os(e,n={}){const{signed:t,size:i}=n,u=BigInt(e);let r;i?t?r=(1n<<BigInt(i)*8n-1n)-1n:r=2n**(BigInt(i)*8n)-1n:typeof e=="number"&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof r=="bigint"&&t?-r-1n:0;if(r&&u>r||u<a){const s=typeof e=="bigint"?"n":"";throw new dy({max:r?`${r}${s}`:void 0,min:`${a}${s}`,signed:t,size:i,value:`${e}${s}`})}const o=`0x${(t&&u<0?(1n<<BigInt(i*8))+BigInt(u):u).toString(16)}`;return i?Hi(o,{size:i}):o}new TextEncoder;var py=new TextEncoder;function hy(e,n={}){return typeof e=="number"||typeof e=="bigint"?Ey(e,n):typeof e=="boolean"?gy(e,n):as(e)?Sm(e,n):wm(e,n)}function gy(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(Ki(t,{size:n.size}),Hi(t,{size:n.size})):t}var nn={zero:48,nine:57,A:65,F:70,a:97,f:102};function Am(e){if(e>=nn.zero&&e<=nn.nine)return e-nn.zero;if(e>=nn.A&&e<=nn.F)return e-(nn.A-10);if(e>=nn.a&&e<=nn.f)return e-(nn.a-10)}function Sm(e,n={}){let t=e;n.size&&(Ki(t,{size:n.size}),t=Hi(t,{dir:"right",size:n.size}));let i=t.slice(2);i.length%2&&(i=`0${i}`);const u=i.length/2,r=new Uint8Array(u);for(let a=0,o=0;a<u;a++){const s=Am(i.charCodeAt(o++)),c=Am(i.charCodeAt(o++));if(s===void 0||c===void 0)throw new Ji(`Invalid byte sequence ("${i[o-2]}${i[o-1]}" in "${i}").`);r[a]=s*16+c}return r}function Ey(e,n){const t=os(e,n);return Sm(t)}function wm(e,n={}){const t=py.encode(e);return typeof n.size=="number"?(Ki(t,{size:n.size}),Hi(t,{dir:"right",size:n.size})):t}var yy=BigInt(0),ru=BigInt(1),by=BigInt(2),ky=BigInt(7),Dy=BigInt(256),By=BigInt(113),Cm=[],$m=[],xm=[];for(let e=0,n=ru,t=1,i=0;e<24;e++){[t,i]=[i,(2*t+3*i)%5],Cm.push(2*(5*i+t)),$m.push((e+1)*(e+2)/2%64);let u=yy;for(let r=0;r<7;r++)n=(n<<ru^(n>>ky)*By)%Dy,n&by&&(u^=ru<<(ru<<BigInt(r))-ru);xm.push(u)}var Im=z4(xm,!0),_y=Im[0],Ay=Im[1],Fm=(e,n,t)=>t>32?M1(e,n,t):V1(e,n,t),Nm=(e,n,t)=>t>32?G1(e,n,t):q1(e,n,t);function Sy(e,n=24){const t=new Uint32Array(10);for(let i=24-n;i<24;i++){for(let a=0;a<10;a++)t[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,c=t[s],l=t[s+1],f=Fm(c,l,1)^t[o],m=Nm(c,l,1)^t[o+1];for(let d=0;d<50;d+=10)e[a+d]^=f,e[a+d+1]^=m}let u=e[2],r=e[3];for(let a=0;a<24;a++){const o=$m[a],s=Fm(u,r,o),c=Nm(u,r,o),l=Cm[a];u=e[l],r=e[l+1],e[l]=s,e[l+1]=c}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=e[a+o];for(let o=0;o<10;o++)e[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}e[0]^=_y[i],e[1]^=Ay[i]}Be(t)}var Tm=class rv extends Lo{constructor(n,t,i,u=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=t,this.outputLen=i,this.enableXOF=u,this.rounds=r,Wt(i),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=N1(this.state)}clone(){return this._cloneInto()}keccak(){S4(this.state32),Sy(this.state32,this.rounds),S4(this.state32),this.posOut=0,this.pos=0}update(n){pt(this),n=Xt(n),fe(n);const{blockLen:t,state:i}=this,u=n.length;for(let r=0;r<u;){const a=Math.min(t-this.pos,u-r);for(let o=0;o<a;o++)i[this.pos++]^=n[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:i,blockLen:u}=this;n[i]^=t,(t&128)!==0&&i===u-1&&this.keccak(),n[u-1]^=128,this.keccak()}writeInto(n){pt(this,!1),fe(n),this.finish();const t=this.state,{blockLen:i}=this;for(let u=0,r=n.length;u<r;){this.posOut>=i&&this.keccak();const a=Math.min(i-this.posOut,r-u);n.set(t.subarray(this.posOut,this.posOut+a),u),this.posOut+=a,u+=a}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return Wt(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(A4(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Be(this.state)}_cloneInto(n){const{blockLen:t,suffix:i,outputLen:u,rounds:r,enableXOF:a}=this;return n||(n=new rv(t,i,u,a,r)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=r,n.suffix=i,n.outputLen=u,n.enableXOF=a,n.destroyed=this.destroyed,n}},pn=(e,n,t)=>Me(()=>new Tm(n,e,t));pn(6,144,224/8),pn(6,136,256/8),pn(6,104,384/8),pn(6,72,512/8),pn(1,144,224/8);var Om=pn(1,136,256/8);pn(1,104,384/8),pn(1,72,512/8);var zm=(e,n,t)=>P1((i={})=>new Tm(n,e,i.dkLen===void 0?t:i.dkLen,!0));zm(31,168,128/8),zm(31,136,256/8);function wy(e,n){return Om(as(e,{strict:!1})?hy(e):e)}var au=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},Cy=/^0x[a-fA-F0-9]{40}$/,ss=new au(8192);function $y(e,n){const{strict:t=!0}={},i=`${e}.${t}`;if(ss.has(i))return ss.get(i);const u=Cy.test(e)?e.toLowerCase()===e?!0:t?xy(e)===e:!0:!1;return ss.set(i,u),u}var cs=new au(8192);function xy(e,n){if(cs.has(`${e}.${n}`))return cs.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),i=wy(wm(t)),u=t.split("");for(let a=0;a<40;a+=2)i[a>>1]>>4>=8&&u[a]&&(u[a]=u[a].toUpperCase()),(i[a>>1]&15)>=8&&u[a+1]&&(u[a+1]=u[a+1].toUpperCase());const r=`0x${u.join("")}`;return cs.set(`${e}.${n}`,r),r}async function Iy(e,{address:n,blockTag:t="latest",blockNumber:i}){const u=await e.request({method:"eth_getTransactionCount",params:[n,typeof i=="bigint"?os(i):t]},{dedupe:!!i});return vy(u)}new au(128),os(0,{size:32}),new au(8192);var kt=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),hn=new Uint32Array(80),Fy=class extends nu{constructor(){super(64,20,8,!1),this.A=kt[0]|0,this.B=kt[1]|0,this.C=kt[2]|0,this.D=kt[3]|0,this.E=kt[4]|0}get(){const{A:e,B:n,C:t,D:i,E:u}=this;return[e,n,t,i,u]}set(e,n,t,i,u){this.A=e|0,this.B=n|0,this.C=t|0,this.D=i|0,this.E=u|0}process(e,n){for(let o=0;o<16;o++,n+=4)hn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)hn[o]=on(hn[o-3]^hn[o-8]^hn[o-14]^hn[o-16],1);let{A:t,B:i,C:u,D:r,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=Ui(i,u,r),c=1518500249):o<40?(s=i^u^r,c=1859775393):o<60?(s=j4(i,u,r),c=2400959708):(s=i^u^r,c=3395469782);const l=on(t,5)+s+a+c+hn[o]|0;a=r,r=u,u=on(i,30),i=t,t=l}t=t+this.A|0,i=i+this.B|0,u=u+this.C|0,r=r+this.D|0,a=a+this.E|0,this.set(t,i,u,r,a)}roundClean(){Be(hn)}destroy(){this.set(0,0,0,0,0),Be(this.buffer)}};Me(()=>new Fy);var Ny=Math.pow(2,32),Ty=Array.from({length:64},(e,n)=>Math.floor(Ny*Math.abs(Math.sin(n+1)))),Qi=kt.slice(0,4),ls=new Uint32Array(16),Oy=class extends nu{constructor(){super(64,16,8,!0),this.A=Qi[0]|0,this.B=Qi[1]|0,this.C=Qi[2]|0,this.D=Qi[3]|0}get(){const{A:e,B:n,C:t,D:i}=this;return[e,n,t,i]}set(e,n,t,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=i|0}process(e,n){for(let a=0;a<16;a++,n+=4)ls[a]=e.getUint32(n,!0);let{A:t,B:i,C:u,D:r}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=Ui(i,u,r),s=a,c=[7,12,17,22]):a<32?(o=Ui(r,i,u),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=i^u^r,s=(3*a+5)%16,c=[4,11,16,23]):(o=u^(i|~r),s=7*a%16,c=[6,10,15,21]),o=o+t+Ty[a]+ls[s],t=r,r=u,u=i,i=i+on(o,c[a%4])}t=t+this.A|0,i=i+this.B|0,u=u+this.C|0,r=r+this.D|0,this.set(t,i,u,r)}roundClean(){Be(ls)}destroy(){this.set(0,0,0,0),Be(this.buffer)}};Me(()=>new Oy);var zy=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Um=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),Uy=Um.map(e=>(9*e+5)%16),Pm=(()=>{const t=[[Um],[Uy]];for(let i=0;i<4;i++)for(let u of t)u.push(u[i].map(r=>zy[r]));return t})(),jm=Pm[0],Rm=Pm[1],Lm=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),Py=jm.map((e,n)=>e.map(t=>Lm[n][t])),jy=Rm.map((e,n)=>e.map(t=>Lm[n][t])),Ry=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),Ly=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Zm(e,n,t,i){return e===0?n^t^i:e===1?n&t|~n&i:e===2?(n|~t)^i:e===3?n&i|t&~i:n^(t|~i)}var Wi=new Uint32Array(16),Zy=class extends nu{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:t,h3:i,h4:u}=this;return[e,n,t,i,u]}set(e,n,t,i,u){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=i|0,this.h4=u|0}process(e,n){for(let m=0;m<16;m++,n+=4)Wi[m]=e.getUint32(n,!0);let t=this.h0|0,i=t,u=this.h1|0,r=u,a=this.h2|0,o=a,s=this.h3|0,c=s,l=this.h4|0,f=l;for(let m=0;m<5;m++){const d=4-m,v=Ry[m],h=Ly[m],b=jm[m],y=Rm[m],E=Py[m],k=jy[m];for(let w=0;w<16;w++){const _=on(t+Zm(m,u,a,s)+Wi[b[w]]+v,E[w])+l|0;t=l,l=s,s=on(a,10)|0,a=u,u=_}for(let w=0;w<16;w++){const _=on(i+Zm(d,r,o,c)+Wi[y[w]]+h,k[w])+f|0;i=f,f=c,c=on(o,10)|0,o=r,r=_}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+i|0,this.h4+t+r|0,this.h0+u+o|0)}roundClean(){Be(Wi)}destroy(){this.destroyed=!0,Be(this.buffer),this.set(0,0,0,0,0)}};Me(()=>new Zy);function Vy(e){const{source:n}=e,t=new Map,i=new au(8192),u=new Map,r=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o}),l=this.get({address:a,chainId:o,client:s});this.increment({address:a,chainId:o});const f=await l;return await n.set({address:a,chainId:o},f),i.set(c,f),f},async increment({address:a,chainId:o}){const s=r({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o});let l=u.get(c);return l||(l=(async()=>{try{const m=await n.get({address:a,chainId:o,client:s}),d=i.get(c)??0;return d>0&&m<=d?d+1:(i.delete(c),m)}finally{this.reset({address:a,chainId:o})}})(),u.set(c,l)),(t.get(c)??0)+await l},reset({address:a,chainId:o}){const s=r({address:a,chainId:o});t.delete(s),u.delete(s)}}}function qy(){return{async get(e){const{address:n,client:t}=e;return Iy(t,{address:n,blockTag:"pending"})},set(){}}}Vy({source:qy()});function My(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,i=Om(HE(e));return t==="Bytes"?i:bm(i)}var Gy=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},Jy={checksum:new Gy(8192)},ds=Jy.checksum,Hy=/^0x[a-fA-F0-9]{40}$/;function Vm(e,n={}){const{strict:t=!0}=n;if(!Hy.test(e))throw new qm({address:e,cause:new Qy});if(t){if(e.toLowerCase()===e)return;if(Ky(e)!==e)throw new qm({address:e,cause:new Wy})}}function Ky(e){if(ds.has(e))return ds.get(e);Vm(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=My(WE(n),{as:"Bytes"}),i=n.split("");for(let r=0;r<40;r+=2)t[r>>1]>>4>=8&&i[r]&&(i[r]=i[r].toUpperCase()),(t[r>>1]&15)>=8&&i[r+1]&&(i[r+1]=i[r+1].toUpperCase());const u=`0x${i.join("")}`;return ds.set(e,u),u}var qm=class extends Ne{constructor({address:e,cause:n}){super(`Address "${e}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},Qy=class extends Ne{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},Wy=class extends Ne{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},Yy=/^(.*)\[([0-9]*)\]$/,Xy=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,eb=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function fs(e,n){if(e.length!==n.length)throw new tb({expectedLength:e.length,givenLength:n.length});const t=[];for(let i=0;i<e.length;i++){const u=e[i],r=n[i];t.push(fs.encode(u,r))}return ym(...t)}(function(e){function n(t,i,u=!1){if(t==="address"){const s=i;return Vm(s),Gi(s.toLowerCase(),u?32:0)}if(t==="string")return ry(i);if(t==="bytes")return i;if(t==="bool")return Gi(uy(i),u?32:1);const r=t.match(eb);if(r){const[s,c,l="256"]=r,f=Number.parseInt(l)/8;return iy(i,{size:u?32:f,signed:c==="int"})}const a=t.match(Xy);if(a){const[s,c]=a;if(Number.parseInt(c)!==(i.length-2)/2)throw new nb({expectedSize:Number.parseInt(c),value:i});return us(i,u?32:0)}const o=t.match(Yy);if(o&&Array.isArray(i)){const[s,c]=o,l=[];for(let f=0;f<i.length;f++)l.push(n(c,i[f],!0));return l.length===0?"0x":ym(...l)}throw new ub(t)}e.encode=n})(fs||(fs={}));var nb=class extends Ne{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${is(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},tb=class extends Ne{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`
|
|
423
|
+
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},ub=class extends Ne{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}};function ib(e){if(!/^0[xX][0-9a-fA-F]{40}$/.test(e))return!1;const n="0x"+e.slice(2),t=n.slice(2);return t===t.toLowerCase()||t===t.toUpperCase()?!0:$y(n)}function Mm(e){try{return new av(e),!0}catch{return!1}}const ms=e=>Math.round((e+Number.EPSILON)*100)/100;function rb(e){const n=e.replace(/^data:\w+\/\w+;base64,/,""),t=Buffer.from(n,"base64");return new Uint8Array(t)}class ab{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:mt,variables:{createDirectPaymentInput:{...n,amount:ms(n.amount)}}}))?.createDirectPayment}async getWeb3PaymentParams(n){if(!ib(n.paymentTokenAddress))throw new Error("Invalid token address");return(await this.client.query({query:Si,variables:{amount:ms(n.paymentRequest.amountDue),network:n.paymentRequest.network,tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id}}))?.spritzPayParams}async getSolanaPaymentParams(n){if(!Mm(n.paymentTokenAddress))throw new Error(`Invalid token address: ${n.paymentTokenAddress}`);if(!Mm(n.signer))throw new Error(`Invalid signer: ${n.signer}`);const t=await this.client.query({query:_i,variables:{amount:ms(n.paymentRequest.amountDue),tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id,signer:n.signer}});return{versionedTransaction:ov.deserialize(rb(t?.solanaParams?.transactionSerialized??"")),transactionSerialized:t?.solanaParams?.transactionSerialized}}}var ou={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VerificationFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Verification"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRetry"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrl"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:154}};ou.loc.source={body:`fragment VerificationFragment on Verification {
|
|
408
424
|
userId
|
|
409
425
|
identity {
|
|
410
426
|
canRetry
|
|
@@ -413,14 +429,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
|
|
|
413
429
|
verificationUrl
|
|
414
430
|
}
|
|
415
431
|
}
|
|
416
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
432
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Yi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){Yi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Yi(i,n)}),e.definitions&&e.definitions.forEach(function(i){Yi(i,n)})}var vs={};(function(){ou.definitions.forEach(function(n){if(n.name){var t=new Set;Yi(n,t),vs[n.name.value]=t}})})();function Gm(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function ob(e,n){var t={kind:e.kind,definitions:[Gm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=vs[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=vs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Gm(e,o);s&&t.definitions.push(s)}),t}ob(ou,"VerificationFragment");var Dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RetryFailedVerification"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retryFailedVerification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:156}};Dt.loc.source={body:`#import "../queries/verificationFragment.graphql"
|
|
417
433
|
|
|
418
434
|
mutation RetryFailedVerification {
|
|
419
435
|
retryFailedVerification {
|
|
420
436
|
...VerificationFragment
|
|
421
437
|
}
|
|
422
438
|
}
|
|
423
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
439
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Jm={};function sb(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Jm[t]?!1:(Jm[t]=!0,!0)})}Dt.definitions=Dt.definitions.concat(sb(ou.definitions));function Xi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){Xi(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){Xi(i,n)}),e.definitions&&e.definitions.forEach(function(i){Xi(i,n)})}var ps={};(function(){Dt.definitions.forEach(function(n){if(n.name){var t=new Set;Xi(n,t),ps[n.name.value]=t}})})();function Hm(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function cb(e,n){var t={kind:e.kind,definitions:[Hm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=ps[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ps[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Hm(e,o);s&&t.definitions.push(s)}),t}cb(Dt,"RetryFailedVerification");var er={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timezone"},arguments:[],directives:[]}]}}],loc:{start:0,end:105}};er.loc.source={body:`fragment UserFragment on User {
|
|
424
440
|
id
|
|
425
441
|
email
|
|
426
442
|
firstName
|
|
@@ -428,7 +444,7 @@ mutation RetryFailedVerification {
|
|
|
428
444
|
createdAt
|
|
429
445
|
timezone
|
|
430
446
|
}
|
|
431
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
447
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function nr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){nr(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){nr(i,n)}),e.definitions&&e.definitions.forEach(function(i){nr(i,n)})}var hs={};(function(){er.definitions.forEach(function(n){if(n.name){var t=new Set;nr(n,t),hs[n.name.value]=t}})})();function Km(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function lb(e,n){var t={kind:e.kind,definitions:[Km(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=hs[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=hs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Km(e,o);s&&t.definitions.push(s)}),t}lb(er,"UserFragment");var gn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentUser"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:193}};gn.loc.source={body:`#import "./userFragment.graphql"
|
|
432
448
|
#import "./verificationFragment.graphql"
|
|
433
449
|
|
|
434
450
|
query CurrentUser {
|
|
@@ -439,7 +455,7 @@ query CurrentUser {
|
|
|
439
455
|
...VerificationFragment
|
|
440
456
|
}
|
|
441
457
|
}
|
|
442
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
458
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Qm={};function Wm(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Qm[t]?!1:(Qm[t]=!0,!0)})}gn.definitions=gn.definitions.concat(Wm(er.definitions)),gn.definitions=gn.definitions.concat(Wm(ou.definitions));function tr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){tr(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){tr(i,n)}),e.definitions&&e.definitions.forEach(function(i){tr(i,n)})}var gs={};(function(){gn.definitions.forEach(function(n){if(n.name){var t=new Set;tr(n,t),gs[n.name.value]=t}})})();function Ym(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function db(e,n){var t={kind:e.kind,definitions:[Ym(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=gs[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=gs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Ym(e,o);s&&t.definitions.push(s)}),t}db(gn,"CurrentUser");var fb=(e=>(e.NotStarted="NotStarted",e.Verified="Verified",e.Failed="Failed",e.Disabled="Disabled",e))(fb||{});function mb(e=nt.INITIALIZED){switch(e){case nt.FAILED:return"Failed";case nt.ACTIVE:return"Verified";case nt.DISABLED:return"Disabled";case nt.RETRY:return"Failed";default:return"NotStarted"}}function vb(e){const n=e?.me??null;if(!n)return null;const t=e?.verification??null;return{...n,verificationStatus:mb(t?.identity?.status),verificationUrl:t?.identity?.verificationUrl??null,verifiedCountry:t?.identity?.country??null,canRetryVerification:t?.identity?.canRetry??!1}}class pb{client;constructor(n){this.client=n}async createUser(n){return this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/request-key",body:{email:n}})}async authorizeApiKeyWithOTP(n){return this.client.request({method:"post",path:"/users/validate-key",body:n})}async getCurrentUser(){const n=await this.client.query({query:gn});return vb(n)}async retryFailedVerification(){return await this.client.query({query:Dt}),this.getCurrentUser()}}var su={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualDebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:469}};su.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
|
|
443
459
|
id
|
|
444
460
|
name
|
|
445
461
|
userId
|
|
@@ -469,24 +485,24 @@ query CurrentUser {
|
|
|
469
485
|
address
|
|
470
486
|
}
|
|
471
487
|
}
|
|
472
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
488
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ur(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ur(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ur(i,n)}),e.definitions&&e.definitions.forEach(function(i){ur(i,n)})}var Es={};(function(){su.definitions.forEach(function(n){if(n.name){var t=new Set;ur(n,t),Es[n.name.value]=t}})})();function Xm(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function hb(e,n){var t={kind:e.kind,definitions:[Xm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=Es[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Es[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=Xm(e,o);s&&t.definitions.push(s)}),t}hb(su,"VirtualDebitCardFragment");var Bt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createUSVirtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:166}};Bt.loc.source={body:`#import "../queries/virtualDebitCardFragment.graphql"
|
|
473
489
|
|
|
474
490
|
mutation CreateUSVirtualDebitCard {
|
|
475
491
|
createUSVirtualDebitCard {
|
|
476
492
|
...VirtualDebitCardFragment
|
|
477
493
|
}
|
|
478
494
|
}
|
|
479
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
495
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ev={};function gb(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return ev[t]?!1:(ev[t]=!0,!0)})}Bt.definitions=Bt.definitions.concat(gb(su.definitions));function ir(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){ir(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){ir(i,n)}),e.definitions&&e.definitions.forEach(function(i){ir(i,n)})}var ys={};(function(){Bt.definitions.forEach(function(n){if(n.name){var t=new Set;ir(n,t),ys[n.name.value]=t}})})();function nv(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function Eb(e,n){var t={kind:e.kind,definitions:[nv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=ys[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ys[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=nv(e,o);s&&t.definitions.push(s)}),t}Eb(Bt,"CreateUSVirtualDebitCard");var _t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"virtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:142}};_t.loc.source={body:`#import "./virtualDebitCardFragment.graphql"
|
|
480
496
|
|
|
481
497
|
query UserVirtualDebitCard {
|
|
482
498
|
virtualDebitCard {
|
|
483
499
|
...VirtualDebitCardFragment
|
|
484
500
|
}
|
|
485
501
|
}
|
|
486
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
502
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var tv={};function yb(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return tv[t]?!1:(tv[t]=!0,!0)})}_t.definitions=_t.definitions.concat(yb(su.definitions));function rr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(i){rr(i,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(i){rr(i,n)}),e.definitions&&e.definitions.forEach(function(i){rr(i,n)})}var bs={};(function(){_t.definitions.forEach(function(n){if(n.name){var t=new Set;rr(n,t),bs[n.name.value]=t}})})();function uv(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}function bb(e,n){var t={kind:e.kind,definitions:[uv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=bs[n]||new Set,u=new Set,r=new Set;for(i.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=bs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return u.forEach(function(o){var s=uv(e,o);s&&t.definitions.push(s)}),t}bb(_t,"UserVirtualDebitCard");const kb={[bo.USVirtualDebitCard]:e=>({query:Bt,variables:void 0,response:"createUSVirtualDebitCard"})},Db=(e,n)=>kb[e]?.(n)??null;class Bb{client;constructor(n){this.client=n}async fetch(){return(await this.client.query({query:_t}))?.virtualDebitCard??null}async create(n,t){const i=Db(n,t);if(!i)throw new Error("Invalid virtual card type");return(await this.client.query({query:i.query,variables:i.variables}))?.[i.response]??null}}class _b{client;constructor(n){this.client=n}async create(n){return this.client.request({method:"post",path:"/users/integrators/webhooks",body:n})}}class Bs{environment;apiKey;integrationKey;client;user;bankAccount;paymentRequest;payment;onrampPayment;virtualCard;bill;institution;webhook;constructor(n,t,i,u){if(t===void 0&&i===void 0)throw new Error("The integrationKey or apiKey variable appears to be missing or empty. Please ensure you provide it, or when initializing the SpritzApiClient, opt for the integratorKey option.");if(this.environment=n,this.apiKey=t,this.integrationKey=i,!u&&Np())throw new Error(`It seems you're operating within a browser environment.
|
|
487
503
|
|
|
488
504
|
By default, this is deactivated due to the potential risk of exposing your confidential integrator credentials.
|
|
489
505
|
If you're aware of these risks and have taken necessary security measures, you can enable the \`dangerouslyAllowBrowser\` option, e.g.,
|
|
490
506
|
|
|
491
507
|
SpritzApiClient.initialize({ apiKey, dangerouslyAllowBrowser: true });
|
|
492
|
-
`)}static initialize({environment:n=
|
|
508
|
+
`)}static initialize({environment:n=or.Sandbox,apiKey:t,integrationKey:i,dangerouslyAllowBrowser:u=!1}){const r=new Bs(n,t,i,u);return r.init(),r}init(){this.client=new Wp({environment:this.environment,apiKey:this.apiKey,integrationKey:this.integrationKey}),this.user=new pb(this.client),this.bankAccount=new Y3(this.client),this.paymentRequest=new ab(this.client),this.payment=new S1(this.client),this.onrampPayment=new E1(this.client),this.virtualCard=new Bb(this.client),this.bill=new a1(this.client),this.institution=new f1(this.client),this.webhook=new _b(this.client)}setApiKey(n){return this.apiKey=n,this.init(),this}}var iv=(e=>(e.Ethereum="ethereum",e.Polygon="polygon",e.Optimism="optimism",e.Arbitrum="arbitrum",e.Binance="binance-smart-chain",e.Avalanche="avalanche",e.Bitcoin="bitcoin",e.BitcoinTestnet="bitcoin-testnet",e.Dash="dash",e.DashTestnet="dash-testnet",e))(iv||{});export{Mf as BankAccountSubType,et as BankAccountType,Gf as BillType,or as Environment,Hf as PayableAccountType,iv as PaymentNetwork,Jf as PaymentRequestStatus,Kf as PaymentStatus,Bs as SpritzApiClient,bo as VirtualCardType};
|