1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3865],{89882:(e,t,n)=>{n.d(t,{_:()=>i});function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}},58277:(e,t,n)=>{n.d(t,{default:()=>l});var i=n(89882),r=n(83303),s=n(93581),a=n(16782),o=n(99005),l=(0,a.forwardRef)(function(e,t){let{defaultLocale:n,href:l,locale:u,localeCookie:c,onClick:h,prefetch:p,unprefixed:d,...f}=e,E=(0,o.A)(),m=null!=u&&u!==E,T=u||E,v=function(){let[e,t]=(0,a.useState)();return(0,a.useEffect)(()=>{t(window.location.host)},[]),e}(),N=v&&d&&(d.domains[v]===T||!Object.keys(d.domains).includes(v)&&E===n&&!u)?d.pathname:l,y=(0,s.usePathname)();return m&&(p&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),p=!1),a.createElement(r.default,(0,i._)({ref:t,href:N,hrefLang:m?u:void 0,onClick:function(e){(function(e,t,n,i){if(!e||!(i!==n&&null!=i)||!t)return;let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:s,...a}=e;a.path||(a.path=""!==r?r:"/");let o="".concat(s,"=").concat(i,";");for(let[e,t]of Object.entries(a))o+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(o+="="+t),o+=";";document.cookie=o})(c,y,E,u),h&&h(e)},prefetch:p},f))})},10004:(e,t,n)=>{n.d(t,{default:()=>h});var i=n(89882),r=n(93581),s=n(16782),a=n(99005);function o(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function l(e,t){let n;return"string"==typeof e?n=u(t,e):(n={...e},e.pathname&&(n.pathname=u(t,e.pathname))),n}function u(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}n(55036);var c=n(58277);let h=(0,s.forwardRef)(function(e,t){let{href:n,locale:u,localeCookie:h,localePrefixMode:p,prefix:d,...f}=e,E=(0,r.usePathname)(),m=(0,a.A)(),T=u!==m,[v,N]=(0,s.useState)(()=>o(n)&&("never"!==p||T)?l(n,d):n);return(0,s.useEffect)(()=>{E&&N(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;if(!o(e))return e;let s=i===r||i.startsWith("".concat(r,"/"));return(t!==n||s)&&null!=r?l(e,r):e}(n,u,m,E,d))},[m,n,u,E,d]),s.createElement(c.default,(0,i._)({ref:t,href:v,locale:u,localeCookie:h},f))});h.displayName="ClientLink"},99005:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(93581),r=n(6804);let s="locale",a=!1;function o(){let e;let t=(0,i.useParams)();try{e=(0,r.useLocale)()}catch(n){if("string"!=typeof(null==t?void 0:t[s]))throw n;a||(console.warn("Deprecation warning: `useLocale` has returned a default from `useParams().locale` since no `NextIntlClientProvider` ancestor was found for the calling component. This behavior will be removed in the next major version. Please ensure all Client Components that use `next-intl` are wrapped in a `NextIntlClientProvider`."),a=!0),e=t[s]}return e}},29478:(e,t,n)=>{var i,r,s,a;n.d(t,{MZ:()=>o,l4:()=>eC});class o extends Error{static extractMessage(e){var t,n,i;return null!==(i=null===(n=e.errors)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.message)&&void 0!==i?i:"GraphQL Error (Code: ".concat(String(e.status),")")}constructor(e,t){super("".concat(o.extractMessage(e),": ").concat(JSON.stringify({response:e,request:t}))),Object.setPrototypeOf(this,o.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,o)}}n(55036);let l=e=>e.toUpperCase(),u=e=>"function"==typeof e?e():e,c=(e,t)=>e.map((e,n)=>[e,t[n]]),h=e=>{let t={};return e instanceof Headers?t=p(e):Array.isArray(e)?e.forEach(e=>{let[n,i]=e;n&&void 0!==i&&(t[n]=i)}):e&&(t=e),t},p=e=>{let t={};return e.forEach((e,n)=>{t[n]=e}),t},d=e=>{try{let t=e();if(E(t))return t.catch(e=>f(e));return t}catch(e){return f(e)}},f=e=>e instanceof Error?e:Error(String(e)),E=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then&&"catch"in e&&"function"==typeof e.catch&&"finally"in e&&"function"==typeof e.finally,m=e=>{throw Error("Unhandled case: ".concat(String(e)))},T=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),v=(e,t)=>
1e.documents?e:{documents:e,requestHeaders:t,signal:void 0},N=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0};!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"}(i||(i={}));let y="Accept",I="Content-Type",x="application/json",O="application/graphql-response+json",A=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),_=e=>{let t=e.toLowerCase();return t.includes(O)||t.includes(x)},g=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(D)};if(T(e))return{_tag:"Single",executionResult:D(e)};throw Error("Invalid execution result: result is not object or array. \nGot:\n".concat(String(e)))}catch(e){return e}},D=e=>{let t,n,i;if("object"!=typeof e||null===e)throw Error("Invalid execution result: result is not object");if("errors"in e){if(!T(e.errors)&&!Array.isArray(e.errors))throw Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!T(e.data)&&null!==e.data)throw Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!T(e.extensions))throw Error("Invalid execution result: extensions is not plain object");i=e.extensions}return{data:n,errors:t,extensions:i}},k=e=>"Batch"===e._tag?e.executionResults.some(S):S(e.executionResult),S=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,C=e=>"object"==typeof e&&null!==e&&"kind"in e&&e.kind===i.OPERATION_DEFINITION,b=/\r\n|[\n\r]/g;function R(e,t){let n=0,i=1;for(let r of e.body.matchAll(b)){if("number"==typeof r.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function L(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?n:0,l=t.column+o,u=`${e.name}:${a}:${l} 2`,c=i.split(/\r\n|[\n\r]/g),h=c[r];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return u+w([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+w([[`${a-1} |`,c[r-1]],[`${a} |`,h],["|","^".padStart(l)],[`${a+1} |`,c[r+1]]])}function w(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class F extends Error{constructor(e,...t){var n,i,r;let{nodes:s,source:a,positions:o,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=P(Array.isArray(s)?s:s?[s]:void 0);let h=P(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==h?void 0:null===(i=h[0])||void 0===i?void 0:i.source,this.positions=null!=o?o:null==h?void 0:h.map(e=>e.start),this.locations=o&&a?o.map(e=>R(a,e)):null==h?void 0:h.map(e=>R(e.source,e.start));let p=!function(e){return"object"==typeof e&&null!==e}(null==u?void 0:u.extensions)?void 0:null==u?void 0:u.extensions;this.extensions=null!==(r=null!=c?c:p)&&void 0!==r?r: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}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,F):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let n of this.nodes)if(n.loc){var t;e+="\n\n"+L((t=n.loc).source,R(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+L(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function P(e){return void 0===e||0===e.length?void 0:e}function M(e,t,n){return new F(`Syntax Error: ${n}`,{source:e,positions:[t]})}class U{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class B{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,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}}}
2let q={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},V=new Set(Object.keys(q));function j(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&V.has(t)}function K(e){return 9===e||32===e}function $(e){return e>=48&&e<=57}function G(e){return e>=97&&e<=122||e>=65&&e<=90}function Y(e){return G(e)||95===e}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(r||(r={})),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"}(s||(s={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",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"}(a||(a={}));class J{constructor(e){let t=new B(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,i=n.length,r=t;for(;r<i;){let t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return function(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let e=n.charCodeAt(r);if(10===e||13===e)break;if(z(e))++r;else if(H(n,r))r+=2;else break}return Z(e,a.COMMENT,t,r,n.slice(t+1,r))}(e,r);case 33:return Z(e,a.BANG,r,r+1);case 36:return Z(e,a.DOLLAR,r,r+1);case 38:return Z(e,a.AMP,r,r+1);case 40:return Z(e,a.PAREN_L,r,r+1);case 41:return Z(e,a.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return Z(e,a.SPREAD,r,r+3);break;case 58:return Z(e,a.COLON,r,r+1);case 61:return Z(e,a.EQUALS,r,r+1);case 64:return Z(e,a.AT,r,r+1);case 91:return Z(e,a.BRACKET_L,r,r+1);case 93:return Z(e,a.BRACKET_R,r,r+1);case 123:return Z(e,a.BRACE_L,r,r+1);case 124:return Z(e,a.PIPE,r,r+1);case 125:return Z(e,a.BRACE_R,r,r+1);case 34:if(34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2))return function(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,o=s,l="",u=[];for(;s<i;){let i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){l+=n.slice(o,s),u.push(l);let i=Z(e,a.BLOCK_STRING,t,s+3,(function(e){var t,n;let i=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],o=function(e){let t=0;for(;t<e.length&&K(e.charCodeAt(t));)++t;return t}(a);o!==a.length&&(r=null!==(n=r)&&void 0!==n?n:t,s=t,0!==t&&o<i&&(i=o))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=r)&&void 0!==t?t:0,s+1)})(u).join("\n"));return e.line+=u.length-1,e.lineStart=r,i}if(92===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)&&34===n.charCodeAt(s+3)){l+=n.slice(o,s),o=s+1,s+=4;continue}if(10===i||13===i){l+=n.slice(o,s),u.push(l),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,l="",o=s,r=s;continue}if(z(i))++s;else if(H(n,s))s+=2;else throw M(e.source,s,`Invalid character within String: ${W(e,s)}.`)}throw M(e.source,s,"Unterminated string.")}(e,r);return function(e,t){let n=e.source.body,i=n.length,r=t+1,s=r,o="";for(;r<i;){let i=n.charCodeAt(r);if(34===i)return o+=n.slice(s,r),Z(e,a.STRING,t,r+1,o);if(92===i){o+=n.slice(s,r);let t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?function(e,t){let n=e.source.body,i=0,r=3;for(;r<12;){let e=n.charCodeAt(t+r++);if(125===e){if(r<5||!z(i))break;return{value:String.fromCodePoint(i),size:r}}if((i=i<<4|en(e))<0)break}throw M(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}(e,r):function(e,t){let n=e.source.body,i=et(n,t+2);if(z(i))return{value:String.fromCodePoint(i),size:6};if(Q(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=et(n,t+8);if(X(e))return{value:String.fromCodePoint(i,e),size:12}}throw M(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,r):function(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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw M(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,r);o+=t.value,r+=t.size,s=r;continue}if(10===i||13===i)break;if(z(i))++r;else if(H(n,r))r+=2;else throw M(e.source,r,`Invalid character within String: ${W(e,r)}.`)}throw M(e.source,r,"Unterminated string.")}(e,r)}if($(t)||45===t)return function(e,t,n){let i=e.source.body,r=t,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if($(s=i.charCodeAt(++r)))throw M(e.source,r,`Invalid number, unexpected digit after 0: ${W(e,r)}.`)}else r=ee(e,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=ee(e,r,s),s=i.charCodeAt(r)),(69===s||101===s)&&(o=!0,(43===(s=i.charCodeAt(++r))||45===s)&&(s=i.charCodeAt(++r)),r=ee(e,r,s),s=i.charCodeAt(r)),46===s||Y(s))throw M(e.source,r,`Invalid number, expected digit but got: ${W(e,r)}.`);return Z(e,o?a.FLOAT:a.INT,t,r,i.slice(t,r))}(e,r,t);if(Y(t))return function(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){var s;if(G(s=n.charCodeAt(r))||$(s)||95===s)++r;else break}return Z(e,a.NAME,t,r,n.slice(t,r))}(e,r);throw M(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":z(t)||H(n,r)?`Unexpected character: ${W(e,r)}.`:`Invalid character: ${W(e,r)}.`)}return Z(e,a.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}}function z(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function H(e,t){return Q(e.charCodeAt(t))&&X(e.charCodeAt(t+1))}function Q(e){return e>=55296&&e<=56319}function X(e){return e>=56320&&e<=57343}function W(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return a.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Z(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new B(t,n,i,s,a,r)}function ee(e,t,n){if(!$(n))throw M(e.source,t,`Invalid number, expected digit but got: ${W(e,t)}.`);let i=e.source.body,r=t+1;for(;$(i.charCodeAt(r));)++r;return r}function et(e,t){return en(e.charCodeAt(t))<<12|en(e.charCodeAt(t+1))<<8|en(e.charCodeAt(t+2))<<4|en(e.charCodeAt(t+3))}function en(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ei(e,t){if(!e)throw Error(t)}function er(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:er(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(er(e[i],t));return 1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}(e,n);return function(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+er(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}let es=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
2if("object"==typeof e&&null!==e){var n;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=er(e,[]);throw Error(`Cannot use ${i} "${t}" from another module or realm. 3 4Ensure that there is only one instance of "graphql" in the node_modules 5directory. If different versions of "graphql" are the dependencies of other 6relied on modules, use "resolutions" to ensure only one version is installed. 7 8https://yarnpkg.com/en/docs/selective-version-resolutions 9 10Duplicate "graphql" modules cannot be used at the same time since different 11versions may have different capabilities and behavior. The data from one 12version used in the function from another could produce confusing and 13spurious results.`)}}return!1};class ea{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||ei(!1,`Body must be a string. Received: ${er(e,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||ei(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ei(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class eo{constructor(e,t={}){let n=es(e,ea)?e:new ea(e);this._lexer=new J(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:i.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===a.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()}if(e)throw M(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(t,{kind:i.OPERATION_DEFINITION,operation:r.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(a.NAME)&&(e=this.parseName()),this.node(t,{kind:i.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return r.QUERY;case"mutation":return r.MUTATION;case"subscription":return r.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:i.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:i.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:i.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:i.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:i.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:i.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:i.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this.advanceLexer(),this.node(t,{kind:i.INT,value:t.value});case a.FLOAT:return this.advanceLexer(),this.node(t,{kind:i.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:i.BOOLEAN,value:!0});case"false":return this.node(t,{kind:i.BOOLEAN,value:!1});case"null":return this.node(t,{kind:i.NULL});default:return this.node(t,{kind:i.ENUM,value:t.value})}case a.DOLLAR:if(e){if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let e=this._lexer.token.value;throw M(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:i.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:i.LIST,values:this.any(a.BRACKET_L,()=>this.parseValueLiteral(e),a.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:i.OBJECT,fields:this.any(a.BRACE_L,()=>this.parseObjectField(e),a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:i.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:i.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(a.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(a.BRACKET_R),e=this.node(t,{kind:i.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(t,{kind:i.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:i.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:i.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let n=this.parseNamedType();return this.node(e,{kind:i.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:i.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:i.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:i.FIELD_DEFINITION,description:t,name:n,arguments:r,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(a.COLON);let s=this.parseTypeReference();this.expectOptionalToken(a.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:i.INPUT_VALUE_DEFINITION,description:n,name:r,type:s,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:i.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:s,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:i.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:i.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw M(this._lexer.source,this._lexer.token.start,`${el(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.NAME)switch(e.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(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:i.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:i.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:i.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:s})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:i.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:s})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let n=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:i.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(s,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new U(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw M(this._lexer.source,t.start,`Expected ${eu(e)}, found ${el(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this.advanceLexer();else throw M(this._lexer.source,t.start,`Expected "${e}", found ${el(t)}.`)}expectOptionalKeyword
13(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return M(this._lexer.source,t.start,`Unexpected ${el(t)}.`)}any(e,t,n){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==a.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw M(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function el(e){let t=e.value;return eu(e.kind)+(null!=t?` "${t}"`:"")}function eu(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R?`"${e}"`:e}let ec=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eh(e){return ep[e.charCodeAt(0)]}let ep=["\\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"],ed=Object.freeze({}),ef={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eE(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eT("(",eE(e.variableDefinitions,", "),")"),n=eE([e.operation,eE([e.name,t]),eE(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+eT(" = ",n)+eT(" ",eE(i," "))},SelectionSet:{leave:({selections:e})=>em(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){let s=eT("",e,": ")+t,a=s+eT("(",eE(n,", "),")");return a.length>80&&(a=s+eT("(\n",ev(eE(n,"\n")),"\n)")),eE([a,eE(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eT(" ",eE(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eE(["...",eT("on ",e),eE(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${eT("(",eE(n,", "),")")} on ${t} ${eT("",eE(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||K(e.charCodeAt(0))),a=n.endsWith('\\"""'),o=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=o||l,c=!r||e.length>70||u||s||a,h="",p=r&&K(e.charCodeAt(0));return(c&&!p||s)&&(h+="\n"),h+=n,(c||u)&&(h+="\n"),'"""'+h+'"""'}(e):`"${e.replace(ec,eh)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eE(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eE(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eT("(",eE(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eT("",e,"\n")+eE(["schema",eE(t," "),em(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eT("",e,"\n")+eE(["scalar",t,eE(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>eT("",e,"\n")+eE(["type",t,eT("implements ",eE(n," & ")),eE(i," "),em(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>
13eT("",e,"\n")+t+(eN(n)?eT("(\n",ev(eE(n,"\n")),"\n)"):eT("(",eE(n,", "),")"))+": "+i+eT(" ",eE(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>eT("",e,"\n")+eE([t+": "+n,eT("= ",i),eE(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>eT("",e,"\n")+eE(["interface",t,eT("implements ",eE(n," & ")),eE(i," "),em(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>eT("",e,"\n")+eE(["union",t,eE(n," "),eT("= ",eE(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>eT("",e,"\n")+eE(["enum",t,eE(n," "),em(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eT("",e,"\n")+eE([t,eE(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>eT("",e,"\n")+eE(["input",t,eE(n," "),em(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>eT("",e,"\n")+"directive @"+t+(eN(n)?eT("(\n",ev(eE(n,"\n")),"\n)"):eT("(",eE(n,", "),")"))+(i?" repeatable":"")+" on "+eE(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eE(["extend schema",eE(e," "),em(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eE(["extend scalar",e,eE(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>eE(["extend type",e,eT("implements ",eE(t," & ")),eE(n," "),em(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>eE(["extend interface",e,eT("implements ",eE(t," & ")),eE(n," "),em(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eE(["extend union",e,eE(t," "),eT("= ",eE(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eE(["extend enum",e,eE(t," "),em(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eE(["extend input",e,eE(t," "),em(n)]," ")}};function eE(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function em(e){return eT("{\n",ev(eE(e,"\n")),"\n}")}function eT(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function ev(e){return eT(" ",e.replace(/\n/g,"\n "))}function eN(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}let ey=e=>{let t;let n=e.definitions.filter(C);if(1===n.length){var i;t=null===(i=n[0].name)||void 0===i?void 0:i.value}return t},eI=e=>{let t=!1,n=e.definitions.filter(C);return 1===n.length&&(t="mutation"===n[0].operation),t},ex=(e,t)=>{let n;let r="string"==typeof e?e:function(e,t,n=q){let r,s,a;let o=new Map;for(let e of Object.values(i))o.set(e,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let l=Array.isArray(e),u=[e],c=-1,h=[],p=e,d=[],f=[];do{var E,m,T;let e;let i=++c===u.length,v=i&&0!==h.length;if(i){if(s=0===f.length?void 0:d[d.length-1],p=a,a=f.pop(),v){if(l){p=p.slice();let e=0;for(let[t,n]of h){let i=t-e;null===n?(p.splice(i,1),e++):p[i]=n}}else for(let[e,t]of(p={...p},h))p[e]=t}c=r.index,u=r.keys,h=r.edits,l=r.inArray,r=r.prev}else if(a){if(null==(p=a[s=l?c:u[c]]))continue;d.push(s)}if(!Array.isArray(p)){j(p)||ei(!1,`Invalid AST Node: ${er(p,[])}.`);let n=i?null===(E=o.get(p.kind))||void 0===E?void 0:E.leave:null===(m=o.get(p.kind))||void 0===m?void 0:m.enter;if((e=null==n?void 0:n.call(t,p,s,a,d,f))===ed)break;if(!1===e){if(!i){d.pop();continue}}else if(void 0!==e&&(h.push([s,e]),!i)){if(j(e))p=e;else{d.pop();continue}}}void 0===e&&v&&h.push([s,p]),i?d.pop():(r={inArray:l,index:c,keys:u,edits:h,prev:r},u=(l=Array.isArray(p))?p:null!==(T=n[p.kind])&&void 0!==T?T:[],c=-1,h=[],a&&f.push(a),a=p)}while(void 0!==r);return 0!==h.length?h[h.length-1][1]:e}(e,ef),s=!1;if(t)return{expression:r,isMutation:s,operationName:n};let a=d(()=>"string"==typeof e?function(e,t){let n=new eo(e,void 0),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}(e):e);return a instanceof Error?{expression:r,isMutation:s,operationName:n}:{expression:r,operationName:n=ey(a),isMutation:s=eI(a)}},eO=JSON,eA=async e=>{var t,n,i,r;let s={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":l(null!==(t=e.method)&&void 0!==t?t:"post"):e.request.hasMutations?"POST":l(null!==(n=e.method)&&void 0!==n?n:"post"),fetchOptions:{...e.fetchOptions,errorPolicy:null!==(i=e.fetchOptions.errorPolicy)&&void 0!==i?i:"none"}},a=eD(s.method),u=await a(s);if(!u.ok)return new o({status:u.status,headers:u.headers},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});let c=await eg(u,null!==(r=e.fetchOptions.jsonSerializer)&&void 0!==r?r:eO);if(c instanceof Error)throw c;let h={status:u.status,headers:u.headers};if(k(c)&&"none"===s.fetchOptions.errorPolicy)return new o("Batch"===c._tag?{...c.executionResults,...h}:{...c.executionResult,...h},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});switch(c._tag){case"Single":return{...h,...e_(s)(c.executionResult)};case"Batch":return{...h,data:c.executionResults.map(e_(s))};default:m(c)}},e_=e=>t=>({extensions:t.extensions,data:t.data,errors:"all"===e.fetchOptions.errorPolicy?t.errors:void 0}),eg=async(e,t)=>{let n=e.headers.get(I),i=await e.text();return n&&_(n)?g(t.parse(i)):g(i)},eD=e=>async t=>{var n,i;let r;let s=new Headers(t.headers),a=null;s.has(y)||s.set(y,[O,x].join(", ")),"POST"===e?"string"!=typeof(r=(null!==(n=t.fetchOptions.jsonSerializer)&&void 0!==n?n:eO).stringify(ek(t)))||s.has(I)||s.set(I,x):a=eS(t);let o={method:e,headers:s,body:r,...t.fetchOptions},l=new URL(t.url),u=o;if(t.middleware){let{url:e,...n}=await Promise.resolve(t.middleware({...o,url:t.url,operationName:"Single"===t.request._tag?t.request.document.operationName:void 0,variables:t.request.variables}));l=new URL(e),u=n}a&&a.forEach((e,t)=>{l.searchParams.append(t,e)});let c=null!==(i=t.fetch)&&void 0!==i?i:fetch;return await c(l,u)},ek=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":var t;return c(e.request.query,null!==(t=e.request.variables)&&void 0!==t?t:[]).map(e=>{let[t,n]=e;return{query:t,variables:n}});default:throw m(e.request)}},eS=e=>{var t,n,i;let r=null!==(t=e.fetchOptions.jsonSerializer)&&void 0!==t?t:eO,s=new URLSearchParams;switch(e.request._tag){case"Single":return s.append("query",A(e.request.document.expression)),e.request.variables&&s.append("variables",r.stringify(e.request.variables)),e.request.document.operationName&&s.append("operationName",e.request.document.operationName),s;case"Batch":{let t=null!==(i=null===(n=e.request.variables)||void 0===n?void 0:n.map(e=>r.stringify(e)))&&void 0!==i?i:[],a=c(e.request.query.map(A),t).map(e=>{let[t,n]=e;return{query:t,variables:n}});return s.append("query",r.stringify(a)),s}default:throw m(e.request)}};class eC{async request(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let[r,s]=n,a=eb(e,r,s),{headers:o,fetch:l=globalThis.fetch,method:c="POST",requestMiddleware:p,responseMiddleware:d,excludeOperationName:f,...E}=this.requestConfig,{url:m}=this;void 0!==a.signal&&(E.signal=a.signal);let T=ex(a.document,f),v=await eA({url:m,request:{_tag:"Single",document:T,variables:a.variables},headers:{...h(u(o)),...h(a.requestHeaders)},fetch:l,method:c,fetchOptions:E,middleware:p});if(d&&await d(v,{operationName:T.operationName,variables:a.variables,url:this.url}),v instanceof Error)throw v;return v.data}async batchRequests(e,t){var n;let i=v(e,t),{headers:r,excludeOperationName:s,...a}=this.requestConfig;void 0!==i.signal&&(a.signal=i.signal);let o=i.documents.map(e=>{let{document:t}=e;return ex(t,s)}),l=o.map(e=>{let{expression:t}=e;return t}),c=o.some(e=>{let{isMutation:t}=e;return t}),p=i.documents.map(e=>{let{variables:t}=e;return t}),d=await eA({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:c,variables:p},headers:{...h(u(r)),...h(i.requestHeaders)},fetch:null!==(n=this.requestConfig.fetch)&&void 0!==n?n:globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:p,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){let{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}constructor(e,t={}){var n=this;this.rawRequest=async function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let[r,s,a]=t,o=N(r,s,a),{headers:l,fetch:c=globalThis.fetch,method:p="POST",requestMiddleware:d,responseMiddleware:f,excludeOperationName:E,...m}=n.requestConfig,{url:T}=n;void 0!==o.signal&&(m.signal=o.signal);let v=ex(o.query,E),y=await eA({url:T,request:{_tag:"Single",document:v,variables:o.variables},headers:{...h(u(l)),...h(o.requestHeaders)},fetch:c,method:p,fetchOptions:m,middleware:d});if(f&&await f(y,{operationName:v.operationName,variables:s,url:n.url}),y instanceof Error)throw y;return y},this.url=e,this.requestConfig=t}}let eb=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.