@jackchuka/gql-ingest 3.0.0 → 3.1.1
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 +98 -51
- package/dist/cli/commands/add.d.ts +3 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/init.d.ts +3 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/index.js +159 -108
- package/dist/cli/templates/index.d.ts +14 -0
- package/dist/cli/templates/index.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13937 -112
- package/dist/index.js.map +4 -4
- package/dist/lib/config-schema.d.ts +103 -0
- package/dist/lib/config-schema.d.ts.map +1 -0
- package/dist/lib/config.d.ts +7 -31
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/logger.d.ts +5 -3
- package/dist/lib/logger.d.ts.map +1 -1
- package/package.json +4 -2
package/dist/cli/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
3
|
-
`,l=
|
|
4
|
-
`)}});var
|
|
2
|
+
var TI=Object.create;var Cc=Object.defineProperty;var $I=Object.getOwnPropertyDescriptor;var EI=Object.getOwnPropertyNames;var xI=Object.getPrototypeOf,OI=Object.prototype.hasOwnProperty;var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ir=(e,t)=>{for(var n in t)Cc(e,n,{get:t[n],enumerable:!0})},II=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of EI(t))!OI.call(e,r)&&r!==n&&Cc(e,r,{get:()=>t[r],enumerable:!(i=$I(t,r))||i.enumerable});return e};var SI=(e,t,n)=>(n=e!=null?TI(xI(e)):{},II(t||!e||!e.__esModule?Cc(n,"default",{value:e,enumerable:!0}):n,e));var X0=y(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.versionInfo=ci.version=void 0;var AD="16.12.0";ci.version=AD;var RD=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});ci.versionInfo=RD});var Xe=y(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.devAssert=CD;function CD(e,t){if(!!!e)throw new Error(t)}});var fu=y(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.isPromise=FD;function FD(e){return typeof e?.then=="function"}});var Zt=y(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.isObjectLike=zD;function zD(e){return typeof e=="object"&&e!==null}});var Ge=y(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.invariant=UD;function UD(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}});var mu=y(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.getLocation=VD;var MD=Ge(),qD=/\r\n|[\n\r]/g;function VD(e,t){let n=0,i=1;for(let r of e.body.matchAll(qD)){if(typeof r.index=="number"||(0,MD.invariant)(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}});var og=y(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.printLocation=KD;gu.printSourceLocation=e$;var GD=mu();function KD(e){return e$(e.source,(0,GD.getLocation)(e.source,e.start))}function e$(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=t.line===1?n:0,u=t.column+s,c=`${e.name}:${a}:${u}
|
|
3
|
+
`,l=i.split(/\r\n|[\n\r]/g),d=l[r];if(d.length>120){let p=Math.floor(u/80),f=u%80,v=[];for(let _=0;_<d.length;_+=80)v.push(d.slice(_,_+80));return c+H0([[`${a} |`,v[0]],...v.slice(1,p+1).map(_=>["|",_]),["|","^".padStart(f)],["|",v[p+1]]])}return c+H0([[`${a-1} |`,l[r-1]],[`${a} |`,d],["|","^".padStart(u)],[`${a+1} |`,l[r+1]]])}function H0(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
|
|
4
|
+
`)}});var U=y(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.GraphQLError=void 0;li.formatError=JD;li.printError=BD;var QD=Zt(),t$=mu(),r$=og();function ZD(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var ag=class e extends Error{constructor(t,...n){var i,r,o;let{nodes:a,source:s,positions:u,path:c,originalError:l,extensions:d}=ZD(n);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=l??void 0,this.nodes=n$(Array.isArray(a)?a:a?[a]:void 0);let p=n$((i=this.nodes)===null||i===void 0?void 0:i.map(v=>v.loc).filter(v=>v!=null));this.source=s??(p==null||(r=p[0])===null||r===void 0?void 0:r.source),this.positions=u??p?.map(v=>v.start),this.locations=u&&s?u.map(v=>(0,t$.getLocation)(s,v)):p?.map(v=>(0,t$.getLocation)(v.source,v.start));let f=(0,QD.isObjectLike)(l?.extensions)?l?.extensions:void 0;this.extensions=(o=d??f)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`
|
|
5
5
|
|
|
6
|
-
`+(0,
|
|
6
|
+
`+(0,r$.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`
|
|
7
7
|
|
|
8
|
-
`+(0,
|
|
9
|
-
`),
|
|
10
|
-
`),'"""'+
|
|
11
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,
|
|
12
|
-
`));return e.line+=u.length-1,e.lineStart=
|
|
8
|
+
`+(0,r$.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};li.GraphQLError=ag;function n$(e){return e===void 0||e.length===0?void 0:e}function BD(e){return e.toString()}function JD(e){return e.toJSON()}});var mo=y(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});sg.syntaxError=WD;var YD=U();function WD(e,t,n){return new YD.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var kt=y(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.Token=vt.QueryDocumentKeys=vt.OperationTypeNode=vt.Location=void 0;vt.isNode=HD;var ug=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};vt.Location=ug;var cg=class{constructor(t,n,i,r,o,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=o,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};vt.Token=cg;var i$={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};vt.QueryDocumentKeys=i$;var XD=new Set(Object.keys(i$));function HD(e){let t=e?.kind;return typeof t=="string"&&XD.has(t)}var lg;vt.OperationTypeNode=lg;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(lg||(vt.OperationTypeNode=lg={}))});var di=y(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DirectiveLocation=void 0;var dg;go.DirectiveLocation=dg;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(dg||(go.DirectiveLocation=dg={}))});var ee=y(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.Kind=void 0;var pg;vo.Kind=pg;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(pg||(vo.Kind=pg={}))});var ho=y(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.isDigit=o$;an.isLetter=fg;an.isNameContinue=rP;an.isNameStart=tP;an.isWhiteSpace=eP;function eP(e){return e===9||e===32}function o$(e){return e>=48&&e<=57}function fg(e){return e>=97&&e<=122||e>=65&&e<=90}function tP(e){return fg(e)||e===95}function rP(e){return fg(e)||o$(e)||e===95}});var bo=y(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.dedentBlockStringLines=nP;yo.isPrintableAsBlockString=oP;yo.printBlockString=aP;var mg=ho();function nP(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;a<e.length;++a){var o;let s=e[a],u=iP(s);u!==s.length&&(i=(o=i)!==null&&o!==void 0?o:a,r=a,a!==0&&u<n&&(n=u))}return e.map((a,s)=>s===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function iP(e){let t=0;for(;t<e.length&&(0,mg.isWhiteSpace)(e.charCodeAt(t));)++t;return t}function oP(e){if(e==="")return!0;let t=!0,n=!1,i=!0,r=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!r)return!1;r=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:i&&(i=n),t=!1}return!(t||i&&r)}function aP(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=i.length===1,o=i.length>1&&i.slice(1).every(f=>f.length===0||(0,mg.isWhiteSpace)(f.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=s||u,l=!(t!=null&&t.minimize)&&(!r||e.length>70||c||o||a),d="",p=r&&(0,mg.isWhiteSpace)(e.charCodeAt(0));return(l&&!p||o)&&(d+=`
|
|
9
|
+
`),d+=n,(l||c)&&(d+=`
|
|
10
|
+
`),'"""'+d+'"""'}});var pi=y(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.TokenKind=void 0;var gg;_o.TokenKind=gg;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(gg||(_o.TokenKind=gg={}))});var $o=y(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Lexer=void 0;Pr.createToken=Ne;Pr.isPunctuatorTokenKind=uP;Pr.printCodePointAt=Dr;Pr.readName=l$;var wt=mo(),s$=kt(),sP=bo(),sn=ho(),W=pi(),hg=class{constructor(t){let n=new s$.Token(W.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==W.TokenKind.EOF)do if(t.next)t=t.next;else{let n=cP(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===W.TokenKind.COMMENT);return t}};Pr.Lexer=hg;function uP(e){return e===W.TokenKind.BANG||e===W.TokenKind.DOLLAR||e===W.TokenKind.AMP||e===W.TokenKind.PAREN_L||e===W.TokenKind.PAREN_R||e===W.TokenKind.DOT||e===W.TokenKind.SPREAD||e===W.TokenKind.COLON||e===W.TokenKind.EQUALS||e===W.TokenKind.AT||e===W.TokenKind.BRACKET_L||e===W.TokenKind.BRACKET_R||e===W.TokenKind.BRACE_L||e===W.TokenKind.PIPE||e===W.TokenKind.BRACE_R}function fi(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function vu(e,t){return u$(e.charCodeAt(t))&&c$(e.charCodeAt(t+1))}function u$(e){return e>=55296&&e<=56319}function c$(e){return e>=56320&&e<=57343}function Dr(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return W.TokenKind.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ne(e,t,n,i,r){let o=e.line,a=1+n-e.lineStart;return new s$.Token(t,n,i,o,a,r)}function cP(e,t){let n=e.source.body,i=n.length,r=t;for(;r<i;){let o=n.charCodeAt(r);switch(o){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return lP(e,r);case 33:return Ne(e,W.TokenKind.BANG,r,r+1);case 36:return Ne(e,W.TokenKind.DOLLAR,r,r+1);case 38:return Ne(e,W.TokenKind.AMP,r,r+1);case 40:return Ne(e,W.TokenKind.PAREN_L,r,r+1);case 41:return Ne(e,W.TokenKind.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return Ne(e,W.TokenKind.SPREAD,r,r+3);break;case 58:return Ne(e,W.TokenKind.COLON,r,r+1);case 61:return Ne(e,W.TokenKind.EQUALS,r,r+1);case 64:return Ne(e,W.TokenKind.AT,r,r+1);case 91:return Ne(e,W.TokenKind.BRACKET_L,r,r+1);case 93:return Ne(e,W.TokenKind.BRACKET_R,r,r+1);case 123:return Ne(e,W.TokenKind.BRACE_L,r,r+1);case 124:return Ne(e,W.TokenKind.PIPE,r,r+1);case 125:return Ne(e,W.TokenKind.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?vP(e,r):pP(e,r)}if((0,sn.isDigit)(o)||o===45)return dP(e,r,o);if((0,sn.isNameStart)(o))return l$(e,r);throw(0,wt.syntaxError)(e.source,r,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:fi(o)||vu(n,r)?`Unexpected character: ${Dr(e,r)}.`:`Invalid character: ${Dr(e,r)}.`)}return Ne(e,W.TokenKind.EOF,i,i)}function lP(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let o=n.charCodeAt(r);if(o===10||o===13)break;if(fi(o))++r;else if(vu(n,r))r+=2;else break}return Ne(e,W.TokenKind.COMMENT,t,r,n.slice(t+1,r))}function dP(e,t,n){let i=e.source.body,r=t,o=n,a=!1;if(o===45&&(o=i.charCodeAt(++r)),o===48){if(o=i.charCodeAt(++r),(0,sn.isDigit)(o))throw(0,wt.syntaxError)(e.source,r,`Invalid number, unexpected digit after 0: ${Dr(e,r)}.`)}else r=vg(e,r,o),o=i.charCodeAt(r);if(o===46&&(a=!0,o=i.charCodeAt(++r),r=vg(e,r,o),o=i.charCodeAt(r)),(o===69||o===101)&&(a=!0,o=i.charCodeAt(++r),(o===43||o===45)&&(o=i.charCodeAt(++r)),r=vg(e,r,o),o=i.charCodeAt(r)),o===46||(0,sn.isNameStart)(o))throw(0,wt.syntaxError)(e.source,r,`Invalid number, expected digit but got: ${Dr(e,r)}.`);return Ne(e,a?W.TokenKind.FLOAT:W.TokenKind.INT,t,r,i.slice(t,r))}function vg(e,t,n){if(!(0,sn.isDigit)(n))throw(0,wt.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${Dr(e,t)}.`);let i=e.source.body,r=t+1;for(;(0,sn.isDigit)(i.charCodeAt(r));)++r;return r}function pP(e,t){let n=e.source.body,i=n.length,r=t+1,o=r,a="";for(;r<i;){let s=n.charCodeAt(r);if(s===34)return a+=n.slice(o,r),Ne(e,W.TokenKind.STRING,t,r+1,a);if(s===92){a+=n.slice(o,r);let u=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?fP(e,r):mP(e,r):gP(e,r);a+=u.value,r+=u.size,o=r;continue}if(s===10||s===13)break;if(fi(s))++r;else if(vu(n,r))r+=2;else throw(0,wt.syntaxError)(e.source,r,`Invalid character within String: ${Dr(e,r)}.`)}throw(0,wt.syntaxError)(e.source,r,"Unterminated string.")}function fP(e,t){let n=e.source.body,i=0,r=3;for(;r<12;){let o=n.charCodeAt(t+r++);if(o===125){if(r<5||!fi(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|To(o),i<0)break}throw(0,wt.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function mP(e,t){let n=e.source.body,i=a$(n,t+2);if(fi(i))return{value:String.fromCodePoint(i),size:6};if(u$(i)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let r=a$(n,t+8);if(c$(r))return{value:String.fromCodePoint(i,r),size:12}}throw(0,wt.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function a$(e,t){return To(e.charCodeAt(t))<<12|To(e.charCodeAt(t+1))<<8|To(e.charCodeAt(t+2))<<4|To(e.charCodeAt(t+3))}function To(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function gP(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
11
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,wt.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function vP(e,t){let n=e.source.body,i=n.length,r=e.lineStart,o=t+3,a=o,s="",u=[];for(;o<i;){let c=n.charCodeAt(o);if(c===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){s+=n.slice(a,o),u.push(s);let l=Ne(e,W.TokenKind.BLOCK_STRING,t,o+3,(0,sP.dedentBlockStringLines)(u).join(`
|
|
12
|
+
`));return e.line+=u.length-1,e.lineStart=r,l}if(c===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){s+=n.slice(a,o),a=o+1,o+=4;continue}if(c===10||c===13){s+=n.slice(a,o),u.push(s),c===13&&n.charCodeAt(o+1)===10?o+=2:++o,s="",a=o,r=o;continue}if(fi(c))++o;else if(vu(n,o))o+=2;else throw(0,wt.syntaxError)(e.source,o,`Invalid character within String: ${Dr(e,o)}.`)}throw(0,wt.syntaxError)(e.source,o,"Unterminated string.")}function l$(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let o=n.charCodeAt(r);if((0,sn.isNameContinue)(o))++r;else break}return Ne(e,W.TokenKind.NAME,t,r,n.slice(t,r))}});var d$=y(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.SchemaCoordinateLexer=void 0;var hP=mo(),yP=kt(),bP=ho(),jr=$o(),Lr=pi(),yg=class{line=1;lineStart=0;constructor(t){let n=new yP.Token(Lr.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Lr.TokenKind.EOF){let n=_P(this,t.end);t.next=n,n.prev=t,t=n}return t}};hu.SchemaCoordinateLexer=yg;function _P(e,t){let n=e.source.body,i=n.length,r=t;if(r<i){let o=n.charCodeAt(r);switch(o){case 46:return(0,jr.createToken)(e,Lr.TokenKind.DOT,r,r+1);case 40:return(0,jr.createToken)(e,Lr.TokenKind.PAREN_L,r,r+1);case 41:return(0,jr.createToken)(e,Lr.TokenKind.PAREN_R,r,r+1);case 58:return(0,jr.createToken)(e,Lr.TokenKind.COLON,r,r+1);case 64:return(0,jr.createToken)(e,Lr.TokenKind.AT,r,r+1)}if((0,bP.isNameStart)(o))return(0,jr.readName)(e,r);throw(0,hP.syntaxError)(e.source,r,`Invalid character: ${(0,jr.printCodePointAt)(e,r)}.`)}return(0,jr.createToken)(e,Lr.TokenKind.EOF,i,i)}});var se=y(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.inspect=$P;var TP=10,p$=2;function $P(e){return yu(e,[])}function yu(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return EP(e,t);default:return String(e)}}function EP(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(xP(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:yu(i,n)}else if(Array.isArray(e))return IP(e,n);return OP(e,n)}function xP(e){return typeof e.toJSON=="function"}function OP(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>p$?"["+SP(e)+"]":"{ "+n.map(([r,o])=>r+": "+yu(o,t)).join(", ")+" }"}function IP(e,t){if(e.length===0)return"[]";if(t.length>p$)return"[Array]";let n=Math.min(TP,e.length),i=e.length-n,r=[];for(let o=0;o<n;++o)r.push(yu(e[o],t));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function SP(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var Eo=y(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.instanceOf=void 0;var NP=se(),kP=globalThis.process&&process.env.NODE_ENV==="production",wP=kP?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;let r=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===o){let a=(0,NP.inspect)(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm.
|
|
13
13
|
|
|
14
14
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
15
15
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -20,48 +20,48 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
20
20
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
21
21
|
versions may have different capabilities and behavior. The data from one
|
|
22
22
|
version used in the function from another could produce confusing and
|
|
23
|
-
spurious results.`)}}return!1};vi.instanceOf=Ug});var Ti=y(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.Source=void 0;un.isSource=Yg;var ys=Ae(),Kg=J(),Bg=an(),gi=class{constructor(r,t="GraphQL request",n={line:1,column:1}){typeof r=="string"||(0,ys.devAssert)(!1,`Body must be a string. Received: ${(0,Kg.inspect)(r)}.`),this.body=r,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,ys.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,ys.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};un.Source=gi;function Yg(e){return(0,Bg.instanceOf)(e,gi)}});var nt=y(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.Parser=void 0;Nr.parse=Jg;Nr.parseConstValue=zg;Nr.parseSchemaCoordinate=eT;Nr.parseType=Zg;Nr.parseValue=Xg;var Gr=Xt(),cn=Je(),Hg=At(),x=$(),gp=sn(),Wg=yp(),Ei=Ti(),E=Rt();function Jg(e,r){let t=new Vr(e,r),n=t.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:t.tokenCount}),n}function Xg(e,r){let t=new Vr(e,r);t.expectToken(E.TokenKind.SOF);let n=t.parseValueLiteral(!1);return t.expectToken(E.TokenKind.EOF),n}function zg(e,r){let t=new Vr(e,r);t.expectToken(E.TokenKind.SOF);let n=t.parseConstValueLiteral();return t.expectToken(E.TokenKind.EOF),n}function Zg(e,r){let t=new Vr(e,r);t.expectToken(E.TokenKind.SOF);let n=t.parseTypeReference();return t.expectToken(E.TokenKind.EOF),n}function eT(e){let r=(0,Ei.isSource)(e)?e:new Ei.Source(e),t=new Wg.SchemaCoordinateLexer(r),n=new Vr(e,{lexer:t});n.expectToken(E.TokenKind.SOF);let i=n.parseSchemaCoordinate();return n.expectToken(E.TokenKind.EOF),i}var Vr=class{constructor(r,t={}){let{lexer:n,...i}=t;if(n)this._lexer=n;else{let o=(0,Ei.isSource)(r)?r:new Ei.Source(r);this._lexer=new gp.Lexer(o)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let r=this.expectToken(E.TokenKind.NAME);return this.node(r,{kind:x.Kind.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:x.Kind.DOCUMENT,definitions:this.many(E.TokenKind.SOF,this.parseDefinition,E.TokenKind.EOF)})}parseDefinition(){if(this.peek(E.TokenKind.BRACE_L))return this.parseOperationDefinition();let r=this.peekDescription(),t=r?this._lexer.lookahead():this._lexer.token;if(r&&t.kind===E.TokenKind.BRACE_L)throw(0,Gr.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===E.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(r)throw(0,Gr.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(t.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let r=this._lexer.token;if(this.peek(E.TokenKind.BRACE_L))return this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:cn.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),n=this.parseOperationType(),i;return this.peek(E.TokenKind.NAME)&&(i=this.parseName()),this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:n,description:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let r=this.expectToken(E.TokenKind.NAME);switch(r.value){case"query":return cn.OperationTypeNode.QUERY;case"mutation":return cn.OperationTypeNode.MUTATION;case"subscription":return cn.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseVariableDefinition,E.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:x.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(E.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let r=this._lexer.token;return this.expectToken(E.TokenKind.DOLLAR),this.node(r,{kind:x.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:x.Kind.SELECTION_SET,selections:this.many(E.TokenKind.BRACE_L,this.parseSelection,E.TokenKind.BRACE_R)})}parseSelection(){return this.peek(E.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let r=this._lexer.token,t=this.parseName(),n,i;return this.expectOptionalToken(E.TokenKind.COLON)?(n=t,i=this.parseName()):i=t,this.node(r,{kind:x.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){let t=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.TokenKind.PAREN_L,t,E.TokenKind.PAREN_R)}parseArgument(r=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(t,{kind:x.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let r=this._lexer.token;this.expectToken(E.TokenKind.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(E.TokenKind.NAME)?this.node(r,{kind:x.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:x.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let r=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(r){let t=this._lexer.token;switch(t.kind){case E.TokenKind.BRACKET_L:return this.parseList(r);case E.TokenKind.BRACE_L:return this.parseObject(r);case E.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:x.Kind.INT,value:t.value});case E.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:x.Kind.FLOAT,value:t.value});case E.TokenKind.STRING:case E.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case E.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:x.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:x.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:x.Kind.NULL});default:return this.node(t,{kind:x.Kind.ENUM,value:t.value})}case E.TokenKind.DOLLAR:if(r)if(this.expectToken(E.TokenKind.DOLLAR),this._lexer.token.kind===E.TokenKind.NAME){let n=this._lexer.token.value;throw(0,Gr.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:x.Kind.STRING,value:r.value,block:r.kind===E.TokenKind.BLOCK_STRING})}parseList(r){let t=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:x.Kind.LIST,values:this.any(E.TokenKind.BRACKET_L,t,E.TokenKind.BRACKET_R)})}parseObject(r){let t=()=>this.parseObjectField(r);return this.node(this._lexer.token,{kind:x.Kind.OBJECT,fields:this.any(E.TokenKind.BRACE_L,t,E.TokenKind.BRACE_R)})}parseObjectField(r){let t=this._lexer.token,n=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(t,{kind:x.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(r)})}parseDirectives(r){let t=[];for(;this.peek(E.TokenKind.AT);)t.push(this.parseDirective(r));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){let t=this._lexer.token;return this.expectToken(E.TokenKind.AT),this.node(t,{kind:x.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){let r=this._lexer.token,t;if(this.expectOptionalToken(E.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(E.TokenKind.BRACKET_R),t=this.node(r,{kind:x.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(E.TokenKind.BANG)?this.node(r,{kind:x.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:x.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.TokenKind.STRING)||this.peek(E.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);return this.node(r,{kind:x.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let r=this._lexer.token,t=this.parseOperationType();this.expectToken(E.TokenKind.COLON);let n=this.parseNamedType();return this.node(r,{kind:x.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseFieldDefinition,E.TokenKind.BRACE_R)}parseFieldDefinition(){let r=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.TokenKind.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.FIELD_DEFINITION,description:t,name:n,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseInputValueDef,E.TokenKind.PAREN_R)}parseInputValueDef(){let r=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(E.TokenKind.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(E.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(r,{kind:x.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(E.TokenKind.EQUALS)?this.delimitedMany(E.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(r,{kind:x.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseEnumValueDefinition,E.TokenKind.BRACE_R)}parseEnumValueDefinition(){let r=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Gr.syntaxError)(this._lexer.source,this._lexer.token.start,`${bi(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseInputValueDef,E.TokenKind.BRACE_R)}parseTypeSystemExtension(){let r=this._lexer.lookahead();if(r.kind===E.TokenKind.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)}parseSchemaExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:o})}parseInterfaceTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:o})}parseUnionTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){let r=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.TokenKind.AT);let n=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(r,{kind:x.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let r=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(Hg.DirectiveLocation,t.value))return t;throw this.unexpected(r)}parseSchemaCoordinate(){let r=this._lexer.token,t=this.expectOptionalToken(E.TokenKind.AT),n=this.parseName(),i;!t&&this.expectOptionalToken(E.TokenKind.DOT)&&(i=this.parseName());let o;return(t||i)&&this.expectOptionalToken(E.TokenKind.PAREN_L)&&(o=this.parseName(),this.expectToken(E.TokenKind.COLON),this.expectToken(E.TokenKind.PAREN_R)),t?o?this.node(r,{kind:x.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:o}):this.node(r,{kind:x.Kind.DIRECTIVE_COORDINATE,name:n}):i?o?this.node(r,{kind:x.Kind.ARGUMENT_COORDINATE,name:n,fieldName:i,argumentName:o}):this.node(r,{kind:x.Kind.MEMBER_COORDINATE,name:n,memberName:i}):this.node(r,{kind:x.Kind.TYPE_COORDINATE,name:n})}node(r,t){return this._options.noLocation!==!0&&(t.loc=new cn.Location(r,this._lexer.lastToken,this._lexer.source)),t}peek(r){return this._lexer.token.kind===r}expectToken(r){let t=this._lexer.token;if(t.kind===r)return this.advanceLexer(),t;throw(0,Gr.syntaxError)(this._lexer.source,t.start,`Expected ${Tp(r)}, found ${bi(t)}.`)}expectOptionalToken(r){return this._lexer.token.kind===r?(this.advanceLexer(),!0):!1}expectKeyword(r){let t=this._lexer.token;if(t.kind===E.TokenKind.NAME&&t.value===r)this.advanceLexer();else throw(0,Gr.syntaxError)(this._lexer.source,t.start,`Expected "${r}", found ${bi(t)}.`)}expectOptionalKeyword(r){let t=this._lexer.token;return t.kind===E.TokenKind.NAME&&t.value===r?(this.advanceLexer(),!0):!1}unexpected(r){let t=r??this._lexer.token;return(0,Gr.syntaxError)(this._lexer.source,t.start,`Unexpected ${bi(t)}.`)}any(r,t,n){this.expectToken(r);let i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(r,t,n){if(this.expectOptionalToken(r)){let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(r,t,n){this.expectToken(r);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(r,t){this.expectOptionalToken(r);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(r));return n}advanceLexer(){let{maxTokens:r}=this._options,t=this._lexer.advance();if(t.kind!==E.TokenKind.EOF&&(++this._tokenCounter,r!==void 0&&this._tokenCounter>r))throw(0,Gr.syntaxError)(this._lexer.source,t.start,`Document contains more that ${r} tokens. Parsing aborted.`)}};Nr.Parser=Vr;function bi(e){let r=e.value;return Tp(e.kind)+(r!=null?` "${r}"`:"")}function Tp(e){return(0,gp.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var $r=y(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.didYouMean=tT;var rT=5;function tT(e,r){let[t,n]=r?[e,r]:[void 0,e],i=" Did you mean ";t&&(i+=t+" ");let o=n.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,rT),a=s.pop();return i+s.join(", ")+", or "+a+"?"}});var bp=y(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.identityFunc=nT;function nT(e){return e}});var Qr=y(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.keyMap=iT;function iT(e,r){let t=Object.create(null);for(let n of e)t[r(n)]=n;return t}});var ln=y(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.keyValMap=oT;function oT(e,r,t){let n=Object.create(null);for(let i of e)n[r(i)]=t(i);return n}});var _s=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.mapValue=sT;function sT(e,r){let t=Object.create(null);for(let n of Object.keys(e))t[n]=r(e[n],n);return t}});var pn=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.naturalCompare=aT;function aT(e,r){let t=0,n=0;for(;t<e.length&&n<r.length;){let i=e.charCodeAt(t),o=r.charCodeAt(n);if(_i(i)&&_i(o)){let s=0;do++t,s=s*10+i-Os,i=e.charCodeAt(t);while(_i(i)&&s>0);let a=0;do++n,a=a*10+o-Os,o=r.charCodeAt(n);while(_i(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++t,++n}}return e.length-r.length}var Os=48,uT=57;function _i(e){return!isNaN(e)&&Os<=e&&e<=uT}});var Ur=y(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.suggestionList=lT;var cT=pn();function lT(e,r){let t=Object.create(null),n=new Is(e),i=Math.floor(e.length*.4)+1;for(let o of r){let s=n.measure(o,i);s!==void 0&&(t[o]=s)}return Object.keys(t).sort((o,s)=>{let a=t[o]-t[s];return a!==0?a:(0,cT.naturalCompare)(o,s)})}var Is=class{constructor(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=Ep(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}measure(r,t){if(this._input===r)return 0;let n=r.toLowerCase();if(this._inputLowerCase===n)return 1;let i=Ep(n),o=this._inputArray;if(i.length<o.length){let l=i;i=o,o=l}let s=i.length,a=o.length;if(s-a>t)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let p=u[(l-1)%3],d=u[l%3],m=d[0]=l;for(let h=1;h<=a;h++){let _=i[l-1]===o[h-1]?0:1,R=Math.min(p[h]+1,d[h-1]+1,p[h-1]+_);if(l>1&&h>1&&i[l-1]===o[h-2]&&i[l-2]===o[h-1]){let j=u[(l-2)%3][h-2];R=Math.min(R,j+1)}R<m&&(m=R),d[h]=R}if(m>t)return}let c=u[s%3][a];return c<=t?c:void 0}};function Ep(e){let r=e.length,t=new Array(r);for(let n=0;n<r;++n)t[n]=e.charCodeAt(n);return t}});var Oi=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.toObjMap=pT;function pT(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let r=Object.create(null);for(let[t,n]of Object.entries(e))r[t]=n;return r}});var _p=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.printString=dT;function dT(e){return`"${e.replace(fT,mT)}"`}var fT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function mT(e){return hT[e.charCodeAt(0)]}var hT=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var it=y(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.BREAK=void 0;Kr.getEnterLeaveForKind=Ni;Kr.getVisitFn=bT;Kr.visit=gT;Kr.visitInParallel=TT;var yT=Ae(),vT=J(),As=Je(),Op=$(),wt=Object.freeze({});Kr.BREAK=wt;function gT(e,r,t=As.QueryDocumentKeys){let n=new Map;for(let j of Object.values(Op.Kind))n.set(j,Ni(r,j));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,p,d=[],m=[];do{a++;let j=a===s.length,O=j&&u.length!==0;if(j){if(l=m.length===0?void 0:d[d.length-1],c=p,p=m.pop(),O)if(o){c=c.slice();let oe=0;for(let[_r,be]of u){let ur=_r-oe;be===null?(c.splice(ur,1),oe++):c[ur]=be}}else{c={...c};for(let[oe,_r]of u)c[oe]=_r}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(p){if(l=o?a:s[a],c=p[l],c==null)continue;d.push(l)}let U;if(!Array.isArray(c)){var h,_;(0,As.isNode)(c)||(0,yT.devAssert)(!1,`Invalid AST Node: ${(0,vT.inspect)(c)}.`);let oe=j?(h=n.get(c.kind))===null||h===void 0?void 0:h.leave:(_=n.get(c.kind))===null||_===void 0?void 0:_.enter;if(U=oe?.call(r,c,l,p,d,m),U===wt)break;if(U===!1){if(!j){d.pop();continue}}else if(U!==void 0&&(u.push([l,U]),!j))if((0,As.isNode)(U))c=U;else{d.pop();continue}}if(U===void 0&&O&&u.push([l,c]),j)d.pop();else{var R;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(R=t[c.kind])!==null&&R!==void 0?R:[],a=-1,u=[],p&&m.push(p),p=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function TT(e){let r=new Array(e.length).fill(null),t=Object.create(null);for(let n of Object.values(Op.Kind)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){let{enter:c,leave:l}=Ni(e[u],n);i||(i=c!=null||l!=null),o[u]=c,s[u]=l}if(!i)continue;let a={enter(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let d=(l=o[p])===null||l===void 0?void 0:l.apply(e[p],u);if(d===!1)r[p]=c;else if(d===wt)r[p]=wt;else if(d!==void 0)return d}},leave(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let d=(l=s[p])===null||l===void 0?void 0:l.apply(e[p],u);if(d===wt)r[p]=wt;else if(d!==void 0&&d!==!1)return d}else r[p]===c&&(r[p]=null)}};t[n]=a}return t}function Ni(e,r){let t=e[r];return typeof t=="object"?t:typeof t=="function"?{enter:t,leave:void 0}:{enter:e.enter,leave:e.leave}}function bT(e,r,t){let{enter:n,leave:i}=Ni(e,r);return t?i:n}});var ke=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.print=NT;var ET=tn(),_T=_p(),OT=it();function NT(e){return(0,OT.visit)(e,ST)}var IT=80,ST={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>I(e.definitions,`
|
|
23
|
+
spurious results.`)}}return!1};bu.instanceOf=wP});var Tu=y(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.Source=void 0;xo.isSource=jP;var _g=Xe(),DP=se(),PP=Eo(),_u=class{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||(0,_g.devAssert)(!1,`Body must be a string. Received: ${(0,DP.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||(0,_g.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,_g.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};xo.Source=_u;function jP(e){return(0,PP.instanceOf)(e,_u)}});var un=y(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.Parser=void 0;cr.parse=RP;cr.parseConstValue=FP;cr.parseSchemaCoordinate=UP;cr.parseType=zP;cr.parseValue=CP;var Ar=mo(),Oo=kt(),LP=di(),M=ee(),f$=$o(),AP=d$(),Eu=Tu(),N=pi();function RP(e,t){let n=new Rr(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}function CP(e,t){let n=new Rr(e,t);n.expectToken(N.TokenKind.SOF);let i=n.parseValueLiteral(!1);return n.expectToken(N.TokenKind.EOF),i}function FP(e,t){let n=new Rr(e,t);n.expectToken(N.TokenKind.SOF);let i=n.parseConstValueLiteral();return n.expectToken(N.TokenKind.EOF),i}function zP(e,t){let n=new Rr(e,t);n.expectToken(N.TokenKind.SOF);let i=n.parseTypeReference();return n.expectToken(N.TokenKind.EOF),i}function UP(e){let t=(0,Eu.isSource)(e)?e:new Eu.Source(e),n=new AP.SchemaCoordinateLexer(t),i=new Rr(e,{lexer:n});i.expectToken(N.TokenKind.SOF);let r=i.parseSchemaCoordinate();return i.expectToken(N.TokenKind.EOF),r}var Rr=class{constructor(t,n={}){let{lexer:i,...r}=n;if(i)this._lexer=i;else{let o=(0,Eu.isSource)(t)?t:new Eu.Source(t);this._lexer=new f$.Lexer(o)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(N.TokenKind.NAME);return this.node(t,{kind:M.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.Kind.DOCUMENT,definitions:this.many(N.TokenKind.SOF,this.parseDefinition,N.TokenKind.EOF)})}parseDefinition(){if(this.peek(N.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===N.TokenKind.BRACE_L)throw(0,Ar.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===N.TokenKind.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw(0,Ar.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(n.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(N.TokenKind.BRACE_L))return this.node(t,{kind:M.Kind.OPERATION_DEFINITION,operation:Oo.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),i=this.parseOperationType(),r;return this.peek(N.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:M.Kind.OPERATION_DEFINITION,operation:i,description:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(N.TokenKind.NAME);switch(t.value){case"query":return Oo.OperationTypeNode.QUERY;case"mutation":return Oo.OperationTypeNode.MUTATION;case"subscription":return Oo.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(N.TokenKind.PAREN_L,this.parseVariableDefinition,N.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(N.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(N.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(N.TokenKind.DOLLAR),this.node(t,{kind:M.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.Kind.SELECTION_SET,selections:this.many(N.TokenKind.BRACE_L,this.parseSelection,N.TokenKind.BRACE_R)})}parseSelection(){return this.peek(N.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),i,r;return this.expectOptionalToken(N.TokenKind.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:M.Kind.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(N.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(N.TokenKind.PAREN_L,n,N.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(N.TokenKind.COLON),this.node(n,{kind:M.Kind.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(N.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(N.TokenKind.NAME)?this.node(t,{kind:M.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:M.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:M.Kind.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:M.Kind.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case N.TokenKind.BRACKET_L:return this.parseList(t);case N.TokenKind.BRACE_L:return this.parseObject(t);case N.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:M.Kind.INT,value:n.value});case N.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:M.Kind.FLOAT,value:n.value});case N.TokenKind.STRING:case N.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case N.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:M.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:M.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:M.Kind.NULL});default:return this.node(n,{kind:M.Kind.ENUM,value:n.value})}case N.TokenKind.DOLLAR:if(t)if(this.expectToken(N.TokenKind.DOLLAR),this._lexer.token.kind===N.TokenKind.NAME){let i=this._lexer.token.value;throw(0,Ar.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:M.Kind.STRING,value:t.value,block:t.kind===N.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:M.Kind.LIST,values:this.any(N.TokenKind.BRACKET_L,n,N.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:M.Kind.OBJECT,fields:this.any(N.TokenKind.BRACE_L,n,N.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,i=this.parseName();return this.expectToken(N.TokenKind.COLON),this.node(n,{kind:M.Kind.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(N.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(N.TokenKind.AT),this.node(n,{kind:M.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(N.TokenKind.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(N.TokenKind.BRACKET_R),n=this.node(t,{kind:M.Kind.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(N.TokenKind.BANG)?this.node(t,{kind:M.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:M.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(N.TokenKind.STRING)||this.peek(N.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(N.TokenKind.BRACE_L,this.parseOperationTypeDefinition,N.TokenKind.BRACE_R);return this.node(t,{kind:M.Kind.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(N.TokenKind.COLON);let i=this.parseNamedType();return this.node(t,{kind:M.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:M.Kind.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:M.Kind.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(N.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(N.TokenKind.BRACE_L,this.parseFieldDefinition,N.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(N.TokenKind.COLON);let o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:M.Kind.FIELD_DEFINITION,description:n,name:i,arguments:r,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(N.TokenKind.PAREN_L,this.parseInputValueDef,N.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(N.TokenKind.COLON);let r=this.parseTypeReference(),o;this.expectOptionalToken(N.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:M.Kind.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:M.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:o,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:M.Kind.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(N.TokenKind.EQUALS)?this.delimitedMany(N.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:M.Kind.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(N.TokenKind.BRACE_L,this.parseEnumValueDefinition,N.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:M.Kind.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Ar.syntaxError)(this._lexer.source,this._lexer.token.start,`${$u(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:M.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(N.TokenKind.BRACE_L,this.parseInputValueDef,N.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===N.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.optionalMany(N.TokenKind.BRACE_L,this.parseOperationTypeDefinition,N.TokenKind.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:M.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:M.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:M.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:o})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:M.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:o})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:M.Kind.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:M.Kind.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:M.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(N.TokenKind.AT);let i=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:M.Kind.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(N.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(LP.DirectiveLocation,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,n=this.expectOptionalToken(N.TokenKind.AT),i=this.parseName(),r;!n&&this.expectOptionalToken(N.TokenKind.DOT)&&(r=this.parseName());let o;return(n||r)&&this.expectOptionalToken(N.TokenKind.PAREN_L)&&(o=this.parseName(),this.expectToken(N.TokenKind.COLON),this.expectToken(N.TokenKind.PAREN_R)),n?o?this.node(t,{kind:M.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:o}):this.node(t,{kind:M.Kind.DIRECTIVE_COORDINATE,name:i}):r?o?this.node(t,{kind:M.Kind.ARGUMENT_COORDINATE,name:i,fieldName:r,argumentName:o}):this.node(t,{kind:M.Kind.MEMBER_COORDINATE,name:i,memberName:r}):this.node(t,{kind:M.Kind.TYPE_COORDINATE,name:i})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Oo.Location(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw(0,Ar.syntaxError)(this._lexer.source,n.start,`Expected ${m$(t)}, found ${$u(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===N.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,Ar.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${$u(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===N.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return(0,Ar.syntaxError)(this._lexer.source,n.start,`Unexpected ${$u(n)}.`)}any(t,n,i){this.expectToken(t);let r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(t,n,i){if(this.expectOptionalToken(t)){let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(t,n,i){this.expectToken(t);let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(t,n){this.expectOptionalToken(t);let i=[];do i.push(n.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==N.TokenKind.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw(0,Ar.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};cr.Parser=Rr;function $u(e){let t=e.value;return m$(e.kind)+(t!=null?` "${t}"`:"")}function m$(e){return(0,f$.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var Cr=y(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});Tg.didYouMean=qP;var MP=5;function qP(e,t){let[n,i]=t?[e,t]:[void 0,e],r=" Did you mean ";n&&(r+=n+" ");let o=i.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return r+o[0]+"?";case 2:return r+o[0]+" or "+o[1]+"?"}let a=o.slice(0,MP),s=a.pop();return r+a.join(", ")+", or "+s+"?"}});var g$=y($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.identityFunc=VP;function VP(e){return e}});var Fr=y(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.keyMap=GP;function GP(e,t){let n=Object.create(null);for(let i of e)n[t(i)]=i;return n}});var Io=y(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.keyValMap=KP;function KP(e,t,n){let i=Object.create(null);for(let r of e)i[t(r)]=n(r);return i}});var Ig=y(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});Og.mapValue=QP;function QP(e,t){let n=Object.create(null);for(let i of Object.keys(e))n[i]=t(e[i],i);return n}});var So=y(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng.naturalCompare=ZP;function ZP(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let r=e.charCodeAt(n),o=t.charCodeAt(i);if(xu(r)&&xu(o)){let a=0;do++n,a=a*10+r-Sg,r=e.charCodeAt(n);while(xu(r)&&a>0);let s=0;do++i,s=s*10+o-Sg,o=t.charCodeAt(i);while(xu(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(r<o)return-1;if(r>o)return 1;++n,++i}}return e.length-t.length}var Sg=48,BP=57;function xu(e){return!isNaN(e)&&Sg<=e&&e<=BP}});var zr=y(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.suggestionList=YP;var JP=So();function YP(e,t){let n=Object.create(null),i=new kg(e),r=Math.floor(e.length*.4)+1;for(let o of t){let a=i.measure(o,r);a!==void 0&&(n[o]=a)}return Object.keys(n).sort((o,a)=>{let s=n[o]-n[a];return s!==0?s:(0,JP.naturalCompare)(o,a)})}var kg=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=v$(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)]}measure(t,n){if(this._input===t)return 0;let i=t.toLowerCase();if(this._inputLowerCase===i)return 1;let r=v$(i),o=this._inputArray;if(r.length<o.length){let l=r;r=o,o=l}let a=r.length,s=o.length;if(a-s>n)return;let u=this._rows;for(let l=0;l<=s;l++)u[0][l]=l;for(let l=1;l<=a;l++){let d=u[(l-1)%3],p=u[l%3],f=p[0]=l;for(let v=1;v<=s;v++){let _=r[l-1]===o[v-1]?0:1,j=Math.min(d[v]+1,p[v-1]+1,d[v-1]+_);if(l>1&&v>1&&r[l-1]===o[v-2]&&r[l-2]===o[v-1]){let z=u[(l-2)%3][v-2];j=Math.min(j,z+1)}j<f&&(f=j),p[v]=j}if(f>n)return}let c=u[a%3][s];return c<=n?c:void 0}};function v$(e){let t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}});var Ou=y(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.toObjMap=WP;function WP(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,i]of Object.entries(e))t[n]=i;return t}});var h$=y(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.printString=XP;function XP(e){return`"${e.replace(HP,ej)}"`}var HP=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ej(e){return tj[e.charCodeAt(0)]}var tj=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var cn=y(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.BREAK=void 0;Ur.getEnterLeaveForKind=Iu;Ur.getVisitFn=aj;Ur.visit=ij;Ur.visitInParallel=oj;var rj=Xe(),nj=se(),jg=kt(),y$=ee(),mi=Object.freeze({});Ur.BREAK=mi;function ij(e,t,n=jg.QueryDocumentKeys){let i=new Map;for(let z of Object.values(y$.Kind))i.set(z,Iu(t,z));let r,o=Array.isArray(e),a=[e],s=-1,u=[],c=e,l,d,p=[],f=[];do{s++;let z=s===a.length,k=z&&u.length!==0;if(z){if(l=f.length===0?void 0:p[p.length-1],c=d,d=f.pop(),k)if(o){c=c.slice();let H=0;for(let[Ie,De]of u){let ft=Ie-H;De===null?(c.splice(ft,1),H++):c[ft]=De}}else{c={...c};for(let[H,Ie]of u)c[H]=Ie}s=r.index,a=r.keys,u=r.edits,o=r.inArray,r=r.prev}else if(d){if(l=o?s:a[s],c=d[l],c==null)continue;p.push(l)}let V;if(!Array.isArray(c)){var v,_;(0,jg.isNode)(c)||(0,rj.devAssert)(!1,`Invalid AST Node: ${(0,nj.inspect)(c)}.`);let H=z?(v=i.get(c.kind))===null||v===void 0?void 0:v.leave:(_=i.get(c.kind))===null||_===void 0?void 0:_.enter;if(V=H?.call(t,c,l,d,p,f),V===mi)break;if(V===!1){if(!z){p.pop();continue}}else if(V!==void 0&&(u.push([l,V]),!z))if((0,jg.isNode)(V))c=V;else{p.pop();continue}}if(V===void 0&&k&&u.push([l,c]),z)p.pop();else{var j;r={inArray:o,index:s,keys:a,edits:u,prev:r},o=Array.isArray(c),a=o?c:(j=n[c.kind])!==null&&j!==void 0?j:[],s=-1,u=[],d&&f.push(d),d=c}}while(r!==void 0);return u.length!==0?u[u.length-1][1]:e}function oj(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let i of Object.values(y$.Kind)){let r=!1,o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){let{enter:c,leave:l}=Iu(e[u],i);r||(r=c!=null||l!=null),o[u]=c,a[u]=l}if(!r)continue;let s={enter(...u){let c=u[0];for(let d=0;d<e.length;d++)if(t[d]===null){var l;let p=(l=o[d])===null||l===void 0?void 0:l.apply(e[d],u);if(p===!1)t[d]=c;else if(p===mi)t[d]=mi;else if(p!==void 0)return p}},leave(...u){let c=u[0];for(let d=0;d<e.length;d++)if(t[d]===null){var l;let p=(l=a[d])===null||l===void 0?void 0:l.apply(e[d],u);if(p===mi)t[d]=mi;else if(p!==void 0&&p!==!1)return p}else t[d]===c&&(t[d]=null)}};n[i]=s}return n}function Iu(e,t){let n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function aj(e,t,n){let{enter:i,leave:r}=Iu(e,t);return n?r:i}});var ct=y(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.print=lj;var sj=bo(),uj=h$(),cj=cn();function lj(e){return(0,cj.visit)(e,pj)}var dj=80,pj={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>P(e.definitions,`
|
|
24
24
|
|
|
25
|
-
`)},OperationDefinition:{leave(e){let
|
|
26
|
-
`,
|
|
25
|
+
`)},OperationDefinition:{leave(e){let t=Lg(e.variableDefinitions)?Q(`(
|
|
26
|
+
`,P(e.variableDefinitions,`
|
|
27
27
|
`),`
|
|
28
|
-
)`):
|
|
29
|
-
`)+
|
|
30
|
-
`)+e+": "+
|
|
31
|
-
`,
|
|
28
|
+
)`):Q("(",P(e.variableDefinitions,", "),")"),n=Q("",e.description,`
|
|
29
|
+
`)+P([e.operation,P([e.name,t]),P(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i,description:r})=>Q("",r,`
|
|
30
|
+
`)+e+": "+t+Q(" = ",n)+Q(" ",P(i," "))},SelectionSet:{leave:({selections:e})=>Dt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){let o=Q("",e,": ")+t,a=o+Q("(",P(n,", "),")");return a.length>dj&&(a=o+Q(`(
|
|
31
|
+
`,Su(P(n,`
|
|
32
32
|
`)),`
|
|
33
|
-
)`)),
|
|
34
|
-
`)+`fragment ${e}${
|
|
35
|
-
`)+
|
|
36
|
-
`)+
|
|
37
|
-
`)+
|
|
38
|
-
`)+
|
|
39
|
-
`,
|
|
33
|
+
)`)),P([a,P(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Q(" ",P(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>P(["...",Q("on ",e),P(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r,description:o})=>Q("",o,`
|
|
34
|
+
`)+`fragment ${e}${Q("(",P(n,", "),")")} on ${t} ${Q("",P(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,sj.printBlockString)(e):(0,uj.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+P(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+P(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Q("(",P(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Q("",e,`
|
|
35
|
+
`)+P(["schema",P(t," "),Dt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,`
|
|
36
|
+
`)+P(["scalar",t,P(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Q("",e,`
|
|
37
|
+
`)+P(["type",t,Q("implements ",P(n," & ")),P(i," "),Dt(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>Q("",e,`
|
|
38
|
+
`)+t+(Lg(n)?Q(`(
|
|
39
|
+
`,Su(P(n,`
|
|
40
40
|
`)),`
|
|
41
|
-
)`):
|
|
42
|
-
`)+
|
|
43
|
-
`)+
|
|
44
|
-
`)+
|
|
45
|
-
`)+
|
|
46
|
-
`)+
|
|
47
|
-
`)+
|
|
48
|
-
`)+"directive @"+
|
|
49
|
-
`,
|
|
41
|
+
)`):Q("(",P(n,", "),")"))+": "+i+Q(" ",P(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>Q("",e,`
|
|
42
|
+
`)+P([t+": "+n,Q("= ",i),P(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Q("",e,`
|
|
43
|
+
`)+P(["interface",t,Q("implements ",P(n," & ")),P(i," "),Dt(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>Q("",e,`
|
|
44
|
+
`)+P(["union",t,P(n," "),Q("= ",P(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>Q("",e,`
|
|
45
|
+
`)+P(["enum",t,P(n," "),Dt(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,`
|
|
46
|
+
`)+P([t,P(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>Q("",e,`
|
|
47
|
+
`)+P(["input",t,P(n," "),Dt(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>Q("",e,`
|
|
48
|
+
`)+"directive @"+t+(Lg(n)?Q(`(
|
|
49
|
+
`,Su(P(n,`
|
|
50
50
|
`)),`
|
|
51
|
-
)`):
|
|
52
|
-
`,
|
|
51
|
+
)`):Q("(",P(n,", "),")"))+(i?" repeatable":"")+" on "+P(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>P(["extend schema",P(e," "),Dt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>P(["extend scalar",e,P(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>P(["extend type",e,Q("implements ",P(t," & ")),P(n," "),Dt(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>P(["extend interface",e,Q("implements ",P(t," & ")),P(n," "),Dt(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>P(["extend union",e,P(t," "),Q("= ",P(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>P(["extend enum",e,P(t," "),Dt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>P(["extend input",e,P(t," "),Dt(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>P([e,Q(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>P([e,Q(".",t),Q("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>P(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>P(["@",e,Q("(",t,":)")])}};function P(e,t=""){var n;return(n=e?.filter(i=>i).join(t))!==null&&n!==void 0?n:""}function Dt(e){return Q(`{
|
|
52
|
+
`,Su(P(e,`
|
|
53
53
|
`)),`
|
|
54
|
-
}`)}function
|
|
55
|
-
`))}function
|
|
56
|
-
`)))!==null&&r!==void 0?r:!1}});var xs=y(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.valueFromASTUntyped=ws;var LT=ln(),Ir=$();function ws(e,r){switch(e.kind){case Ir.Kind.NULL:return null;case Ir.Kind.INT:return parseInt(e.value,10);case Ir.Kind.FLOAT:return parseFloat(e.value);case Ir.Kind.STRING:case Ir.Kind.ENUM:case Ir.Kind.BOOLEAN:return e.value;case Ir.Kind.LIST:return e.values.map(t=>ws(t,r));case Ir.Kind.OBJECT:return(0,LT.keyValMap)(e.fields,t=>t.name.value,t=>ws(t.value,r));case Ir.Kind.VARIABLE:return r?.[e.name.value]}}});var dn=y(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.assertEnumValueName=DT;Li.assertName=Sp;var Np=Ae(),Si=w(),Ip=en();function Sp(e){if(e!=null||(0,Np.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Np.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Si.GraphQLError("Expected name to be a non-empty string.");for(let r=1;r<e.length;++r)if(!(0,Ip.isNameContinue)(e.charCodeAt(r)))throw new Si.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,Ip.isNameStart)(e.charCodeAt(0)))throw new Si.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function DT(e){if(e==="true"||e==="false"||e==="null")throw new Si.GraphQLError(`Enum values cannot be named: ${e}`);return Sp(e)}});var Q=y(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.GraphQLUnionType=A.GraphQLScalarType=A.GraphQLObjectType=A.GraphQLNonNull=A.GraphQLList=A.GraphQLInterfaceType=A.GraphQLInputObjectType=A.GraphQLEnumType=void 0;A.argsToArgsConfig=Mp;A.assertAbstractType=HT;A.assertCompositeType=YT;A.assertEnumType=GT;A.assertInputObjectType=VT;A.assertInputType=UT;A.assertInterfaceType=qT;A.assertLeafType=BT;A.assertListType=$T;A.assertNamedType=zT;A.assertNonNullType=QT;A.assertNullableType=JT;A.assertObjectType=CT;A.assertOutputType=KT;A.assertScalarType=FT;A.assertType=kT;A.assertUnionType=MT;A.assertWrappingType=WT;A.defineArguments=Cp;A.getNamedType=ZT;A.getNullableType=XT;A.isAbstractType=jp;A.isCompositeType=wp;A.isEnumType=ut;A.isInputObjectType=mn;A.isInputType=ks;A.isInterfaceType=st;A.isLeafType=Pp;A.isListType=Mi;A.isNamedType=xp;A.isNonNullType=Yr;A.isNullableType=Cs;A.isObjectType=xt;A.isOutputType=Fs;A.isRequiredArgument=eb;A.isRequiredInputField=nb;A.isScalarType=ot;A.isType=qi;A.isUnionType=at;A.isWrappingType=hn;A.resolveObjMapThunk=Ms;A.resolveReadonlyArrayThunk=qs;var Ee=Ae(),AT=$r(),Lp=bp(),Z=J(),Br=an(),RT=dr(),PT=Qr(),Rp=ln(),Ci=_s(),wT=Ur(),fr=Oi(),fn=w(),jT=$(),Dp=ke(),xT=xs(),mr=dn();function qi(e){return ot(e)||xt(e)||st(e)||at(e)||ut(e)||mn(e)||Mi(e)||Yr(e)}function kT(e){if(!qi(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL type.`);return e}function ot(e){return(0,Br.instanceOf)(e,Pi)}function FT(e){if(!ot(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL Scalar type.`);return e}function xt(e){return(0,Br.instanceOf)(e,wi)}function CT(e){if(!xt(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL Object type.`);return e}function st(e){return(0,Br.instanceOf)(e,ji)}function qT(e){if(!st(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL Interface type.`);return e}function at(e){return(0,Br.instanceOf)(e,xi)}function MT(e){if(!at(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL Union type.`);return e}function ut(e){return(0,Br.instanceOf)(e,ki)}function GT(e){if(!ut(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL Enum type.`);return e}function mn(e){return(0,Br.instanceOf)(e,Fi)}function VT(e){if(!mn(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL Input Object type.`);return e}function Mi(e){return(0,Br.instanceOf)(e,Ai)}function $T(e){if(!Mi(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL List type.`);return e}function Yr(e){return(0,Br.instanceOf)(e,Ri)}function QT(e){if(!Yr(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function ks(e){return ot(e)||ut(e)||mn(e)||hn(e)&&ks(e.ofType)}function UT(e){if(!ks(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL input type.`);return e}function Fs(e){return ot(e)||xt(e)||st(e)||at(e)||ut(e)||hn(e)&&Fs(e.ofType)}function KT(e){if(!Fs(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL output type.`);return e}function Pp(e){return ot(e)||ut(e)}function BT(e){if(!Pp(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL leaf type.`);return e}function wp(e){return xt(e)||st(e)||at(e)}function YT(e){if(!wp(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL composite type.`);return e}function jp(e){return st(e)||at(e)}function HT(e){if(!jp(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL abstract type.`);return e}var Ai=class{constructor(r){qi(r)||(0,Ee.devAssert)(!1,`Expected ${(0,Z.inspect)(r)} to be a GraphQL type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};A.GraphQLList=Ai;var Ri=class{constructor(r){Cs(r)||(0,Ee.devAssert)(!1,`Expected ${(0,Z.inspect)(r)} to be a GraphQL nullable type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};A.GraphQLNonNull=Ri;function hn(e){return Mi(e)||Yr(e)}function WT(e){if(!hn(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL wrapping type.`);return e}function Cs(e){return qi(e)&&!Yr(e)}function JT(e){if(!Cs(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL nullable type.`);return e}function XT(e){if(e)return Yr(e)?e.ofType:e}function xp(e){return ot(e)||xt(e)||st(e)||at(e)||ut(e)||mn(e)}function zT(e){if(!xp(e))throw new Error(`Expected ${(0,Z.inspect)(e)} to be a GraphQL named type.`);return e}function ZT(e){if(e){let r=e;for(;hn(r);)r=r.ofType;return r}}function qs(e){return typeof e=="function"?e():e}function Ms(e){return typeof e=="function"?e():e}var Pi=class{constructor(r){var t,n,i,o;let s=(t=r.parseValue)!==null&&t!==void 0?t:Lp.identityFunc;this.name=(0,mr.assertName)(r.name),this.description=r.description,this.specifiedByURL=r.specifiedByURL,this.serialize=(n=r.serialize)!==null&&n!==void 0?n:Lp.identityFunc,this.parseValue=s,this.parseLiteral=(i=r.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s((0,xT.valueFromASTUntyped)(a,u)),this.extensions=(0,fr.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(o=r.extensionASTNodes)!==null&&o!==void 0?o:[],r.specifiedByURL==null||typeof r.specifiedByURL=="string"||(0,Ee.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Z.inspect)(r.specifiedByURL)}.`),r.serialize==null||typeof r.serialize=="function"||(0,Ee.devAssert)(!1,`${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.`),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,Ee.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){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:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};A.GraphQLScalarType=Pi;var wi=class{constructor(r){var t;this.name=(0,mr.assertName)(r.name),this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=(0,fr.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(t=r.extensionASTNodes)!==null&&t!==void 0?t:[],this._fields=()=>Fp(r),this._interfaces=()=>kp(r),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,Ee.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Z.inspect)(r.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qp(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};A.GraphQLObjectType=wi;function kp(e){var r;let t=qs((r=e.interfaces)!==null&&r!==void 0?r:[]);return Array.isArray(t)||(0,Ee.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),t}function Fp(e){let r=Ms(e.fields);return jt(r)||(0,Ee.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Ci.mapValue)(r,(t,n)=>{var i;jt(t)||(0,Ee.devAssert)(!1,`${e.name}.${n} field config must be an object.`),t.resolve==null||typeof t.resolve=="function"||(0,Ee.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,Z.inspect)(t.resolve)}.`);let o=(i=t.args)!==null&&i!==void 0?i:{};return jt(o)||(0,Ee.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,mr.assertName)(n),description:t.description,type:t.type,args:Cp(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,fr.toObjMap)(t.extensions),astNode:t.astNode}})}function Cp(e){return Object.entries(e).map(([r,t])=>({name:(0,mr.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,fr.toObjMap)(t.extensions),astNode:t.astNode}))}function jt(e){return(0,RT.isObjectLike)(e)&&!Array.isArray(e)}function qp(e){return(0,Ci.mapValue)(e,r=>({description:r.description,type:r.type,args:Mp(r.args),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function Mp(e){return(0,Rp.keyValMap)(e,r=>r.name,r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function eb(e){return Yr(e.type)&&e.defaultValue===void 0}var ji=class{constructor(r){var t;this.name=(0,mr.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,fr.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(t=r.extensionASTNodes)!==null&&t!==void 0?t:[],this._fields=Fp.bind(void 0,r),this._interfaces=kp.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,Ee.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qp(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};A.GraphQLInterfaceType=ji;var xi=class{constructor(r){var t;this.name=(0,mr.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,fr.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(t=r.extensionASTNodes)!==null&&t!==void 0?t:[],this._types=rb.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,Ee.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};A.GraphQLUnionType=xi;function rb(e){let r=qs(e.types);return Array.isArray(r)||(0,Ee.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),r}var ki=class{constructor(r){var t;this.name=(0,mr.assertName)(r.name),this.description=r.description,this.extensions=(0,fr.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(t=r.extensionASTNodes)!==null&&t!==void 0?t:[],this._values=typeof r.values=="function"?r.values:Ap(this.name,r.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Ap(this.name,this._values())),this._values}getValue(r){return this._nameLookup===null&&(this._nameLookup=(0,PT.keyMap)(this.getValues(),t=>t.name)),this._nameLookup[r]}serialize(r){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));let t=this._valueLookup.get(r);if(t===void 0)throw new fn.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Z.inspect)(r)}`);return t.name}parseValue(r){if(typeof r!="string"){let n=(0,Z.inspect)(r);throw new fn.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${n}.`+Di(this,n))}let t=this.getValue(r);if(t==null)throw new fn.GraphQLError(`Value "${r}" does not exist in "${this.name}" enum.`+Di(this,r));return t.value}parseLiteral(r,t){if(r.kind!==jT.Kind.ENUM){let i=(0,Dp.print)(r);throw new fn.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Di(this,i),{nodes:r})}let n=this.getValue(r.value);if(n==null){let i=(0,Dp.print)(r);throw new fn.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+Di(this,i),{nodes:r})}return n.value}toConfig(){let r=(0,Rp.keyValMap)(this.getValues(),t=>t.name,t=>({description:t.description,value:t.value,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,values:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};A.GraphQLEnumType=ki;function Di(e,r){let t=e.getValues().map(i=>i.name),n=(0,wT.suggestionList)(r,t);return(0,AT.didYouMean)("the enum value",n)}function Ap(e,r){return jt(r)||(0,Ee.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(r).map(([t,n])=>(jt(n)||(0,Ee.devAssert)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,Z.inspect)(n)}.`),{name:(0,mr.assertEnumValueName)(t),description:n.description,value:n.value!==void 0?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,fr.toObjMap)(n.extensions),astNode:n.astNode}))}var Fi=class{constructor(r){var t,n;this.name=(0,mr.assertName)(r.name),this.description=r.description,this.extensions=(0,fr.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(t=r.extensionASTNodes)!==null&&t!==void 0?t:[],this.isOneOf=(n=r.isOneOf)!==null&&n!==void 0?n:!1,this._fields=tb.bind(void 0,r)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let r=(0,Ci.mapValue)(this.getFields(),t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,fields:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};A.GraphQLInputObjectType=Fi;function tb(e){let r=Ms(e.fields);return jt(r)||(0,Ee.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Ci.mapValue)(r,(t,n)=>(!("resolve"in t)||(0,Ee.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,mr.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,fr.toObjMap)(t.extensions),astNode:t.astNode}))}function nb(e){return Yr(e.type)&&e.defaultValue===void 0}});var vn=y(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.doTypesOverlap=ib;yn.isEqualType=Gs;yn.isTypeSubTypeOf=Gi;var Se=Q();function Gs(e,r){return e===r?!0:(0,Se.isNonNullType)(e)&&(0,Se.isNonNullType)(r)||(0,Se.isListType)(e)&&(0,Se.isListType)(r)?Gs(e.ofType,r.ofType):!1}function Gi(e,r,t){return r===t?!0:(0,Se.isNonNullType)(t)?(0,Se.isNonNullType)(r)?Gi(e,r.ofType,t.ofType):!1:(0,Se.isNonNullType)(r)?Gi(e,r.ofType,t):(0,Se.isListType)(t)?(0,Se.isListType)(r)?Gi(e,r.ofType,t.ofType):!1:(0,Se.isListType)(r)?!1:(0,Se.isAbstractType)(t)&&((0,Se.isInterfaceType)(r)||(0,Se.isObjectType)(r))&&e.isSubType(t,r)}function ib(e,r,t){return r===t?!0:(0,Se.isAbstractType)(r)?(0,Se.isAbstractType)(t)?e.getPossibleTypes(r).some(n=>e.isSubType(t,n)):e.isSubType(r,t):(0,Se.isAbstractType)(t)?e.isSubType(t,r):!1}});var hr=y(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.GraphQLString=ye.GraphQLInt=ye.GraphQLID=ye.GraphQLFloat=ye.GraphQLBoolean=ye.GRAPHQL_MIN_INT=ye.GRAPHQL_MAX_INT=void 0;ye.isSpecifiedScalarType=ob;ye.specifiedScalarTypes=void 0;var Ze=J(),Gp=dr(),_e=w(),ct=$(),gn=ke(),Tn=Q(),Vi=2147483647;ye.GRAPHQL_MAX_INT=Vi;var $i=-2147483648;ye.GRAPHQL_MIN_INT=$i;var Vp=new Tn.GraphQLScalarType({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(e){let r=bn(e);if(typeof r=="boolean")return r?1:0;let t=r;if(typeof r=="string"&&r!==""&&(t=Number(r)),typeof t!="number"||!Number.isInteger(t))throw new _e.GraphQLError(`Int cannot represent non-integer value: ${(0,Ze.inspect)(r)}`);if(t>Vi||t<$i)throw new _e.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,Ze.inspect)(r));return t},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new _e.GraphQLError(`Int cannot represent non-integer value: ${(0,Ze.inspect)(e)}`);if(e>Vi||e<$i)throw new _e.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==ct.Kind.INT)throw new _e.GraphQLError(`Int cannot represent non-integer value: ${(0,gn.print)(e)}`,{nodes:e});let r=parseInt(e.value,10);if(r>Vi||r<$i)throw new _e.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return r}});ye.GraphQLInt=Vp;var $p=new Tn.GraphQLScalarType({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(e){let r=bn(e);if(typeof r=="boolean")return r?1:0;let t=r;if(typeof r=="string"&&r!==""&&(t=Number(r)),typeof t!="number"||!Number.isFinite(t))throw new _e.GraphQLError(`Float cannot represent non numeric value: ${(0,Ze.inspect)(r)}`);return t},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new _e.GraphQLError(`Float cannot represent non numeric value: ${(0,Ze.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==ct.Kind.FLOAT&&e.kind!==ct.Kind.INT)throw new _e.GraphQLError(`Float cannot represent non numeric value: ${(0,gn.print)(e)}`,e);return parseFloat(e.value)}});ye.GraphQLFloat=$p;var Qp=new Tn.GraphQLScalarType({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(e){let r=bn(e);if(typeof r=="string")return r;if(typeof r=="boolean")return r?"true":"false";if(typeof r=="number"&&Number.isFinite(r))return r.toString();throw new _e.GraphQLError(`String cannot represent value: ${(0,Ze.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new _e.GraphQLError(`String cannot represent a non string value: ${(0,Ze.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==ct.Kind.STRING)throw new _e.GraphQLError(`String cannot represent a non string value: ${(0,gn.print)(e)}`,{nodes:e});return e.value}});ye.GraphQLString=Qp;var Up=new Tn.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let r=bn(e);if(typeof r=="boolean")return r;if(Number.isFinite(r))return r!==0;throw new _e.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Ze.inspect)(r)}`)},parseValue(e){if(typeof e!="boolean")throw new _e.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Ze.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==ct.Kind.BOOLEAN)throw new _e.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,gn.print)(e)}`,{nodes:e});return e.value}});ye.GraphQLBoolean=Up;var Kp=new Tn.GraphQLScalarType({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(e){let r=bn(e);if(typeof r=="string")return r;if(Number.isInteger(r))return String(r);throw new _e.GraphQLError(`ID cannot represent value: ${(0,Ze.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new _e.GraphQLError(`ID cannot represent value: ${(0,Ze.inspect)(e)}`)},parseLiteral(e){if(e.kind!==ct.Kind.STRING&&e.kind!==ct.Kind.INT)throw new _e.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,gn.print)(e),{nodes:e});return e.value}});ye.GraphQLID=Kp;var Bp=Object.freeze([Qp,Vp,$p,Up,Kp]);ye.specifiedScalarTypes=Bp;function ob(e){return Bp.some(({name:r})=>e.name===r)}function bn(e){if((0,Gp.isObjectLike)(e)){if(typeof e.valueOf=="function"){let r=e.valueOf();if(!(0,Gp.isObjectLike)(r))return r}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var we=y(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.GraphQLSpecifiedByDirective=de.GraphQLSkipDirective=de.GraphQLOneOfDirective=de.GraphQLIncludeDirective=de.GraphQLDirective=de.GraphQLDeprecatedDirective=de.DEFAULT_DEPRECATION_REASON=void 0;de.assertDirective=pb;de.isDirective=Hp;de.isSpecifiedDirective=db;de.specifiedDirectives=void 0;var Yp=Ae(),sb=J(),ab=an(),ub=dr(),cb=Oi(),Ge=At(),lb=dn(),En=Q(),Qi=hr();function Hp(e){return(0,ab.instanceOf)(e,Sr)}function pb(e){if(!Hp(e))throw new Error(`Expected ${(0,sb.inspect)(e)} to be a GraphQL directive.`);return e}var Sr=class{constructor(r){var t,n;this.name=(0,lb.assertName)(r.name),this.description=r.description,this.locations=r.locations,this.isRepeatable=(t=r.isRepeatable)!==null&&t!==void 0?t:!1,this.extensions=(0,cb.toObjMap)(r.extensions),this.astNode=r.astNode,Array.isArray(r.locations)||(0,Yp.devAssert)(!1,`@${r.name} locations must be an Array.`);let i=(n=r.args)!==null&&n!==void 0?n:{};(0,ub.isObjectLike)(i)&&!Array.isArray(i)||(0,Yp.devAssert)(!1,`@${r.name} args must be an object with argument names as keys.`),this.args=(0,En.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,En.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};de.GraphQLDirective=Sr;var Wp=new Sr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ge.DirectiveLocation.FIELD,Ge.DirectiveLocation.FRAGMENT_SPREAD,Ge.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new En.GraphQLNonNull(Qi.GraphQLBoolean),description:"Included when true."}}});de.GraphQLIncludeDirective=Wp;var Jp=new Sr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ge.DirectiveLocation.FIELD,Ge.DirectiveLocation.FRAGMENT_SPREAD,Ge.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new En.GraphQLNonNull(Qi.GraphQLBoolean),description:"Skipped when true."}}});de.GraphQLSkipDirective=Jp;var Xp="No longer supported";de.DEFAULT_DEPRECATION_REASON=Xp;var zp=new Sr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ge.DirectiveLocation.FIELD_DEFINITION,Ge.DirectiveLocation.ARGUMENT_DEFINITION,Ge.DirectiveLocation.INPUT_FIELD_DEFINITION,Ge.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Qi.GraphQLString,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:Xp}}});de.GraphQLDeprecatedDirective=zp;var Zp=new Sr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ge.DirectiveLocation.SCALAR],args:{url:{type:new En.GraphQLNonNull(Qi.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});de.GraphQLSpecifiedByDirective=Zp;var ed=new Sr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ge.DirectiveLocation.INPUT_OBJECT],args:{}});de.GraphQLOneOfDirective=ed;var rd=Object.freeze([Wp,Jp,zp,Zp,ed]);de.specifiedDirectives=rd;function db(e){return rd.some(({name:r})=>r===e.name)}});var Ui=y(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.isIterableObject=fb;function fb(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var Nn=y($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.astFromValue=On;var td=J(),mb=Ie(),hb=Ui(),yb=dr(),Ve=$(),_n=Q(),vb=hr();function On(e,r){if((0,_n.isNonNullType)(r)){let t=On(e,r.ofType);return t?.kind===Ve.Kind.NULL?null:t}if(e===null)return{kind:Ve.Kind.NULL};if(e===void 0)return null;if((0,_n.isListType)(r)){let t=r.ofType;if((0,hb.isIterableObject)(e)){let n=[];for(let i of e){let o=On(i,t);o!=null&&n.push(o)}return{kind:Ve.Kind.LIST,values:n}}return On(e,t)}if((0,_n.isInputObjectType)(r)){if(!(0,yb.isObjectLike)(e))return null;let t=[];for(let n of Object.values(r.getFields())){let i=On(e[n.name],n.type);i&&t.push({kind:Ve.Kind.OBJECT_FIELD,name:{kind:Ve.Kind.NAME,value:n.name},value:i})}return{kind:Ve.Kind.OBJECT,fields:t}}if((0,_n.isLeafType)(r)){let t=r.serialize(e);if(t==null)return null;if(typeof t=="boolean")return{kind:Ve.Kind.BOOLEAN,value:t};if(typeof t=="number"&&Number.isFinite(t)){let n=String(t);return nd.test(n)?{kind:Ve.Kind.INT,value:n}:{kind:Ve.Kind.FLOAT,value:n}}if(typeof t=="string")return(0,_n.isEnumType)(r)?{kind:Ve.Kind.ENUM,value:t}:r===vb.GraphQLID&&nd.test(t)?{kind:Ve.Kind.INT,value:t}:{kind:Ve.Kind.STRING,value:t};throw new TypeError(`Cannot convert value to AST: ${(0,td.inspect)(t)}.`)}(0,mb.invariant)(!1,"Unexpected input type: "+(0,td.inspect)(r))}var nd=/^-?(?:0|[1-9][0-9]*)$/});var Qe=y(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.introspectionTypes=X.__TypeKind=X.__Type=X.__Schema=X.__InputValue=X.__Field=X.__EnumValue=X.__DirectiveLocation=X.__Directive=X.TypeNameMetaFieldDef=X.TypeMetaFieldDef=X.TypeKind=X.SchemaMetaFieldDef=void 0;X.isIntrospectionType=Ib;var gb=J(),Tb=Ie(),ve=At(),bb=ke(),Eb=Nn(),S=Q(),z=hr(),Qs=new S.GraphQLObjectType({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:()=>({description:{type:z.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new S.GraphQLNonNull(new S.GraphQLList(new S.GraphQLNonNull($e))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new S.GraphQLNonNull($e),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:$e,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:$e,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new S.GraphQLNonNull(new S.GraphQLList(new S.GraphQLNonNull(Us))),resolve:e=>e.getDirectives()}})});X.__Schema=Qs;var Us=new S.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
54
|
+
}`)}function Q(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Su(e){return Q(" ",e.replace(/\n/g,`
|
|
55
|
+
`))}function Lg(e){var t;return(t=e?.some(n=>n.includes(`
|
|
56
|
+
`)))!==null&&t!==void 0?t:!1}});var Fg=y(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});Cg.valueFromASTUntyped=Rg;var fj=Io(),lr=ee();function Rg(e,t){switch(e.kind){case lr.Kind.NULL:return null;case lr.Kind.INT:return parseInt(e.value,10);case lr.Kind.FLOAT:return parseFloat(e.value);case lr.Kind.STRING:case lr.Kind.ENUM:case lr.Kind.BOOLEAN:return e.value;case lr.Kind.LIST:return e.values.map(n=>Rg(n,t));case lr.Kind.OBJECT:return(0,fj.keyValMap)(e.fields,n=>n.name.value,n=>Rg(n.value,t));case lr.Kind.VARIABLE:return t?.[e.name.value]}}});var No=y(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.assertEnumValueName=mj;ku.assertName=T$;var b$=Xe(),Nu=U(),_$=ho();function T$(e){if(e!=null||(0,b$.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,b$.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Nu.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,_$.isNameContinue)(e.charCodeAt(t)))throw new Nu.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,_$.isNameStart)(e.charCodeAt(0)))throw new Nu.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function mj(e){if(e==="true"||e==="false"||e==="null")throw new Nu.GraphQLError(`Enum values cannot be named: ${e}`);return T$(e)}});var te=y(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.GraphQLUnionType=C.GraphQLScalarType=C.GraphQLObjectType=C.GraphQLNonNull=C.GraphQLList=C.GraphQLInterfaceType=C.GraphQLInputObjectType=C.GraphQLEnumType=void 0;C.argsToArgsConfig=L$;C.assertAbstractType=Lj;C.assertCompositeType=jj;C.assertEnumType=Ij;C.assertInputObjectType=Sj;C.assertInputType=wj;C.assertInterfaceType=xj;C.assertLeafType=Pj;C.assertListType=Nj;C.assertNamedType=Fj;C.assertNonNullType=kj;C.assertNullableType=Rj;C.assertObjectType=Ej;C.assertOutputType=Dj;C.assertScalarType=$j;C.assertType=Tj;C.assertUnionType=Oj;C.assertWrappingType=Aj;C.defineArguments=P$;C.getNamedType=zj;C.getNullableType=Cj;C.isAbstractType=N$;C.isCompositeType=S$;C.isEnumType=fn;C.isInputObjectType=wo;C.isInputType=zg;C.isInterfaceType=dn;C.isLeafType=I$;C.isListType=Mu;C.isNamedType=k$;C.isNonNullType=qr;C.isNullableType=Mg;C.isObjectType=vi;C.isOutputType=Ug;C.isRequiredArgument=Uj;C.isRequiredInputField=Vj;C.isScalarType=ln;C.isType=Uu;C.isUnionType=pn;C.isWrappingType=Do;C.resolveObjMapThunk=Vg;C.resolveReadonlyArrayThunk=qg;var Fe=Xe(),gj=Cr(),$$=g$(),me=se(),Mr=Eo(),vj=Zt(),hj=Fr(),O$=Io(),zu=Ig(),yj=zr(),Bt=Ou(),ko=U(),bj=ee(),E$=ct(),_j=Fg(),Jt=No();function Uu(e){return ln(e)||vi(e)||dn(e)||pn(e)||fn(e)||wo(e)||Mu(e)||qr(e)}function Tj(e){if(!Uu(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL type.`);return e}function ln(e){return(0,Mr.instanceOf)(e,ju)}function $j(e){if(!ln(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL Scalar type.`);return e}function vi(e){return(0,Mr.instanceOf)(e,Lu)}function Ej(e){if(!vi(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL Object type.`);return e}function dn(e){return(0,Mr.instanceOf)(e,Au)}function xj(e){if(!dn(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL Interface type.`);return e}function pn(e){return(0,Mr.instanceOf)(e,Ru)}function Oj(e){if(!pn(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL Union type.`);return e}function fn(e){return(0,Mr.instanceOf)(e,Cu)}function Ij(e){if(!fn(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL Enum type.`);return e}function wo(e){return(0,Mr.instanceOf)(e,Fu)}function Sj(e){if(!wo(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL Input Object type.`);return e}function Mu(e){return(0,Mr.instanceOf)(e,Du)}function Nj(e){if(!Mu(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL List type.`);return e}function qr(e){return(0,Mr.instanceOf)(e,Pu)}function kj(e){if(!qr(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function zg(e){return ln(e)||fn(e)||wo(e)||Do(e)&&zg(e.ofType)}function wj(e){if(!zg(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL input type.`);return e}function Ug(e){return ln(e)||vi(e)||dn(e)||pn(e)||fn(e)||Do(e)&&Ug(e.ofType)}function Dj(e){if(!Ug(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL output type.`);return e}function I$(e){return ln(e)||fn(e)}function Pj(e){if(!I$(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL leaf type.`);return e}function S$(e){return vi(e)||dn(e)||pn(e)}function jj(e){if(!S$(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL composite type.`);return e}function N$(e){return dn(e)||pn(e)}function Lj(e){if(!N$(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL abstract type.`);return e}var Du=class{constructor(t){Uu(t)||(0,Fe.devAssert)(!1,`Expected ${(0,me.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};C.GraphQLList=Du;var Pu=class{constructor(t){Mg(t)||(0,Fe.devAssert)(!1,`Expected ${(0,me.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};C.GraphQLNonNull=Pu;function Do(e){return Mu(e)||qr(e)}function Aj(e){if(!Do(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL wrapping type.`);return e}function Mg(e){return Uu(e)&&!qr(e)}function Rj(e){if(!Mg(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL nullable type.`);return e}function Cj(e){if(e)return qr(e)?e.ofType:e}function k$(e){return ln(e)||vi(e)||dn(e)||pn(e)||fn(e)||wo(e)}function Fj(e){if(!k$(e))throw new Error(`Expected ${(0,me.inspect)(e)} to be a GraphQL named type.`);return e}function zj(e){if(e){let t=e;for(;Do(t);)t=t.ofType;return t}}function qg(e){return typeof e=="function"?e():e}function Vg(e){return typeof e=="function"?e():e}var ju=class{constructor(t){var n,i,r,o;let a=(n=t.parseValue)!==null&&n!==void 0?n:$$.identityFunc;this.name=(0,Jt.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:$$.identityFunc,this.parseValue=a,this.parseLiteral=(r=t.parseLiteral)!==null&&r!==void 0?r:(s,u)=>a((0,_j.valueFromASTUntyped)(s,u)),this.extensions=(0,Bt.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,Fe.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,me.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,Fe.devAssert)(!1,`${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"||(0,Fe.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){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:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};C.GraphQLScalarType=ju;var Lu=class{constructor(t){var n;this.name=(0,Jt.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Bt.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>D$(t),this._interfaces=()=>w$(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,Fe.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,me.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:j$(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};C.GraphQLObjectType=Lu;function w$(e){var t;let n=qg((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,Fe.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function D$(e){let t=Vg(e.fields);return gi(t)||(0,Fe.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,zu.mapValue)(t,(n,i)=>{var r;gi(n)||(0,Fe.devAssert)(!1,`${e.name}.${i} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,Fe.devAssert)(!1,`${e.name}.${i} field resolver must be a function if provided, but got: ${(0,me.inspect)(n.resolve)}.`);let o=(r=n.args)!==null&&r!==void 0?r:{};return gi(o)||(0,Fe.devAssert)(!1,`${e.name}.${i} args must be an object with argument names as keys.`),{name:(0,Jt.assertName)(i),description:n.description,type:n.type,args:P$(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Bt.toObjMap)(n.extensions),astNode:n.astNode}})}function P$(e){return Object.entries(e).map(([t,n])=>({name:(0,Jt.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Bt.toObjMap)(n.extensions),astNode:n.astNode}))}function gi(e){return(0,vj.isObjectLike)(e)&&!Array.isArray(e)}function j$(e){return(0,zu.mapValue)(e,t=>({description:t.description,type:t.type,args:L$(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function L$(e){return(0,O$.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Uj(e){return qr(e.type)&&e.defaultValue===void 0}var Au=class{constructor(t){var n;this.name=(0,Jt.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Bt.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=D$.bind(void 0,t),this._interfaces=w$.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Fe.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,me.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:j$(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};C.GraphQLInterfaceType=Au;var Ru=class{constructor(t){var n;this.name=(0,Jt.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Bt.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=Mj.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Fe.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,me.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};C.GraphQLUnionType=Ru;function Mj(e){let t=qg(e.types);return Array.isArray(t)||(0,Fe.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var Cu=class{constructor(t){var n;this.name=(0,Jt.assertName)(t.name),this.description=t.description,this.extensions=(0,Bt.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:x$(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=x$(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,hj.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(i=>[i.value,i])));let n=this._valueLookup.get(t);if(n===void 0)throw new ko.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,me.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let i=(0,me.inspect)(t);throw new ko.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${i}.`+wu(this,i))}let n=this.getValue(t);if(n==null)throw new ko.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+wu(this,t));return n.value}parseLiteral(t,n){if(t.kind!==bj.Kind.ENUM){let r=(0,E$.print)(t);throw new ko.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${r}.`+wu(this,r),{nodes:t})}let i=this.getValue(t.value);if(i==null){let r=(0,E$.print)(t);throw new ko.GraphQLError(`Value "${r}" does not exist in "${this.name}" enum.`+wu(this,r),{nodes:t})}return i.value}toConfig(){let t=(0,O$.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};C.GraphQLEnumType=Cu;function wu(e,t){let n=e.getValues().map(r=>r.name),i=(0,yj.suggestionList)(t,n);return(0,gj.didYouMean)("the enum value",i)}function x$(e,t){return gi(t)||(0,Fe.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,i])=>(gi(i)||(0,Fe.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,me.inspect)(i)}.`),{name:(0,Jt.assertEnumValueName)(n),description:i.description,value:i.value!==void 0?i.value:n,deprecationReason:i.deprecationReason,extensions:(0,Bt.toObjMap)(i.extensions),astNode:i.astNode}))}var Fu=class{constructor(t){var n,i;this.name=(0,Jt.assertName)(t.name),this.description=t.description,this.extensions=(0,Bt.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(i=t.isOneOf)!==null&&i!==void 0?i:!1,this._fields=qj.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,zu.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};C.GraphQLInputObjectType=Fu;function qj(e){let t=Vg(e.fields);return gi(t)||(0,Fe.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,zu.mapValue)(t,(n,i)=>(!("resolve"in n)||(0,Fe.devAssert)(!1,`${e.name}.${i} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Jt.assertName)(i),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Bt.toObjMap)(n.extensions),astNode:n.astNode}))}function Vj(e){return qr(e.type)&&e.defaultValue===void 0}});var jo=y(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.doTypesOverlap=Gj;Po.isEqualType=Gg;Po.isTypeSubTypeOf=qu;var Ke=te();function Gg(e,t){return e===t?!0:(0,Ke.isNonNullType)(e)&&(0,Ke.isNonNullType)(t)||(0,Ke.isListType)(e)&&(0,Ke.isListType)(t)?Gg(e.ofType,t.ofType):!1}function qu(e,t,n){return t===n?!0:(0,Ke.isNonNullType)(n)?(0,Ke.isNonNullType)(t)?qu(e,t.ofType,n.ofType):!1:(0,Ke.isNonNullType)(t)?qu(e,t.ofType,n):(0,Ke.isListType)(n)?(0,Ke.isListType)(t)?qu(e,t.ofType,n.ofType):!1:(0,Ke.isListType)(t)?!1:(0,Ke.isAbstractType)(n)&&((0,Ke.isInterfaceType)(t)||(0,Ke.isObjectType)(t))&&e.isSubType(n,t)}function Gj(e,t,n){return t===n?!0:(0,Ke.isAbstractType)(t)?(0,Ke.isAbstractType)(n)?e.getPossibleTypes(t).some(i=>e.isSubType(n,i)):e.isSubType(t,n):(0,Ke.isAbstractType)(n)?e.isSubType(n,t):!1}});var Yt=y(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.GraphQLString=Le.GraphQLInt=Le.GraphQLID=Le.GraphQLFloat=Le.GraphQLBoolean=Le.GRAPHQL_MIN_INT=Le.GRAPHQL_MAX_INT=void 0;Le.isSpecifiedScalarType=Kj;Le.specifiedScalarTypes=void 0;var Pt=se(),A$=Zt(),ze=U(),mn=ee(),Lo=ct(),Ao=te(),Vu=2147483647;Le.GRAPHQL_MAX_INT=Vu;var Gu=-2147483648;Le.GRAPHQL_MIN_INT=Gu;var R$=new Ao.GraphQLScalarType({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(e){let t=Ro(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new ze.GraphQLError(`Int cannot represent non-integer value: ${(0,Pt.inspect)(t)}`);if(n>Vu||n<Gu)throw new ze.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,Pt.inspect)(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new ze.GraphQLError(`Int cannot represent non-integer value: ${(0,Pt.inspect)(e)}`);if(e>Vu||e<Gu)throw new ze.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==mn.Kind.INT)throw new ze.GraphQLError(`Int cannot represent non-integer value: ${(0,Lo.print)(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>Vu||t<Gu)throw new ze.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});Le.GraphQLInt=R$;var C$=new Ao.GraphQLScalarType({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(e){let t=Ro(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new ze.GraphQLError(`Float cannot represent non numeric value: ${(0,Pt.inspect)(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new ze.GraphQLError(`Float cannot represent non numeric value: ${(0,Pt.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==mn.Kind.FLOAT&&e.kind!==mn.Kind.INT)throw new ze.GraphQLError(`Float cannot represent non numeric value: ${(0,Lo.print)(e)}`,e);return parseFloat(e.value)}});Le.GraphQLFloat=C$;var F$=new Ao.GraphQLScalarType({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(e){let t=Ro(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new ze.GraphQLError(`String cannot represent value: ${(0,Pt.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new ze.GraphQLError(`String cannot represent a non string value: ${(0,Pt.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==mn.Kind.STRING)throw new ze.GraphQLError(`String cannot represent a non string value: ${(0,Lo.print)(e)}`,{nodes:e});return e.value}});Le.GraphQLString=F$;var z$=new Ao.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=Ro(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new ze.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Pt.inspect)(t)}`)},parseValue(e){if(typeof e!="boolean")throw new ze.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Pt.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==mn.Kind.BOOLEAN)throw new ze.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Lo.print)(e)}`,{nodes:e});return e.value}});Le.GraphQLBoolean=z$;var U$=new Ao.GraphQLScalarType({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(e){let t=Ro(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new ze.GraphQLError(`ID cannot represent value: ${(0,Pt.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new ze.GraphQLError(`ID cannot represent value: ${(0,Pt.inspect)(e)}`)},parseLiteral(e){if(e.kind!==mn.Kind.STRING&&e.kind!==mn.Kind.INT)throw new ze.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,Lo.print)(e),{nodes:e});return e.value}});Le.GraphQLID=U$;var M$=Object.freeze([F$,R$,C$,z$,U$]);Le.specifiedScalarTypes=M$;function Kj(e){return M$.some(({name:t})=>e.name===t)}function Ro(e){if((0,A$.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,A$.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var it=y(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.GraphQLSpecifiedByDirective=ke.GraphQLSkipDirective=ke.GraphQLOneOfDirective=ke.GraphQLIncludeDirective=ke.GraphQLDirective=ke.GraphQLDeprecatedDirective=ke.DEFAULT_DEPRECATION_REASON=void 0;ke.assertDirective=Wj;ke.isDirective=V$;ke.isSpecifiedDirective=Xj;ke.specifiedDirectives=void 0;var q$=Xe(),Qj=se(),Zj=Eo(),Bj=Zt(),Jj=Ou(),ht=di(),Yj=No(),Co=te(),Ku=Yt();function V$(e){return(0,Zj.instanceOf)(e,dr)}function Wj(e){if(!V$(e))throw new Error(`Expected ${(0,Qj.inspect)(e)} to be a GraphQL directive.`);return e}var dr=class{constructor(t){var n,i;this.name=(0,Yj.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,Jj.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,q$.devAssert)(!1,`@${t.name} locations must be an Array.`);let r=(i=t.args)!==null&&i!==void 0?i:{};(0,Bj.isObjectLike)(r)&&!Array.isArray(r)||(0,q$.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,Co.defineArguments)(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Co.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};ke.GraphQLDirective=dr;var G$=new dr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ht.DirectiveLocation.FIELD,ht.DirectiveLocation.FRAGMENT_SPREAD,ht.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Co.GraphQLNonNull(Ku.GraphQLBoolean),description:"Included when true."}}});ke.GraphQLIncludeDirective=G$;var K$=new dr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ht.DirectiveLocation.FIELD,ht.DirectiveLocation.FRAGMENT_SPREAD,ht.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Co.GraphQLNonNull(Ku.GraphQLBoolean),description:"Skipped when true."}}});ke.GraphQLSkipDirective=K$;var Q$="No longer supported";ke.DEFAULT_DEPRECATION_REASON=Q$;var Z$=new dr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ht.DirectiveLocation.FIELD_DEFINITION,ht.DirectiveLocation.ARGUMENT_DEFINITION,ht.DirectiveLocation.INPUT_FIELD_DEFINITION,ht.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Ku.GraphQLString,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:Q$}}});ke.GraphQLDeprecatedDirective=Z$;var B$=new dr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[ht.DirectiveLocation.SCALAR],args:{url:{type:new Co.GraphQLNonNull(Ku.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});ke.GraphQLSpecifiedByDirective=B$;var J$=new dr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[ht.DirectiveLocation.INPUT_OBJECT],args:{}});ke.GraphQLOneOfDirective=J$;var Y$=Object.freeze([G$,K$,Z$,B$,J$]);ke.specifiedDirectives=Y$;function Xj(e){return Y$.some(({name:t})=>t===e.name)}});var Qu=y(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.isIterableObject=Hj;function Hj(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var Uo=y(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});Qg.astFromValue=zo;var W$=se(),eL=Ge(),tL=Qu(),rL=Zt(),yt=ee(),Fo=te(),nL=Yt();function zo(e,t){if((0,Fo.isNonNullType)(t)){let n=zo(e,t.ofType);return n?.kind===yt.Kind.NULL?null:n}if(e===null)return{kind:yt.Kind.NULL};if(e===void 0)return null;if((0,Fo.isListType)(t)){let n=t.ofType;if((0,tL.isIterableObject)(e)){let i=[];for(let r of e){let o=zo(r,n);o!=null&&i.push(o)}return{kind:yt.Kind.LIST,values:i}}return zo(e,n)}if((0,Fo.isInputObjectType)(t)){if(!(0,rL.isObjectLike)(e))return null;let n=[];for(let i of Object.values(t.getFields())){let r=zo(e[i.name],i.type);r&&n.push({kind:yt.Kind.OBJECT_FIELD,name:{kind:yt.Kind.NAME,value:i.name},value:r})}return{kind:yt.Kind.OBJECT,fields:n}}if((0,Fo.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:yt.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let i=String(n);return X$.test(i)?{kind:yt.Kind.INT,value:i}:{kind:yt.Kind.FLOAT,value:i}}if(typeof n=="string")return(0,Fo.isEnumType)(t)?{kind:yt.Kind.ENUM,value:n}:t===nL.GraphQLID&&X$.test(n)?{kind:yt.Kind.INT,value:n}:{kind:yt.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,W$.inspect)(n)}.`)}(0,eL.invariant)(!1,"Unexpected input type: "+(0,W$.inspect)(t))}var X$=/^-?(?:0|[1-9][0-9]*)$/});var _t=y(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.introspectionTypes=ce.__TypeKind=ce.__Type=ce.__Schema=ce.__InputValue=ce.__Field=ce.__EnumValue=ce.__DirectiveLocation=ce.__Directive=ce.TypeNameMetaFieldDef=ce.TypeMetaFieldDef=ce.TypeKind=ce.SchemaMetaFieldDef=void 0;ce.isIntrospectionType=dL;var iL=se(),oL=Ge(),Ae=di(),aL=ct(),sL=Uo(),L=te(),pe=Yt(),Zg=new L.GraphQLObjectType({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:()=>({description:{type:pe.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new L.GraphQLNonNull(new L.GraphQLList(new L.GraphQLNonNull(bt))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new L.GraphQLNonNull(bt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:bt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:bt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new L.GraphQLNonNull(new L.GraphQLList(new L.GraphQLNonNull(Bg))),resolve:e=>e.getDirectives()}})});ce.__Schema=Zg;var Bg=new L.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
57
57
|
|
|
58
|
-
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:()=>({name:{type:new S.GraphQLNonNull(z.GraphQLString),resolve:e=>e.name},description:{type:z.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new S.GraphQLNonNull(z.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new S.GraphQLNonNull(new S.GraphQLList(new S.GraphQLNonNull(Ks))),resolve:e=>e.locations},args:{type:new S.GraphQLNonNull(new S.GraphQLList(new S.GraphQLNonNull(In))),args:{includeDeprecated:{type:z.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(t=>t.deprecationReason==null)}}})});X.__Directive=Us;var Ks=new S.GraphQLEnumType({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:ve.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ve.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ve.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ve.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ve.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ve.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ve.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ve.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ve.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ve.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ve.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ve.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ve.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ve.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ve.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ve.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ve.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ve.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ve.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});X.__DirectiveLocation=Ks;var $e=new S.GraphQLObjectType({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:()=>({kind:{type:new S.GraphQLNonNull(Hs),resolve(e){if((0,S.isScalarType)(e))return ge.SCALAR;if((0,S.isObjectType)(e))return ge.OBJECT;if((0,S.isInterfaceType)(e))return ge.INTERFACE;if((0,S.isUnionType)(e))return ge.UNION;if((0,S.isEnumType)(e))return ge.ENUM;if((0,S.isInputObjectType)(e))return ge.INPUT_OBJECT;if((0,S.isListType)(e))return ge.LIST;if((0,S.isNonNullType)(e))return ge.NON_NULL;(0,Tb.invariant)(!1,`Unexpected type: "${(0,gb.inspect)(e)}".`)}},name:{type:z.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:z.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:z.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new S.GraphQLList(new S.GraphQLNonNull(Bs)),args:{includeDeprecated:{type:z.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,S.isObjectType)(e)||(0,S.isInterfaceType)(e)){let t=Object.values(e.getFields());return r?t:t.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new S.GraphQLList(new S.GraphQLNonNull($e)),resolve(e){if((0,S.isObjectType)(e)||(0,S.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new S.GraphQLList(new S.GraphQLNonNull($e)),resolve(e,r,t,{schema:n}){if((0,S.isAbstractType)(e))return n.getPossibleTypes(e)}},enumValues:{type:new S.GraphQLList(new S.GraphQLNonNull(Ys)),args:{includeDeprecated:{type:z.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,S.isEnumType)(e)){let t=e.getValues();return r?t:t.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new S.GraphQLList(new S.GraphQLNonNull(In)),args:{includeDeprecated:{type:z.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,S.isInputObjectType)(e)){let t=Object.values(e.getFields());return r?t:t.filter(n=>n.deprecationReason==null)}}},ofType:{type:$e,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:z.GraphQLBoolean,resolve:e=>{if((0,S.isInputObjectType)(e))return e.isOneOf}}})});X.__Type=$e;var Bs=new S.GraphQLObjectType({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:()=>({name:{type:new S.GraphQLNonNull(z.GraphQLString),resolve:e=>e.name},description:{type:z.GraphQLString,resolve:e=>e.description},args:{type:new S.GraphQLNonNull(new S.GraphQLList(new S.GraphQLNonNull(In))),args:{includeDeprecated:{type:z.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(t=>t.deprecationReason==null)}},type:{type:new S.GraphQLNonNull($e),resolve:e=>e.type},isDeprecated:{type:new S.GraphQLNonNull(z.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:z.GraphQLString,resolve:e=>e.deprecationReason}})});X.__Field=Bs;var In=new S.GraphQLObjectType({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:()=>({name:{type:new S.GraphQLNonNull(z.GraphQLString),resolve:e=>e.name},description:{type:z.GraphQLString,resolve:e=>e.description},type:{type:new S.GraphQLNonNull($e),resolve:e=>e.type},defaultValue:{type:z.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:r,defaultValue:t}=e,n=(0,Eb.astFromValue)(t,r);return n?(0,bb.print)(n):null}},isDeprecated:{type:new S.GraphQLNonNull(z.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:z.GraphQLString,resolve:e=>e.deprecationReason}})});X.__InputValue=In;var Ys=new S.GraphQLObjectType({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:()=>({name:{type:new S.GraphQLNonNull(z.GraphQLString),resolve:e=>e.name},description:{type:z.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new S.GraphQLNonNull(z.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:z.GraphQLString,resolve:e=>e.deprecationReason}})});X.__EnumValue=Ys;var ge;X.TypeKind=ge;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ge||(X.TypeKind=ge={}));var Hs=new S.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ge.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ge.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ge.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ge.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ge.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ge.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ge.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ge.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});X.__TypeKind=Hs;var _b={name:"__schema",type:new S.GraphQLNonNull(Qs),description:"Access the current type schema of this server.",args:[],resolve:(e,r,t,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};X.SchemaMetaFieldDef=_b;var Ob={name:"__type",type:$e,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new S.GraphQLNonNull(z.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:r},t,{schema:n})=>n.getType(r),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};X.TypeMetaFieldDef=Ob;var Nb={name:"__typename",type:new S.GraphQLNonNull(z.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,r,t,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};X.TypeNameMetaFieldDef=Nb;var id=Object.freeze([Qs,Us,Ks,$e,Bs,In,Ys,Hs]);X.introspectionTypes=id;function Ib(e){return id.some(({name:r})=>e.name===r)}});var lt=y(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.GraphQLSchema=void 0;kt.assertSchema=Rb;kt.isSchema=sd;var Ki=Ae(),Js=J(),Sb=an(),Lb=dr(),Db=Oi(),Ws=Je(),er=Q(),od=we(),Ab=Qe();function sd(e){return(0,Sb.instanceOf)(e,Bi)}function Rb(e){if(!sd(e))throw new Error(`Expected ${(0,Js.inspect)(e)} to be a GraphQL schema.`);return e}var Bi=class{constructor(r){var t,n;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,Lb.isObjectLike)(r)||(0,Ki.devAssert)(!1,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,Ki.devAssert)(!1,`"types" must be Array if provided but got: ${(0,Js.inspect)(r.types)}.`),!r.directives||Array.isArray(r.directives)||(0,Ki.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,Js.inspect)(r.directives)}.`),this.description=r.description,this.extensions=(0,Db.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(t=r.extensionASTNodes)!==null&&t!==void 0?t:[],this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(n=r.directives)!==null&&n!==void 0?n:od.specifiedDirectives;let i=new Set(r.types);if(r.types!=null)for(let o of r.types)i.delete(o),rr(o,i);this._queryType!=null&&rr(this._queryType,i),this._mutationType!=null&&rr(this._mutationType,i),this._subscriptionType!=null&&rr(this._subscriptionType,i);for(let o of this._directives)if((0,od.isDirective)(o))for(let s of o.args)rr(s.type,i);rr(Ab.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||(0,Ki.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,(0,er.isInterfaceType)(o)){for(let a of o.getInterfaces())if((0,er.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if((0,er.isObjectType)(o)){for(let a of o.getInterfaces())if((0,er.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(r){switch(r){case Ws.OperationTypeNode.QUERY:return this.getQueryType();case Ws.OperationTypeNode.MUTATION:return this.getMutationType();case Ws.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(r){return this.getTypeMap()[r]}getPossibleTypes(r){return(0,er.isUnionType)(r)?r.getTypes():this.getImplementations(r).objects}getImplementations(r){let t=this._implementationsMap[r.name];return t??{objects:[],interfaces:[]}}isSubType(r,t){let n=this._subTypeMap[r.name];if(n===void 0){if(n=Object.create(null),(0,er.isUnionType)(r))for(let i of r.getTypes())n[i.name]=!0;else{let i=this.getImplementations(r);for(let o of i.objects)n[o.name]=!0;for(let o of i.interfaces)n[o.name]=!0}this._subTypeMap[r.name]=n}return n[t.name]!==void 0}getDirectives(){return this._directives}getDirective(r){return this.getDirectives().find(t=>t.name===r)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};kt.GraphQLSchema=Bi;function rr(e,r){let t=(0,er.getNamedType)(e);if(!r.has(t)){if(r.add(t),(0,er.isUnionType)(t))for(let n of t.getTypes())rr(n,r);else if((0,er.isObjectType)(t)||(0,er.isInterfaceType)(t)){for(let n of t.getInterfaces())rr(n,r);for(let n of Object.values(t.getFields())){rr(n.type,r);for(let i of n.args)rr(i.type,r)}}else if((0,er.isInputObjectType)(t))for(let n of Object.values(t.getFields()))rr(n.type,r)}return r}});var Ln=y(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.assertValidSchema=xb;Yi.validateSchema=dd;var Le=J(),Pb=w(),Xs=Je(),ad=vn(),se=Q(),pd=we(),wb=Qe(),jb=lt();function dd(e){if((0,jb.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let r=new Zs(e);kb(r),Fb(r),Cb(r);let t=r.getErrors();return e.__validationErrors=t,t}function xb(e){let r=dd(e);if(r.length!==0)throw new Error(r.map(t=>t.message).join(`
|
|
58
|
+
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:()=>({name:{type:new L.GraphQLNonNull(pe.GraphQLString),resolve:e=>e.name},description:{type:pe.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new L.GraphQLNonNull(pe.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new L.GraphQLNonNull(new L.GraphQLList(new L.GraphQLNonNull(Jg))),resolve:e=>e.locations},args:{type:new L.GraphQLNonNull(new L.GraphQLList(new L.GraphQLNonNull(Mo))),args:{includeDeprecated:{type:pe.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});ce.__Directive=Bg;var Jg=new L.GraphQLEnumType({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:Ae.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ae.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ae.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ae.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ae.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ae.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ae.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ae.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ae.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ae.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ae.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ae.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ae.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ae.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ae.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ae.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ae.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ae.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ae.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});ce.__DirectiveLocation=Jg;var bt=new L.GraphQLObjectType({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:()=>({kind:{type:new L.GraphQLNonNull(Xg),resolve(e){if((0,L.isScalarType)(e))return Re.SCALAR;if((0,L.isObjectType)(e))return Re.OBJECT;if((0,L.isInterfaceType)(e))return Re.INTERFACE;if((0,L.isUnionType)(e))return Re.UNION;if((0,L.isEnumType)(e))return Re.ENUM;if((0,L.isInputObjectType)(e))return Re.INPUT_OBJECT;if((0,L.isListType)(e))return Re.LIST;if((0,L.isNonNullType)(e))return Re.NON_NULL;(0,oL.invariant)(!1,`Unexpected type: "${(0,iL.inspect)(e)}".`)}},name:{type:pe.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:pe.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:pe.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new L.GraphQLList(new L.GraphQLNonNull(Yg)),args:{includeDeprecated:{type:pe.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,L.isObjectType)(e)||(0,L.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},interfaces:{type:new L.GraphQLList(new L.GraphQLNonNull(bt)),resolve(e){if((0,L.isObjectType)(e)||(0,L.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new L.GraphQLList(new L.GraphQLNonNull(bt)),resolve(e,t,n,{schema:i}){if((0,L.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:new L.GraphQLList(new L.GraphQLNonNull(Wg)),args:{includeDeprecated:{type:pe.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,L.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(i=>i.deprecationReason==null)}}},inputFields:{type:new L.GraphQLList(new L.GraphQLNonNull(Mo)),args:{includeDeprecated:{type:pe.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,L.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},ofType:{type:bt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:pe.GraphQLBoolean,resolve:e=>{if((0,L.isInputObjectType)(e))return e.isOneOf}}})});ce.__Type=bt;var Yg=new L.GraphQLObjectType({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:()=>({name:{type:new L.GraphQLNonNull(pe.GraphQLString),resolve:e=>e.name},description:{type:pe.GraphQLString,resolve:e=>e.description},args:{type:new L.GraphQLNonNull(new L.GraphQLList(new L.GraphQLNonNull(Mo))),args:{includeDeprecated:{type:pe.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new L.GraphQLNonNull(bt),resolve:e=>e.type},isDeprecated:{type:new L.GraphQLNonNull(pe.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:pe.GraphQLString,resolve:e=>e.deprecationReason}})});ce.__Field=Yg;var Mo=new L.GraphQLObjectType({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:()=>({name:{type:new L.GraphQLNonNull(pe.GraphQLString),resolve:e=>e.name},description:{type:pe.GraphQLString,resolve:e=>e.description},type:{type:new L.GraphQLNonNull(bt),resolve:e=>e.type},defaultValue:{type:pe.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,i=(0,sL.astFromValue)(n,t);return i?(0,aL.print)(i):null}},isDeprecated:{type:new L.GraphQLNonNull(pe.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:pe.GraphQLString,resolve:e=>e.deprecationReason}})});ce.__InputValue=Mo;var Wg=new L.GraphQLObjectType({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:()=>({name:{type:new L.GraphQLNonNull(pe.GraphQLString),resolve:e=>e.name},description:{type:pe.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new L.GraphQLNonNull(pe.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:pe.GraphQLString,resolve:e=>e.deprecationReason}})});ce.__EnumValue=Wg;var Re;ce.TypeKind=Re;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Re||(ce.TypeKind=Re={}));var Xg=new L.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Re.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Re.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Re.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Re.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Re.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Re.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Re.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Re.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});ce.__TypeKind=Xg;var uL={name:"__schema",type:new L.GraphQLNonNull(Zg),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ce.SchemaMetaFieldDef=uL;var cL={name:"__type",type:bt,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new L.GraphQLNonNull(pe.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ce.TypeMetaFieldDef=cL;var lL={name:"__typename",type:new L.GraphQLNonNull(pe.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};ce.TypeNameMetaFieldDef=lL;var H$=Object.freeze([Zg,Bg,Jg,bt,Yg,Mo,Wg,Xg]);ce.introspectionTypes=H$;function dL(e){return H$.some(({name:t})=>e.name===t)}});var gn=y(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.GraphQLSchema=void 0;hi.assertSchema=vL;hi.isSchema=tE;var Zu=Xe(),ev=se(),pL=Eo(),fL=Zt(),mL=Ou(),Hg=kt(),jt=te(),eE=it(),gL=_t();function tE(e){return(0,pL.instanceOf)(e,Bu)}function vL(e){if(!tE(e))throw new Error(`Expected ${(0,ev.inspect)(e)} to be a GraphQL schema.`);return e}var Bu=class{constructor(t){var n,i;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,fL.isObjectLike)(t)||(0,Zu.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Zu.devAssert)(!1,`"types" must be Array if provided but got: ${(0,ev.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Zu.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,ev.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,mL.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(i=t.directives)!==null&&i!==void 0?i:eE.specifiedDirectives;let r=new Set(t.types);if(t.types!=null)for(let o of t.types)r.delete(o),Lt(o,r);this._queryType!=null&&Lt(this._queryType,r),this._mutationType!=null&&Lt(this._mutationType,r),this._subscriptionType!=null&&Lt(this._subscriptionType,r);for(let o of this._directives)if((0,eE.isDirective)(o))for(let a of o.args)Lt(a.type,r);Lt(gL.__Schema,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of r){if(o==null)continue;let a=o.name;if(a||(0,Zu.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=o,(0,jt.isInterfaceType)(o)){for(let s of o.getInterfaces())if((0,jt.isInterfaceType)(s)){let u=this._implementationsMap[s.name];u===void 0&&(u=this._implementationsMap[s.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if((0,jt.isObjectType)(o)){for(let s of o.getInterfaces())if((0,jt.isInterfaceType)(s)){let u=this._implementationsMap[s.name];u===void 0&&(u=this._implementationsMap[s.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Hg.OperationTypeNode.QUERY:return this.getQueryType();case Hg.OperationTypeNode.MUTATION:return this.getMutationType();case Hg.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,jt.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let i=this._subTypeMap[t.name];if(i===void 0){if(i=Object.create(null),(0,jt.isUnionType)(t))for(let r of t.getTypes())i[r.name]=!0;else{let r=this.getImplementations(t);for(let o of r.objects)i[o.name]=!0;for(let o of r.interfaces)i[o.name]=!0}this._subTypeMap[t.name]=i}return i[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};hi.GraphQLSchema=Bu;function Lt(e,t){let n=(0,jt.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,jt.isUnionType)(n))for(let i of n.getTypes())Lt(i,t);else if((0,jt.isObjectType)(n)||(0,jt.isInterfaceType)(n)){for(let i of n.getInterfaces())Lt(i,t);for(let i of Object.values(n.getFields())){Lt(i.type,t);for(let r of i.args)Lt(r.type,t)}}else if((0,jt.isInputObjectType)(n))for(let i of Object.values(n.getFields()))Lt(i.type,t)}return t}});var Vo=y(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.assertValidSchema=_L;Ju.validateSchema=sE;var Qe=se(),hL=U(),tv=kt(),rE=jo(),$e=te(),aE=it(),yL=_t(),bL=gn();function sE(e){if((0,bL.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new nv(e);TL(t),$L(t),EL(t);let n=t.getErrors();return e.__validationErrors=n,n}function _L(e){let t=sE(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
59
59
|
|
|
60
|
-
`))}var Zs=class{constructor(r){this._errors=[],this.schema=r}reportError(r,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new Pb.GraphQLError(r,{nodes:n}))}getErrors(){return this._errors}};function kb(e){let r=e.schema,t=r.getQueryType();if(!t)e.reportError("Query root type must be provided.",r.astNode);else if(!(0,se.isObjectType)(t)){var n;e.reportError(`Query root type must be Object type, it cannot be ${(0,Le.inspect)(t)}.`,(n=zs(r,Xs.OperationTypeNode.QUERY))!==null&&n!==void 0?n:t.astNode)}let i=r.getMutationType();if(i&&!(0,se.isObjectType)(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Le.inspect)(i)}.`,(o=zs(r,Xs.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=r.getSubscriptionType();if(s&&!(0,se.isObjectType)(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Le.inspect)(s)}.`,(a=zs(r,Xs.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function zs(e,r){var t;return(t=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var i;return(i=n?.operationTypes)!==null&&i!==void 0?i:[]}).find(n=>n.operation===r))===null||t===void 0?void 0:t.type}function Fb(e){for(let t of e.schema.getDirectives()){if(!(0,pd.isDirective)(t)){e.reportError(`Expected directive but got: ${(0,Le.inspect)(t)}.`,t?.astNode);continue}pt(e,t),t.locations.length===0&&e.reportError(`Directive @${t.name} must include 1 or more locations.`,t.astNode);for(let n of t.args)if(pt(e,n),(0,se.isInputType)(n.type)||e.reportError(`The type of @${t.name}(${n.name}:) must be Input Type but got: ${(0,Le.inspect)(n.type)}.`,n.astNode),(0,se.isRequiredArgument)(n)&&n.deprecationReason!=null){var r;e.reportError(`Required argument @${t.name}(${n.name}:) cannot be deprecated.`,[ea(n.astNode),(r=n.astNode)===null||r===void 0?void 0:r.type])}}}function pt(e,r){r.name.startsWith("__")&&e.reportError(`Name "${r.name}" must not begin with "__", which is reserved by GraphQL introspection.`,r.astNode)}function Cb(e){let r=Ub(e),t=e.schema.getTypeMap();for(let n of Object.values(t)){if(!(0,se.isNamedType)(n)){e.reportError(`Expected GraphQL named type but got: ${(0,Le.inspect)(n)}.`,n.astNode);continue}(0,wb.isIntrospectionType)(n)||pt(e,n),(0,se.isObjectType)(n)||(0,se.isInterfaceType)(n)?(ud(e,n),cd(e,n)):(0,se.isUnionType)(n)?Gb(e,n):(0,se.isEnumType)(n)?Vb(e,n):(0,se.isInputObjectType)(n)&&($b(e,n),r(n))}}function ud(e,r){let t=Object.values(r.getFields());t.length===0&&e.reportError(`Type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let s of t){if(pt(e,s),!(0,se.isOutputType)(s.type)){var n;e.reportError(`The type of ${r.name}.${s.name} must be Output Type but got: ${(0,Le.inspect)(s.type)}.`,(n=s.astNode)===null||n===void 0?void 0:n.type)}for(let a of s.args){let u=a.name;if(pt(e,a),!(0,se.isInputType)(a.type)){var i;e.reportError(`The type of ${r.name}.${s.name}(${u}:) must be Input Type but got: ${(0,Le.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if((0,se.isRequiredArgument)(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${r.name}.${s.name}(${u}:) cannot be deprecated.`,[ea(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function cd(e,r){let t=Object.create(null);for(let n of r.getInterfaces()){if(!(0,se.isInterfaceType)(n)){e.reportError(`Type ${(0,Le.inspect)(r)} must only implement Interface types, it cannot implement ${(0,Le.inspect)(n)}.`,Sn(r,n));continue}if(r===n){e.reportError(`Type ${r.name} cannot implement itself because it would create a circular reference.`,Sn(r,n));continue}if(t[n.name]){e.reportError(`Type ${r.name} can only implement ${n.name} once.`,Sn(r,n));continue}t[n.name]=!0,Mb(e,r,n),qb(e,r,n)}}function qb(e,r,t){let n=r.getFields();for(let u of Object.values(t.getFields())){let c=u.name,l=n[c];if(!l){e.reportError(`Interface field ${t.name}.${c} expected but ${r.name} does not provide it.`,[u.astNode,r.astNode,...r.extensionASTNodes]);continue}if(!(0,ad.isTypeSubTypeOf)(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${t.name}.${c} expects type ${(0,Le.inspect)(u.type)} but ${r.name}.${c} is type ${(0,Le.inspect)(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let p of u.args){let d=p.name,m=l.args.find(h=>h.name===d);if(!m){e.reportError(`Interface field argument ${t.name}.${c}(${d}:) expected but ${r.name}.${c} does not provide it.`,[p.astNode,l.astNode]);continue}if(!(0,ad.isEqualType)(p.type,m.type)){var s,a;e.reportError(`Interface field argument ${t.name}.${c}(${d}:) expects type ${(0,Le.inspect)(p.type)} but ${r.name}.${c}(${d}:) is type ${(0,Le.inspect)(m.type)}.`,[(s=p.astNode)===null||s===void 0?void 0:s.type,(a=m.astNode)===null||a===void 0?void 0:a.type])}}for(let p of l.args){let d=p.name;!u.args.find(h=>h.name===d)&&(0,se.isRequiredArgument)(p)&&e.reportError(`Object field ${r.name}.${c} includes required argument ${d} that is missing from the Interface field ${t.name}.${c}.`,[p.astNode,u.astNode])}}}function Mb(e,r,t){let n=r.getInterfaces();for(let i of t.getInterfaces())n.includes(i)||e.reportError(i===r?`Type ${r.name} cannot implement ${t.name} because it would create a circular reference.`:`Type ${r.name} must implement ${i.name} because it is implemented by ${t.name}.`,[...Sn(t,i),...Sn(r,t)])}function Gb(e,r){let t=r.getTypes();t.length===0&&e.reportError(`Union type ${r.name} must define one or more member types.`,[r.astNode,...r.extensionASTNodes]);let n=Object.create(null);for(let i of t){if(n[i.name]){e.reportError(`Union type ${r.name} can only include type ${i.name} once.`,ld(r,i.name));continue}n[i.name]=!0,(0,se.isObjectType)(i)||e.reportError(`Union type ${r.name} can only include Object types, it cannot include ${(0,Le.inspect)(i)}.`,ld(r,String(i)))}}function Vb(e,r){let t=r.getValues();t.length===0&&e.reportError(`Enum type ${r.name} must define one or more values.`,[r.astNode,...r.extensionASTNodes]);for(let n of t)pt(e,n)}function $b(e,r){let t=Object.values(r.getFields());t.length===0&&e.reportError(`Input Object type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let o of t){if(pt(e,o),!(0,se.isInputType)(o.type)){var n;e.reportError(`The type of ${r.name}.${o.name} must be Input Type but got: ${(0,Le.inspect)(o.type)}.`,(n=o.astNode)===null||n===void 0?void 0:n.type)}if((0,se.isRequiredInputField)(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${r.name}.${o.name} cannot be deprecated.`,[ea(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}r.isOneOf&&Qb(r,o,e)}}function Qb(e,r,t){if((0,se.isNonNullType)(r.type)){var n;t.reportError(`OneOf input field ${e.name}.${r.name} must be nullable.`,(n=r.astNode)===null||n===void 0?void 0:n.type)}r.defaultValue!==void 0&&t.reportError(`OneOf input field ${e.name}.${r.name} cannot have a default value.`,r.astNode)}function Ub(e){let r=Object.create(null),t=[],n=Object.create(null);return i;function i(o){if(r[o.name])return;r[o.name]=!0,n[o.name]=t.length;let s=Object.values(o.getFields());for(let a of s)if((0,se.isNonNullType)(a.type)&&(0,se.isInputObjectType)(a.type.ofType)){let u=a.type.ofType,c=n[u.name];if(t.push(a),c===void 0)i(u);else{let l=t.slice(c),p=l.map(d=>d.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${p}".`,l.map(d=>d.astNode))}t.pop()}n[o.name]=void 0}}function Sn(e,r){let{astNode:t,extensionASTNodes:n}=e;return(t!=null?[t,...n]:n).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r.name)}function ld(e,r){let{astNode:t,extensionASTNodes:n}=e;return(t!=null?[t,...n]:n).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r)}function ea(e){var r;return e==null||(r=e.directives)===null||r===void 0?void 0:r.find(t=>t.name.value===pd.GraphQLDeprecatedDirective.name)}});var yr=y(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.typeFromAST=ta;var ra=$(),fd=Q();function ta(e,r){switch(r.kind){case ra.Kind.LIST_TYPE:{let t=ta(e,r.type);return t&&new fd.GraphQLList(t)}case ra.Kind.NON_NULL_TYPE:{let t=ta(e,r.type);return t&&new fd.GraphQLNonNull(t)}case ra.Kind.NAMED_TYPE:return e.getType(r.name.value)}}});var Hi=y(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.TypeInfo=void 0;Dn.visitWithTypeInfo=Yb;var Kb=Je(),ae=$(),md=it(),ue=Q(),Ft=Qe(),hd=yr(),ia=class{constructor(r,t,n){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??Bb,t&&((0,ue.isInputType)(t)&&this._inputTypeStack.push(t),(0,ue.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,ue.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(r){let t=this._schema;switch(r.kind){case ae.Kind.SELECTION_SET:{let i=(0,ue.getNamedType)(this.getType());this._parentTypeStack.push((0,ue.isCompositeType)(i)?i:void 0);break}case ae.Kind.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(t,i,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push((0,ue.isOutputType)(s)?s:void 0);break}case ae.Kind.DIRECTIVE:this._directive=t.getDirective(r.name.value);break;case ae.Kind.OPERATION_DEFINITION:{let i=t.getRootType(r.operation);this._typeStack.push((0,ue.isObjectType)(i)?i:void 0);break}case ae.Kind.INLINE_FRAGMENT:case ae.Kind.FRAGMENT_DEFINITION:{let i=r.typeCondition,o=i?(0,hd.typeFromAST)(t,i):(0,ue.getNamedType)(this.getType());this._typeStack.push((0,ue.isOutputType)(o)?o:void 0);break}case ae.Kind.VARIABLE_DEFINITION:{let i=(0,hd.typeFromAST)(t,r.type);this._inputTypeStack.push((0,ue.isInputType)(i)?i:void 0);break}case ae.Kind.ARGUMENT:{var n;let i,o,s=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();s&&(i=s.args.find(a=>a.name===r.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,ue.isInputType)(o)?o:void 0);break}case ae.Kind.LIST:{let i=(0,ue.getNullableType)(this.getInputType()),o=(0,ue.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,ue.isInputType)(o)?o:void 0);break}case ae.Kind.OBJECT_FIELD:{let i=(0,ue.getNamedType)(this.getInputType()),o,s;(0,ue.isInputObjectType)(i)&&(s=i.getFields()[r.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push((0,ue.isInputType)(o)?o:void 0);break}case ae.Kind.ENUM:{let i=(0,ue.getNamedType)(this.getInputType()),o;(0,ue.isEnumType)(i)&&(o=i.getValue(r.value)),this._enumValue=o;break}default:}}leave(r){switch(r.kind){case ae.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case ae.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ae.Kind.DIRECTIVE:this._directive=null;break;case ae.Kind.OPERATION_DEFINITION:case ae.Kind.INLINE_FRAGMENT:case ae.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ae.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ae.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ae.Kind.LIST:case ae.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ae.Kind.ENUM:this._enumValue=null;break;default:}}};Dn.TypeInfo=ia;function Bb(e,r,t){let n=t.name.value;if(n===Ft.SchemaMetaFieldDef.name&&e.getQueryType()===r)return Ft.SchemaMetaFieldDef;if(n===Ft.TypeMetaFieldDef.name&&e.getQueryType()===r)return Ft.TypeMetaFieldDef;if(n===Ft.TypeNameMetaFieldDef.name&&(0,ue.isCompositeType)(r))return Ft.TypeNameMetaFieldDef;if((0,ue.isObjectType)(r)||(0,ue.isInterfaceType)(r))return r.getFields()[n]}function Yb(e,r){return{enter(...t){let n=t[0];e.enter(n);let i=(0,md.getEnterLeaveForKind)(r,n.kind).enter;if(i){let o=i.apply(r,t);return o!==void 0&&(e.leave(n),(0,Kb.isNode)(o)&&e.enter(o)),o}},leave(...t){let n=t[0],i=(0,md.getEnterLeaveForKind)(r,n.kind).leave,o;return i&&(o=i.apply(r,t)),e.leave(n),o}}}});var dt=y(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.isConstValueNode=oa;Fe.isDefinitionNode=Hb;Fe.isExecutableDefinitionNode=yd;Fe.isSchemaCoordinateNode=Xb;Fe.isSelectionNode=Wb;Fe.isTypeDefinitionNode=Td;Fe.isTypeExtensionNode=Ed;Fe.isTypeNode=Jb;Fe.isTypeSystemDefinitionNode=gd;Fe.isTypeSystemExtensionNode=bd;Fe.isValueNode=vd;var V=$();function Hb(e){return yd(e)||gd(e)||bd(e)}function yd(e){return e.kind===V.Kind.OPERATION_DEFINITION||e.kind===V.Kind.FRAGMENT_DEFINITION}function Wb(e){return e.kind===V.Kind.FIELD||e.kind===V.Kind.FRAGMENT_SPREAD||e.kind===V.Kind.INLINE_FRAGMENT}function vd(e){return e.kind===V.Kind.VARIABLE||e.kind===V.Kind.INT||e.kind===V.Kind.FLOAT||e.kind===V.Kind.STRING||e.kind===V.Kind.BOOLEAN||e.kind===V.Kind.NULL||e.kind===V.Kind.ENUM||e.kind===V.Kind.LIST||e.kind===V.Kind.OBJECT}function oa(e){return vd(e)&&(e.kind===V.Kind.LIST?e.values.some(oa):e.kind===V.Kind.OBJECT?e.fields.some(r=>oa(r.value)):e.kind!==V.Kind.VARIABLE)}function Jb(e){return e.kind===V.Kind.NAMED_TYPE||e.kind===V.Kind.LIST_TYPE||e.kind===V.Kind.NON_NULL_TYPE}function gd(e){return e.kind===V.Kind.SCHEMA_DEFINITION||Td(e)||e.kind===V.Kind.DIRECTIVE_DEFINITION}function Td(e){return e.kind===V.Kind.SCALAR_TYPE_DEFINITION||e.kind===V.Kind.OBJECT_TYPE_DEFINITION||e.kind===V.Kind.INTERFACE_TYPE_DEFINITION||e.kind===V.Kind.UNION_TYPE_DEFINITION||e.kind===V.Kind.ENUM_TYPE_DEFINITION||e.kind===V.Kind.INPUT_OBJECT_TYPE_DEFINITION}function bd(e){return e.kind===V.Kind.SCHEMA_EXTENSION||Ed(e)}function Ed(e){return e.kind===V.Kind.SCALAR_TYPE_EXTENSION||e.kind===V.Kind.OBJECT_TYPE_EXTENSION||e.kind===V.Kind.INTERFACE_TYPE_EXTENSION||e.kind===V.Kind.UNION_TYPE_EXTENSION||e.kind===V.Kind.ENUM_TYPE_EXTENSION||e.kind===V.Kind.INPUT_OBJECT_TYPE_EXTENSION}function Xb(e){return e.kind===V.Kind.TYPE_COORDINATE||e.kind===V.Kind.MEMBER_COORDINATE||e.kind===V.Kind.ARGUMENT_COORDINATE||e.kind===V.Kind.DIRECTIVE_COORDINATE||e.kind===V.Kind.DIRECTIVE_ARGUMENT_COORDINATE}});var aa=y(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.ExecutableDefinitionsRule=e0;var zb=w(),_d=$(),Zb=dt();function e0(e){return{Document(r){for(let t of r.definitions)if(!(0,Zb.isExecutableDefinitionNode)(t)){let n=t.kind===_d.Kind.SCHEMA_DEFINITION||t.kind===_d.Kind.SCHEMA_EXTENSION?"schema":'"'+t.name.value+'"';e.reportError(new zb.GraphQLError(`The ${n} definition is not executable.`,{nodes:t}))}return!1}}}});var ca=y(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.FieldsOnCorrectTypeRule=i0;var Od=$r(),r0=pn(),t0=Ur(),n0=w(),An=Q();function i0(e){return{Field(r){let t=e.getParentType();if(t&&!e.getFieldDef()){let i=e.getSchema(),o=r.name.value,s=(0,Od.didYouMean)("to use an inline fragment on",o0(i,t,o));s===""&&(s=(0,Od.didYouMean)(s0(t,o))),e.reportError(new n0.GraphQLError(`Cannot query field "${o}" on type "${t.name}".`+s,{nodes:r}))}}}}function o0(e,r,t){if(!(0,An.isAbstractType)(r))return[];let n=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(r))if(s.getFields()[t]){n.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[t]&&(n.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...n].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:(0,An.isInterfaceType)(s)&&e.isSubType(s,a)?-1:(0,An.isInterfaceType)(a)&&e.isSubType(a,s)?1:(0,r0.naturalCompare)(s.name,a.name)}).map(s=>s.name)}function s0(e,r){if((0,An.isObjectType)(e)||(0,An.isInterfaceType)(e)){let t=Object.keys(e.getFields());return(0,t0.suggestionList)(r,t)}return[]}});var pa=y(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.FragmentsOnCompositeTypesRule=a0;var Nd=w(),Id=ke(),Sd=Q(),Ld=yr();function a0(e){return{InlineFragment(r){let t=r.typeCondition;if(t){let n=(0,Ld.typeFromAST)(e.getSchema(),t);if(n&&!(0,Sd.isCompositeType)(n)){let i=(0,Id.print)(t);e.reportError(new Nd.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:t}))}}},FragmentDefinition(r){let t=(0,Ld.typeFromAST)(e.getSchema(),r.typeCondition);if(t&&!(0,Sd.isCompositeType)(t)){let n=(0,Id.print)(r.typeCondition);e.reportError(new Nd.GraphQLError(`Fragment "${r.name.value}" cannot condition on non composite type "${n}".`,{nodes:r.typeCondition}))}}}}});var da=y(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.KnownArgumentNamesOnDirectivesRule=Pd;Wi.KnownArgumentNamesRule=l0;var Dd=$r(),Ad=Ur(),Rd=w(),u0=$(),c0=we();function l0(e){return{...Pd(e),Argument(r){let t=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!t&&n&&i){let o=r.name.value,s=n.args.map(u=>u.name),a=(0,Ad.suggestionList)(o,s);e.reportError(new Rd.GraphQLError(`Unknown argument "${o}" on field "${i.name}.${n.name}".`+(0,Dd.didYouMean)(a),{nodes:r}))}}}}function Pd(e){let r=Object.create(null),t=e.getSchema(),n=t?t.getDirectives():c0.specifiedDirectives;for(let s of n)r[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===u0.Kind.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];r[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=r[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let p=(0,Ad.suggestionList)(l,u);e.reportError(new Rd.GraphQLError(`Unknown argument "${l}" on directive "@${a}".`+(0,Dd.didYouMean)(p),{nodes:c}))}}return!1}}}});var ya=y(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.KnownDirectivesRule=f0;var p0=J(),fa=Ie(),wd=w(),ma=Je(),Te=At(),re=$(),d0=we();function f0(e){let r=Object.create(null),t=e.getSchema(),n=t?t.getDirectives():d0.specifiedDirectives;for(let o of n)r[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===re.Kind.DIRECTIVE_DEFINITION&&(r[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,p=r[l];if(!p){e.reportError(new wd.GraphQLError(`Unknown directive "@${l}".`,{nodes:o}));return}let d=m0(c);d&&!p.includes(d)&&e.reportError(new wd.GraphQLError(`Directive "@${l}" may not be used on ${d}.`,{nodes:o}))}}}function m0(e){let r=e[e.length-1];switch("kind"in r||(0,fa.invariant)(!1),r.kind){case re.Kind.OPERATION_DEFINITION:return h0(r.operation);case re.Kind.FIELD:return Te.DirectiveLocation.FIELD;case re.Kind.FRAGMENT_SPREAD:return Te.DirectiveLocation.FRAGMENT_SPREAD;case re.Kind.INLINE_FRAGMENT:return Te.DirectiveLocation.INLINE_FRAGMENT;case re.Kind.FRAGMENT_DEFINITION:return Te.DirectiveLocation.FRAGMENT_DEFINITION;case re.Kind.VARIABLE_DEFINITION:return Te.DirectiveLocation.VARIABLE_DEFINITION;case re.Kind.SCHEMA_DEFINITION:case re.Kind.SCHEMA_EXTENSION:return Te.DirectiveLocation.SCHEMA;case re.Kind.SCALAR_TYPE_DEFINITION:case re.Kind.SCALAR_TYPE_EXTENSION:return Te.DirectiveLocation.SCALAR;case re.Kind.OBJECT_TYPE_DEFINITION:case re.Kind.OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.OBJECT;case re.Kind.FIELD_DEFINITION:return Te.DirectiveLocation.FIELD_DEFINITION;case re.Kind.INTERFACE_TYPE_DEFINITION:case re.Kind.INTERFACE_TYPE_EXTENSION:return Te.DirectiveLocation.INTERFACE;case re.Kind.UNION_TYPE_DEFINITION:case re.Kind.UNION_TYPE_EXTENSION:return Te.DirectiveLocation.UNION;case re.Kind.ENUM_TYPE_DEFINITION:case re.Kind.ENUM_TYPE_EXTENSION:return Te.DirectiveLocation.ENUM;case re.Kind.ENUM_VALUE_DEFINITION:return Te.DirectiveLocation.ENUM_VALUE;case re.Kind.INPUT_OBJECT_TYPE_DEFINITION:case re.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.INPUT_OBJECT;case re.Kind.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||(0,fa.invariant)(!1),t.kind===re.Kind.INPUT_OBJECT_TYPE_DEFINITION?Te.DirectiveLocation.INPUT_FIELD_DEFINITION:Te.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,fa.invariant)(!1,"Unexpected kind: "+(0,p0.inspect)(r.kind))}}function h0(e){switch(e){case ma.OperationTypeNode.QUERY:return Te.DirectiveLocation.QUERY;case ma.OperationTypeNode.MUTATION:return Te.DirectiveLocation.MUTATION;case ma.OperationTypeNode.SUBSCRIPTION:return Te.DirectiveLocation.SUBSCRIPTION}}});var ga=y(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.KnownFragmentNamesRule=v0;var y0=w();function v0(e){return{FragmentSpread(r){let t=r.name.value;e.getFragment(t)||e.reportError(new y0.GraphQLError(`Unknown fragment "${t}".`,{nodes:r.name}))}}}});var Ea=y(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.KnownTypeNamesRule=O0;var g0=$r(),T0=Ur(),b0=w(),Ta=dt(),E0=Qe(),_0=hr();function O0(e){let r=e.getSchema(),t=r?r.getTypeMap():Object.create(null),n=Object.create(null);for(let o of e.getDocument().definitions)(0,Ta.isTypeDefinitionNode)(o)&&(n[o.name.value]=!0);let i=[...Object.keys(t),...Object.keys(n)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!t[l]&&!n[l]){var p;let d=(p=c[2])!==null&&p!==void 0?p:a,m=d!=null&&N0(d);if(m&&jd.includes(l))return;let h=(0,T0.suggestionList)(l,m?jd.concat(i):i);e.reportError(new b0.GraphQLError(`Unknown type "${l}".`+(0,g0.didYouMean)(h),{nodes:o}))}}}}var jd=[..._0.specifiedScalarTypes,...E0.introspectionTypes].map(e=>e.name);function N0(e){return"kind"in e&&((0,Ta.isTypeSystemDefinitionNode)(e)||(0,Ta.isTypeSystemExtensionNode)(e))}});var Oa=y(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.LoneAnonymousOperationRule=L0;var I0=w(),S0=$();function L0(e){let r=0;return{Document(t){r=t.definitions.filter(n=>n.kind===S0.Kind.OPERATION_DEFINITION).length},OperationDefinition(t){!t.name&&r>1&&e.reportError(new I0.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:t}))}}}});var Ia=y(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.LoneSchemaDefinitionRule=D0;var xd=w();function D0(e){var r,t,n;let i=e.getSchema(),o=(r=(t=(n=i?.astNode)!==null&&n!==void 0?n:i?.getQueryType())!==null&&t!==void 0?t:i?.getMutationType())!==null&&r!==void 0?r:i?.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new xd.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new xd.GraphQLError("Must provide only one schema definition.",{nodes:a})),++s}}}});var La=y(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.MaxIntrospectionDepthRule=P0;var A0=w(),kd=$(),R0=3;function P0(e){function r(t,n=Object.create(null),i=0){if(t.kind===kd.Kind.FRAGMENT_SPREAD){let o=t.name.value;if(n[o]===!0)return!1;let s=e.getFragment(o);if(!s)return!1;try{return n[o]=!0,r(s,n,i)}finally{n[o]=void 0}}if(t.kind===kd.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")&&(i++,i>=R0))return!0;if("selectionSet"in t&&t.selectionSet){for(let o of t.selectionSet.selections)if(r(o,n,i))return!0}return!1}return{Field(t){if((t.name.value==="__schema"||t.name.value==="__type")&&r(t))return e.reportError(new A0.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}});var Aa=y(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.NoFragmentCyclesRule=j0;var w0=w();function j0(e){let r=Object.create(null),t=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(r[o.name.value])return;let s=o.name.value;r[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){n[s]=t.length;for(let u of a){let c=u.name.value,l=n[c];if(t.push(u),l===void 0){let p=e.getFragment(c);p&&i(p)}else{let p=t.slice(l),d=p.slice(0,-1).map(m=>'"'+m.name.value+'"').join(", ");e.reportError(new w0.GraphQLError(`Cannot spread fragment "${c}" within itself`+(d!==""?` via ${d}.`:"."),{nodes:p}))}t.pop()}n[s]=void 0}}}});var Pa=y(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.NoUndefinedVariablesRule=k0;var x0=w();function k0(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(t){let n=e.getRecursiveVariableUsages(t);for(let{node:i}of n){let o=i.name.value;r[o]!==!0&&e.reportError(new x0.GraphQLError(t.name?`Variable "$${o}" is not defined by operation "${t.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,t]}))}}},VariableDefinition(t){r[t.variable.name.value]=!0}}}});var ja=y(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.NoUnusedFragmentsRule=C0;var F0=w();function C0(e){let r=[],t=[];return{OperationDefinition(n){return r.push(n),!1},FragmentDefinition(n){return t.push(n),!1},Document:{leave(){let n=Object.create(null);for(let i of r)for(let o of e.getRecursivelyReferencedFragments(i))n[o.name.value]=!0;for(let i of t){let o=i.name.value;n[o]!==!0&&e.reportError(new F0.GraphQLError(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}});var ka=y(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.NoUnusedVariablesRule=M0;var q0=w();function M0(e){let r=[];return{OperationDefinition:{enter(){r=[]},leave(t){let n=Object.create(null),i=e.getRecursiveVariableUsages(t);for(let{node:o}of i)n[o.name.value]=!0;for(let o of r){let s=o.variable.name.value;n[s]!==!0&&e.reportError(new q0.GraphQLError(t.name?`Variable "$${s}" is never used in operation "${t.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(t){r.push(t)}}}});var qa=y(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.sortValueNode=Fa;var G0=pn(),Lr=$();function Fa(e){switch(e.kind){case Lr.Kind.OBJECT:return{...e,fields:V0(e.fields)};case Lr.Kind.LIST:return{...e,values:e.values.map(Fa)};case Lr.Kind.INT:case Lr.Kind.FLOAT:case Lr.Kind.STRING:case Lr.Kind.BOOLEAN:case Lr.Kind.NULL:case Lr.Kind.ENUM:case Lr.Kind.VARIABLE:return e}}function V0(e){return e.map(r=>({...r,value:Fa(r.value)})).sort((r,t)=>(0,G0.naturalCompare)(r.name.value,t.name.value))}});var Ka=y(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.OverlappingFieldsCanBeMergedRule=K0;var Fd=J(),$0=w(),Ma=$(),Q0=ke(),je=Q(),U0=qa(),qd=yr();function Md(e){return Array.isArray(e)?e.map(([r,t])=>`subfields "${r}" conflict because `+Md(t)).join(" and "):e}function K0(e){let r=new Zi,t=new $a,n=new Map;return{SelectionSet(i){let o=B0(e,n,r,t,e.getParentType(),i);for(let[[s,a],u,c]of o){let l=Md(a);e.reportError(new $0.GraphQLError(`Fields "${s}" conflict because ${l}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(c)}))}}}}function B0(e,r,t,n,i,o){let s=[],[a,u]=zi(e,r,i,o);if(H0(e,s,r,t,n,a),u.length!==0)for(let c=0;c<u.length;c++){Ji(e,s,r,t,n,!1,a,u[c]);for(let l=c+1;l<u.length;l++)Xi(e,s,r,t,n,!1,u[c],u[l])}return s}function Ji(e,r,t,n,i,o,s,a){if(n.has(s,a,o))return;n.add(s,a,o);let u=e.getFragment(a);if(!u)return;let[c,l]=Va(e,t,u);if(s!==c){Qa(e,r,t,n,i,o,s,c);for(let p of l)Ji(e,r,t,n,i,o,s,p)}}function Xi(e,r,t,n,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);let u=e.getFragment(s),c=e.getFragment(a);if(!u||!c)return;let[l,p]=Va(e,t,u),[d,m]=Va(e,t,c);Qa(e,r,t,n,i,o,l,d);for(let h of m)Xi(e,r,t,n,i,o,s,h);for(let h of p)Xi(e,r,t,n,i,o,h,a)}function Y0(e,r,t,n,i,o,s,a,u){let c=[],[l,p]=zi(e,r,o,s),[d,m]=zi(e,r,a,u);Qa(e,c,r,t,n,i,l,d);for(let h of m)Ji(e,c,r,t,n,i,l,h);for(let h of p)Ji(e,c,r,t,n,i,d,h);for(let h of p)for(let _ of m)Xi(e,c,r,t,n,i,h,_);return c}function H0(e,r,t,n,i,o){for(let[s,a]of Object.entries(o))if(a.length>1)for(let u=0;u<a.length;u++)for(let c=u+1;c<a.length;c++){let l=Gd(e,t,n,i,!1,s,a[u],a[c]);l&&r.push(l)}}function Qa(e,r,t,n,i,o,s,a){for(let[u,c]of Object.entries(s)){let l=a[u];if(l)for(let p of c)for(let d of l){let m=Gd(e,t,n,i,o,u,p,d);m&&r.push(m)}}}function Gd(e,r,t,n,i,o,s,a){let[u,c,l]=s,[p,d,m]=a,h=i||u!==p&&(0,je.isObjectType)(u)&&(0,je.isObjectType)(p);if(!h){let U=c.name.value,oe=d.name.value;if(U!==oe)return[[o,`"${U}" and "${oe}" are different fields`],[c],[d]];if(!W0(c,d))return[[o,"they have differing arguments"],[c],[d]]}let _=l?.type,R=m?.type;if(_&&R&&Ga(_,R))return[[o,`they return conflicting types "${(0,Fd.inspect)(_)}" and "${(0,Fd.inspect)(R)}"`],[c],[d]];let j=c.selectionSet,O=d.selectionSet;if(j&&O){let U=Y0(e,r,t,n,h,(0,je.getNamedType)(_),j,(0,je.getNamedType)(R),O);return J0(U,o,c,d)}}function W0(e,r){let t=e.arguments,n=r.arguments;if(t===void 0||t.length===0)return n===void 0||n.length===0;if(n===void 0||n.length===0||t.length!==n.length)return!1;let i=new Map(n.map(({name:o,value:s})=>[o.value,s]));return t.every(o=>{let s=o.value,a=i.get(o.name.value);return a===void 0?!1:Cd(s)===Cd(a)})}function Cd(e){return(0,Q0.print)((0,U0.sortValueNode)(e))}function Ga(e,r){return(0,je.isListType)(e)?(0,je.isListType)(r)?Ga(e.ofType,r.ofType):!0:(0,je.isListType)(r)?!0:(0,je.isNonNullType)(e)?(0,je.isNonNullType)(r)?Ga(e.ofType,r.ofType):!0:(0,je.isNonNullType)(r)?!0:(0,je.isLeafType)(e)||(0,je.isLeafType)(r)?e!==r:!1}function zi(e,r,t,n){let i=r.get(n);if(i)return i;let o=Object.create(null),s=Object.create(null);Vd(e,t,n,o,s);let a=[o,Object.keys(s)];return r.set(n,a),a}function Va(e,r,t){let n=r.get(t.selectionSet);if(n)return n;let i=(0,qd.typeFromAST)(e.getSchema(),t.typeCondition);return zi(e,r,i,t.selectionSet)}function Vd(e,r,t,n,i){for(let o of t.selections)switch(o.kind){case Ma.Kind.FIELD:{let s=o.name.value,a;((0,je.isObjectType)(r)||(0,je.isInterfaceType)(r))&&(a=r.getFields()[s]);let u=o.alias?o.alias.value:s;n[u]||(n[u]=[]),n[u].push([r,o,a]);break}case Ma.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Ma.Kind.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?(0,qd.typeFromAST)(e.getSchema(),s):r;Vd(e,a,o.selectionSet,n,i);break}}}function J0(e,r,t,n){if(e.length>0)return[[r,e.map(([i])=>i)],[t,...e.map(([,i])=>i).flat()],[n,...e.map(([,,i])=>i).flat()]]}var Zi=class{constructor(){this._data=new Map}has(r,t,n){var i;let o=(i=this._data.get(r))===null||i===void 0?void 0:i.get(t);return o===void 0?!1:n?!0:n===o}add(r,t,n){let i=this._data.get(r);i===void 0?this._data.set(r,new Map([[t,n]])):i.set(t,n)}},$a=class{constructor(){this._orderedPairSet=new Zi}has(r,t,n){return r<t?this._orderedPairSet.has(r,t,n):this._orderedPairSet.has(t,r,n)}add(r,t,n){r<t?this._orderedPairSet.add(r,t,n):this._orderedPairSet.add(t,r,n)}}});var Ha=y(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.PossibleFragmentSpreadsRule=z0;var eo=J(),$d=w(),Ba=Q(),Qd=vn(),X0=yr();function z0(e){return{InlineFragment(r){let t=e.getType(),n=e.getParentType();if((0,Ba.isCompositeType)(t)&&(0,Ba.isCompositeType)(n)&&!(0,Qd.doTypesOverlap)(e.getSchema(),t,n)){let i=(0,eo.inspect)(n),o=(0,eo.inspect)(t);e.reportError(new $d.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:r}))}},FragmentSpread(r){let t=r.name.value,n=Z0(e,t),i=e.getParentType();if(n&&i&&!(0,Qd.doTypesOverlap)(e.getSchema(),n,i)){let o=(0,eo.inspect)(i),s=(0,eo.inspect)(n);e.reportError(new $d.GraphQLError(`Fragment "${t}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:r}))}}}}function Z0(e,r){let t=e.getFragment(r);if(t){let n=(0,X0.typeFromAST)(e.getSchema(),t.typeCondition);if((0,Ba.isCompositeType)(n))return n}}});var Ja=y(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.PossibleTypeExtensionsRule=nE;var eE=$r(),Kd=J(),Bd=Ie(),rE=Ur(),Ud=w(),ne=$(),tE=dt(),Ct=Q();function nE(e){let r=e.getSchema(),t=Object.create(null);for(let i of e.getDocument().definitions)(0,tE.isTypeDefinitionNode)(i)&&(t[i.name.value]=i);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(i){let o=i.name.value,s=t[o],a=r?.getType(o),u;if(s?u=iE[s.kind]:a&&(u=oE(a)),u){if(u!==i.kind){let c=sE(i.kind);e.reportError(new Ud.GraphQLError(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys({...t,...r?.getTypeMap()}),l=(0,rE.suggestionList)(o,c);e.reportError(new Ud.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,eE.didYouMean)(l),{nodes:i.name}))}}}var iE={[ne.Kind.SCALAR_TYPE_DEFINITION]:ne.Kind.SCALAR_TYPE_EXTENSION,[ne.Kind.OBJECT_TYPE_DEFINITION]:ne.Kind.OBJECT_TYPE_EXTENSION,[ne.Kind.INTERFACE_TYPE_DEFINITION]:ne.Kind.INTERFACE_TYPE_EXTENSION,[ne.Kind.UNION_TYPE_DEFINITION]:ne.Kind.UNION_TYPE_EXTENSION,[ne.Kind.ENUM_TYPE_DEFINITION]:ne.Kind.ENUM_TYPE_EXTENSION,[ne.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ne.Kind.INPUT_OBJECT_TYPE_EXTENSION};function oE(e){if((0,Ct.isScalarType)(e))return ne.Kind.SCALAR_TYPE_EXTENSION;if((0,Ct.isObjectType)(e))return ne.Kind.OBJECT_TYPE_EXTENSION;if((0,Ct.isInterfaceType)(e))return ne.Kind.INTERFACE_TYPE_EXTENSION;if((0,Ct.isUnionType)(e))return ne.Kind.UNION_TYPE_EXTENSION;if((0,Ct.isEnumType)(e))return ne.Kind.ENUM_TYPE_EXTENSION;if((0,Ct.isInputObjectType)(e))return ne.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Bd.invariant)(!1,"Unexpected type: "+(0,Kd.inspect)(e))}function sE(e){switch(e){case ne.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case ne.Kind.OBJECT_TYPE_EXTENSION:return"object";case ne.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case ne.Kind.UNION_TYPE_EXTENSION:return"union";case ne.Kind.ENUM_TYPE_EXTENSION:return"enum";case ne.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Bd.invariant)(!1,"Unexpected kind: "+(0,Kd.inspect)(e))}}});var za=y(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.ProvidedRequiredArgumentsOnDirectivesRule=Xd;ro.ProvidedRequiredArgumentsRule=cE;var Hd=J(),Yd=Qr(),Wd=w(),Jd=$(),aE=ke(),Xa=Q(),uE=we();function cE(e){return{...Xd(e),Field:{leave(r){var t;let n=e.getFieldDef();if(!n)return!1;let i=new Set((t=r.arguments)===null||t===void 0?void 0:t.map(o=>o.name.value));for(let o of n.args)if(!i.has(o.name)&&(0,Xa.isRequiredArgument)(o)){let s=(0,Hd.inspect)(o.type);e.reportError(new Wd.GraphQLError(`Field "${n.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:r}))}}}}}function Xd(e){var r;let t=Object.create(null),n=e.getSchema(),i=(r=n?.getDirectives())!==null&&r!==void 0?r:uE.specifiedDirectives;for(let a of i)t[a.name]=(0,Yd.keyMap)(a.args.filter(Xa.isRequiredArgument),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===Jd.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];t[a.name.value]=(0,Yd.keyMap)(u.filter(lE),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=t[u];if(c){var l;let p=(l=a.arguments)!==null&&l!==void 0?l:[],d=new Set(p.map(m=>m.name.value));for(let[m,h]of Object.entries(c))if(!d.has(m)){let _=(0,Xa.isType)(h.type)?(0,Hd.inspect)(h.type):(0,aE.print)(h.type);e.reportError(new Wd.GraphQLError(`Directive "@${u}" argument "${m}" of type "${_}" is required, but it was not provided.`,{nodes:a}))}}}}}}function lE(e){return e.type.kind===Jd.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var tu=y(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.ScalarLeafsRule=pE;var Za=J(),eu=w(),zd=Q();function pE(e){return{Field(r){let t=e.getType(),n=r.selectionSet;if(t)if((0,zd.isLeafType)((0,zd.getNamedType)(t))){if(n){let i=r.name.value,o=(0,Za.inspect)(t);e.reportError(new eu.GraphQLError(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:n}))}}else if(n){if(n.selections.length===0){let i=r.name.value,o=(0,Za.inspect)(t);e.reportError(new eu.GraphQLError(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:r}))}}else{let i=r.name.value,o=(0,Za.inspect)(t);e.reportError(new eu.GraphQLError(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:r}))}}}}});var iu=y(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.printPathArray=dE;function dE(e){return e.map(r=>typeof r=="number"?"["+r.toString()+"]":"."+r).join("")}});var Rn=y(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.addPath=fE;to.pathToArray=mE;function fE(e,r,t){return{prev:e,key:r,typename:t}}function mE(e){let r=[],t=e;for(;t;)r.push(t.key),t=t.prev;return r.reverse()}});var su=y(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.coerceInputValue=EE;var hE=$r(),no=J(),yE=Ie(),vE=Ui(),gE=dr(),tr=Rn(),TE=iu(),bE=Ur(),Dr=w(),Pn=Q();function EE(e,r,t=_E){return wn(e,r,t,void 0)}function _E(e,r,t){let n="Invalid value "+(0,no.inspect)(r);throw e.length>0&&(n+=` at "value${(0,TE.printPathArray)(e)}"`),t.message=n+": "+t.message,t}function wn(e,r,t,n){if((0,Pn.isNonNullType)(r)){if(e!=null)return wn(e,r.ofType,t,n);t((0,tr.pathToArray)(n),e,new Dr.GraphQLError(`Expected non-nullable type "${(0,no.inspect)(r)}" not to be null.`));return}if(e==null)return null;if((0,Pn.isListType)(r)){let i=r.ofType;return(0,vE.isIterableObject)(e)?Array.from(e,(o,s)=>{let a=(0,tr.addPath)(n,s,void 0);return wn(o,i,t,a)}):[wn(e,i,t,n)]}if((0,Pn.isInputObjectType)(r)){if(!(0,gE.isObjectLike)(e)||Array.isArray(e)){t((0,tr.pathToArray)(n),e,new Dr.GraphQLError(`Expected type "${r.name}" to be an object.`));return}let i={},o=r.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if((0,Pn.isNonNullType)(s.type)){let u=(0,no.inspect)(s.type);t((0,tr.pathToArray)(n),e,new Dr.GraphQLError(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=wn(a,s.type,t,(0,tr.addPath)(n,s.name,r.name))}for(let s of Object.keys(e))if(!o[s]){let a=(0,bE.suggestionList)(s,Object.keys(r.getFields()));t((0,tr.pathToArray)(n),e,new Dr.GraphQLError(`Field "${s}" is not defined by type "${r.name}".`+(0,hE.didYouMean)(a)))}if(r.isOneOf){let s=Object.keys(i);s.length!==1&&t((0,tr.pathToArray)(n),e,new Dr.GraphQLError(`Exactly one key must be specified for OneOf type "${r.name}".`));let a=s[0],u=i[a];u===null&&t((0,tr.pathToArray)(n).concat(a),u,new Dr.GraphQLError(`Field "${a}" must be non-null.`))}return i}if((0,Pn.isLeafType)(r)){let i;try{i=r.parseValue(e)}catch(o){o instanceof Dr.GraphQLError?t((0,tr.pathToArray)(n),e,o):t((0,tr.pathToArray)(n),e,new Dr.GraphQLError(`Expected type "${r.name}". `+o.message,{originalError:o}));return}return i===void 0&&t((0,tr.pathToArray)(n),e,new Dr.GraphQLError(`Expected type "${r.name}".`)),i}(0,yE.invariant)(!1,"Unexpected input type: "+(0,no.inspect)(r))}});var xn=y(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.valueFromAST=jn;var OE=J(),NE=Ie(),IE=Qr(),qt=$(),ft=Q();function jn(e,r,t){if(e){if(e.kind===qt.Kind.VARIABLE){let n=e.name.value;if(t==null||t[n]===void 0)return;let i=t[n];return i===null&&(0,ft.isNonNullType)(r)?void 0:i}if((0,ft.isNonNullType)(r))return e.kind===qt.Kind.NULL?void 0:jn(e,r.ofType,t);if(e.kind===qt.Kind.NULL)return null;if((0,ft.isListType)(r)){let n=r.ofType;if(e.kind===qt.Kind.LIST){let o=[];for(let s of e.values)if(Zd(s,t)){if((0,ft.isNonNullType)(n))return;o.push(null)}else{let a=jn(s,n,t);if(a===void 0)return;o.push(a)}return o}let i=jn(e,n,t);return i===void 0?void 0:[i]}if((0,ft.isInputObjectType)(r)){if(e.kind!==qt.Kind.OBJECT)return;let n=Object.create(null),i=(0,IE.keyMap)(e.fields,o=>o.name.value);for(let o of Object.values(r.getFields())){let s=i[o.name];if(!s||Zd(s.value,t)){if(o.defaultValue!==void 0)n[o.name]=o.defaultValue;else if((0,ft.isNonNullType)(o.type))return;continue}let a=jn(s.value,o.type,t);if(a===void 0)return;n[o.name]=a}if(r.isOneOf){let o=Object.keys(n);if(o.length!==1||n[o[0]]===null)return}return n}if((0,ft.isLeafType)(r)){let n;try{n=r.parseLiteral(e,t)}catch{return}return n===void 0?void 0:n}(0,NE.invariant)(!1,"Unexpected input type: "+(0,OE.inspect)(r))}}function Zd(e,r){return e.kind===qt.Kind.VARIABLE&&(r==null||r[e.name.value]===void 0)}});var Vt=y(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.getArgumentValues=nf;kn.getDirectiveValues=wE;kn.getVariableValues=RE;var Mt=J(),SE=Qr(),LE=iu(),Ar=w(),ef=$(),rf=ke(),Gt=Q(),DE=su(),AE=yr(),tf=xn();function RE(e,r,t,n){let i=[],o=n?.maxErrors;try{let s=PE(e,r,t,a=>{if(o!=null&&i.length>=o)throw new Ar.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function PE(e,r,t,n){let i={};for(let o of r){let s=o.variable.name.value,a=(0,AE.typeFromAST)(e,o.type);if(!(0,Gt.isInputType)(a)){let c=(0,rf.print)(o.type);n(new Ar.GraphQLError(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!of(t,s)){if(o.defaultValue)i[s]=(0,tf.valueFromAST)(o.defaultValue,a);else if((0,Gt.isNonNullType)(a)){let c=(0,Mt.inspect)(a);n(new Ar.GraphQLError(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=t[s];if(u===null&&(0,Gt.isNonNullType)(a)){let c=(0,Mt.inspect)(a);n(new Ar.GraphQLError(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=(0,DE.coerceInputValue)(u,a,(c,l,p)=>{let d=`Variable "$${s}" got invalid value `+(0,Mt.inspect)(l);c.length>0&&(d+=` at "${s}${(0,LE.printPathArray)(c)}"`),n(new Ar.GraphQLError(d+"; "+p.message,{nodes:o,originalError:p}))})}return i}function nf(e,r,t){var n;let i={},o=(n=r.arguments)!==null&&n!==void 0?n:[],s=(0,SE.keyMap)(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Gt.isNonNullType)(c))throw new Ar.GraphQLError(`Argument "${u}" of required type "${(0,Mt.inspect)(c)}" was not provided.`,{nodes:r});continue}let p=l.value,d=p.kind===ef.Kind.NULL;if(p.kind===ef.Kind.VARIABLE){let h=p.name.value;if(t==null||!of(t,h)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Gt.isNonNullType)(c))throw new Ar.GraphQLError(`Argument "${u}" of required type "${(0,Mt.inspect)(c)}" was provided the variable "$${h}" which was not provided a runtime value.`,{nodes:p});continue}d=t[h]==null}if(d&&(0,Gt.isNonNullType)(c))throw new Ar.GraphQLError(`Argument "${u}" of non-null type "${(0,Mt.inspect)(c)}" must not be null.`,{nodes:p});let m=(0,tf.valueFromAST)(p,c,t);if(m===void 0)throw new Ar.GraphQLError(`Argument "${u}" has invalid value ${(0,rf.print)(p)}.`,{nodes:p});i[u]=m}return i}function wE(e,r,t){var n;let i=(n=r.directives)===null||n===void 0?void 0:n.find(o=>o.name.value===e.name);if(i)return nf(e,i,t)}function of(e,r){return Object.prototype.hasOwnProperty.call(e,r)}});var so=y(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.collectFields=kE;oo.collectSubfields=FE;var uu=$(),jE=Q(),sf=we(),xE=yr(),af=Vt();function kE(e,r,t,n,i){let o=new Map;return io(e,r,t,n,i,o,new Set),o}function FE(e,r,t,n,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&io(e,r,t,n,a.selectionSet,o,s);return o}function io(e,r,t,n,i,o,s){for(let a of i.selections)switch(a.kind){case uu.Kind.FIELD:{if(!cu(t,a))continue;let u=CE(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case uu.Kind.INLINE_FRAGMENT:{if(!cu(t,a)||!uf(e,a,n))continue;io(e,r,t,n,a.selectionSet,o,s);break}case uu.Kind.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!cu(t,a))continue;s.add(u);let c=r[u];if(!c||!uf(e,c,n))continue;io(e,r,t,n,c.selectionSet,o,s);break}}}function cu(e,r){let t=(0,af.getDirectiveValues)(sf.GraphQLSkipDirective,r,e);if(t?.if===!0)return!1;let n=(0,af.getDirectiveValues)(sf.GraphQLIncludeDirective,r,e);return n?.if!==!1}function uf(e,r,t){let n=r.typeCondition;if(!n)return!0;let i=(0,xE.typeFromAST)(e,n);return i===t?!0:(0,jE.isAbstractType)(i)?e.isSubType(i,t):!1}function CE(e){return e.alias?e.alias.value:e.name.value}});var pu=y(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.SingleFieldSubscriptionsRule=GE;var cf=w(),qE=$(),ME=so();function GE(e){return{OperationDefinition(r){if(r.operation==="subscription"){let t=e.getSchema(),n=t.getSubscriptionType();if(n){let i=r.name?r.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===qE.Kind.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=(0,ME.collectFields)(t,a,o,n,r.selectionSet);if(u.size>1){let p=[...u.values()].slice(1).flat();e.reportError(new cf.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:p}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new cf.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}});var ao=y(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.groupBy=VE;function VE(e,r){let t=new Map;for(let n of e){let i=r(n),o=t.get(i);o===void 0?t.set(i,[n]):o.push(n)}return t}});var mu=y(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.UniqueArgumentDefinitionNamesRule=UE;var $E=ao(),QE=w();function UE(e){return{DirectiveDefinition(n){var i;let o=(i=n.arguments)!==null&&i!==void 0?i:[];return t(`@${n.name.value}`,o)},InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(n){var i;let o=n.name.value,s=(i=n.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];t(`${o}.${c}`,l)}return!1}function t(n,i){let o=(0,$E.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new QE.GraphQLError(`Argument "${n}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}});var yu=y(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.UniqueArgumentNamesRule=YE;var KE=ao(),BE=w();function YE(e){return{Field:r,Directive:r};function r(t){var n;let i=(n=t.arguments)!==null&&n!==void 0?n:[],o=(0,KE.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new BE.GraphQLError(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}});var gu=y(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.UniqueDirectiveNamesRule=HE;var lf=w();function HE(e){let r=Object.create(null),t=e.getSchema();return{DirectiveDefinition(n){let i=n.name.value;if(t!=null&&t.getDirective(i)){e.reportError(new lf.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return r[i]?e.reportError(new lf.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[r[i],n.name]})):r[i]=n.name,!1}}}});var Eu=y(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.UniqueDirectivesPerLocationRule=XE;var WE=w(),Tu=$(),pf=dt(),JE=we();function XE(e){let r=Object.create(null),t=e.getSchema(),n=t?t.getDirectives():JE.specifiedDirectives;for(let a of n)r[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===Tu.Kind.DIRECTIVE_DEFINITION&&(r[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===Tu.Kind.SCHEMA_DEFINITION||a.kind===Tu.Kind.SCHEMA_EXTENSION)u=o;else if((0,pf.isTypeDefinitionNode)(a)||(0,pf.isTypeExtensionNode)(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;r[l]&&(u[l]?e.reportError(new WE.GraphQLError(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}});var Ou=y(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.UniqueEnumValueNamesRule=ZE;var df=w(),zE=Q();function ZE(e){let r=e.getSchema(),t=r?r.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;n[a]||(n[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=n[a];for(let l of u){let p=l.name.value,d=t[a];(0,zE.isEnumType)(d)&&d.getValue(p)?e.reportError(new df.GraphQLError(`Enum value "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new df.GraphQLError(`Enum value "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}});var Su=y(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.UniqueFieldDefinitionNamesRule=e_;var ff=w(),Nu=Q();function e_(e){let r=e.getSchema(),t=r?r.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s;let a=o.name.value;n[a]||(n[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=n[a];for(let l of u){let p=l.name.value;r_(t[a],p)?e.reportError(new ff.GraphQLError(`Field "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new ff.GraphQLError(`Field "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}function r_(e,r){return(0,Nu.isObjectType)(e)||(0,Nu.isInterfaceType)(e)||(0,Nu.isInputObjectType)(e)?e.getFields()[r]!=null:!1}});var Du=y(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.UniqueFragmentNamesRule=n_;var t_=w();function n_(e){let r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(t){let n=t.name.value;return r[n]?e.reportError(new t_.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[r[n],t.name]})):r[n]=t.name,!1}}}});var Ru=y(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.UniqueInputFieldNamesRule=s_;var i_=Ie(),o_=w();function s_(e){let r=[],t=Object.create(null);return{ObjectValue:{enter(){r.push(t),t=Object.create(null)},leave(){let n=r.pop();n||(0,i_.invariant)(!1),t=n}},ObjectField(n){let i=n.name.value;t[i]?e.reportError(new o_.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name}}}});var wu=y(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.UniqueOperationNamesRule=u_;var a_=w();function u_(e){let r=Object.create(null);return{OperationDefinition(t){let n=t.name;return n&&(r[n.value]?e.reportError(new a_.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[r[n.value],n]})):r[n.value]=n),!1},FragmentDefinition:()=>!1}}});var xu=y(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.UniqueOperationTypesRule=c_;var mf=w();function c_(e){let r=e.getSchema(),t=Object.create(null),n=r?{query:r.getQueryType(),mutation:r.getMutationType(),subscription:r.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=t[c];n[c]?e.reportError(new mf.GraphQLError(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new mf.GraphQLError(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):t[c]=u}return!1}}});var Fu=y(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.UniqueTypeNamesRule=l_;var hf=w();function l_(e){let r=Object.create(null),t=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){let o=i.name.value;if(t!=null&&t.getType(o)){e.reportError(new hf.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return r[o]?e.reportError(new hf.GraphQLError(`There can be only one type named "${o}".`,{nodes:[r[o],i.name]})):r[o]=i.name,!1}}});var qu=y(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.UniqueVariableNamesRule=f_;var p_=ao(),d_=w();function f_(e){return{OperationDefinition(r){var t;let n=(t=r.variableDefinitions)!==null&&t!==void 0?t:[],i=(0,p_.groupBy)(n,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new d_.GraphQLError(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}});var Gu=y(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.ValuesOfCorrectTypeRule=g_;var m_=$r(),Fn=J(),h_=Qr(),y_=Ur(),Rr=w(),v_=$(),uo=ke(),vr=Q();function g_(e){let r={};return{OperationDefinition:{enter(){r={}}},VariableDefinition(t){r[t.variable.name.value]=t},ListValue(t){let n=(0,vr.getNullableType)(e.getParentInputType());if(!(0,vr.isListType)(n))return mt(e,t),!1},ObjectValue(t){let n=(0,vr.getNamedType)(e.getInputType());if(!(0,vr.isInputObjectType)(n))return mt(e,t),!1;let i=(0,h_.keyMap)(t.fields,o=>o.name.value);for(let o of Object.values(n.getFields()))if(!i[o.name]&&(0,vr.isRequiredInputField)(o)){let a=(0,Fn.inspect)(o.type);e.reportError(new Rr.GraphQLError(`Field "${n.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:t}))}n.isOneOf&&T_(e,t,n,i)},ObjectField(t){let n=(0,vr.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,vr.isInputObjectType)(n)){let o=(0,y_.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new Rr.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,m_.didYouMean)(o),{nodes:t}))}},NullValue(t){let n=e.getInputType();(0,vr.isNonNullType)(n)&&e.reportError(new Rr.GraphQLError(`Expected value of type "${(0,Fn.inspect)(n)}", found ${(0,uo.print)(t)}.`,{nodes:t}))},EnumValue:t=>mt(e,t),IntValue:t=>mt(e,t),FloatValue:t=>mt(e,t),StringValue:t=>mt(e,t),BooleanValue:t=>mt(e,t)}}function mt(e,r){let t=e.getInputType();if(!t)return;let n=(0,vr.getNamedType)(t);if(!(0,vr.isLeafType)(n)){let i=(0,Fn.inspect)(t);e.reportError(new Rr.GraphQLError(`Expected value of type "${i}", found ${(0,uo.print)(r)}.`,{nodes:r}));return}try{if(n.parseLiteral(r,void 0)===void 0){let o=(0,Fn.inspect)(t);e.reportError(new Rr.GraphQLError(`Expected value of type "${o}", found ${(0,uo.print)(r)}.`,{nodes:r}))}}catch(i){let o=(0,Fn.inspect)(t);i instanceof Rr.GraphQLError?e.reportError(i):e.reportError(new Rr.GraphQLError(`Expected value of type "${o}", found ${(0,uo.print)(r)}; `+i.message,{nodes:r,originalError:i}))}}function T_(e,r,t,n){var i;let o=Object.keys(n);if(o.length!==1){e.reportError(new Rr.GraphQLError(`OneOf Input Object "${t.name}" must specify exactly one key.`,{nodes:[r]}));return}let a=(i=n[o[0]])===null||i===void 0?void 0:i.value;(!a||a.kind===v_.Kind.NULL)&&e.reportError(new Rr.GraphQLError(`Field "${t.name}.${o[0]}" must be non-null.`,{nodes:[r]}))}});var $u=y(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.VariablesAreInputTypesRule=N_;var b_=w(),E_=ke(),__=Q(),O_=yr();function N_(e){return{VariableDefinition(r){let t=(0,O_.typeFromAST)(e.getSchema(),r.type);if(t!==void 0&&!(0,__.isInputType)(t)){let n=r.variable.name.value,i=(0,E_.print)(r.type);e.reportError(new b_.GraphQLError(`Variable "$${n}" cannot be non-input type "${i}".`,{nodes:r.type}))}}}}});var Uu=y(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.VariablesInAllowedPositionRule=L_;var yf=J(),vf=w(),I_=$(),co=Q(),gf=vn(),S_=yr();function L_(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(t){let n=e.getRecursiveVariableUsages(t);for(let{node:i,type:o,defaultValue:s,parentType:a}of n){let u=i.name.value,c=r[u];if(c&&o){let l=e.getSchema(),p=(0,S_.typeFromAST)(l,c.type);if(p&&!D_(l,p,c.defaultValue,o,s)){let d=(0,yf.inspect)(p),m=(0,yf.inspect)(o);e.reportError(new vf.GraphQLError(`Variable "$${u}" of type "${d}" used in position expecting type "${m}".`,{nodes:[c,i]}))}(0,co.isInputObjectType)(a)&&a.isOneOf&&(0,co.isNullableType)(p)&&e.reportError(new vf.GraphQLError(`Variable "$${u}" is of type "${p}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[c,i]}))}}}},VariableDefinition(t){r[t.variable.name.value]=t}}}function D_(e,r,t,n,i){if((0,co.isNonNullType)(n)&&!(0,co.isNonNullType)(r)){if(!(t!=null&&t.kind!==I_.Kind.NULL)&&!(i!==void 0))return!1;let a=n.ofType;return(0,gf.isTypeSubTypeOf)(e,r,a)}return(0,gf.isTypeSubTypeOf)(e,r,n)}});var Ku=y(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.specifiedSDLRules=Hr.specifiedRules=Hr.recommendedRules=void 0;var A_=aa(),R_=ca(),P_=pa(),Tf=da(),bf=ya(),w_=ga(),Ef=Ea(),j_=Oa(),x_=Ia(),k_=La(),F_=Aa(),C_=Pa(),q_=ja(),M_=ka(),G_=Ka(),V_=Ha(),$_=Ja(),_f=za(),Q_=tu(),U_=pu(),K_=mu(),Of=yu(),B_=gu(),Nf=Eu(),Y_=Ou(),H_=Su(),W_=Du(),If=Ru(),J_=wu(),X_=xu(),z_=Fu(),Z_=qu(),eO=Gu(),rO=$u(),tO=Uu(),Sf=Object.freeze([k_.MaxIntrospectionDepthRule]);Hr.recommendedRules=Sf;var nO=Object.freeze([A_.ExecutableDefinitionsRule,J_.UniqueOperationNamesRule,j_.LoneAnonymousOperationRule,U_.SingleFieldSubscriptionsRule,Ef.KnownTypeNamesRule,P_.FragmentsOnCompositeTypesRule,rO.VariablesAreInputTypesRule,Q_.ScalarLeafsRule,R_.FieldsOnCorrectTypeRule,W_.UniqueFragmentNamesRule,w_.KnownFragmentNamesRule,q_.NoUnusedFragmentsRule,V_.PossibleFragmentSpreadsRule,F_.NoFragmentCyclesRule,Z_.UniqueVariableNamesRule,C_.NoUndefinedVariablesRule,M_.NoUnusedVariablesRule,bf.KnownDirectivesRule,Nf.UniqueDirectivesPerLocationRule,Tf.KnownArgumentNamesRule,Of.UniqueArgumentNamesRule,eO.ValuesOfCorrectTypeRule,_f.ProvidedRequiredArgumentsRule,tO.VariablesInAllowedPositionRule,G_.OverlappingFieldsCanBeMergedRule,If.UniqueInputFieldNamesRule,...Sf]);Hr.specifiedRules=nO;var iO=Object.freeze([x_.LoneSchemaDefinitionRule,X_.UniqueOperationTypesRule,z_.UniqueTypeNamesRule,Y_.UniqueEnumValueNamesRule,H_.UniqueFieldDefinitionNamesRule,K_.UniqueArgumentDefinitionNamesRule,B_.UniqueDirectiveNamesRule,Ef.KnownTypeNamesRule,bf.KnownDirectivesRule,Nf.UniqueDirectivesPerLocationRule,$_.PossibleTypeExtensionsRule,Tf.KnownArgumentNamesOnDirectivesRule,Of.UniqueArgumentNamesRule,If.UniqueInputFieldNamesRule,_f.ProvidedRequiredArgumentsOnDirectivesRule]);Hr.specifiedSDLRules=iO});var Hu=y(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.ValidationContext=Wr.SDLValidationContext=Wr.ASTValidationContext=void 0;var Lf=$(),oO=it(),Df=Hi(),Cn=class{constructor(r,t){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(r){this._onError(r)}getDocument(){return this._ast}getFragment(r){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(let n of this.getDocument().definitions)n.kind===Lf.Kind.FRAGMENT_DEFINITION&&(t[n.name.value]=n);this._fragments=t}return t[r]}getFragmentSpreads(r){let t=this._fragmentSpreads.get(r);if(!t){t=[];let n=[r],i;for(;i=n.pop();)for(let o of i.selections)o.kind===Lf.Kind.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet);this._fragmentSpreads.set(r,t)}return t}getRecursivelyReferencedFragments(r){let t=this._recursivelyReferencedFragments.get(r);if(!t){t=[];let n=Object.create(null),i=[r.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(n[a]!==!0){n[a]=!0;let u=this.getFragment(a);u&&(t.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(r,t)}return t}};Wr.ASTValidationContext=Cn;var Bu=class extends Cn{constructor(r,t,n){super(r,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Wr.SDLValidationContext=Bu;var Yu=class extends Cn{constructor(r,t,n,i){super(t,i),this._schema=r,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(r){let t=this._variableUsages.get(r);if(!t){let n=[],i=new Df.TypeInfo(this._schema);(0,oO.visit)(r,(0,Df.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(o){n.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),t=n,this._variableUsages.set(r,t)}return t}getRecursiveVariableUsages(r){let t=this._recursiveVariableUsages.get(r);if(!t){t=this.getVariableUsages(r);for(let n of this.getRecursivelyReferencedFragments(r))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(r,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Wr.ValidationContext=Yu});var qn=y($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.assertValidSDL=lO;$t.assertValidSDLExtension=pO;$t.validate=cO;$t.validateSDL=Wu;var sO=Ae(),aO=w(),lo=it(),uO=Ln(),Af=Hi(),Rf=Ku(),Pf=Hu();function cO(e,r,t=Rf.specifiedRules,n,i=new Af.TypeInfo(e)){var o;let s=(o=n?.maxErrors)!==null&&o!==void 0?o:100;r||(0,sO.devAssert)(!1,"Must provide document."),(0,uO.assertValidSchema)(e);let a=Object.freeze({}),u=[],c=new Pf.ValidationContext(e,r,i,p=>{if(u.length>=s)throw u.push(new aO.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(p)}),l=(0,lo.visitInParallel)(t.map(p=>p(c)));try{(0,lo.visit)(r,(0,Af.visitWithTypeInfo)(i,l))}catch(p){if(p!==a)throw p}return u}function Wu(e,r,t=Rf.specifiedSDLRules){let n=[],i=new Pf.SDLValidationContext(e,r,s=>{n.push(s)}),o=t.map(s=>s(i));return(0,lo.visit)(e,(0,lo.visitInParallel)(o)),n}function lO(e){let r=Wu(e);if(r.length!==0)throw new Error(r.map(t=>t.message).join(`
|
|
60
|
+
`))}var nv=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let i=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new hL.GraphQLError(t,{nodes:i}))}getErrors(){return this._errors}};function TL(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,$e.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,Qe.inspect)(n)}.`,(i=rv(t,tv.OperationTypeNode.QUERY))!==null&&i!==void 0?i:n.astNode)}let r=t.getMutationType();if(r&&!(0,$e.isObjectType)(r)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Qe.inspect)(r)}.`,(o=rv(t,tv.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:r.astNode)}let a=t.getSubscriptionType();if(a&&!(0,$e.isObjectType)(a)){var s;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Qe.inspect)(a)}.`,(s=rv(t,tv.OperationTypeNode.SUBSCRIPTION))!==null&&s!==void 0?s:a.astNode)}}function rv(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(i=>{var r;return(r=i?.operationTypes)!==null&&r!==void 0?r:[]}).find(i=>i.operation===t))===null||n===void 0?void 0:n.type}function $L(e){for(let n of e.schema.getDirectives()){if(!(0,aE.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,Qe.inspect)(n)}.`,n?.astNode);continue}vn(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let i of n.args)if(vn(e,i),(0,$e.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,Qe.inspect)(i.type)}.`,i.astNode),(0,$e.isRequiredArgument)(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[iv(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}function vn(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function EL(e){let t=wL(e),n=e.schema.getTypeMap();for(let i of Object.values(n)){if(!(0,$e.isNamedType)(i)){e.reportError(`Expected GraphQL named type but got: ${(0,Qe.inspect)(i)}.`,i.astNode);continue}(0,yL.isIntrospectionType)(i)||vn(e,i),(0,$e.isObjectType)(i)||(0,$e.isInterfaceType)(i)?(nE(e,i),iE(e,i)):(0,$e.isUnionType)(i)?IL(e,i):(0,$e.isEnumType)(i)?SL(e,i):(0,$e.isInputObjectType)(i)&&(NL(e,i),t(i))}}function nE(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(vn(e,a),!(0,$e.isOutputType)(a.type)){var i;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,Qe.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}for(let s of a.args){let u=s.name;if(vn(e,s),!(0,$e.isInputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${a.name}(${u}:) must be Input Type but got: ${(0,Qe.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if((0,$e.isRequiredArgument)(s)&&s.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${a.name}(${u}:) cannot be deprecated.`,[iv(s.astNode),(o=s.astNode)===null||o===void 0?void 0:o.type])}}}}function iE(e,t){let n=Object.create(null);for(let i of t.getInterfaces()){if(!(0,$e.isInterfaceType)(i)){e.reportError(`Type ${(0,Qe.inspect)(t)} must only implement Interface types, it cannot implement ${(0,Qe.inspect)(i)}.`,qo(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,qo(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,qo(t,i));continue}n[i.name]=!0,OL(e,t,i),xL(e,t,i)}}function xL(e,t,n){let i=t.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=i[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,rE.isTypeSubTypeOf)(e.schema,l.type,u.type)){var r,o;e.reportError(`Interface field ${n.name}.${c} expects type ${(0,Qe.inspect)(u.type)} but ${t.name}.${c} is type ${(0,Qe.inspect)(l.type)}.`,[(r=u.astNode)===null||r===void 0?void 0:r.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let d of u.args){let p=d.name,f=l.args.find(v=>v.name===p);if(!f){e.reportError(`Interface field argument ${n.name}.${c}(${p}:) expected but ${t.name}.${c} does not provide it.`,[d.astNode,l.astNode]);continue}if(!(0,rE.isEqualType)(d.type,f.type)){var a,s;e.reportError(`Interface field argument ${n.name}.${c}(${p}:) expects type ${(0,Qe.inspect)(d.type)} but ${t.name}.${c}(${p}:) is type ${(0,Qe.inspect)(f.type)}.`,[(a=d.astNode)===null||a===void 0?void 0:a.type,(s=f.astNode)===null||s===void 0?void 0:s.type])}}for(let d of l.args){let p=d.name;!u.args.find(v=>v.name===p)&&(0,$e.isRequiredArgument)(d)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${p} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,u.astNode])}}}function OL(e,t,n){let i=t.getInterfaces();for(let r of n.getInterfaces())i.includes(r)||e.reportError(r===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${r.name} because it is implemented by ${n.name}.`,[...qo(n,r),...qo(t,n)])}function IL(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let i=Object.create(null);for(let r of n){if(i[r.name]){e.reportError(`Union type ${t.name} can only include type ${r.name} once.`,oE(t,r.name));continue}i[r.name]=!0,(0,$e.isObjectType)(r)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,Qe.inspect)(r)}.`,oE(t,String(r)))}}function SL(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let i of n)vn(e,i)}function NL(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(vn(e,o),!(0,$e.isInputType)(o.type)){var i;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,Qe.inspect)(o.type)}.`,(i=o.astNode)===null||i===void 0?void 0:i.type)}if((0,$e.isRequiredInputField)(o)&&o.deprecationReason!=null){var r;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[iv(o.astNode),(r=o.astNode)===null||r===void 0?void 0:r.type])}t.isOneOf&&kL(t,o,e)}}function kL(e,t,n){if((0,$e.isNonNullType)(t.type)){var i;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(i=t.astNode)===null||i===void 0?void 0:i.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function wL(e){let t=Object.create(null),n=[],i=Object.create(null);return r;function r(o){if(t[o.name])return;t[o.name]=!0,i[o.name]=n.length;let a=Object.values(o.getFields());for(let s of a)if((0,$e.isNonNullType)(s.type)&&(0,$e.isInputObjectType)(s.type.ofType)){let u=s.type.ofType,c=i[u.name];if(n.push(s),c===void 0)r(u);else{let l=n.slice(c),d=l.map(p=>p.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${d}".`,l.map(p=>p.astNode))}n.pop()}i[o.name]=void 0}}function qo(e,t){let{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(o=>{var a;return(a=o.interfaces)!==null&&a!==void 0?a:[]}).filter(o=>o.name.value===t.name)}function oE(e,t){let{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(o=>{var a;return(a=o.types)!==null&&a!==void 0?a:[]}).filter(o=>o.name.value===t)}function iv(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===aE.GraphQLDeprecatedDirective.name)}});var Wt=y(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.typeFromAST=av;var ov=ee(),uE=te();function av(e,t){switch(t.kind){case ov.Kind.LIST_TYPE:{let n=av(e,t.type);return n&&new uE.GraphQLList(n)}case ov.Kind.NON_NULL_TYPE:{let n=av(e,t.type);return n&&new uE.GraphQLNonNull(n)}case ov.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var Yu=y(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.TypeInfo=void 0;Go.visitWithTypeInfo=jL;var DL=kt(),Ee=ee(),cE=cn(),xe=te(),yi=_t(),lE=Wt(),uv=class{constructor(t,n,i){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??PL,n&&((0,xe.isInputType)(n)&&this._inputTypeStack.push(n),(0,xe.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,xe.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case Ee.Kind.SELECTION_SET:{let r=(0,xe.getNamedType)(this.getType());this._parentTypeStack.push((0,xe.isCompositeType)(r)?r:void 0);break}case Ee.Kind.FIELD:{let r=this.getParentType(),o,a;r&&(o=this._getFieldDef(n,r,t),o&&(a=o.type)),this._fieldDefStack.push(o),this._typeStack.push((0,xe.isOutputType)(a)?a:void 0);break}case Ee.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Ee.Kind.OPERATION_DEFINITION:{let r=n.getRootType(t.operation);this._typeStack.push((0,xe.isObjectType)(r)?r:void 0);break}case Ee.Kind.INLINE_FRAGMENT:case Ee.Kind.FRAGMENT_DEFINITION:{let r=t.typeCondition,o=r?(0,lE.typeFromAST)(n,r):(0,xe.getNamedType)(this.getType());this._typeStack.push((0,xe.isOutputType)(o)?o:void 0);break}case Ee.Kind.VARIABLE_DEFINITION:{let r=(0,lE.typeFromAST)(n,t.type);this._inputTypeStack.push((0,xe.isInputType)(r)?r:void 0);break}case Ee.Kind.ARGUMENT:{var i;let r,o,a=(i=this.getDirective())!==null&&i!==void 0?i:this.getFieldDef();a&&(r=a.args.find(s=>s.name===t.name.value),r&&(o=r.type)),this._argument=r,this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,xe.isInputType)(o)?o:void 0);break}case Ee.Kind.LIST:{let r=(0,xe.getNullableType)(this.getInputType()),o=(0,xe.isListType)(r)?r.ofType:r;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,xe.isInputType)(o)?o:void 0);break}case Ee.Kind.OBJECT_FIELD:{let r=(0,xe.getNamedType)(this.getInputType()),o,a;(0,xe.isInputObjectType)(r)&&(a=r.getFields()[t.name.value],a&&(o=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push((0,xe.isInputType)(o)?o:void 0);break}case Ee.Kind.ENUM:{let r=(0,xe.getNamedType)(this.getInputType()),o;(0,xe.isEnumType)(r)&&(o=r.getValue(t.value)),this._enumValue=o;break}default:}}leave(t){switch(t.kind){case Ee.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Ee.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Ee.Kind.DIRECTIVE:this._directive=null;break;case Ee.Kind.OPERATION_DEFINITION:case Ee.Kind.INLINE_FRAGMENT:case Ee.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Ee.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Ee.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Ee.Kind.LIST:case Ee.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Ee.Kind.ENUM:this._enumValue=null;break;default:}}};Go.TypeInfo=uv;function PL(e,t,n){let i=n.name.value;if(i===yi.SchemaMetaFieldDef.name&&e.getQueryType()===t)return yi.SchemaMetaFieldDef;if(i===yi.TypeMetaFieldDef.name&&e.getQueryType()===t)return yi.TypeMetaFieldDef;if(i===yi.TypeNameMetaFieldDef.name&&(0,xe.isCompositeType)(t))return yi.TypeNameMetaFieldDef;if((0,xe.isObjectType)(t)||(0,xe.isInterfaceType)(t))return t.getFields()[i]}function jL(e,t){return{enter(...n){let i=n[0];e.enter(i);let r=(0,cE.getEnterLeaveForKind)(t,i.kind).enter;if(r){let o=r.apply(t,n);return o!==void 0&&(e.leave(i),(0,DL.isNode)(o)&&e.enter(o)),o}},leave(...n){let i=n[0],r=(0,cE.getEnterLeaveForKind)(t,i.kind).leave,o;return r&&(o=r.apply(t,n)),e.leave(i),o}}}});var hn=y(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.isConstValueNode=cv;lt.isDefinitionNode=LL;lt.isExecutableDefinitionNode=dE;lt.isSchemaCoordinateNode=CL;lt.isSelectionNode=AL;lt.isTypeDefinitionNode=mE;lt.isTypeExtensionNode=vE;lt.isTypeNode=RL;lt.isTypeSystemDefinitionNode=fE;lt.isTypeSystemExtensionNode=gE;lt.isValueNode=pE;var X=ee();function LL(e){return dE(e)||fE(e)||gE(e)}function dE(e){return e.kind===X.Kind.OPERATION_DEFINITION||e.kind===X.Kind.FRAGMENT_DEFINITION}function AL(e){return e.kind===X.Kind.FIELD||e.kind===X.Kind.FRAGMENT_SPREAD||e.kind===X.Kind.INLINE_FRAGMENT}function pE(e){return e.kind===X.Kind.VARIABLE||e.kind===X.Kind.INT||e.kind===X.Kind.FLOAT||e.kind===X.Kind.STRING||e.kind===X.Kind.BOOLEAN||e.kind===X.Kind.NULL||e.kind===X.Kind.ENUM||e.kind===X.Kind.LIST||e.kind===X.Kind.OBJECT}function cv(e){return pE(e)&&(e.kind===X.Kind.LIST?e.values.some(cv):e.kind===X.Kind.OBJECT?e.fields.some(t=>cv(t.value)):e.kind!==X.Kind.VARIABLE)}function RL(e){return e.kind===X.Kind.NAMED_TYPE||e.kind===X.Kind.LIST_TYPE||e.kind===X.Kind.NON_NULL_TYPE}function fE(e){return e.kind===X.Kind.SCHEMA_DEFINITION||mE(e)||e.kind===X.Kind.DIRECTIVE_DEFINITION}function mE(e){return e.kind===X.Kind.SCALAR_TYPE_DEFINITION||e.kind===X.Kind.OBJECT_TYPE_DEFINITION||e.kind===X.Kind.INTERFACE_TYPE_DEFINITION||e.kind===X.Kind.UNION_TYPE_DEFINITION||e.kind===X.Kind.ENUM_TYPE_DEFINITION||e.kind===X.Kind.INPUT_OBJECT_TYPE_DEFINITION}function gE(e){return e.kind===X.Kind.SCHEMA_EXTENSION||vE(e)}function vE(e){return e.kind===X.Kind.SCALAR_TYPE_EXTENSION||e.kind===X.Kind.OBJECT_TYPE_EXTENSION||e.kind===X.Kind.INTERFACE_TYPE_EXTENSION||e.kind===X.Kind.UNION_TYPE_EXTENSION||e.kind===X.Kind.ENUM_TYPE_EXTENSION||e.kind===X.Kind.INPUT_OBJECT_TYPE_EXTENSION}function CL(e){return e.kind===X.Kind.TYPE_COORDINATE||e.kind===X.Kind.MEMBER_COORDINATE||e.kind===X.Kind.ARGUMENT_COORDINATE||e.kind===X.Kind.DIRECTIVE_COORDINATE||e.kind===X.Kind.DIRECTIVE_ARGUMENT_COORDINATE}});var dv=y(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});lv.ExecutableDefinitionsRule=UL;var FL=U(),hE=ee(),zL=hn();function UL(e){return{Document(t){for(let n of t.definitions)if(!(0,zL.isExecutableDefinitionNode)(n)){let i=n.kind===hE.Kind.SCHEMA_DEFINITION||n.kind===hE.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new FL.GraphQLError(`The ${i} definition is not executable.`,{nodes:n}))}return!1}}}});var fv=y(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.FieldsOnCorrectTypeRule=GL;var yE=Cr(),ML=So(),qL=zr(),VL=U(),Ko=te();function GL(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let r=e.getSchema(),o=t.name.value,a=(0,yE.didYouMean)("to use an inline fragment on",KL(r,n,o));a===""&&(a=(0,yE.didYouMean)(QL(n,o))),e.reportError(new VL.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+a,{nodes:t}))}}}}function KL(e,t,n){if(!(0,Ko.isAbstractType)(t))return[];let i=new Set,r=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n]){i.add(a),r[a.name]=1;for(let s of a.getInterfaces()){var o;s.getFields()[n]&&(i.add(s),r[s.name]=((o=r[s.name])!==null&&o!==void 0?o:0)+1)}}return[...i].sort((a,s)=>{let u=r[s.name]-r[a.name];return u!==0?u:(0,Ko.isInterfaceType)(a)&&e.isSubType(a,s)?-1:(0,Ko.isInterfaceType)(s)&&e.isSubType(s,a)?1:(0,ML.naturalCompare)(a.name,s.name)}).map(a=>a.name)}function QL(e,t){if((0,Ko.isObjectType)(e)||(0,Ko.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,qL.suggestionList)(t,n)}return[]}});var gv=y(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});mv.FragmentsOnCompositeTypesRule=ZL;var bE=U(),_E=ct(),TE=te(),$E=Wt();function ZL(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let i=(0,$E.typeFromAST)(e.getSchema(),n);if(i&&!(0,TE.isCompositeType)(i)){let r=(0,_E.print)(n);e.reportError(new bE.GraphQLError(`Fragment cannot condition on non composite type "${r}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,$E.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,TE.isCompositeType)(n)){let i=(0,_E.print)(t.typeCondition);e.reportError(new bE.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${i}".`,{nodes:t.typeCondition}))}}}}});var vv=y(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.KnownArgumentNamesOnDirectivesRule=IE;Wu.KnownArgumentNamesRule=YL;var EE=Cr(),xE=zr(),OE=U(),BL=ee(),JL=it();function YL(e){return{...IE(e),Argument(t){let n=e.getArgument(),i=e.getFieldDef(),r=e.getParentType();if(!n&&i&&r){let o=t.name.value,a=i.args.map(u=>u.name),s=(0,xE.suggestionList)(o,a);e.reportError(new OE.GraphQLError(`Unknown argument "${o}" on field "${r.name}.${i.name}".`+(0,EE.didYouMean)(s),{nodes:t}))}}}}function IE(e){let t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():JL.specifiedDirectives;for(let a of i)t[a.name]=a.args.map(s=>s.name);let r=e.getDocument().definitions;for(let a of r)if(a.kind===BL.Kind.DIRECTIVE_DEFINITION){var o;let s=(o=a.arguments)!==null&&o!==void 0?o:[];t[a.name.value]=s.map(u=>u.name.value)}return{Directive(a){let s=a.name.value,u=t[s];if(a.arguments&&u)for(let c of a.arguments){let l=c.name.value;if(!u.includes(l)){let d=(0,xE.suggestionList)(l,u);e.reportError(new OE.GraphQLError(`Unknown argument "${l}" on directive "@${s}".`+(0,EE.didYouMean)(d),{nodes:c}))}}return!1}}}});var _v=y(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.KnownDirectivesRule=HL;var WL=se(),hv=Ge(),SE=U(),yv=kt(),Ce=di(),ve=ee(),XL=it();function HL(e){let t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():XL.specifiedDirectives;for(let o of i)t[o.name]=o.locations;let r=e.getDocument().definitions;for(let o of r)o.kind===ve.Kind.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(a=>a.value));return{Directive(o,a,s,u,c){let l=o.name.value,d=t[l];if(!d){e.reportError(new SE.GraphQLError(`Unknown directive "@${l}".`,{nodes:o}));return}let p=eA(c);p&&!d.includes(p)&&e.reportError(new SE.GraphQLError(`Directive "@${l}" may not be used on ${p}.`,{nodes:o}))}}}function eA(e){let t=e[e.length-1];switch("kind"in t||(0,hv.invariant)(!1),t.kind){case ve.Kind.OPERATION_DEFINITION:return tA(t.operation);case ve.Kind.FIELD:return Ce.DirectiveLocation.FIELD;case ve.Kind.FRAGMENT_SPREAD:return Ce.DirectiveLocation.FRAGMENT_SPREAD;case ve.Kind.INLINE_FRAGMENT:return Ce.DirectiveLocation.INLINE_FRAGMENT;case ve.Kind.FRAGMENT_DEFINITION:return Ce.DirectiveLocation.FRAGMENT_DEFINITION;case ve.Kind.VARIABLE_DEFINITION:return Ce.DirectiveLocation.VARIABLE_DEFINITION;case ve.Kind.SCHEMA_DEFINITION:case ve.Kind.SCHEMA_EXTENSION:return Ce.DirectiveLocation.SCHEMA;case ve.Kind.SCALAR_TYPE_DEFINITION:case ve.Kind.SCALAR_TYPE_EXTENSION:return Ce.DirectiveLocation.SCALAR;case ve.Kind.OBJECT_TYPE_DEFINITION:case ve.Kind.OBJECT_TYPE_EXTENSION:return Ce.DirectiveLocation.OBJECT;case ve.Kind.FIELD_DEFINITION:return Ce.DirectiveLocation.FIELD_DEFINITION;case ve.Kind.INTERFACE_TYPE_DEFINITION:case ve.Kind.INTERFACE_TYPE_EXTENSION:return Ce.DirectiveLocation.INTERFACE;case ve.Kind.UNION_TYPE_DEFINITION:case ve.Kind.UNION_TYPE_EXTENSION:return Ce.DirectiveLocation.UNION;case ve.Kind.ENUM_TYPE_DEFINITION:case ve.Kind.ENUM_TYPE_EXTENSION:return Ce.DirectiveLocation.ENUM;case ve.Kind.ENUM_VALUE_DEFINITION:return Ce.DirectiveLocation.ENUM_VALUE;case ve.Kind.INPUT_OBJECT_TYPE_DEFINITION:case ve.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Ce.DirectiveLocation.INPUT_OBJECT;case ve.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,hv.invariant)(!1),n.kind===ve.Kind.INPUT_OBJECT_TYPE_DEFINITION?Ce.DirectiveLocation.INPUT_FIELD_DEFINITION:Ce.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,hv.invariant)(!1,"Unexpected kind: "+(0,WL.inspect)(t.kind))}}function tA(e){switch(e){case yv.OperationTypeNode.QUERY:return Ce.DirectiveLocation.QUERY;case yv.OperationTypeNode.MUTATION:return Ce.DirectiveLocation.MUTATION;case yv.OperationTypeNode.SUBSCRIPTION:return Ce.DirectiveLocation.SUBSCRIPTION}}});var $v=y(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});Tv.KnownFragmentNamesRule=nA;var rA=U();function nA(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new rA.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var Ov=y(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.KnownTypeNamesRule=cA;var iA=Cr(),oA=zr(),aA=U(),Ev=hn(),sA=_t(),uA=Yt();function cA(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);for(let o of e.getDocument().definitions)(0,Ev.isTypeDefinitionNode)(o)&&(i[o.name.value]=!0);let r=[...Object.keys(n),...Object.keys(i)];return{NamedType(o,a,s,u,c){let l=o.name.value;if(!n[l]&&!i[l]){var d;let p=(d=c[2])!==null&&d!==void 0?d:s,f=p!=null&&lA(p);if(f&&NE.includes(l))return;let v=(0,oA.suggestionList)(l,f?NE.concat(r):r);e.reportError(new aA.GraphQLError(`Unknown type "${l}".`+(0,iA.didYouMean)(v),{nodes:o}))}}}}var NE=[...uA.specifiedScalarTypes,...sA.introspectionTypes].map(e=>e.name);function lA(e){return"kind"in e&&((0,Ev.isTypeSystemDefinitionNode)(e)||(0,Ev.isTypeSystemExtensionNode)(e))}});var Sv=y(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.LoneAnonymousOperationRule=fA;var dA=U(),pA=ee();function fA(e){let t=0;return{Document(n){t=n.definitions.filter(i=>i.kind===pA.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new dA.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var kv=y(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});Nv.LoneSchemaDefinitionRule=mA;var kE=U();function mA(e){var t,n,i;let r=e.getSchema(),o=(t=(n=(i=r?.astNode)!==null&&i!==void 0?i:r?.getQueryType())!==null&&n!==void 0?n:r?.getMutationType())!==null&&t!==void 0?t:r?.getSubscriptionType(),a=0;return{SchemaDefinition(s){if(o){e.reportError(new kE.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:s}));return}a>0&&e.reportError(new kE.GraphQLError("Must provide only one schema definition.",{nodes:s})),++a}}}});var Dv=y(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.MaxIntrospectionDepthRule=hA;var gA=U(),wE=ee(),vA=3;function hA(e){function t(n,i=Object.create(null),r=0){if(n.kind===wE.Kind.FRAGMENT_SPREAD){let o=n.name.value;if(i[o]===!0)return!1;let a=e.getFragment(o);if(!a)return!1;try{return i[o]=!0,t(a,i,r)}finally{i[o]=void 0}}if(n.kind===wE.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(r++,r>=vA))return!0;if("selectionSet"in n&&n.selectionSet){for(let o of n.selectionSet.selections)if(t(o,i,r))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new gA.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var jv=y(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.NoFragmentCyclesRule=bA;var yA=U();function bA(e){let t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return r(o),!1}};function r(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(s.length!==0){i[a]=n.length;for(let u of s){let c=u.name.value,l=i[c];if(n.push(u),l===void 0){let d=e.getFragment(c);d&&r(d)}else{let d=n.slice(l),p=d.slice(0,-1).map(f=>'"'+f.name.value+'"').join(", ");e.reportError(new yA.GraphQLError(`Cannot spread fragment "${c}" within itself`+(p!==""?` via ${p}.`:"."),{nodes:d}))}n.pop()}i[a]=void 0}}}});var Av=y(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});Lv.NoUndefinedVariablesRule=TA;var _A=U();function TA(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let i=e.getRecursiveVariableUsages(n);for(let{node:r}of i){let o=r.name.value;t[o]!==!0&&e.reportError(new _A.GraphQLError(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var Cv=y(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.NoUnusedFragmentsRule=EA;var $A=U();function EA(e){let t=[],n=[];return{OperationDefinition(i){return t.push(i),!1},FragmentDefinition(i){return n.push(i),!1},Document:{leave(){let i=Object.create(null);for(let r of t)for(let o of e.getRecursivelyReferencedFragments(r))i[o.name.value]=!0;for(let r of n){let o=r.name.value;i[o]!==!0&&e.reportError(new $A.GraphQLError(`Fragment "${o}" is never used.`,{nodes:r}))}}}}}});var zv=y(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});Fv.NoUnusedVariablesRule=OA;var xA=U();function OA(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let i=Object.create(null),r=e.getRecursiveVariableUsages(n);for(let{node:o}of r)i[o.name.value]=!0;for(let o of t){let a=o.variable.name.value;i[a]!==!0&&e.reportError(new xA.GraphQLError(n.name?`Variable "$${a}" is never used in operation "${n.name.value}".`:`Variable "$${a}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}});var qv=y(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});Mv.sortValueNode=Uv;var IA=So(),pr=ee();function Uv(e){switch(e.kind){case pr.Kind.OBJECT:return{...e,fields:SA(e.fields)};case pr.Kind.LIST:return{...e,values:e.values.map(Uv)};case pr.Kind.INT:case pr.Kind.FLOAT:case pr.Kind.STRING:case pr.Kind.BOOLEAN:case pr.Kind.NULL:case pr.Kind.ENUM:case pr.Kind.VARIABLE:return e}}function SA(e){return e.map(t=>({...t,value:Uv(t.value)})).sort((t,n)=>(0,IA.naturalCompare)(t.name.value,n.name.value))}});var Jv=y(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.OverlappingFieldsCanBeMergedRule=DA;var DE=se(),NA=U(),Vv=ee(),kA=ct(),ot=te(),wA=qv(),jE=Wt();function LE(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+LE(n)).join(" and "):e}function DA(e){let t=new tc,n=new Qv,i=new Map;return{SelectionSet(r){let o=PA(e,i,t,n,e.getParentType(),r);for(let[[a,s],u,c]of o){let l=LE(s);e.reportError(new NA.GraphQLError(`Fields "${a}" conflict because ${l}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(c)}))}}}}function PA(e,t,n,i,r,o){let a=[],[s,u]=ec(e,t,r,o);if(LA(e,a,t,n,i,s),u.length!==0)for(let c=0;c<u.length;c++){Xu(e,a,t,n,i,!1,s,u[c]);for(let l=c+1;l<u.length;l++)Hu(e,a,t,n,i,!1,u[c],u[l])}return a}function Xu(e,t,n,i,r,o,a,s){if(i.has(a,s,o))return;i.add(a,s,o);let u=e.getFragment(s);if(!u)return;let[c,l]=Kv(e,n,u);if(a!==c){Zv(e,t,n,i,r,o,a,c);for(let d of l)Xu(e,t,n,i,r,o,a,d)}}function Hu(e,t,n,i,r,o,a,s){if(a===s||r.has(a,s,o))return;r.add(a,s,o);let u=e.getFragment(a),c=e.getFragment(s);if(!u||!c)return;let[l,d]=Kv(e,n,u),[p,f]=Kv(e,n,c);Zv(e,t,n,i,r,o,l,p);for(let v of f)Hu(e,t,n,i,r,o,a,v);for(let v of d)Hu(e,t,n,i,r,o,v,s)}function jA(e,t,n,i,r,o,a,s,u){let c=[],[l,d]=ec(e,t,o,a),[p,f]=ec(e,t,s,u);Zv(e,c,t,n,i,r,l,p);for(let v of f)Xu(e,c,t,n,i,r,l,v);for(let v of d)Xu(e,c,t,n,i,r,p,v);for(let v of d)for(let _ of f)Hu(e,c,t,n,i,r,v,_);return c}function LA(e,t,n,i,r,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let u=0;u<s.length;u++)for(let c=u+1;c<s.length;c++){let l=AE(e,n,i,r,!1,a,s[u],s[c]);l&&t.push(l)}}function Zv(e,t,n,i,r,o,a,s){for(let[u,c]of Object.entries(a)){let l=s[u];if(l)for(let d of c)for(let p of l){let f=AE(e,n,i,r,o,u,d,p);f&&t.push(f)}}}function AE(e,t,n,i,r,o,a,s){let[u,c,l]=a,[d,p,f]=s,v=r||u!==d&&(0,ot.isObjectType)(u)&&(0,ot.isObjectType)(d);if(!v){let V=c.name.value,H=p.name.value;if(V!==H)return[[o,`"${V}" and "${H}" are different fields`],[c],[p]];if(!AA(c,p))return[[o,"they have differing arguments"],[c],[p]]}let _=l?.type,j=f?.type;if(_&&j&&Gv(_,j))return[[o,`they return conflicting types "${(0,DE.inspect)(_)}" and "${(0,DE.inspect)(j)}"`],[c],[p]];let z=c.selectionSet,k=p.selectionSet;if(z&&k){let V=jA(e,t,n,i,v,(0,ot.getNamedType)(_),z,(0,ot.getNamedType)(j),k);return RA(V,o,c,p)}}function AA(e,t){let n=e.arguments,i=t.arguments;if(n===void 0||n.length===0)return i===void 0||i.length===0;if(i===void 0||i.length===0||n.length!==i.length)return!1;let r=new Map(i.map(({name:o,value:a})=>[o.value,a]));return n.every(o=>{let a=o.value,s=r.get(o.name.value);return s===void 0?!1:PE(a)===PE(s)})}function PE(e){return(0,kA.print)((0,wA.sortValueNode)(e))}function Gv(e,t){return(0,ot.isListType)(e)?(0,ot.isListType)(t)?Gv(e.ofType,t.ofType):!0:(0,ot.isListType)(t)?!0:(0,ot.isNonNullType)(e)?(0,ot.isNonNullType)(t)?Gv(e.ofType,t.ofType):!0:(0,ot.isNonNullType)(t)?!0:(0,ot.isLeafType)(e)||(0,ot.isLeafType)(t)?e!==t:!1}function ec(e,t,n,i){let r=t.get(i);if(r)return r;let o=Object.create(null),a=Object.create(null);RE(e,n,i,o,a);let s=[o,Object.keys(a)];return t.set(i,s),s}function Kv(e,t,n){let i=t.get(n.selectionSet);if(i)return i;let r=(0,jE.typeFromAST)(e.getSchema(),n.typeCondition);return ec(e,t,r,n.selectionSet)}function RE(e,t,n,i,r){for(let o of n.selections)switch(o.kind){case Vv.Kind.FIELD:{let a=o.name.value,s;((0,ot.isObjectType)(t)||(0,ot.isInterfaceType)(t))&&(s=t.getFields()[a]);let u=o.alias?o.alias.value:a;i[u]||(i[u]=[]),i[u].push([t,o,s]);break}case Vv.Kind.FRAGMENT_SPREAD:r[o.name.value]=!0;break;case Vv.Kind.INLINE_FRAGMENT:{let a=o.typeCondition,s=a?(0,jE.typeFromAST)(e.getSchema(),a):t;RE(e,s,o.selectionSet,i,r);break}}}function RA(e,t,n,i){if(e.length>0)return[[t,e.map(([r])=>r)],[n,...e.map(([,r])=>r).flat()],[i,...e.map(([,,r])=>r).flat()]]}var tc=class{constructor(){this._data=new Map}has(t,n,i){var r;let o=(r=this._data.get(t))===null||r===void 0?void 0:r.get(n);return o===void 0?!1:i?!0:i===o}add(t,n,i){let r=this._data.get(t);r===void 0?this._data.set(t,new Map([[n,i]])):r.set(n,i)}},Qv=class{constructor(){this._orderedPairSet=new tc}has(t,n,i){return t<n?this._orderedPairSet.has(t,n,i):this._orderedPairSet.has(n,t,i)}add(t,n,i){t<n?this._orderedPairSet.add(t,n,i):this._orderedPairSet.add(n,t,i)}}});var Xv=y(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.PossibleFragmentSpreadsRule=FA;var rc=se(),CE=U(),Yv=te(),FE=jo(),CA=Wt();function FA(e){return{InlineFragment(t){let n=e.getType(),i=e.getParentType();if((0,Yv.isCompositeType)(n)&&(0,Yv.isCompositeType)(i)&&!(0,FE.doTypesOverlap)(e.getSchema(),n,i)){let r=(0,rc.inspect)(i),o=(0,rc.inspect)(n);e.reportError(new CE.GraphQLError(`Fragment cannot be spread here as objects of type "${r}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,i=zA(e,n),r=e.getParentType();if(i&&r&&!(0,FE.doTypesOverlap)(e.getSchema(),i,r)){let o=(0,rc.inspect)(r),a=(0,rc.inspect)(i);e.reportError(new CE.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function zA(e,t){let n=e.getFragment(t);if(n){let i=(0,CA.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Yv.isCompositeType)(i))return i}}});var eh=y(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});Hv.PossibleTypeExtensionsRule=VA;var UA=Cr(),UE=se(),ME=Ge(),MA=zr(),zE=U(),be=ee(),qA=hn(),bi=te();function VA(e){let t=e.getSchema(),n=Object.create(null);for(let r of e.getDocument().definitions)(0,qA.isTypeDefinitionNode)(r)&&(n[r.name.value]=r);return{ScalarTypeExtension:i,ObjectTypeExtension:i,InterfaceTypeExtension:i,UnionTypeExtension:i,EnumTypeExtension:i,InputObjectTypeExtension:i};function i(r){let o=r.name.value,a=n[o],s=t?.getType(o),u;if(a?u=GA[a.kind]:s&&(u=KA(s)),u){if(u!==r.kind){let c=QA(r.kind);e.reportError(new zE.GraphQLError(`Cannot extend non-${c} type "${o}".`,{nodes:a?[a,r]:r}))}}else{let c=Object.keys({...n,...t?.getTypeMap()}),l=(0,MA.suggestionList)(o,c);e.reportError(new zE.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,UA.didYouMean)(l),{nodes:r.name}))}}}var GA={[be.Kind.SCALAR_TYPE_DEFINITION]:be.Kind.SCALAR_TYPE_EXTENSION,[be.Kind.OBJECT_TYPE_DEFINITION]:be.Kind.OBJECT_TYPE_EXTENSION,[be.Kind.INTERFACE_TYPE_DEFINITION]:be.Kind.INTERFACE_TYPE_EXTENSION,[be.Kind.UNION_TYPE_DEFINITION]:be.Kind.UNION_TYPE_EXTENSION,[be.Kind.ENUM_TYPE_DEFINITION]:be.Kind.ENUM_TYPE_EXTENSION,[be.Kind.INPUT_OBJECT_TYPE_DEFINITION]:be.Kind.INPUT_OBJECT_TYPE_EXTENSION};function KA(e){if((0,bi.isScalarType)(e))return be.Kind.SCALAR_TYPE_EXTENSION;if((0,bi.isObjectType)(e))return be.Kind.OBJECT_TYPE_EXTENSION;if((0,bi.isInterfaceType)(e))return be.Kind.INTERFACE_TYPE_EXTENSION;if((0,bi.isUnionType)(e))return be.Kind.UNION_TYPE_EXTENSION;if((0,bi.isEnumType)(e))return be.Kind.ENUM_TYPE_EXTENSION;if((0,bi.isInputObjectType)(e))return be.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,ME.invariant)(!1,"Unexpected type: "+(0,UE.inspect)(e))}function QA(e){switch(e){case be.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case be.Kind.OBJECT_TYPE_EXTENSION:return"object";case be.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case be.Kind.UNION_TYPE_EXTENSION:return"union";case be.Kind.ENUM_TYPE_EXTENSION:return"enum";case be.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,ME.invariant)(!1,"Unexpected kind: "+(0,UE.inspect)(e))}}});var rh=y(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.ProvidedRequiredArgumentsOnDirectivesRule=QE;nc.ProvidedRequiredArgumentsRule=JA;var VE=se(),qE=Fr(),GE=U(),KE=ee(),ZA=ct(),th=te(),BA=it();function JA(e){return{...QE(e),Field:{leave(t){var n;let i=e.getFieldDef();if(!i)return!1;let r=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of i.args)if(!r.has(o.name)&&(0,th.isRequiredArgument)(o)){let a=(0,VE.inspect)(o.type);e.reportError(new GE.GraphQLError(`Field "${i.name}" argument "${o.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function QE(e){var t;let n=Object.create(null),i=e.getSchema(),r=(t=i?.getDirectives())!==null&&t!==void 0?t:BA.specifiedDirectives;for(let s of r)n[s.name]=(0,qE.keyMap)(s.args.filter(th.isRequiredArgument),u=>u.name);let o=e.getDocument().definitions;for(let s of o)if(s.kind===KE.Kind.DIRECTIVE_DEFINITION){var a;let u=(a=s.arguments)!==null&&a!==void 0?a:[];n[s.name.value]=(0,qE.keyMap)(u.filter(YA),c=>c.name.value)}return{Directive:{leave(s){let u=s.name.value,c=n[u];if(c){var l;let d=(l=s.arguments)!==null&&l!==void 0?l:[],p=new Set(d.map(f=>f.name.value));for(let[f,v]of Object.entries(c))if(!p.has(f)){let _=(0,th.isType)(v.type)?(0,VE.inspect)(v.type):(0,ZA.print)(v.type);e.reportError(new GE.GraphQLError(`Directive "@${u}" argument "${f}" of type "${_}" is required, but it was not provided.`,{nodes:s}))}}}}}}function YA(e){return e.type.kind===KE.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var ah=y(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.ScalarLeafsRule=WA;var nh=se(),ih=U(),ZE=te();function WA(e){return{Field(t){let n=e.getType(),i=t.selectionSet;if(n)if((0,ZE.isLeafType)((0,ZE.getNamedType)(n))){if(i){let r=t.name.value,o=(0,nh.inspect)(n);e.reportError(new ih.GraphQLError(`Field "${r}" must not have a selection since type "${o}" has no subfields.`,{nodes:i}))}}else if(i){if(i.selections.length===0){let r=t.name.value,o=(0,nh.inspect)(n);e.reportError(new ih.GraphQLError(`Field "${r}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,o=(0,nh.inspect)(n);e.reportError(new ih.GraphQLError(`Field "${r}" of type "${o}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}});var uh=y(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.printPathArray=XA;function XA(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Qo=y(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.addPath=HA;ic.pathToArray=eR;function HA(e,t,n){return{prev:e,key:t,typename:n}}function eR(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var lh=y(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.coerceInputValue=sR;var tR=Cr(),oc=se(),rR=Ge(),nR=Qu(),iR=Zt(),At=Qo(),oR=uh(),aR=zr(),fr=U(),Zo=te();function sR(e,t,n=uR){return Bo(e,t,n,void 0)}function uR(e,t,n){let i="Invalid value "+(0,oc.inspect)(t);throw e.length>0&&(i+=` at "value${(0,oR.printPathArray)(e)}"`),n.message=i+": "+n.message,n}function Bo(e,t,n,i){if((0,Zo.isNonNullType)(t)){if(e!=null)return Bo(e,t.ofType,n,i);n((0,At.pathToArray)(i),e,new fr.GraphQLError(`Expected non-nullable type "${(0,oc.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Zo.isListType)(t)){let r=t.ofType;return(0,nR.isIterableObject)(e)?Array.from(e,(o,a)=>{let s=(0,At.addPath)(i,a,void 0);return Bo(o,r,n,s)}):[Bo(e,r,n,i)]}if((0,Zo.isInputObjectType)(t)){if(!(0,iR.isObjectLike)(e)||Array.isArray(e)){n((0,At.pathToArray)(i),e,new fr.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let r={},o=t.getFields();for(let a of Object.values(o)){let s=e[a.name];if(s===void 0){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,Zo.isNonNullType)(a.type)){let u=(0,oc.inspect)(a.type);n((0,At.pathToArray)(i),e,new fr.GraphQLError(`Field "${a.name}" of required type "${u}" was not provided.`))}continue}r[a.name]=Bo(s,a.type,n,(0,At.addPath)(i,a.name,t.name))}for(let a of Object.keys(e))if(!o[a]){let s=(0,aR.suggestionList)(a,Object.keys(t.getFields()));n((0,At.pathToArray)(i),e,new fr.GraphQLError(`Field "${a}" is not defined by type "${t.name}".`+(0,tR.didYouMean)(s)))}if(t.isOneOf){let a=Object.keys(r);a.length!==1&&n((0,At.pathToArray)(i),e,new fr.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let s=a[0],u=r[s];u===null&&n((0,At.pathToArray)(i).concat(s),u,new fr.GraphQLError(`Field "${s}" must be non-null.`))}return r}if((0,Zo.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(o){o instanceof fr.GraphQLError?n((0,At.pathToArray)(i),e,o):n((0,At.pathToArray)(i),e,new fr.GraphQLError(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return r===void 0&&n((0,At.pathToArray)(i),e,new fr.GraphQLError(`Expected type "${t.name}".`)),r}(0,rR.invariant)(!1,"Unexpected input type: "+(0,oc.inspect)(t))}});var Yo=y(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.valueFromAST=Jo;var cR=se(),lR=Ge(),dR=Fr(),_i=ee(),yn=te();function Jo(e,t,n){if(e){if(e.kind===_i.Kind.VARIABLE){let i=e.name.value;if(n==null||n[i]===void 0)return;let r=n[i];return r===null&&(0,yn.isNonNullType)(t)?void 0:r}if((0,yn.isNonNullType)(t))return e.kind===_i.Kind.NULL?void 0:Jo(e,t.ofType,n);if(e.kind===_i.Kind.NULL)return null;if((0,yn.isListType)(t)){let i=t.ofType;if(e.kind===_i.Kind.LIST){let o=[];for(let a of e.values)if(BE(a,n)){if((0,yn.isNonNullType)(i))return;o.push(null)}else{let s=Jo(a,i,n);if(s===void 0)return;o.push(s)}return o}let r=Jo(e,i,n);return r===void 0?void 0:[r]}if((0,yn.isInputObjectType)(t)){if(e.kind!==_i.Kind.OBJECT)return;let i=Object.create(null),r=(0,dR.keyMap)(e.fields,o=>o.name.value);for(let o of Object.values(t.getFields())){let a=r[o.name];if(!a||BE(a.value,n)){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,yn.isNonNullType)(o.type))return;continue}let s=Jo(a.value,o.type,n);if(s===void 0)return;i[o.name]=s}if(t.isOneOf){let o=Object.keys(i);if(o.length!==1||i[o[0]]===null)return}return i}if((0,yn.isLeafType)(t)){let i;try{i=t.parseLiteral(e,n)}catch{return}return i===void 0?void 0:i}(0,lR.invariant)(!1,"Unexpected input type: "+(0,cR.inspect)(t))}}function BE(e,t){return e.kind===_i.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var Ei=y(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.getArgumentValues=XE;Wo.getDirectiveValues=yR;Wo.getVariableValues=vR;var Ti=se(),pR=Fr(),fR=uh(),mr=U(),JE=ee(),YE=ct(),$i=te(),mR=lh(),gR=Wt(),WE=Yo();function vR(e,t,n,i){let r=[],o=i?.maxErrors;try{let a=hR(e,t,n,s=>{if(o!=null&&r.length>=o)throw new mr.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");r.push(s)});if(r.length===0)return{coerced:a}}catch(a){r.push(a)}return{errors:r}}function hR(e,t,n,i){let r={};for(let o of t){let a=o.variable.name.value,s=(0,gR.typeFromAST)(e,o.type);if(!(0,$i.isInputType)(s)){let c=(0,YE.print)(o.type);i(new mr.GraphQLError(`Variable "$${a}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!HE(n,a)){if(o.defaultValue)r[a]=(0,WE.valueFromAST)(o.defaultValue,s);else if((0,$i.isNonNullType)(s)){let c=(0,Ti.inspect)(s);i(new mr.GraphQLError(`Variable "$${a}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[a];if(u===null&&(0,$i.isNonNullType)(s)){let c=(0,Ti.inspect)(s);i(new mr.GraphQLError(`Variable "$${a}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}r[a]=(0,mR.coerceInputValue)(u,s,(c,l,d)=>{let p=`Variable "$${a}" got invalid value `+(0,Ti.inspect)(l);c.length>0&&(p+=` at "${a}${(0,fR.printPathArray)(c)}"`),i(new mr.GraphQLError(p+"; "+d.message,{nodes:o,originalError:d}))})}return r}function XE(e,t,n){var i;let r={},o=(i=t.arguments)!==null&&i!==void 0?i:[],a=(0,pR.keyMap)(o,s=>s.name.value);for(let s of e.args){let u=s.name,c=s.type,l=a[u];if(!l){if(s.defaultValue!==void 0)r[u]=s.defaultValue;else if((0,$i.isNonNullType)(c))throw new mr.GraphQLError(`Argument "${u}" of required type "${(0,Ti.inspect)(c)}" was not provided.`,{nodes:t});continue}let d=l.value,p=d.kind===JE.Kind.NULL;if(d.kind===JE.Kind.VARIABLE){let v=d.name.value;if(n==null||!HE(n,v)){if(s.defaultValue!==void 0)r[u]=s.defaultValue;else if((0,$i.isNonNullType)(c))throw new mr.GraphQLError(`Argument "${u}" of required type "${(0,Ti.inspect)(c)}" was provided the variable "$${v}" which was not provided a runtime value.`,{nodes:d});continue}p=n[v]==null}if(p&&(0,$i.isNonNullType)(c))throw new mr.GraphQLError(`Argument "${u}" of non-null type "${(0,Ti.inspect)(c)}" must not be null.`,{nodes:d});let f=(0,WE.valueFromAST)(d,c,n);if(f===void 0)throw new mr.GraphQLError(`Argument "${u}" has invalid value ${(0,YE.print)(d)}.`,{nodes:d});r[u]=f}return r}function yR(e,t,n){var i;let r=(i=t.directives)===null||i===void 0?void 0:i.find(o=>o.name.value===e.name);if(r)return XE(e,r,n)}function HE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var uc=y(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.collectFields=TR;sc.collectSubfields=$R;var ph=ee(),bR=te(),ex=it(),_R=Wt(),tx=Ei();function TR(e,t,n,i,r){let o=new Map;return ac(e,t,n,i,r,o,new Set),o}function $R(e,t,n,i,r){let o=new Map,a=new Set;for(let s of r)s.selectionSet&&ac(e,t,n,i,s.selectionSet,o,a);return o}function ac(e,t,n,i,r,o,a){for(let s of r.selections)switch(s.kind){case ph.Kind.FIELD:{if(!fh(n,s))continue;let u=ER(s),c=o.get(u);c!==void 0?c.push(s):o.set(u,[s]);break}case ph.Kind.INLINE_FRAGMENT:{if(!fh(n,s)||!rx(e,s,i))continue;ac(e,t,n,i,s.selectionSet,o,a);break}case ph.Kind.FRAGMENT_SPREAD:{let u=s.name.value;if(a.has(u)||!fh(n,s))continue;a.add(u);let c=t[u];if(!c||!rx(e,c,i))continue;ac(e,t,n,i,c.selectionSet,o,a);break}}}function fh(e,t){let n=(0,tx.getDirectiveValues)(ex.GraphQLSkipDirective,t,e);if(n?.if===!0)return!1;let i=(0,tx.getDirectiveValues)(ex.GraphQLIncludeDirective,t,e);return i?.if!==!1}function rx(e,t,n){let i=t.typeCondition;if(!i)return!0;let r=(0,_R.typeFromAST)(e,i);return r===n?!0:(0,bR.isAbstractType)(r)?e.isSubType(r,n):!1}function ER(e){return e.alias?e.alias.value:e.name.value}});var gh=y(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.SingleFieldSubscriptionsRule=IR;var nx=U(),xR=ee(),OR=uc();function IR(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),i=n.getSubscriptionType();if(i){let r=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let c of a.definitions)c.kind===xR.Kind.FRAGMENT_DEFINITION&&(s[c.name.value]=c);let u=(0,OR.collectFields)(n,s,o,i,t.selectionSet);if(u.size>1){let d=[...u.values()].slice(1).flat();e.reportError(new nx.GraphQLError(r!=null?`Subscription "${r}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new nx.GraphQLError(r!=null?`Subscription "${r}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}});var cc=y(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.groupBy=SR;function SR(e,t){let n=new Map;for(let i of e){let r=t(i),o=n.get(r);o===void 0?n.set(r,[i]):o.push(i)}return n}});var yh=y(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.UniqueArgumentDefinitionNamesRule=wR;var NR=cc(),kR=U();function wR(e){return{DirectiveDefinition(i){var r;let o=(r=i.arguments)!==null&&r!==void 0?r:[];return n(`@${i.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(i){var r;let o=i.name.value,a=(r=i.fields)!==null&&r!==void 0?r:[];for(let u of a){var s;let c=u.name.value,l=(s=u.arguments)!==null&&s!==void 0?s:[];n(`${o}.${c}`,l)}return!1}function n(i,r){let o=(0,NR.groupBy)(r,a=>a.name.value);for(let[a,s]of o)s.length>1&&e.reportError(new kR.GraphQLError(`Argument "${i}(${a}:)" can only be defined once.`,{nodes:s.map(u=>u.name)}));return!1}}});var _h=y(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.UniqueArgumentNamesRule=jR;var DR=cc(),PR=U();function jR(e){return{Field:t,Directive:t};function t(n){var i;let r=(i=n.arguments)!==null&&i!==void 0?i:[],o=(0,DR.groupBy)(r,a=>a.name.value);for(let[a,s]of o)s.length>1&&e.reportError(new PR.GraphQLError(`There can be only one argument named "${a}".`,{nodes:s.map(u=>u.name)}))}}});var $h=y(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.UniqueDirectiveNamesRule=LR;var ix=U();function LR(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){let r=i.name.value;if(n!=null&&n.getDirective(r)){e.reportError(new ix.GraphQLError(`Directive "@${r}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}));return}return t[r]?e.reportError(new ix.GraphQLError(`There can be only one directive named "@${r}".`,{nodes:[t[r],i.name]})):t[r]=i.name,!1}}}});var Oh=y(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.UniqueDirectivesPerLocationRule=CR;var AR=U(),Eh=ee(),ox=hn(),RR=it();function CR(e){let t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():RR.specifiedDirectives;for(let s of i)t[s.name]=!s.isRepeatable;let r=e.getDocument().definitions;for(let s of r)s.kind===Eh.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=!s.repeatable);let o=Object.create(null),a=Object.create(null);return{enter(s){if(!("directives"in s)||!s.directives)return;let u;if(s.kind===Eh.Kind.SCHEMA_DEFINITION||s.kind===Eh.Kind.SCHEMA_EXTENSION)u=o;else if((0,ox.isTypeDefinitionNode)(s)||(0,ox.isTypeExtensionNode)(s)){let c=s.name.value;u=a[c],u===void 0&&(a[c]=u=Object.create(null))}else u=Object.create(null);for(let c of s.directives){let l=c.name.value;t[l]&&(u[l]?e.reportError(new AR.GraphQLError(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}});var Sh=y(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.UniqueEnumValueNamesRule=zR;var ax=U(),FR=te();function zR(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{EnumTypeDefinition:r,EnumTypeExtension:r};function r(o){var a;let s=o.name.value;i[s]||(i[s]=Object.create(null));let u=(a=o.values)!==null&&a!==void 0?a:[],c=i[s];for(let l of u){let d=l.name.value,p=n[s];(0,FR.isEnumType)(p)&&p.getValue(d)?e.reportError(new ax.GraphQLError(`Enum value "${s}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new ax.GraphQLError(`Enum value "${s}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}});var wh=y(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.UniqueFieldDefinitionNamesRule=UR;var sx=U(),Nh=te();function UR(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:r,InputObjectTypeExtension:r,InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(o){var a;let s=o.name.value;i[s]||(i[s]=Object.create(null));let u=(a=o.fields)!==null&&a!==void 0?a:[],c=i[s];for(let l of u){let d=l.name.value;MR(n[s],d)?e.reportError(new sx.GraphQLError(`Field "${s}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new sx.GraphQLError(`Field "${s}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}function MR(e,t){return(0,Nh.isObjectType)(e)||(0,Nh.isInterfaceType)(e)||(0,Nh.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var Ph=y(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.UniqueFragmentNamesRule=VR;var qR=U();function VR(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let i=n.name.value;return t[i]?e.reportError(new qR.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}});var Lh=y(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.UniqueInputFieldNamesRule=QR;var GR=Ge(),KR=U();function QR(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let i=t.pop();i||(0,GR.invariant)(!1),n=i}},ObjectField(i){let r=i.name.value;n[r]?e.reportError(new KR.GraphQLError(`There can be only one input field named "${r}".`,{nodes:[n[r],i.name]})):n[r]=i.name}}}});var Rh=y(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.UniqueOperationNamesRule=BR;var ZR=U();function BR(e){let t=Object.create(null);return{OperationDefinition(n){let i=n.name;return i&&(t[i.value]?e.reportError(new ZR.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}}});var Fh=y(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.UniqueOperationTypesRule=JR;var ux=U();function JR(e){let t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:r,SchemaExtension:r};function r(o){var a;let s=(a=o.operationTypes)!==null&&a!==void 0?a:[];for(let u of s){let c=u.operation,l=n[c];i[c]?e.reportError(new ux.GraphQLError(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new ux.GraphQLError(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}});var Uh=y(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.UniqueTypeNamesRule=YR;var cx=U();function YR(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(r){let o=r.name.value;if(n!=null&&n.getType(o)){e.reportError(new cx.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}));return}return t[o]?e.reportError(new cx.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],r.name]})):t[o]=r.name,!1}}});var qh=y(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.UniqueVariableNamesRule=HR;var WR=cc(),XR=U();function HR(e){return{OperationDefinition(t){var n;let i=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],r=(0,WR.groupBy)(i,o=>o.variable.name.value);for(let[o,a]of r)a.length>1&&e.reportError(new XR.GraphQLError(`There can be only one variable named "$${o}".`,{nodes:a.map(s=>s.variable.name)}))}}}});var Gh=y(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.ValuesOfCorrectTypeRule=iC;var eC=Cr(),Xo=se(),tC=Fr(),rC=zr(),gr=U(),nC=ee(),lc=ct(),Xt=te();function iC(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let i=(0,Xt.getNullableType)(e.getParentInputType());if(!(0,Xt.isListType)(i))return bn(e,n),!1},ObjectValue(n){let i=(0,Xt.getNamedType)(e.getInputType());if(!(0,Xt.isInputObjectType)(i))return bn(e,n),!1;let r=(0,tC.keyMap)(n.fields,o=>o.name.value);for(let o of Object.values(i.getFields()))if(!r[o.name]&&(0,Xt.isRequiredInputField)(o)){let s=(0,Xo.inspect)(o.type);e.reportError(new gr.GraphQLError(`Field "${i.name}.${o.name}" of required type "${s}" was not provided.`,{nodes:n}))}i.isOneOf&&oC(e,n,i,r)},ObjectField(n){let i=(0,Xt.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Xt.isInputObjectType)(i)){let o=(0,rC.suggestionList)(n.name.value,Object.keys(i.getFields()));e.reportError(new gr.GraphQLError(`Field "${n.name.value}" is not defined by type "${i.name}".`+(0,eC.didYouMean)(o),{nodes:n}))}},NullValue(n){let i=e.getInputType();(0,Xt.isNonNullType)(i)&&e.reportError(new gr.GraphQLError(`Expected value of type "${(0,Xo.inspect)(i)}", found ${(0,lc.print)(n)}.`,{nodes:n}))},EnumValue:n=>bn(e,n),IntValue:n=>bn(e,n),FloatValue:n=>bn(e,n),StringValue:n=>bn(e,n),BooleanValue:n=>bn(e,n)}}function bn(e,t){let n=e.getInputType();if(!n)return;let i=(0,Xt.getNamedType)(n);if(!(0,Xt.isLeafType)(i)){let r=(0,Xo.inspect)(n);e.reportError(new gr.GraphQLError(`Expected value of type "${r}", found ${(0,lc.print)(t)}.`,{nodes:t}));return}try{if(i.parseLiteral(t,void 0)===void 0){let o=(0,Xo.inspect)(n);e.reportError(new gr.GraphQLError(`Expected value of type "${o}", found ${(0,lc.print)(t)}.`,{nodes:t}))}}catch(r){let o=(0,Xo.inspect)(n);r instanceof gr.GraphQLError?e.reportError(r):e.reportError(new gr.GraphQLError(`Expected value of type "${o}", found ${(0,lc.print)(t)}; `+r.message,{nodes:t,originalError:r}))}}function oC(e,t,n,i){var r;let o=Object.keys(i);if(o.length!==1){e.reportError(new gr.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let s=(r=i[o[0]])===null||r===void 0?void 0:r.value;(!s||s.kind===nC.Kind.NULL)&&e.reportError(new gr.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}});var Qh=y(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.VariablesAreInputTypesRule=lC;var aC=U(),sC=ct(),uC=te(),cC=Wt();function lC(e){return{VariableDefinition(t){let n=(0,cC.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,uC.isInputType)(n)){let i=t.variable.name.value,r=(0,sC.print)(t.type);e.reportError(new aC.GraphQLError(`Variable "$${i}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}});var Bh=y(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.VariablesInAllowedPositionRule=fC;var lx=se(),dx=U(),dC=ee(),dc=te(),px=jo(),pC=Wt();function fC(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let i=e.getRecursiveVariableUsages(n);for(let{node:r,type:o,defaultValue:a,parentType:s}of i){let u=r.name.value,c=t[u];if(c&&o){let l=e.getSchema(),d=(0,pC.typeFromAST)(l,c.type);if(d&&!mC(l,d,c.defaultValue,o,a)){let p=(0,lx.inspect)(d),f=(0,lx.inspect)(o);e.reportError(new dx.GraphQLError(`Variable "$${u}" of type "${p}" used in position expecting type "${f}".`,{nodes:[c,r]}))}(0,dc.isInputObjectType)(s)&&s.isOneOf&&(0,dc.isNullableType)(d)&&e.reportError(new dx.GraphQLError(`Variable "$${u}" is of type "${d}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[c,r]}))}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function mC(e,t,n,i,r){if((0,dc.isNonNullType)(i)&&!(0,dc.isNonNullType)(t)){if(!(n!=null&&n.kind!==dC.Kind.NULL)&&!(r!==void 0))return!1;let s=i.ofType;return(0,px.isTypeSubTypeOf)(e,t,s)}return(0,px.isTypeSubTypeOf)(e,t,i)}});var Jh=y(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.specifiedSDLRules=Vr.specifiedRules=Vr.recommendedRules=void 0;var gC=dv(),vC=fv(),hC=gv(),fx=vv(),mx=_v(),yC=$v(),gx=Ov(),bC=Sv(),_C=kv(),TC=Dv(),$C=jv(),EC=Av(),xC=Cv(),OC=zv(),IC=Jv(),SC=Xv(),NC=eh(),vx=rh(),kC=ah(),wC=gh(),DC=yh(),hx=_h(),PC=$h(),yx=Oh(),jC=Sh(),LC=wh(),AC=Ph(),bx=Lh(),RC=Rh(),CC=Fh(),FC=Uh(),zC=qh(),UC=Gh(),MC=Qh(),qC=Bh(),_x=Object.freeze([TC.MaxIntrospectionDepthRule]);Vr.recommendedRules=_x;var VC=Object.freeze([gC.ExecutableDefinitionsRule,RC.UniqueOperationNamesRule,bC.LoneAnonymousOperationRule,wC.SingleFieldSubscriptionsRule,gx.KnownTypeNamesRule,hC.FragmentsOnCompositeTypesRule,MC.VariablesAreInputTypesRule,kC.ScalarLeafsRule,vC.FieldsOnCorrectTypeRule,AC.UniqueFragmentNamesRule,yC.KnownFragmentNamesRule,xC.NoUnusedFragmentsRule,SC.PossibleFragmentSpreadsRule,$C.NoFragmentCyclesRule,zC.UniqueVariableNamesRule,EC.NoUndefinedVariablesRule,OC.NoUnusedVariablesRule,mx.KnownDirectivesRule,yx.UniqueDirectivesPerLocationRule,fx.KnownArgumentNamesRule,hx.UniqueArgumentNamesRule,UC.ValuesOfCorrectTypeRule,vx.ProvidedRequiredArgumentsRule,qC.VariablesInAllowedPositionRule,IC.OverlappingFieldsCanBeMergedRule,bx.UniqueInputFieldNamesRule,..._x]);Vr.specifiedRules=VC;var GC=Object.freeze([_C.LoneSchemaDefinitionRule,CC.UniqueOperationTypesRule,FC.UniqueTypeNamesRule,jC.UniqueEnumValueNamesRule,LC.UniqueFieldDefinitionNamesRule,DC.UniqueArgumentDefinitionNamesRule,PC.UniqueDirectiveNamesRule,gx.KnownTypeNamesRule,mx.KnownDirectivesRule,yx.UniqueDirectivesPerLocationRule,NC.PossibleTypeExtensionsRule,fx.KnownArgumentNamesOnDirectivesRule,hx.UniqueArgumentNamesRule,bx.UniqueInputFieldNamesRule,vx.ProvidedRequiredArgumentsOnDirectivesRule]);Vr.specifiedSDLRules=GC});var Xh=y(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.ValidationContext=Gr.SDLValidationContext=Gr.ASTValidationContext=void 0;var Tx=ee(),KC=cn(),$x=Yu(),Ho=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let i of this.getDocument().definitions)i.kind===Tx.Kind.FRAGMENT_DEFINITION&&(n[i.name.value]=i);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let i=[t],r;for(;r=i.pop();)for(let o of r.selections)o.kind===Tx.Kind.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&i.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let i=Object.create(null),r=[t.selectionSet],o;for(;o=r.pop();)for(let a of this.getFragmentSpreads(o)){let s=a.name.value;if(i[s]!==!0){i[s]=!0;let u=this.getFragment(s);u&&(n.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};Gr.ASTValidationContext=Ho;var Yh=class extends Ho{constructor(t,n,i){super(t,i),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Gr.SDLValidationContext=Yh;var Wh=class extends Ho{constructor(t,n,i,r){super(n,r),this._schema=t,this._typeInfo=i,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let i=[],r=new $x.TypeInfo(this._schema);(0,KC.visit)(t,(0,$x.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(o){i.push({node:o,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),n=i,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let i of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(i));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Gr.ValidationContext=Wh});var ea=y(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.assertValidSDL=YC;xi.assertValidSDLExtension=WC;xi.validate=JC;xi.validateSDL=Hh;var QC=Xe(),ZC=U(),pc=cn(),BC=Vo(),Ex=Yu(),xx=Jh(),Ox=Xh();function JC(e,t,n=xx.specifiedRules,i,r=new Ex.TypeInfo(e)){var o;let a=(o=i?.maxErrors)!==null&&o!==void 0?o:100;t||(0,QC.devAssert)(!1,"Must provide document."),(0,BC.assertValidSchema)(e);let s=Object.freeze({}),u=[],c=new Ox.ValidationContext(e,t,r,d=>{if(u.length>=a)throw u.push(new ZC.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),s;u.push(d)}),l=(0,pc.visitInParallel)(n.map(d=>d(c)));try{(0,pc.visit)(t,(0,Ex.visitWithTypeInfo)(r,l))}catch(d){if(d!==s)throw d}return u}function Hh(e,t,n=xx.specifiedSDLRules){let i=[],r=new Ox.SDLValidationContext(e,t,a=>{i.push(a)}),o=n.map(a=>a(r));return(0,pc.visit)(e,(0,pc.visitInParallel)(o)),i}function YC(e){let t=Hh(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
61
61
|
|
|
62
|
-
`))}function
|
|
62
|
+
`))}function WC(e,t){let n=Hh(e,t);if(n.length!==0)throw new Error(n.map(i=>i.message).join(`
|
|
63
63
|
|
|
64
|
-
`))}});var wf=y(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.memoize3=dO;function dO(e){let r;return function(n,i,o){r===void 0&&(r=new WeakMap);let s=r.get(n);s===void 0&&(s=new WeakMap,r.set(n,s));let a=s.get(i);a===void 0&&(a=new WeakMap,s.set(i,a));let u=a.get(o);return u===void 0&&(u=e(n,i,o),a.set(o,u)),u}}});var jf=y(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.promiseForObject=fO;function fO(e){return Promise.all(Object.values(e)).then(r=>{let t=Object.create(null);for(let[n,i]of Object.keys(e).entries())t[i]=r[n];return t})}});var xf=y(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.promiseReduce=hO;var mO=pi();function hO(e,r,t){let n=t;for(let i of e)n=(0,mO.isPromise)(n)?n.then(o=>r(o,i)):r(n,i);return n}});var kf=y(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.toError=vO;var yO=J();function vO(e){return e instanceof Error?e:new Zu(e)}var Zu=class extends Error{constructor(r){super("Unexpected error value: "+(0,yO.inspect)(r)),this.name="NonErrorThrown",this.thrownValue=r}}});var po=y(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.locatedError=bO;var gO=kf(),TO=w();function bO(e,r,t){var n;let i=(0,gO.toError)(e);return EO(i)?i:new TO.GraphQLError(i.message,{nodes:(n=i.nodes)!==null&&n!==void 0?n:r,source:i.source,positions:i.positions,path:t,originalError:i})}function EO(e){return Array.isArray(e.path)}});var Gn=y(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.assertValidExecutionArguments=Qf;Ke.buildExecutionContext=Uf;Ke.buildResolveInfo=Bf;Ke.defaultTypeResolver=Ke.defaultFieldResolver=void 0;Ke.execute=$f;Ke.executeSync=DO;Ke.getFieldDef=Hf;var nc=Ae(),ht=J(),_O=Ie(),OO=Ui(),sc=dr(),nr=pi(),NO=wf(),yt=Rn(),Ff=jf(),IO=xf(),Ue=w(),mo=po(),tc=Je(),Cf=$(),Jr=Q(),Qt=Qe(),SO=Ln(),Gf=so(),Vf=Vt(),LO=(0,NO.memoize3)((e,r,t)=>(0,Gf.collectSubfields)(e.schema,e.fragments,e.variableValues,r,t));function $f(e){arguments.length<2||(0,nc.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,document:t,variableValues:n,rootValue:i}=e;Qf(r,t,n);let o=Uf(e);if(!("schema"in o))return{errors:o};try{let{operation:s}=o,a=AO(o,s,i);return(0,nr.isPromise)(a)?a.then(u=>fo(u,o.errors),u=>(o.errors.push(u),fo(null,o.errors))):fo(a,o.errors)}catch(s){return o.errors.push(s),fo(null,o.errors)}}function DO(e){let r=$f(e);if((0,nr.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function fo(e,r){return r.length===0?{data:e}:{errors:r,data:e}}function Qf(e,r,t){r||(0,nc.devAssert)(!1,"Must provide document."),(0,SO.assertValidSchema)(e),t==null||(0,sc.isObjectLike)(t)||(0,nc.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Uf(e){var r,t,n;let{schema:i,document:o,rootValue:s,contextValue:a,variableValues:u,operationName:c,fieldResolver:l,typeResolver:p,subscribeFieldResolver:d,options:m}=e,h,_=Object.create(null);for(let O of o.definitions)switch(O.kind){case Cf.Kind.OPERATION_DEFINITION:if(c==null){if(h!==void 0)return[new Ue.GraphQLError("Must provide operation name if query contains multiple operations.")];h=O}else((r=O.name)===null||r===void 0?void 0:r.value)===c&&(h=O);break;case Cf.Kind.FRAGMENT_DEFINITION:_[O.name.value]=O;break;default:}if(!h)return c!=null?[new Ue.GraphQLError(`Unknown operation named "${c}".`)]:[new Ue.GraphQLError("Must provide an operation.")];let R=(t=h.variableDefinitions)!==null&&t!==void 0?t:[],j=(0,Vf.getVariableValues)(i,R,u??{},{maxErrors:(n=m?.maxCoercionErrors)!==null&&n!==void 0?n:50});return j.errors?j.errors:{schema:i,fragments:_,rootValue:s,contextValue:a,operation:h,variableValues:j.coerced,fieldResolver:l??oc,typeResolver:p??Yf,subscribeFieldResolver:d??oc,errors:[]}}function AO(e,r,t){let n=e.schema.getRootType(r.operation);if(n==null)throw new Ue.GraphQLError(`Schema is not configured to execute ${r.operation} operation.`,{nodes:r});let i=(0,Gf.collectFields)(e.schema,e.fragments,e.variableValues,n,r.selectionSet),o=void 0;switch(r.operation){case tc.OperationTypeNode.QUERY:return ho(e,n,t,o,i);case tc.OperationTypeNode.MUTATION:return RO(e,n,t,o,i);case tc.OperationTypeNode.SUBSCRIPTION:return ho(e,n,t,o,i)}}function RO(e,r,t,n,i){return(0,IO.promiseReduce)(i.entries(),(o,[s,a])=>{let u=(0,yt.addPath)(n,s,r.name),c=Kf(e,r,t,a,u);return c===void 0?o:(0,nr.isPromise)(c)?c.then(l=>(o[s]=l,o)):(o[s]=c,o)},Object.create(null))}function ho(e,r,t,n,i){let o=Object.create(null),s=!1;try{for(let[a,u]of i.entries()){let c=(0,yt.addPath)(n,a,r.name),l=Kf(e,r,t,u,c);l!==void 0&&(o[a]=l,(0,nr.isPromise)(l)&&(s=!0))}}catch(a){if(s)return(0,Ff.promiseForObject)(o).finally(()=>{throw a});throw a}return s?(0,Ff.promiseForObject)(o):o}function Kf(e,r,t,n,i){var o;let s=Hf(e.schema,r,n[0]);if(!s)return;let a=s.type,u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,c=Bf(e,s,n,r,i);try{let l=(0,Vf.getArgumentValues)(s,n[0],e.variableValues),p=e.contextValue,d=u(t,l,p,c),m;return(0,nr.isPromise)(d)?m=d.then(h=>Mn(e,a,n,c,i,h)):m=Mn(e,a,n,c,i,d),(0,nr.isPromise)(m)?m.then(void 0,h=>{let _=(0,mo.locatedError)(h,n,(0,yt.pathToArray)(i));return yo(_,a,e)}):m}catch(l){let p=(0,mo.locatedError)(l,n,(0,yt.pathToArray)(i));return yo(p,a,e)}}function Bf(e,r,t,n,i){return{fieldName:r.name,fieldNodes:t,returnType:r.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function yo(e,r,t){if((0,Jr.isNonNullType)(r))throw e;return t.errors.push(e),null}function Mn(e,r,t,n,i,o){if(o instanceof Error)throw o;if((0,Jr.isNonNullType)(r)){let s=Mn(e,r.ofType,t,n,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return s}if(o==null)return null;if((0,Jr.isListType)(r))return PO(e,r,t,n,i,o);if((0,Jr.isLeafType)(r))return wO(r,o);if((0,Jr.isAbstractType)(r))return jO(e,r,t,n,i,o);if((0,Jr.isObjectType)(r))return ic(e,r,t,n,i,o);(0,_O.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,ht.inspect)(r))}function PO(e,r,t,n,i,o){if(!(0,OO.isIterableObject)(o))throw new Ue.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let s=r.ofType,a=!1,u=Array.from(o,(c,l)=>{let p=(0,yt.addPath)(i,l,void 0);try{let d;return(0,nr.isPromise)(c)?d=c.then(m=>Mn(e,s,t,n,p,m)):d=Mn(e,s,t,n,p,c),(0,nr.isPromise)(d)?(a=!0,d.then(void 0,m=>{let h=(0,mo.locatedError)(m,t,(0,yt.pathToArray)(p));return yo(h,s,e)})):d}catch(d){let m=(0,mo.locatedError)(d,t,(0,yt.pathToArray)(p));return yo(m,s,e)}});return a?Promise.all(u):u}function wO(e,r){let t=e.serialize(r);if(t==null)throw new Error(`Expected \`${(0,ht.inspect)(e)}.serialize(${(0,ht.inspect)(r)})\` to return non-nullable value, returned: ${(0,ht.inspect)(t)}`);return t}function jO(e,r,t,n,i,o){var s;let a=(s=r.resolveType)!==null&&s!==void 0?s:e.typeResolver,u=e.contextValue,c=a(o,u,n,r);return(0,nr.isPromise)(c)?c.then(l=>ic(e,qf(l,e,r,t,n,o),t,n,i,o)):ic(e,qf(c,e,r,t,n,o),t,n,i,o)}function qf(e,r,t,n,i,o){if(e==null)throw new Ue.GraphQLError(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${t.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if((0,Jr.isObjectType)(e))throw new Ue.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Ue.GraphQLError(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,ht.inspect)(o)}, received "${(0,ht.inspect)(e)}".`);let s=r.schema.getType(e);if(s==null)throw new Ue.GraphQLError(`Abstract type "${t.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!(0,Jr.isObjectType)(s))throw new Ue.GraphQLError(`Abstract type "${t.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!r.schema.isSubType(t,s))throw new Ue.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${t.name}".`,{nodes:n});return s}function ic(e,r,t,n,i,o){let s=LO(e,r,t);if(r.isTypeOf){let a=r.isTypeOf(o,e.contextValue,n);if((0,nr.isPromise)(a))return a.then(u=>{if(!u)throw Mf(r,o,t);return ho(e,r,o,i,s)});if(!a)throw Mf(r,o,t)}return ho(e,r,o,i,s)}function Mf(e,r,t){return new Ue.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,ht.inspect)(r)}.`,{nodes:t})}var Yf=function(e,r,t,n){if((0,sc.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=t.schema.getPossibleTypes(n),o=[];for(let s=0;s<i.length;s++){let a=i[s];if(a.isTypeOf){let u=a.isTypeOf(e,r,t);if((0,nr.isPromise)(u))o[s]=u;else if(u)return o.length&&Promise.allSettled(o).catch(()=>{}),a.name}}if(o.length)return Promise.all(o).then(s=>{for(let a=0;a<s.length;a++)if(s[a])return i[a].name})};Ke.defaultTypeResolver=Yf;var oc=function(e,r,t,n){if((0,sc.isObjectLike)(e)||typeof e=="function"){let i=e[n.fieldName];return typeof i=="function"?e[n.fieldName](r,t,n):i}};Ke.defaultFieldResolver=oc;function Hf(e,r,t){let n=t.name.value;return n===Qt.SchemaMetaFieldDef.name&&e.getQueryType()===r?Qt.SchemaMetaFieldDef:n===Qt.TypeMetaFieldDef.name&&e.getQueryType()===r?Qt.TypeMetaFieldDef:n===Qt.TypeNameMetaFieldDef.name?Qt.TypeNameMetaFieldDef:r.getFields()[n]}});var Jf=y(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.graphql=GO;vo.graphqlSync=VO;var xO=Ae(),kO=pi(),FO=nt(),CO=Ln(),qO=qn(),MO=Gn();function GO(e){return new Promise(r=>r(Wf(e)))}function VO(e){let r=Wf(e);if((0,kO.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function Wf(e){arguments.length<2||(0,xO.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,source:t,rootValue:n,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u}=e,c=(0,CO.validateSchema)(r);if(c.length>0)return{errors:c};let l;try{l=(0,FO.parse)(t)}catch(d){return{errors:[d]}}let p=(0,qO.validate)(r,l);return p.length>0?{errors:p}:(0,MO.execute)({schema:r,document:l,rootValue:n,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u})}});var Zf=y(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});Object.defineProperty(T,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ir.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(T,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Pr.GRAPHQL_MAX_INT}});Object.defineProperty(T,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Pr.GRAPHQL_MIN_INT}});Object.defineProperty(T,"GraphQLBoolean",{enumerable:!0,get:function(){return Pr.GraphQLBoolean}});Object.defineProperty(T,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ir.GraphQLDeprecatedDirective}});Object.defineProperty(T,"GraphQLDirective",{enumerable:!0,get:function(){return ir.GraphQLDirective}});Object.defineProperty(T,"GraphQLEnumType",{enumerable:!0,get:function(){return k.GraphQLEnumType}});Object.defineProperty(T,"GraphQLFloat",{enumerable:!0,get:function(){return Pr.GraphQLFloat}});Object.defineProperty(T,"GraphQLID",{enumerable:!0,get:function(){return Pr.GraphQLID}});Object.defineProperty(T,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ir.GraphQLIncludeDirective}});Object.defineProperty(T,"GraphQLInputObjectType",{enumerable:!0,get:function(){return k.GraphQLInputObjectType}});Object.defineProperty(T,"GraphQLInt",{enumerable:!0,get:function(){return Pr.GraphQLInt}});Object.defineProperty(T,"GraphQLInterfaceType",{enumerable:!0,get:function(){return k.GraphQLInterfaceType}});Object.defineProperty(T,"GraphQLList",{enumerable:!0,get:function(){return k.GraphQLList}});Object.defineProperty(T,"GraphQLNonNull",{enumerable:!0,get:function(){return k.GraphQLNonNull}});Object.defineProperty(T,"GraphQLObjectType",{enumerable:!0,get:function(){return k.GraphQLObjectType}});Object.defineProperty(T,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ir.GraphQLOneOfDirective}});Object.defineProperty(T,"GraphQLScalarType",{enumerable:!0,get:function(){return k.GraphQLScalarType}});Object.defineProperty(T,"GraphQLSchema",{enumerable:!0,get:function(){return ac.GraphQLSchema}});Object.defineProperty(T,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ir.GraphQLSkipDirective}});Object.defineProperty(T,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ir.GraphQLSpecifiedByDirective}});Object.defineProperty(T,"GraphQLString",{enumerable:!0,get:function(){return Pr.GraphQLString}});Object.defineProperty(T,"GraphQLUnionType",{enumerable:!0,get:function(){return k.GraphQLUnionType}});Object.defineProperty(T,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return xe.SchemaMetaFieldDef}});Object.defineProperty(T,"TypeKind",{enumerable:!0,get:function(){return xe.TypeKind}});Object.defineProperty(T,"TypeMetaFieldDef",{enumerable:!0,get:function(){return xe.TypeMetaFieldDef}});Object.defineProperty(T,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return xe.TypeNameMetaFieldDef}});Object.defineProperty(T,"__Directive",{enumerable:!0,get:function(){return xe.__Directive}});Object.defineProperty(T,"__DirectiveLocation",{enumerable:!0,get:function(){return xe.__DirectiveLocation}});Object.defineProperty(T,"__EnumValue",{enumerable:!0,get:function(){return xe.__EnumValue}});Object.defineProperty(T,"__Field",{enumerable:!0,get:function(){return xe.__Field}});Object.defineProperty(T,"__InputValue",{enumerable:!0,get:function(){return xe.__InputValue}});Object.defineProperty(T,"__Schema",{enumerable:!0,get:function(){return xe.__Schema}});Object.defineProperty(T,"__Type",{enumerable:!0,get:function(){return xe.__Type}});Object.defineProperty(T,"__TypeKind",{enumerable:!0,get:function(){return xe.__TypeKind}});Object.defineProperty(T,"assertAbstractType",{enumerable:!0,get:function(){return k.assertAbstractType}});Object.defineProperty(T,"assertCompositeType",{enumerable:!0,get:function(){return k.assertCompositeType}});Object.defineProperty(T,"assertDirective",{enumerable:!0,get:function(){return ir.assertDirective}});Object.defineProperty(T,"assertEnumType",{enumerable:!0,get:function(){return k.assertEnumType}});Object.defineProperty(T,"assertEnumValueName",{enumerable:!0,get:function(){return zf.assertEnumValueName}});Object.defineProperty(T,"assertInputObjectType",{enumerable:!0,get:function(){return k.assertInputObjectType}});Object.defineProperty(T,"assertInputType",{enumerable:!0,get:function(){return k.assertInputType}});Object.defineProperty(T,"assertInterfaceType",{enumerable:!0,get:function(){return k.assertInterfaceType}});Object.defineProperty(T,"assertLeafType",{enumerable:!0,get:function(){return k.assertLeafType}});Object.defineProperty(T,"assertListType",{enumerable:!0,get:function(){return k.assertListType}});Object.defineProperty(T,"assertName",{enumerable:!0,get:function(){return zf.assertName}});Object.defineProperty(T,"assertNamedType",{enumerable:!0,get:function(){return k.assertNamedType}});Object.defineProperty(T,"assertNonNullType",{enumerable:!0,get:function(){return k.assertNonNullType}});Object.defineProperty(T,"assertNullableType",{enumerable:!0,get:function(){return k.assertNullableType}});Object.defineProperty(T,"assertObjectType",{enumerable:!0,get:function(){return k.assertObjectType}});Object.defineProperty(T,"assertOutputType",{enumerable:!0,get:function(){return k.assertOutputType}});Object.defineProperty(T,"assertScalarType",{enumerable:!0,get:function(){return k.assertScalarType}});Object.defineProperty(T,"assertSchema",{enumerable:!0,get:function(){return ac.assertSchema}});Object.defineProperty(T,"assertType",{enumerable:!0,get:function(){return k.assertType}});Object.defineProperty(T,"assertUnionType",{enumerable:!0,get:function(){return k.assertUnionType}});Object.defineProperty(T,"assertValidSchema",{enumerable:!0,get:function(){return Xf.assertValidSchema}});Object.defineProperty(T,"assertWrappingType",{enumerable:!0,get:function(){return k.assertWrappingType}});Object.defineProperty(T,"getNamedType",{enumerable:!0,get:function(){return k.getNamedType}});Object.defineProperty(T,"getNullableType",{enumerable:!0,get:function(){return k.getNullableType}});Object.defineProperty(T,"introspectionTypes",{enumerable:!0,get:function(){return xe.introspectionTypes}});Object.defineProperty(T,"isAbstractType",{enumerable:!0,get:function(){return k.isAbstractType}});Object.defineProperty(T,"isCompositeType",{enumerable:!0,get:function(){return k.isCompositeType}});Object.defineProperty(T,"isDirective",{enumerable:!0,get:function(){return ir.isDirective}});Object.defineProperty(T,"isEnumType",{enumerable:!0,get:function(){return k.isEnumType}});Object.defineProperty(T,"isInputObjectType",{enumerable:!0,get:function(){return k.isInputObjectType}});Object.defineProperty(T,"isInputType",{enumerable:!0,get:function(){return k.isInputType}});Object.defineProperty(T,"isInterfaceType",{enumerable:!0,get:function(){return k.isInterfaceType}});Object.defineProperty(T,"isIntrospectionType",{enumerable:!0,get:function(){return xe.isIntrospectionType}});Object.defineProperty(T,"isLeafType",{enumerable:!0,get:function(){return k.isLeafType}});Object.defineProperty(T,"isListType",{enumerable:!0,get:function(){return k.isListType}});Object.defineProperty(T,"isNamedType",{enumerable:!0,get:function(){return k.isNamedType}});Object.defineProperty(T,"isNonNullType",{enumerable:!0,get:function(){return k.isNonNullType}});Object.defineProperty(T,"isNullableType",{enumerable:!0,get:function(){return k.isNullableType}});Object.defineProperty(T,"isObjectType",{enumerable:!0,get:function(){return k.isObjectType}});Object.defineProperty(T,"isOutputType",{enumerable:!0,get:function(){return k.isOutputType}});Object.defineProperty(T,"isRequiredArgument",{enumerable:!0,get:function(){return k.isRequiredArgument}});Object.defineProperty(T,"isRequiredInputField",{enumerable:!0,get:function(){return k.isRequiredInputField}});Object.defineProperty(T,"isScalarType",{enumerable:!0,get:function(){return k.isScalarType}});Object.defineProperty(T,"isSchema",{enumerable:!0,get:function(){return ac.isSchema}});Object.defineProperty(T,"isSpecifiedDirective",{enumerable:!0,get:function(){return ir.isSpecifiedDirective}});Object.defineProperty(T,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Pr.isSpecifiedScalarType}});Object.defineProperty(T,"isType",{enumerable:!0,get:function(){return k.isType}});Object.defineProperty(T,"isUnionType",{enumerable:!0,get:function(){return k.isUnionType}});Object.defineProperty(T,"isWrappingType",{enumerable:!0,get:function(){return k.isWrappingType}});Object.defineProperty(T,"resolveObjMapThunk",{enumerable:!0,get:function(){return k.resolveObjMapThunk}});Object.defineProperty(T,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return k.resolveReadonlyArrayThunk}});Object.defineProperty(T,"specifiedDirectives",{enumerable:!0,get:function(){return ir.specifiedDirectives}});Object.defineProperty(T,"specifiedScalarTypes",{enumerable:!0,get:function(){return Pr.specifiedScalarTypes}});Object.defineProperty(T,"validateSchema",{enumerable:!0,get:function(){return Xf.validateSchema}});var ac=lt(),k=Q(),ir=we(),Pr=hr(),xe=Qe(),Xf=Ln(),zf=dn()});var rm=y(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});Object.defineProperty(K,"BREAK",{enumerable:!0,get:function(){return $n.BREAK}});Object.defineProperty(K,"DirectiveLocation",{enumerable:!0,get:function(){return HO.DirectiveLocation}});Object.defineProperty(K,"Kind",{enumerable:!0,get:function(){return UO.Kind}});Object.defineProperty(K,"Lexer",{enumerable:!0,get:function(){return BO.Lexer}});Object.defineProperty(K,"Location",{enumerable:!0,get:function(){return uc.Location}});Object.defineProperty(K,"OperationTypeNode",{enumerable:!0,get:function(){return uc.OperationTypeNode}});Object.defineProperty(K,"Source",{enumerable:!0,get:function(){return $O.Source}});Object.defineProperty(K,"Token",{enumerable:!0,get:function(){return uc.Token}});Object.defineProperty(K,"TokenKind",{enumerable:!0,get:function(){return KO.TokenKind}});Object.defineProperty(K,"getEnterLeaveForKind",{enumerable:!0,get:function(){return $n.getEnterLeaveForKind}});Object.defineProperty(K,"getLocation",{enumerable:!0,get:function(){return QO.getLocation}});Object.defineProperty(K,"getVisitFn",{enumerable:!0,get:function(){return $n.getVisitFn}});Object.defineProperty(K,"isConstValueNode",{enumerable:!0,get:function(){return or.isConstValueNode}});Object.defineProperty(K,"isDefinitionNode",{enumerable:!0,get:function(){return or.isDefinitionNode}});Object.defineProperty(K,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return or.isExecutableDefinitionNode}});Object.defineProperty(K,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return or.isSchemaCoordinateNode}});Object.defineProperty(K,"isSelectionNode",{enumerable:!0,get:function(){return or.isSelectionNode}});Object.defineProperty(K,"isTypeDefinitionNode",{enumerable:!0,get:function(){return or.isTypeDefinitionNode}});Object.defineProperty(K,"isTypeExtensionNode",{enumerable:!0,get:function(){return or.isTypeExtensionNode}});Object.defineProperty(K,"isTypeNode",{enumerable:!0,get:function(){return or.isTypeNode}});Object.defineProperty(K,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return or.isTypeSystemDefinitionNode}});Object.defineProperty(K,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return or.isTypeSystemExtensionNode}});Object.defineProperty(K,"isValueNode",{enumerable:!0,get:function(){return or.isValueNode}});Object.defineProperty(K,"parse",{enumerable:!0,get:function(){return Vn.parse}});Object.defineProperty(K,"parseConstValue",{enumerable:!0,get:function(){return Vn.parseConstValue}});Object.defineProperty(K,"parseSchemaCoordinate",{enumerable:!0,get:function(){return Vn.parseSchemaCoordinate}});Object.defineProperty(K,"parseType",{enumerable:!0,get:function(){return Vn.parseType}});Object.defineProperty(K,"parseValue",{enumerable:!0,get:function(){return Vn.parseValue}});Object.defineProperty(K,"print",{enumerable:!0,get:function(){return YO.print}});Object.defineProperty(K,"printLocation",{enumerable:!0,get:function(){return em.printLocation}});Object.defineProperty(K,"printSourceLocation",{enumerable:!0,get:function(){return em.printSourceLocation}});Object.defineProperty(K,"visit",{enumerable:!0,get:function(){return $n.visit}});Object.defineProperty(K,"visitInParallel",{enumerable:!0,get:function(){return $n.visitInParallel}});var $O=Ti(),QO=di(),em=rs(),UO=$(),KO=Rt(),BO=sn(),Vn=nt(),YO=ke(),$n=it(),uc=Je(),or=dt(),HO=At()});var tm=y(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.isAsyncIterable=WO;function WO(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var nm=y(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.mapAsyncIterator=JO;function JO(e,r){let t=e[Symbol.asyncIterator]();async function n(i){if(i.done)return i;try{return{value:await r(i.value),done:!1}}catch(o){if(typeof t.return=="function")try{await t.return()}catch{}throw o}}return{async next(){return n(await t.next())},async return(){return typeof t.return=="function"?n(await t.return()):{value:void 0,done:!0}},async throw(i){if(typeof t.throw=="function")return n(await t.throw(i));throw i},[Symbol.asyncIterator](){return this}}}});var am=y(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.createSourceEventStream=sm;go.subscribe=nN;var XO=Ae(),zO=J(),om=tm(),im=Rn(),pc=w(),ZO=po(),eN=so(),Qn=Gn(),rN=nm(),tN=Vt();async function nN(e){arguments.length<2||(0,XO.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=await sm(e);if(!(0,om.isAsyncIterable)(r))return r;let t=n=>(0,Qn.execute)({...e,rootValue:n});return(0,rN.mapAsyncIterator)(r,t)}function iN(e){let r=e[0];return r&&"document"in r?r:{schema:r,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function sm(...e){let r=iN(e),{schema:t,document:n,variableValues:i}=r;(0,Qn.assertValidExecutionArguments)(t,n,i);let o=(0,Qn.buildExecutionContext)(r);if(!("schema"in o))return{errors:o};try{let s=await oN(o);if(!(0,om.isAsyncIterable)(s))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,zO.inspect)(s)}.`);return s}catch(s){if(s instanceof pc.GraphQLError)return{errors:[s]};throw s}}async function oN(e){let{schema:r,fragments:t,operation:n,variableValues:i,rootValue:o}=e,s=r.getSubscriptionType();if(s==null)throw new pc.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let a=(0,eN.collectFields)(r,t,i,s,n.selectionSet),[u,c]=[...a.entries()][0],l=(0,Qn.getFieldDef)(r,s,c[0]);if(!l){let h=c[0].name.value;throw new pc.GraphQLError(`The subscription field "${h}" is not defined.`,{nodes:c})}let p=(0,im.addPath)(void 0,u,s.name),d=(0,Qn.buildResolveInfo)(e,l,c,s,p);try{var m;let h=(0,tN.getArgumentValues)(l,c[0],i),_=e.contextValue,j=await((m=l.subscribe)!==null&&m!==void 0?m:e.subscribeFieldResolver)(o,h,_,d);if(j instanceof Error)throw j;return j}catch(h){throw(0,ZO.locatedError)(h,c,(0,im.pathToArray)(p))}}});var cm=y(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Object.defineProperty(Be,"createSourceEventStream",{enumerable:!0,get:function(){return um.createSourceEventStream}});Object.defineProperty(Be,"defaultFieldResolver",{enumerable:!0,get:function(){return To.defaultFieldResolver}});Object.defineProperty(Be,"defaultTypeResolver",{enumerable:!0,get:function(){return To.defaultTypeResolver}});Object.defineProperty(Be,"execute",{enumerable:!0,get:function(){return To.execute}});Object.defineProperty(Be,"executeSync",{enumerable:!0,get:function(){return To.executeSync}});Object.defineProperty(Be,"getArgumentValues",{enumerable:!0,get:function(){return dc.getArgumentValues}});Object.defineProperty(Be,"getDirectiveValues",{enumerable:!0,get:function(){return dc.getDirectiveValues}});Object.defineProperty(Be,"getVariableValues",{enumerable:!0,get:function(){return dc.getVariableValues}});Object.defineProperty(Be,"responsePathAsArray",{enumerable:!0,get:function(){return sN.pathToArray}});Object.defineProperty(Be,"subscribe",{enumerable:!0,get:function(){return um.subscribe}});var sN=Rn(),To=Gn(),um=am(),dc=Vt()});var lm=y(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.NoDeprecatedCustomRule=aN;var fc=Ie(),Un=w(),mc=Q();function aN(e){return{Field(r){let t=e.getFieldDef(),n=t?.deprecationReason;if(t&&n!=null){let i=e.getParentType();i!=null||(0,fc.invariant)(!1),e.reportError(new Un.GraphQLError(`The field ${i.name}.${t.name} is deprecated. ${n}`,{nodes:r}))}},Argument(r){let t=e.getArgument(),n=t?.deprecationReason;if(t&&n!=null){let i=e.getDirective();if(i!=null)e.reportError(new Un.GraphQLError(`Directive "@${i.name}" argument "${t.name}" is deprecated. ${n}`,{nodes:r}));else{let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||(0,fc.invariant)(!1),e.reportError(new Un.GraphQLError(`Field "${o.name}.${s.name}" argument "${t.name}" is deprecated. ${n}`,{nodes:r}))}}},ObjectField(r){let t=(0,mc.getNamedType)(e.getParentInputType());if((0,mc.isInputObjectType)(t)){let n=t.getFields()[r.name.value],i=n?.deprecationReason;i!=null&&e.reportError(new Un.GraphQLError(`The input field ${t.name}.${n.name} is deprecated. ${i}`,{nodes:r}))}},EnumValue(r){let t=e.getEnumValue(),n=t?.deprecationReason;if(t&&n!=null){let i=(0,mc.getNamedType)(e.getInputType());i!=null||(0,fc.invariant)(!1),e.reportError(new Un.GraphQLError(`The enum value "${i.name}.${t.name}" is deprecated. ${n}`,{nodes:r}))}}}}});var pm=y(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.NoSchemaIntrospectionCustomRule=pN;var uN=w(),cN=Q(),lN=Qe();function pN(e){return{Field(r){let t=(0,cN.getNamedType)(e.getType());t&&(0,lN.isIntrospectionType)(t)&&e.reportError(new uN.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${r.name.value}".`,{nodes:r}))}}}});var fm=y(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});Object.defineProperty(q,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return mN.ExecutableDefinitionsRule}});Object.defineProperty(q,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return hN.FieldsOnCorrectTypeRule}});Object.defineProperty(q,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return yN.FragmentsOnCompositeTypesRule}});Object.defineProperty(q,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return vN.KnownArgumentNamesRule}});Object.defineProperty(q,"KnownDirectivesRule",{enumerable:!0,get:function(){return gN.KnownDirectivesRule}});Object.defineProperty(q,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return TN.KnownFragmentNamesRule}});Object.defineProperty(q,"KnownTypeNamesRule",{enumerable:!0,get:function(){return bN.KnownTypeNamesRule}});Object.defineProperty(q,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return EN.LoneAnonymousOperationRule}});Object.defineProperty(q,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return VN.LoneSchemaDefinitionRule}});Object.defineProperty(q,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return GN.MaxIntrospectionDepthRule}});Object.defineProperty(q,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return WN.NoDeprecatedCustomRule}});Object.defineProperty(q,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return _N.NoFragmentCyclesRule}});Object.defineProperty(q,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return JN.NoSchemaIntrospectionCustomRule}});Object.defineProperty(q,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return ON.NoUndefinedVariablesRule}});Object.defineProperty(q,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return NN.NoUnusedFragmentsRule}});Object.defineProperty(q,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return IN.NoUnusedVariablesRule}});Object.defineProperty(q,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return SN.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(q,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return LN.PossibleFragmentSpreadsRule}});Object.defineProperty(q,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return HN.PossibleTypeExtensionsRule}});Object.defineProperty(q,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return DN.ProvidedRequiredArgumentsRule}});Object.defineProperty(q,"ScalarLeafsRule",{enumerable:!0,get:function(){return AN.ScalarLeafsRule}});Object.defineProperty(q,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return RN.SingleFieldSubscriptionsRule}});Object.defineProperty(q,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return BN.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(q,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return PN.UniqueArgumentNamesRule}});Object.defineProperty(q,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return YN.UniqueDirectiveNamesRule}});Object.defineProperty(q,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return wN.UniqueDirectivesPerLocationRule}});Object.defineProperty(q,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return UN.UniqueEnumValueNamesRule}});Object.defineProperty(q,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return KN.UniqueFieldDefinitionNamesRule}});Object.defineProperty(q,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return jN.UniqueFragmentNamesRule}});Object.defineProperty(q,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return xN.UniqueInputFieldNamesRule}});Object.defineProperty(q,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return kN.UniqueOperationNamesRule}});Object.defineProperty(q,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return $N.UniqueOperationTypesRule}});Object.defineProperty(q,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return QN.UniqueTypeNamesRule}});Object.defineProperty(q,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return FN.UniqueVariableNamesRule}});Object.defineProperty(q,"ValidationContext",{enumerable:!0,get:function(){return fN.ValidationContext}});Object.defineProperty(q,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return CN.ValuesOfCorrectTypeRule}});Object.defineProperty(q,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return qN.VariablesAreInputTypesRule}});Object.defineProperty(q,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return MN.VariablesInAllowedPositionRule}});Object.defineProperty(q,"recommendedRules",{enumerable:!0,get:function(){return dm.recommendedRules}});Object.defineProperty(q,"specifiedRules",{enumerable:!0,get:function(){return dm.specifiedRules}});Object.defineProperty(q,"validate",{enumerable:!0,get:function(){return dN.validate}});var dN=qn(),fN=Hu(),dm=Ku(),mN=aa(),hN=ca(),yN=pa(),vN=da(),gN=ya(),TN=ga(),bN=Ea(),EN=Oa(),_N=Aa(),ON=Pa(),NN=ja(),IN=ka(),SN=Ka(),LN=Ha(),DN=za(),AN=tu(),RN=pu(),PN=yu(),wN=Eu(),jN=Du(),xN=Ru(),kN=wu(),FN=qu(),CN=Gu(),qN=$u(),MN=Uu(),GN=La(),VN=Ia(),$N=xu(),QN=Fu(),UN=Ou(),KN=Su(),BN=mu(),YN=gu(),HN=Ja(),WN=lm(),JN=pm()});var mm=y(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});Object.defineProperty(vt,"GraphQLError",{enumerable:!0,get:function(){return vc.GraphQLError}});Object.defineProperty(vt,"formatError",{enumerable:!0,get:function(){return vc.formatError}});Object.defineProperty(vt,"locatedError",{enumerable:!0,get:function(){return zN.locatedError}});Object.defineProperty(vt,"printError",{enumerable:!0,get:function(){return vc.printError}});Object.defineProperty(vt,"syntaxError",{enumerable:!0,get:function(){return XN.syntaxError}});var vc=w(),XN=Xt(),zN=po()});var Tc=y(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.getIntrospectionQuery=ZN;function ZN(e){let r={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},t=r.descriptions?"description":"",n=r.specifiedByUrl?"specifiedByURL":"",i=r.directiveIsRepeatable?"isRepeatable":"",o=r.schemaDescription?t:"";function s(u){return r.inputValueDeprecation?u:""}let a=r.oneOf?"isOneOf":"";return`
|
|
64
|
+
`))}});var Ix=y(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.memoize3=XC;function XC(e){let t;return function(i,r,o){t===void 0&&(t=new WeakMap);let a=t.get(i);a===void 0&&(a=new WeakMap,t.set(i,a));let s=a.get(r);s===void 0&&(s=new WeakMap,a.set(r,s));let u=s.get(o);return u===void 0&&(u=e(i,r,o),s.set(o,u)),u}}});var Sx=y(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.promiseForObject=HC;function HC(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[i,r]of Object.keys(e).entries())n[r]=t[i];return n})}});var Nx=y(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.promiseReduce=tF;var eF=fu();function tF(e,t,n){let i=n;for(let r of e)i=(0,eF.isPromise)(i)?i.then(o=>t(o,r)):t(i,r);return i}});var kx=y(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.toError=nF;var rF=se();function nF(e){return e instanceof Error?e:new ny(e)}var ny=class extends Error{constructor(t){super("Unexpected error value: "+(0,rF.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var fc=y(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.locatedError=aF;var iF=kx(),oF=U();function aF(e,t,n){var i;let r=(0,iF.toError)(e);return sF(r)?r:new oF.GraphQLError(r.message,{nodes:(i=r.nodes)!==null&&i!==void 0?i:t,source:r.source,positions:r.positions,path:n,originalError:r})}function sF(e){return Array.isArray(e.path)}});var ra=y($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.assertValidExecutionArguments=Cx;$t.buildExecutionContext=Fx;$t.buildResolveInfo=Ux;$t.defaultTypeResolver=$t.defaultFieldResolver=void 0;$t.execute=Rx;$t.executeSync=mF;$t.getFieldDef=qx;var sy=Xe(),_n=se(),uF=Ge(),cF=Qu(),ly=Zt(),Rt=fu(),lF=Ix(),Tn=Qo(),wx=Sx(),dF=Nx(),Tt=U(),gc=fc(),ay=kt(),Dx=ee(),Kr=te(),Oi=_t(),pF=Vo(),Lx=uc(),Ax=Ei(),fF=(0,lF.memoize3)((e,t,n)=>(0,Lx.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function Rx(e){arguments.length<2||(0,sy.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:i,rootValue:r}=e;Cx(t,n,i);let o=Fx(e);if(!("schema"in o))return{errors:o};try{let{operation:a}=o,s=gF(o,a,r);return(0,Rt.isPromise)(s)?s.then(u=>mc(u,o.errors),u=>(o.errors.push(u),mc(null,o.errors))):mc(s,o.errors)}catch(a){return o.errors.push(a),mc(null,o.errors)}}function mF(e){let t=Rx(e);if((0,Rt.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function mc(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function Cx(e,t,n){t||(0,sy.devAssert)(!1,"Must provide document."),(0,pF.assertValidSchema)(e),n==null||(0,ly.isObjectLike)(n)||(0,sy.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Fx(e){var t,n,i;let{schema:r,document:o,rootValue:a,contextValue:s,variableValues:u,operationName:c,fieldResolver:l,typeResolver:d,subscribeFieldResolver:p,options:f}=e,v,_=Object.create(null);for(let k of o.definitions)switch(k.kind){case Dx.Kind.OPERATION_DEFINITION:if(c==null){if(v!==void 0)return[new Tt.GraphQLError("Must provide operation name if query contains multiple operations.")];v=k}else((t=k.name)===null||t===void 0?void 0:t.value)===c&&(v=k);break;case Dx.Kind.FRAGMENT_DEFINITION:_[k.name.value]=k;break;default:}if(!v)return c!=null?[new Tt.GraphQLError(`Unknown operation named "${c}".`)]:[new Tt.GraphQLError("Must provide an operation.")];let j=(n=v.variableDefinitions)!==null&&n!==void 0?n:[],z=(0,Ax.getVariableValues)(r,j,u??{},{maxErrors:(i=f?.maxCoercionErrors)!==null&&i!==void 0?i:50});return z.errors?z.errors:{schema:r,fragments:_,rootValue:a,contextValue:s,operation:v,variableValues:z.coerced,fieldResolver:l??cy,typeResolver:d??Mx,subscribeFieldResolver:p??cy,errors:[]}}function gF(e,t,n){let i=e.schema.getRootType(t.operation);if(i==null)throw new Tt.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let r=(0,Lx.collectFields)(e.schema,e.fragments,e.variableValues,i,t.selectionSet),o=void 0;switch(t.operation){case ay.OperationTypeNode.QUERY:return vc(e,i,n,o,r);case ay.OperationTypeNode.MUTATION:return vF(e,i,n,o,r);case ay.OperationTypeNode.SUBSCRIPTION:return vc(e,i,n,o,r)}}function vF(e,t,n,i,r){return(0,dF.promiseReduce)(r.entries(),(o,[a,s])=>{let u=(0,Tn.addPath)(i,a,t.name),c=zx(e,t,n,s,u);return c===void 0?o:(0,Rt.isPromise)(c)?c.then(l=>(o[a]=l,o)):(o[a]=c,o)},Object.create(null))}function vc(e,t,n,i,r){let o=Object.create(null),a=!1;try{for(let[s,u]of r.entries()){let c=(0,Tn.addPath)(i,s,t.name),l=zx(e,t,n,u,c);l!==void 0&&(o[s]=l,(0,Rt.isPromise)(l)&&(a=!0))}}catch(s){if(a)return(0,wx.promiseForObject)(o).finally(()=>{throw s});throw s}return a?(0,wx.promiseForObject)(o):o}function zx(e,t,n,i,r){var o;let a=qx(e.schema,t,i[0]);if(!a)return;let s=a.type,u=(o=a.resolve)!==null&&o!==void 0?o:e.fieldResolver,c=Ux(e,a,i,t,r);try{let l=(0,Ax.getArgumentValues)(a,i[0],e.variableValues),d=e.contextValue,p=u(n,l,d,c),f;return(0,Rt.isPromise)(p)?f=p.then(v=>ta(e,s,i,c,r,v)):f=ta(e,s,i,c,r,p),(0,Rt.isPromise)(f)?f.then(void 0,v=>{let _=(0,gc.locatedError)(v,i,(0,Tn.pathToArray)(r));return hc(_,s,e)}):f}catch(l){let d=(0,gc.locatedError)(l,i,(0,Tn.pathToArray)(r));return hc(d,s,e)}}function Ux(e,t,n,i,r){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:i,path:r,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function hc(e,t,n){if((0,Kr.isNonNullType)(t))throw e;return n.errors.push(e),null}function ta(e,t,n,i,r,o){if(o instanceof Error)throw o;if((0,Kr.isNonNullType)(t)){let a=ta(e,t.ofType,n,i,r,o);if(a===null)throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`);return a}if(o==null)return null;if((0,Kr.isListType)(t))return hF(e,t,n,i,r,o);if((0,Kr.isLeafType)(t))return yF(t,o);if((0,Kr.isAbstractType)(t))return bF(e,t,n,i,r,o);if((0,Kr.isObjectType)(t))return uy(e,t,n,i,r,o);(0,uF.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,_n.inspect)(t))}function hF(e,t,n,i,r,o){if(!(0,cF.isIterableObject)(o))throw new Tt.GraphQLError(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);let a=t.ofType,s=!1,u=Array.from(o,(c,l)=>{let d=(0,Tn.addPath)(r,l,void 0);try{let p;return(0,Rt.isPromise)(c)?p=c.then(f=>ta(e,a,n,i,d,f)):p=ta(e,a,n,i,d,c),(0,Rt.isPromise)(p)?(s=!0,p.then(void 0,f=>{let v=(0,gc.locatedError)(f,n,(0,Tn.pathToArray)(d));return hc(v,a,e)})):p}catch(p){let f=(0,gc.locatedError)(p,n,(0,Tn.pathToArray)(d));return hc(f,a,e)}});return s?Promise.all(u):u}function yF(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,_n.inspect)(e)}.serialize(${(0,_n.inspect)(t)})\` to return non-nullable value, returned: ${(0,_n.inspect)(n)}`);return n}function bF(e,t,n,i,r,o){var a;let s=(a=t.resolveType)!==null&&a!==void 0?a:e.typeResolver,u=e.contextValue,c=s(o,u,i,t);return(0,Rt.isPromise)(c)?c.then(l=>uy(e,Px(l,e,t,n,i,o),n,i,r,o)):uy(e,Px(c,e,t,n,i,o),n,i,r,o)}function Px(e,t,n,i,r,o){if(e==null)throw new Tt.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i);if((0,Kr.isObjectType)(e))throw new Tt.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Tt.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}" with value ${(0,_n.inspect)(o)}, received "${(0,_n.inspect)(e)}".`);let a=t.schema.getType(e);if(a==null)throw new Tt.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:i});if(!(0,Kr.isObjectType)(a))throw new Tt.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:i});if(!t.schema.isSubType(n,a))throw new Tt.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:i});return a}function uy(e,t,n,i,r,o){let a=fF(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,i);if((0,Rt.isPromise)(s))return s.then(u=>{if(!u)throw jx(t,o,n);return vc(e,t,o,r,a)});if(!s)throw jx(t,o,n)}return vc(e,t,o,r,a)}function jx(e,t,n){return new Tt.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,_n.inspect)(t)}.`,{nodes:n})}var Mx=function(e,t,n,i){if((0,ly.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let r=n.schema.getPossibleTypes(i),o=[];for(let a=0;a<r.length;a++){let s=r[a];if(s.isTypeOf){let u=s.isTypeOf(e,t,n);if((0,Rt.isPromise)(u))o[a]=u;else if(u)return o.length&&Promise.allSettled(o).catch(()=>{}),s.name}}if(o.length)return Promise.all(o).then(a=>{for(let s=0;s<a.length;s++)if(a[s])return r[s].name})};$t.defaultTypeResolver=Mx;var cy=function(e,t,n,i){if((0,ly.isObjectLike)(e)||typeof e=="function"){let r=e[i.fieldName];return typeof r=="function"?e[i.fieldName](t,n,i):r}};$t.defaultFieldResolver=cy;function qx(e,t,n){let i=n.name.value;return i===Oi.SchemaMetaFieldDef.name&&e.getQueryType()===t?Oi.SchemaMetaFieldDef:i===Oi.TypeMetaFieldDef.name&&e.getQueryType()===t?Oi.TypeMetaFieldDef:i===Oi.TypeNameMetaFieldDef.name?Oi.TypeNameMetaFieldDef:t.getFields()[i]}});var Gx=y(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.graphql=IF;yc.graphqlSync=SF;var _F=Xe(),TF=fu(),$F=un(),EF=Vo(),xF=ea(),OF=ra();function IF(e){return new Promise(t=>t(Vx(e)))}function SF(e){let t=Vx(e);if((0,TF.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Vx(e){arguments.length<2||(0,_F.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:i,contextValue:r,variableValues:o,operationName:a,fieldResolver:s,typeResolver:u}=e,c=(0,EF.validateSchema)(t);if(c.length>0)return{errors:c};let l;try{l=(0,$F.parse)(n)}catch(p){return{errors:[p]}}let d=(0,xF.validate)(t,l);return d.length>0?{errors:d}:(0,OF.execute)({schema:t,document:l,rootValue:i,contextValue:r,variableValues:o,operationName:a,fieldResolver:s,typeResolver:u})}});var Zx=y(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});Object.defineProperty(I,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ct.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(I,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return vr.GRAPHQL_MAX_INT}});Object.defineProperty(I,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return vr.GRAPHQL_MIN_INT}});Object.defineProperty(I,"GraphQLBoolean",{enumerable:!0,get:function(){return vr.GraphQLBoolean}});Object.defineProperty(I,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ct.GraphQLDeprecatedDirective}});Object.defineProperty(I,"GraphQLDirective",{enumerable:!0,get:function(){return Ct.GraphQLDirective}});Object.defineProperty(I,"GraphQLEnumType",{enumerable:!0,get:function(){return q.GraphQLEnumType}});Object.defineProperty(I,"GraphQLFloat",{enumerable:!0,get:function(){return vr.GraphQLFloat}});Object.defineProperty(I,"GraphQLID",{enumerable:!0,get:function(){return vr.GraphQLID}});Object.defineProperty(I,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ct.GraphQLIncludeDirective}});Object.defineProperty(I,"GraphQLInputObjectType",{enumerable:!0,get:function(){return q.GraphQLInputObjectType}});Object.defineProperty(I,"GraphQLInt",{enumerable:!0,get:function(){return vr.GraphQLInt}});Object.defineProperty(I,"GraphQLInterfaceType",{enumerable:!0,get:function(){return q.GraphQLInterfaceType}});Object.defineProperty(I,"GraphQLList",{enumerable:!0,get:function(){return q.GraphQLList}});Object.defineProperty(I,"GraphQLNonNull",{enumerable:!0,get:function(){return q.GraphQLNonNull}});Object.defineProperty(I,"GraphQLObjectType",{enumerable:!0,get:function(){return q.GraphQLObjectType}});Object.defineProperty(I,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Ct.GraphQLOneOfDirective}});Object.defineProperty(I,"GraphQLScalarType",{enumerable:!0,get:function(){return q.GraphQLScalarType}});Object.defineProperty(I,"GraphQLSchema",{enumerable:!0,get:function(){return dy.GraphQLSchema}});Object.defineProperty(I,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ct.GraphQLSkipDirective}});Object.defineProperty(I,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ct.GraphQLSpecifiedByDirective}});Object.defineProperty(I,"GraphQLString",{enumerable:!0,get:function(){return vr.GraphQLString}});Object.defineProperty(I,"GraphQLUnionType",{enumerable:!0,get:function(){return q.GraphQLUnionType}});Object.defineProperty(I,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return at.SchemaMetaFieldDef}});Object.defineProperty(I,"TypeKind",{enumerable:!0,get:function(){return at.TypeKind}});Object.defineProperty(I,"TypeMetaFieldDef",{enumerable:!0,get:function(){return at.TypeMetaFieldDef}});Object.defineProperty(I,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return at.TypeNameMetaFieldDef}});Object.defineProperty(I,"__Directive",{enumerable:!0,get:function(){return at.__Directive}});Object.defineProperty(I,"__DirectiveLocation",{enumerable:!0,get:function(){return at.__DirectiveLocation}});Object.defineProperty(I,"__EnumValue",{enumerable:!0,get:function(){return at.__EnumValue}});Object.defineProperty(I,"__Field",{enumerable:!0,get:function(){return at.__Field}});Object.defineProperty(I,"__InputValue",{enumerable:!0,get:function(){return at.__InputValue}});Object.defineProperty(I,"__Schema",{enumerable:!0,get:function(){return at.__Schema}});Object.defineProperty(I,"__Type",{enumerable:!0,get:function(){return at.__Type}});Object.defineProperty(I,"__TypeKind",{enumerable:!0,get:function(){return at.__TypeKind}});Object.defineProperty(I,"assertAbstractType",{enumerable:!0,get:function(){return q.assertAbstractType}});Object.defineProperty(I,"assertCompositeType",{enumerable:!0,get:function(){return q.assertCompositeType}});Object.defineProperty(I,"assertDirective",{enumerable:!0,get:function(){return Ct.assertDirective}});Object.defineProperty(I,"assertEnumType",{enumerable:!0,get:function(){return q.assertEnumType}});Object.defineProperty(I,"assertEnumValueName",{enumerable:!0,get:function(){return Qx.assertEnumValueName}});Object.defineProperty(I,"assertInputObjectType",{enumerable:!0,get:function(){return q.assertInputObjectType}});Object.defineProperty(I,"assertInputType",{enumerable:!0,get:function(){return q.assertInputType}});Object.defineProperty(I,"assertInterfaceType",{enumerable:!0,get:function(){return q.assertInterfaceType}});Object.defineProperty(I,"assertLeafType",{enumerable:!0,get:function(){return q.assertLeafType}});Object.defineProperty(I,"assertListType",{enumerable:!0,get:function(){return q.assertListType}});Object.defineProperty(I,"assertName",{enumerable:!0,get:function(){return Qx.assertName}});Object.defineProperty(I,"assertNamedType",{enumerable:!0,get:function(){return q.assertNamedType}});Object.defineProperty(I,"assertNonNullType",{enumerable:!0,get:function(){return q.assertNonNullType}});Object.defineProperty(I,"assertNullableType",{enumerable:!0,get:function(){return q.assertNullableType}});Object.defineProperty(I,"assertObjectType",{enumerable:!0,get:function(){return q.assertObjectType}});Object.defineProperty(I,"assertOutputType",{enumerable:!0,get:function(){return q.assertOutputType}});Object.defineProperty(I,"assertScalarType",{enumerable:!0,get:function(){return q.assertScalarType}});Object.defineProperty(I,"assertSchema",{enumerable:!0,get:function(){return dy.assertSchema}});Object.defineProperty(I,"assertType",{enumerable:!0,get:function(){return q.assertType}});Object.defineProperty(I,"assertUnionType",{enumerable:!0,get:function(){return q.assertUnionType}});Object.defineProperty(I,"assertValidSchema",{enumerable:!0,get:function(){return Kx.assertValidSchema}});Object.defineProperty(I,"assertWrappingType",{enumerable:!0,get:function(){return q.assertWrappingType}});Object.defineProperty(I,"getNamedType",{enumerable:!0,get:function(){return q.getNamedType}});Object.defineProperty(I,"getNullableType",{enumerable:!0,get:function(){return q.getNullableType}});Object.defineProperty(I,"introspectionTypes",{enumerable:!0,get:function(){return at.introspectionTypes}});Object.defineProperty(I,"isAbstractType",{enumerable:!0,get:function(){return q.isAbstractType}});Object.defineProperty(I,"isCompositeType",{enumerable:!0,get:function(){return q.isCompositeType}});Object.defineProperty(I,"isDirective",{enumerable:!0,get:function(){return Ct.isDirective}});Object.defineProperty(I,"isEnumType",{enumerable:!0,get:function(){return q.isEnumType}});Object.defineProperty(I,"isInputObjectType",{enumerable:!0,get:function(){return q.isInputObjectType}});Object.defineProperty(I,"isInputType",{enumerable:!0,get:function(){return q.isInputType}});Object.defineProperty(I,"isInterfaceType",{enumerable:!0,get:function(){return q.isInterfaceType}});Object.defineProperty(I,"isIntrospectionType",{enumerable:!0,get:function(){return at.isIntrospectionType}});Object.defineProperty(I,"isLeafType",{enumerable:!0,get:function(){return q.isLeafType}});Object.defineProperty(I,"isListType",{enumerable:!0,get:function(){return q.isListType}});Object.defineProperty(I,"isNamedType",{enumerable:!0,get:function(){return q.isNamedType}});Object.defineProperty(I,"isNonNullType",{enumerable:!0,get:function(){return q.isNonNullType}});Object.defineProperty(I,"isNullableType",{enumerable:!0,get:function(){return q.isNullableType}});Object.defineProperty(I,"isObjectType",{enumerable:!0,get:function(){return q.isObjectType}});Object.defineProperty(I,"isOutputType",{enumerable:!0,get:function(){return q.isOutputType}});Object.defineProperty(I,"isRequiredArgument",{enumerable:!0,get:function(){return q.isRequiredArgument}});Object.defineProperty(I,"isRequiredInputField",{enumerable:!0,get:function(){return q.isRequiredInputField}});Object.defineProperty(I,"isScalarType",{enumerable:!0,get:function(){return q.isScalarType}});Object.defineProperty(I,"isSchema",{enumerable:!0,get:function(){return dy.isSchema}});Object.defineProperty(I,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ct.isSpecifiedDirective}});Object.defineProperty(I,"isSpecifiedScalarType",{enumerable:!0,get:function(){return vr.isSpecifiedScalarType}});Object.defineProperty(I,"isType",{enumerable:!0,get:function(){return q.isType}});Object.defineProperty(I,"isUnionType",{enumerable:!0,get:function(){return q.isUnionType}});Object.defineProperty(I,"isWrappingType",{enumerable:!0,get:function(){return q.isWrappingType}});Object.defineProperty(I,"resolveObjMapThunk",{enumerable:!0,get:function(){return q.resolveObjMapThunk}});Object.defineProperty(I,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return q.resolveReadonlyArrayThunk}});Object.defineProperty(I,"specifiedDirectives",{enumerable:!0,get:function(){return Ct.specifiedDirectives}});Object.defineProperty(I,"specifiedScalarTypes",{enumerable:!0,get:function(){return vr.specifiedScalarTypes}});Object.defineProperty(I,"validateSchema",{enumerable:!0,get:function(){return Kx.validateSchema}});var dy=gn(),q=te(),Ct=it(),vr=Yt(),at=_t(),Kx=Vo(),Qx=No()});var Jx=y(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});Object.defineProperty(re,"BREAK",{enumerable:!0,get:function(){return ia.BREAK}});Object.defineProperty(re,"DirectiveLocation",{enumerable:!0,get:function(){return LF.DirectiveLocation}});Object.defineProperty(re,"Kind",{enumerable:!0,get:function(){return wF.Kind}});Object.defineProperty(re,"Lexer",{enumerable:!0,get:function(){return PF.Lexer}});Object.defineProperty(re,"Location",{enumerable:!0,get:function(){return py.Location}});Object.defineProperty(re,"OperationTypeNode",{enumerable:!0,get:function(){return py.OperationTypeNode}});Object.defineProperty(re,"Source",{enumerable:!0,get:function(){return NF.Source}});Object.defineProperty(re,"Token",{enumerable:!0,get:function(){return py.Token}});Object.defineProperty(re,"TokenKind",{enumerable:!0,get:function(){return DF.TokenKind}});Object.defineProperty(re,"getEnterLeaveForKind",{enumerable:!0,get:function(){return ia.getEnterLeaveForKind}});Object.defineProperty(re,"getLocation",{enumerable:!0,get:function(){return kF.getLocation}});Object.defineProperty(re,"getVisitFn",{enumerable:!0,get:function(){return ia.getVisitFn}});Object.defineProperty(re,"isConstValueNode",{enumerable:!0,get:function(){return Ft.isConstValueNode}});Object.defineProperty(re,"isDefinitionNode",{enumerable:!0,get:function(){return Ft.isDefinitionNode}});Object.defineProperty(re,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ft.isExecutableDefinitionNode}});Object.defineProperty(re,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return Ft.isSchemaCoordinateNode}});Object.defineProperty(re,"isSelectionNode",{enumerable:!0,get:function(){return Ft.isSelectionNode}});Object.defineProperty(re,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ft.isTypeDefinitionNode}});Object.defineProperty(re,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ft.isTypeExtensionNode}});Object.defineProperty(re,"isTypeNode",{enumerable:!0,get:function(){return Ft.isTypeNode}});Object.defineProperty(re,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ft.isTypeSystemDefinitionNode}});Object.defineProperty(re,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ft.isTypeSystemExtensionNode}});Object.defineProperty(re,"isValueNode",{enumerable:!0,get:function(){return Ft.isValueNode}});Object.defineProperty(re,"parse",{enumerable:!0,get:function(){return na.parse}});Object.defineProperty(re,"parseConstValue",{enumerable:!0,get:function(){return na.parseConstValue}});Object.defineProperty(re,"parseSchemaCoordinate",{enumerable:!0,get:function(){return na.parseSchemaCoordinate}});Object.defineProperty(re,"parseType",{enumerable:!0,get:function(){return na.parseType}});Object.defineProperty(re,"parseValue",{enumerable:!0,get:function(){return na.parseValue}});Object.defineProperty(re,"print",{enumerable:!0,get:function(){return jF.print}});Object.defineProperty(re,"printLocation",{enumerable:!0,get:function(){return Bx.printLocation}});Object.defineProperty(re,"printSourceLocation",{enumerable:!0,get:function(){return Bx.printSourceLocation}});Object.defineProperty(re,"visit",{enumerable:!0,get:function(){return ia.visit}});Object.defineProperty(re,"visitInParallel",{enumerable:!0,get:function(){return ia.visitInParallel}});var NF=Tu(),kF=mu(),Bx=og(),wF=ee(),DF=pi(),PF=$o(),na=un(),jF=ct(),ia=cn(),py=kt(),Ft=hn(),LF=di()});var Yx=y(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.isAsyncIterable=AF;function AF(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var Wx=y(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});my.mapAsyncIterator=RF;function RF(e,t){let n=e[Symbol.asyncIterator]();async function i(r){if(r.done)return r;try{return{value:await t(r.value),done:!1}}catch(o){if(typeof n.return=="function")try{await n.return()}catch{}throw o}}return{async next(){return i(await n.next())},async return(){return typeof n.return=="function"?i(await n.return()):{value:void 0,done:!0}},async throw(r){if(typeof n.throw=="function")return i(await n.throw(r));throw r},[Symbol.asyncIterator](){return this}}}});var tO=y(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.createSourceEventStream=eO;bc.subscribe=VF;var CF=Xe(),FF=se(),Hx=Yx(),Xx=Qo(),gy=U(),zF=fc(),UF=uc(),oa=ra(),MF=Wx(),qF=Ei();async function VF(e){arguments.length<2||(0,CF.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await eO(e);if(!(0,Hx.isAsyncIterable)(t))return t;let n=i=>(0,oa.execute)({...e,rootValue:i});return(0,MF.mapAsyncIterator)(t,n)}function GF(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function eO(...e){let t=GF(e),{schema:n,document:i,variableValues:r}=t;(0,oa.assertValidExecutionArguments)(n,i,r);let o=(0,oa.buildExecutionContext)(t);if(!("schema"in o))return{errors:o};try{let a=await KF(o);if(!(0,Hx.isAsyncIterable)(a))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,FF.inspect)(a)}.`);return a}catch(a){if(a instanceof gy.GraphQLError)return{errors:[a]};throw a}}async function KF(e){let{schema:t,fragments:n,operation:i,variableValues:r,rootValue:o}=e,a=t.getSubscriptionType();if(a==null)throw new gy.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:i});let s=(0,UF.collectFields)(t,n,r,a,i.selectionSet),[u,c]=[...s.entries()][0],l=(0,oa.getFieldDef)(t,a,c[0]);if(!l){let v=c[0].name.value;throw new gy.GraphQLError(`The subscription field "${v}" is not defined.`,{nodes:c})}let d=(0,Xx.addPath)(void 0,u,a.name),p=(0,oa.buildResolveInfo)(e,l,c,a,d);try{var f;let v=(0,qF.getArgumentValues)(l,c[0],r),_=e.contextValue,z=await((f=l.subscribe)!==null&&f!==void 0?f:e.subscribeFieldResolver)(o,v,_,p);if(z instanceof Error)throw z;return z}catch(v){throw(0,zF.locatedError)(v,c,(0,Xx.pathToArray)(d))}}});var nO=y(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Object.defineProperty(Et,"createSourceEventStream",{enumerable:!0,get:function(){return rO.createSourceEventStream}});Object.defineProperty(Et,"defaultFieldResolver",{enumerable:!0,get:function(){return _c.defaultFieldResolver}});Object.defineProperty(Et,"defaultTypeResolver",{enumerable:!0,get:function(){return _c.defaultTypeResolver}});Object.defineProperty(Et,"execute",{enumerable:!0,get:function(){return _c.execute}});Object.defineProperty(Et,"executeSync",{enumerable:!0,get:function(){return _c.executeSync}});Object.defineProperty(Et,"getArgumentValues",{enumerable:!0,get:function(){return vy.getArgumentValues}});Object.defineProperty(Et,"getDirectiveValues",{enumerable:!0,get:function(){return vy.getDirectiveValues}});Object.defineProperty(Et,"getVariableValues",{enumerable:!0,get:function(){return vy.getVariableValues}});Object.defineProperty(Et,"responsePathAsArray",{enumerable:!0,get:function(){return QF.pathToArray}});Object.defineProperty(Et,"subscribe",{enumerable:!0,get:function(){return rO.subscribe}});var QF=Qo(),_c=ra(),rO=tO(),vy=Ei()});var iO=y(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.NoDeprecatedCustomRule=ZF;var hy=Ge(),aa=U(),yy=te();function ZF(e){return{Field(t){let n=e.getFieldDef(),i=n?.deprecationReason;if(n&&i!=null){let r=e.getParentType();r!=null||(0,hy.invariant)(!1),e.reportError(new aa.GraphQLError(`The field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),i=n?.deprecationReason;if(n&&i!=null){let r=e.getDirective();if(r!=null)e.reportError(new aa.GraphQLError(`Directive "@${r.name}" argument "${n.name}" is deprecated. ${i}`,{nodes:t}));else{let o=e.getParentType(),a=e.getFieldDef();o!=null&&a!=null||(0,hy.invariant)(!1),e.reportError(new aa.GraphQLError(`Field "${o.name}.${a.name}" argument "${n.name}" is deprecated. ${i}`,{nodes:t}))}}},ObjectField(t){let n=(0,yy.getNamedType)(e.getParentInputType());if((0,yy.isInputObjectType)(n)){let i=n.getFields()[t.name.value],r=i?.deprecationReason;r!=null&&e.reportError(new aa.GraphQLError(`The input field ${n.name}.${i.name} is deprecated. ${r}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),i=n?.deprecationReason;if(n&&i!=null){let r=(0,yy.getNamedType)(e.getInputType());r!=null||(0,hy.invariant)(!1),e.reportError(new aa.GraphQLError(`The enum value "${r.name}.${n.name}" is deprecated. ${i}`,{nodes:t}))}}}}});var oO=y(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.NoSchemaIntrospectionCustomRule=WF;var BF=U(),JF=te(),YF=_t();function WF(e){return{Field(t){let n=(0,JF.getNamedType)(e.getType());n&&(0,YF.isIntrospectionType)(n)&&e.reportError(new BF.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var sO=y(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Object.defineProperty(Z,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return ez.ExecutableDefinitionsRule}});Object.defineProperty(Z,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return tz.FieldsOnCorrectTypeRule}});Object.defineProperty(Z,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return rz.FragmentsOnCompositeTypesRule}});Object.defineProperty(Z,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return nz.KnownArgumentNamesRule}});Object.defineProperty(Z,"KnownDirectivesRule",{enumerable:!0,get:function(){return iz.KnownDirectivesRule}});Object.defineProperty(Z,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return oz.KnownFragmentNamesRule}});Object.defineProperty(Z,"KnownTypeNamesRule",{enumerable:!0,get:function(){return az.KnownTypeNamesRule}});Object.defineProperty(Z,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return sz.LoneAnonymousOperationRule}});Object.defineProperty(Z,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Sz.LoneSchemaDefinitionRule}});Object.defineProperty(Z,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Iz.MaxIntrospectionDepthRule}});Object.defineProperty(Z,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Az.NoDeprecatedCustomRule}});Object.defineProperty(Z,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return uz.NoFragmentCyclesRule}});Object.defineProperty(Z,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Rz.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Z,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return cz.NoUndefinedVariablesRule}});Object.defineProperty(Z,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return lz.NoUnusedFragmentsRule}});Object.defineProperty(Z,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return dz.NoUnusedVariablesRule}});Object.defineProperty(Z,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return pz.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Z,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return fz.PossibleFragmentSpreadsRule}});Object.defineProperty(Z,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Lz.PossibleTypeExtensionsRule}});Object.defineProperty(Z,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return mz.ProvidedRequiredArgumentsRule}});Object.defineProperty(Z,"ScalarLeafsRule",{enumerable:!0,get:function(){return gz.ScalarLeafsRule}});Object.defineProperty(Z,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return vz.SingleFieldSubscriptionsRule}});Object.defineProperty(Z,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Pz.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Z,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return hz.UniqueArgumentNamesRule}});Object.defineProperty(Z,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return jz.UniqueDirectiveNamesRule}});Object.defineProperty(Z,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return yz.UniqueDirectivesPerLocationRule}});Object.defineProperty(Z,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return wz.UniqueEnumValueNamesRule}});Object.defineProperty(Z,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Dz.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Z,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return bz.UniqueFragmentNamesRule}});Object.defineProperty(Z,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return _z.UniqueInputFieldNamesRule}});Object.defineProperty(Z,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Tz.UniqueOperationNamesRule}});Object.defineProperty(Z,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Nz.UniqueOperationTypesRule}});Object.defineProperty(Z,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return kz.UniqueTypeNamesRule}});Object.defineProperty(Z,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return $z.UniqueVariableNamesRule}});Object.defineProperty(Z,"ValidationContext",{enumerable:!0,get:function(){return HF.ValidationContext}});Object.defineProperty(Z,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Ez.ValuesOfCorrectTypeRule}});Object.defineProperty(Z,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return xz.VariablesAreInputTypesRule}});Object.defineProperty(Z,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Oz.VariablesInAllowedPositionRule}});Object.defineProperty(Z,"recommendedRules",{enumerable:!0,get:function(){return aO.recommendedRules}});Object.defineProperty(Z,"specifiedRules",{enumerable:!0,get:function(){return aO.specifiedRules}});Object.defineProperty(Z,"validate",{enumerable:!0,get:function(){return XF.validate}});var XF=ea(),HF=Xh(),aO=Jh(),ez=dv(),tz=fv(),rz=gv(),nz=vv(),iz=_v(),oz=$v(),az=Ov(),sz=Sv(),uz=jv(),cz=Av(),lz=Cv(),dz=zv(),pz=Jv(),fz=Xv(),mz=rh(),gz=ah(),vz=gh(),hz=_h(),yz=Oh(),bz=Ph(),_z=Lh(),Tz=Rh(),$z=qh(),Ez=Gh(),xz=Qh(),Oz=Bh(),Iz=Dv(),Sz=kv(),Nz=Fh(),kz=Uh(),wz=Sh(),Dz=wh(),Pz=yh(),jz=$h(),Lz=eh(),Az=iO(),Rz=oO()});var uO=y($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});Object.defineProperty($n,"GraphQLError",{enumerable:!0,get:function(){return Ty.GraphQLError}});Object.defineProperty($n,"formatError",{enumerable:!0,get:function(){return Ty.formatError}});Object.defineProperty($n,"locatedError",{enumerable:!0,get:function(){return Fz.locatedError}});Object.defineProperty($n,"printError",{enumerable:!0,get:function(){return Ty.printError}});Object.defineProperty($n,"syntaxError",{enumerable:!0,get:function(){return Cz.syntaxError}});var Ty=U(),Cz=mo(),Fz=fc()});var Ey=y($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.getIntrospectionQuery=zz;function zz(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",r=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(u){return t.inputValueDeprecation?u:""}let s=t.oneOf?"isOneOf":"";return`
|
|
65
65
|
query IntrospectionQuery {
|
|
66
66
|
__schema {
|
|
67
67
|
${o}
|
|
@@ -73,10 +73,10 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
73
73
|
}
|
|
74
74
|
directives {
|
|
75
75
|
name
|
|
76
|
-
${
|
|
77
|
-
${
|
|
76
|
+
${n}
|
|
77
|
+
${r}
|
|
78
78
|
locations
|
|
79
|
-
args${
|
|
79
|
+
args${a("(includeDeprecated: true)")} {
|
|
80
80
|
...InputValue
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -86,13 +86,13 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
86
86
|
fragment FullType on __Type {
|
|
87
87
|
kind
|
|
88
88
|
name
|
|
89
|
-
${t}
|
|
90
89
|
${n}
|
|
91
|
-
${
|
|
90
|
+
${i}
|
|
91
|
+
${s}
|
|
92
92
|
fields(includeDeprecated: true) {
|
|
93
93
|
name
|
|
94
|
-
${
|
|
95
|
-
args${
|
|
94
|
+
${n}
|
|
95
|
+
args${a("(includeDeprecated: true)")} {
|
|
96
96
|
...InputValue
|
|
97
97
|
}
|
|
98
98
|
type {
|
|
@@ -101,7 +101,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
101
101
|
isDeprecated
|
|
102
102
|
deprecationReason
|
|
103
103
|
}
|
|
104
|
-
inputFields${
|
|
104
|
+
inputFields${a("(includeDeprecated: true)")} {
|
|
105
105
|
...InputValue
|
|
106
106
|
}
|
|
107
107
|
interfaces {
|
|
@@ -109,7 +109,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
109
109
|
}
|
|
110
110
|
enumValues(includeDeprecated: true) {
|
|
111
111
|
name
|
|
112
|
-
${
|
|
112
|
+
${n}
|
|
113
113
|
isDeprecated
|
|
114
114
|
deprecationReason
|
|
115
115
|
}
|
|
@@ -120,11 +120,11 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
120
120
|
|
|
121
121
|
fragment InputValue on __InputValue {
|
|
122
122
|
name
|
|
123
|
-
${
|
|
123
|
+
${n}
|
|
124
124
|
type { ...TypeRef }
|
|
125
125
|
defaultValue
|
|
126
|
-
${
|
|
127
|
-
${
|
|
126
|
+
${a("isDeprecated")}
|
|
127
|
+
${a("deprecationReason")}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
fragment TypeRef on __Type {
|
|
@@ -167,69 +167,120 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
`}});var hm=y(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.getOperationAST=rI;var eI=$();function rI(e,r){let t=null;for(let i of e.definitions)if(i.kind===eI.Kind.OPERATION_DEFINITION){var n;if(r==null){if(t)return null;t=i}else if(((n=i.name)===null||n===void 0?void 0:n.value)===r)return i}return t}});var ym=y(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.getOperationRootType=tI;var bo=w();function tI(e,r){if(r.operation==="query"){let t=e.getQueryType();if(!t)throw new bo.GraphQLError("Schema does not define the required query root type.",{nodes:r});return t}if(r.operation==="mutation"){let t=e.getMutationType();if(!t)throw new bo.GraphQLError("Schema is not configured for mutations.",{nodes:r});return t}if(r.operation==="subscription"){let t=e.getSubscriptionType();if(!t)throw new bo.GraphQLError("Schema is not configured for subscriptions.",{nodes:r});return t}throw new bo.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:r})}});var vm=y(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.introspectionFromSchema=aI;var nI=Ie(),iI=nt(),oI=Gn(),sI=Tc();function aI(e,r){let t={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...r},n=(0,iI.parse)((0,sI.getIntrospectionQuery)(t)),i=(0,oI.executeSync)({schema:e,document:n});return!i.errors&&i.data||(0,nI.invariant)(!1),i.data}});var Tm=y(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.buildClientSchema=mI;var uI=Ae(),Ce=J(),gm=dr(),Eo=ln(),cI=nt(),qe=Q(),lI=we(),gr=Qe(),pI=hr(),dI=lt(),fI=xn();function mI(e,r){(0,gm.isObjectLike)(e)&&(0,gm.isObjectLike)(e.__schema)||(0,uI.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Ce.inspect)(e)}.`);let t=e.__schema,n=(0,Eo.keyValMap)(t.types,g=>g.name,g=>d(g));for(let g of[...pI.specifiedScalarTypes,...gr.introspectionTypes])n[g.name]&&(n[g.name]=g);let i=t.queryType?l(t.queryType):null,o=t.mutationType?l(t.mutationType):null,s=t.subscriptionType?l(t.subscriptionType):null,a=t.directives?t.directives.map(cr):[];return new dI.GraphQLSchema({description:t.description,query:i,mutation:o,subscription:s,types:Object.values(n),directives:a,assumeValid:r?.assumeValid});function u(g){if(g.kind===gr.TypeKind.LIST){let F=g.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");return new qe.GraphQLList(u(F))}if(g.kind===gr.TypeKind.NON_NULL){let F=g.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");let le=u(F);return new qe.GraphQLNonNull((0,qe.assertNullableType)(le))}return c(g)}function c(g){let F=g.name;if(!F)throw new Error(`Unknown type reference: ${(0,Ce.inspect)(g)}.`);let le=n[F];if(!le)throw new Error(`Invalid or incomplete schema, unknown type: ${F}. Ensure that a full introspection query is used in order to build a client schema.`);return le}function l(g){return(0,qe.assertObjectType)(c(g))}function p(g){return(0,qe.assertInterfaceType)(c(g))}function d(g){if(g!=null&&g.name!=null&&g.kind!=null)switch(g.kind){case gr.TypeKind.SCALAR:return m(g);case gr.TypeKind.OBJECT:return _(g);case gr.TypeKind.INTERFACE:return R(g);case gr.TypeKind.UNION:return j(g);case gr.TypeKind.ENUM:return O(g);case gr.TypeKind.INPUT_OBJECT:return U(g)}let F=(0,Ce.inspect)(g);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${F}.`)}function m(g){return new qe.GraphQLScalarType({name:g.name,description:g.description,specifiedByURL:g.specifiedByURL})}function h(g){if(g.interfaces===null&&g.kind===gr.TypeKind.INTERFACE)return[];if(!g.interfaces){let F=(0,Ce.inspect)(g);throw new Error(`Introspection result missing interfaces: ${F}.`)}return g.interfaces.map(p)}function _(g){return new qe.GraphQLObjectType({name:g.name,description:g.description,interfaces:()=>h(g),fields:()=>oe(g)})}function R(g){return new qe.GraphQLInterfaceType({name:g.name,description:g.description,interfaces:()=>h(g),fields:()=>oe(g)})}function j(g){if(!g.possibleTypes){let F=(0,Ce.inspect)(g);throw new Error(`Introspection result missing possibleTypes: ${F}.`)}return new qe.GraphQLUnionType({name:g.name,description:g.description,types:()=>g.possibleTypes.map(l)})}function O(g){if(!g.enumValues){let F=(0,Ce.inspect)(g);throw new Error(`Introspection result missing enumValues: ${F}.`)}return new qe.GraphQLEnumType({name:g.name,description:g.description,values:(0,Eo.keyValMap)(g.enumValues,F=>F.name,F=>({description:F.description,deprecationReason:F.deprecationReason}))})}function U(g){if(!g.inputFields){let F=(0,Ce.inspect)(g);throw new Error(`Introspection result missing inputFields: ${F}.`)}return new qe.GraphQLInputObjectType({name:g.name,description:g.description,fields:()=>be(g.inputFields),isOneOf:g.isOneOf})}function oe(g){if(!g.fields)throw new Error(`Introspection result missing fields: ${(0,Ce.inspect)(g)}.`);return(0,Eo.keyValMap)(g.fields,F=>F.name,_r)}function _r(g){let F=u(g.type);if(!(0,qe.isOutputType)(F)){let le=(0,Ce.inspect)(F);throw new Error(`Introspection must provide output type for fields, but received: ${le}.`)}if(!g.args){let le=(0,Ce.inspect)(g);throw new Error(`Introspection result missing field args: ${le}.`)}return{description:g.description,deprecationReason:g.deprecationReason,type:F,args:be(g.args)}}function be(g){return(0,Eo.keyValMap)(g,F=>F.name,ur)}function ur(g){let F=u(g.type);if(!(0,qe.isInputType)(F)){let Et=(0,Ce.inspect)(F);throw new Error(`Introspection must provide input type for arguments, but received: ${Et}.`)}let le=g.defaultValue!=null?(0,fI.valueFromAST)((0,cI.parseValue)(g.defaultValue),F):void 0;return{description:g.description,type:F,defaultValue:le,deprecationReason:g.deprecationReason}}function cr(g){if(!g.args){let F=(0,Ce.inspect)(g);throw new Error(`Introspection result missing directive args: ${F}.`)}if(!g.locations){let F=(0,Ce.inspect)(g);throw new Error(`Introspection result missing directive locations: ${F}.`)}return new lI.GraphQLDirective({name:g.name,description:g.description,isRepeatable:g.isRepeatable,locations:g.locations.slice(),args:be(g.args)})}}});var Ic=y(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.extendSchema=bI;Oo.extendSchemaImpl=Lm;var hI=Ae(),yI=J(),vI=Ie(),gI=Qr(),Kn=_s(),Ye=$(),bm=dt(),ie=Q(),Bn=we(),Im=Qe(),Sm=hr(),Em=lt(),TI=qn(),Nc=Vt(),_m=xn();function bI(e,r,t){(0,Em.assertSchema)(e),r!=null&&r.kind===Ye.Kind.DOCUMENT||(0,hI.devAssert)(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,TI.assertValidSDLExtension)(r,e);let n=e.toConfig(),i=Lm(n,r,t);return n===i?e:new Em.GraphQLSchema(i)}function Lm(e,r,t){var n,i,o,s;let a=[],u=Object.create(null),c=[],l,p=[];for(let v of r.definitions)if(v.kind===Ye.Kind.SCHEMA_DEFINITION)l=v;else if(v.kind===Ye.Kind.SCHEMA_EXTENSION)p.push(v);else if((0,bm.isTypeDefinitionNode)(v))a.push(v);else if((0,bm.isTypeExtensionNode)(v)){let L=v.name.value,N=u[L];u[L]=N?N.concat([v]):[v]}else v.kind===Ye.Kind.DIRECTIVE_DEFINITION&&c.push(v);if(Object.keys(u).length===0&&a.length===0&&c.length===0&&p.length===0&&l==null)return e;let d=Object.create(null);for(let v of e.types)d[v.name]=O(v);for(let v of a){var m;let L=v.name.value;d[L]=(m=Om[L])!==null&&m!==void 0?m:gh(v)}let h={query:e.query&&R(e.query),mutation:e.mutation&&R(e.mutation),subscription:e.subscription&&R(e.subscription),...l&&le([l]),...le(p)};return{description:(n=l)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value,...h,types:Object.values(d),directives:[...e.directives.map(j),...c.map(vh)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:(s=t?.assumeValid)!==null&&s!==void 0?s:!1};function _(v){return(0,ie.isListType)(v)?new ie.GraphQLList(_(v.ofType)):(0,ie.isNonNullType)(v)?new ie.GraphQLNonNull(_(v.ofType)):R(v)}function R(v){return d[v.name]}function j(v){let L=v.toConfig();return new Bn.GraphQLDirective({...L,args:(0,Kn.mapValue)(L.args,F)})}function O(v){if((0,Im.isIntrospectionType)(v)||(0,Sm.isSpecifiedScalarType)(v))return v;if((0,ie.isScalarType)(v))return _r(v);if((0,ie.isObjectType)(v))return be(v);if((0,ie.isInterfaceType)(v))return ur(v);if((0,ie.isUnionType)(v))return cr(v);if((0,ie.isEnumType)(v))return oe(v);if((0,ie.isInputObjectType)(v))return U(v);(0,vI.invariant)(!1,"Unexpected type: "+(0,yI.inspect)(v))}function U(v){var L;let N=v.toConfig(),D=(L=u[N.name])!==null&&L!==void 0?L:[];return new ie.GraphQLInputObjectType({...N,fields:()=>({...(0,Kn.mapValue)(N.fields,ee=>({...ee,type:_(ee.type)})),...$c(D)}),extensionASTNodes:N.extensionASTNodes.concat(D)})}function oe(v){var L;let N=v.toConfig(),D=(L=u[v.name])!==null&&L!==void 0?L:[];return new ie.GraphQLEnumType({...N,values:{...N.values,...Qc(D)},extensionASTNodes:N.extensionASTNodes.concat(D)})}function _r(v){var L;let N=v.toConfig(),D=(L=u[N.name])!==null&&L!==void 0?L:[],ee=N.specifiedByURL;for(let te of D){var me;ee=(me=Nm(te))!==null&&me!==void 0?me:ee}return new ie.GraphQLScalarType({...N,specifiedByURL:ee,extensionASTNodes:N.extensionASTNodes.concat(D)})}function be(v){var L;let N=v.toConfig(),D=(L=u[N.name])!==null&&L!==void 0?L:[];return new ie.GraphQLObjectType({...N,interfaces:()=>[...v.getInterfaces().map(R),...ni(D)],fields:()=>({...(0,Kn.mapValue)(N.fields,g),...ti(D)}),extensionASTNodes:N.extensionASTNodes.concat(D)})}function ur(v){var L;let N=v.toConfig(),D=(L=u[N.name])!==null&&L!==void 0?L:[];return new ie.GraphQLInterfaceType({...N,interfaces:()=>[...v.getInterfaces().map(R),...ni(D)],fields:()=>({...(0,Kn.mapValue)(N.fields,g),...ti(D)}),extensionASTNodes:N.extensionASTNodes.concat(D)})}function cr(v){var L;let N=v.toConfig(),D=(L=u[N.name])!==null&&L!==void 0?L:[];return new ie.GraphQLUnionType({...N,types:()=>[...v.getTypes().map(R),...Uc(D)],extensionASTNodes:N.extensionASTNodes.concat(D)})}function g(v){return{...v,type:_(v.type),args:v.args&&(0,Kn.mapValue)(v.args,F)}}function F(v){return{...v,type:_(v.type)}}function le(v){let L={};for(let D of v){var N;let ee=(N=D.operationTypes)!==null&&N!==void 0?N:[];for(let me of ee)L[me.operation]=Et(me.type)}return L}function Et(v){var L;let N=v.name.value,D=(L=Om[N])!==null&&L!==void 0?L:d[N];if(D===void 0)throw new Error(`Unknown type: "${N}".`);return D}function Kt(v){return v.kind===Ye.Kind.LIST_TYPE?new ie.GraphQLList(Kt(v.type)):v.kind===Ye.Kind.NON_NULL_TYPE?new ie.GraphQLNonNull(Kt(v.type)):Et(v)}function vh(v){var L;return new Bn.GraphQLDirective({name:v.name.value,description:(L=v.description)===null||L===void 0?void 0:L.value,locations:v.locations.map(({value:N})=>N),isRepeatable:v.repeatable,args:Vc(v.arguments),astNode:v})}function ti(v){let L=Object.create(null);for(let ee of v){var N;let me=(N=ee.fields)!==null&&N!==void 0?N:[];for(let te of me){var D;L[te.name.value]={type:Kt(te.type),description:(D=te.description)===null||D===void 0?void 0:D.value,args:Vc(te.arguments),deprecationReason:_o(te),astNode:te}}}return L}function Vc(v){let L=v??[],N=Object.create(null);for(let ee of L){var D;let me=Kt(ee.type);N[ee.name.value]={type:me,description:(D=ee.description)===null||D===void 0?void 0:D.value,defaultValue:(0,_m.valueFromAST)(ee.defaultValue,me),deprecationReason:_o(ee),astNode:ee}}return N}function $c(v){let L=Object.create(null);for(let ee of v){var N;let me=(N=ee.fields)!==null&&N!==void 0?N:[];for(let te of me){var D;let _t=Kt(te.type);L[te.name.value]={type:_t,description:(D=te.description)===null||D===void 0?void 0:D.value,defaultValue:(0,_m.valueFromAST)(te.defaultValue,_t),deprecationReason:_o(te),astNode:te}}}return L}function Qc(v){let L=Object.create(null);for(let ee of v){var N;let me=(N=ee.values)!==null&&N!==void 0?N:[];for(let te of me){var D;L[te.name.value]={description:(D=te.description)===null||D===void 0?void 0:D.value,deprecationReason:_o(te),astNode:te}}}return L}function ni(v){return v.flatMap(L=>{var N,D;return(N=(D=L.interfaces)===null||D===void 0?void 0:D.map(Et))!==null&&N!==void 0?N:[]})}function Uc(v){return v.flatMap(L=>{var N,D;return(N=(D=L.types)===null||D===void 0?void 0:D.map(Et))!==null&&N!==void 0?N:[]})}function gh(v){var L;let N=v.name.value,D=(L=u[N])!==null&&L!==void 0?L:[];switch(v.kind){case Ye.Kind.OBJECT_TYPE_DEFINITION:{var ee;let We=[v,...D];return new ie.GraphQLObjectType({name:N,description:(ee=v.description)===null||ee===void 0?void 0:ee.value,interfaces:()=>ni(We),fields:()=>ti(We),astNode:v,extensionASTNodes:D})}case Ye.Kind.INTERFACE_TYPE_DEFINITION:{var me;let We=[v,...D];return new ie.GraphQLInterfaceType({name:N,description:(me=v.description)===null||me===void 0?void 0:me.value,interfaces:()=>ni(We),fields:()=>ti(We),astNode:v,extensionASTNodes:D})}case Ye.Kind.ENUM_TYPE_DEFINITION:{var te;let We=[v,...D];return new ie.GraphQLEnumType({name:N,description:(te=v.description)===null||te===void 0?void 0:te.value,values:Qc(We),astNode:v,extensionASTNodes:D})}case Ye.Kind.UNION_TYPE_DEFINITION:{var _t;let We=[v,...D];return new ie.GraphQLUnionType({name:N,description:(_t=v.description)===null||_t===void 0?void 0:_t.value,types:()=>Uc(We),astNode:v,extensionASTNodes:D})}case Ye.Kind.SCALAR_TYPE_DEFINITION:{var jo;return new ie.GraphQLScalarType({name:N,description:(jo=v.description)===null||jo===void 0?void 0:jo.value,specifiedByURL:Nm(v),astNode:v,extensionASTNodes:D})}case Ye.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var xo;let We=[v,...D];return new ie.GraphQLInputObjectType({name:N,description:(xo=v.description)===null||xo===void 0?void 0:xo.value,fields:()=>$c(We),astNode:v,extensionASTNodes:D,isOneOf:EI(v)})}}}}var Om=(0,gI.keyMap)([...Sm.specifiedScalarTypes,...Im.introspectionTypes],e=>e.name);function _o(e){let r=(0,Nc.getDirectiveValues)(Bn.GraphQLDeprecatedDirective,e);return r?.reason}function Nm(e){let r=(0,Nc.getDirectiveValues)(Bn.GraphQLSpecifiedByDirective,e);return r?.url}function EI(e){return!!(0,Nc.getDirectiveValues)(Bn.GraphQLOneOfDirective,e)}});var Am=y(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.buildASTSchema=Dm;No.buildSchema=AI;var _I=Ae(),OI=$(),NI=nt(),II=we(),SI=lt(),LI=qn(),DI=Ic();function Dm(e,r){e!=null&&e.kind===OI.Kind.DOCUMENT||(0,_I.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,LI.assertValidSDL)(e);let t={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,DI.extendSchemaImpl)(t,e,r);if(n.astNode==null)for(let o of n.types)switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o;break}let i=[...n.directives,...II.specifiedDirectives.filter(o=>n.directives.every(s=>s.name!==o.name))];return new SI.GraphQLSchema({...n,directives:i})}function AI(e,r){let t=(0,NI.parse)(e,{noLocation:r?.noLocation,allowLegacyFragmentVariables:r?.allowLegacyFragmentVariables});return Dm(t,{assumeValidSDL:r?.assumeValidSDL,assumeValid:r?.assumeValid})}});var wm=y(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.lexicographicSortSchema=FI;var RI=J(),PI=Ie(),wI=ln(),Rm=pn(),Re=Q(),jI=we(),xI=Qe(),kI=lt();function FI(e){let r=e.toConfig(),t=(0,wI.keyValMap)(Sc(r.types),d=>d.name,p);return new kI.GraphQLSchema({...r,types:Object.values(t),directives:Sc(r.directives).map(s),query:o(r.query),mutation:o(r.mutation),subscription:o(r.subscription)});function n(d){return(0,Re.isListType)(d)?new Re.GraphQLList(n(d.ofType)):(0,Re.isNonNullType)(d)?new Re.GraphQLNonNull(n(d.ofType)):i(d)}function i(d){return t[d.name]}function o(d){return d&&i(d)}function s(d){let m=d.toConfig();return new jI.GraphQLDirective({...m,locations:Pm(m.locations,h=>h),args:a(m.args)})}function a(d){return Io(d,m=>({...m,type:n(m.type)}))}function u(d){return Io(d,m=>({...m,type:n(m.type),args:m.args&&a(m.args)}))}function c(d){return Io(d,m=>({...m,type:n(m.type)}))}function l(d){return Sc(d).map(i)}function p(d){if((0,Re.isScalarType)(d)||(0,xI.isIntrospectionType)(d))return d;if((0,Re.isObjectType)(d)){let m=d.toConfig();return new Re.GraphQLObjectType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,Re.isInterfaceType)(d)){let m=d.toConfig();return new Re.GraphQLInterfaceType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,Re.isUnionType)(d)){let m=d.toConfig();return new Re.GraphQLUnionType({...m,types:()=>l(m.types)})}if((0,Re.isEnumType)(d)){let m=d.toConfig();return new Re.GraphQLEnumType({...m,values:Io(m.values,h=>h)})}if((0,Re.isInputObjectType)(d)){let m=d.toConfig();return new Re.GraphQLInputObjectType({...m,fields:()=>c(m.fields)})}(0,PI.invariant)(!1,"Unexpected type: "+(0,RI.inspect)(d))}}function Io(e,r){let t=Object.create(null);for(let n of Object.keys(e).sort(Rm.naturalCompare))t[n]=r(e[n]);return t}function Sc(e){return Pm(e,r=>r.name)}function Pm(e,r){return e.slice().sort((t,n)=>{let i=r(t),o=r(n);return(0,Rm.naturalCompare)(i,o)})}});var Mm=y(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.printIntrospectionSchema=QI;Yn.printSchema=$I;Yn.printType=km;var CI=J(),qI=Ie(),MI=tn(),Ac=$(),So=ke(),Ut=Q(),Rc=we(),jm=Qe(),GI=hr(),VI=Nn();function $I(e){return xm(e,r=>!(0,Rc.isSpecifiedDirective)(r),UI)}function QI(e){return xm(e,Rc.isSpecifiedDirective,jm.isIntrospectionType)}function UI(e){return!(0,GI.isSpecifiedScalarType)(e)&&!(0,jm.isIntrospectionType)(e)}function xm(e,r,t){let n=e.getDirectives().filter(r),i=Object.values(e.getTypeMap()).filter(t);return[KI(e),...n.map(o=>ZI(o)),...i.map(o=>km(o))].filter(Boolean).join(`
|
|
170
|
+
`}});var cO=y(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.getOperationAST=Mz;var Uz=ee();function Mz(e,t){let n=null;for(let r of e.definitions)if(r.kind===Uz.Kind.OPERATION_DEFINITION){var i;if(t==null){if(n)return null;n=r}else if(((i=r.name)===null||i===void 0?void 0:i.value)===t)return r}return n}});var lO=y(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.getOperationRootType=qz;var Tc=U();function qz(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new Tc.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new Tc.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new Tc.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new Tc.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var dO=y(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});Iy.introspectionFromSchema=Zz;var Vz=Ge(),Gz=un(),Kz=ra(),Qz=Ey();function Zz(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},i=(0,Gz.parse)((0,Qz.getIntrospectionQuery)(n)),r=(0,Kz.executeSync)({schema:e,document:i});return!r.errors&&r.data||(0,Vz.invariant)(!1),r.data}});var fO=y(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.buildClientSchema=eU;var Bz=Xe(),dt=se(),pO=Zt(),$c=Io(),Jz=un(),pt=te(),Yz=it(),Ht=_t(),Wz=Yt(),Xz=gn(),Hz=Yo();function eU(e,t){(0,pO.isObjectLike)(e)&&(0,pO.isObjectLike)(e.__schema)||(0,Bz.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,dt.inspect)(e)}.`);let n=e.__schema,i=(0,$c.keyValMap)(n.types,T=>T.name,T=>p(T));for(let T of[...Wz.specifiedScalarTypes,...Ht.introspectionTypes])i[T.name]&&(i[T.name]=T);let r=n.queryType?l(n.queryType):null,o=n.mutationType?l(n.mutationType):null,a=n.subscriptionType?l(n.subscriptionType):null,s=n.directives?n.directives.map(Mt):[];return new Xz.GraphQLSchema({description:n.description,query:r,mutation:o,subscription:a,types:Object.values(i),directives:s,assumeValid:t?.assumeValid});function u(T){if(T.kind===Ht.TypeKind.LIST){let G=T.ofType;if(!G)throw new Error("Decorated type deeper than introspection query.");return new pt.GraphQLList(u(G))}if(T.kind===Ht.TypeKind.NON_NULL){let G=T.ofType;if(!G)throw new Error("Decorated type deeper than introspection query.");let Se=u(G);return new pt.GraphQLNonNull((0,pt.assertNullableType)(Se))}return c(T)}function c(T){let G=T.name;if(!G)throw new Error(`Unknown type reference: ${(0,dt.inspect)(T)}.`);let Se=i[G];if(!Se)throw new Error(`Invalid or incomplete schema, unknown type: ${G}. Ensure that a full introspection query is used in order to build a client schema.`);return Se}function l(T){return(0,pt.assertObjectType)(c(T))}function d(T){return(0,pt.assertInterfaceType)(c(T))}function p(T){if(T!=null&&T.name!=null&&T.kind!=null)switch(T.kind){case Ht.TypeKind.SCALAR:return f(T);case Ht.TypeKind.OBJECT:return _(T);case Ht.TypeKind.INTERFACE:return j(T);case Ht.TypeKind.UNION:return z(T);case Ht.TypeKind.ENUM:return k(T);case Ht.TypeKind.INPUT_OBJECT:return V(T)}let G=(0,dt.inspect)(T);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${G}.`)}function f(T){return new pt.GraphQLScalarType({name:T.name,description:T.description,specifiedByURL:T.specifiedByURL})}function v(T){if(T.interfaces===null&&T.kind===Ht.TypeKind.INTERFACE)return[];if(!T.interfaces){let G=(0,dt.inspect)(T);throw new Error(`Introspection result missing interfaces: ${G}.`)}return T.interfaces.map(d)}function _(T){return new pt.GraphQLObjectType({name:T.name,description:T.description,interfaces:()=>v(T),fields:()=>H(T)})}function j(T){return new pt.GraphQLInterfaceType({name:T.name,description:T.description,interfaces:()=>v(T),fields:()=>H(T)})}function z(T){if(!T.possibleTypes){let G=(0,dt.inspect)(T);throw new Error(`Introspection result missing possibleTypes: ${G}.`)}return new pt.GraphQLUnionType({name:T.name,description:T.description,types:()=>T.possibleTypes.map(l)})}function k(T){if(!T.enumValues){let G=(0,dt.inspect)(T);throw new Error(`Introspection result missing enumValues: ${G}.`)}return new pt.GraphQLEnumType({name:T.name,description:T.description,values:(0,$c.keyValMap)(T.enumValues,G=>G.name,G=>({description:G.description,deprecationReason:G.deprecationReason}))})}function V(T){if(!T.inputFields){let G=(0,dt.inspect)(T);throw new Error(`Introspection result missing inputFields: ${G}.`)}return new pt.GraphQLInputObjectType({name:T.name,description:T.description,fields:()=>De(T.inputFields),isOneOf:T.isOneOf})}function H(T){if(!T.fields)throw new Error(`Introspection result missing fields: ${(0,dt.inspect)(T)}.`);return(0,$c.keyValMap)(T.fields,G=>G.name,Ie)}function Ie(T){let G=u(T.type);if(!(0,pt.isOutputType)(G)){let Se=(0,dt.inspect)(G);throw new Error(`Introspection must provide output type for fields, but received: ${Se}.`)}if(!T.args){let Se=(0,dt.inspect)(T);throw new Error(`Introspection result missing field args: ${Se}.`)}return{description:T.description,deprecationReason:T.deprecationReason,type:G,args:De(T.args)}}function De(T){return(0,$c.keyValMap)(T,G=>G.name,ft)}function ft(T){let G=u(T.type);if(!(0,pt.isInputType)(G)){let In=(0,dt.inspect)(G);throw new Error(`Introspection must provide input type for arguments, but received: ${In}.`)}let Se=T.defaultValue!=null?(0,Hz.valueFromAST)((0,Jz.parseValue)(T.defaultValue),G):void 0;return{description:T.description,type:G,defaultValue:Se,deprecationReason:T.deprecationReason}}function Mt(T){if(!T.args){let G=(0,dt.inspect)(T);throw new Error(`Introspection result missing directive args: ${G}.`)}if(!T.locations){let G=(0,dt.inspect)(T);throw new Error(`Introspection result missing directive locations: ${G}.`)}return new Yz.GraphQLDirective({name:T.name,description:T.description,isRepeatable:T.isRepeatable,locations:T.locations.slice(),args:De(T.args)})}}});var ky=y(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.extendSchema=aU;xc.extendSchemaImpl=TO;var tU=Xe(),rU=se(),nU=Ge(),iU=Fr(),sa=Ig(),xt=ee(),mO=hn(),_e=te(),ua=it(),bO=_t(),_O=Yt(),gO=gn(),oU=ea(),Ny=Ei(),vO=Yo();function aU(e,t,n){(0,gO.assertSchema)(e),t!=null&&t.kind===xt.Kind.DOCUMENT||(0,tU.devAssert)(!1,"Must provide valid Document AST."),n?.assumeValid!==!0&&n?.assumeValidSDL!==!0&&(0,oU.assertValidSDLExtension)(t,e);let i=e.toConfig(),r=TO(i,t,n);return i===r?e:new gO.GraphQLSchema(r)}function TO(e,t,n){var i,r,o,a;let s=[],u=Object.create(null),c=[],l,d=[];for(let b of t.definitions)if(b.kind===xt.Kind.SCHEMA_DEFINITION)l=b;else if(b.kind===xt.Kind.SCHEMA_EXTENSION)d.push(b);else if((0,mO.isTypeDefinitionNode)(b))s.push(b);else if((0,mO.isTypeExtensionNode)(b)){let A=b.name.value,D=u[A];u[A]=D?D.concat([b]):[b]}else b.kind===xt.Kind.DIRECTIVE_DEFINITION&&c.push(b);if(Object.keys(u).length===0&&s.length===0&&c.length===0&&d.length===0&&l==null)return e;let p=Object.create(null);for(let b of e.types)p[b.name]=k(b);for(let b of s){var f;let A=b.name.value;p[A]=(f=hO[A])!==null&&f!==void 0?f:_I(b)}let v={query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription),...l&&Se([l]),...Se(d)};return{description:(i=l)===null||i===void 0||(r=i.description)===null||r===void 0?void 0:r.value,...v,types:Object.values(p),directives:[...e.directives.map(z),...c.map(bI)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:(a=n?.assumeValid)!==null&&a!==void 0?a:!1};function _(b){return(0,_e.isListType)(b)?new _e.GraphQLList(_(b.ofType)):(0,_e.isNonNullType)(b)?new _e.GraphQLNonNull(_(b.ofType)):j(b)}function j(b){return p[b.name]}function z(b){let A=b.toConfig();return new ua.GraphQLDirective({...A,args:(0,sa.mapValue)(A.args,G)})}function k(b){if((0,bO.isIntrospectionType)(b)||(0,_O.isSpecifiedScalarType)(b))return b;if((0,_e.isScalarType)(b))return Ie(b);if((0,_e.isObjectType)(b))return De(b);if((0,_e.isInterfaceType)(b))return ft(b);if((0,_e.isUnionType)(b))return Mt(b);if((0,_e.isEnumType)(b))return H(b);if((0,_e.isInputObjectType)(b))return V(b);(0,nU.invariant)(!1,"Unexpected type: "+(0,rU.inspect)(b))}function V(b){var A;let D=b.toConfig(),R=(A=u[D.name])!==null&&A!==void 0?A:[];return new _e.GraphQLInputObjectType({...D,fields:()=>({...(0,sa.mapValue)(D.fields,ge=>({...ge,type:_(ge.type)})),...Zy(R)}),extensionASTNodes:D.extensionASTNodes.concat(R)})}function H(b){var A;let D=b.toConfig(),R=(A=u[b.name])!==null&&A!==void 0?A:[];return new _e.GraphQLEnumType({...D,values:{...D.values,...By(R)},extensionASTNodes:D.extensionASTNodes.concat(R)})}function Ie(b){var A;let D=b.toConfig(),R=(A=u[D.name])!==null&&A!==void 0?A:[],ge=D.specifiedByURL;for(let he of R){var Pe;ge=(Pe=yO(he))!==null&&Pe!==void 0?Pe:ge}return new _e.GraphQLScalarType({...D,specifiedByURL:ge,extensionASTNodes:D.extensionASTNodes.concat(R)})}function De(b){var A;let D=b.toConfig(),R=(A=u[D.name])!==null&&A!==void 0?A:[];return new _e.GraphQLObjectType({...D,interfaces:()=>[...b.getInterfaces().map(j),..._a(R)],fields:()=>({...(0,sa.mapValue)(D.fields,T),...ba(R)}),extensionASTNodes:D.extensionASTNodes.concat(R)})}function ft(b){var A;let D=b.toConfig(),R=(A=u[D.name])!==null&&A!==void 0?A:[];return new _e.GraphQLInterfaceType({...D,interfaces:()=>[...b.getInterfaces().map(j),..._a(R)],fields:()=>({...(0,sa.mapValue)(D.fields,T),...ba(R)}),extensionASTNodes:D.extensionASTNodes.concat(R)})}function Mt(b){var A;let D=b.toConfig(),R=(A=u[D.name])!==null&&A!==void 0?A:[];return new _e.GraphQLUnionType({...D,types:()=>[...b.getTypes().map(j),...Jy(R)],extensionASTNodes:D.extensionASTNodes.concat(R)})}function T(b){return{...b,type:_(b.type),args:b.args&&(0,sa.mapValue)(b.args,G)}}function G(b){return{...b,type:_(b.type)}}function Se(b){let A={};for(let R of b){var D;let ge=(D=R.operationTypes)!==null&&D!==void 0?D:[];for(let Pe of ge)A[Pe.operation]=In(Pe.type)}return A}function In(b){var A;let D=b.name.value,R=(A=hO[D])!==null&&A!==void 0?A:p[D];if(R===void 0)throw new Error(`Unknown type: "${D}".`);return R}function Ni(b){return b.kind===xt.Kind.LIST_TYPE?new _e.GraphQLList(Ni(b.type)):b.kind===xt.Kind.NON_NULL_TYPE?new _e.GraphQLNonNull(Ni(b.type)):In(b)}function bI(b){var A;return new ua.GraphQLDirective({name:b.name.value,description:(A=b.description)===null||A===void 0?void 0:A.value,locations:b.locations.map(({value:D})=>D),isRepeatable:b.repeatable,args:Qy(b.arguments),astNode:b})}function ba(b){let A=Object.create(null);for(let ge of b){var D;let Pe=(D=ge.fields)!==null&&D!==void 0?D:[];for(let he of Pe){var R;A[he.name.value]={type:Ni(he.type),description:(R=he.description)===null||R===void 0?void 0:R.value,args:Qy(he.arguments),deprecationReason:Ec(he),astNode:he}}}return A}function Qy(b){let A=b??[],D=Object.create(null);for(let ge of A){var R;let Pe=Ni(ge.type);D[ge.name.value]={type:Pe,description:(R=ge.description)===null||R===void 0?void 0:R.value,defaultValue:(0,vO.valueFromAST)(ge.defaultValue,Pe),deprecationReason:Ec(ge),astNode:ge}}return D}function Zy(b){let A=Object.create(null);for(let ge of b){var D;let Pe=(D=ge.fields)!==null&&D!==void 0?D:[];for(let he of Pe){var R;let Sn=Ni(he.type);A[he.name.value]={type:Sn,description:(R=he.description)===null||R===void 0?void 0:R.value,defaultValue:(0,vO.valueFromAST)(he.defaultValue,Sn),deprecationReason:Ec(he),astNode:he}}}return A}function By(b){let A=Object.create(null);for(let ge of b){var D;let Pe=(D=ge.values)!==null&&D!==void 0?D:[];for(let he of Pe){var R;A[he.name.value]={description:(R=he.description)===null||R===void 0?void 0:R.value,deprecationReason:Ec(he),astNode:he}}}return A}function _a(b){return b.flatMap(A=>{var D,R;return(D=(R=A.interfaces)===null||R===void 0?void 0:R.map(In))!==null&&D!==void 0?D:[]})}function Jy(b){return b.flatMap(A=>{var D,R;return(D=(R=A.types)===null||R===void 0?void 0:R.map(In))!==null&&D!==void 0?D:[]})}function _I(b){var A;let D=b.name.value,R=(A=u[D])!==null&&A!==void 0?A:[];switch(b.kind){case xt.Kind.OBJECT_TYPE_DEFINITION:{var ge;let It=[b,...R];return new _e.GraphQLObjectType({name:D,description:(ge=b.description)===null||ge===void 0?void 0:ge.value,interfaces:()=>_a(It),fields:()=>ba(It),astNode:b,extensionASTNodes:R})}case xt.Kind.INTERFACE_TYPE_DEFINITION:{var Pe;let It=[b,...R];return new _e.GraphQLInterfaceType({name:D,description:(Pe=b.description)===null||Pe===void 0?void 0:Pe.value,interfaces:()=>_a(It),fields:()=>ba(It),astNode:b,extensionASTNodes:R})}case xt.Kind.ENUM_TYPE_DEFINITION:{var he;let It=[b,...R];return new _e.GraphQLEnumType({name:D,description:(he=b.description)===null||he===void 0?void 0:he.value,values:By(It),astNode:b,extensionASTNodes:R})}case xt.Kind.UNION_TYPE_DEFINITION:{var Sn;let It=[b,...R];return new _e.GraphQLUnionType({name:D,description:(Sn=b.description)===null||Sn===void 0?void 0:Sn.value,types:()=>Jy(It),astNode:b,extensionASTNodes:R})}case xt.Kind.SCALAR_TYPE_DEFINITION:{var Ac;return new _e.GraphQLScalarType({name:D,description:(Ac=b.description)===null||Ac===void 0?void 0:Ac.value,specifiedByURL:yO(b),astNode:b,extensionASTNodes:R})}case xt.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Rc;let It=[b,...R];return new _e.GraphQLInputObjectType({name:D,description:(Rc=b.description)===null||Rc===void 0?void 0:Rc.value,fields:()=>Zy(It),astNode:b,extensionASTNodes:R,isOneOf:sU(b)})}}}}var hO=(0,iU.keyMap)([..._O.specifiedScalarTypes,...bO.introspectionTypes],e=>e.name);function Ec(e){let t=(0,Ny.getDirectiveValues)(ua.GraphQLDeprecatedDirective,e);return t?.reason}function yO(e){let t=(0,Ny.getDirectiveValues)(ua.GraphQLSpecifiedByDirective,e);return t?.url}function sU(e){return!!(0,Ny.getDirectiveValues)(ua.GraphQLOneOfDirective,e)}});var EO=y(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.buildASTSchema=$O;Oc.buildSchema=gU;var uU=Xe(),cU=ee(),lU=un(),dU=it(),pU=gn(),fU=ea(),mU=ky();function $O(e,t){e!=null&&e.kind===cU.Kind.DOCUMENT||(0,uU.devAssert)(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,fU.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},i=(0,mU.extendSchemaImpl)(n,e,t);if(i.astNode==null)for(let o of i.types)switch(o.name){case"Query":i.query=o;break;case"Mutation":i.mutation=o;break;case"Subscription":i.subscription=o;break}let r=[...i.directives,...dU.specifiedDirectives.filter(o=>i.directives.every(a=>a.name!==o.name))];return new pU.GraphQLSchema({...i,directives:r})}function gU(e,t){let n=(0,lU.parse)(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables});return $O(n,{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}});var IO=y(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.lexicographicSortSchema=$U;var vU=se(),hU=Ge(),yU=Io(),xO=So(),He=te(),bU=it(),_U=_t(),TU=gn();function $U(e){let t=e.toConfig(),n=(0,yU.keyValMap)(wy(t.types),p=>p.name,d);return new TU.GraphQLSchema({...t,types:Object.values(n),directives:wy(t.directives).map(a),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function i(p){return(0,He.isListType)(p)?new He.GraphQLList(i(p.ofType)):(0,He.isNonNullType)(p)?new He.GraphQLNonNull(i(p.ofType)):r(p)}function r(p){return n[p.name]}function o(p){return p&&r(p)}function a(p){let f=p.toConfig();return new bU.GraphQLDirective({...f,locations:OO(f.locations,v=>v),args:s(f.args)})}function s(p){return Ic(p,f=>({...f,type:i(f.type)}))}function u(p){return Ic(p,f=>({...f,type:i(f.type),args:f.args&&s(f.args)}))}function c(p){return Ic(p,f=>({...f,type:i(f.type)}))}function l(p){return wy(p).map(r)}function d(p){if((0,He.isScalarType)(p)||(0,_U.isIntrospectionType)(p))return p;if((0,He.isObjectType)(p)){let f=p.toConfig();return new He.GraphQLObjectType({...f,interfaces:()=>l(f.interfaces),fields:()=>u(f.fields)})}if((0,He.isInterfaceType)(p)){let f=p.toConfig();return new He.GraphQLInterfaceType({...f,interfaces:()=>l(f.interfaces),fields:()=>u(f.fields)})}if((0,He.isUnionType)(p)){let f=p.toConfig();return new He.GraphQLUnionType({...f,types:()=>l(f.types)})}if((0,He.isEnumType)(p)){let f=p.toConfig();return new He.GraphQLEnumType({...f,values:Ic(f.values,v=>v)})}if((0,He.isInputObjectType)(p)){let f=p.toConfig();return new He.GraphQLInputObjectType({...f,fields:()=>c(f.fields)})}(0,hU.invariant)(!1,"Unexpected type: "+(0,vU.inspect)(p))}}function Ic(e,t){let n=Object.create(null);for(let i of Object.keys(e).sort(xO.naturalCompare))n[i]=t(e[i]);return n}function wy(e){return OO(e,t=>t.name)}function OO(e,t){return e.slice().sort((n,i)=>{let r=t(n),o=t(i);return(0,xO.naturalCompare)(r,o)})}});var jO=y(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.printIntrospectionSchema=kU;ca.printSchema=NU;ca.printType=kO;var EU=se(),xU=Ge(),OU=bo(),jy=ee(),Sc=ct(),Ii=te(),Ly=it(),SO=_t(),IU=Yt(),SU=Uo();function NU(e){return NO(e,t=>!(0,Ly.isSpecifiedDirective)(t),wU)}function kU(e){return NO(e,Ly.isSpecifiedDirective,SO.isIntrospectionType)}function wU(e){return!(0,IU.isSpecifiedScalarType)(e)&&!(0,SO.isIntrospectionType)(e)}function NO(e,t,n){let i=e.getDirectives().filter(t),r=Object.values(e.getTypeMap()).filter(n);return[DU(e),...i.map(o=>zU(o)),...r.map(o=>kO(o))].filter(Boolean).join(`
|
|
171
171
|
|
|
172
|
-
`)}function
|
|
173
|
-
${
|
|
172
|
+
`)}function DU(e){if(e.description==null&&PU(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let i=e.getMutationType();i&&t.push(` mutation: ${i.name}`);let r=e.getSubscriptionType();return r&&t.push(` subscription: ${r.name}`),Ot(e)+`schema {
|
|
173
|
+
${t.join(`
|
|
174
174
|
`)}
|
|
175
|
-
}`}function
|
|
175
|
+
}`}function PU(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let i=e.getSubscriptionType();return!(i&&i.name!=="Subscription")}function kO(e){if((0,Ii.isScalarType)(e))return jU(e);if((0,Ii.isObjectType)(e))return LU(e);if((0,Ii.isInterfaceType)(e))return AU(e);if((0,Ii.isUnionType)(e))return RU(e);if((0,Ii.isEnumType)(e))return CU(e);if((0,Ii.isInputObjectType)(e))return FU(e);(0,xU.invariant)(!1,"Unexpected type: "+(0,EU.inspect)(e))}function jU(e){return Ot(e)+`scalar ${e.name}`+UU(e)}function wO(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function LU(e){return Ot(e)+`type ${e.name}`+wO(e)+DO(e)}function AU(e){return Ot(e)+`interface ${e.name}`+wO(e)+DO(e)}function RU(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Ot(e)+"union "+e.name+n}function CU(e){let t=e.getValues().map((n,i)=>Ot(n," ",!i)+" "+n.name+Ry(n.deprecationReason));return Ot(e)+`enum ${e.name}`+Ay(t)}function FU(e){let t=Object.values(e.getFields()).map((n,i)=>Ot(n," ",!i)+" "+Py(n));return Ot(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Ay(t)}function DO(e){let t=Object.values(e.getFields()).map((n,i)=>Ot(n," ",!i)+" "+n.name+PO(n.args," ")+": "+String(n.type)+Ry(n.deprecationReason));return Ay(t)}function Ay(e){return e.length!==0?` {
|
|
176
176
|
`+e.join(`
|
|
177
177
|
`)+`
|
|
178
|
-
}`:""}function
|
|
179
|
-
`+e.map((
|
|
178
|
+
}`:""}function PO(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(Py).join(", ")+")":`(
|
|
179
|
+
`+e.map((n,i)=>Ot(n," "+t,!i)+" "+t+Py(n)).join(`
|
|
180
180
|
`)+`
|
|
181
|
-
`+
|
|
182
|
-
`+
|
|
183
|
-
`+
|
|
184
|
-
`}});var Gm=y(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.concatAST=tS;var rS=$();function tS(e){let r=[];for(let t of e)r.push(...t.definitions);return{kind:rS.Kind.DOCUMENT,definitions:r}}});var Qm=y(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.separateOperations=iS;var Lo=$(),nS=it();function iS(e){let r=[],t=Object.create(null);for(let i of e.definitions)switch(i.kind){case Lo.Kind.OPERATION_DEFINITION:r.push(i);break;case Lo.Kind.FRAGMENT_DEFINITION:t[i.name.value]=Vm(i.selectionSet);break;default:}let n=Object.create(null);for(let i of r){let o=new Set;for(let a of Vm(i.selectionSet))$m(o,t,a);let s=i.name?i.name.value:"";n[s]={kind:Lo.Kind.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===Lo.Kind.FRAGMENT_DEFINITION&&o.has(a.name.value))}}return n}function $m(e,r,t){if(!e.has(t)){e.add(t);let n=r[t];if(n!==void 0)for(let i of n)$m(e,r,i)}}function Vm(e){let r=[];return(0,nS.visit)(e,{FragmentSpread(t){r.push(t.name.value)}}),r}});var Bm=y(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.stripIgnoredCharacters=sS;var oS=tn(),Um=sn(),Km=Ti(),kc=Rt();function sS(e){let r=(0,Km.isSource)(e)?e:new Km.Source(e),t=r.body,n=new Um.Lexer(r),i="",o=!1;for(;n.advance().kind!==kc.TokenKind.EOF;){let s=n.token,a=s.kind,u=!(0,Um.isPunctuatorTokenKind)(s.kind);o&&(u||s.kind===kc.TokenKind.SPREAD)&&(i+=" ");let c=t.slice(s.start,s.end);a===kc.TokenKind.BLOCK_STRING?i+=(0,oS.printBlockString)(s.value,{minimize:!0}):i+=c,o=u}return i}});var Hm=y(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.assertValidName=lS;Do.isValidNameError=Ym;var aS=Ae(),uS=w(),cS=dn();function lS(e){let r=Ym(e);if(r)throw r;return e}function Ym(e){if(typeof e=="string"||(0,aS.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new uS.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,cS.assertName)(e)}catch(r){return r}}});var th=y(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.DangerousChangeType=Tr.BreakingChangeType=void 0;Tr.findBreakingChanges=yS;Tr.findDangerousChanges=vS;var pS=J(),eh=Ie(),Wm=Qr(),dS=ke(),W=Q(),fS=hr(),mS=Nn(),hS=qa(),ce;Tr.BreakingChangeType=ce;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(ce||(Tr.BreakingChangeType=ce={}));var sr;Tr.DangerousChangeType=sr;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(sr||(Tr.DangerousChangeType=sr={}));function yS(e,r){return rh(e,r).filter(t=>t.type in ce)}function vS(e,r){return rh(e,r).filter(t=>t.type in sr)}function rh(e,r){return[...TS(e,r),...gS(e,r)]}function gS(e,r){let t=[],n=wr(e.getDirectives(),r.getDirectives());for(let i of n.removed)t.push({type:ce.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of n.persisted){let s=wr(i.args,o.args);for(let a of s.added)(0,W.isRequiredArgument)(a)&&t.push({type:ce.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(let a of s.removed)t.push({type:ce.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&t.push({type:ce.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||t.push({type:ce.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return t}function TS(e,r){let t=[],n=wr(Object.values(e.getTypeMap()),Object.values(r.getTypeMap()));for(let i of n.removed)t.push({type:ce.TYPE_REMOVED,description:(0,fS.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of n.persisted)(0,W.isEnumType)(i)&&(0,W.isEnumType)(o)?t.push(..._S(i,o)):(0,W.isUnionType)(i)&&(0,W.isUnionType)(o)?t.push(...ES(i,o)):(0,W.isInputObjectType)(i)&&(0,W.isInputObjectType)(o)?t.push(...bS(i,o)):(0,W.isObjectType)(i)&&(0,W.isObjectType)(o)?t.push(...Xm(i,o),...Jm(i,o)):(0,W.isInterfaceType)(i)&&(0,W.isInterfaceType)(o)?t.push(...Xm(i,o),...Jm(i,o)):i.constructor!==o.constructor&&t.push({type:ce.TYPE_CHANGED_KIND,description:`${i.name} changed from ${zm(i)} to ${zm(o)}.`});return t}function bS(e,r){let t=[],n=wr(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of n.added)(0,W.isRequiredInputField)(i)?t.push({type:ce.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):t.push({type:sr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of n.removed)t.push({type:ce.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of n.persisted)Wn(i.type,o.type)||t.push({type:ce.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return t}function ES(e,r){let t=[],n=wr(e.getTypes(),r.getTypes());for(let i of n.added)t.push({type:sr.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of n.removed)t.push({type:ce.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return t}function _S(e,r){let t=[],n=wr(e.getValues(),r.getValues());for(let i of n.added)t.push({type:sr.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of n.removed)t.push({type:ce.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return t}function Jm(e,r){let t=[],n=wr(e.getInterfaces(),r.getInterfaces());for(let i of n.added)t.push({type:sr.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of n.removed)t.push({type:ce.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return t}function Xm(e,r){let t=[],n=wr(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of n.removed)t.push({type:ce.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of n.persisted)t.push(...OS(e,i,o)),Hn(i.type,o.type)||t.push({type:ce.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return t}function OS(e,r,t){let n=[],i=wr(r.args,t.args);for(let o of i.removed)n.push({type:ce.ARG_REMOVED,description:`${e.name}.${r.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!Wn(o.type,s.type))n.push({type:ce.ARG_CHANGED_KIND,description:`${e.name}.${r.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)n.push({type:sr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} defaultValue was removed.`});else{let u=Zm(o.defaultValue,o.type),c=Zm(s.defaultValue,s.type);u!==c&&n.push({type:sr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of i.added)(0,W.isRequiredArgument)(o)?n.push({type:ce.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${r.name} was added.`}):n.push({type:sr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${r.name} was added.`});return n}function Hn(e,r){return(0,W.isListType)(e)?(0,W.isListType)(r)&&Hn(e.ofType,r.ofType)||(0,W.isNonNullType)(r)&&Hn(e,r.ofType):(0,W.isNonNullType)(e)?(0,W.isNonNullType)(r)&&Hn(e.ofType,r.ofType):(0,W.isNamedType)(r)&&e.name===r.name||(0,W.isNonNullType)(r)&&Hn(e,r.ofType)}function Wn(e,r){return(0,W.isListType)(e)?(0,W.isListType)(r)&&Wn(e.ofType,r.ofType):(0,W.isNonNullType)(e)?(0,W.isNonNullType)(r)&&Wn(e.ofType,r.ofType)||!(0,W.isNonNullType)(r)&&Wn(e.ofType,r):(0,W.isNamedType)(r)&&e.name===r.name}function zm(e){if((0,W.isScalarType)(e))return"a Scalar type";if((0,W.isObjectType)(e))return"an Object type";if((0,W.isInterfaceType)(e))return"an Interface type";if((0,W.isUnionType)(e))return"a Union type";if((0,W.isEnumType)(e))return"an Enum type";if((0,W.isInputObjectType)(e))return"an Input type";(0,eh.invariant)(!1,"Unexpected type: "+(0,pS.inspect)(e))}function Zm(e,r){let t=(0,mS.astFromValue)(e,r);return t!=null||(0,eh.invariant)(!1),(0,dS.print)((0,hS.sortValueNode)(t))}function wr(e,r){let t=[],n=[],i=[],o=(0,Wm.keyMap)(e,({name:a})=>a),s=(0,Wm.keyMap)(r,({name:a})=>a);for(let a of e){let u=s[a.name];u===void 0?n.push(a):i.push([a,u])}for(let a of r)o[a.name]===void 0&&t.push(a);return{added:t,persisted:i,removed:n}}});var ih=y(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.resolveASTSchemaCoordinate=nh;Ao.resolveSchemaCoordinate=IS;var gt=J(),Jn=$(),NS=nt(),Xr=Q();function IS(e,r){return nh(e,(0,NS.parseSchemaCoordinate)(r))}function SS(e,r){let t=r.name.value,n=e.getType(t);if(n!=null)return{kind:"NamedType",type:n}}function LS(e,r){let t=r.name.value,n=e.getType(t);if(!n)throw new Error(`Expected ${(0,gt.inspect)(t)} to be defined as a type in the schema.`);if(!(0,Xr.isEnumType)(n)&&!(0,Xr.isInputObjectType)(n)&&!(0,Xr.isObjectType)(n)&&!(0,Xr.isInterfaceType)(n))throw new Error(`Expected ${(0,gt.inspect)(t)} to be an Enum, Input Object, Object or Interface type.`);if((0,Xr.isEnumType)(n)){let s=r.memberName.value,a=n.getValue(s);return a==null?void 0:{kind:"EnumValue",type:n,enumValue:a}}if((0,Xr.isInputObjectType)(n)){let s=r.memberName.value,a=n.getFields()[s];return a==null?void 0:{kind:"InputField",type:n,inputField:a}}let i=r.memberName.value,o=n.getFields()[i];if(o!=null)return{kind:"Field",type:n,field:o}}function DS(e,r){let t=r.name.value,n=e.getType(t);if(n==null)throw new Error(`Expected ${(0,gt.inspect)(t)} to be defined as a type in the schema.`);if(!(0,Xr.isObjectType)(n)&&!(0,Xr.isInterfaceType)(n))throw new Error(`Expected ${(0,gt.inspect)(t)} to be an object type or interface type.`);let i=r.fieldName.value,o=n.getFields()[i];if(o==null)throw new Error(`Expected ${(0,gt.inspect)(i)} to exist as a field of type ${(0,gt.inspect)(t)} in the schema.`);let s=r.argumentName.value,a=o.args.find(u=>u.name===s);if(a!=null)return{kind:"FieldArgument",type:n,field:o,fieldArgument:a}}function AS(e,r){let t=r.name.value,n=e.getDirective(t);if(n)return{kind:"Directive",directive:n}}function RS(e,r){let t=r.name.value,n=e.getDirective(t);if(!n)throw new Error(`Expected ${(0,gt.inspect)(t)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=r,o=n.args.find(s=>s.name===i);if(o)return{kind:"DirectiveArgument",directive:n,directiveArgument:o}}function nh(e,r){switch(r.kind){case Jn.Kind.TYPE_COORDINATE:return SS(e,r);case Jn.Kind.MEMBER_COORDINATE:return LS(e,r);case Jn.Kind.ARGUMENT_COORDINATE:return DS(e,r);case Jn.Kind.DIRECTIVE_COORDINATE:return AS(e,r);case Jn.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return RS(e,r)}}});var ch=y(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});Object.defineProperty(B,"BreakingChangeType",{enumerable:!0,get:function(){return Ro.BreakingChangeType}});Object.defineProperty(B,"DangerousChangeType",{enumerable:!0,get:function(){return Ro.DangerousChangeType}});Object.defineProperty(B,"TypeInfo",{enumerable:!0,get:function(){return sh.TypeInfo}});Object.defineProperty(B,"assertValidName",{enumerable:!0,get:function(){return ah.assertValidName}});Object.defineProperty(B,"astFromValue",{enumerable:!0,get:function(){return VS.astFromValue}});Object.defineProperty(B,"buildASTSchema",{enumerable:!0,get:function(){return oh.buildASTSchema}});Object.defineProperty(B,"buildClientSchema",{enumerable:!0,get:function(){return kS.buildClientSchema}});Object.defineProperty(B,"buildSchema",{enumerable:!0,get:function(){return oh.buildSchema}});Object.defineProperty(B,"coerceInputValue",{enumerable:!0,get:function(){return $S.coerceInputValue}});Object.defineProperty(B,"concatAST",{enumerable:!0,get:function(){return QS.concatAST}});Object.defineProperty(B,"doTypesOverlap",{enumerable:!0,get:function(){return qc.doTypesOverlap}});Object.defineProperty(B,"extendSchema",{enumerable:!0,get:function(){return FS.extendSchema}});Object.defineProperty(B,"findBreakingChanges",{enumerable:!0,get:function(){return Ro.findBreakingChanges}});Object.defineProperty(B,"findDangerousChanges",{enumerable:!0,get:function(){return Ro.findDangerousChanges}});Object.defineProperty(B,"getIntrospectionQuery",{enumerable:!0,get:function(){return PS.getIntrospectionQuery}});Object.defineProperty(B,"getOperationAST",{enumerable:!0,get:function(){return wS.getOperationAST}});Object.defineProperty(B,"getOperationRootType",{enumerable:!0,get:function(){return jS.getOperationRootType}});Object.defineProperty(B,"introspectionFromSchema",{enumerable:!0,get:function(){return xS.introspectionFromSchema}});Object.defineProperty(B,"isEqualType",{enumerable:!0,get:function(){return qc.isEqualType}});Object.defineProperty(B,"isTypeSubTypeOf",{enumerable:!0,get:function(){return qc.isTypeSubTypeOf}});Object.defineProperty(B,"isValidNameError",{enumerable:!0,get:function(){return ah.isValidNameError}});Object.defineProperty(B,"lexicographicSortSchema",{enumerable:!0,get:function(){return CS.lexicographicSortSchema}});Object.defineProperty(B,"printIntrospectionSchema",{enumerable:!0,get:function(){return Cc.printIntrospectionSchema}});Object.defineProperty(B,"printSchema",{enumerable:!0,get:function(){return Cc.printSchema}});Object.defineProperty(B,"printType",{enumerable:!0,get:function(){return Cc.printType}});Object.defineProperty(B,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return uh.resolveASTSchemaCoordinate}});Object.defineProperty(B,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return uh.resolveSchemaCoordinate}});Object.defineProperty(B,"separateOperations",{enumerable:!0,get:function(){return US.separateOperations}});Object.defineProperty(B,"stripIgnoredCharacters",{enumerable:!0,get:function(){return KS.stripIgnoredCharacters}});Object.defineProperty(B,"typeFromAST",{enumerable:!0,get:function(){return qS.typeFromAST}});Object.defineProperty(B,"valueFromAST",{enumerable:!0,get:function(){return MS.valueFromAST}});Object.defineProperty(B,"valueFromASTUntyped",{enumerable:!0,get:function(){return GS.valueFromASTUntyped}});Object.defineProperty(B,"visitWithTypeInfo",{enumerable:!0,get:function(){return sh.visitWithTypeInfo}});var PS=Tc(),wS=hm(),jS=ym(),xS=vm(),kS=Tm(),oh=Am(),FS=Ic(),CS=wm(),Cc=Mm(),qS=yr(),MS=xn(),GS=xs(),VS=Nn(),sh=Hi(),$S=su(),QS=Gm(),US=Qm(),KS=Bm(),qc=vn(),ah=Hm(),Ro=th(),uh=ih()});var dh=y(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});Object.defineProperty(f,"BREAK",{enumerable:!0,get:function(){return Y.BREAK}});Object.defineProperty(f,"BreakingChangeType",{enumerable:!0,get:function(){return H.BreakingChangeType}});Object.defineProperty(f,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return b.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(f,"DangerousChangeType",{enumerable:!0,get:function(){return H.DangerousChangeType}});Object.defineProperty(f,"DirectiveLocation",{enumerable:!0,get:function(){return Y.DirectiveLocation}});Object.defineProperty(f,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return M.ExecutableDefinitionsRule}});Object.defineProperty(f,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return M.FieldsOnCorrectTypeRule}});Object.defineProperty(f,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return M.FragmentsOnCompositeTypesRule}});Object.defineProperty(f,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MAX_INT}});Object.defineProperty(f,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MIN_INT}});Object.defineProperty(f,"GraphQLBoolean",{enumerable:!0,get:function(){return b.GraphQLBoolean}});Object.defineProperty(f,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return b.GraphQLDeprecatedDirective}});Object.defineProperty(f,"GraphQLDirective",{enumerable:!0,get:function(){return b.GraphQLDirective}});Object.defineProperty(f,"GraphQLEnumType",{enumerable:!0,get:function(){return b.GraphQLEnumType}});Object.defineProperty(f,"GraphQLError",{enumerable:!0,get:function(){return Xn.GraphQLError}});Object.defineProperty(f,"GraphQLFloat",{enumerable:!0,get:function(){return b.GraphQLFloat}});Object.defineProperty(f,"GraphQLID",{enumerable:!0,get:function(){return b.GraphQLID}});Object.defineProperty(f,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return b.GraphQLIncludeDirective}});Object.defineProperty(f,"GraphQLInputObjectType",{enumerable:!0,get:function(){return b.GraphQLInputObjectType}});Object.defineProperty(f,"GraphQLInt",{enumerable:!0,get:function(){return b.GraphQLInt}});Object.defineProperty(f,"GraphQLInterfaceType",{enumerable:!0,get:function(){return b.GraphQLInterfaceType}});Object.defineProperty(f,"GraphQLList",{enumerable:!0,get:function(){return b.GraphQLList}});Object.defineProperty(f,"GraphQLNonNull",{enumerable:!0,get:function(){return b.GraphQLNonNull}});Object.defineProperty(f,"GraphQLObjectType",{enumerable:!0,get:function(){return b.GraphQLObjectType}});Object.defineProperty(f,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return b.GraphQLOneOfDirective}});Object.defineProperty(f,"GraphQLScalarType",{enumerable:!0,get:function(){return b.GraphQLScalarType}});Object.defineProperty(f,"GraphQLSchema",{enumerable:!0,get:function(){return b.GraphQLSchema}});Object.defineProperty(f,"GraphQLSkipDirective",{enumerable:!0,get:function(){return b.GraphQLSkipDirective}});Object.defineProperty(f,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return b.GraphQLSpecifiedByDirective}});Object.defineProperty(f,"GraphQLString",{enumerable:!0,get:function(){return b.GraphQLString}});Object.defineProperty(f,"GraphQLUnionType",{enumerable:!0,get:function(){return b.GraphQLUnionType}});Object.defineProperty(f,"Kind",{enumerable:!0,get:function(){return Y.Kind}});Object.defineProperty(f,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return M.KnownArgumentNamesRule}});Object.defineProperty(f,"KnownDirectivesRule",{enumerable:!0,get:function(){return M.KnownDirectivesRule}});Object.defineProperty(f,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return M.KnownFragmentNamesRule}});Object.defineProperty(f,"KnownTypeNamesRule",{enumerable:!0,get:function(){return M.KnownTypeNamesRule}});Object.defineProperty(f,"Lexer",{enumerable:!0,get:function(){return Y.Lexer}});Object.defineProperty(f,"Location",{enumerable:!0,get:function(){return Y.Location}});Object.defineProperty(f,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return M.LoneAnonymousOperationRule}});Object.defineProperty(f,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return M.LoneSchemaDefinitionRule}});Object.defineProperty(f,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return M.MaxIntrospectionDepthRule}});Object.defineProperty(f,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return M.NoDeprecatedCustomRule}});Object.defineProperty(f,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return M.NoFragmentCyclesRule}});Object.defineProperty(f,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return M.NoSchemaIntrospectionCustomRule}});Object.defineProperty(f,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return M.NoUndefinedVariablesRule}});Object.defineProperty(f,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return M.NoUnusedFragmentsRule}});Object.defineProperty(f,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return M.NoUnusedVariablesRule}});Object.defineProperty(f,"OperationTypeNode",{enumerable:!0,get:function(){return Y.OperationTypeNode}});Object.defineProperty(f,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return M.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(f,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return M.PossibleFragmentSpreadsRule}});Object.defineProperty(f,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return M.PossibleTypeExtensionsRule}});Object.defineProperty(f,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return M.ProvidedRequiredArgumentsRule}});Object.defineProperty(f,"ScalarLeafsRule",{enumerable:!0,get:function(){return M.ScalarLeafsRule}});Object.defineProperty(f,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return b.SchemaMetaFieldDef}});Object.defineProperty(f,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return M.SingleFieldSubscriptionsRule}});Object.defineProperty(f,"Source",{enumerable:!0,get:function(){return Y.Source}});Object.defineProperty(f,"Token",{enumerable:!0,get:function(){return Y.Token}});Object.defineProperty(f,"TokenKind",{enumerable:!0,get:function(){return Y.TokenKind}});Object.defineProperty(f,"TypeInfo",{enumerable:!0,get:function(){return H.TypeInfo}});Object.defineProperty(f,"TypeKind",{enumerable:!0,get:function(){return b.TypeKind}});Object.defineProperty(f,"TypeMetaFieldDef",{enumerable:!0,get:function(){return b.TypeMetaFieldDef}});Object.defineProperty(f,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return b.TypeNameMetaFieldDef}});Object.defineProperty(f,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(f,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return M.UniqueArgumentNamesRule}});Object.defineProperty(f,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return M.UniqueDirectiveNamesRule}});Object.defineProperty(f,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return M.UniqueDirectivesPerLocationRule}});Object.defineProperty(f,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return M.UniqueEnumValueNamesRule}});Object.defineProperty(f,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return M.UniqueFieldDefinitionNamesRule}});Object.defineProperty(f,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return M.UniqueFragmentNamesRule}});Object.defineProperty(f,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return M.UniqueInputFieldNamesRule}});Object.defineProperty(f,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return M.UniqueOperationNamesRule}});Object.defineProperty(f,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return M.UniqueOperationTypesRule}});Object.defineProperty(f,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return M.UniqueTypeNamesRule}});Object.defineProperty(f,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return M.UniqueVariableNamesRule}});Object.defineProperty(f,"ValidationContext",{enumerable:!0,get:function(){return M.ValidationContext}});Object.defineProperty(f,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return M.ValuesOfCorrectTypeRule}});Object.defineProperty(f,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return M.VariablesAreInputTypesRule}});Object.defineProperty(f,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return M.VariablesInAllowedPositionRule}});Object.defineProperty(f,"__Directive",{enumerable:!0,get:function(){return b.__Directive}});Object.defineProperty(f,"__DirectiveLocation",{enumerable:!0,get:function(){return b.__DirectiveLocation}});Object.defineProperty(f,"__EnumValue",{enumerable:!0,get:function(){return b.__EnumValue}});Object.defineProperty(f,"__Field",{enumerable:!0,get:function(){return b.__Field}});Object.defineProperty(f,"__InputValue",{enumerable:!0,get:function(){return b.__InputValue}});Object.defineProperty(f,"__Schema",{enumerable:!0,get:function(){return b.__Schema}});Object.defineProperty(f,"__Type",{enumerable:!0,get:function(){return b.__Type}});Object.defineProperty(f,"__TypeKind",{enumerable:!0,get:function(){return b.__TypeKind}});Object.defineProperty(f,"assertAbstractType",{enumerable:!0,get:function(){return b.assertAbstractType}});Object.defineProperty(f,"assertCompositeType",{enumerable:!0,get:function(){return b.assertCompositeType}});Object.defineProperty(f,"assertDirective",{enumerable:!0,get:function(){return b.assertDirective}});Object.defineProperty(f,"assertEnumType",{enumerable:!0,get:function(){return b.assertEnumType}});Object.defineProperty(f,"assertEnumValueName",{enumerable:!0,get:function(){return b.assertEnumValueName}});Object.defineProperty(f,"assertInputObjectType",{enumerable:!0,get:function(){return b.assertInputObjectType}});Object.defineProperty(f,"assertInputType",{enumerable:!0,get:function(){return b.assertInputType}});Object.defineProperty(f,"assertInterfaceType",{enumerable:!0,get:function(){return b.assertInterfaceType}});Object.defineProperty(f,"assertLeafType",{enumerable:!0,get:function(){return b.assertLeafType}});Object.defineProperty(f,"assertListType",{enumerable:!0,get:function(){return b.assertListType}});Object.defineProperty(f,"assertName",{enumerable:!0,get:function(){return b.assertName}});Object.defineProperty(f,"assertNamedType",{enumerable:!0,get:function(){return b.assertNamedType}});Object.defineProperty(f,"assertNonNullType",{enumerable:!0,get:function(){return b.assertNonNullType}});Object.defineProperty(f,"assertNullableType",{enumerable:!0,get:function(){return b.assertNullableType}});Object.defineProperty(f,"assertObjectType",{enumerable:!0,get:function(){return b.assertObjectType}});Object.defineProperty(f,"assertOutputType",{enumerable:!0,get:function(){return b.assertOutputType}});Object.defineProperty(f,"assertScalarType",{enumerable:!0,get:function(){return b.assertScalarType}});Object.defineProperty(f,"assertSchema",{enumerable:!0,get:function(){return b.assertSchema}});Object.defineProperty(f,"assertType",{enumerable:!0,get:function(){return b.assertType}});Object.defineProperty(f,"assertUnionType",{enumerable:!0,get:function(){return b.assertUnionType}});Object.defineProperty(f,"assertValidName",{enumerable:!0,get:function(){return H.assertValidName}});Object.defineProperty(f,"assertValidSchema",{enumerable:!0,get:function(){return b.assertValidSchema}});Object.defineProperty(f,"assertWrappingType",{enumerable:!0,get:function(){return b.assertWrappingType}});Object.defineProperty(f,"astFromValue",{enumerable:!0,get:function(){return H.astFromValue}});Object.defineProperty(f,"buildASTSchema",{enumerable:!0,get:function(){return H.buildASTSchema}});Object.defineProperty(f,"buildClientSchema",{enumerable:!0,get:function(){return H.buildClientSchema}});Object.defineProperty(f,"buildSchema",{enumerable:!0,get:function(){return H.buildSchema}});Object.defineProperty(f,"coerceInputValue",{enumerable:!0,get:function(){return H.coerceInputValue}});Object.defineProperty(f,"concatAST",{enumerable:!0,get:function(){return H.concatAST}});Object.defineProperty(f,"createSourceEventStream",{enumerable:!0,get:function(){return br.createSourceEventStream}});Object.defineProperty(f,"defaultFieldResolver",{enumerable:!0,get:function(){return br.defaultFieldResolver}});Object.defineProperty(f,"defaultTypeResolver",{enumerable:!0,get:function(){return br.defaultTypeResolver}});Object.defineProperty(f,"doTypesOverlap",{enumerable:!0,get:function(){return H.doTypesOverlap}});Object.defineProperty(f,"execute",{enumerable:!0,get:function(){return br.execute}});Object.defineProperty(f,"executeSync",{enumerable:!0,get:function(){return br.executeSync}});Object.defineProperty(f,"extendSchema",{enumerable:!0,get:function(){return H.extendSchema}});Object.defineProperty(f,"findBreakingChanges",{enumerable:!0,get:function(){return H.findBreakingChanges}});Object.defineProperty(f,"findDangerousChanges",{enumerable:!0,get:function(){return H.findDangerousChanges}});Object.defineProperty(f,"formatError",{enumerable:!0,get:function(){return Xn.formatError}});Object.defineProperty(f,"getArgumentValues",{enumerable:!0,get:function(){return br.getArgumentValues}});Object.defineProperty(f,"getDirectiveValues",{enumerable:!0,get:function(){return br.getDirectiveValues}});Object.defineProperty(f,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Y.getEnterLeaveForKind}});Object.defineProperty(f,"getIntrospectionQuery",{enumerable:!0,get:function(){return H.getIntrospectionQuery}});Object.defineProperty(f,"getLocation",{enumerable:!0,get:function(){return Y.getLocation}});Object.defineProperty(f,"getNamedType",{enumerable:!0,get:function(){return b.getNamedType}});Object.defineProperty(f,"getNullableType",{enumerable:!0,get:function(){return b.getNullableType}});Object.defineProperty(f,"getOperationAST",{enumerable:!0,get:function(){return H.getOperationAST}});Object.defineProperty(f,"getOperationRootType",{enumerable:!0,get:function(){return H.getOperationRootType}});Object.defineProperty(f,"getVariableValues",{enumerable:!0,get:function(){return br.getVariableValues}});Object.defineProperty(f,"getVisitFn",{enumerable:!0,get:function(){return Y.getVisitFn}});Object.defineProperty(f,"graphql",{enumerable:!0,get:function(){return ph.graphql}});Object.defineProperty(f,"graphqlSync",{enumerable:!0,get:function(){return ph.graphqlSync}});Object.defineProperty(f,"introspectionFromSchema",{enumerable:!0,get:function(){return H.introspectionFromSchema}});Object.defineProperty(f,"introspectionTypes",{enumerable:!0,get:function(){return b.introspectionTypes}});Object.defineProperty(f,"isAbstractType",{enumerable:!0,get:function(){return b.isAbstractType}});Object.defineProperty(f,"isCompositeType",{enumerable:!0,get:function(){return b.isCompositeType}});Object.defineProperty(f,"isConstValueNode",{enumerable:!0,get:function(){return Y.isConstValueNode}});Object.defineProperty(f,"isDefinitionNode",{enumerable:!0,get:function(){return Y.isDefinitionNode}});Object.defineProperty(f,"isDirective",{enumerable:!0,get:function(){return b.isDirective}});Object.defineProperty(f,"isEnumType",{enumerable:!0,get:function(){return b.isEnumType}});Object.defineProperty(f,"isEqualType",{enumerable:!0,get:function(){return H.isEqualType}});Object.defineProperty(f,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Y.isExecutableDefinitionNode}});Object.defineProperty(f,"isInputObjectType",{enumerable:!0,get:function(){return b.isInputObjectType}});Object.defineProperty(f,"isInputType",{enumerable:!0,get:function(){return b.isInputType}});Object.defineProperty(f,"isInterfaceType",{enumerable:!0,get:function(){return b.isInterfaceType}});Object.defineProperty(f,"isIntrospectionType",{enumerable:!0,get:function(){return b.isIntrospectionType}});Object.defineProperty(f,"isLeafType",{enumerable:!0,get:function(){return b.isLeafType}});Object.defineProperty(f,"isListType",{enumerable:!0,get:function(){return b.isListType}});Object.defineProperty(f,"isNamedType",{enumerable:!0,get:function(){return b.isNamedType}});Object.defineProperty(f,"isNonNullType",{enumerable:!0,get:function(){return b.isNonNullType}});Object.defineProperty(f,"isNullableType",{enumerable:!0,get:function(){return b.isNullableType}});Object.defineProperty(f,"isObjectType",{enumerable:!0,get:function(){return b.isObjectType}});Object.defineProperty(f,"isOutputType",{enumerable:!0,get:function(){return b.isOutputType}});Object.defineProperty(f,"isRequiredArgument",{enumerable:!0,get:function(){return b.isRequiredArgument}});Object.defineProperty(f,"isRequiredInputField",{enumerable:!0,get:function(){return b.isRequiredInputField}});Object.defineProperty(f,"isScalarType",{enumerable:!0,get:function(){return b.isScalarType}});Object.defineProperty(f,"isSchema",{enumerable:!0,get:function(){return b.isSchema}});Object.defineProperty(f,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return Y.isSchemaCoordinateNode}});Object.defineProperty(f,"isSelectionNode",{enumerable:!0,get:function(){return Y.isSelectionNode}});Object.defineProperty(f,"isSpecifiedDirective",{enumerable:!0,get:function(){return b.isSpecifiedDirective}});Object.defineProperty(f,"isSpecifiedScalarType",{enumerable:!0,get:function(){return b.isSpecifiedScalarType}});Object.defineProperty(f,"isType",{enumerable:!0,get:function(){return b.isType}});Object.defineProperty(f,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeDefinitionNode}});Object.defineProperty(f,"isTypeExtensionNode",{enumerable:!0,get:function(){return Y.isTypeExtensionNode}});Object.defineProperty(f,"isTypeNode",{enumerable:!0,get:function(){return Y.isTypeNode}});Object.defineProperty(f,"isTypeSubTypeOf",{enumerable:!0,get:function(){return H.isTypeSubTypeOf}});Object.defineProperty(f,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeSystemDefinitionNode}});Object.defineProperty(f,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Y.isTypeSystemExtensionNode}});Object.defineProperty(f,"isUnionType",{enumerable:!0,get:function(){return b.isUnionType}});Object.defineProperty(f,"isValidNameError",{enumerable:!0,get:function(){return H.isValidNameError}});Object.defineProperty(f,"isValueNode",{enumerable:!0,get:function(){return Y.isValueNode}});Object.defineProperty(f,"isWrappingType",{enumerable:!0,get:function(){return b.isWrappingType}});Object.defineProperty(f,"lexicographicSortSchema",{enumerable:!0,get:function(){return H.lexicographicSortSchema}});Object.defineProperty(f,"locatedError",{enumerable:!0,get:function(){return Xn.locatedError}});Object.defineProperty(f,"parse",{enumerable:!0,get:function(){return Y.parse}});Object.defineProperty(f,"parseConstValue",{enumerable:!0,get:function(){return Y.parseConstValue}});Object.defineProperty(f,"parseSchemaCoordinate",{enumerable:!0,get:function(){return Y.parseSchemaCoordinate}});Object.defineProperty(f,"parseType",{enumerable:!0,get:function(){return Y.parseType}});Object.defineProperty(f,"parseValue",{enumerable:!0,get:function(){return Y.parseValue}});Object.defineProperty(f,"print",{enumerable:!0,get:function(){return Y.print}});Object.defineProperty(f,"printError",{enumerable:!0,get:function(){return Xn.printError}});Object.defineProperty(f,"printIntrospectionSchema",{enumerable:!0,get:function(){return H.printIntrospectionSchema}});Object.defineProperty(f,"printLocation",{enumerable:!0,get:function(){return Y.printLocation}});Object.defineProperty(f,"printSchema",{enumerable:!0,get:function(){return H.printSchema}});Object.defineProperty(f,"printSourceLocation",{enumerable:!0,get:function(){return Y.printSourceLocation}});Object.defineProperty(f,"printType",{enumerable:!0,get:function(){return H.printType}});Object.defineProperty(f,"recommendedRules",{enumerable:!0,get:function(){return M.recommendedRules}});Object.defineProperty(f,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return H.resolveASTSchemaCoordinate}});Object.defineProperty(f,"resolveObjMapThunk",{enumerable:!0,get:function(){return b.resolveObjMapThunk}});Object.defineProperty(f,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return b.resolveReadonlyArrayThunk}});Object.defineProperty(f,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return H.resolveSchemaCoordinate}});Object.defineProperty(f,"responsePathAsArray",{enumerable:!0,get:function(){return br.responsePathAsArray}});Object.defineProperty(f,"separateOperations",{enumerable:!0,get:function(){return H.separateOperations}});Object.defineProperty(f,"specifiedDirectives",{enumerable:!0,get:function(){return b.specifiedDirectives}});Object.defineProperty(f,"specifiedRules",{enumerable:!0,get:function(){return M.specifiedRules}});Object.defineProperty(f,"specifiedScalarTypes",{enumerable:!0,get:function(){return b.specifiedScalarTypes}});Object.defineProperty(f,"stripIgnoredCharacters",{enumerable:!0,get:function(){return H.stripIgnoredCharacters}});Object.defineProperty(f,"subscribe",{enumerable:!0,get:function(){return br.subscribe}});Object.defineProperty(f,"syntaxError",{enumerable:!0,get:function(){return Xn.syntaxError}});Object.defineProperty(f,"typeFromAST",{enumerable:!0,get:function(){return H.typeFromAST}});Object.defineProperty(f,"validate",{enumerable:!0,get:function(){return M.validate}});Object.defineProperty(f,"validateSchema",{enumerable:!0,get:function(){return b.validateSchema}});Object.defineProperty(f,"valueFromAST",{enumerable:!0,get:function(){return H.valueFromAST}});Object.defineProperty(f,"valueFromASTUntyped",{enumerable:!0,get:function(){return H.valueFromASTUntyped}});Object.defineProperty(f,"version",{enumerable:!0,get:function(){return lh.version}});Object.defineProperty(f,"versionInfo",{enumerable:!0,get:function(){return lh.versionInfo}});Object.defineProperty(f,"visit",{enumerable:!0,get:function(){return Y.visit}});Object.defineProperty(f,"visitInParallel",{enumerable:!0,get:function(){return Y.visitInParallel}});Object.defineProperty(f,"visitWithTypeInfo",{enumerable:!0,get:function(){return H.visitWithTypeInfo}});var lh=np(),ph=Jf(),b=Zf(),Y=rm(),br=cm(),M=fm(),Xn=mm(),H=ch()});var yh=y((VR,zS)=>{zS.exports={name:"@jackchuka/gql-ingest",version:"3.0.0",description:"A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",keywords:["api","cli","csv","graphql","ingest"],license:"MIT",author:"jackchuka",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},bin:{"gql-ingest":"dist/cli/index.js"},files:["dist"],type:"module",main:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"}},scripts:{lint:"oxlint --type-aware --tsconfig ./tsconfig.json","lint:fix":"oxlint --fix --type-aware --tsconfig ./tsconfig.json",fmt:"oxfmt",build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"pnpm run build && pnpm run build:types",dev:"ts-node src/cli/index.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"pnpm run build:all"},dependencies:{commander:"^14.0.0","csv-parser":"^3.0.0",graphql:"16.12.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^25.0.2",esbuild:"^0.27.0",jest:"^30.0.3",oxfmt:"^0.24.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.11.0","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},engines:{node:">=18"},packageManager:"pnpm@8.14.1"}});import{Command as ZS}from"commander";import{EventEmitter as XS}from"events";import{GraphQLClient as Hv}from"graphql-request";import Xl from"fs";import Bv from"path";function al(e){return typeof e>"u"||e===null}function Sh(e){return typeof e=="object"&&e!==null}function Lh(e){return Array.isArray(e)?e:al(e)?[]:[e]}function Dh(e,r){var t,n,i,o;if(r)for(o=Object.keys(r),t=0,n=o.length;t<n;t+=1)i=o[t],e[i]=r[i];return e}function Ah(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function Rh(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ph=al,wh=Sh,jh=Lh,xh=Ah,kh=Rh,Fh=Dh,he={isNothing:Ph,isObject:wh,toArray:jh,repeat:xh,isNegativeZero:kh,extend:Fh};function ul(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
|
185
|
-
|
|
186
|
-
`+e.mark.snippet),
|
|
187
|
-
`+
|
|
188
|
-
`,
|
|
189
|
-
`,u=1;u<=
|
|
190
|
-
`;return
|
|
191
|
-
\r`;function
|
|
192
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
193
|
-
`,
|
|
194
|
-
`,o?1+u:u):
|
|
195
|
-
`);break}for(
|
|
196
|
-
`,o?1+u:u)):c?(c=!1,e.result+=
|
|
197
|
-
`,u+1)):u===0?o&&(e.result+=" "):e.result+=
|
|
198
|
-
`,u):e.result+=
|
|
199
|
-
`,o?1+u:u),o=!0,
|
|
200
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var
|
|
201
|
-
`,
|
|
202
|
-
`&&(o+=
|
|
203
|
-
`+
|
|
204
|
-
`,i
|
|
181
|
+
`+t+")"}function Py(e){let t=(0,SU.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,Sc.print)(t)}`),n+Ry(e.deprecationReason)}function zU(e){return Ot(e)+"directive @"+e.name+PO(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Ry(e){return e==null?"":e!==Ly.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,Sc.print)({kind:jy.Kind.STRING,value:e})})`:" @deprecated"}function UU(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,Sc.print)({kind:jy.Kind.STRING,value:e.specifiedByURL})})`}function Ot(e,t="",n=!0){let{description:i}=e;if(i==null)return"";let r=(0,Sc.print)({kind:jy.Kind.STRING,value:i,block:(0,OU.isPrintableAsBlockString)(i)});return(t&&!n?`
|
|
182
|
+
`+t:t)+r.replace(/\n/g,`
|
|
183
|
+
`+t)+`
|
|
184
|
+
`}});var LO=y(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.concatAST=qU;var MU=ee();function qU(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:MU.Kind.DOCUMENT,definitions:t}}});var CO=y(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.separateOperations=GU;var Nc=ee(),VU=cn();function GU(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case Nc.Kind.OPERATION_DEFINITION:t.push(r);break;case Nc.Kind.FRAGMENT_DEFINITION:n[r.name.value]=AO(r.selectionSet);break;default:}let i=Object.create(null);for(let r of t){let o=new Set;for(let s of AO(r.selectionSet))RO(o,n,s);let a=r.name?r.name.value:"";i[a]={kind:Nc.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===r||s.kind===Nc.Kind.FRAGMENT_DEFINITION&&o.has(s.name.value))}}return i}function RO(e,t,n){if(!e.has(n)){e.add(n);let i=t[n];if(i!==void 0)for(let r of i)RO(e,t,r)}}function AO(e){let t=[];return(0,VU.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var UO=y(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.stripIgnoredCharacters=QU;var KU=bo(),FO=$o(),zO=Tu(),zy=pi();function QU(e){let t=(0,zO.isSource)(e)?e:new zO.Source(e),n=t.body,i=new FO.Lexer(t),r="",o=!1;for(;i.advance().kind!==zy.TokenKind.EOF;){let a=i.token,s=a.kind,u=!(0,FO.isPunctuatorTokenKind)(a.kind);o&&(u||a.kind===zy.TokenKind.SPREAD)&&(r+=" ");let c=n.slice(a.start,a.end);s===zy.TokenKind.BLOCK_STRING?r+=(0,KU.printBlockString)(a.value,{minimize:!0}):r+=c,o=u}return r}});var qO=y(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.assertValidName=YU;kc.isValidNameError=MO;var ZU=Xe(),BU=U(),JU=No();function YU(e){let t=MO(e);if(t)throw t;return e}function MO(e){if(typeof e=="string"||(0,ZU.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new BU.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,JU.assertName)(e)}catch(t){return t}}});var YO=y(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.DangerousChangeType=er.BreakingChangeType=void 0;er.findBreakingChanges=rM;er.findDangerousChanges=nM;var WU=se(),BO=Ge(),VO=Fr(),XU=ct(),ae=te(),HU=Yt(),eM=Uo(),tM=qv(),Oe;er.BreakingChangeType=Oe;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Oe||(er.BreakingChangeType=Oe={}));var zt;er.DangerousChangeType=zt;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(zt||(er.DangerousChangeType=zt={}));function rM(e,t){return JO(e,t).filter(n=>n.type in Oe)}function nM(e,t){return JO(e,t).filter(n=>n.type in zt)}function JO(e,t){return[...oM(e,t),...iM(e,t)]}function iM(e,t){let n=[],i=hr(e.getDirectives(),t.getDirectives());for(let r of i.removed)n.push({type:Oe.DIRECTIVE_REMOVED,description:`${r.name} was removed.`});for(let[r,o]of i.persisted){let a=hr(r.args,o.args);for(let s of a.added)(0,ae.isRequiredArgument)(s)&&n.push({type:Oe.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${r.name} was added.`});for(let s of a.removed)n.push({type:Oe.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${r.name}.`});r.isRepeatable&&!o.isRepeatable&&n.push({type:Oe.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${r.name}.`});for(let s of r.locations)o.locations.includes(s)||n.push({type:Oe.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${r.name}.`})}return n}function oM(e,t){let n=[],i=hr(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let r of i.removed)n.push({type:Oe.TYPE_REMOVED,description:(0,HU.isSpecifiedScalarType)(r)?`Standard scalar ${r.name} was removed because it is not referenced anymore.`:`${r.name} was removed.`});for(let[r,o]of i.persisted)(0,ae.isEnumType)(r)&&(0,ae.isEnumType)(o)?n.push(...uM(r,o)):(0,ae.isUnionType)(r)&&(0,ae.isUnionType)(o)?n.push(...sM(r,o)):(0,ae.isInputObjectType)(r)&&(0,ae.isInputObjectType)(o)?n.push(...aM(r,o)):(0,ae.isObjectType)(r)&&(0,ae.isObjectType)(o)?n.push(...KO(r,o),...GO(r,o)):(0,ae.isInterfaceType)(r)&&(0,ae.isInterfaceType)(o)?n.push(...KO(r,o),...GO(r,o)):r.constructor!==o.constructor&&n.push({type:Oe.TYPE_CHANGED_KIND,description:`${r.name} changed from ${QO(r)} to ${QO(o)}.`});return n}function aM(e,t){let n=[],i=hr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.added)(0,ae.isRequiredInputField)(r)?n.push({type:Oe.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${r.name} on input type ${e.name} was added.`}):n.push({type:zt.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${r.name} on input type ${e.name} was added.`});for(let r of i.removed)n.push({type:Oe.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)da(r.type,o.type)||n.push({type:Oe.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function sM(e,t){let n=[],i=hr(e.getTypes(),t.getTypes());for(let r of i.added)n.push({type:zt.TYPE_ADDED_TO_UNION,description:`${r.name} was added to union type ${e.name}.`});for(let r of i.removed)n.push({type:Oe.TYPE_REMOVED_FROM_UNION,description:`${r.name} was removed from union type ${e.name}.`});return n}function uM(e,t){let n=[],i=hr(e.getValues(),t.getValues());for(let r of i.added)n.push({type:zt.VALUE_ADDED_TO_ENUM,description:`${r.name} was added to enum type ${e.name}.`});for(let r of i.removed)n.push({type:Oe.VALUE_REMOVED_FROM_ENUM,description:`${r.name} was removed from enum type ${e.name}.`});return n}function GO(e,t){let n=[],i=hr(e.getInterfaces(),t.getInterfaces());for(let r of i.added)n.push({type:zt.IMPLEMENTED_INTERFACE_ADDED,description:`${r.name} added to interfaces implemented by ${e.name}.`});for(let r of i.removed)n.push({type:Oe.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${r.name}.`});return n}function KO(e,t){let n=[],i=hr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.removed)n.push({type:Oe.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)n.push(...cM(e,r,o)),la(r.type,o.type)||n.push({type:Oe.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function cM(e,t,n){let i=[],r=hr(t.args,n.args);for(let o of r.removed)i.push({type:Oe.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,a]of r.persisted)if(!da(o.type,a.type))i.push({type:Oe.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(a.type)}.`});else if(o.defaultValue!==void 0)if(a.defaultValue===void 0)i.push({type:zt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let u=ZO(o.defaultValue,o.type),c=ZO(a.defaultValue,a.type);u!==c&&i.push({type:zt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of r.added)(0,ae.isRequiredArgument)(o)?i.push({type:Oe.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):i.push({type:zt.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return i}function la(e,t){return(0,ae.isListType)(e)?(0,ae.isListType)(t)&&la(e.ofType,t.ofType)||(0,ae.isNonNullType)(t)&&la(e,t.ofType):(0,ae.isNonNullType)(e)?(0,ae.isNonNullType)(t)&&la(e.ofType,t.ofType):(0,ae.isNamedType)(t)&&e.name===t.name||(0,ae.isNonNullType)(t)&&la(e,t.ofType)}function da(e,t){return(0,ae.isListType)(e)?(0,ae.isListType)(t)&&da(e.ofType,t.ofType):(0,ae.isNonNullType)(e)?(0,ae.isNonNullType)(t)&&da(e.ofType,t.ofType)||!(0,ae.isNonNullType)(t)&&da(e.ofType,t):(0,ae.isNamedType)(t)&&e.name===t.name}function QO(e){if((0,ae.isScalarType)(e))return"a Scalar type";if((0,ae.isObjectType)(e))return"an Object type";if((0,ae.isInterfaceType)(e))return"an Interface type";if((0,ae.isUnionType)(e))return"a Union type";if((0,ae.isEnumType)(e))return"an Enum type";if((0,ae.isInputObjectType)(e))return"an Input type";(0,BO.invariant)(!1,"Unexpected type: "+(0,WU.inspect)(e))}function ZO(e,t){let n=(0,eM.astFromValue)(e,t);return n!=null||(0,BO.invariant)(!1),(0,XU.print)((0,tM.sortValueNode)(n))}function hr(e,t){let n=[],i=[],r=[],o=(0,VO.keyMap)(e,({name:s})=>s),a=(0,VO.keyMap)(t,({name:s})=>s);for(let s of e){let u=a[s.name];u===void 0?i.push(s):r.push([s,u])}for(let s of t)o[s.name]===void 0&&n.push(s);return{added:n,persisted:r,removed:i}}});var XO=y(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.resolveASTSchemaCoordinate=WO;wc.resolveSchemaCoordinate=dM;var En=se(),pa=ee(),lM=un(),Qr=te();function dM(e,t){return WO(e,(0,lM.parseSchemaCoordinate)(t))}function pM(e,t){let n=t.name.value,i=e.getType(n);if(i!=null)return{kind:"NamedType",type:i}}function fM(e,t){let n=t.name.value,i=e.getType(n);if(!i)throw new Error(`Expected ${(0,En.inspect)(n)} to be defined as a type in the schema.`);if(!(0,Qr.isEnumType)(i)&&!(0,Qr.isInputObjectType)(i)&&!(0,Qr.isObjectType)(i)&&!(0,Qr.isInterfaceType)(i))throw new Error(`Expected ${(0,En.inspect)(n)} to be an Enum, Input Object, Object or Interface type.`);if((0,Qr.isEnumType)(i)){let a=t.memberName.value,s=i.getValue(a);return s==null?void 0:{kind:"EnumValue",type:i,enumValue:s}}if((0,Qr.isInputObjectType)(i)){let a=t.memberName.value,s=i.getFields()[a];return s==null?void 0:{kind:"InputField",type:i,inputField:s}}let r=t.memberName.value,o=i.getFields()[r];if(o!=null)return{kind:"Field",type:i,field:o}}function mM(e,t){let n=t.name.value,i=e.getType(n);if(i==null)throw new Error(`Expected ${(0,En.inspect)(n)} to be defined as a type in the schema.`);if(!(0,Qr.isObjectType)(i)&&!(0,Qr.isInterfaceType)(i))throw new Error(`Expected ${(0,En.inspect)(n)} to be an object type or interface type.`);let r=t.fieldName.value,o=i.getFields()[r];if(o==null)throw new Error(`Expected ${(0,En.inspect)(r)} to exist as a field of type ${(0,En.inspect)(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(u=>u.name===a);if(s!=null)return{kind:"FieldArgument",type:i,field:o,fieldArgument:s}}function gM(e,t){let n=t.name.value,i=e.getDirective(n);if(i)return{kind:"Directive",directive:i}}function vM(e,t){let n=t.name.value,i=e.getDirective(n);if(!i)throw new Error(`Expected ${(0,En.inspect)(n)} to be defined as a directive in the schema.`);let{argumentName:{value:r}}=t,o=i.args.find(a=>a.name===r);if(o)return{kind:"DirectiveArgument",directive:i,directiveArgument:o}}function WO(e,t){switch(t.kind){case pa.Kind.TYPE_COORDINATE:return pM(e,t);case pa.Kind.MEMBER_COORDINATE:return fM(e,t);case pa.Kind.ARGUMENT_COORDINATE:return mM(e,t);case pa.Kind.DIRECTIVE_COORDINATE:return gM(e,t);case pa.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return vM(e,t)}}});var nI=y(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});Object.defineProperty(ne,"BreakingChangeType",{enumerable:!0,get:function(){return Dc.BreakingChangeType}});Object.defineProperty(ne,"DangerousChangeType",{enumerable:!0,get:function(){return Dc.DangerousChangeType}});Object.defineProperty(ne,"TypeInfo",{enumerable:!0,get:function(){return eI.TypeInfo}});Object.defineProperty(ne,"assertValidName",{enumerable:!0,get:function(){return tI.assertValidName}});Object.defineProperty(ne,"astFromValue",{enumerable:!0,get:function(){return SM.astFromValue}});Object.defineProperty(ne,"buildASTSchema",{enumerable:!0,get:function(){return HO.buildASTSchema}});Object.defineProperty(ne,"buildClientSchema",{enumerable:!0,get:function(){return TM.buildClientSchema}});Object.defineProperty(ne,"buildSchema",{enumerable:!0,get:function(){return HO.buildSchema}});Object.defineProperty(ne,"coerceInputValue",{enumerable:!0,get:function(){return NM.coerceInputValue}});Object.defineProperty(ne,"concatAST",{enumerable:!0,get:function(){return kM.concatAST}});Object.defineProperty(ne,"doTypesOverlap",{enumerable:!0,get:function(){return qy.doTypesOverlap}});Object.defineProperty(ne,"extendSchema",{enumerable:!0,get:function(){return $M.extendSchema}});Object.defineProperty(ne,"findBreakingChanges",{enumerable:!0,get:function(){return Dc.findBreakingChanges}});Object.defineProperty(ne,"findDangerousChanges",{enumerable:!0,get:function(){return Dc.findDangerousChanges}});Object.defineProperty(ne,"getIntrospectionQuery",{enumerable:!0,get:function(){return hM.getIntrospectionQuery}});Object.defineProperty(ne,"getOperationAST",{enumerable:!0,get:function(){return yM.getOperationAST}});Object.defineProperty(ne,"getOperationRootType",{enumerable:!0,get:function(){return bM.getOperationRootType}});Object.defineProperty(ne,"introspectionFromSchema",{enumerable:!0,get:function(){return _M.introspectionFromSchema}});Object.defineProperty(ne,"isEqualType",{enumerable:!0,get:function(){return qy.isEqualType}});Object.defineProperty(ne,"isTypeSubTypeOf",{enumerable:!0,get:function(){return qy.isTypeSubTypeOf}});Object.defineProperty(ne,"isValidNameError",{enumerable:!0,get:function(){return tI.isValidNameError}});Object.defineProperty(ne,"lexicographicSortSchema",{enumerable:!0,get:function(){return EM.lexicographicSortSchema}});Object.defineProperty(ne,"printIntrospectionSchema",{enumerable:!0,get:function(){return My.printIntrospectionSchema}});Object.defineProperty(ne,"printSchema",{enumerable:!0,get:function(){return My.printSchema}});Object.defineProperty(ne,"printType",{enumerable:!0,get:function(){return My.printType}});Object.defineProperty(ne,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return rI.resolveASTSchemaCoordinate}});Object.defineProperty(ne,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return rI.resolveSchemaCoordinate}});Object.defineProperty(ne,"separateOperations",{enumerable:!0,get:function(){return wM.separateOperations}});Object.defineProperty(ne,"stripIgnoredCharacters",{enumerable:!0,get:function(){return DM.stripIgnoredCharacters}});Object.defineProperty(ne,"typeFromAST",{enumerable:!0,get:function(){return xM.typeFromAST}});Object.defineProperty(ne,"valueFromAST",{enumerable:!0,get:function(){return OM.valueFromAST}});Object.defineProperty(ne,"valueFromASTUntyped",{enumerable:!0,get:function(){return IM.valueFromASTUntyped}});Object.defineProperty(ne,"visitWithTypeInfo",{enumerable:!0,get:function(){return eI.visitWithTypeInfo}});var hM=Ey(),yM=cO(),bM=lO(),_M=dO(),TM=fO(),HO=EO(),$M=ky(),EM=IO(),My=jO(),xM=Wt(),OM=Yo(),IM=Fg(),SM=Uo(),eI=Yu(),NM=lh(),kM=LO(),wM=CO(),DM=UO(),qy=jo(),tI=qO(),Dc=YO(),rI=XO()});var aI=y(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});Object.defineProperty(m,"BREAK",{enumerable:!0,get:function(){return ie.BREAK}});Object.defineProperty(m,"BreakingChangeType",{enumerable:!0,get:function(){return oe.BreakingChangeType}});Object.defineProperty(m,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return S.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(m,"DangerousChangeType",{enumerable:!0,get:function(){return oe.DangerousChangeType}});Object.defineProperty(m,"DirectiveLocation",{enumerable:!0,get:function(){return ie.DirectiveLocation}});Object.defineProperty(m,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return J.ExecutableDefinitionsRule}});Object.defineProperty(m,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return J.FieldsOnCorrectTypeRule}});Object.defineProperty(m,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return J.FragmentsOnCompositeTypesRule}});Object.defineProperty(m,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return S.GRAPHQL_MAX_INT}});Object.defineProperty(m,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return S.GRAPHQL_MIN_INT}});Object.defineProperty(m,"GraphQLBoolean",{enumerable:!0,get:function(){return S.GraphQLBoolean}});Object.defineProperty(m,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return S.GraphQLDeprecatedDirective}});Object.defineProperty(m,"GraphQLDirective",{enumerable:!0,get:function(){return S.GraphQLDirective}});Object.defineProperty(m,"GraphQLEnumType",{enumerable:!0,get:function(){return S.GraphQLEnumType}});Object.defineProperty(m,"GraphQLError",{enumerable:!0,get:function(){return fa.GraphQLError}});Object.defineProperty(m,"GraphQLFloat",{enumerable:!0,get:function(){return S.GraphQLFloat}});Object.defineProperty(m,"GraphQLID",{enumerable:!0,get:function(){return S.GraphQLID}});Object.defineProperty(m,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return S.GraphQLIncludeDirective}});Object.defineProperty(m,"GraphQLInputObjectType",{enumerable:!0,get:function(){return S.GraphQLInputObjectType}});Object.defineProperty(m,"GraphQLInt",{enumerable:!0,get:function(){return S.GraphQLInt}});Object.defineProperty(m,"GraphQLInterfaceType",{enumerable:!0,get:function(){return S.GraphQLInterfaceType}});Object.defineProperty(m,"GraphQLList",{enumerable:!0,get:function(){return S.GraphQLList}});Object.defineProperty(m,"GraphQLNonNull",{enumerable:!0,get:function(){return S.GraphQLNonNull}});Object.defineProperty(m,"GraphQLObjectType",{enumerable:!0,get:function(){return S.GraphQLObjectType}});Object.defineProperty(m,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return S.GraphQLOneOfDirective}});Object.defineProperty(m,"GraphQLScalarType",{enumerable:!0,get:function(){return S.GraphQLScalarType}});Object.defineProperty(m,"GraphQLSchema",{enumerable:!0,get:function(){return S.GraphQLSchema}});Object.defineProperty(m,"GraphQLSkipDirective",{enumerable:!0,get:function(){return S.GraphQLSkipDirective}});Object.defineProperty(m,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return S.GraphQLSpecifiedByDirective}});Object.defineProperty(m,"GraphQLString",{enumerable:!0,get:function(){return S.GraphQLString}});Object.defineProperty(m,"GraphQLUnionType",{enumerable:!0,get:function(){return S.GraphQLUnionType}});Object.defineProperty(m,"Kind",{enumerable:!0,get:function(){return ie.Kind}});Object.defineProperty(m,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return J.KnownArgumentNamesRule}});Object.defineProperty(m,"KnownDirectivesRule",{enumerable:!0,get:function(){return J.KnownDirectivesRule}});Object.defineProperty(m,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return J.KnownFragmentNamesRule}});Object.defineProperty(m,"KnownTypeNamesRule",{enumerable:!0,get:function(){return J.KnownTypeNamesRule}});Object.defineProperty(m,"Lexer",{enumerable:!0,get:function(){return ie.Lexer}});Object.defineProperty(m,"Location",{enumerable:!0,get:function(){return ie.Location}});Object.defineProperty(m,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return J.LoneAnonymousOperationRule}});Object.defineProperty(m,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return J.LoneSchemaDefinitionRule}});Object.defineProperty(m,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return J.MaxIntrospectionDepthRule}});Object.defineProperty(m,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return J.NoDeprecatedCustomRule}});Object.defineProperty(m,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return J.NoFragmentCyclesRule}});Object.defineProperty(m,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return J.NoSchemaIntrospectionCustomRule}});Object.defineProperty(m,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return J.NoUndefinedVariablesRule}});Object.defineProperty(m,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return J.NoUnusedFragmentsRule}});Object.defineProperty(m,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return J.NoUnusedVariablesRule}});Object.defineProperty(m,"OperationTypeNode",{enumerable:!0,get:function(){return ie.OperationTypeNode}});Object.defineProperty(m,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return J.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(m,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return J.PossibleFragmentSpreadsRule}});Object.defineProperty(m,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return J.PossibleTypeExtensionsRule}});Object.defineProperty(m,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return J.ProvidedRequiredArgumentsRule}});Object.defineProperty(m,"ScalarLeafsRule",{enumerable:!0,get:function(){return J.ScalarLeafsRule}});Object.defineProperty(m,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return S.SchemaMetaFieldDef}});Object.defineProperty(m,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return J.SingleFieldSubscriptionsRule}});Object.defineProperty(m,"Source",{enumerable:!0,get:function(){return ie.Source}});Object.defineProperty(m,"Token",{enumerable:!0,get:function(){return ie.Token}});Object.defineProperty(m,"TokenKind",{enumerable:!0,get:function(){return ie.TokenKind}});Object.defineProperty(m,"TypeInfo",{enumerable:!0,get:function(){return oe.TypeInfo}});Object.defineProperty(m,"TypeKind",{enumerable:!0,get:function(){return S.TypeKind}});Object.defineProperty(m,"TypeMetaFieldDef",{enumerable:!0,get:function(){return S.TypeMetaFieldDef}});Object.defineProperty(m,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return S.TypeNameMetaFieldDef}});Object.defineProperty(m,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return J.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(m,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return J.UniqueArgumentNamesRule}});Object.defineProperty(m,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return J.UniqueDirectiveNamesRule}});Object.defineProperty(m,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return J.UniqueDirectivesPerLocationRule}});Object.defineProperty(m,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return J.UniqueEnumValueNamesRule}});Object.defineProperty(m,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return J.UniqueFieldDefinitionNamesRule}});Object.defineProperty(m,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return J.UniqueFragmentNamesRule}});Object.defineProperty(m,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return J.UniqueInputFieldNamesRule}});Object.defineProperty(m,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return J.UniqueOperationNamesRule}});Object.defineProperty(m,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return J.UniqueOperationTypesRule}});Object.defineProperty(m,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return J.UniqueTypeNamesRule}});Object.defineProperty(m,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return J.UniqueVariableNamesRule}});Object.defineProperty(m,"ValidationContext",{enumerable:!0,get:function(){return J.ValidationContext}});Object.defineProperty(m,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return J.ValuesOfCorrectTypeRule}});Object.defineProperty(m,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return J.VariablesAreInputTypesRule}});Object.defineProperty(m,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return J.VariablesInAllowedPositionRule}});Object.defineProperty(m,"__Directive",{enumerable:!0,get:function(){return S.__Directive}});Object.defineProperty(m,"__DirectiveLocation",{enumerable:!0,get:function(){return S.__DirectiveLocation}});Object.defineProperty(m,"__EnumValue",{enumerable:!0,get:function(){return S.__EnumValue}});Object.defineProperty(m,"__Field",{enumerable:!0,get:function(){return S.__Field}});Object.defineProperty(m,"__InputValue",{enumerable:!0,get:function(){return S.__InputValue}});Object.defineProperty(m,"__Schema",{enumerable:!0,get:function(){return S.__Schema}});Object.defineProperty(m,"__Type",{enumerable:!0,get:function(){return S.__Type}});Object.defineProperty(m,"__TypeKind",{enumerable:!0,get:function(){return S.__TypeKind}});Object.defineProperty(m,"assertAbstractType",{enumerable:!0,get:function(){return S.assertAbstractType}});Object.defineProperty(m,"assertCompositeType",{enumerable:!0,get:function(){return S.assertCompositeType}});Object.defineProperty(m,"assertDirective",{enumerable:!0,get:function(){return S.assertDirective}});Object.defineProperty(m,"assertEnumType",{enumerable:!0,get:function(){return S.assertEnumType}});Object.defineProperty(m,"assertEnumValueName",{enumerable:!0,get:function(){return S.assertEnumValueName}});Object.defineProperty(m,"assertInputObjectType",{enumerable:!0,get:function(){return S.assertInputObjectType}});Object.defineProperty(m,"assertInputType",{enumerable:!0,get:function(){return S.assertInputType}});Object.defineProperty(m,"assertInterfaceType",{enumerable:!0,get:function(){return S.assertInterfaceType}});Object.defineProperty(m,"assertLeafType",{enumerable:!0,get:function(){return S.assertLeafType}});Object.defineProperty(m,"assertListType",{enumerable:!0,get:function(){return S.assertListType}});Object.defineProperty(m,"assertName",{enumerable:!0,get:function(){return S.assertName}});Object.defineProperty(m,"assertNamedType",{enumerable:!0,get:function(){return S.assertNamedType}});Object.defineProperty(m,"assertNonNullType",{enumerable:!0,get:function(){return S.assertNonNullType}});Object.defineProperty(m,"assertNullableType",{enumerable:!0,get:function(){return S.assertNullableType}});Object.defineProperty(m,"assertObjectType",{enumerable:!0,get:function(){return S.assertObjectType}});Object.defineProperty(m,"assertOutputType",{enumerable:!0,get:function(){return S.assertOutputType}});Object.defineProperty(m,"assertScalarType",{enumerable:!0,get:function(){return S.assertScalarType}});Object.defineProperty(m,"assertSchema",{enumerable:!0,get:function(){return S.assertSchema}});Object.defineProperty(m,"assertType",{enumerable:!0,get:function(){return S.assertType}});Object.defineProperty(m,"assertUnionType",{enumerable:!0,get:function(){return S.assertUnionType}});Object.defineProperty(m,"assertValidName",{enumerable:!0,get:function(){return oe.assertValidName}});Object.defineProperty(m,"assertValidSchema",{enumerable:!0,get:function(){return S.assertValidSchema}});Object.defineProperty(m,"assertWrappingType",{enumerable:!0,get:function(){return S.assertWrappingType}});Object.defineProperty(m,"astFromValue",{enumerable:!0,get:function(){return oe.astFromValue}});Object.defineProperty(m,"buildASTSchema",{enumerable:!0,get:function(){return oe.buildASTSchema}});Object.defineProperty(m,"buildClientSchema",{enumerable:!0,get:function(){return oe.buildClientSchema}});Object.defineProperty(m,"buildSchema",{enumerable:!0,get:function(){return oe.buildSchema}});Object.defineProperty(m,"coerceInputValue",{enumerable:!0,get:function(){return oe.coerceInputValue}});Object.defineProperty(m,"concatAST",{enumerable:!0,get:function(){return oe.concatAST}});Object.defineProperty(m,"createSourceEventStream",{enumerable:!0,get:function(){return tr.createSourceEventStream}});Object.defineProperty(m,"defaultFieldResolver",{enumerable:!0,get:function(){return tr.defaultFieldResolver}});Object.defineProperty(m,"defaultTypeResolver",{enumerable:!0,get:function(){return tr.defaultTypeResolver}});Object.defineProperty(m,"doTypesOverlap",{enumerable:!0,get:function(){return oe.doTypesOverlap}});Object.defineProperty(m,"execute",{enumerable:!0,get:function(){return tr.execute}});Object.defineProperty(m,"executeSync",{enumerable:!0,get:function(){return tr.executeSync}});Object.defineProperty(m,"extendSchema",{enumerable:!0,get:function(){return oe.extendSchema}});Object.defineProperty(m,"findBreakingChanges",{enumerable:!0,get:function(){return oe.findBreakingChanges}});Object.defineProperty(m,"findDangerousChanges",{enumerable:!0,get:function(){return oe.findDangerousChanges}});Object.defineProperty(m,"formatError",{enumerable:!0,get:function(){return fa.formatError}});Object.defineProperty(m,"getArgumentValues",{enumerable:!0,get:function(){return tr.getArgumentValues}});Object.defineProperty(m,"getDirectiveValues",{enumerable:!0,get:function(){return tr.getDirectiveValues}});Object.defineProperty(m,"getEnterLeaveForKind",{enumerable:!0,get:function(){return ie.getEnterLeaveForKind}});Object.defineProperty(m,"getIntrospectionQuery",{enumerable:!0,get:function(){return oe.getIntrospectionQuery}});Object.defineProperty(m,"getLocation",{enumerable:!0,get:function(){return ie.getLocation}});Object.defineProperty(m,"getNamedType",{enumerable:!0,get:function(){return S.getNamedType}});Object.defineProperty(m,"getNullableType",{enumerable:!0,get:function(){return S.getNullableType}});Object.defineProperty(m,"getOperationAST",{enumerable:!0,get:function(){return oe.getOperationAST}});Object.defineProperty(m,"getOperationRootType",{enumerable:!0,get:function(){return oe.getOperationRootType}});Object.defineProperty(m,"getVariableValues",{enumerable:!0,get:function(){return tr.getVariableValues}});Object.defineProperty(m,"getVisitFn",{enumerable:!0,get:function(){return ie.getVisitFn}});Object.defineProperty(m,"graphql",{enumerable:!0,get:function(){return oI.graphql}});Object.defineProperty(m,"graphqlSync",{enumerable:!0,get:function(){return oI.graphqlSync}});Object.defineProperty(m,"introspectionFromSchema",{enumerable:!0,get:function(){return oe.introspectionFromSchema}});Object.defineProperty(m,"introspectionTypes",{enumerable:!0,get:function(){return S.introspectionTypes}});Object.defineProperty(m,"isAbstractType",{enumerable:!0,get:function(){return S.isAbstractType}});Object.defineProperty(m,"isCompositeType",{enumerable:!0,get:function(){return S.isCompositeType}});Object.defineProperty(m,"isConstValueNode",{enumerable:!0,get:function(){return ie.isConstValueNode}});Object.defineProperty(m,"isDefinitionNode",{enumerable:!0,get:function(){return ie.isDefinitionNode}});Object.defineProperty(m,"isDirective",{enumerable:!0,get:function(){return S.isDirective}});Object.defineProperty(m,"isEnumType",{enumerable:!0,get:function(){return S.isEnumType}});Object.defineProperty(m,"isEqualType",{enumerable:!0,get:function(){return oe.isEqualType}});Object.defineProperty(m,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return ie.isExecutableDefinitionNode}});Object.defineProperty(m,"isInputObjectType",{enumerable:!0,get:function(){return S.isInputObjectType}});Object.defineProperty(m,"isInputType",{enumerable:!0,get:function(){return S.isInputType}});Object.defineProperty(m,"isInterfaceType",{enumerable:!0,get:function(){return S.isInterfaceType}});Object.defineProperty(m,"isIntrospectionType",{enumerable:!0,get:function(){return S.isIntrospectionType}});Object.defineProperty(m,"isLeafType",{enumerable:!0,get:function(){return S.isLeafType}});Object.defineProperty(m,"isListType",{enumerable:!0,get:function(){return S.isListType}});Object.defineProperty(m,"isNamedType",{enumerable:!0,get:function(){return S.isNamedType}});Object.defineProperty(m,"isNonNullType",{enumerable:!0,get:function(){return S.isNonNullType}});Object.defineProperty(m,"isNullableType",{enumerable:!0,get:function(){return S.isNullableType}});Object.defineProperty(m,"isObjectType",{enumerable:!0,get:function(){return S.isObjectType}});Object.defineProperty(m,"isOutputType",{enumerable:!0,get:function(){return S.isOutputType}});Object.defineProperty(m,"isRequiredArgument",{enumerable:!0,get:function(){return S.isRequiredArgument}});Object.defineProperty(m,"isRequiredInputField",{enumerable:!0,get:function(){return S.isRequiredInputField}});Object.defineProperty(m,"isScalarType",{enumerable:!0,get:function(){return S.isScalarType}});Object.defineProperty(m,"isSchema",{enumerable:!0,get:function(){return S.isSchema}});Object.defineProperty(m,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return ie.isSchemaCoordinateNode}});Object.defineProperty(m,"isSelectionNode",{enumerable:!0,get:function(){return ie.isSelectionNode}});Object.defineProperty(m,"isSpecifiedDirective",{enumerable:!0,get:function(){return S.isSpecifiedDirective}});Object.defineProperty(m,"isSpecifiedScalarType",{enumerable:!0,get:function(){return S.isSpecifiedScalarType}});Object.defineProperty(m,"isType",{enumerable:!0,get:function(){return S.isType}});Object.defineProperty(m,"isTypeDefinitionNode",{enumerable:!0,get:function(){return ie.isTypeDefinitionNode}});Object.defineProperty(m,"isTypeExtensionNode",{enumerable:!0,get:function(){return ie.isTypeExtensionNode}});Object.defineProperty(m,"isTypeNode",{enumerable:!0,get:function(){return ie.isTypeNode}});Object.defineProperty(m,"isTypeSubTypeOf",{enumerable:!0,get:function(){return oe.isTypeSubTypeOf}});Object.defineProperty(m,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return ie.isTypeSystemDefinitionNode}});Object.defineProperty(m,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return ie.isTypeSystemExtensionNode}});Object.defineProperty(m,"isUnionType",{enumerable:!0,get:function(){return S.isUnionType}});Object.defineProperty(m,"isValidNameError",{enumerable:!0,get:function(){return oe.isValidNameError}});Object.defineProperty(m,"isValueNode",{enumerable:!0,get:function(){return ie.isValueNode}});Object.defineProperty(m,"isWrappingType",{enumerable:!0,get:function(){return S.isWrappingType}});Object.defineProperty(m,"lexicographicSortSchema",{enumerable:!0,get:function(){return oe.lexicographicSortSchema}});Object.defineProperty(m,"locatedError",{enumerable:!0,get:function(){return fa.locatedError}});Object.defineProperty(m,"parse",{enumerable:!0,get:function(){return ie.parse}});Object.defineProperty(m,"parseConstValue",{enumerable:!0,get:function(){return ie.parseConstValue}});Object.defineProperty(m,"parseSchemaCoordinate",{enumerable:!0,get:function(){return ie.parseSchemaCoordinate}});Object.defineProperty(m,"parseType",{enumerable:!0,get:function(){return ie.parseType}});Object.defineProperty(m,"parseValue",{enumerable:!0,get:function(){return ie.parseValue}});Object.defineProperty(m,"print",{enumerable:!0,get:function(){return ie.print}});Object.defineProperty(m,"printError",{enumerable:!0,get:function(){return fa.printError}});Object.defineProperty(m,"printIntrospectionSchema",{enumerable:!0,get:function(){return oe.printIntrospectionSchema}});Object.defineProperty(m,"printLocation",{enumerable:!0,get:function(){return ie.printLocation}});Object.defineProperty(m,"printSchema",{enumerable:!0,get:function(){return oe.printSchema}});Object.defineProperty(m,"printSourceLocation",{enumerable:!0,get:function(){return ie.printSourceLocation}});Object.defineProperty(m,"printType",{enumerable:!0,get:function(){return oe.printType}});Object.defineProperty(m,"recommendedRules",{enumerable:!0,get:function(){return J.recommendedRules}});Object.defineProperty(m,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return oe.resolveASTSchemaCoordinate}});Object.defineProperty(m,"resolveObjMapThunk",{enumerable:!0,get:function(){return S.resolveObjMapThunk}});Object.defineProperty(m,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return S.resolveReadonlyArrayThunk}});Object.defineProperty(m,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return oe.resolveSchemaCoordinate}});Object.defineProperty(m,"responsePathAsArray",{enumerable:!0,get:function(){return tr.responsePathAsArray}});Object.defineProperty(m,"separateOperations",{enumerable:!0,get:function(){return oe.separateOperations}});Object.defineProperty(m,"specifiedDirectives",{enumerable:!0,get:function(){return S.specifiedDirectives}});Object.defineProperty(m,"specifiedRules",{enumerable:!0,get:function(){return J.specifiedRules}});Object.defineProperty(m,"specifiedScalarTypes",{enumerable:!0,get:function(){return S.specifiedScalarTypes}});Object.defineProperty(m,"stripIgnoredCharacters",{enumerable:!0,get:function(){return oe.stripIgnoredCharacters}});Object.defineProperty(m,"subscribe",{enumerable:!0,get:function(){return tr.subscribe}});Object.defineProperty(m,"syntaxError",{enumerable:!0,get:function(){return fa.syntaxError}});Object.defineProperty(m,"typeFromAST",{enumerable:!0,get:function(){return oe.typeFromAST}});Object.defineProperty(m,"validate",{enumerable:!0,get:function(){return J.validate}});Object.defineProperty(m,"validateSchema",{enumerable:!0,get:function(){return S.validateSchema}});Object.defineProperty(m,"valueFromAST",{enumerable:!0,get:function(){return oe.valueFromAST}});Object.defineProperty(m,"valueFromASTUntyped",{enumerable:!0,get:function(){return oe.valueFromASTUntyped}});Object.defineProperty(m,"version",{enumerable:!0,get:function(){return iI.version}});Object.defineProperty(m,"versionInfo",{enumerable:!0,get:function(){return iI.versionInfo}});Object.defineProperty(m,"visit",{enumerable:!0,get:function(){return ie.visit}});Object.defineProperty(m,"visitInParallel",{enumerable:!0,get:function(){return ie.visitInParallel}});Object.defineProperty(m,"visitWithTypeInfo",{enumerable:!0,get:function(){return oe.visitWithTypeInfo}});var iI=X0(),oI=Gx(),S=Zx(),ie=Jx(),tr=nO(),J=sO(),fa=uO(),oe=nI()});var yI=y((JK,ZM)=>{ZM.exports={name:"@jackchuka/gql-ingest",version:"3.1.1",description:"A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",keywords:["api","cli","csv","graphql","ingest"],license:"MIT",author:"jackchuka",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},bin:{"gql-ingest":"dist/cli/index.js"},files:["dist"],type:"module",main:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"}},scripts:{lint:"oxlint --type-aware --tsconfig ./tsconfig.json","lint:fix":"oxlint --fix --type-aware --tsconfig ./tsconfig.json",fmt:"oxfmt",build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"pnpm run build && pnpm run build:types",dev:"ts-node src/cli/index.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"pnpm run build:all"},dependencies:{"@inquirer/prompts":"^8.2.0",commander:"^14.0.0","csv-parser":"^3.0.0",graphql:"16.12.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0",zod:"^4.3.5"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^25.0.2",esbuild:"^0.27.0",jest:"^30.0.3",oxfmt:"^0.24.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.11.0","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},engines:{node:">=18"},packageManager:"pnpm@8.14.1"}});import{Command as BM}from"commander";import{EventEmitter as CM}from"events";import{GraphQLClient as LD}from"graphql-request";import Z0 from"fs";import PD from"path";function db(e){return typeof e>"u"||e===null}function NI(e){return typeof e=="object"&&e!==null}function kI(e){return Array.isArray(e)?e:db(e)?[]:[e]}function wI(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function DI(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function PI(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var jI=db,LI=NI,AI=kI,RI=DI,CI=PI,FI=wI,je={isNothing:jI,isObject:LI,toArray:AI,repeat:RI,isNegativeZero:CI,extend:FI};function pb(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
185
|
+
|
|
186
|
+
`+e.mark.snippet),i+" "+n):i}function wi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=pb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}wi.prototype=Object.create(Error.prototype);wi.prototype.constructor=wi;wi.prototype.toString=function(t){return this.name+": "+pb(this,t)};var Ze=wi;function Fc(e,t,n,i,r){var o="",a="",s=Math.floor(r/2)-1;return i-t>s&&(o=" ... ",t=i-s+o.length),n-i>s&&(a=" ...",n=i+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:i-t+o.length}}function zc(e,t){return je.repeat(" ",t-e.length)+e}function zI(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],r=[],o,a=-1;o=n.exec(e.buffer);)r.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",u,c,l=Math.min(e.line+t.linesAfter,r.length).toString().length,d=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)c=Fc(e.buffer,i[a-u],r[a-u],e.position-(i[a]-i[a-u]),d),s=je.repeat(" ",t.indent)+zc((e.line-u+1).toString(),l)+" | "+c.str+`
|
|
187
|
+
`+s;for(c=Fc(e.buffer,i[a],r[a],e.position,d),s+=je.repeat(" ",t.indent)+zc((e.line+1).toString(),l)+" | "+c.str+`
|
|
188
|
+
`,s+=je.repeat("-",t.indent+l+3+c.pos)+`^
|
|
189
|
+
`,u=1;u<=t.linesAfter&&!(a+u>=r.length);u++)c=Fc(e.buffer,i[a+u],r[a+u],e.position-(i[a]-i[a+u]),d),s+=je.repeat(" ",t.indent)+zc((e.line+u+1).toString(),l)+" | "+c.str+`
|
|
190
|
+
`;return s.replace(/\n$/,"")}var UI=zI,MI=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],qI=["scalar","sequence","mapping"];function VI(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){t[String(i)]=n})}),t}function GI(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(MI.indexOf(n)===-1)throw new Ze('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=VI(t.styleAliases||null),qI.indexOf(this.kind)===-1)throw new Ze('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ue=GI;function Yy(e,t){var n=[];return e[t].forEach(function(i){var r=n.length;n.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(r=a)}),n[r]=i}),n}function KI(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function i(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(i);return e}function Mc(e){return this.extend(e)}Mc.prototype.extend=function(t){var n=[],i=[];if(t instanceof Ue)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Ze("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ue))throw new Ze("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Ze("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Ze("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof Ue))throw new Ze("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Mc.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=Yy(r,"implicit"),r.compiledExplicit=Yy(r,"explicit"),r.compiledTypeMap=KI(r.compiledImplicit,r.compiledExplicit),r};var fb=Mc,mb=new Ue("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),gb=new Ue("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),vb=new Ue("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),hb=new fb({explicit:[mb,gb,vb]});function QI(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function ZI(){return null}function BI(e){return e===null}var yb=new Ue("tag:yaml.org,2002:null",{kind:"scalar",resolve:QI,construct:ZI,predicate:BI,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function JI(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function YI(e){return e==="true"||e==="True"||e==="TRUE"}function WI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var bb=new Ue("tag:yaml.org,2002:bool",{kind:"scalar",resolve:JI,construct:YI,predicate:WI,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function XI(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function HI(e){return 48<=e&&e<=55}function eS(e){return 48<=e&&e<=57}function tS(e){if(e===null)return!1;var t=e.length,n=0,i=!1,r;if(!t)return!1;if(r=e[n],(r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;i=!0}return i&&r!=="_"}if(r==="x"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!XI(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}if(r==="o"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!HI(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}}if(r==="_")return!1;for(;n<t;n++)if(r=e[n],r!=="_"){if(!eS(e.charCodeAt(n)))return!1;i=!0}return!(!i||r==="_")}function rS(e){var t=e,n=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function nS(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!je.isNegativeZero(e)}var _b=new Ue("tag:yaml.org,2002:int",{kind:"scalar",resolve:tS,construct:rS,predicate:nS,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),iS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function oS(e){return!(e===null||!iS.test(e)||e[e.length-1]==="_")}function aS(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var sS=/^[-+]?[0-9]+e/;function uS(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(je.isNegativeZero(e))return"-0.0";return n=e.toString(10),sS.test(n)?n.replace("e",".e"):n}function cS(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||je.isNegativeZero(e))}var Tb=new Ue("tag:yaml.org,2002:float",{kind:"scalar",resolve:oS,construct:aS,predicate:cS,represent:uS,defaultStyle:"lowercase"}),$b=hb.extend({implicit:[yb,bb,_b,Tb]}),Eb=$b,xb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ob=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function lS(e){return e===null?!1:xb.exec(e)!==null||Ob.exec(e)!==null}function dS(e){var t,n,i,r,o,a,s,u=0,c=null,l,d,p;if(t=xb.exec(e),t===null&&(t=Ob.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],d=+(t[11]||0),c=(l*60+d)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(n,i,r,o,a,s,u)),c&&p.setTime(p.getTime()-c),p}function pS(e){return e.toISOString()}var Ib=new Ue("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lS,construct:dS,instanceOf:Date,represent:pS});function fS(e){return e==="<<"||e===null}var Sb=new Ue("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fS}),Qc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
191
|
+
\r`;function mS(e){if(e===null)return!1;var t,n,i=0,r=e.length,o=Qc;for(n=0;n<r;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function gS(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=Qc,a=0,s=[];for(t=0;t<r;t++)t%4===0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(i.charAt(t));return n=r%4*6,n===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):n===18?(s.push(a>>10&255),s.push(a>>2&255)):n===12&&s.push(a>>4&255),new Uint8Array(s)}function vS(e){var t="",n=0,i,r,o=e.length,a=Qc;for(i=0;i<o;i++)i%3===0&&i&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[i];return r=o%3,r===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):r===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):r===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function hS(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Nb=new Ue("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mS,construct:gS,predicate:hS,represent:vS}),yS=Object.prototype.hasOwnProperty,bS=Object.prototype.toString;function _S(e){if(e===null)return!0;var t=[],n,i,r,o,a,s=e;for(n=0,i=s.length;n<i;n+=1){if(r=s[n],a=!1,bS.call(r)!=="[object Object]")return!1;for(o in r)if(yS.call(r,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function TS(e){return e!==null?e:[]}var kb=new Ue("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_S,construct:TS}),$S=Object.prototype.toString;function ES(e){if(e===null)return!0;var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(i=a[t],$S.call(i)!=="[object Object]"||(r=Object.keys(i),r.length!==1))return!1;o[t]=[r[0],i[r[0]]]}return!0}function xS(e){if(e===null)return[];var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)i=a[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}var wb=new Ue("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ES,construct:xS}),OS=Object.prototype.hasOwnProperty;function IS(e){if(e===null)return!0;var t,n=e;for(t in n)if(OS.call(n,t)&&n[t]!==null)return!1;return!0}function SS(e){return e!==null?e:{}}var Db=new Ue("tag:yaml.org,2002:set",{kind:"mapping",resolve:IS,construct:SS}),Zc=Eb.extend({implicit:[Ib,Sb],explicit:[Nb,kb,wb,Db]}),_r=Object.prototype.hasOwnProperty,Ta=1,Pb=2,jb=3,$a=4,Uc=1,NS=2,Wy=3,kS=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wS=/[\x85\u2028\u2029]/,DS=/[,\[\]\{\}]/,Lb=/^(?:!|!!|![a-z\-]+!)$/i,Ab=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Xy(e){return Object.prototype.toString.call(e)}function qt(e){return e===10||e===13}function Br(e){return e===9||e===32}function et(e){return e===9||e===32||e===10||e===13}function kn(e){return e===44||e===91||e===93||e===123||e===125}function PS(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function jS(e){return e===120?2:e===117?4:e===85?8:0}function LS(e){return 48<=e&&e<=57?e-48:-1}function Hy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
192
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function AS(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Rb(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var Cb=new Array(256),Fb=new Array(256);for(Zr=0;Zr<256;Zr++)Cb[Zr]=Hy(Zr)?1:0,Fb[Zr]=Hy(Zr);var Zr;function RS(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Zc,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function zb(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=UI(n),new Ze(t,n)}function F(e,t){throw zb(e,t)}function Ea(e,t){e.onWarning&&e.onWarning.call(null,zb(e,t))}var eb={YAML:function(t,n,i){var r,o,a;t.version!==null&&F(t,"duplication of %YAML directive"),i.length!==1&&F(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),r===null&&F(t,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),a=parseInt(r[2],10),o!==1&&F(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Ea(t,"unsupported YAML version of the document")},TAG:function(t,n,i){var r,o;i.length!==2&&F(t,"TAG directive accepts exactly two arguments"),r=i[0],o=i[1],Lb.test(r)||F(t,"ill-formed tag handle (first argument) of the TAG directive"),_r.call(t.tagMap,r)&&F(t,'there is a previously declared suffix for "'+r+'" tag handle'),Ab.test(o)||F(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{F(t,"tag prefix is malformed: "+o)}t.tagMap[r]=o}};function br(e,t,n,i){var r,o,a,s;if(t<n){if(s=e.input.slice(t,n),i)for(r=0,o=s.length;r<o;r+=1)a=s.charCodeAt(r),a===9||32<=a&&a<=1114111||F(e,"expected valid JSON character");else kS.test(s)&&F(e,"the stream contains non-printable characters");e.result+=s}}function tb(e,t,n,i){var r,o,a,s;for(je.isObject(n)||F(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),a=0,s=r.length;a<s;a+=1)o=r[a],_r.call(t,o)||(Rb(t,o,n[o]),i[o]=!0)}function wn(e,t,n,i,r,o,a,s,u){var c,l;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),c=0,l=r.length;c<l;c+=1)Array.isArray(r[c])&&F(e,"nested arrays are not supported inside keys"),typeof r=="object"&&Xy(r[c])==="[object Object]"&&(r[c]="[object Object]");if(typeof r=="object"&&Xy(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)tb(e,t,o[c],n);else tb(e,t,o,n);else!e.json&&!_r.call(n,r)&&_r.call(t,r)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=u||e.position,F(e,"duplicated mapping key")),Rb(t,r,o),delete n[r];return t}function Bc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):F(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function we(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);r!==0;){for(;Br(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(qt(r))for(Bc(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&Ea(e,"deficient indentation"),i}function Ia(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||et(n)))}function Jc(e,t){t===1?e.result+=" ":t>1&&(e.result+=je.repeat(`
|
|
193
|
+
`,t-1))}function CS(e,t,n){var i,r,o,a,s,u,c,l,d=e.kind,p=e.result,f;if(f=e.input.charCodeAt(e.position),et(f)||kn(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(r=e.input.charCodeAt(e.position+1),et(r)||n&&kn(r)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,s=!1;f!==0;){if(f===58){if(r=e.input.charCodeAt(e.position+1),et(r)||n&&kn(r))break}else if(f===35){if(i=e.input.charCodeAt(e.position-1),et(i))break}else{if(e.position===e.lineStart&&Ia(e)||n&&kn(f))break;if(qt(f))if(u=e.line,c=e.lineStart,l=e.lineIndent,we(e,!1,-1),e.lineIndent>=t){s=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=c,e.lineIndent=l;break}}s&&(br(e,o,a,!1),Jc(e,e.line-u),o=a=e.position,s=!1),Br(f)||(a=e.position+1),f=e.input.charCodeAt(++e.position)}return br(e,o,a,!1),e.result?!0:(e.kind=d,e.result=p,!1)}function FS(e,t){var n,i,r;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(br(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)i=e.position,e.position++,r=e.position;else return!0;else qt(n)?(br(e,i,r,!0),Jc(e,we(e,!1,t)),i=r=e.position):e.position===e.lineStart&&Ia(e)?F(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);F(e,"unexpected end of the stream within a single quoted scalar")}function zS(e,t){var n,i,r,o,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return br(e,n,e.position,!0),e.position++,!0;if(s===92){if(br(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),qt(s))we(e,!1,t);else if(s<256&&Cb[s])e.result+=Fb[s],e.position++;else if((a=jS(s))>0){for(r=a,o=0;r>0;r--)s=e.input.charCodeAt(++e.position),(a=PS(s))>=0?o=(o<<4)+a:F(e,"expected hexadecimal character");e.result+=AS(o),e.position++}else F(e,"unknown escape sequence");n=i=e.position}else qt(s)?(br(e,n,i,!0),Jc(e,we(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ia(e)?F(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}F(e,"unexpected end of the stream within a double quoted scalar")}function US(e,t){var n=!0,i,r,o,a=e.tag,s,u=e.anchor,c,l,d,p,f,v=Object.create(null),_,j,z,k;if(k=e.input.charCodeAt(e.position),k===91)l=93,f=!1,s=[];else if(k===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),k=e.input.charCodeAt(++e.position);k!==0;){if(we(e,!0,t),k=e.input.charCodeAt(e.position),k===l)return e.position++,e.tag=a,e.anchor=u,e.kind=f?"mapping":"sequence",e.result=s,!0;n?k===44&&F(e,"expected the node content, but found ','"):F(e,"missed comma between flow collection entries"),j=_=z=null,d=p=!1,k===63&&(c=e.input.charCodeAt(e.position+1),et(c)&&(d=p=!0,e.position++,we(e,!0,t))),i=e.line,r=e.lineStart,o=e.position,Dn(e,t,Ta,!1,!0),j=e.tag,_=e.result,we(e,!0,t),k=e.input.charCodeAt(e.position),(p||e.line===i)&&k===58&&(d=!0,k=e.input.charCodeAt(++e.position),we(e,!0,t),Dn(e,t,Ta,!1,!0),z=e.result),f?wn(e,s,v,j,_,z,i,r,o):d?s.push(wn(e,null,v,j,_,z,i,r,o)):s.push(_),we(e,!0,t),k=e.input.charCodeAt(e.position),k===44?(n=!0,k=e.input.charCodeAt(++e.position)):n=!1}F(e,"unexpected end of the stream within a flow collection")}function MS(e,t){var n,i,r=Uc,o=!1,a=!1,s=t,u=0,c=!1,l,d;if(d=e.input.charCodeAt(e.position),d===124)i=!1;else if(d===62)i=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Uc===r?r=d===43?Wy:NS:F(e,"repeat of a chomping mode identifier");else if((l=LS(d))>=0)l===0?F(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?F(e,"repeat of an indentation width identifier"):(s=t+l-1,a=!0);else break;if(Br(d)){do d=e.input.charCodeAt(++e.position);while(Br(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!qt(d)&&d!==0)}for(;d!==0;){for(Bc(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),qt(d)){u++;continue}if(e.lineIndent<s){r===Wy?e.result+=je.repeat(`
|
|
194
|
+
`,o?1+u:u):r===Uc&&o&&(e.result+=`
|
|
195
|
+
`);break}for(i?Br(d)?(c=!0,e.result+=je.repeat(`
|
|
196
|
+
`,o?1+u:u)):c?(c=!1,e.result+=je.repeat(`
|
|
197
|
+
`,u+1)):u===0?o&&(e.result+=" "):e.result+=je.repeat(`
|
|
198
|
+
`,u):e.result+=je.repeat(`
|
|
199
|
+
`,o?1+u:u),o=!0,a=!0,u=0,n=e.position;!qt(d)&&d!==0;)d=e.input.charCodeAt(++e.position);br(e,n,e.position,!1)}return!0}function rb(e,t){var n,i=e.tag,r=e.anchor,o=[],a,s=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,F(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!et(a))));){if(s=!0,e.position++,we(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,Dn(e,t,jb,!1,!0),o.push(e.result),we(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)F(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=i,e.anchor=r,e.kind="sequence",e.result=o,!0):!1}function qS(e,t,n){var i,r,o,a,s,u,c=e.tag,l=e.anchor,d={},p=Object.create(null),f=null,v=null,_=null,j=!1,z=!1,k;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),k=e.input.charCodeAt(e.position);k!==0;){if(!j&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,F(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,(k===63||k===58)&&et(i))k===63?(j&&(wn(e,d,p,f,v,null,a,s,u),f=v=_=null),z=!0,j=!0,r=!0):j?(j=!1,r=!0):F(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=i;else{if(a=e.line,s=e.lineStart,u=e.position,!Dn(e,n,Pb,!1,!0))break;if(e.line===o){for(k=e.input.charCodeAt(e.position);Br(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),et(k)||F(e,"a whitespace character is expected after the key-value separator within a block mapping"),j&&(wn(e,d,p,f,v,null,a,s,u),f=v=_=null),z=!0,j=!1,r=!1,f=e.tag,v=e.result;else if(z)F(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(z)F(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===o||e.lineIndent>t)&&(j&&(a=e.line,s=e.lineStart,u=e.position),Dn(e,t,$a,!0,r)&&(j?v=e.result:_=e.result),j||(wn(e,d,p,f,v,_,a,s,u),f=v=_=null),we(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&k!==0)F(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return j&&wn(e,d,p,f,v,null,a,s,u),z&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=d),z}function VS(e){var t,n=!1,i=!1,r,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&F(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(i=!0,r="!!",a=e.input.charCodeAt(++e.position)):r="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):F(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!et(a);)a===33&&(i?F(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Lb.test(r)||F(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),DS.test(o)&&F(e,"tag suffix cannot contain flow indicator characters")}o&&!Ab.test(o)&&F(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{F(e,"tag name is malformed: "+o)}return n?e.tag=o:_r.call(e.tagMap,r)?e.tag=e.tagMap[r]+o:r==="!"?e.tag="!"+o:r==="!!"?e.tag="tag:yaml.org,2002:"+o:F(e,'undeclared tag handle "'+r+'"'),!0}function GS(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&F(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!et(n)&&!kn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&F(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function KS(e){var t,n,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!et(i)&&!kn(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&F(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),_r.call(e.anchorMap,n)||F(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],we(e,!0,-1),!0}function Dn(e,t,n,i,r){var o,a,s,u=1,c=!1,l=!1,d,p,f,v,_,j;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=$a===n||jb===n,i&&we(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;VS(e)||GS(e);)we(e,!0,-1)?(c=!0,s=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):s=!1;if(s&&(s=c||r),(u===1||$a===n)&&(Ta===n||Pb===n?_=t:_=t+1,j=e.position-e.lineStart,u===1?s&&(rb(e,j)||qS(e,j,_))||US(e,_)?l=!0:(a&&MS(e,_)||FS(e,_)||zS(e,_)?l=!0:KS(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&F(e,"alias node should not have any properties")):CS(e,_,Ta===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=s&&rb(e,j))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&F(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d<p;d+=1)if(v=e.implicitTypes[d],v.resolve(e.result)){e.result=v.construct(e.result),e.tag=v.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(_r.call(e.typeMap[e.kind||"fallback"],e.tag))v=e.typeMap[e.kind||"fallback"][e.tag];else for(v=null,f=e.typeMap.multi[e.kind||"fallback"],d=0,p=f.length;d<p;d+=1)if(e.tag.slice(0,f[d].tag.length)===f[d].tag){v=f[d];break}v||F(e,"unknown tag !<"+e.tag+">"),e.result!==null&&v.kind!==e.kind&&F(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+v.kind+'", not "'+e.kind+'"'),v.resolve(e.result,e.tag)?(e.result=v.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):F(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function QS(e){var t=e.position,n,i,r,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(we(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!et(a);)a=e.input.charCodeAt(++e.position);for(i=e.input.slice(n,e.position),r=[],i.length<1&&F(e,"directive name must not be less than one character in length");a!==0;){for(;Br(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!qt(a));break}if(qt(a))break;for(n=e.position;a!==0&&!et(a);)a=e.input.charCodeAt(++e.position);r.push(e.input.slice(n,e.position))}a!==0&&Bc(e),_r.call(eb,i)?eb[i](e,i,r):Ea(e,'unknown document directive "'+i+'"')}if(we(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,we(e,!0,-1)):o&&F(e,"directives end mark is expected"),Dn(e,e.lineIndent-1,$a,!1,!0),we(e,!0,-1),e.checkLineBreaks&&wS.test(e.input.slice(t,e.position))&&Ea(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ia(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,we(e,!0,-1));return}if(e.position<e.length-1)F(e,"end of the stream or a document separator is expected");else return}function Ub(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
200
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new RS(e,t),i=e.indexOf("\0");for(i!==-1&&(n.position=i,F(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)QS(n);return n.documents}function ZS(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var i=Ub(e,n);if(typeof t!="function")return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])}function BS(e,t){var n=Ub(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Ze("expected a single document in the stream, but found more")}}var JS=ZS,YS=BS,Mb={loadAll:JS,load:YS},qb=Object.prototype.toString,Vb=Object.prototype.hasOwnProperty,Yc=65279,WS=9,Di=10,XS=13,HS=32,eN=33,tN=34,qc=35,rN=37,nN=38,iN=39,oN=42,Gb=44,aN=45,xa=58,sN=61,uN=62,cN=63,lN=64,Kb=91,Qb=93,dN=96,Zb=123,pN=124,Bb=125,qe={};qe[0]="\\0";qe[7]="\\a";qe[8]="\\b";qe[9]="\\t";qe[10]="\\n";qe[11]="\\v";qe[12]="\\f";qe[13]="\\r";qe[27]="\\e";qe[34]='\\"';qe[92]="\\\\";qe[133]="\\N";qe[160]="\\_";qe[8232]="\\L";qe[8233]="\\P";var fN=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],mN=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function gN(e,t){var n,i,r,o,a,s,u;if(t===null)return{};for(n={},i=Object.keys(t),r=0,o=i.length;r<o;r+=1)a=i[r],s=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&Vb.call(u.styleAliases,s)&&(s=u.styleAliases[s]),n[a]=s;return n}function vN(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else if(e<=4294967295)n="U",i=8;else throw new Ze("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+je.repeat("0",i-t.length)+t}var hN=1,Pi=2;function yN(e){this.schema=e.schema||Zc,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=je.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gN(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Pi:hN,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function nb(e,t){for(var n=je.repeat(" ",t),i=0,r=-1,o="",a,s=e.length;i<s;)r=e.indexOf(`
|
|
201
|
+
`,i),r===-1?(a=e.slice(i),i=s):(a=e.slice(i,r+1),i=r+1),a.length&&a!==`
|
|
202
|
+
`&&(o+=n),o+=a;return o}function Vc(e,t){return`
|
|
203
|
+
`+je.repeat(" ",e.indent*t)}function bN(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}function Oa(e){return e===HS||e===WS}function ji(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Yc||65536<=e&&e<=1114111}function ib(e){return ji(e)&&e!==Yc&&e!==XS&&e!==Di}function ob(e,t,n){var i=ib(e),r=i&&!Oa(e);return(n?i:i&&e!==Gb&&e!==Kb&&e!==Qb&&e!==Zb&&e!==Bb)&&e!==qc&&!(t===xa&&!r)||ib(t)&&!Oa(t)&&e===qc||t===xa&&r}function _N(e){return ji(e)&&e!==Yc&&!Oa(e)&&e!==aN&&e!==cN&&e!==xa&&e!==Gb&&e!==Kb&&e!==Qb&&e!==Zb&&e!==Bb&&e!==qc&&e!==nN&&e!==oN&&e!==eN&&e!==pN&&e!==sN&&e!==uN&&e!==iN&&e!==tN&&e!==rN&&e!==lN&&e!==dN}function TN(e){return!Oa(e)&&e!==xa}function ki(e,t){var n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function Jb(e){var t=/^\n* /;return t.test(e)}var Yb=1,Gc=2,Wb=3,Xb=4,Nn=5;function $N(e,t,n,i,r,o,a,s){var u,c=0,l=null,d=!1,p=!1,f=i!==-1,v=-1,_=_N(ki(e,0))&&TN(ki(e,e.length-1));if(t||a)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ki(e,u),!ji(c))return Nn;_=_&&ob(c,l,s),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ki(e,u),c===Di)d=!0,f&&(p=p||u-v-1>i&&e[v+1]!==" ",v=u);else if(!ji(c))return Nn;_=_&&ob(c,l,s),l=c}p=p||f&&u-v-1>i&&e[v+1]!==" "}return!d&&!p?_&&!a&&!r(e)?Yb:o===Pi?Nn:Gc:n>9&&Jb(e)?Nn:a?o===Pi?Nn:Gc:p?Xb:Wb}function EN(e,t,n,i,r){e.dump=(function(){if(t.length===0)return e.quotingType===Pi?'""':"''";if(!e.noCompatMode&&(fN.indexOf(t)!==-1||mN.test(t)))return e.quotingType===Pi?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=i||e.flowLevel>-1&&n>=e.flowLevel;function u(c){return bN(e,c)}switch($N(t,s,e.indent,a,u,e.quotingType,e.forceQuotes&&!i,r)){case Yb:return t;case Gc:return"'"+t.replace(/'/g,"''")+"'";case Wb:return"|"+ab(t,e.indent)+sb(nb(t,o));case Xb:return">"+ab(t,e.indent)+sb(nb(xN(t,a),o));case Nn:return'"'+ON(t)+'"';default:throw new Ze("impossible error: invalid scalar style")}})()}function ab(e,t){var n=Jb(e)?String(t):"",i=e[e.length-1]===`
|
|
204
|
+
`,r=i&&(e[e.length-2]===`
|
|
205
205
|
`||e===`
|
|
206
|
-
`),o=
|
|
207
|
-
`}function
|
|
208
|
-
`?e.slice(0,-1):e}function
|
|
209
|
-
`);return c=c!==-1?c:e.length,
|
|
210
|
-
`||e[0]===" ",o,
|
|
211
|
-
`:"")+
|
|
212
|
-
`+e.slice(
|
|
213
|
-
`,e.length-
|
|
214
|
-
`+e.slice(
|
|
215
|
-
`:""}var Av=Dv,Rv={dump:Av};function Ho(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var Pv=Oe,wv=cl,jv=fl,xv=gl,kv=Tl,Fv=Uo,Wo=Cl.load,Cv=Cl.loadAll,qv=Rv.dump,Mv=De,Gv={binary:Nl,float:vl,map:dl,null:ml,pairs:Sl,set:Ll,timestamp:_l,bool:hl,int:yl,merge:Ol,omap:Il,seq:pl,str:ll},Vv=Ho("safeLoad","load"),$v=Ho("safeLoadAll","loadAll"),Qv=Ho("safeDump","dump"),Wl={Type:Pv,Schema:wv,FAILSAFE_SCHEMA:jv,JSON_SCHEMA:xv,CORE_SCHEMA:kv,DEFAULT_SCHEMA:Fv,load:Wo,loadAll:Cv,dump:qv,YAMLException:Mv,types:Gv,safeLoad:Vv,safeLoadAll:$v,safeDump:Qv};var pr={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}};function Kv(){return{debug:(e,...r)=>console.debug(`[gql-ingest] ${e}`,...r),info:(e,...r)=>console.info(`[gql-ingest] ${e}`,...r),warn:(e,...r)=>console.warn(`[gql-ingest] ${e}`,...r),error:(e,...r)=>console.error(`[gql-ingest] ${e}`,...r)}}function Jl(e=!1){return e?Kv():pr}var li={maxAttempts:3,baseDelay:1e3,maxDelay:3e4,exponentialBackoff:!0,retryableStatusCodes:[408,429,500,502,503,504]},Zl={concurrency:1,entityConcurrency:1,preserveRowOrder:!0},zl={retry:li,parallelProcessing:Zl,entityConfig:{},entityDependencies:{}};function ep(e,r=pr){let t=Bv.join(e,"config.yaml");try{if(!Xl.existsSync(t))return r.info("No config.yaml found, using default sequential processing"),zl;let n=Xl.readFileSync(t,"utf8"),i=Wo(n);return Yv(i)}catch(n){let i=n instanceof Error?n.message:String(n);return r.warn(`Warning: Failed to parse config.yaml: ${i}. Using defaults.`),zl}}function Yv(e){return{retry:{...li,...e.retry},parallelProcessing:{...Zl,...e.parallelProcessing},entityConfig:e.entityConfig||{},entityDependencies:e.entityDependencies||{}}}function rp(e,r,t=pr){let n=r.entityConfig[e]||{},i={...r.parallelProcessing,...n};return i.preserveRowOrder&&i.concurrency>1&&(t.warn(`Entity '${e}': preserveRowOrder=true forces concurrency=1 (was ${i.concurrency})`),i.concurrency=1),i}function tp(e,r){let t=r.entityConfig[e]?.retry||{};return{...r.retry,...t}}var et=class{constructor(r,t,n,i=pr){this.client=new Hv(r,{headers:t||{}}),this.metrics=n,this.logger=i}async executeMutation(r,t,n,i){let o=n||li,s,a=Date.now();for(let c=0;c<o.maxAttempts;c++){if(i?.aborted)throw new Error(`Request aborted: ${i.reason||"cancelled"}`);let l=Date.now();try{let p=await this.client.request(r,t);if(this.metrics){let h=Date.now()-l;this.metrics.recordRequestDuration(h),c>0&&this.metrics.recordRetrySuccess(c)}let d=Date.now()-a,m=c>0?` (succeeded on attempt ${c+1})`:"";return this.logger.debug(`\u2713 GraphQL request completed in ${d}ms${m}`,p),p}catch(p){s=p;let d=Date.now()-l;if(this.metrics&&this.metrics.recordRequestDuration(d),c===o.maxAttempts-1){this.metrics&&c>0&&this.metrics.recordRetryFailure(c);break}if(!this.isRetryableError(p,o))throw this.logger.error(`\u2717 GraphQL request failed with non-retryable error in ${d}ms`,p),p;let m=this.calculateDelay(c,o);this.logger.debug(`\u23F3 GraphQL request failed (attempt ${c+1}/${o.maxAttempts}), retrying in ${m}ms...`),await this.sleepWithSignal(m,i)}}let u=Date.now()-a;throw this.logger.error(`\u2717 GraphQL request failed after ${o.maxAttempts} attempts in ${u}ms`,s),s}isRetryableError(r,t){if(!r.response)return!0;let n=r.response.status;return t.retryableStatusCodes.includes(n)}calculateDelay(r,t){if(!t.exponentialBackoff)return t.baseDelay;let n=t.baseDelay*Math.pow(2,r),i=Math.min(n,t.maxDelay),o=i*.2*(Math.random()-.5);return Math.max(0,i+o)}sleepWithSignal(r,t){return new Promise((n,i)=>{if(t?.aborted){i(new Error(`Request aborted: ${t.reason||"cancelled"}`));return}let o=setTimeout(n,r);if(t){let s=()=>{clearTimeout(o),i(new Error(`Request aborted: ${t.reason||"cancelled"}`))};t.addEventListener("abort",s,{once:!0})}})}setHeaders(r){this.client.setHeaders(r)}};var fh=Ih(dh(),1);import Mc from"fs";import jr from"path";var ar=class{canHandle(r){let t=r.split(".").pop()?.toLowerCase();return t?this.getSupportedExtensions().includes(t):!1}},Er=class{static{this.readers=[]}static registerReader(r){this.readers.push(r)}static getReader(r,t){if(t){let i=this.readers.find(o=>o.getSupportedExtensions().includes(t.toLowerCase()));if(i)return i}let n=this.readers.find(i=>i.canHandle(r));if(!n)throw new Error(`No reader found for file: ${r}${t?` with format: ${t}`:""}`);return n}static getSupportedFormats(){let r=new Set;return this.readers.forEach(t=>{t.getSupportedExtensions().forEach(n=>r.add(n))}),Array.from(r)}};import BS from"fs";import YS from"csv-parser";var zn=class extends ar{getSupportedExtensions(){return["csv"]}async readFile(r){return new Promise((t,n)=>{let i=[];BS.createReadStream(r).pipe(YS()).on("data",o=>i.push(o)).on("end",()=>t(i)).on("error",o=>n(o))})}};import HS from"fs/promises";var Zn=class extends ar{getSupportedExtensions(){return["json"]}async readFile(r){let t=await HS.readFile(r,"utf8"),n=JSON.parse(t);if(Array.isArray(n))return n;if(typeof n=="object"&&n!==null)return[n];throw new Error(`Invalid JSON data structure in file: ${r}. Expected array or object.`)}};import WS from"fs/promises";var ei=class extends ar{getSupportedExtensions(){return["yaml","yml"]}async readFile(r){let t=await WS.readFile(r,"utf8"),n=Wl.load(t);if(Array.isArray(n))return n;if(typeof n=="object"&&n!==null)return[n];throw new Error(`Invalid YAML data structure in file: ${r}. Expected array or object.`)}};import JS from"fs/promises";var ri=class extends ar{getSupportedExtensions(){return["jsonl","ndjson"]}async readFile(r){let n=(await JS.readFile(r,"utf8")).split(`
|
|
216
|
-
`).filter(o=>o.trim()),i=[];for(let o=0;o<n.length;o++)try{let s=JSON.parse(n[o]);i.push(s)}catch(s){let a=s instanceof Error?s.message:String(s);throw new Error(`Invalid JSON at line ${o+1} in file: ${r}. Error: ${a}`)}return i}};Er.registerReader(new zn);Er.registerReader(new Zn);Er.registerReader(new ei);Er.registerReader(new ri);var Tt=class{constructor(){this.metrics={totalEntities:0,totalSuccesses:0,totalFailures:0,entityMetrics:new Map,requestDurations:[],retryAttempts:0,retrySuccesses:0,retryFailures:0,startTime:Date.now()}}startEntityProcessing(r){this.metrics.entityMetrics.has(r)||this.metrics.entityMetrics.set(r,{entityName:r,successCount:0,failureCount:0,startTime:Date.now()})}recordSuccess(r){let t=this.metrics.entityMetrics.get(r);t&&(t.successCount++,this.metrics.totalSuccesses++,this.metrics.totalEntities++)}recordFailure(r){let t=this.metrics.entityMetrics.get(r);t&&(t.failureCount++,this.metrics.totalFailures++,this.metrics.totalEntities++)}finishEntityProcessing(r){let t=this.metrics.entityMetrics.get(r);t&&(t.endTime=Date.now())}finishProcessing(){return this.metrics.endTime=Date.now(),{...this.metrics}}getEntityMetrics(r){return this.metrics.entityMetrics.get(r)}getMetrics(){let t=(this.metrics.endTime||Date.now())-this.metrics.startTime,n={};for(let[i,o]of this.metrics.entityMetrics){let s=o.endTime||Date.now();n[i]={rowsProcessed:o.successCount+o.failureCount,successfulRows:o.successCount,failedRows:o.failureCount,duration:s-o.startTime}}return{totalRows:this.metrics.totalEntities,successfulOperations:this.metrics.totalSuccesses,failedOperations:this.metrics.totalFailures,totalDuration:t,entities:n}}getTotalProcessed(){return this.metrics.totalEntities}getSuccessRate(){return this.metrics.totalEntities===0?0:this.metrics.totalSuccesses/this.metrics.totalEntities*100}recordRequestDuration(r){this.metrics.requestDurations.push(r)}recordRetrySuccess(r){this.metrics.retryAttempts+=r,this.metrics.retrySuccesses++}recordRetryFailure(r){this.metrics.retryAttempts+=r,this.metrics.retryFailures++}getAverageRequestDuration(){return this.metrics.requestDurations.length===0?0:this.metrics.requestDurations.reduce((t,n)=>t+n,0)/this.metrics.requestDurations.length}getDurationMs(){return(this.metrics.endTime||Date.now())-this.metrics.startTime}generateSummary(){let r=this.getDurationMs(),t=this.getSuccessRate(),n=this.getAverageRequestDuration(),i=`
|
|
206
|
+
`),o=r?"+":i?"":"-";return n+o+`
|
|
207
|
+
`}function sb(e){return e[e.length-1]===`
|
|
208
|
+
`?e.slice(0,-1):e}function xN(e,t){for(var n=/(\n+)([^\n]*)/g,i=(function(){var c=e.indexOf(`
|
|
209
|
+
`);return c=c!==-1?c:e.length,n.lastIndex=c,ub(e.slice(0,c),t)})(),r=e[0]===`
|
|
210
|
+
`||e[0]===" ",o,a;a=n.exec(e);){var s=a[1],u=a[2];o=u[0]===" ",i+=s+(!r&&!o&&u!==""?`
|
|
211
|
+
`:"")+ub(u,t),r=o}return i}function ub(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,i,r=0,o,a=0,s=0,u="";i=n.exec(e);)s=i.index,s-r>t&&(o=a>r?a:s,u+=`
|
|
212
|
+
`+e.slice(r,o),r=o+1),a=s;return u+=`
|
|
213
|
+
`,e.length-r>t&&a>r?u+=e.slice(r,a)+`
|
|
214
|
+
`+e.slice(a+1):u+=e.slice(r),u.slice(1)}function ON(e){for(var t="",n=0,i,r=0;r<e.length;n>=65536?r+=2:r++)n=ki(e,r),i=qe[n],!i&&ji(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||vN(n);return t}function IN(e,t,n){var i="",r=e.tag,o,a,s;for(o=0,a=n.length;o<a;o+=1)s=n[o],e.replacer&&(s=e.replacer.call(n,String(o),s)),(or(e,t,s,!1,!1)||typeof s>"u"&&or(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=r,e.dump="["+i+"]"}function cb(e,t,n,i){var r="",o=e.tag,a,s,u;for(a=0,s=n.length;a<s;a+=1)u=n[a],e.replacer&&(u=e.replacer.call(n,String(a),u)),(or(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&or(e,t+1,null,!0,!0,!1,!0))&&((!i||r!=="")&&(r+=Vc(e,t)),e.dump&&Di===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=o,e.dump=r||"[]"}function SN(e,t,n){var i="",r=e.tag,o=Object.keys(n),a,s,u,c,l;for(a=0,s=o.length;a<s;a+=1)l="",i!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=o[a],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),or(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),or(e,t,c,!1,!1)&&(l+=e.dump,i+=l));e.tag=r,e.dump="{"+i+"}"}function NN(e,t,n,i){var r="",o=e.tag,a=Object.keys(n),s,u,c,l,d,p;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Ze("sortKeys must be a boolean or a function");for(s=0,u=a.length;s<u;s+=1)p="",(!i||r!=="")&&(p+=Vc(e,t)),c=a[s],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),or(e,t+1,c,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Di===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=Vc(e,t)),or(e,t+1,l,!0,d)&&(e.dump&&Di===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,r+=p));e.tag=o,e.dump=r||"{}"}function lb(e,t,n){var i,r,o,a,s,u;for(r=n?e.explicitTypes:e.implicitTypes,o=0,a=r.length;o<a;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(u=e.styleMap[s.tag]||s.defaultStyle,qb.call(s.represent)==="[object Function]")i=s.represent(t,u);else if(Vb.call(s.represent,u))i=s.represent[u](t,u);else throw new Ze("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');e.dump=i}return!0}return!1}function or(e,t,n,i,r,o,a){e.tag=null,e.dump=n,lb(e,n,!1)||lb(e,n,!0);var s=qb.call(e.dump),u=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var l=s==="[object Object]"||s==="[object Array]",d,p;if(l&&(d=e.duplicates.indexOf(n),p=d!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(r=!1),p&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(l&&p&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")i&&Object.keys(e.dump).length!==0?(NN(e,t,e.dump,r),p&&(e.dump="&ref_"+d+e.dump)):(SN(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?cb(e,t-1,e.dump,r):cb(e,t,e.dump,r),p&&(e.dump="&ref_"+d+e.dump)):(IN(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&EN(e,e.dump,t,o,u);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ze("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function kN(e,t){var n=[],i=[],r,o;for(Kc(e,n,i),r=0,o=i.length;r<o;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(o)}function Kc(e,t,n){var i,r,o;if(e!==null&&typeof e=="object")if(r=t.indexOf(e),r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)Kc(e[r],t,n);else for(i=Object.keys(e),r=0,o=i.length;r<o;r+=1)Kc(e[i[r]],t,n)}function wN(e,t){t=t||{};var n=new yN(t);n.noRefs||kN(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),or(n,0,i,!0,!0)?n.dump+`
|
|
215
|
+
`:""}var DN=wN,PN={dump:DN};function Wc(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var jN=Ue,LN=fb,AN=hb,RN=$b,CN=Eb,FN=Zc,Xc=Mb.load,zN=Mb.loadAll,Hc=PN.dump,UN=Ze,MN={binary:Nb,float:Tb,map:vb,null:yb,pairs:wb,set:Db,timestamp:Ib,bool:bb,int:_b,merge:Sb,omap:kb,seq:gb,str:mb},qN=Wc("safeLoad","load"),VN=Wc("safeLoadAll","loadAll"),GN=Wc("safeDump","dump"),Hb={Type:jN,Schema:LN,FAILSAFE_SCHEMA:AN,JSON_SCHEMA:RN,CORE_SCHEMA:CN,DEFAULT_SCHEMA:FN,load:Xc,loadAll:zN,dump:Hc,YAMLException:UN,types:MN,safeLoad:qN,safeLoadAll:VN,safeDump:GN};var Be={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}};function Pn(e={}){let{prefix:t}=e,n=i=>t?`[${t}] ${i}`:i;return{debug:(i,...r)=>console.debug(n(i),...r),info:(i,...r)=>console.info(n(i),...r),warn:(i,...r)=>console.warn(n(i),...r),error:(i,...r)=>console.error(n(i),...r)}}var ye={};ir(ye,{$brand:()=>Sa,$input:()=>bp,$output:()=>yp,NEVER:()=>el,TimePrecision:()=>Ep,ZodAny:()=>fm,ZodArray:()=>hm,ZodBase64:()=>eu,ZodBase64URL:()=>tu,ZodBigInt:()=>ui,ZodBigIntFormat:()=>iu,ZodBoolean:()=>si,ZodCIDRv4:()=>Xs,ZodCIDRv6:()=>Hs,ZodCUID:()=>Ks,ZodCUID2:()=>Qs,ZodCatch:()=>zm,ZodCodec:()=>pu,ZodCustom:()=>po,ZodCustomStringFormat:()=>oi,ZodDate:()=>ao,ZodDefault:()=>jm,ZodDiscriminatedUnion:()=>bm,ZodE164:()=>ru,ZodEmail:()=>qs,ZodEmoji:()=>Vs,ZodEnum:()=>ni,ZodError:()=>yD,ZodExactOptional:()=>wm,ZodFile:()=>Nm,ZodFirstPartyTypeKind:()=>Wm,ZodFunction:()=>Bm,ZodGUID:()=>to,ZodIPv4:()=>Ys,ZodIPv6:()=>Ws,ZodISODate:()=>Rs,ZodISODateTime:()=>As,ZodISODuration:()=>Fs,ZodISOTime:()=>Cs,ZodIntersection:()=>_m,ZodIssueCode:()=>_D,ZodJWT:()=>nu,ZodKSUID:()=>Js,ZodLazy:()=>Km,ZodLiteral:()=>Sm,ZodMAC:()=>am,ZodMap:()=>Om,ZodNaN:()=>Mm,ZodNanoID:()=>Gs,ZodNever:()=>gm,ZodNonOptional:()=>lu,ZodNull:()=>dm,ZodNullable:()=>Pm,ZodNumber:()=>ai,ZodNumberFormat:()=>rn,ZodObject:()=>uo,ZodOptional:()=>cu,ZodPipe:()=>du,ZodPrefault:()=>Am,ZodPromise:()=>Zm,ZodReadonly:()=>qm,ZodRealError:()=>nt,ZodRecord:()=>lo,ZodSet:()=>Im,ZodString:()=>ii,ZodStringFormat:()=>de,ZodSuccess:()=>Fm,ZodSymbol:()=>cm,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>km,ZodTuple:()=>$m,ZodType:()=>B,ZodULID:()=>Zs,ZodURL:()=>oo,ZodUUID:()=>Qt,ZodUndefined:()=>lm,ZodUnion:()=>co,ZodUnknown:()=>mm,ZodVoid:()=>vm,ZodXID:()=>Bs,ZodXor:()=>ym,_ZodString:()=>Ms,_default:()=>Lm,_function:()=>j0,any:()=>d0,array:()=>so,base64:()=>BT,base64url:()=>JT,bigint:()=>a0,boolean:()=>um,catch:()=>Um,check:()=>L0,cidrv4:()=>QT,cidrv6:()=>ZT,clone:()=>Je,codec:()=>w0,coerce:()=>Xm,config:()=>Te,core:()=>ur,cuid:()=>FT,cuid2:()=>zT,custom:()=>A0,date:()=>f0,decode:()=>Hf,decodeAsync:()=>tm,describe:()=>R0,discriminatedUnion:()=>b0,e164:()=>YT,email:()=>NT,emoji:()=>RT,encode:()=>Xf,encodeAsync:()=>em,endsWith:()=>Zn,enum:()=>su,exactOptional:()=>Dm,file:()=>I0,flattenError:()=>qi,float32:()=>r0,float64:()=>n0,formatError:()=>Vi,fromJSONSchema:()=>V0,function:()=>j0,getErrorMap:()=>$D,globalRegistry:()=>Me,gt:()=>Gt,gte:()=>Ye,guid:()=>kT,hash:()=>t0,hex:()=>e0,hostname:()=>HT,httpUrl:()=>AT,includes:()=>Kn,instanceof:()=>F0,int:()=>Us,int32:()=>i0,int64:()=>s0,intersection:()=>Tm,ipv4:()=>VT,ipv6:()=>KT,iso:()=>ri,json:()=>U0,jwt:()=>WT,keyof:()=>m0,ksuid:()=>qT,lazy:()=>Qm,length:()=>en,literal:()=>O0,locales:()=>Wi,looseObject:()=>h0,looseRecord:()=>T0,lowercase:()=>Vn,lt:()=>Vt,lte:()=>ut,mac:()=>GT,map:()=>$0,maxLength:()=>Hr,maxSize:()=>Sr,meta:()=>C0,mime:()=>Bn,minLength:()=>sr,minSize:()=>Kt,multipleOf:()=>Ir,nan:()=>k0,nanoid:()=>CT,nativeEnum:()=>x0,negative:()=>Os,never:()=>ou,nonnegative:()=>Ss,nonoptional:()=>Cm,nonpositive:()=>Is,normalize:()=>Jn,null:()=>pm,nullable:()=>no,nullish:()=>S0,number:()=>sm,object:()=>g0,optional:()=>ro,overwrite:()=>Nt,parse:()=>Bf,parseAsync:()=>Jf,partialRecord:()=>_0,pipe:()=>io,positive:()=>xs,prefault:()=>Rm,preprocess:()=>M0,prettifyError:()=>pl,promise:()=>P0,property:()=>Ns,readonly:()=>Vm,record:()=>xm,refine:()=>Jm,regex:()=>qn,regexes:()=>gt,registry:()=>ns,safeDecode:()=>nm,safeDecodeAsync:()=>om,safeEncode:()=>rm,safeEncodeAsync:()=>im,safeParse:()=>Yf,safeParseAsync:()=>Wf,set:()=>E0,setErrorMap:()=>TD,size:()=>Xr,slugify:()=>Hn,startsWith:()=>Qn,strictObject:()=>v0,string:()=>zs,stringFormat:()=>XT,stringbool:()=>z0,success:()=>N0,superRefine:()=>Ym,symbol:()=>c0,templateLiteral:()=>D0,toJSONSchema:()=>Ps,toLowerCase:()=>Wn,toUpperCase:()=>Xn,transform:()=>uu,treeifyError:()=>dl,trim:()=>Yn,tuple:()=>Em,uint32:()=>o0,uint64:()=>u0,ulid:()=>UT,undefined:()=>l0,union:()=>au,unknown:()=>tn,uppercase:()=>Gn,url:()=>LT,util:()=>x,uuid:()=>wT,uuidv4:()=>DT,uuidv6:()=>PT,uuidv7:()=>jT,void:()=>p0,xid:()=>MT,xor:()=>y0});var ur={};ir(ur,{$ZodAny:()=>Ud,$ZodArray:()=>Kd,$ZodAsyncError:()=>St,$ZodBase64:()=>wd,$ZodBase64URL:()=>Dd,$ZodBigInt:()=>Ya,$ZodBigIntFormat:()=>Rd,$ZodBoolean:()=>Zi,$ZodCIDRv4:()=>Sd,$ZodCIDRv6:()=>Nd,$ZodCUID:()=>gd,$ZodCUID2:()=>vd,$ZodCatch:()=>cp,$ZodCheck:()=>fe,$ZodCheckBigIntFormat:()=>Kl,$ZodCheckEndsWith:()=>nd,$ZodCheckGreaterThan:()=>Va,$ZodCheckIncludes:()=>td,$ZodCheckLengthEquals:()=>Wl,$ZodCheckLessThan:()=>qa,$ZodCheckLowerCase:()=>Hl,$ZodCheckMaxLength:()=>Jl,$ZodCheckMaxSize:()=>Ql,$ZodCheckMimeType:()=>od,$ZodCheckMinLength:()=>Yl,$ZodCheckMinSize:()=>Zl,$ZodCheckMultipleOf:()=>Vl,$ZodCheckNumberFormat:()=>Gl,$ZodCheckOverwrite:()=>ad,$ZodCheckProperty:()=>id,$ZodCheckRegex:()=>Xl,$ZodCheckSizeEquals:()=>Bl,$ZodCheckStartsWith:()=>rd,$ZodCheckStringFormat:()=>Un,$ZodCheckUpperCase:()=>ed,$ZodCodec:()=>Ji,$ZodCustom:()=>hp,$ZodCustomStringFormat:()=>Ld,$ZodDate:()=>Gd,$ZodDefault:()=>op,$ZodDiscriminatedUnion:()=>Bd,$ZodE164:()=>Pd,$ZodEmail:()=>dd,$ZodEmoji:()=>fd,$ZodEncodeError:()=>Tr,$ZodEnum:()=>Hd,$ZodError:()=>Mi,$ZodExactOptional:()=>np,$ZodFile:()=>tp,$ZodFunction:()=>mp,$ZodGUID:()=>cd,$ZodIPv4:()=>xd,$ZodIPv6:()=>Od,$ZodISODate:()=>Td,$ZodISODateTime:()=>_d,$ZodISODuration:()=>Ed,$ZodISOTime:()=>$d,$ZodIntersection:()=>Jd,$ZodJWT:()=>jd,$ZodKSUID:()=>bd,$ZodLazy:()=>vp,$ZodLiteral:()=>ep,$ZodMAC:()=>Id,$ZodMap:()=>Wd,$ZodNaN:()=>lp,$ZodNanoID:()=>md,$ZodNever:()=>qd,$ZodNonOptional:()=>sp,$ZodNull:()=>zd,$ZodNullable:()=>ip,$ZodNumber:()=>Ja,$ZodNumberFormat:()=>Ad,$ZodObject:()=>S_,$ZodObjectJIT:()=>Qd,$ZodOptional:()=>Xa,$ZodPipe:()=>dp,$ZodPrefault:()=>ap,$ZodPromise:()=>gp,$ZodReadonly:()=>pp,$ZodRealError:()=>rt,$ZodRecord:()=>Yd,$ZodRegistry:()=>rs,$ZodSet:()=>Xd,$ZodString:()=>Wr,$ZodStringFormat:()=>le,$ZodSuccess:()=>up,$ZodSymbol:()=>Cd,$ZodTemplateLiteral:()=>fp,$ZodTransform:()=>rp,$ZodTuple:()=>Wa,$ZodType:()=>K,$ZodULID:()=>hd,$ZodURL:()=>pd,$ZodUUID:()=>ld,$ZodUndefined:()=>Fd,$ZodUnion:()=>Bi,$ZodUnknown:()=>Md,$ZodVoid:()=>Vd,$ZodXID:()=>yd,$ZodXor:()=>Zd,$brand:()=>Sa,$constructor:()=>g,$input:()=>bp,$output:()=>yp,Doc:()=>Qi,JSONSchema:()=>IT,JSONSchemaGenerator:()=>js,NEVER:()=>el,TimePrecision:()=>Ep,_any:()=>Gp,_array:()=>Wp,_base64:()=>_s,_base64url:()=>Ts,_bigint:()=>Cp,_boolean:()=>Ap,_catch:()=>lD,_check:()=>OT,_cidrv4:()=>ys,_cidrv6:()=>bs,_coercedBigint:()=>Fp,_coercedBoolean:()=>Rp,_coercedDate:()=>Jp,_coercedNumber:()=>kp,_coercedString:()=>Tp,_cuid:()=>ds,_cuid2:()=>ps,_custom:()=>Hp,_date:()=>Bp,_decode:()=>ja,_decodeAsync:()=>Aa,_default:()=>sD,_discriminatedUnion:()=>Jw,_e164:()=>$s,_email:()=>is,_emoji:()=>cs,_encode:()=>Pa,_encodeAsync:()=>La,_endsWith:()=>Zn,_enum:()=>tD,_file:()=>Xp,_float32:()=>Dp,_float64:()=>Pp,_gt:()=>Gt,_gte:()=>Ye,_guid:()=>Xi,_includes:()=>Kn,_int:()=>wp,_int32:()=>jp,_int64:()=>zp,_intersection:()=>Yw,_ipv4:()=>vs,_ipv6:()=>hs,_isoDate:()=>Op,_isoDateTime:()=>xp,_isoDuration:()=>Sp,_isoTime:()=>Ip,_jwt:()=>Es,_ksuid:()=>gs,_lazy:()=>mD,_length:()=>en,_literal:()=>nD,_lowercase:()=>Vn,_lt:()=>Vt,_lte:()=>ut,_mac:()=>$p,_map:()=>Hw,_max:()=>ut,_maxLength:()=>Hr,_maxSize:()=>Sr,_mime:()=>Bn,_min:()=>Ye,_minLength:()=>sr,_minSize:()=>Kt,_multipleOf:()=>Ir,_nan:()=>Yp,_nanoid:()=>ls,_nativeEnum:()=>rD,_negative:()=>Os,_never:()=>Qp,_nonnegative:()=>Ss,_nonoptional:()=>uD,_nonpositive:()=>Is,_normalize:()=>Jn,_null:()=>Vp,_nullable:()=>aD,_number:()=>Np,_optional:()=>oD,_overwrite:()=>Nt,_parse:()=>Rn,_parseAsync:()=>Cn,_pipe:()=>dD,_positive:()=>xs,_promise:()=>gD,_property:()=>Ns,_readonly:()=>pD,_record:()=>Xw,_refine:()=>ef,_regex:()=>qn,_safeDecode:()=>Ca,_safeDecodeAsync:()=>za,_safeEncode:()=>Ra,_safeEncodeAsync:()=>Fa,_safeParse:()=>Fn,_safeParseAsync:()=>zn,_set:()=>eD,_size:()=>Xr,_slugify:()=>Hn,_startsWith:()=>Qn,_string:()=>_p,_stringFormat:()=>ei,_stringbool:()=>of,_success:()=>cD,_superRefine:()=>tf,_symbol:()=>Mp,_templateLiteral:()=>fD,_toLowerCase:()=>Wn,_toUpperCase:()=>Xn,_transform:()=>iD,_trim:()=>Yn,_tuple:()=>Ww,_uint32:()=>Lp,_uint64:()=>Up,_ulid:()=>fs,_undefined:()=>qp,_union:()=>Zw,_unknown:()=>Kp,_uppercase:()=>Gn,_url:()=>Hi,_uuid:()=>os,_uuidv4:()=>as,_uuidv6:()=>ss,_uuidv7:()=>us,_void:()=>Zp,_xid:()=>ms,_xor:()=>Bw,clone:()=>Je,config:()=>Te,createStandardJSONSchemaMethod:()=>ti,createToJSONSchemaMethod:()=>af,decode:()=>yk,decodeAsync:()=>_k,describe:()=>rf,encode:()=>hk,encodeAsync:()=>bk,extractDefs:()=>kr,finalize:()=>wr,flattenError:()=>qi,formatError:()=>Vi,globalConfig:()=>Li,globalRegistry:()=>Me,initializeContext:()=>Nr,isValidBase64:()=>kd,isValidBase64URL:()=>E_,isValidJWT:()=>x_,locales:()=>Wi,meta:()=>nf,parse:()=>wa,parseAsync:()=>Da,prettifyError:()=>pl,process:()=>ue,regexes:()=>gt,registry:()=>ns,safeDecode:()=>$k,safeDecodeAsync:()=>xk,safeEncode:()=>Tk,safeEncodeAsync:()=>Ek,safeParse:()=>fl,safeParseAsync:()=>ml,toDotPath:()=>o_,toJSONSchema:()=>Ps,treeifyError:()=>dl,util:()=>x,version:()=>sd});var el=Object.freeze({status:"aborted"});function g(e,t,n){function i(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var u;let c=n?.Parent?new o:this;i(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Sa=Symbol("zod_brand"),St=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Tr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Li={};function Te(e){return e&&Object.assign(Li,e),Li}var x={};ir(x,{BIGINT_FORMAT_RANGES:()=>ll,Class:()=>rl,NUMBER_FORMAT_RANGES:()=>cl,aborted:()=>Or,allowsEval:()=>ol,assert:()=>JN,assertEqual:()=>KN,assertIs:()=>ZN,assertNever:()=>BN,assertNotEqual:()=>QN,assignProp:()=>Er,base64ToUint8Array:()=>r_,base64urlToUint8Array:()=>pk,cached:()=>Ln,captureStackTrace:()=>ka,cleanEnum:()=>dk,cleanRegex:()=>Ci,clone:()=>Je,cloneDef:()=>WN,createTransparentProxy:()=>nk,defineLazy:()=>Y,esc:()=>Na,escapeRegex:()=>mt,extend:()=>ak,finalizeIssue:()=>tt,floatSafeRemainder:()=>nl,getElementAtPath:()=>XN,getEnumValues:()=>Ri,getLengthableOrigin:()=>Ui,getParsedType:()=>rk,getSizableOrigin:()=>zi,hexToUint8Array:()=>mk,isObject:()=>Jr,isPlainObject:()=>xr,issue:()=>An,joinValues:()=>h,jsonStringifyReplacer:()=>jn,merge:()=>uk,mergeDefs:()=>ar,normalizeParams:()=>O,nullish:()=>$r,numKeys:()=>tk,objectClone:()=>YN,omit:()=>ok,optionalKeys:()=>ul,parsedType:()=>E,partial:()=>ck,pick:()=>ik,prefixIssues:()=>st,primitiveTypes:()=>sl,promiseAllObject:()=>HN,propertyKeyTypes:()=>Fi,randomString:()=>ek,required:()=>lk,safeExtend:()=>sk,shallowClone:()=>al,slugify:()=>il,stringifyPrimitive:()=>$,uint8ArrayToBase64:()=>n_,uint8ArrayToBase64url:()=>fk,uint8ArrayToHex:()=>gk,unwrapMessage:()=>Ai});function KN(e){return e}function QN(e){return e}function ZN(e){}function BN(e){throw new Error("Unexpected value in exhaustive check")}function JN(e){}function Ri(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function h(e,t="|"){return e.map(n=>$(n)).join(t)}function jn(e,t){return typeof t=="bigint"?t.toString():t}function Ln(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function $r(e){return e==null}function Ci(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function nl(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let u=i.match(/\d?e-(\d?)/);u?.[1]&&(r=Number.parseInt(u[1]))}let o=n>r?n:r,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}var t_=Symbol("evaluating");function Y(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==t_)return i===void 0&&(i=t_,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function YN(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Er(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ar(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function WN(e){return ar(e._zod.def)}function XN(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function HN(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function ek(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Na(e){return JSON.stringify(e)}function il(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ka="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ol=Ln(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function xr(e){if(Jr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Jr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function al(e){return xr(e)?{...e}:Array.isArray(e)?[...e]:e}function tk(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var rk=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Fi=new Set(["string","number","symbol"]),sl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function mt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function O(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function nk(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function $(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ul(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var cl={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]},ll={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ik(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=ar(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s])}return Er(this,"shape",a),a},checks:[]});return Je(e,o)}function ok(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=ar(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Er(this,"shape",a),a},checks:[]});return Je(e,o)}function ak(e,t){if(!xr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=ar(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Er(this,"shape",o),o}});return Je(e,r)}function sk(e,t){if(!xr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=ar(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Er(this,"shape",i),i}});return Je(e,n)}function uk(e,t){let n=ar(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return Er(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Je(e,n)}function ck(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=ar(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(n)for(let c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return Er(this,"shape",u),u},checks:[]});return Je(t,a)}function lk(e,t,n){let i=ar(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return Er(this,"shape",o),o}});return Je(t,i)}function Or(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function st(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Ai(e){return typeof e=="string"?e:e?.message}function tt(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=Ai(e.inst?._zod.def?.error?.(e))??Ai(t?.error?.(e))??Ai(n.customError?.(e))??Ai(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function zi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ui(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function E(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function An(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function dk(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function r_(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function n_(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function pk(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return r_(t+n)}function fk(e){return n_(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function mk(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function gk(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var rl=class{constructor(...t){}};var i_=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,jn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Mi=g("$ZodError",i_),rt=g("$ZodError",i_,{Parent:Error});function qi(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function Vi(e,t=n=>n.message){let n={_errors:[]},i=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let a=n,s=0;for(;s<o.path.length;){let u=o.path[s];s===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(t(o))):a[u]=a[u]||{_errors:[]},a=a[u],s++}}};return i(e),n}function dl(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let u of r.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},u.path));else if(u.code==="invalid_key")i({issues:u.issues},u.path);else if(u.code==="invalid_element")i({issues:u.issues},u.path);else{let c=[...o,...u.path];if(c.length===0){n.errors.push(t(u));continue}let l=n,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(t(u)),d++}}};return i(e),n}function o_(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function pl(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${o_(i.path)}`);return t.join(`
|
|
216
|
+
`)}var Rn=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new St;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(u=>tt(u,o,Te())));throw ka(s,r?.callee),s}return a.value},wa=Rn(rt),Cn=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(u=>tt(u,o,Te())));throw ka(s,r?.callee),s}return a.value},Da=Cn(rt),Fn=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new St;return o.issues.length?{success:!1,error:new(e??Mi)(o.issues.map(a=>tt(a,r,Te())))}:{success:!0,data:o.value}},fl=Fn(rt),zn=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>tt(a,r,Te())))}:{success:!0,data:o.value}},ml=zn(rt),Pa=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Rn(e)(t,n,r)},hk=Pa(rt),ja=e=>(t,n,i)=>Rn(e)(t,n,i),yk=ja(rt),La=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Cn(e)(t,n,r)},bk=La(rt),Aa=e=>async(t,n,i)=>Cn(e)(t,n,i),_k=Aa(rt),Ra=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Fn(e)(t,n,r)},Tk=Ra(rt),Ca=e=>(t,n,i)=>Fn(e)(t,n,i),$k=Ca(rt),Fa=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return zn(e)(t,n,r)},Ek=Fa(rt),za=e=>async(t,n,i)=>zn(e)(t,n,i),xk=za(rt);var gt={};ir(gt,{base64:()=>wl,base64url:()=>Ua,bigint:()=>Rl,boolean:()=>Fl,browserEmail:()=>Pk,cidrv4:()=>Nl,cidrv6:()=>kl,cuid:()=>gl,cuid2:()=>vl,date:()=>Pl,datetime:()=>Ll,domain:()=>Ak,duration:()=>Tl,e164:()=>Dl,email:()=>El,emoji:()=>xl,extendedDuration:()=>Ok,guid:()=>$l,hex:()=>Rk,hostname:()=>Lk,html5Email:()=>kk,idnEmail:()=>Dk,integer:()=>Cl,ipv4:()=>Ol,ipv6:()=>Il,ksuid:()=>bl,lowercase:()=>Ml,mac:()=>Sl,md5_base64:()=>Fk,md5_base64url:()=>zk,md5_hex:()=>Ck,nanoid:()=>_l,null:()=>zl,number:()=>Ma,rfc5322Email:()=>wk,sha1_base64:()=>Mk,sha1_base64url:()=>qk,sha1_hex:()=>Uk,sha256_base64:()=>Gk,sha256_base64url:()=>Kk,sha256_hex:()=>Vk,sha384_base64:()=>Zk,sha384_base64url:()=>Bk,sha384_hex:()=>Qk,sha512_base64:()=>Yk,sha512_base64url:()=>Wk,sha512_hex:()=>Jk,string:()=>Al,time:()=>jl,ulid:()=>hl,undefined:()=>Ul,unicodeEmail:()=>a_,uppercase:()=>ql,uuid:()=>Yr,uuid4:()=>Ik,uuid6:()=>Sk,uuid7:()=>Nk,xid:()=>yl});var gl=/^[cC][^\s-]{8,}$/,vl=/^[0-9a-z]+$/,hl=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,yl=/^[0-9a-vA-V]{20}$/,bl=/^[A-Za-z0-9]{27}$/,_l=/^[a-zA-Z0-9_-]{21}$/,Tl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ok=/^[-+]?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)?)??$/,$l=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Yr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ik=Yr(4),Sk=Yr(6),Nk=Yr(7),El=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kk=/^[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])?)*$/,wk=/^(([^<>()\[\]\\.,;:\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,}))$/,a_=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Dk=a_,Pk=/^[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])?)*$/,jk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xl(){return new RegExp(jk,"u")}var Ol=/^(?:(?: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])$/,Il=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Sl=e=>{let t=mt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Nl=/^((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])$/,kl=/^(([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])$/,wl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ua=/^[A-Za-z0-9_-]*$/,Lk=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Ak=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Dl=/^\+[1-9]\d{6,14}$/,s_="(?:(?:\\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])))",Pl=new RegExp(`^${s_}$`);function u_(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function jl(e){return new RegExp(`^${u_(e)}$`)}function Ll(e){let t=u_({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${s_}T(?:${i})$`)}var Al=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Rl=/^-?\d+n?$/,Cl=/^-?\d+$/,Ma=/^-?\d+(?:\.\d+)?$/,Fl=/^(?:true|false)$/i,zl=/^null$/i;var Ul=/^undefined$/i;var Ml=/^[^A-Z]*$/,ql=/^[^a-z]*$/,Rk=/^[0-9a-fA-F]*$/;function Gi(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ki(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Ck=/^[0-9a-fA-F]{32}$/,Fk=Gi(22,"=="),zk=Ki(22),Uk=/^[0-9a-fA-F]{40}$/,Mk=Gi(27,"="),qk=Ki(27),Vk=/^[0-9a-fA-F]{64}$/,Gk=Gi(43,"="),Kk=Ki(43),Qk=/^[0-9a-fA-F]{96}$/,Zk=Gi(64,""),Bk=Ki(64),Jk=/^[0-9a-fA-F]{128}$/,Yk=Gi(86,"=="),Wk=Ki(86);var fe=g("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),l_={number:"number",bigint:"bigint",object:"date"},qa=g("$ZodCheckLessThan",(e,t)=>{fe.init(e,t);let n=l_[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Va=g("$ZodCheckGreaterThan",(e,t)=>{fe.init(e,t);let n=l_[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vl=g("$ZodCheckMultipleOf",(e,t)=>{fe.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):nl(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Gl=g("$ZodCheckNumberFormat",(e,t)=>{fe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=cl[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=Cl)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Kl=g("$ZodCheckBigIntFormat",(e,t)=>{fe.init(e,t);let[n,i]=ll[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ql=g("$ZodCheckMaxSize",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$r(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:zi(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Zl=g("$ZodCheckMinSize",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$r(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:zi(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Bl=g("$ZodCheckSizeEquals",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$r(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:zi(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Jl=g("$ZodCheckMaxLength",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$r(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=Ui(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Yl=g("$ZodCheckMinLength",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$r(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=Ui(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Wl=g("$ZodCheckLengthEquals",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$r(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{let r=i.value,o=r.length;if(o===t.length)return;let a=Ui(r),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Un=g("$ZodCheckStringFormat",(e,t)=>{var n,i;fe.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Xl=g("$ZodCheckRegex",(e,t)=>{Un.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Hl=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ml),Un.init(e,t)}),ed=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ql),Un.init(e,t)}),td=g("$ZodCheckIncludes",(e,t)=>{fe.init(e,t);let n=mt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),rd=g("$ZodCheckStartsWith",(e,t)=>{fe.init(e,t);let n=new RegExp(`^${mt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),nd=g("$ZodCheckEndsWith",(e,t)=>{fe.init(e,t);let n=new RegExp(`.*${mt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function c_(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues))}var id=g("$ZodCheckProperty",(e,t)=>{fe.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>c_(r,n,t.property));c_(i,n,t.property)}}),od=g("$ZodCheckMimeType",(e,t)=>{fe.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),ad=g("$ZodCheckOverwrite",(e,t)=>{fe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Qi=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
217
|
+
`).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
|
|
218
|
+
`))}};var sd={major:4,minor:3,patch:5};var K=g("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=sd;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(a,s,u)=>{let c=Or(a),l;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,f=d._zod.check(a);if(f instanceof Promise&&u?.async===!1)throw new St;if(l||f instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(c||(c=Or(a,p)))});else{if(a.issues.length===p)continue;c||(c=Or(a,p))}}return l?l.then(()=>a):a},o=(a,s,u)=>{if(Or(a))return a.aborted=!0,a;let c=r(s,i,u);if(c instanceof Promise){if(u.async===!1)throw new St;return c.then(l=>e._zod.parse(l,u))}return e._zod.parse(c,u)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(l=>o(l,a,s)):o(c,a,s)}let u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new St;return u.then(c=>r(c,i,s))}return r(u,i,s)}}Y(e,"~standard",()=>({validate:r=>{try{let o=fl(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return ml(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Wr=g("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Al(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),le=g("$ZodStringFormat",(e,t)=>{Un.init(e,t),Wr.init(e,t)}),cd=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=$l),le.init(e,t)}),ld=g("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Yr(i))}else t.pattern??(t.pattern=Yr());le.init(e,t)}),dd=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=El),le.init(e,t)}),pd=g("$ZodURL",(e,t)=>{le.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),fd=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xl()),le.init(e,t)}),md=g("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=_l),le.init(e,t)}),gd=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=gl),le.init(e,t)}),vd=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=vl),le.init(e,t)}),hd=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=hl),le.init(e,t)}),yd=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=yl),le.init(e,t)}),bd=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=bl),le.init(e,t)}),_d=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ll(t)),le.init(e,t)}),Td=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pl),le.init(e,t)}),$d=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=jl(t)),le.init(e,t)}),Ed=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Tl),le.init(e,t)}),xd=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ol),le.init(e,t),e._zod.bag.format="ipv4"}),Od=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Il),le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Id=g("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Sl(t.delimiter)),le.init(e,t),e._zod.bag.format="mac"}),Sd=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Nl),le.init(e,t)}),Nd=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=kl),le.init(e,t),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function kd(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var wd=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wl),le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{kd(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function E_(e){if(!Ua.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return kd(n)}var Dd=g("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ua),le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{E_(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Pd=g("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Dl),le.init(e,t)});function x_(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var jd=g("$ZodJWT",(e,t)=>{le.init(e,t),e._zod.check=n=>{x_(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ld=g("$ZodCustomStringFormat",(e,t)=>{le.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Ja=g("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ma,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),Ad=g("$ZodNumberFormat",(e,t)=>{Gl.init(e,t),Ja.init(e,t)}),Zi=g("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=Fl,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Ya=g("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=Rl,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Rd=g("$ZodBigIntFormat",(e,t)=>{Kl.init(e,t),Ya.init(e,t)}),Cd=g("$ZodSymbol",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Fd=g("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=Ul,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),zd=g("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=zl,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Ud=g("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),Md=g("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),qd=g("$ZodNever",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Vd=g("$ZodVoid",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Gd=g("$ZodDate",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function p_(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}var Kd=g("$ZodArray",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let s=r[a],u=t.element._zod.run({value:s,issues:[]},i);u instanceof Promise?o.push(u.then(c=>p_(c,n,a))):p_(u,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Ba(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...st(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function O_(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=ul(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function I_(e,t,n,i,r,o){let a=[],s=r.keySet,u=r.catchall._zod,c=u.def.type,l=u.optout==="optional";for(let d in t){if(s.has(d))continue;if(c==="never"){a.push(d);continue}let p=u.run({value:t[d],issues:[]},i);p instanceof Promise?e.push(p.then(f=>Ba(f,n,d,t,l))):Ba(p,n,d,t,l)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var S_=g("$ZodObject",(e,t)=>{if(K.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}let i=Ln(()=>O_(t));Y(e._zod,"propValues",()=>{let s=t.shape,u={};for(let c in s){let l=s[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(let d of l.values)u[c].add(d)}}return u});let r=Jr,o=t.catchall,a;e._zod.parse=(s,u)=>{a??(a=i.value);let c=s.value;if(!r(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let l=[],d=a.shape;for(let p of a.keys){let f=d[p],v=f._zod.optout==="optional",_=f._zod.run({value:c[p],issues:[]},u);_ instanceof Promise?l.push(_.then(j=>Ba(j,s,p,c,v))):Ba(_,s,p,c,v)}return o?I_(l,c,s,u,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),Qd=g("$ZodObjectJIT",(e,t)=>{S_.init(e,t);let n=e._zod.parse,i=Ln(()=>O_(t)),r=p=>{let f=new Qi(["shape","payload","ctx"]),v=i.value,_=V=>{let H=Na(V);return`shape[${H}]._zod.run({ value: input[${H}], issues: [] }, ctx)`};f.write("const input = payload.value;");let j=Object.create(null),z=0;for(let V of v.keys)j[V]=`key_${z++}`;f.write("const newResult = {};");for(let V of v.keys){let H=j[V],Ie=Na(V),ft=p[V]?._zod?.optout==="optional";f.write(`const ${H} = ${_(V)};`),ft?f.write(`
|
|
219
|
+
if (${H}.issues.length) {
|
|
220
|
+
if (${Ie} in input) {
|
|
221
|
+
payload.issues = payload.issues.concat(${H}.issues.map(iss => ({
|
|
222
|
+
...iss,
|
|
223
|
+
path: iss.path ? [${Ie}, ...iss.path] : [${Ie}]
|
|
224
|
+
})));
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (${H}.value === undefined) {
|
|
229
|
+
if (${Ie} in input) {
|
|
230
|
+
newResult[${Ie}] = undefined;
|
|
231
|
+
}
|
|
232
|
+
} else {
|
|
233
|
+
newResult[${Ie}] = ${H}.value;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
`):f.write(`
|
|
237
|
+
if (${H}.issues.length) {
|
|
238
|
+
payload.issues = payload.issues.concat(${H}.issues.map(iss => ({
|
|
239
|
+
...iss,
|
|
240
|
+
path: iss.path ? [${Ie}, ...iss.path] : [${Ie}]
|
|
241
|
+
})));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (${H}.value === undefined) {
|
|
245
|
+
if (${Ie} in input) {
|
|
246
|
+
newResult[${Ie}] = undefined;
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
newResult[${Ie}] = ${H}.value;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");let k=f.compile();return(V,H)=>k(p,V,H)},o,a=Jr,s=!Li.jitless,c=s&&ol.value,l=t.catchall,d;e._zod.parse=(p,f)=>{d??(d=i.value);let v=p.value;return a(v)?s&&c&&f?.async===!1&&f.jitless!==!0?(o||(o=r(t.shape)),p=o(p,f),l?I_([],v,p,f,d,e):p):n(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),p)}});function f_(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!Or(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>tt(a,i,Te())))}),t)}var Bi=g("$ZodUnion",(e,t)=>{K.init(e,t),Y(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Y(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Y(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Y(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Ci(o.source)).join("|")})$`)}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1,s=[];for(let u of t.options){let c=u._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(u=>f_(u,r,e,o)):f_(s,r,e,o)}});function m_(e,t,n,i){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>tt(a,i,Te())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Zd=g("$ZodXor",(e,t)=>{Bi.init(e,t),t.inclusive=!1;let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1,s=[];for(let u of t.options){let c=u._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),a=!0):s.push(c)}return a?Promise.all(s).then(u=>m_(u,r,e,o)):m_(s,r,e,o)}}),Bd=g("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Bi.init(e,t);let n=e._zod.parse;Y(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,u]of Object.entries(a)){r[s]||(r[s]=new Set);for(let c of u)r[s].add(c)}}return r});let i=Ln(()=>{let r=t.options,o=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let u of s){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,a)}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!Jr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),Jd=g("$ZodIntersection",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,c])=>g_(n,u,c)):g_(n,o,a)}});function ud(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xr(e)&&xr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=ud(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=ud(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function g_(e,t,n){let i=new Map,r;for(let s of t.issues)if(s.code==="unrecognized_keys"){r??(r=s);for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&r&&e.issues.push({...r,keys:o}),Or(e))return e;let a=ud(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Wa=g("$ZodTuple",(e,t)=>{K.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=[...n].reverse().findIndex(l=>l._zod.optin!=="optional"),u=s===-1?0:n.length-s;if(!t.rest){let l=o.length>n.length,d=o.length<u-1;if(l||d)return i.issues.push({...l?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let c=-1;for(let l of n){if(c++,c>=o.length&&c>=u)continue;let d=l._zod.run({value:o[c],issues:[]},r);d instanceof Promise?a.push(d.then(p=>Ga(p,i,c))):Ga(d,i,c)}if(t.rest){let l=o.slice(n.length);for(let d of l){c++;let p=t.rest._zod.run({value:d,issues:[]},r);p instanceof Promise?a.push(p.then(f=>Ga(f,i,c))):Ga(p,i,c)}}return a.length?Promise.all(a).then(()=>i):i}});function Ga(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}var Yd=g("$ZodRecord",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!xr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let l=t.valueType._zod.run({value:r[c],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(...st(c,d.issues)),n.value[c]=d.value})):(l.issues.length&&n.issues.push(...st(c,l.issues)),n.value[c]=l.value)}let u;for(let c in r)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__")continue;let u=t.keyType._zod.run({value:s,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Ma.test(s)&&u.issues.length&&u.issues.some(d=>d.code==="invalid_type"&&d.expected==="number")){let d=t.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>tt(d,i,Te())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:r[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(...st(s,d.issues)),n.value[u.value]=d.value})):(l.issues.length&&n.issues.push(...st(s,l.issues)),n.value[u.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Wd=g("$ZodMap",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){let u=t.keyType._zod.run({value:a,issues:[]},i),c=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([l,d])=>{v_(l,d,n,a,r,e,i)})):v_(u,c,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function v_(e,t,n,i,r,o,a){e.issues.length&&(Fi.has(typeof i)?n.issues.push(...st(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>tt(s,a,Te()))})),t.issues.length&&(Fi.has(typeof i)?n.issues.push(...st(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>tt(s,a,Te()))})),n.value.set(e.value,t.value)}var Xd=g("$ZodSet",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(u=>h_(u,n))):h_(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function h_(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Hd=g("$ZodEnum",(e,t)=>{K.init(e,t);let n=Ri(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>Fi.has(typeof r)).map(r=>typeof r=="string"?mt(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),ep=g("$ZodLiteral",(e,t)=>{if(K.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?mt(i):i?mt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),tp=g("$ZodFile",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),rp=g("$ZodTransform",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Tr(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new St;return n.value=r,n}});function y_(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Xa=g("$ZodOptional",(e,t)=>{K.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Y(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ci(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>y_(o,n.value)):y_(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),np=g("$ZodExactOptional",(e,t)=>{Xa.init(e,t),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),ip=g("$ZodNullable",(e,t)=>{K.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ci(n.source)}|null)$`):void 0}),Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),op=g("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>b_(o,t)):b_(r,t)}});function b_(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ap=g("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),sp=g("$ZodNonOptional",(e,t)=>{K.init(e,t),Y(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>__(o,e)):__(r,e)}});function __(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var up=g("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Tr("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),cp=g("$ZodCatch",(e,t)=>{K.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>tt(a,i,Te()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>tt(o,i,Te()))},input:n.value}),n.issues=[]),n)}}),lp=g("$ZodNaN",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),dp=g("$ZodPipe",(e,t)=>{K.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Ka(a,t.in,i)):Ka(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Ka(o,t.out,i)):Ka(r,t.out,i)}});function Ka(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ji=g("$ZodCodec",(e,t)=>{K.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>Qa(a,t,i)):Qa(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Qa(a,t,i)):Qa(o,t,i)}}});function Qa(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>Za(e,o,t.out,n)):Za(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>Za(e,o,t.in,n)):Za(e,r,t.in,n)}}function Za(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var pp=g("$ZodReadonly",(e,t)=>{K.init(e,t),Y(e._zod,"propValues",()=>t.innerType._zod.propValues),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"optin",()=>t.innerType?._zod?.optin),Y(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(T_):T_(r)}});function T_(e){return e.value=Object.freeze(e.value),e}var fp=g("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||sl.has(typeof i))n.push(mt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),mp=g("$ZodFunction",(e,t)=>(K.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?wa(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?wa(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Da(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await Da(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Wa({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),gp=g("$ZodPromise",(e,t)=>{K.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),vp=g("$ZodLazy",(e,t)=>{K.init(e,t),Y(e._zod,"innerType",()=>t.getter()),Y(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Y(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Y(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Y(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),hp=g("$ZodCustom",(e,t)=>{fe.init(e,t),K.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>$_(o,n,i,e));$_(r,n,i,e)}});function $_(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(An(r))}}var Wi={};ir(Wi,{ar:()=>N_,az:()=>k_,be:()=>D_,bg:()=>P_,ca:()=>j_,cs:()=>L_,da:()=>A_,de:()=>R_,en:()=>Ha,eo:()=>C_,es:()=>F_,fa:()=>z_,fi:()=>U_,fr:()=>M_,frCA:()=>q_,he:()=>V_,hu:()=>G_,hy:()=>Q_,id:()=>Z_,is:()=>B_,it:()=>J_,ja:()=>Y_,ka:()=>W_,kh:()=>X_,km:()=>es,ko:()=>H_,lt:()=>tT,mk:()=>rT,ms:()=>nT,nl:()=>iT,no:()=>oT,ota:()=>aT,pl:()=>uT,ps:()=>sT,pt:()=>cT,ru:()=>dT,sl:()=>pT,sv:()=>fT,ta:()=>mT,th:()=>gT,tr:()=>vT,ua:()=>hT,uk:()=>ts,ur:()=>yT,uz:()=>bT,vi:()=>_T,yo:()=>ET,zhCN:()=>TT,zhTW:()=>$T});var Hk=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${$(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${h(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function N_(){return{localeError:Hk()}}var ew=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${$(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${h(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function k_(){return{localeError:ew()}}function w_(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var tw=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${$(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=w_(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),u=w_(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${h(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function D_(){return{localeError:tw()}}var rw=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${$(r.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${h(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function P_(){return{localeError:rw()}}var nw=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${$(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${h(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function j_(){return{localeError:nw()}}var iw=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${$(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${h(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function L_(){return{localeError:iw()}}var ow=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${$(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${h(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function A_(){return{localeError:ow()}}var aw=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${$(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${h(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function R_(){return{localeError:aw()}}var sw=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${$(r.values[0])}`:`Invalid option: expected one of ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function Ha(){return{localeError:sw()}}var uw=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${$(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function C_(){return{localeError:uw()}}var cw=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${$(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function F_(){return{localeError:cw()}}var lw=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${$(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${h(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${h(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function z_(){return{localeError:lw()}}var dw=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${$(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${h(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function U_(){return{localeError:dw()}}var pw=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${$(r.values[0])} attendu`:`Option invalide : une valeur parmi ${h(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${h(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function M_(){return{localeError:pw()}}var fw=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${$(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${h(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function q_(){return{localeError:fw()}}var mw=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=c=>c?e[c]:void 0,i=c=>{let l=n(c);return l?l.label:c??e.unknown.label},r=c=>`\u05D4${i(c)}`,o=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let l=c.expected,d=u[l??""]??i(l),p=E(c.input),f=u[p]??e[p]?.label??p;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${$(c.values[0])}`;let l=c.values.map(f=>$(f));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let d=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let l=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let p=c.inclusive?"<=":"<",f=o(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.maximum.toString()}`}case"too_small":{let l=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let j=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${j}`}let _=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let p=c.inclusive?">=":">",f=o(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.minimum.toString()}`}case"invalid_format":{let l=c;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let d=s[l.format],p=d?.label??l.format,v=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${v}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${h(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function V_(){return{localeError:mw()}}var gw=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${$(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function G_(){return{localeError:gw()}}function K_(e,t,n){return Math.abs(e)===1?t:n}function Mn(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var vw=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${$(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=K_(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mn(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mn(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),u=K_(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mn(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mn(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??r.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${h(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Mn(r.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Mn(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Q_(){return{localeError:vw()}}var hw=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${$(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function Z_(){return{localeError:hw()}}var yw=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(r){return e[r]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${$(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${h(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function B_(){return{localeError:yw()}}var bw=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${$(r.values[0])}`:`Opzione non valida: atteso uno tra ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${h(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function J_(){return{localeError:bw()}}var _w=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${$(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${h(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${h(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Y_(){return{localeError:_w()}}var Tw=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(r){return e[r]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return r.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${$(r.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${h(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${r.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${h(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function W_(){return{localeError:Tw()}}var $w=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${$(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${h(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function es(){return{localeError:$w()}}function X_(){return es()}var Ew=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${$(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${h(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),u=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),u=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${h(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function H_(){return{localeError:Ew()}}var Yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function eT(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var xw=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(r,o,a,s){let u=e[r]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${$(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${h(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,eT(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Yi(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Yi(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,eT(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Yi(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Yi(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${h(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[r.origin]??r.origin;return`${Yi(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function tT(){return{localeError:xw()}}var Ow=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${$(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${h(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function rT(){return{localeError:Ow()}}var Iw=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${$(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${h(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function nT(){return{localeError:Iw()}}var Sw=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${$(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function iT(){return{localeError:Sw()}}var Nw=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${$(r.values[0])}`:`Ugyldig valg: forventet en av ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${h(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function oT(){return{localeError:Nw()}}var kw=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${$(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function aT(){return{localeError:kw()}}var ww=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${$(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${h(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${h(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function sT(){return{localeError:ww()}}var Dw=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${$(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function uT(){return{localeError:Dw()}}var Pw=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${$(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function cT(){return{localeError:Pw()}}function lT(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var jw=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${$(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=lT(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),u=lT(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${h(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function dT(){return{localeError:jw()}}var Lw=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${$(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${h(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function pT(){return{localeError:Lw()}}var Aw=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${$(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${h(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function fT(){return{localeError:Aw()}}var Rw=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${$(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${h(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${h(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function mT(){return{localeError:Rw()}}var Cw=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${$(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${h(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function gT(){return{localeError:Cw()}}var Fw=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(r){return e[r]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${$(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${h(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function vT(){return{localeError:Fw()}}var zw=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${$(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${h(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function ts(){return{localeError:zw()}}function hT(){return ts()}var Uw=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${$(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${h(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${h(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function yT(){return{localeError:Uw()}}var Mw=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${$(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${h(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function bT(){return{localeError:Mw()}}var qw=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${$(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${h(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function _T(){return{localeError:qw()}}var Vw=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${$(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${h(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function TT(){return{localeError:Vw()}}var Gw=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${$(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${h(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function $T(){return{localeError:Gw()}}var Kw=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(r){return e[r]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=E(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${$(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??r.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${h(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function ET(){return{localeError:Kw()}}var xT,yp=Symbol("ZodOutput"),bp=Symbol("ZodInput"),rs=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ns(){return new rs}(xT=globalThis).__zod_globalRegistry??(xT.__zod_globalRegistry=ns());var Me=globalThis.__zod_globalRegistry;function _p(e,t){return new e({type:"string",...O(t)})}function Tp(e,t){return new e({type:"string",coerce:!0,...O(t)})}function is(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function Xi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function os(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function as(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function ss(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function us(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function Hi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function cs(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function ls(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function ds(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function ps(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function fs(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function ms(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function gs(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function vs(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function hs(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function $p(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function ys(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function bs(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function _s(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function Ts(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function $s(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function Es(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var Ep={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function xp(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function Op(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function Ip(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function Sp(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function Np(e,t){return new e({type:"number",checks:[],...O(t)})}function kp(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function wp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function Dp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function Pp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function jp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function Lp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function Ap(e,t){return new e({type:"boolean",...O(t)})}function Rp(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function Cp(e,t){return new e({type:"bigint",...O(t)})}function Fp(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function zp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function Up(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function Mp(e,t){return new e({type:"symbol",...O(t)})}function qp(e,t){return new e({type:"undefined",...O(t)})}function Vp(e,t){return new e({type:"null",...O(t)})}function Gp(e){return new e({type:"any"})}function Kp(e){return new e({type:"unknown"})}function Qp(e,t){return new e({type:"never",...O(t)})}function Zp(e,t){return new e({type:"void",...O(t)})}function Bp(e,t){return new e({type:"date",...O(t)})}function Jp(e,t){return new e({type:"date",coerce:!0,...O(t)})}function Yp(e,t){return new e({type:"nan",...O(t)})}function Vt(e,t){return new qa({check:"less_than",...O(t),value:e,inclusive:!1})}function ut(e,t){return new qa({check:"less_than",...O(t),value:e,inclusive:!0})}function Gt(e,t){return new Va({check:"greater_than",...O(t),value:e,inclusive:!1})}function Ye(e,t){return new Va({check:"greater_than",...O(t),value:e,inclusive:!0})}function xs(e){return Gt(0,e)}function Os(e){return Vt(0,e)}function Is(e){return ut(0,e)}function Ss(e){return Ye(0,e)}function Ir(e,t){return new Vl({check:"multiple_of",...O(t),value:e})}function Sr(e,t){return new Ql({check:"max_size",...O(t),maximum:e})}function Kt(e,t){return new Zl({check:"min_size",...O(t),minimum:e})}function Xr(e,t){return new Bl({check:"size_equals",...O(t),size:e})}function Hr(e,t){return new Jl({check:"max_length",...O(t),maximum:e})}function sr(e,t){return new Yl({check:"min_length",...O(t),minimum:e})}function en(e,t){return new Wl({check:"length_equals",...O(t),length:e})}function qn(e,t){return new Xl({check:"string_format",format:"regex",...O(t),pattern:e})}function Vn(e){return new Hl({check:"string_format",format:"lowercase",...O(e)})}function Gn(e){return new ed({check:"string_format",format:"uppercase",...O(e)})}function Kn(e,t){return new td({check:"string_format",format:"includes",...O(t),includes:e})}function Qn(e,t){return new rd({check:"string_format",format:"starts_with",...O(t),prefix:e})}function Zn(e,t){return new nd({check:"string_format",format:"ends_with",...O(t),suffix:e})}function Ns(e,t,n){return new id({check:"property",property:e,schema:t,...O(n)})}function Bn(e,t){return new od({check:"mime_type",mime:e,...O(t)})}function Nt(e){return new ad({check:"overwrite",tx:e})}function Jn(e){return Nt(t=>t.normalize(e))}function Yn(){return Nt(e=>e.trim())}function Wn(){return Nt(e=>e.toLowerCase())}function Xn(){return Nt(e=>e.toUpperCase())}function Hn(){return Nt(e=>il(e))}function Wp(e,t,n){return new e({type:"array",element:t,...O(n)})}function Zw(e,t,n){return new e({type:"union",options:t,...O(n)})}function Bw(e,t,n){return new e({type:"union",options:t,inclusive:!1,...O(n)})}function Jw(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...O(i)})}function Yw(e,t,n){return new e({type:"intersection",left:t,right:n})}function Ww(e,t,n,i){let r=n instanceof K,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...O(o)})}function Xw(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...O(i)})}function Hw(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...O(i)})}function eD(e,t,n){return new e({type:"set",valueType:t,...O(n)})}function tD(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...O(n)})}function rD(e,t,n){return new e({type:"enum",entries:t,...O(n)})}function nD(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(n)})}function Xp(e,t){return new e({type:"file",...O(t)})}function iD(e,t){return new e({type:"transform",transform:t})}function oD(e,t){return new e({type:"optional",innerType:t})}function aD(e,t){return new e({type:"nullable",innerType:t})}function sD(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():al(n)}})}function uD(e,t,n){return new e({type:"nonoptional",innerType:t,...O(n)})}function cD(e,t){return new e({type:"success",innerType:t})}function lD(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function dD(e,t,n){return new e({type:"pipe",in:t,out:n})}function pD(e,t){return new e({type:"readonly",innerType:t})}function fD(e,t,n){return new e({type:"template_literal",parts:t,...O(n)})}function mD(e,t){return new e({type:"lazy",getter:t})}function gD(e,t){return new e({type:"promise",innerType:t})}function Hp(e,t,n){let i=O(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function ef(e,t,n){return new e({type:"custom",check:"custom",fn:t,...O(n)})}function tf(e){let t=OT(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(An(i,n.value,t._zod.def));else{let r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(An(r))}},e(n.value,n)));return t}function OT(e,t){let n=new fe({check:"custom",...O(t)});return n._zod.check=e,n}function rf(e){let t=new fe({check:"describe"});return t._zod.onattach=[n=>{let i=Me.get(n)??{};Me.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function nf(e){let t=new fe({check:"meta"});return t._zod.onattach=[n=>{let i=Me.get(n)??{};Me.add(n,{...i,...e})}],t._zod.check=()=>{},t}function of(e,t){let n=O(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(i),a=new Set(r),s=e.Codec??Ji,u=e.Boolean??Zi,c=e.String??Wr,l=new c({type:"string",error:n.error}),d=new u({type:"boolean",error:n.error}),p=new s({type:"pipe",in:l,out:d,transform:((f,v)=>{let _=f;return n.case!=="sensitive"&&(_=_.toLowerCase()),o.has(_)?!0:a.has(_)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:p,continue:!1}),{})}),reverseTransform:((f,v)=>f===!0?i[0]||"true":r[0]||"false"),error:n.error});return p}function ei(e,t,n,i={}){let r=O(i),o={...O(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Nr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Me,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ue(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let p=a.schema,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,p,l)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),ue(d,t,l),t.seen.get(d).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&We(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function kr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let u=i.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,p=e.external.uri??(v=>v);if(d)return{ref:p(d)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${f}`}}if(a[1]===n)return{ref:"#"};let c=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:c+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:c}=r(a);s.def={...s.schema},c&&(s.defId=c);let l=s.schema;for(let d in l)delete l[d];l.$ref=u};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
253
|
+
|
|
254
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function wr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=e.seen.get(a);if(s.ref===null)return;let u=s.def??s.schema,c={...u},l=s.ref;if(s.ref=null,l){i(l);let p=e.seen.get(l),f=p.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(f)):Object.assign(u,f),Object.assign(u,c),a._zod.parent===l)for(let _ in u)_==="$ref"||_==="allOf"||_ in c||delete u[_];if(f.$ref)for(let _ in u)_==="$ref"||_==="allOf"||_ in p.def&&JSON.stringify(u[_])===JSON.stringify(p.def[_])&&delete u[_]}let d=a._zod.parent;if(d&&d!==l){i(d);let p=e.seen.get(d);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let f in u)f==="$ref"||f==="allOf"||f in p.def&&JSON.stringify(u[f])===JSON.stringify(p.def[f])&&delete u[f]}e.override({zodSchema:a,jsonSchema:u,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())i(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,n.def??n.schema);let o=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:ti(t,"input",e.processors),output:ti(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function We(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return We(i.element,n);if(i.type==="set")return We(i.valueType,n);if(i.type==="lazy")return We(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return We(i.innerType,n);if(i.type==="intersection")return We(i.left,n)||We(i.right,n);if(i.type==="record"||i.type==="map")return We(i.keyType,n)||We(i.valueType,n);if(i.type==="pipe")return We(i.in,n)||We(i.out,n);if(i.type==="object"){for(let r in i.shape)if(We(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(We(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(We(r,n))return!0;return!!(i.rest&&We(i.rest,n))}return!1}var af=(e,t={})=>n=>{let i=Nr({...n,processors:t});return ue(e,i),kr(i,e),wr(i,e)},ti=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=Nr({...r??{},target:o,io:t,processors:n});return ue(e,a),kr(a,e),wr(a,e)};var vD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sf=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=vD[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),c&&(r.contentEncoding=c),u&&u.size>0){let l=[...u];l.length===1?r.pattern=l[0].source:l.length>1&&(r.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},uf=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=l,r.exclusiveMinimum=!0):r.exclusiveMinimum=l),typeof o=="number"&&(r.minimum=o,typeof l=="number"&&t.target!=="draft-04"&&(l>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof a=="number"&&(r.maximum=a,typeof c=="number"&&t.target!=="draft-04"&&(c<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof u=="number"&&(r.multipleOf=u)},cf=(e,t,n,i)=>{n.type="boolean"},lf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},df=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},pf=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},ff=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},mf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},gf=(e,t,n,i)=>{n.not={}},vf=(e,t,n,i)=>{},hf=(e,t,n,i)=>{},yf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},bf=(e,t,n,i)=>{let r=e._zod.def,o=Ri(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},_f=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},Tf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},$f=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},Ef=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),u?u.length===1?(o.contentMediaType=u[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(r,o)},xf=(e,t,n,i)=>{n.type="boolean"},Of=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},If=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Sf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Nf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},kf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},wf=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=ue(o.element,t,{...i,path:[...i.path,"items"]})},Df=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let c in a)r.properties[c]=ue(a[c],t,{...i,path:[...i.path,"properties",c]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(c=>{let l=o.shape[c]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));u.size>0&&(r.required=Array.from(u)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=ue(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},ws=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,u)=>ue(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?n.oneOf=a:n.anyOf=a},Pf=(e,t,n,i)=>{let r=e._zod.def,o=ue(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=ue(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=u},jf=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((p,f)=>ue(p,t,{...i,path:[...i.path,a,f]})),c=o.rest?ue(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=u,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:u},c&&r.items.anyOf.push(c),r.minItems=u.length,c||(r.maxItems=u.length)):(r.items=u,c&&(r.additionalItems=c));let{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(r.minItems=l),typeof d=="number"&&(r.maxItems=d)},Lf=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,u=a._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let l=ue(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of u)r.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=ue(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=ue(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let c=a._zod.values;if(c){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(r.required=l)}},Af=(e,t,n,i)=>{let r=e._zod.def,o=ue(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Rf=(e,t,n,i)=>{let r=e._zod.def;ue(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Cf=(e,t,n,i)=>{let r=e._zod.def;ue(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Ff=(e,t,n,i)=>{let r=e._zod.def;ue(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},zf=(e,t,n,i)=>{let r=e._zod.def;ue(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Uf=(e,t,n,i)=>{let r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;ue(o,t,i);let a=t.seen.get(e);a.ref=o},Mf=(e,t,n,i)=>{let r=e._zod.def;ue(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},qf=(e,t,n,i)=>{let r=e._zod.def;ue(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Ds=(e,t,n,i)=>{let r=e._zod.def;ue(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Vf=(e,t,n,i)=>{let r=e._zod.innerType;ue(r,t,i);let o=t.seen.get(e);o.ref=r},ks={string:sf,number:uf,boolean:cf,bigint:lf,symbol:df,null:pf,undefined:ff,void:mf,never:gf,any:vf,unknown:hf,date:yf,enum:bf,literal:_f,nan:Tf,template_literal:$f,file:Ef,success:xf,custom:Of,function:If,transform:Sf,map:Nf,set:kf,array:wf,object:Df,union:ws,intersection:Pf,tuple:jf,record:Lf,nullable:Af,nonoptional:Rf,default:Cf,prefault:Ff,catch:zf,pipe:Uf,readonly:Mf,promise:qf,optional:Ds,lazy:Vf};function Ps(e,t){if("_idmap"in e){let i=e,r=Nr({...t,processors:ks}),o={};for(let u of i._idmap.entries()){let[c,l]=u;ue(l,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let u of i._idmap.entries()){let[c,l]=u;kr(r,l),a[c]=wr(r,l)}if(Object.keys(o).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}let n=Nr({...t,processors:ks});return ue(e,n),kr(n,e),wr(n,e)}var js=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Nr({processors:ks,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return ue(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),kr(this.ctx,t);let i=wr(this.ctx,t),{"~standard":r,...o}=i;return o}};var IT={};var eo={};ir(eo,{ZodAny:()=>fm,ZodArray:()=>hm,ZodBase64:()=>eu,ZodBase64URL:()=>tu,ZodBigInt:()=>ui,ZodBigIntFormat:()=>iu,ZodBoolean:()=>si,ZodCIDRv4:()=>Xs,ZodCIDRv6:()=>Hs,ZodCUID:()=>Ks,ZodCUID2:()=>Qs,ZodCatch:()=>zm,ZodCodec:()=>pu,ZodCustom:()=>po,ZodCustomStringFormat:()=>oi,ZodDate:()=>ao,ZodDefault:()=>jm,ZodDiscriminatedUnion:()=>bm,ZodE164:()=>ru,ZodEmail:()=>qs,ZodEmoji:()=>Vs,ZodEnum:()=>ni,ZodExactOptional:()=>wm,ZodFile:()=>Nm,ZodFunction:()=>Bm,ZodGUID:()=>to,ZodIPv4:()=>Ys,ZodIPv6:()=>Ws,ZodIntersection:()=>_m,ZodJWT:()=>nu,ZodKSUID:()=>Js,ZodLazy:()=>Km,ZodLiteral:()=>Sm,ZodMAC:()=>am,ZodMap:()=>Om,ZodNaN:()=>Mm,ZodNanoID:()=>Gs,ZodNever:()=>gm,ZodNonOptional:()=>lu,ZodNull:()=>dm,ZodNullable:()=>Pm,ZodNumber:()=>ai,ZodNumberFormat:()=>rn,ZodObject:()=>uo,ZodOptional:()=>cu,ZodPipe:()=>du,ZodPrefault:()=>Am,ZodPromise:()=>Zm,ZodReadonly:()=>qm,ZodRecord:()=>lo,ZodSet:()=>Im,ZodString:()=>ii,ZodStringFormat:()=>de,ZodSuccess:()=>Fm,ZodSymbol:()=>cm,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>km,ZodTuple:()=>$m,ZodType:()=>B,ZodULID:()=>Zs,ZodURL:()=>oo,ZodUUID:()=>Qt,ZodUndefined:()=>lm,ZodUnion:()=>co,ZodUnknown:()=>mm,ZodVoid:()=>vm,ZodXID:()=>Bs,ZodXor:()=>ym,_ZodString:()=>Ms,_default:()=>Lm,_function:()=>j0,any:()=>d0,array:()=>so,base64:()=>BT,base64url:()=>JT,bigint:()=>a0,boolean:()=>um,catch:()=>Um,check:()=>L0,cidrv4:()=>QT,cidrv6:()=>ZT,codec:()=>w0,cuid:()=>FT,cuid2:()=>zT,custom:()=>A0,date:()=>f0,describe:()=>R0,discriminatedUnion:()=>b0,e164:()=>YT,email:()=>NT,emoji:()=>RT,enum:()=>su,exactOptional:()=>Dm,file:()=>I0,float32:()=>r0,float64:()=>n0,function:()=>j0,guid:()=>kT,hash:()=>t0,hex:()=>e0,hostname:()=>HT,httpUrl:()=>AT,instanceof:()=>F0,int:()=>Us,int32:()=>i0,int64:()=>s0,intersection:()=>Tm,ipv4:()=>VT,ipv6:()=>KT,json:()=>U0,jwt:()=>WT,keyof:()=>m0,ksuid:()=>qT,lazy:()=>Qm,literal:()=>O0,looseObject:()=>h0,looseRecord:()=>T0,mac:()=>GT,map:()=>$0,meta:()=>C0,nan:()=>k0,nanoid:()=>CT,nativeEnum:()=>x0,never:()=>ou,nonoptional:()=>Cm,null:()=>pm,nullable:()=>no,nullish:()=>S0,number:()=>sm,object:()=>g0,optional:()=>ro,partialRecord:()=>_0,pipe:()=>io,prefault:()=>Rm,preprocess:()=>M0,promise:()=>P0,readonly:()=>Vm,record:()=>xm,refine:()=>Jm,set:()=>E0,strictObject:()=>v0,string:()=>zs,stringFormat:()=>XT,stringbool:()=>z0,success:()=>N0,superRefine:()=>Ym,symbol:()=>c0,templateLiteral:()=>D0,transform:()=>uu,tuple:()=>Em,uint32:()=>o0,uint64:()=>u0,ulid:()=>UT,undefined:()=>l0,union:()=>au,unknown:()=>tn,url:()=>LT,uuid:()=>wT,uuidv4:()=>DT,uuidv6:()=>PT,uuidv7:()=>jT,void:()=>p0,xid:()=>MT,xor:()=>y0});var Ls={};ir(Ls,{endsWith:()=>Zn,gt:()=>Gt,gte:()=>Ye,includes:()=>Kn,length:()=>en,lowercase:()=>Vn,lt:()=>Vt,lte:()=>ut,maxLength:()=>Hr,maxSize:()=>Sr,mime:()=>Bn,minLength:()=>sr,minSize:()=>Kt,multipleOf:()=>Ir,negative:()=>Os,nonnegative:()=>Ss,nonpositive:()=>Is,normalize:()=>Jn,overwrite:()=>Nt,positive:()=>xs,property:()=>Ns,regex:()=>qn,size:()=>Xr,slugify:()=>Hn,startsWith:()=>Qn,toLowerCase:()=>Wn,toUpperCase:()=>Xn,trim:()=>Yn,uppercase:()=>Gn});var ri={};ir(ri,{ZodISODate:()=>Rs,ZodISODateTime:()=>As,ZodISODuration:()=>Fs,ZodISOTime:()=>Cs,date:()=>Kf,datetime:()=>Gf,duration:()=>Zf,time:()=>Qf});var As=g("ZodISODateTime",(e,t)=>{_d.init(e,t),de.init(e,t)});function Gf(e){return xp(As,e)}var Rs=g("ZodISODate",(e,t)=>{Td.init(e,t),de.init(e,t)});function Kf(e){return Op(Rs,e)}var Cs=g("ZodISOTime",(e,t)=>{$d.init(e,t),de.init(e,t)});function Qf(e){return Ip(Cs,e)}var Fs=g("ZodISODuration",(e,t)=>{Ed.init(e,t),de.init(e,t)});function Zf(e){return Sp(Fs,e)}var ST=(e,t)=>{Mi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Vi(e,n)},flatten:{value:n=>qi(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,jn,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,jn,2)}},isEmpty:{get(){return e.issues.length===0}}})},yD=g("ZodError",ST),nt=g("ZodError",ST,{Parent:Error});var Bf=Rn(nt),Jf=Cn(nt),Yf=Fn(nt),Wf=zn(nt),Xf=Pa(nt),Hf=ja(nt),em=La(nt),tm=Aa(nt),rm=Ra(nt),nm=Ca(nt),im=Fa(nt),om=za(nt);var B=g("ZodType",(e,t)=>(K.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ti(e,"input"),output:ti(e,"output")}}),e.toJSONSchema=af(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(x.mergeDefs(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>Je(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>Bf(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Yf(e,n,i),e.parseAsync=async(n,i)=>Jf(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Wf(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Xf(e,n,i),e.decode=(n,i)=>Hf(e,n,i),e.encodeAsync=async(n,i)=>em(e,n,i),e.decodeAsync=async(n,i)=>tm(e,n,i),e.safeEncode=(n,i)=>rm(e,n,i),e.safeDecode=(n,i)=>nm(e,n,i),e.safeEncodeAsync=async(n,i)=>im(e,n,i),e.safeDecodeAsync=async(n,i)=>om(e,n,i),e.refine=(n,i)=>e.check(Jm(n,i)),e.superRefine=n=>e.check(Ym(n)),e.overwrite=n=>e.check(Nt(n)),e.optional=()=>ro(e),e.exactOptional=()=>Dm(e),e.nullable=()=>no(e),e.nullish=()=>ro(no(e)),e.nonoptional=n=>Cm(e,n),e.array=()=>so(e),e.or=n=>au([e,n]),e.and=n=>Tm(e,n),e.transform=n=>io(e,uu(n)),e.default=n=>Lm(e,n),e.prefault=n=>Rm(e,n),e.catch=n=>Um(e,n),e.pipe=n=>io(e,n),e.readonly=()=>Vm(e),e.describe=n=>{let i=e.clone();return Me.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Me.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Me.get(e);let i=e.clone();return Me.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ms=g("_ZodString",(e,t)=>{Wr.init(e,t),B.init(e,t),e._zod.processJSONSchema=(i,r,o)=>sf(e,i,r,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(qn(...i)),e.includes=(...i)=>e.check(Kn(...i)),e.startsWith=(...i)=>e.check(Qn(...i)),e.endsWith=(...i)=>e.check(Zn(...i)),e.min=(...i)=>e.check(sr(...i)),e.max=(...i)=>e.check(Hr(...i)),e.length=(...i)=>e.check(en(...i)),e.nonempty=(...i)=>e.check(sr(1,...i)),e.lowercase=i=>e.check(Vn(i)),e.uppercase=i=>e.check(Gn(i)),e.trim=()=>e.check(Yn()),e.normalize=(...i)=>e.check(Jn(...i)),e.toLowerCase=()=>e.check(Wn()),e.toUpperCase=()=>e.check(Xn()),e.slugify=()=>e.check(Hn())}),ii=g("ZodString",(e,t)=>{Wr.init(e,t),Ms.init(e,t),e.email=n=>e.check(is(qs,n)),e.url=n=>e.check(Hi(oo,n)),e.jwt=n=>e.check(Es(nu,n)),e.emoji=n=>e.check(cs(Vs,n)),e.guid=n=>e.check(Xi(to,n)),e.uuid=n=>e.check(os(Qt,n)),e.uuidv4=n=>e.check(as(Qt,n)),e.uuidv6=n=>e.check(ss(Qt,n)),e.uuidv7=n=>e.check(us(Qt,n)),e.nanoid=n=>e.check(ls(Gs,n)),e.guid=n=>e.check(Xi(to,n)),e.cuid=n=>e.check(ds(Ks,n)),e.cuid2=n=>e.check(ps(Qs,n)),e.ulid=n=>e.check(fs(Zs,n)),e.base64=n=>e.check(_s(eu,n)),e.base64url=n=>e.check(Ts(tu,n)),e.xid=n=>e.check(ms(Bs,n)),e.ksuid=n=>e.check(gs(Js,n)),e.ipv4=n=>e.check(vs(Ys,n)),e.ipv6=n=>e.check(hs(Ws,n)),e.cidrv4=n=>e.check(ys(Xs,n)),e.cidrv6=n=>e.check(bs(Hs,n)),e.e164=n=>e.check($s(ru,n)),e.datetime=n=>e.check(Gf(n)),e.date=n=>e.check(Kf(n)),e.time=n=>e.check(Qf(n)),e.duration=n=>e.check(Zf(n))});function zs(e){return _p(ii,e)}var de=g("ZodStringFormat",(e,t)=>{le.init(e,t),Ms.init(e,t)}),qs=g("ZodEmail",(e,t)=>{dd.init(e,t),de.init(e,t)});function NT(e){return is(qs,e)}var to=g("ZodGUID",(e,t)=>{cd.init(e,t),de.init(e,t)});function kT(e){return Xi(to,e)}var Qt=g("ZodUUID",(e,t)=>{ld.init(e,t),de.init(e,t)});function wT(e){return os(Qt,e)}function DT(e){return as(Qt,e)}function PT(e){return ss(Qt,e)}function jT(e){return us(Qt,e)}var oo=g("ZodURL",(e,t)=>{pd.init(e,t),de.init(e,t)});function LT(e){return Hi(oo,e)}function AT(e){return Hi(oo,{protocol:/^https?$/,hostname:gt.domain,...x.normalizeParams(e)})}var Vs=g("ZodEmoji",(e,t)=>{fd.init(e,t),de.init(e,t)});function RT(e){return cs(Vs,e)}var Gs=g("ZodNanoID",(e,t)=>{md.init(e,t),de.init(e,t)});function CT(e){return ls(Gs,e)}var Ks=g("ZodCUID",(e,t)=>{gd.init(e,t),de.init(e,t)});function FT(e){return ds(Ks,e)}var Qs=g("ZodCUID2",(e,t)=>{vd.init(e,t),de.init(e,t)});function zT(e){return ps(Qs,e)}var Zs=g("ZodULID",(e,t)=>{hd.init(e,t),de.init(e,t)});function UT(e){return fs(Zs,e)}var Bs=g("ZodXID",(e,t)=>{yd.init(e,t),de.init(e,t)});function MT(e){return ms(Bs,e)}var Js=g("ZodKSUID",(e,t)=>{bd.init(e,t),de.init(e,t)});function qT(e){return gs(Js,e)}var Ys=g("ZodIPv4",(e,t)=>{xd.init(e,t),de.init(e,t)});function VT(e){return vs(Ys,e)}var am=g("ZodMAC",(e,t)=>{Id.init(e,t),de.init(e,t)});function GT(e){return $p(am,e)}var Ws=g("ZodIPv6",(e,t)=>{Od.init(e,t),de.init(e,t)});function KT(e){return hs(Ws,e)}var Xs=g("ZodCIDRv4",(e,t)=>{Sd.init(e,t),de.init(e,t)});function QT(e){return ys(Xs,e)}var Hs=g("ZodCIDRv6",(e,t)=>{Nd.init(e,t),de.init(e,t)});function ZT(e){return bs(Hs,e)}var eu=g("ZodBase64",(e,t)=>{wd.init(e,t),de.init(e,t)});function BT(e){return _s(eu,e)}var tu=g("ZodBase64URL",(e,t)=>{Dd.init(e,t),de.init(e,t)});function JT(e){return Ts(tu,e)}var ru=g("ZodE164",(e,t)=>{Pd.init(e,t),de.init(e,t)});function YT(e){return $s(ru,e)}var nu=g("ZodJWT",(e,t)=>{jd.init(e,t),de.init(e,t)});function WT(e){return Es(nu,e)}var oi=g("ZodCustomStringFormat",(e,t)=>{Ld.init(e,t),de.init(e,t)});function XT(e,t,n={}){return ei(oi,e,t,n)}function HT(e){return ei(oi,"hostname",gt.hostname,e)}function e0(e){return ei(oi,"hex",gt.hex,e)}function t0(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=gt[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return ei(oi,i,r,t)}var ai=g("ZodNumber",(e,t)=>{Ja.init(e,t),B.init(e,t),e._zod.processJSONSchema=(i,r,o)=>uf(e,i,r,o),e.gt=(i,r)=>e.check(Gt(i,r)),e.gte=(i,r)=>e.check(Ye(i,r)),e.min=(i,r)=>e.check(Ye(i,r)),e.lt=(i,r)=>e.check(Vt(i,r)),e.lte=(i,r)=>e.check(ut(i,r)),e.max=(i,r)=>e.check(ut(i,r)),e.int=i=>e.check(Us(i)),e.safe=i=>e.check(Us(i)),e.positive=i=>e.check(Gt(0,i)),e.nonnegative=i=>e.check(Ye(0,i)),e.negative=i=>e.check(Vt(0,i)),e.nonpositive=i=>e.check(ut(0,i)),e.multipleOf=(i,r)=>e.check(Ir(i,r)),e.step=(i,r)=>e.check(Ir(i,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function sm(e){return Np(ai,e)}var rn=g("ZodNumberFormat",(e,t)=>{Ad.init(e,t),ai.init(e,t)});function Us(e){return wp(rn,e)}function r0(e){return Dp(rn,e)}function n0(e){return Pp(rn,e)}function i0(e){return jp(rn,e)}function o0(e){return Lp(rn,e)}var si=g("ZodBoolean",(e,t)=>{Zi.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cf(e,n,i,r)});function um(e){return Ap(si,e)}var ui=g("ZodBigInt",(e,t)=>{Ya.init(e,t),B.init(e,t),e._zod.processJSONSchema=(i,r,o)=>lf(e,i,r,o),e.gte=(i,r)=>e.check(Ye(i,r)),e.min=(i,r)=>e.check(Ye(i,r)),e.gt=(i,r)=>e.check(Gt(i,r)),e.gte=(i,r)=>e.check(Ye(i,r)),e.min=(i,r)=>e.check(Ye(i,r)),e.lt=(i,r)=>e.check(Vt(i,r)),e.lte=(i,r)=>e.check(ut(i,r)),e.max=(i,r)=>e.check(ut(i,r)),e.positive=i=>e.check(Gt(BigInt(0),i)),e.negative=i=>e.check(Vt(BigInt(0),i)),e.nonpositive=i=>e.check(ut(BigInt(0),i)),e.nonnegative=i=>e.check(Ye(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Ir(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function a0(e){return Cp(ui,e)}var iu=g("ZodBigIntFormat",(e,t)=>{Rd.init(e,t),ui.init(e,t)});function s0(e){return zp(iu,e)}function u0(e){return Up(iu,e)}var cm=g("ZodSymbol",(e,t)=>{Cd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>df(e,n,i,r)});function c0(e){return Mp(cm,e)}var lm=g("ZodUndefined",(e,t)=>{Fd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ff(e,n,i,r)});function l0(e){return qp(lm,e)}var dm=g("ZodNull",(e,t)=>{zd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pf(e,n,i,r)});function pm(e){return Vp(dm,e)}var fm=g("ZodAny",(e,t)=>{Ud.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vf(e,n,i,r)});function d0(){return Gp(fm)}var mm=g("ZodUnknown",(e,t)=>{Md.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hf(e,n,i,r)});function tn(){return Kp(mm)}var gm=g("ZodNever",(e,t)=>{qd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gf(e,n,i,r)});function ou(e){return Qp(gm,e)}var vm=g("ZodVoid",(e,t)=>{Vd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mf(e,n,i,r)});function p0(e){return Zp(vm,e)}var ao=g("ZodDate",(e,t)=>{Gd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(i,r,o)=>yf(e,i,r,o),e.min=(i,r)=>e.check(Ye(i,r)),e.max=(i,r)=>e.check(ut(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function f0(e){return Bp(ao,e)}var hm=g("ZodArray",(e,t)=>{Kd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wf(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(sr(n,i)),e.nonempty=n=>e.check(sr(1,n)),e.max=(n,i)=>e.check(Hr(n,i)),e.length=(n,i)=>e.check(en(n,i)),e.unwrap=()=>e.element});function so(e,t){return Wp(hm,e,t)}function m0(e){let t=e._zod.def.shape;return su(Object.keys(t))}var uo=g("ZodObject",(e,t)=>{Qd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Df(e,n,i,r),x.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>su(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:tn()}),e.loose=()=>e.clone({...e._zod.def,catchall:tn()}),e.strict=()=>e.clone({...e._zod.def,catchall:ou()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>x.extend(e,n),e.safeExtend=n=>x.safeExtend(e,n),e.merge=n=>x.merge(e,n),e.pick=n=>x.pick(e,n),e.omit=n=>x.omit(e,n),e.partial=(...n)=>x.partial(cu,e,n[0]),e.required=(...n)=>x.required(lu,e,n[0])});function g0(e,t){let n={type:"object",shape:e??{},...x.normalizeParams(t)};return new uo(n)}function v0(e,t){return new uo({type:"object",shape:e,catchall:ou(),...x.normalizeParams(t)})}function h0(e,t){return new uo({type:"object",shape:e,catchall:tn(),...x.normalizeParams(t)})}var co=g("ZodUnion",(e,t)=>{Bi.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ws(e,n,i,r),e.options=t.options});function au(e,t){return new co({type:"union",options:e,...x.normalizeParams(t)})}var ym=g("ZodXor",(e,t)=>{co.init(e,t),Zd.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ws(e,n,i,r),e.options=t.options});function y0(e,t){return new ym({type:"union",options:e,inclusive:!1,...x.normalizeParams(t)})}var bm=g("ZodDiscriminatedUnion",(e,t)=>{co.init(e,t),Bd.init(e,t)});function b0(e,t,n){return new bm({type:"union",options:t,discriminator:e,...x.normalizeParams(n)})}var _m=g("ZodIntersection",(e,t)=>{Jd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Pf(e,n,i,r)});function Tm(e,t){return new _m({type:"intersection",left:e,right:t})}var $m=g("ZodTuple",(e,t)=>{Wa.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jf(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Em(e,t,n){let i=t instanceof K,r=i?n:t,o=i?t:null;return new $m({type:"tuple",items:e,rest:o,...x.normalizeParams(r)})}var lo=g("ZodRecord",(e,t)=>{Yd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lf(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function xm(e,t,n){return new lo({type:"record",keyType:e,valueType:t,...x.normalizeParams(n)})}function _0(e,t,n){let i=Je(e);return i._zod.values=void 0,new lo({type:"record",keyType:i,valueType:t,...x.normalizeParams(n)})}function T0(e,t,n){return new lo({type:"record",keyType:e,valueType:t,mode:"loose",...x.normalizeParams(n)})}var Om=g("ZodMap",(e,t)=>{Wd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Nf(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Kt(...n)),e.nonempty=n=>e.check(Kt(1,n)),e.max=(...n)=>e.check(Sr(...n)),e.size=(...n)=>e.check(Xr(...n))});function $0(e,t,n){return new Om({type:"map",keyType:e,valueType:t,...x.normalizeParams(n)})}var Im=g("ZodSet",(e,t)=>{Xd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kf(e,n,i,r),e.min=(...n)=>e.check(Kt(...n)),e.nonempty=n=>e.check(Kt(1,n)),e.max=(...n)=>e.check(Sr(...n)),e.size=(...n)=>e.check(Xr(...n))});function E0(e,t){return new Im({type:"set",valueType:e,...x.normalizeParams(t)})}var ni=g("ZodEnum",(e,t)=>{Hd.init(e,t),B.init(e,t),e._zod.processJSONSchema=(i,r,o)=>bf(e,i,r,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...t,checks:[],...x.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...t,checks:[],...x.normalizeParams(r),entries:o})}});function su(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ni({type:"enum",entries:n,...x.normalizeParams(t)})}function x0(e,t){return new ni({type:"enum",entries:e,...x.normalizeParams(t)})}var Sm=g("ZodLiteral",(e,t)=>{ep.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_f(e,n,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function O0(e,t){return new Sm({type:"literal",values:Array.isArray(e)?e:[e],...x.normalizeParams(t)})}var Nm=g("ZodFile",(e,t)=>{tp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ef(e,n,i,r),e.min=(n,i)=>e.check(Kt(n,i)),e.max=(n,i)=>e.check(Sr(n,i)),e.mime=(n,i)=>e.check(Bn(Array.isArray(n)?n:[n],i))});function I0(e){return Xp(Nm,e)}var km=g("ZodTransform",(e,t)=>{rp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sf(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Tr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(x.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(x.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function uu(e){return new km({type:"transform",transform:e})}var cu=g("ZodOptional",(e,t)=>{Xa.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ds(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function ro(e){return new cu({type:"optional",innerType:e})}var wm=g("ZodExactOptional",(e,t)=>{np.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ds(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Dm(e){return new wm({type:"optional",innerType:e})}var Pm=g("ZodNullable",(e,t)=>{ip.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Af(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function no(e){return new Pm({type:"nullable",innerType:e})}function S0(e){return ro(no(e))}var jm=g("ZodDefault",(e,t)=>{op.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Cf(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Lm(e,t){return new jm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():x.shallowClone(t)}})}var Am=g("ZodPrefault",(e,t)=>{ap.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ff(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Rm(e,t){return new Am({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():x.shallowClone(t)}})}var lu=g("ZodNonOptional",(e,t)=>{sp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rf(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Cm(e,t){return new lu({type:"nonoptional",innerType:e,...x.normalizeParams(t)})}var Fm=g("ZodSuccess",(e,t)=>{up.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xf(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function N0(e){return new Fm({type:"success",innerType:e})}var zm=g("ZodCatch",(e,t)=>{cp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zf(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Um(e,t){return new zm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Mm=g("ZodNaN",(e,t)=>{lp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Tf(e,n,i,r)});function k0(e){return Yp(Mm,e)}var du=g("ZodPipe",(e,t)=>{dp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Uf(e,n,i,r),e.in=t.in,e.out=t.out});function io(e,t){return new du({type:"pipe",in:e,out:t})}var pu=g("ZodCodec",(e,t)=>{du.init(e,t),Ji.init(e,t)});function w0(e,t,n){return new pu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var qm=g("ZodReadonly",(e,t)=>{pp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mf(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Vm(e){return new qm({type:"readonly",innerType:e})}var Gm=g("ZodTemplateLiteral",(e,t)=>{fp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$f(e,n,i,r)});function D0(e,t){return new Gm({type:"template_literal",parts:e,...x.normalizeParams(t)})}var Km=g("ZodLazy",(e,t)=>{vp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vf(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function Qm(e){return new Km({type:"lazy",getter:e})}var Zm=g("ZodPromise",(e,t)=>{gp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qf(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function P0(e){return new Zm({type:"promise",innerType:e})}var Bm=g("ZodFunction",(e,t)=>{mp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>If(e,n,i,r)});function j0(e){return new Bm({type:"function",input:Array.isArray(e?.input)?Em(e?.input):e?.input??so(tn()),output:e?.output??tn()})}var po=g("ZodCustom",(e,t)=>{hp.init(e,t),B.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Of(e,n,i,r)});function L0(e){let t=new fe({check:"custom"});return t._zod.check=e,t}function A0(e,t){return Hp(po,e??(()=>!0),t)}function Jm(e,t={}){return ef(po,e,t)}function Ym(e){return tf(e)}var R0=rf,C0=nf;function F0(e,t={}){let n=new po({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...x.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}var z0=(...e)=>of({Codec:pu,Boolean:si,String:ii},...e);function U0(e){let t=Qm(()=>au([zs(e),sm(),um(),pm(),so(t),xm(zs(),t)]));return t}function M0(e,t){return io(uu(e),t)}var _D={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 TD(e){Te({customError:e})}function $D(){return Te().customError}var Wm;Wm||(Wm={});var w={...eo,...Ls,iso:ri},ED=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function xD(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function OD(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function q0(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return w.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return w.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=OD(r,t),a=Ve(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return w.null();if(r.length===0)return w.never();if(r.length===1)return w.literal(r[0]);if(r.every(a=>typeof a=="string"))return w.enum(r);let o=r.map(a=>w.literal(a));return o.length<2?o[0]:w.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return w.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return q0(a,t)});return r.length===0?w.never():r.length===1?r[0]:w.union(r)}if(!n)return w.any();let i;switch(n){case"string":{let r=w.string();if(e.format){let o=e.format;o==="email"?r=r.check(w.email()):o==="uri"||o==="uri-reference"?r=r.check(w.url()):o==="uuid"||o==="guid"?r=r.check(w.uuid()):o==="date-time"?r=r.check(w.iso.datetime()):o==="date"?r=r.check(w.iso.date()):o==="time"?r=r.check(w.iso.time()):o==="duration"?r=r.check(w.iso.duration()):o==="ipv4"?r=r.check(w.ipv4()):o==="ipv6"?r=r.check(w.ipv6()):o==="mac"?r=r.check(w.mac()):o==="cidr"?r=r.check(w.cidrv4()):o==="cidr-v6"?r=r.check(w.cidrv6()):o==="base64"?r=r.check(w.base64()):o==="base64url"?r=r.check(w.base64url()):o==="e164"?r=r.check(w.e164()):o==="jwt"?r=r.check(w.jwt()):o==="emoji"?r=r.check(w.emoji()):o==="nanoid"?r=r.check(w.nanoid()):o==="cuid"?r=r.check(w.cuid()):o==="cuid2"?r=r.check(w.cuid2()):o==="ulid"?r=r.check(w.ulid()):o==="xid"?r=r.check(w.xid()):o==="ksuid"&&(r=r.check(w.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?w.number().int():w.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=w.boolean();break}case"null":{i=w.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[u,c]of Object.entries(o)){let l=Ve(c,t);r[u]=a.has(u)?l:l.optional()}if(e.propertyNames){let u=Ve(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?Ve(e.additionalProperties,t):w.any();if(Object.keys(r).length===0){i=w.record(u,c);break}let l=w.object(r).passthrough(),d=w.looseRecord(u,c);i=w.intersection(l,d);break}if(e.patternProperties){let u=e.patternProperties,c=Object.keys(u),l=[];for(let p of c){let f=Ve(u[p],t),v=w.string().regex(new RegExp(p));l.push(w.looseRecord(v,f))}let d=[];if(Object.keys(r).length>0&&d.push(w.object(r).passthrough()),d.push(...l),d.length===0)i=w.object({}).passthrough();else if(d.length===1)i=d[0];else{let p=w.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)p=w.intersection(p,d[f]);i=p}break}let s=w.object(r);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(Ve(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(u=>Ve(u,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?Ve(o,t):void 0;s?i=w.tuple(a).rest(s):i=w.tuple(a),typeof e.minItems=="number"&&(i=i.check(w.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(w.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(u=>Ve(u,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Ve(e.additionalItems,t):void 0;s?i=w.tuple(a).rest(s):i=w.tuple(a),typeof e.minItems=="number"&&(i=i.check(w.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(w.maxLength(e.maxItems)))}else if(o!==void 0){let a=Ve(o,t),s=w.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=w.array(w.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function Ve(e,t){if(typeof e=="boolean")return e?w.any():w.never();let n=q0(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>Ve(c,t)),u=w.union(s);n=i?w.intersection(n,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>Ve(c,t)),u=w.xor(s);n=i?w.intersection(n,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:w.any();else{let s=i?n:Ve(e.allOf[0],t),u=i?0:1;for(let c=u;c<e.allOf.length;c++)s=w.intersection(s,Ve(e.allOf[c],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=w.nullable(n)),e.readOnly===!0&&(n=w.readonly(n));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);for(let s of Object.keys(e))ED.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function V0(e,t){if(typeof e=="boolean")return e?w.any():w.never();let n=xD(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Me};return Ve(e,r)}var Xm={};ir(Xm,{bigint:()=>kD,boolean:()=>ND,date:()=>wD,number:()=>SD,string:()=>ID});function ID(e){return Tp(ii,e)}function SD(e){return kp(ai,e)}function ND(e){return Rp(si,e)}function kD(e){return Fp(ui,e)}function wD(e){return Jp(ao,e)}Te(Ha());var Hm=ye.object({maxAttempts:ye.number().describe("Maximum retry attempts before giving up"),baseDelay:ye.number().describe("Initial delay in ms between retries"),maxDelay:ye.number().describe("Maximum delay in ms between retries"),exponentialBackoff:ye.boolean().describe("Use exponential backoff for retry delays"),retryableStatusCodes:ye.array(ye.number()).describe("HTTP status codes that trigger retries")}),K0=ye.object({concurrency:ye.number().describe("Number of concurrent requests across all entities"),entityConcurrency:ye.number().describe("Number of concurrent rows processed per entity"),preserveRowOrder:ye.boolean().describe("Process rows in order (forces concurrency=1 when true)")}),DD=ye.object({concurrency:ye.number().optional().describe("Per-entity concurrency override"),preserveRowOrder:ye.boolean().optional().describe("Per-entity row order override"),retry:Hm.partial().optional().describe("Per-entity retry config override")}),G0=ye.object({retry:Hm,parallelProcessing:K0,entityConfig:ye.record(ye.string(),DD).describe("Per-entity configuration overrides"),entityDependencies:ye.record(ye.string(),ye.array(ye.string())).describe("Entity processing order dependencies")}),nn={maxAttempts:3,baseDelay:1e3,maxDelay:3e4,exponentialBackoff:!0,retryableStatusCodes:[408,429,500,502,503,504]},fo={concurrency:1,entityConcurrency:1,preserveRowOrder:!0},Q0={schema:{parallelProcessing:K0,retry:Hm,entityConfig:G0.shape.entityConfig,entityDependencies:G0.shape.entityDependencies},defaults:{parallelProcessing:fo,retry:nn},examples:{entityConfig:{users:{concurrency:5,preserveRowOrder:!1,retry:{maxAttempts:5}}},entityDependencies:{orders:["users","products"]}}};var B0={retry:nn,parallelProcessing:fo,entityConfig:{},entityDependencies:{}};function J0(e,t=Be){let n=PD.join(e,"config.yaml");try{if(!Z0.existsSync(n))return t.info("No config.yaml found, using default sequential processing"),B0;let i=Z0.readFileSync(n,"utf8"),r=Xc(i);return jD(r)}catch(i){let r=i instanceof Error?i.message:String(i);return t.warn(`Warning: Failed to parse config.yaml: ${r}. Using defaults.`),B0}}function jD(e){return{retry:{...nn,...e.retry},parallelProcessing:{...fo,...e.parallelProcessing},entityConfig:e.entityConfig||{},entityDependencies:e.entityDependencies||{}}}function Y0(e,t,n=Be){let i=t.entityConfig[e]||{},r={...t.parallelProcessing,...i};return r.preserveRowOrder&&r.concurrency>1&&(n.warn(`Entity '${e}': preserveRowOrder=true forces concurrency=1 (was ${r.concurrency})`),r.concurrency=1),r}function W0(e,t){let n=t.entityConfig[e]?.retry||{};return{...t.retry,...n}}var on=class{constructor(t,n,i,r=Be){this.client=new LD(t,{headers:n||{}}),this.metrics=i,this.logger=r}async executeMutation(t,n,i,r){let o=i||nn,a,s=Date.now();for(let c=0;c<o.maxAttempts;c++){if(r?.aborted)throw new Error(`Request aborted: ${r.reason||"cancelled"}`);let l=Date.now();try{let d=await this.client.request(t,n);if(this.metrics){let v=Date.now()-l;this.metrics.recordRequestDuration(v),c>0&&this.metrics.recordRetrySuccess(c)}let p=Date.now()-s,f=c>0?` (succeeded on attempt ${c+1})`:"";return this.logger.debug(`\u2713 GraphQL request completed in ${p}ms${f}`,d),d}catch(d){a=d;let p=Date.now()-l;if(this.metrics&&this.metrics.recordRequestDuration(p),c===o.maxAttempts-1){this.metrics&&c>0&&this.metrics.recordRetryFailure(c);break}if(!this.isRetryableError(d,o))throw this.logger.error(`\u2717 GraphQL request failed with non-retryable error in ${p}ms`,d),d;let f=this.calculateDelay(c,o);this.logger.debug(`\u23F3 GraphQL request failed (attempt ${c+1}/${o.maxAttempts}), retrying in ${f}ms...`),await this.sleepWithSignal(f,r)}}let u=Date.now()-s;throw this.logger.error(`\u2717 GraphQL request failed after ${o.maxAttempts} attempts in ${u}ms`,a),a}isRetryableError(t,n){if(!t.response)return!0;let i=t.response.status;return n.retryableStatusCodes.includes(i)}calculateDelay(t,n){if(!n.exponentialBackoff)return n.baseDelay;let i=n.baseDelay*Math.pow(2,t),r=Math.min(i,n.maxDelay),o=r*.2*(Math.random()-.5);return Math.max(0,r+o)}sleepWithSignal(t,n){return new Promise((i,r)=>{if(n?.aborted){r(new Error(`Request aborted: ${n.reason||"cancelled"}`));return}let o=setTimeout(i,t);if(n){let a=()=>{clearTimeout(o),r(new Error(`Request aborted: ${n.reason||"cancelled"}`))};n.addEventListener("abort",a,{once:!0})}})}setHeaders(t){this.client.setHeaders(t)}};var sI=SI(aI(),1);import Vy from"fs";import yr from"path";var Ut=class{canHandle(t){let n=t.split(".").pop()?.toLowerCase();return n?this.getSupportedExtensions().includes(n):!1}},rr=class{static{this.readers=[]}static registerReader(t){this.readers.push(t)}static getReader(t,n){if(n){let r=this.readers.find(o=>o.getSupportedExtensions().includes(n.toLowerCase()));if(r)return r}let i=this.readers.find(r=>r.canHandle(t));if(!i)throw new Error(`No reader found for file: ${t}${n?` with format: ${n}`:""}`);return i}static getSupportedFormats(){let t=new Set;return this.readers.forEach(n=>{n.getSupportedExtensions().forEach(i=>t.add(i))}),Array.from(t)}};import PM from"fs";import jM from"csv-parser";var ma=class extends Ut{getSupportedExtensions(){return["csv"]}async readFile(t){return new Promise((n,i)=>{let r=[];PM.createReadStream(t).pipe(jM()).on("data",o=>r.push(o)).on("end",()=>n(r)).on("error",o=>i(o))})}};import LM from"fs/promises";var ga=class extends Ut{getSupportedExtensions(){return["json"]}async readFile(t){let n=await LM.readFile(t,"utf8"),i=JSON.parse(n);if(Array.isArray(i))return i;if(typeof i=="object"&&i!==null)return[i];throw new Error(`Invalid JSON data structure in file: ${t}. Expected array or object.`)}};import AM from"fs/promises";var va=class extends Ut{getSupportedExtensions(){return["yaml","yml"]}async readFile(t){let n=await AM.readFile(t,"utf8"),i=Hb.load(n);if(Array.isArray(i))return i;if(typeof i=="object"&&i!==null)return[i];throw new Error(`Invalid YAML data structure in file: ${t}. Expected array or object.`)}};import RM from"fs/promises";var ha=class extends Ut{getSupportedExtensions(){return["jsonl","ndjson"]}async readFile(t){let i=(await RM.readFile(t,"utf8")).split(`
|
|
255
|
+
`).filter(o=>o.trim()),r=[];for(let o=0;o<i.length;o++)try{let a=JSON.parse(i[o]);r.push(a)}catch(a){let s=a instanceof Error?a.message:String(a);throw new Error(`Invalid JSON at line ${o+1} in file: ${t}. Error: ${s}`)}return r}};rr.registerReader(new ma);rr.registerReader(new ga);rr.registerReader(new va);rr.registerReader(new ha);var xn=class{constructor(){this.metrics={totalEntities:0,totalSuccesses:0,totalFailures:0,entityMetrics:new Map,requestDurations:[],retryAttempts:0,retrySuccesses:0,retryFailures:0,startTime:Date.now()}}startEntityProcessing(t){this.metrics.entityMetrics.has(t)||this.metrics.entityMetrics.set(t,{entityName:t,successCount:0,failureCount:0,startTime:Date.now()})}recordSuccess(t){let n=this.metrics.entityMetrics.get(t);n&&(n.successCount++,this.metrics.totalSuccesses++,this.metrics.totalEntities++)}recordFailure(t){let n=this.metrics.entityMetrics.get(t);n&&(n.failureCount++,this.metrics.totalFailures++,this.metrics.totalEntities++)}finishEntityProcessing(t){let n=this.metrics.entityMetrics.get(t);n&&(n.endTime=Date.now())}finishProcessing(){return this.metrics.endTime=Date.now(),{...this.metrics}}getEntityMetrics(t){return this.metrics.entityMetrics.get(t)}getMetrics(){let n=(this.metrics.endTime||Date.now())-this.metrics.startTime,i={};for(let[r,o]of this.metrics.entityMetrics){let a=o.endTime||Date.now();i[r]={rowsProcessed:o.successCount+o.failureCount,successfulRows:o.successCount,failedRows:o.failureCount,duration:a-o.startTime}}return{totalRows:this.metrics.totalEntities,successfulOperations:this.metrics.totalSuccesses,failedOperations:this.metrics.totalFailures,totalDuration:n,entities:i}}getTotalProcessed(){return this.metrics.totalEntities}getSuccessRate(){return this.metrics.totalEntities===0?0:this.metrics.totalSuccesses/this.metrics.totalEntities*100}recordRequestDuration(t){this.metrics.requestDurations.push(t)}recordRetrySuccess(t){this.metrics.retryAttempts+=t,this.metrics.retrySuccesses++}recordRetryFailure(t){this.metrics.retryAttempts+=t,this.metrics.retryFailures++}getAverageRequestDuration(){return this.metrics.requestDurations.length===0?0:this.metrics.requestDurations.reduce((n,i)=>n+i,0)/this.metrics.requestDurations.length}getDurationMs(){return(this.metrics.endTime||Date.now())-this.metrics.startTime}generateSummary(){let t=this.getDurationMs(),n=this.getSuccessRate(),i=this.getAverageRequestDuration(),r=`
|
|
217
256
|
\u{1F4CA} Processing Summary:
|
|
218
|
-
`;if(
|
|
219
|
-
`,
|
|
220
|
-
`,
|
|
221
|
-
`,
|
|
222
|
-
`,
|
|
223
|
-
`,this.metrics.requestDurations.length>0&&(
|
|
224
|
-
`),this.metrics.retryAttempts>0&&(
|
|
225
|
-
`,
|
|
226
|
-
`,
|
|
227
|
-
`),this.metrics.entityMetrics.size>0){
|
|
257
|
+
`;if(r+=` Total Processed: ${this.metrics.totalEntities}
|
|
258
|
+
`,r+=` \u2713 Successes: ${this.metrics.totalSuccesses}
|
|
259
|
+
`,r+=` \u2717 Failures: ${this.metrics.totalFailures}
|
|
260
|
+
`,r+=` Success Rate: ${n.toFixed(1)}%
|
|
261
|
+
`,r+=` Duration: ${(t/1e3).toFixed(2)}s
|
|
262
|
+
`,this.metrics.requestDurations.length>0&&(r+=` Avg Request Time: ${i.toFixed(0)}ms
|
|
263
|
+
`),this.metrics.retryAttempts>0&&(r+=` Retry Attempts: ${this.metrics.retryAttempts}
|
|
264
|
+
`,r+=` Retry Successes: ${this.metrics.retrySuccesses}
|
|
265
|
+
`,r+=` Retry Failures: ${this.metrics.retryFailures}
|
|
266
|
+
`),this.metrics.entityMetrics.size>0){r+=`
|
|
228
267
|
\u{1F4CB} Per-Entity Breakdown:
|
|
229
|
-
`;for(let[o,
|
|
230
|
-
`}}return i}};var bt=class{constructor(r,t=process.cwd(),n,i=pr,o){this.client=r,this.basePath=t,this.metrics=n||new Tt,this.logger=i,this.formatOverride=o}discoverMappings(r,t){let n=jr.resolve(this.basePath,r,"mappings");try{let o=Mc.readdirSync(n).filter(s=>s.endsWith(".json"));if(t&&t.length>0){let s=new Set(t),a=new Set;o=o.filter(c=>{let l=jr.basename(c,".json");return s.has(l)?(a.add(l),!0):!1});let u=t.filter(c=>!a.has(c));u.length>0&&this.logger.warn(`Warning: The following entities were not found in mappings: ${u.join(", ")}`)}return o.sort(),this.logger.info(`Discovered ${o.length} mapping files: ${o.join(", ")}`),o.map(s=>jr.join(r,"mappings",s))}catch(i){let o=i instanceof Error?i.message:String(i);return this.logger.error(`Error reading mappings directory ${n}: ${o}`),[]}}async processEntity(r,t,n){return this.processEntityWithEvents(r,t,n)}async processEntityWithEvents(r,t,n,i,o){let s=jr.basename(r,".json"),a=Date.now();this.logger.info(`Processing entity: ${r}`),this.metrics.startEntityProcessing(s);let u=jr.resolve(this.basePath,r),c=JSON.parse(Mc.readFileSync(u,"utf8")),l=jr.dirname(jr.dirname(u)),p=c.dataFile||c.csvFile;if(!p)throw new Error(`No data file specified in mapping config: ${r}`);let d=jr.resolve(l,p),m=this.formatOverride||c.dataFormat,_=await Er.getReader(d,m).readFile(d),R=jr.resolve(l,c.graphqlFile),j=Mc.readFileSync(R,"utf8");o?.onEntityStart?.({entityName:s,mappingPath:r,totalRows:_.length}),t&&t.concurrency>1?await this.processRowsConcurrentlyWithEvents(_,j,c.mapping,s,t,n,i,o):await this.processRowsSequentiallyWithEvents(_,j,c.mapping,s,n,i,o),this.metrics.finishEntityProcessing(s);let O=this.metrics.getEntityMetrics(s),U=Date.now()-a,oe=O?{rowsProcessed:O.successCount+O.failureCount,successfulRows:O.successCount,failedRows:O.failureCount,duration:U}:{rowsProcessed:0,successfulRows:0,failedRows:0,duration:U};o?.onEntityComplete?.({entityName:s,metrics:oe,success:oe.failedRows===0,durationMs:U})}async processRowsSequentiallyWithEvents(r,t,n,i,o,s,a){let u=r.length,c=this.extractVariableTypes(t);for(let l=0;l<r.length;l++){if(s?.aborted){this.logger.info(`Processing cancelled at row ${l+1}/${u}`);return}let p=r[l],d=this.mapRowToVariables(p,n,c),m=Date.now();try{let h=await this.client.executeMutation(t,d,o,s);if(this.metrics.recordSuccess(i),a?.onRowSuccess?.({entityName:i,rowIndex:l,row:p,result:h,durationMs:Date.now()-m}),(l+1)%Math.max(1,Math.floor(u/10))===0||l===u-1){let _=((l+1)/u*100).toFixed(1);this.logger.info(`\u{1F4CA} Progress: ${l+1}/${u} (${_}%) \u2713`)}}catch(h){if(s?.aborted){this.logger.info(`Processing cancelled at row ${l+1}/${u}`);return}this.metrics.recordFailure(i),this.logger.error(`\u2717 Failed to create entity for row ${l+1}`,p,h),a?.onRowFailure?.({entityName:i,rowIndex:l,row:p,error:h instanceof Error?h:new Error(String(h)),retryAttempts:o?.maxAttempts??3})}}}async processRowsConcurrentlyWithEvents(r,t,n,i,o,s,a,u){let c=o.concurrency;this.logger.info(`Processing ${r.length} rows with concurrency: ${c}`);let l=this.extractVariableTypes(t),p=this.chunkArray(r,c),d=0,m=r.length;for(let h=0;h<p.length;h++){if(a?.aborted){this.logger.info(`Processing cancelled at chunk ${h+1}/${p.length}`);return}let _=p[h],R=h*c,j=_.map(async(be,ur)=>{let cr=R+ur,g=this.mapRowToVariables(be,n,l),F=Date.now();try{let le=await this.client.executeMutation(t,g,s,a);return this.metrics.recordSuccess(i),u?.onRowSuccess?.({entityName:i,rowIndex:cr,row:be,result:le,durationMs:Date.now()-F}),{success:!0,result:le,row:be,rowIndex:cr}}catch(le){return this.metrics.recordFailure(i),u?.onRowFailure?.({entityName:i,rowIndex:cr,row:be,error:le instanceof Error?le:new Error(String(le)),retryAttempts:s?.maxAttempts??3}),{success:!1,error:le,row:be,rowIndex:cr}}}),O=await Promise.allSettled(j);if(d+=_.length,a?.aborted){this.logger.info(`Processing cancelled after chunk ${h+1}/${p.length}`);return}let U=0,oe=0;O.forEach(be=>{if(be.status==="fulfilled"){let{success:ur,error:cr,row:g}=be.value;ur?U++:(oe++,this.logger.error("\u2717 Failed to create entity for row",g,cr))}else oe++,this.logger.error(`\u2717 Promise rejected: ${be.reason}`)});let _r=(d/m*100).toFixed(1);this.logger.info(`\u{1F4CA} Progress: ${d}/${m} (${_r}%) - Chunk ${h+1}: ${U} \u2713, ${oe} \u2717`)}}chunkArray(r,t){let n=[];for(let i=0;i<r.length;i+=t)n.push(r.slice(i,i+t));return n}mapRowToVariables(r,t,n){let i={};for(let[o,s]of Object.entries(t))if(s==="$")i[o]=r;else if(typeof s=="string"&&s.startsWith("$.")){let a=s.substring(2),u=this.getValueByPath(r,a);if(u!==void 0){let c=n[o];i[o]=this.convertValue(u,c,o)}}else if(typeof s=="string"&&r[s]!==void 0){let a=r[s],u=n[o];i[o]=this.convertValue(a,u,o)}else typeof s=="object"&&s!==null&&(i[o]=this.mapNestedObject(r,s,n));return i}getValueByPath(r,t){let n=t.split("."),i=r;for(let o of n)if(i&&typeof i=="object"&&o in i)i=i[o];else return;return i}mapNestedObject(r,t,n){if(Array.isArray(t))return t.map(i=>this.mapNestedObject(r,i,n));if(typeof t=="object"&&t!==null){let i={};for(let[o,s]of Object.entries(t))if(typeof s=="string"&&s.startsWith("$.")){let a=s.substring(2),u=this.getValueByPath(r,a);o==="values"&&typeof u=="string"&&u.includes(",")&&(u=u.split(",").map(c=>c.trim())),i[o]=u}else typeof s=="string"&&r[s]!==void 0?i[o]=r[s]:typeof s=="object"?i[o]=this.mapNestedObject(r,s,n):i[o]=s;return i}return t}extractVariableTypes(r){let t={};try{let n=(0,fh.parse)(r);for(let i of n.definitions)if(i.kind==="OperationDefinition"&&i.variableDefinitions)for(let o of i.variableDefinitions){let s=o.variable.name.value,a=this.extractTypeName(o);a&&(t[s]=a)}}catch(n){let i=n instanceof Error?n.message:String(n);this.logger.error(`Error parsing GraphQL mutation: ${i}`)}return t}extractTypeName(r){let t=r.type;if(t.kind==="NonNullType"){if(t.type.kind==="NamedType")return t.type.name.value}else if(t.kind==="NamedType")return t.name.value;return null}convertValue(r,t,n){if(!t||typeof r!="string")return r;let i=r.trim();switch(t){case"Int":let o=Number(i);return isNaN(o)||!isFinite(o)||!Number.isInteger(o)?(this.logger.warn(`Warning: Cannot convert "${r}" to Int for variable $${n}. Expected a valid integer. Using original value.`),r):o;case"Float":let s=Number(i);return isNaN(s)||!isFinite(s)?(this.logger.warn(`Warning: Cannot convert "${r}" to Float for variable $${n}. Expected a valid number. Using original value.`),r):s;case"Boolean":let a=i.toLowerCase();return a==="true"||a==="1"?!0:a==="false"||a==="0"?!1:(this.logger.warn(`Warning: Cannot convert "${r}" to Boolean for variable $${n}. Expected "true", "false", "1", or "0". Using original value.`),r);case"String":return r;default:return this.logger.debug(`Unknown GraphQL type "${t}" for variable $${n}. Keeping value as string.`),r}}getMetrics(){return this.metrics}};var Po=class{constructor(r,t={},n=!1){this.entities=r,this.dependencies=t,this.allowPartialResolution=n}resolveExecutionOrder(){let r=[],t=new Set,n=new Set,i=0;for(;t.size<this.entities.length;){let o=[];for(let s of this.entities){if(t.has(s)||n.has(s))continue;(this.dependencies[s]||[]).every(c=>t.has(c)||this.allowPartialResolution&&!this.entities.includes(c))&&(o.push(s),n.add(s))}if(o.length===0){let s=this.entities.filter(a=>!t.has(a));throw new Error(`Circular dependency detected or missing dependencies for entities: ${s.join(", ")}`)}r.push({entities:o,wave:i++}),o.forEach(s=>{t.add(s),n.delete(s)})}return r}validateDependencies(){let r=[],t=new Set(this.entities);for(let[n,i]of Object.entries(this.dependencies)){if(!t.has(n)){r.push(`Entity '${n}' has dependencies but is not in the entity list`);continue}for(let o of i)t.has(o)||r.push(`Entity '${n}' depends on '${o}' which does not exist`)}return r}getDependents(r){return Object.entries(this.dependencies).filter(([t,n])=>n.includes(r)).map(([t,n])=>t)}getDependencies(r){return this.dependencies[r]||[]}};import{basename as hh}from"path";var mh={emitRowEvents:!0,progressInterval:1e3,emitProgressEvents:!0};var wo=class extends XS{constructor(t){super();this.abortController=null;this.isProcessing=!1;this.startTime=0;this.progressIntervalId=null;this.currentWave=0;this.totalWaves=0;this.entitiesCompleted=0;this.totalEntities=0;this.endpoint=t.endpoint,this.headers=t.headers||{},this.logger=t.logger??pr,this.formatOverride=t.formatOverride,this.eventOptions={...mh,...t.eventOptions},this.metrics=new Tt,this.client=new et(this.endpoint,this.headers,this.metrics,this.logger),this.mapper=new bt(this.client,process.cwd(),this.metrics,this.logger,this.formatOverride)}cancel(t="User requested cancellation"){this.abortController&&this.isProcessing&&this.abortController.abort(t)}get processing(){return this.isProcessing}safeEmit(t,n){try{return this.emit(t,n)}catch(i){return this.logger.error(`Error in event listener for '${String(t)}':`,i),!1}}startProgressInterval(){this.eventOptions.emitProgressEvents&&(this.progressIntervalId=setInterval(()=>{this.emitProgressEvent()},this.eventOptions.progressInterval))}stopProgressInterval(){this.progressIntervalId&&(clearInterval(this.progressIntervalId),this.progressIntervalId=null)}emitProgressEvent(){let t=this.metrics.getMetrics(),n={currentWave:this.currentWave,totalWaves:this.totalWaves,entitiesCompleted:this.entitiesCompleted,totalEntities:this.totalEntities,rowsProcessed:t.totalRows,successfulRows:t.successfulOperations,failedRows:t.failedOperations,progressPercent:this.totalEntities>0?this.entitiesCompleted/this.totalEntities*100:0,elapsedMs:Date.now()-this.startTime};this.safeEmit("progress",n)}handleCancellation(t){this.stopProgressInterval();let n={reason:t||"Cancelled",metrics:this.metrics.getMetrics(),currentEntity:this.currentEntity,elapsedMs:Date.now()-this.startTime};return this.safeEmit("cancelled",n),{metrics:this.metrics.getMetrics(),success:!1,cancelled:!0,errors:[`Operation cancelled: ${t}`]}}combineSignals(...t){let n=new AbortController;for(let i of t){if(i.aborted){n.abort(i.reason);break}i.addEventListener("abort",()=>n.abort(i.reason),{once:!0})}return n.signal}async ingest(t,n){let i=[];this.abortController=new AbortController;let o=n?.signal?this.combineSignals(n.signal,this.abortController.signal):this.abortController.signal;this.isProcessing=!0,this.startTime=Date.now(),this.entitiesCompleted=0,this.currentWave=0,this.currentEntity=void 0;try{if(o.aborted)return this.handleCancellation(o.reason);this.metrics=new Tt,this.client=new et(this.endpoint,this.headers,this.metrics,this.logger),this.mapper=new bt(this.client,process.cwd(),this.metrics,this.logger,n?.format??this.formatOverride);let s=ep(t,this.logger),a;n?.entities&&(typeof n.entities=="string"?a=n.entities.split(",").map(O=>O.trim()):a=n.entities);let u=this.mapper.discoverMappings(t,a);if(u.length===0){let O=a?` matching entities: ${a.join(", ")}`:"",U=`No mapping files found in ${t}/mappings${O}`;return this.logger.warn(U),{metrics:this.metrics.getMetrics(),success:!1,errors:[U]}}let c=u.map(O=>hh(O,".json"));this.totalEntities=c.length;let l={};if(s.entityDependencies)for(let O of c)s.entityDependencies[O]&&(l[O]=s.entityDependencies[O]);let p=new Po(c,l,!!a),d=p.validateDependencies();if(d.length>0)if(a)this.logger.warn(`
|
|
231
|
-
\u26A0\uFE0F Warning: Dependency validation issues:`),
|
|
232
|
-
`);else return this.logger.error("Dependency validation errors:"),
|
|
268
|
+
`;for(let[o,a]of this.metrics.entityMetrics){let s=a.successCount+a.failureCount,u=s>0?a.successCount/s*100:0,c=a.endTime?a.endTime-a.startTime:0;r+=` ${o}: ${s} total (${a.successCount} \u2713, ${a.failureCount} \u2717) - ${u.toFixed(1)}% success - ${(c/1e3).toFixed(2)}s
|
|
269
|
+
`}}return r}};var On=class{constructor(t,n=process.cwd(),i,r=Be,o){this.client=t,this.basePath=n,this.metrics=i||new xn,this.logger=r,this.formatOverride=o}discoverMappings(t,n){let i=yr.resolve(this.basePath,t,"mappings");try{let o=Vy.readdirSync(i).filter(a=>a.endsWith(".json"));if(n&&n.length>0){let a=new Set(n),s=new Set;o=o.filter(c=>{let l=yr.basename(c,".json");return a.has(l)?(s.add(l),!0):!1});let u=n.filter(c=>!s.has(c));u.length>0&&this.logger.warn(`Warning: The following entities were not found in mappings: ${u.join(", ")}`)}return o.sort(),this.logger.info(`Discovered ${o.length} mapping files: ${o.join(", ")}`),o.map(a=>yr.join(t,"mappings",a))}catch(r){let o=r instanceof Error?r.message:String(r);return this.logger.error(`Error reading mappings directory ${i}: ${o}`),[]}}async processEntity(t,n,i){return this.processEntityWithEvents(t,n,i)}async processEntityWithEvents(t,n,i,r,o){let a=yr.basename(t,".json"),s=Date.now();this.logger.info(`Processing entity: ${t}`),this.metrics.startEntityProcessing(a);let u=yr.resolve(this.basePath,t),c=JSON.parse(Vy.readFileSync(u,"utf8")),l=yr.dirname(yr.dirname(u)),d=c.dataFile||c.csvFile;if(!d)throw new Error(`No data file specified in mapping config: ${t}`);let p=yr.resolve(l,d),f=this.formatOverride||c.dataFormat,_=await rr.getReader(p,f).readFile(p),j=yr.resolve(l,c.graphqlFile),z=Vy.readFileSync(j,"utf8");o?.onEntityStart?.({entityName:a,mappingPath:t,totalRows:_.length}),n&&n.concurrency>1?await this.processRowsConcurrentlyWithEvents(_,z,c.mapping,a,n,i,r,o):await this.processRowsSequentiallyWithEvents(_,z,c.mapping,a,i,r,o),this.metrics.finishEntityProcessing(a);let k=this.metrics.getEntityMetrics(a),V=Date.now()-s,H=k?{rowsProcessed:k.successCount+k.failureCount,successfulRows:k.successCount,failedRows:k.failureCount,duration:V}:{rowsProcessed:0,successfulRows:0,failedRows:0,duration:V};o?.onEntityComplete?.({entityName:a,metrics:H,success:H.failedRows===0,durationMs:V})}async processRowsSequentiallyWithEvents(t,n,i,r,o,a,s){let u=t.length,c=this.extractVariableTypes(n);for(let l=0;l<t.length;l++){if(a?.aborted){this.logger.info(`Processing cancelled at row ${l+1}/${u}`);return}let d=t[l],p=this.mapRowToVariables(d,i,c),f=Date.now();try{let v=await this.client.executeMutation(n,p,o,a);if(this.metrics.recordSuccess(r),s?.onRowSuccess?.({entityName:r,rowIndex:l,row:d,result:v,durationMs:Date.now()-f}),(l+1)%Math.max(1,Math.floor(u/10))===0||l===u-1){let _=((l+1)/u*100).toFixed(1);this.logger.info(`\u{1F4CA} Progress: ${l+1}/${u} (${_}%) \u2713`)}}catch(v){if(a?.aborted){this.logger.info(`Processing cancelled at row ${l+1}/${u}`);return}this.metrics.recordFailure(r),this.logger.error(`\u2717 Failed to create entity for row ${l+1}`,d,v),s?.onRowFailure?.({entityName:r,rowIndex:l,row:d,error:v instanceof Error?v:new Error(String(v)),retryAttempts:o?.maxAttempts??3})}}}async processRowsConcurrentlyWithEvents(t,n,i,r,o,a,s,u){let c=o.concurrency;this.logger.info(`Processing ${t.length} rows with concurrency: ${c}`);let l=this.extractVariableTypes(n),d=this.chunkArray(t,c),p=0,f=t.length;for(let v=0;v<d.length;v++){if(s?.aborted){this.logger.info(`Processing cancelled at chunk ${v+1}/${d.length}`);return}let _=d[v],j=v*c,z=_.map(async(De,ft)=>{let Mt=j+ft,T=this.mapRowToVariables(De,i,l),G=Date.now();try{let Se=await this.client.executeMutation(n,T,a,s);return this.metrics.recordSuccess(r),u?.onRowSuccess?.({entityName:r,rowIndex:Mt,row:De,result:Se,durationMs:Date.now()-G}),{success:!0,result:Se,row:De,rowIndex:Mt}}catch(Se){return this.metrics.recordFailure(r),u?.onRowFailure?.({entityName:r,rowIndex:Mt,row:De,error:Se instanceof Error?Se:new Error(String(Se)),retryAttempts:a?.maxAttempts??3}),{success:!1,error:Se,row:De,rowIndex:Mt}}}),k=await Promise.allSettled(z);if(p+=_.length,s?.aborted){this.logger.info(`Processing cancelled after chunk ${v+1}/${d.length}`);return}let V=0,H=0;k.forEach(De=>{if(De.status==="fulfilled"){let{success:ft,error:Mt,row:T}=De.value;ft?V++:(H++,this.logger.error("\u2717 Failed to create entity for row",T,Mt))}else H++,this.logger.error(`\u2717 Promise rejected: ${De.reason}`)});let Ie=(p/f*100).toFixed(1);this.logger.info(`\u{1F4CA} Progress: ${p}/${f} (${Ie}%) - Chunk ${v+1}: ${V} \u2713, ${H} \u2717`)}}chunkArray(t,n){let i=[];for(let r=0;r<t.length;r+=n)i.push(t.slice(r,r+n));return i}mapRowToVariables(t,n,i){let r={};for(let[o,a]of Object.entries(n))if(a==="$")r[o]=t;else if(typeof a=="string"&&a.startsWith("$.")){let s=a.substring(2),u=this.getValueByPath(t,s);if(u!==void 0){let c=i[o];r[o]=this.convertValue(u,c,o)}}else if(typeof a=="string"&&t[a]!==void 0){let s=t[a],u=i[o];r[o]=this.convertValue(s,u,o)}else typeof a=="object"&&a!==null&&(r[o]=this.mapNestedObject(t,a,i));return r}getValueByPath(t,n){let i=n.split("."),r=t;for(let o of i)if(r&&typeof r=="object"&&o in r)r=r[o];else return;return r}mapNestedObject(t,n,i){if(Array.isArray(n))return n.map(r=>this.mapNestedObject(t,r,i));if(typeof n=="object"&&n!==null){let r={};for(let[o,a]of Object.entries(n))if(typeof a=="string"&&a.startsWith("$.")){let s=a.substring(2),u=this.getValueByPath(t,s);o==="values"&&typeof u=="string"&&u.includes(",")&&(u=u.split(",").map(c=>c.trim())),r[o]=u}else typeof a=="string"&&t[a]!==void 0?r[o]=t[a]:typeof a=="object"?r[o]=this.mapNestedObject(t,a,i):r[o]=a;return r}return n}extractVariableTypes(t){let n={};try{let i=(0,sI.parse)(t);for(let r of i.definitions)if(r.kind==="OperationDefinition"&&r.variableDefinitions)for(let o of r.variableDefinitions){let a=o.variable.name.value,s=this.extractTypeName(o);s&&(n[a]=s)}}catch(i){let r=i instanceof Error?i.message:String(i);this.logger.error(`Error parsing GraphQL mutation: ${r}`)}return n}extractTypeName(t){let n=t.type;if(n.kind==="NonNullType"){if(n.type.kind==="NamedType")return n.type.name.value}else if(n.kind==="NamedType")return n.name.value;return null}convertValue(t,n,i){if(!n||typeof t!="string")return t;let r=t.trim();switch(n){case"Int":let o=Number(r);return isNaN(o)||!isFinite(o)||!Number.isInteger(o)?(this.logger.warn(`Warning: Cannot convert "${t}" to Int for variable $${i}. Expected a valid integer. Using original value.`),t):o;case"Float":let a=Number(r);return isNaN(a)||!isFinite(a)?(this.logger.warn(`Warning: Cannot convert "${t}" to Float for variable $${i}. Expected a valid number. Using original value.`),t):a;case"Boolean":let s=r.toLowerCase();return s==="true"||s==="1"?!0:s==="false"||s==="0"?!1:(this.logger.warn(`Warning: Cannot convert "${t}" to Boolean for variable $${i}. Expected "true", "false", "1", or "0". Using original value.`),t);case"String":return t;default:return this.logger.debug(`Unknown GraphQL type "${n}" for variable $${i}. Keeping value as string.`),t}}getMetrics(){return this.metrics}};var Pc=class{constructor(t,n={},i=!1){this.entities=t,this.dependencies=n,this.allowPartialResolution=i}resolveExecutionOrder(){let t=[],n=new Set,i=new Set,r=0;for(;n.size<this.entities.length;){let o=[];for(let a of this.entities){if(n.has(a)||i.has(a))continue;(this.dependencies[a]||[]).every(c=>n.has(c)||this.allowPartialResolution&&!this.entities.includes(c))&&(o.push(a),i.add(a))}if(o.length===0){let a=this.entities.filter(s=>!n.has(s));throw new Error(`Circular dependency detected or missing dependencies for entities: ${a.join(", ")}`)}t.push({entities:o,wave:r++}),o.forEach(a=>{n.add(a),i.delete(a)})}return t}validateDependencies(){let t=[],n=new Set(this.entities);for(let[i,r]of Object.entries(this.dependencies)){if(!n.has(i)){t.push(`Entity '${i}' has dependencies but is not in the entity list`);continue}for(let o of r)n.has(o)||t.push(`Entity '${i}' depends on '${o}' which does not exist`)}return t}getDependents(t){return Object.entries(this.dependencies).filter(([n,i])=>i.includes(t)).map(([n,i])=>n)}getDependencies(t){return this.dependencies[t]||[]}};import{basename as cI}from"path";var uI={emitRowEvents:!0,progressInterval:1e3,emitProgressEvents:!0};var jc=class extends CM{constructor(n){super();this.abortController=null;this.isProcessing=!1;this.startTime=0;this.progressIntervalId=null;this.currentWave=0;this.totalWaves=0;this.entitiesCompleted=0;this.totalEntities=0;this.endpoint=n.endpoint,this.headers=n.headers||{},this.logger=n.logger??Be,this.formatOverride=n.formatOverride,this.eventOptions={...uI,...n.eventOptions},this.metrics=new xn,this.client=new on(this.endpoint,this.headers,this.metrics,this.logger),this.mapper=new On(this.client,process.cwd(),this.metrics,this.logger,this.formatOverride)}cancel(n="User requested cancellation"){this.abortController&&this.isProcessing&&this.abortController.abort(n)}get processing(){return this.isProcessing}safeEmit(n,i){try{return this.emit(n,i)}catch(r){return this.logger.error(`Error in event listener for '${String(n)}':`,r),!1}}startProgressInterval(){this.eventOptions.emitProgressEvents&&(this.progressIntervalId=setInterval(()=>{this.emitProgressEvent()},this.eventOptions.progressInterval))}stopProgressInterval(){this.progressIntervalId&&(clearInterval(this.progressIntervalId),this.progressIntervalId=null)}emitProgressEvent(){let n=this.metrics.getMetrics(),i={currentWave:this.currentWave,totalWaves:this.totalWaves,entitiesCompleted:this.entitiesCompleted,totalEntities:this.totalEntities,rowsProcessed:n.totalRows,successfulRows:n.successfulOperations,failedRows:n.failedOperations,progressPercent:this.totalEntities>0?this.entitiesCompleted/this.totalEntities*100:0,elapsedMs:Date.now()-this.startTime};this.safeEmit("progress",i)}handleCancellation(n){this.stopProgressInterval();let i={reason:n||"Cancelled",metrics:this.metrics.getMetrics(),currentEntity:this.currentEntity,elapsedMs:Date.now()-this.startTime};return this.safeEmit("cancelled",i),{metrics:this.metrics.getMetrics(),success:!1,cancelled:!0,errors:[`Operation cancelled: ${n}`]}}combineSignals(...n){let i=new AbortController;for(let r of n){if(r.aborted){i.abort(r.reason);break}r.addEventListener("abort",()=>i.abort(r.reason),{once:!0})}return i.signal}async ingest(n,i){let r=[];this.abortController=new AbortController;let o=i?.signal?this.combineSignals(i.signal,this.abortController.signal):this.abortController.signal;this.isProcessing=!0,this.startTime=Date.now(),this.entitiesCompleted=0,this.currentWave=0,this.currentEntity=void 0;try{if(o.aborted)return this.handleCancellation(o.reason);this.metrics=new xn,this.client=new on(this.endpoint,this.headers,this.metrics,this.logger),this.mapper=new On(this.client,process.cwd(),this.metrics,this.logger,i?.format??this.formatOverride);let a=J0(n,this.logger),s;i?.entities&&(typeof i.entities=="string"?s=i.entities.split(",").map(k=>k.trim()):s=i.entities);let u=this.mapper.discoverMappings(n,s);if(u.length===0){let k=s?` matching entities: ${s.join(", ")}`:"",V=`No mapping files found in ${n}/mappings${k}`;return this.logger.warn(V),{metrics:this.metrics.getMetrics(),success:!1,errors:[V]}}let c=u.map(k=>cI(k,".json"));this.totalEntities=c.length;let l={};if(a.entityDependencies)for(let k of c)a.entityDependencies[k]&&(l[k]=a.entityDependencies[k]);let d=new Pc(c,l,!!s),p=d.validateDependencies();if(p.length>0)if(s)this.logger.warn(`
|
|
270
|
+
\u26A0\uFE0F Warning: Dependency validation issues:`),p.forEach(k=>this.logger.warn(` - ${k}`)),this.logger.warn(`This may cause errors if the dependent data doesn't already exist.
|
|
271
|
+
`);else return this.logger.error("Dependency validation errors:"),p.forEach(k=>{this.logger.error(` - ${k}`),r.push(k)}),{metrics:this.metrics.getMetrics(),success:!1,errors:r};let f=d.resolveExecutionOrder();this.totalWaves=f.length;let v={configPath:n,totalEntities:c.length,entityNames:c,totalWaves:f.length,startTime:this.startTime};if(this.safeEmit("started",v),this.startProgressInterval(),await this.processEntitiesInWaves(u,d,this.mapper,a,this.logger,o),o.aborted)return this.handleCancellation(o.reason);this.metrics.finishProcessing(),this.stopProgressInterval();let _=this.metrics.getMetrics(),j=_.failedOperations===0,z={metrics:_,durationMs:Date.now()-this.startTime,allSuccessful:j};return this.safeEmit("finished",z),{metrics:_,success:!0}}catch(a){if(this.stopProgressInterval(),o.aborted)return this.handleCancellation(o.reason);let s=a instanceof Error?a.message:String(a);this.logger.error(`Error: ${s}`),r.push(s);let u={error:a instanceof Error?a:new Error(String(a)),metrics:this.metrics.getMetrics(),currentEntity:this.currentEntity,elapsedMs:Date.now()-this.startTime};return this.safeEmit("errored",u),{metrics:this.metrics.getMetrics(),success:!1,errors:r}}finally{this.isProcessing=!1,this.abortController=null,this.stopProgressInterval()}}async ingestEntities(n,i){return this.ingest(n,{entities:i})}getMetrics(){return this.metrics.getMetrics()}getMetricsSummary(){return this.metrics.generateSummary()}getClient(){return this.client}getMapper(){return this.mapper}setLogger(n){this.logger=n,this.client=new on(this.endpoint,this.headers,this.metrics,n),this.mapper=new On(this.client,process.cwd(),this.metrics,n,this.formatOverride)}setHeaders(n){this.headers=n,this.client=new on(this.endpoint,n,this.metrics,this.logger),this.mapper=new On(this.client,process.cwd(),this.metrics,this.logger,this.formatOverride)}async processEntitiesInWaves(n,i,r,o,a,s){let u=i.resolveExecutionOrder(),c=new Map(n.map(l=>[cI(l,".json"),l]));a.info(`Processing ${u.length} dependency waves...`);for(let l of u){if(s?.aborted)return;this.currentWave=l.wave,a.info(`Wave ${l.wave+1}: Processing entities [${l.entities.join(", ")}]`);let d=o.parallelProcessing.entityConcurrency,p=this.chunkArray(l.entities,d);for(let f of p){if(s?.aborted)return;let v=f.map(async _=>{if(s?.aborted)return;let j=c.get(_);if(j){this.currentEntity=_;try{let z=Y0(_,o,a),k=W0(_,o);await r.processEntityWithEvents(j,z,k,s,{onEntityStart:V=>this.safeEmit("entityStart",{...V,waveIndex:l.wave}),onEntityComplete:V=>{this.entitiesCompleted++,this.safeEmit("entityComplete",V)},onRowSuccess:this.eventOptions.emitRowEvents?V=>this.safeEmit("rowSuccess",V):void 0,onRowFailure:this.eventOptions.emitRowEvents?V=>this.safeEmit("rowFailure",V):void 0})}catch(z){let k=z instanceof Error?z.message:String(z);a.warn(`Warning: Could not process ${j}: ${k}`)}}});await Promise.allSettled(v)}}}chunkArray(n,i){if(i<=0)return[n];let r=[];for(let o=0;o<n.length;o+=i)r.push(n.slice(o,o+i));return r}};import VM from"path";import{select as GM}from"@inquirer/prompts";import nr from"fs";import ya from"path";async function dI(e,t,n,i="csv"){await Gy(e,"example",{format:i,fields:["id","name","email"],mutationName:"CreateUser"},n,t)}function Lc(e){return e.description}function lI(e){return Hc(e,{flowLevel:2}).trimEnd().split(`
|
|
272
|
+
`).map(t=>`# ${t}`)}function FM(){let{schema:e,defaults:t,examples:n}=Q0,i=["# gql-ingest configuration",""];i.push("parallelProcessing:");for(let[a,s]of Object.entries(e.parallelProcessing.shape)){let u=Lc(s);u&&i.push(` # ${u}`),i.push(` ${a}: ${t.parallelProcessing[a]}`)}i.push(""),i.push("retry:");for(let[a,s]of Object.entries(e.retry.shape)){let u=Lc(s);u&&i.push(` # ${u}`);let c=t.retry[a];i.push(` ${a}: ${Array.isArray(c)?`[${c.join(", ")}]`:c}`)}i.push("");let r=Lc(e.entityConfig);r&&i.push(`# ${r}`),i.push("# Example:"),i.push(...lI({entityConfig:n.entityConfig})),i.push("entityConfig: {}"),i.push("");let o=Lc(e.entityDependencies);return o&&i.push(`# ${o}`),i.push("# Example:"),i.push(...lI({entityDependencies:n.entityDependencies})),i.push("entityDependencies: {}"),i.push(""),i.join(`
|
|
273
|
+
`)}async function pI(e,t,n){let i=ya.join(e,"config.yaml");if(nr.existsSync(i)&&!t){n.warn("config.yaml already exists, skipping (use --force to overwrite)");return}let r=FM();nr.writeFileSync(i,r,"utf-8"),n.info("Created config.yaml")}async function Gy(e,t,n,i,r=!1){let{format:o,fields:a,mutationName:s}=n,u=ya.join(e,"data",`${t}.${o}`);if(!nr.existsSync(u)||r){let d=zM(o,a);nr.writeFileSync(u,d,"utf-8"),i.info(`Created data/${t}.${o}`)}else i.warn(`data/${t}.${o} already exists, skipping`);let c=ya.join(e,"graphql",`${t}.graphql`);if(!nr.existsSync(c)||r){let d=UM(s,a);nr.writeFileSync(c,d,"utf-8"),i.info(`Created graphql/${t}.graphql`)}else i.warn(`graphql/${t}.graphql already exists, skipping`);let l=ya.join(e,"mappings",`${t}.json`);if(!nr.existsSync(l)||r){let d=MM(t,o,a);nr.writeFileSync(l,d,"utf-8"),i.info(`Created mappings/${t}.json`)}else i.warn(`mappings/${t}.json already exists, skipping`)}function zM(e,t){let n=t.map((i,r)=>`sample_${i}_${r+1}`);switch(e){case"csv":return`${t.join(",")}
|
|
274
|
+
${n.join(",")}`;case"json":let i=Object.fromEntries(t.map((c,l)=>[c,n[l]]));return JSON.stringify([i],null,2);case"yaml":let[r,...o]=t,a=`- ${r}: ${n[0]}`,s=o.map((c,l)=>` ${c}: ${n[l+1]}`);return[a,...s].join(`
|
|
275
|
+
`);case"jsonl":let u=Object.fromEntries(t.map((c,l)=>[c,n[l]]));return JSON.stringify(u);default:return""}}function UM(e,t){let n=t.map(s=>`$${s}: String!`).join(", "),i=t.map(s=>`${s}: $${s}`).join(", "),o=t.filter(s=>s!=="id").map(s=>` ${s}`).join(`
|
|
276
|
+
`),a=qM(e);return`mutation ${e}(${n}) {
|
|
277
|
+
${a}(input: { ${i} }) {
|
|
278
|
+
id
|
|
279
|
+
${o}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
`}function MM(e,t,n){let i=Object.fromEntries(n.map(o=>[o,o])),r={dataFile:`data/${e}.${t}`,dataFormat:t,graphqlFile:`graphql/${e}.graphql`,mapping:i};return JSON.stringify(r,null,2)+`
|
|
283
|
+
`}function qM(e){return e.charAt(0).toLowerCase()+e.slice(1)}function Ky(e){return e.split(/[-_]/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join("")}function fI(e){return/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(e)}function mI(e,t){let n=["data","graphql","mappings"];for(let i of n){let r=ya.join(e,i);nr.existsSync(r)||(nr.mkdirSync(r,{recursive:!0}),t.info(`Created directory: ${i}/`))}}function gI(e){e.command("init [path]").description("Initialize a new gql-ingest configuration directory").option("--no-example","Skip creating example entity files").option("--no-config","Skip creating config.yaml").option("-f, --force","Overwrite existing files",!1).option("-q, --quiet","Suppress output",!1).option("--format <format>","Data format for example entity (csv, json, yaml, jsonl)").option("--no-interactive","Skip prompts, use defaults only").action(async(t,n)=>{let i=n.quiet?Be:Pn(),r=VM.resolve(t||process.cwd());try{let o=n.interactive&&process.stdin.isTTY,a="csv";if(n.example){if(o)a=await GM({message:"Select data format for example entity:",choices:[{name:"CSV",value:"csv"},{name:"JSON",value:"json"},{name:"YAML",value:"yaml"},{name:"JSONL",value:"jsonl"}],default:"csv"});else if(n.format){let s=["csv","json","yaml","jsonl"];s.includes(n.format)||(i.error(`Invalid format. Must be one of: ${s.join(", ")}`),process.exit(1)),a=n.format}}mI(r,i),n.config&&await pI(r,n.force,i),n.example&&await dI(r,n.force,i,a),i.info(""),i.info(`Initialized gql-ingest configuration at: ${r}`),i.info(""),i.info("Next steps:"),i.info(" 1. Edit data files in data/"),i.info(" 2. Define GraphQL mutations in graphql/"),i.info(" 3. Configure mappings in mappings/"),i.info(` 4. Run: gql-ingest -e <endpoint> -c ${r}`)}catch(o){o.name==="ExitPromptError"&&process.exit(0),i.error("Error initializing configuration:",o),process.exit(1)}})}import KM from"path";import{input as vI,select as QM}from"@inquirer/prompts";function hI(e){e.command("add <entity-name>").description("Add a new entity to the configuration").option("-p, --path <path>","Config directory path",process.cwd()).option("-f, --format <format>","Data format (csv, json, yaml, jsonl)").option("--fields <fields>","Comma-separated field names").option("--mutation <name>","GraphQL mutation name").option("--no-interactive","Skip prompts, use defaults only").option("-q, --quiet","Suppress output",!1).action(async(t,n)=>{let i=n.quiet?Be:Pn(),r=KM.resolve(n.path);try{fI(t)||(i.error("Invalid entity name. Use alphanumeric characters, hyphens, and underscores. Must start with a letter."),process.exit(1));let o=n.interactive&&process.stdin.isTTY,a,s,u;if(o)a=await QM({message:"Select data format:",choices:[{name:"CSV",value:"csv"},{name:"JSON",value:"json"},{name:"YAML",value:"yaml"},{name:"JSONL",value:"jsonl"}],default:"csv"}),s=(await vI({message:"Enter field names (comma-separated):",default:"id,name"})).split(",").map(l=>l.trim()).filter(Boolean),u=await vI({message:"GraphQL mutation name:",default:`Create${Ky(t)}`});else{let c=["csv","json","yaml","jsonl"];n.format&&!c.includes(n.format)&&(i.error(`Invalid format. Must be one of: ${c.join(", ")}`),process.exit(1)),a=n.format||"csv",s=n.fields?.split(",").map(l=>l.trim()).filter(Boolean)||["id","name"],u=n.mutation||`Create${Ky(t)}`}await Gy(r,t,{format:a,fields:s,mutationName:u},i),i.info(""),i.info(`Created entity: ${t}`),i.info(` - data/${t}.${a}`),i.info(` - graphql/${t}.graphql`),i.info(` - mappings/${t}.json`)}catch(o){o.name==="ExitPromptError"&&process.exit(0),i.error("Error adding entity:",o),process.exit(1)}})}var Si=new BM;Si.name("gql-ingest").description("A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.").version(yI().version).enablePositionalOptions();gI(Si);hI(Si);Si.option("-e, --endpoint <url>","GraphQL endpoint URL").option("-c, --config <path>","Path to configuration directory (containing data/, graphql/, mappings/ subdirectories)").option("-n, --entities <entities>","Comma-separated list of specific entities to process (e.g., users,products)").option("-h, --headers <headers>","JSON string of headers to include in requests").option("-q, --quiet","Suppress logging output").option("-f, --format <format>","Override data format detection (csv, json, yaml, jsonl)").action(async e=>{if(!e.endpoint||!e.config){Si.help();return}let t=e.quiet?Be:Pn();try{t.info("Starting seed data generation...");let n=e.headers?JSON.parse(e.headers):{},i=new jc({endpoint:e.endpoint,headers:n,logger:t,formatOverride:e.format}),r=await i.ingest(e.config,{entities:e.entities});t.info(i.getMetricsSummary()),r.success||process.exit(1)}catch(n){t.error("Error:",n),process.exit(1)}});Si.parse();
|
|
233
284
|
/*! Bundled license information:
|
|
234
285
|
|
|
235
286
|
js-yaml/dist/js-yaml.mjs:
|