1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3611,(e,t,i)=>{var r="u">typeof globalThis&&globalThis||"u">typeof self&&self||e.g,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(t){var i=void 0!==n&&n||"u">typeof self&&self||e.g||{},r={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};if(r.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function p(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function d(e){var t=new FileReader,i=p(t);return t.readAsArrayBuffer(e),i}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(r.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;r.arrayBuffer&&r.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r.blob)return this.blob().then(d);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r,n,s=h(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,i=p(t=new FileReader),n=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,n),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=l(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=l(t)},c.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),u(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),u(e)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function m(e,t){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var r,n,s=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),E.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in i)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function T(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var N=[301,302,303,307,308];v.redirect=function(e,t){if(-1===N.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},t.DOMException=i.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(e,n){return new Promise(function(s,o){var u=new m(e,n);if(u.signal&&u.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function p(){h.abort()}if(h.onload=function(){var e,t,i={statusText:h.statusText,headers:(e=h.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var i=e.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();try{t.append(r,n)}catch(e){console.warn("Response "+e.message)}}}),t)};0===u.url.indexOf("file://")&&(h.status<200||h.status>599)?i.status=200:i.status=h.status,i.url="responseURL"in h?h.responseURL:i.headers.get("X-Request-URL");var r="response"in h?h.response:h.responseText;setTimeout(function(){s(new v(r,i))},0)},h.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},h.ontimeout=function(){setTimeout(function(){o(TypeError("Network request timed out"))},0)},h.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},h.open(u.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?h.withCredentials=!0:"omit"===u.credentials&&(h.withCredentials=!1),"responseType"in h&&(r.blob?h.responseType="blob":r.arrayBuffer&&(h.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof c||i.Headers&&n.headers instanceof i.Headers)){var d=[];
1Object.getOwnPropertyNames(n.headers).forEach(function(e){d.push(a(e)),h.setRequestHeader(e,l(n.headers[e]))}),u.headers.forEach(function(e,t){-1===d.indexOf(t)&&h.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){h.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",p),h.onreadystatechange=function(){4===h.readyState&&u.signal.removeEventListener("abort",p)}),h.send(void 0===u._bodyInit?null:u._bodyInit)})}I.polyfill=!0,i.fetch||(i.fetch=I,i.Headers=c,i.Request=m,i.Response=v),t.Headers=c,t.Request=m,t.Response=v,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var s=r.fetch?r:n;(i=s.fetch).default=s.fetch,i.fetch=s.fetch,i.Headers=s.Headers,i.Request=s.Request,i.Response=s.Response,t.exports=i},95104,17685,e=>{"use strict";let t=JSON,i=/\r\n|[\n\r]/g;function r(e,t){let r=0,n=1;for(let s of e.body.matchAll(i)){if("number"==typeof s.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),s.index>=t)break;r=s.index+s[0].length,n+=1}return{line:n,column:t+1-r}}function n(e,t){let i=e.locationOffset.column-1,r="".padStart(i)+e.body,n=t.line-1,o=e.locationOffset.line-1,a=t.line+o,l=1===t.line?i:0,u=t.column+l,c=`${e.name}:${a}:${u} 2`,h=r.split(/\r\n|[\n\r]/g),p=h[n];if(p.length>120){let e=Math.floor(u/80),t=[];for(let e=0;e<p.length;e+=80)t.push(p.slice(e,e+80));return c+s([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(u%80)],["|",t[e+1]]])}return c+s([[`${a-1} |`,h[n-1]],[`${a} |`,p],["|","^".padStart(u)],[`${a+1} |`,h[n+1]]])}function s(e){let t=e.filter(([e,t])=>void 0!==t),i=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(i)+(t?" "+t:"")).join("\n")}class o extends Error{constructor(e,...t){var i,n,s;const{nodes:l,source:u,positions:c,path:h,originalError:p,extensions:d}=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!=h?h:void 0,this.originalError=null!=p?p:void 0,this.nodes=a(Array.isArray(l)?l:l?[l]:void 0);const f=a(null==(i=this.nodes)?void 0:i.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==f||null==(n=f[0])?void 0:n.source,this.positions=null!=c?c:null==f?void 0:f.map(e=>e.start),this.locations=c&&u?c.map(e=>r(u,e)):null==f?void 0:f.map(e=>r(e.source,e.start));const y=!function(e){return"object"==typeof e&&null!==e}(null==p?void 0:p.extensions)||null==p?void 0:p.extensions;this.extensions=null!=(s=null!=d?d:y)?s: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!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):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 i of this.nodes){var t;i.loc&&(e+="\n\n"+n((t=i.loc).source,r(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+n(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 a(e){return void 0===e||0===e.length?void 0:e}function l(e,t,i){return new o(`Syntax Error: ${i}`,{source:e,positions:[t]})}class u{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class c{constructor(e,t,i,r,n,s){this.kind=e,this.start=t,this.end=i,this.line=r,this.column=n,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}}}let h={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:[],Float
2Value:[],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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"]},p=new Set(Object.keys(h));function d(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&p.has(t)}function f(e){return 9===e||32===e}function y(e){return e>=48&&e<=57}function E(e){return e>=97&&e<=122||e>=65&&e<=90}function m(e){return E(e)||95===e}(J=W||(W={})).QUERY="query",J.MUTATION="mutation",J.SUBSCRIPTION="subscription",(z=Z||(Z={})).QUERY="QUERY",z.MUTATION="MUTATION",z.SUBSCRIPTION="SUBSCRIPTION",z.FIELD="FIELD",z.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",z.FRAGMENT_SPREAD="FRAGMENT_SPREAD",z.INLINE_FRAGMENT="INLINE_FRAGMENT",z.VARIABLE_DEFINITION="VARIABLE_DEFINITION",z.SCHEMA="SCHEMA",z.SCALAR="SCALAR",z.OBJECT="OBJECT",z.FIELD_DEFINITION="FIELD_DEFINITION",z.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",z.INTERFACE="INTERFACE",z.UNION="UNION",z.ENUM="ENUM",z.ENUM_VALUE="ENUM_VALUE",z.INPUT_OBJECT="INPUT_OBJECT",z.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",z.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",(Q=ee||(ee={})).NAME="Name",Q.DOCUMENT="Document",Q.OPERATION_DEFINITION="OperationDefinition",Q.VARIABLE_DEFINITION="VariableDefinition",Q.SELECTION_SET="SelectionSet",Q.FIELD="Field",Q.ARGUMENT="Argument",Q.FRAGMENT_SPREAD="FragmentSpread",Q.INLINE_FRAGMENT="InlineFragment",Q.FRAGMENT_DEFINITION="FragmentDefinition",Q.VARIABLE="Variable",Q.INT="IntValue",Q.FLOAT="FloatValue",Q.STRING="StringValue",Q.BOOLEAN="BooleanValue",Q.NULL="NullValue",Q.ENUM="EnumValue",Q.LIST
2="ListValue",Q.OBJECT="ObjectValue",Q.OBJECT_FIELD="ObjectField",Q.DIRECTIVE="Directive",Q.NAMED_TYPE="NamedType",Q.LIST_TYPE="ListType",Q.NON_NULL_TYPE="NonNullType",Q.SCHEMA_DEFINITION="SchemaDefinition",Q.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",Q.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",Q.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",Q.FIELD_DEFINITION="FieldDefinition",Q.INPUT_VALUE_DEFINITION="InputValueDefinition",Q.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",Q.UNION_TYPE_DEFINITION="UnionTypeDefinition",Q.ENUM_TYPE_DEFINITION="EnumTypeDefinition",Q.ENUM_VALUE_DEFINITION="EnumValueDefinition",Q.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",Q.DIRECTIVE_DEFINITION="DirectiveDefinition",Q.SCHEMA_EXTENSION="SchemaExtension",Q.DIRECTIVE_EXTENSION="DirectiveExtension",Q.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",Q.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",Q.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",Q.UNION_TYPE_EXTENSION="UnionTypeExtension",Q.ENUM_TYPE_EXTENSION="EnumTypeExtension",Q.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",Q.TYPE_COORDINATE="TypeCoordinate",Q.MEMBER_COORDINATE="MemberCoordinate",Q.ARGUMENT_COORDINATE="ArgumentCoordinate",Q.DIRECTIVE_COORDINATE="DirectiveCoordinate",Q.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(X=et||(et={})).SOF="<SOF>",X.EOF="<EOF>",X.BANG="!",X.DOLLAR="$",X.AMP="&",X.PAREN_L="(",X.PAREN_R=")",X.DOT=".",X.SPREAD="...",X.COLON=":",X.EQUALS="=",X.AT="@",X.BRACKET_L="[",X.BRACKET_R="]",X.BRACE_L="{",X.PIPE="|",X.BRACE_R="}",X.NAME="Name",X.INT="Int",X.FLOAT="Float",X.STRING="String",X.BLOCK_STRING="BlockString",X.COMMENT="Comment";class T{constructor(e){const t=new c(et.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!==et.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let i=e.source.body,r=i.length,n=t;for(;n<r;){let t=i.charCodeAt(n);switch(t){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:10===i.charCodeAt(n+1)?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return function(e,t){let i=e.source.body,r=i.length,n=t+1;for(;n<r;){let e=i.charCodeAt(n);if(10===e||13===e)break;if(v(e))++n;else if(N(i,n))n+=2;else break}return b(e,et.COMMENT,t,n,i.slice(t+1,n))}(e,n);case 33:return b(e,et.BANG,n,n+1);case 36:return b(e,et.DOLLAR,n,n+1);case 38:return b(e,et.AMP,n,n+1);case 40:return b(e,et.PAREN_L,n,n+1);case 41:return b(e,et.PAREN_R,n,n+1);case 46:if(46===i.charCodeAt(n+1)&&46===i.charCodeAt(n+2))return b(e,et.SPREAD,n,n+3);break;case 58:return b(e,et.COLON,n,n+1);case 61:return b(e,et.EQUALS,n,n+1);case 64:return b(e,et.AT,n,n+1);case 91:return b(e,et.BRACKET_L,n,n+1);case 93:return b(e,et.BRACKET_R,n,n+1);case 123:return b(e,et.BRACE_L,n,n+1);case 124:return b(e,et.PIPE,n,n+1);case 125:return b(e,et.BRACE_R,n,n+1);case 34:if(34===i.charCodeAt(n+1)&&34===i.charCodeAt(n+2))return function(e,t){let i=e.source.body,r=i.length,n=e.lineStart,s=t+3,o=s,a="",u=[];for(;s<r;){let r=i.charCodeAt(s);if(34===r&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)){a+=i.slice(o,s),u.push(a);let r=b(e,et.BLOCK_STRING,t,s+3,(function(e){var t,i;let r=Number.MAX_SAFE_INTEGER,n=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],a=function(e){let t=0;for(;t<e.length&&f(e.charCodeAt(t));)++t;return t}(o);a!==o.length&&(n=null!=(i=n)?i:t,s=t,0!==t&&a<r&&(r=a))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!=(t=n)?t:0,s+1)})(u).join("\n"));return e.line+=u.length-1,e.lineStart=n,r}if(92===r&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)&&34===i.charCodeAt(s+3)){a+=i.slice(o,s),o=s+1,s+=4;continue}if(10===r||13===r){a+=i.slice(o,s),u.push(a),13===r&&10===i.charCodeAt(s+1)?s+=2:++s,a="",o=s,n=s;continue}if(v(r))++s;else if(N(i,s))s+=2;else throw l(e.source,s,`Invalid character within String: ${O(e,s)}.`)}throw l(e.source,s,"Unterminated string.")}(e,n);return function(e,t){let i=e.source.body,r=i.length,n=t+1,s=n,o="";for(;n<r;){let r=i.charCodeAt(n);if(34===r)return o+=i.slice(s,n),b(e,et.STRING,t,n+1,o);if(92===r){o+=i.slice(s,n);let t=117===i.charCodeAt(n+1)?123===i.charCodeAt(n+2)?function(e,t){let i=e.source.body,r=0,n=3;for(;n<12;){let e=i.charCodeAt(t+n++);if(125===e){if(n<5||!v(r))break;return{value:String.fromCodePoint(r),size:n}}if((r=r<<4|D(e))<0)break}
2throw l(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+n)}".`)}(e,n):function(e,t){let i=e.source.body,r=x(i,t+2);if(v(r))return{value:String.fromCodePoint(r),size:6};if(I(r)&&92===i.charCodeAt(t+6)&&117===i.charCodeAt(t+7)){let e=x(i,t+8);if(A(e))return{value:String.fromCodePoint(r,e),size:12}}throw l(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+6)}".`)}(e,n):function(e,t){let i=e.source.body;switch(i.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 l(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}(e,n);o+=t.value,n+=t.size,s=n;continue}if(10===r||13===r)break;if(v(r))++n;else if(N(i,n))n+=2;else throw l(e.source,n,`Invalid character within String: ${O(e,n)}.`)}throw l(e.source,n,"Unterminated string.")}(e,n)}if(y(t)||45===t)return function(e,t,i){let r=e.source.body,n=t,s=i,o=!1;if(45===s&&(s=r.charCodeAt(++n)),48===s){if(y(s=r.charCodeAt(++n)))throw l(e.source,n,`Invalid number, unexpected digit after 0: ${O(e,n)}.`)}else n=_(e,n,s),s=r.charCodeAt(n);if(46===s&&(o=!0,s=r.charCodeAt(++n),n=_(e,n,s),s=r.charCodeAt(n)),(69===s||101===s)&&(o=!0,(43===(s=r.charCodeAt(++n))||45===s)&&(s=r.charCodeAt(++n)),n=_(e,n,s),s=r.charCodeAt(n)),46===s||m(s))throw l(e.source,n,`Invalid number, expected digit but got: ${O(e,n)}.`);return b(e,o?et.FLOAT:et.INT,t,n,r.slice(t,n))}(e,n,t);if(m(t))return function(e,t){let i=e.source.body,r=i.length,n=t+1;for(;n<r;){var s;if(E(s=i.charCodeAt(n))||y(s)||95===s)++n;else break}return b(e,et.NAME,t,n,i.slice(t,n))}(e,n);throw l(e.source,n,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":v(t)||N(i,n)?`Unexpected character: ${O(e,n)}.`:`Invalid character: ${O(e,n)}.`)}return b(e,et.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===et.COMMENT)return e}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function N(e,t){return I(e.charCodeAt(t))&&A(e.charCodeAt(t+1))}function I(e){return e>=55296&&e<=56319}function A(e){return e>=56320&&e<=57343}function O(e,t){let i=e.source.body.codePointAt(t);if(void 0===i)return et.EOF;if(i>=32&&i<=126){let e=String.fromCodePoint(i);return'"'===e?"'\"'":`"${e}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function b(e,t,i,r,n){let s=e.line,o=1+i-e.lineStart;return new c(t,i,r,s,o,n)}function _(e,t,i){if(!y(i))throw l(e.source,t,`Invalid number, expected digit but got: ${O(e,t)}.`);let r=e.source.body,n=t+1;for(;y(r.charCodeAt(n));)++n;return n}function x(e,t){return D(e.charCodeAt(t))<<12|D(e.charCodeAt(t+1))<<8|D(e.charCodeAt(t+2))<<4|D(e.charCodeAt(t+3))}function D(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function g(e,t){if(!e)throw Error(t)}function C(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){let i;if(null===e)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:C(t,r)}else if(Array.isArray(e)){var n,s,o=e,a=r;if(0===o.length)return"[]";if(a.length>2)return"[Array]";let t=Math.min(10,o.length),i=o.length-t,l=[];for(let e=0;e<t;++e)l.push(C(o[e],a));return 1===i?l.push("... 1 more item"):i>1&&l.push(`... ${i} more items`),"["+l.join(", ")+"]"}return n=e,s=r,0===(i=Object.entries(n)).length?"{}":s.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}(n)+"]":"{ "+i.map(([e,t])=>e+": "+C(t,s)).join(", ")+" }"}(e,t);default:return String(e)}}e.i(47815);let S=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var i;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(i=e.constructor)?void 0:i.name)){let t=C(e,[]);throw Error(`Cannot use ${r} "${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 k{constructor(e,t="GraphQL request",i={line:1,column:1}){"string"==typeof e||g(!1,`Body must be a string. Received: ${function(e){return C(e,[])}(e)}.`),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||g(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||g(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class R{constructor(e,t={}){const{lexer:i,...r}=t;if(i)this._lexer=i;else{const t=!function(e){return S(e,k)}(e)?new k(e):e;this._lexer=new T(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(et.NAME);return this.node(e,{kind:ee.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ee.DOCUMENT,definitions:this.many(et.SOF,this.parseDefinition,et.EOF)})}parseDefinition(){if(this.peek(et.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;
13if(e&&t.kind===et.BRACE_L)throw l(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===et.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(e)throw l(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(et.BRACE_L))return this.node(t,{kind:ee.OPERATION_DEFINITION,operation:W.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseDescription(),r=this.parseOperationType();return this.peek(et.NAME)&&(e=this.parseName()),this.node(t,{kind:ee.OPERATION_DEFINITION,operation:r,description:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(et.NAME);switch(e.value){case"query":return W.QUERY;case"mutation":return W.MUTATION;case"subscription":return W.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(et.PAREN_L,this.parseVariableDefinition,et.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ee.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(et.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(et.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(et.DOLLAR),this.node(e,{kind:ee.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ee.SELECTION_SET,selections:this.many(et.BRACE_L,this.parseSelection,et.BRACE_R)})}parseSelection(){return this.peek(et.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,i=this._lexer.token,r=this.parseName();return this.expectOptionalToken(et.COLON)?(e=r,t=this.parseName()):t=r,this.node(i,{kind:ee.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(et.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(et.PAREN_L,t,et.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,i=this.parseName();return this.expectToken(et.COLON),this.node(t,{kind:ee.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(et.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(et.NAME)?this.node(e,{kind:ee.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ee.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:ee.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(e,{kind:ee.FRAGMENT_DEFINITION,description:t,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 et.BRACKET_L:return this.parseList(e);case et.BRACE_L:return this.parseObject(e);case et.INT:return this.advanceLexer(),this.node(t,{kind:ee.INT,value:t.value});case et.FLOAT:return this.advanceLexer(),this.node(t,{kind:ee.FLOAT,value:t.value});case et.STRING:case et.BLOCK_STRING:return this.parseStringLiteral();case et.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ee.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ee.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ee.NULL});default:return this.node(t,{kind:ee.ENUM,value:t.value})}case et.DOLLAR:if(e){if(this.expectToken(et.DOLLAR),this._lexer.token.kind===et.NAME){let e=this._lexer.token.value;throw l(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:ee.STRING,value:e.value,block:e.kind===et.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:ee.LIST,values:this.any(et.BRACKET_L,t,et.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:ee.OBJECT,fields:this.any(et.BRACE_L,t,et.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(et.COLON),this.node(t,{kind:ee.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(et.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(et.AT),this.node(t,{kind:ee.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(et.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(et.BRACKET_R),e=this.node(t,{kind:ee.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(et.BANG)?this.node(t,{kind:ee.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:ee.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(et.STRING)||this.peek(et.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(et.BRACE_L,this.parseOperationTypeDefinition,et.BRACE_R);
13return this.node(e,{kind:ee.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(et.COLON);let i=this.parseNamedType();return this.node(e,{kind:ee.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:ee.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:ee.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(et.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(et.BRACE_L,this.parseFieldDefinition,et.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(et.COLON);let n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:ee.FIELD_DEFINITION,description:t,name:i,arguments:r,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(et.PAREN_L,this.parseInputValueDef,et.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,i=this.parseDescription(),r=this.parseName();this.expectToken(et.COLON);let n=this.parseTypeReference();this.expectOptionalToken(et.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:ee.INPUT_VALUE_DEFINITION,description:i,name:r,type:n,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:ee.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:ee.UNION_TYPE_DEFINITION,description:t,name:i,directives:r,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(et.EQUALS)?this.delimitedMany(et.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:ee.ENUM_TYPE_DEFINITION,description:t,name:i,directives:r,values:n})}parseEnumValuesDefinition(){return this.optionalMany(et.BRACE_L,this.parseEnumValueDefinition,et.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:ee.ENUM_VALUE_DEFINITION,description:t,name:i,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw l(this._lexer.source,this._lexer.token.start,`${w(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 i=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:ee.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:r,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(et.BRACE_L,this.parseInputValueDef,et.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===et.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.optionalMany(et.BRACE_L,this.parseOperationTypeDefinition,et.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();
13return this.node(e,{kind:ee.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:ee.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===i.length&&0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ee.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===i.length&&0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ee.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ee.UNION_TYPE_EXTENSION,name:t,directives:i,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ee.ENUM_TYPE_EXTENSION,name:t,directives:i,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ee.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:r})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(et.AT);let t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:ee.DIRECTIVE_EXTENSION,name:t,directives:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(et.AT);let i=this.parseName(),r=this.parseArgumentDefs(),n=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:ee.DIRECTIVE_DEFINITION,description:t,name:i,arguments:r,directives:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(et.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(Z,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,i=this._lexer.token,r=this.expectOptionalToken(et.AT),n=this.parseName();return(!r&&this.expectOptionalToken(et.DOT)&&(e=this.parseName()),(r||e)&&this.expectOptionalToken(et.PAREN_L)&&(t=this.parseName(),this.expectToken(et.COLON),this.expectToken(et.PAREN_R)),r)?t?this.node(i,{kind:ee.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:t}):this.node(i,{kind:ee.DIRECTIVE_COORDINATE,name:n}):e?t?this.node(i,{kind:ee.ARGUMENT_COORDINATE,name:n,fieldName:e,argumentName:t}):this.node(i,{kind:ee.MEMBER_COORDINATE,name:n,memberName:e}):this.node(i,{kind:ee.TYPE_COORDINATE,name:n})}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 l(this._lexer.source,t.start,`Expected ${L(e)}, found ${w(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===et.NAME&&t.value===e)this.advanceLexer();else throw l(this._lexer.source,t.start,`Expected "${e}", found ${w(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===et.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return l(this._lexer.source,t.start,`Unexpected ${w(t)}.`)}any(e,t,i){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(i);)r.push(t.call(this));return r}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(i))return e}return[]}many(e,t,i){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(i))return r}delimitedMany(e,t){this.expectOptionalToken(e);let i=[];do i.push(t.call(this));while(this.expectOptionalToken(e))return i}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==et.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>
13e))throw l(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function w(e){let t=e.value;return L(e.kind)+(null!=t?` "${t}"`:"")}function L(e){return e===et.BANG||e===et.DOLLAR||e===et.AMP||e===et.PAREN_L||e===et.PAREN_R||e===et.DOT||e===et.SPREAD||e===et.COLON||e===et.EQUALS||e===et.AT||e===et.BRACKET_L||e===et.BRACKET_R||e===et.BRACE_L||e===et.PIPE||e===et.BRACE_R?`"${e}"`:e}let P=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function F(e){return B[e.charCodeAt(0)]}let B=["\\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"],U=Object.freeze({}),M={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>j(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=$(e.variableDefinitions)?q("(\n",j(e.variableDefinitions,"\n"),"\n)"):q("(",j(e.variableDefinitions,", "),")"),i=q("",e.description,"\n")+j([e.operation,j([e.name,t]),j(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:r,description:n})=>q("",n,"\n")+e+": "+t+q(" = ",i)+q(" ",j(r," "))},SelectionSet:{leave:({selections:e})=>V(e)},Field:{leave({alias:e,name:t,arguments:i,directives:r,selectionSet:n}){let s=q("",e,": ")+t,o=s+q("(",j(i,", "),")");return o.length>80&&(o=s+q("(\n",K(j(i,"\n")),"\n)")),j([o,j(r," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+q(" ",j(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>j(["...",q("on ",e),j(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:r,selectionSet:n,description:s})=>q("",s,"\n")+`fragment ${e}${q("(",j(i,", "),")")} `+`on ${t} ${q("",j(r," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>{let i,r,n,s,o,a,l,u,c,h,p;return t?(n=1===(r=(i=e.replace(/"""/g,'\\"""')).split(/\r\n|[\n\r]/g)).length,s=r.length>1&&r.slice(1).every(e=>0===e.length||f(e.charCodeAt(0))),o=i.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!n||e.length>70||u||s||o,h="",p=n&&f(e.charCodeAt(0)),(c&&!p||s)&&(h+="\n"),h+=i,(c||u)&&(h+="\n"),'"""'+h+'"""'):`"${e.replace(P,F)}"`}},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+j(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+j(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+q("(",j(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>q("",e,"\n")+j(["schema",j(t," "),V(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>q("",e,"\n")+j(["scalar",t,j(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:r,fields:n})=>q("",e,"\n")+j(["type",t,q("implements ",j(i," & ")),j(r," "),V(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:r,directives:n})=>
13q("",e,"\n")+t+($(i)?q("(\n",K(j(i,"\n")),"\n)"):q("(",j(i,", "),")"))+": "+r+q(" ",j(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:r,directives:n})=>q("",e,"\n")+j([t+": "+i,q("= ",r),j(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:r,fields:n})=>q("",e,"\n")+j(["interface",t,q("implements ",j(i," & ")),j(r," "),V(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:r})=>q("",e,"\n")+j(["union",t,j(i," "),q("= ",j(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:r})=>q("",e,"\n")+j(["enum",t,j(i," "),V(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>q("",e,"\n")+j([t,j(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:r})=>q("",e,"\n")+j(["input",t,j(i," "),V(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,directives:r,repeatable:n,locations:s})=>q("",e,"\n")+"directive @"+t+($(i)?q("(\n",K(j(i,"\n")),"\n)"):q("(",j(i,", "),")"))+q(" ",j(r," "))+(n?" repeatable":"")+" on "+j(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>j(["extend schema",j(e," "),V(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>j(["extend scalar",e,j(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:r})=>j(["extend type",e,q("implements ",j(t," & ")),j(i," "),V(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:r})=>j(["extend interface",e,q("implements ",j(t," & ")),j(i," "),V(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>j(["extend union",e,j(t," "),q("= ",j(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>j(["extend enum",e,j(t," "),V(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>j(["extend input",e,j(t," "),V(i)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>j(["extend directive @"+e,j(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>j([e,q(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:i})=>j([e,q(".",t),q("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>j(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>j(["@",e,q("(",t,":)")])}};function j(e,t=""){var i;return null!=(i=null==e?void 0:e.filter(e=>e).join(t))?i:""}function V(e){return q("{\n",K(j(e,"\n")),"\n}")}function q(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function K(e){return q(" ",e.replace(/\n/g,"\n "))}function $(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let G=e=>{let t,i=e.definitions.filter(e=>"OperationDefinition"===e.kind);return 1===i.length&&(t=i[0]?.name?.value),t},Y=e=>{if("string"==typeof e){let t;try{let i,r,n=(r=(i=new R(e,void 0)).parseDocument(),Object.defineProperty(r,"tokenCount",{enumerable:!1,value:i.tokenCount}),r);t=G(n)}catch(e){}return{query:e,operationName:t}}let t=G(e);return{query:function(e,t,i=h){let r,n,s,o=new Map;for(let e of Object.values(ee))o.set(e,function(e,t){let i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let a=Array.isArray(e),l=[e],u=-1,c=[],p=e,f=[],y=[];do{var E,m,T;let e,h=++u===l.length,v=h&&0!==c.length;if(h){if(n=0===y.length?void 0:f[f.length-1],p=s,s=y.pop(),v)if(a){p=p.slice();let e=0;for(let[t,i]of c){let r=t-e;null===i?(p.splice(r,1),e++):p[r]=i}}else for(let[e,t]of(p={...p},c))p[e]=t;u=r.index,l=r.keys,c=r.edits,a=r.inArray,r=r.prev}else if(s){if(null==(p=s[n=a?u:l[u]]))continue;f.push(n)}if(!Array.isArray(p)){d(p)||g(!1,`Invalid AST Node: ${C(p,[])}.`);let i=h?null==(E=o.get(p.kind))?void 0:E.leave:null==(m=o.get(p.kind))?void 0:m.enter;if((e=null==i?void 0:i.call(t,p,n,s,f,y))===U)break;if(!1===e){if(!h){f.pop();continue}}else if(void 0!==e&&(c.push([n,e]),!h))if(d(e))p=e;else{f.pop();continue}}void 0===e&&v&&c.push([n,p]),h?f.pop():(r={inArray:a,index:u,keys:l,edits:c,prev:r},l=(a=Array.isArray(p))?p:null!=(T=i[p.kind])?T:[],u=-1,c=[],s&&y.push(s),s=p)}while(void 0!==r)return 0!==c.length?c[c.length-1][1]:e}(e,M),operationName:t}};
13class H extends Error{constructor(e,t){super(`${H.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,H.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,H)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}var J,z,Q,X,W,Z,ee,et,ei=e.i(3611);let er=e=>{let t={};if(e)if("u">typeof Headers&&e instanceof Headers||ei&&ei.Headers&&e instanceof ei.Headers){let i;i={},e.forEach((e,t)=>{i[t]=e}),t=i}else Array.isArray(e)?e.forEach(([e,i])=>{e&&void 0!==i&&(t[e]=i)}):t=e;return t},en=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim();class es{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{let[t,i,r]=e,n=t.query?t:{query:t,variables:i,requestHeaders:r,signal:void 0},{headers:s,fetch:o=ei.default,method:a="POST",requestMiddleware:l,responseMiddleware:u,...c}=this.requestConfig,{url:h}=this;void 0!==n.signal&&(c.signal=n.signal);let{operationName:p}=Y(n.query);return eo({url:h,query:n.query,variables:n.variables,headers:{...er(eu(s)),...er(n.requestHeaders)},operationName:p,fetch:o,method:a,fetchOptions:c,middleware:l}).then(e=>(u&&u(e),e)).catch(e=>{throw u&&u(e),e})}}async request(e,...t){let[i,r]=t,n=e.document?e:{document:e,variables:i,requestHeaders:r,signal:void 0},{headers:s,fetch:o=ei.default,method:a="POST",requestMiddleware:l,responseMiddleware:u,...c}=this.requestConfig,{url:h}=this;void 0!==n.signal&&(c.signal=n.signal);let{query:p,operationName:d}=Y(n.document);return eo({url:h,query:p,variables:n.variables,headers:{...er(eu(s)),...er(n.requestHeaders)},operationName:d,fetch:o,method:a,fetchOptions:c,middleware:l}).then(e=>(u&&u(e),e.data)).catch(e=>{throw u&&u(e),e})}batchRequests(e,t){let i=e.documents?e:{documents:e,requestHeaders:t,signal:void 0},{headers:r,...n}=this.requestConfig;void 0!==i.signal&&(n.signal=i.signal);let s=i.documents.map(({document:e})=>Y(e).query),o=i.documents.map(({variables:e})=>e);return eo({url:this.url,query:s,variables:o,headers:{...er(eu(r)),...er(i.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??ei.default,method:this.requestConfig.method||"POST",fetchOptions:n,middleware:this.requestConfig.requestMiddleware}).then(e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data)).catch(e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){let{headers:i}=this.requestConfig;return i?i[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}let eo=async e=>{let i,{query:r,variables:n,fetchOptions:s}=e,o=(i=(e.method??"post").toUpperCase(),async e=>{let r,{url:n,query:s,variables:o,operationName:a,fetch:l,fetchOptions:u,middleware:c}=e,h={...e.headers},p="";"POST"===i?"string"==typeof(r=ea(s,o,a,u.jsonSerializer))&&(h["Content-Type"]="application/json"):p=(e=>{if(!Array.isArray(e.query)){let t=[`query=${encodeURIComponent(en(e.query))}`];return e.variables&&t.push(`variables=${encodeURIComponent(e.jsonSerializer.stringify(e.variables))}`),e.operationName&&t.push(`operationName=${encodeURIComponent(e.operationName)}`),t.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw Error("Cannot create query with given variable type, array expected");let t=e.query.reduce((t,i,r)=>(t.push({query:en(i),variables:e.variables?e.jsonSerializer.stringify(e.variables[r]):void 0}),t),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(t))}`})({query:s,variables:o,operationName:a,jsonSerializer:u.jsonSerializer??t});let d={method:i,headers:h,body:r,...u},f=n,y=d;if(c){let{url:e,...t}=await Promise.resolve(c({...d,url:n,operationName:a,variables:o}));f=e,y=t}return p&&(f=`${f}?${p}`),await l(f,y)}),a=Array.isArray(e.query),l=await o(e),u=await el(l,s.jsonSerializer??t),c=Array.isArray(u)?!u.some(({data:e})=>!e):!!u.data,h=Array.isArray(u)||!u.errors||Array.isArray(u.errors)&&!u.errors.length||"all"===s.errorPolicy||"ignore"===s.errorPolicy;if(l.ok&&h&&c){let{errors:e,...t}=(Array.isArray(u),u),i="ignore"===s.errorPolicy?t:u;return{...a?{data:i}:i,headers:l.headers,status:l.status}}throw new H({..."string"==typeof u?{error:u}:u,status:l.status,headers:l.headers},{query:r,variables:n})},ea=(e,i,r,n)=>{let s=n??t;if(!Array.isArray(e))return s.stringify({query:e,variables:i,operationName:r});if(void 0!==i&&!Array.isArray(i))throw Error("Cannot create request body with given variable type, array expected");let o=e.reduce((e,t,r)=>(e.push({query:t,variables:i?i[r]:void 0}),e),[]);return s.stringify(o)},el=async(e,t)=>{let i;
13return(e.headers.forEach((e,t)=>{"content-type"===t.toLowerCase()&&(i=e)}),i&&(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json")))?t.parse(await e.text()):e.text()},eu=e=>"function"==typeof e?e():e;var ec=e.i(44513),eh=e.i(32125),ep=e.i(64180),ed=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};class ef{constructor(e,t={}){var i;this.endpoint=e,this.headers={},t.apiKey&&(this.headers.sc_apikey=t.apiKey),t.headers&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),t.contextId&&(this.headers["x-sitecore-contextid"]=t.contextId);let r=!1;try{r=!!new URL(e).hostname}catch(e){}if(!e||!r)throw Error(`Invalid GraphQL endpoint '${e}'. Verify that appropriate environment variable is set`);this.timeout=t.timeout,this.retries=null!=(i=t.retries)?i:3,this.retryStrategy=t.retryStrategy||new ep.DefaultRetryStrategy({statusCodes:[429,502,503,504,520,521,522,523,524]}),this.client=new es(e,{headers:this.headers,fetch:t.fetch}),this.debug=t.debugger||ec.default.http}static createClientFactory(e){var{endpoint:t}=e,i=ed(e,["endpoint"]);return (e={})=>new ef(t,Object.assign(Object.assign({},i),e))}async request(e,t,i){let r=1,n=async()=>{let s=(null==i?void 0:i.retries)||this.retries,o=(null==i?void 0:i.retryStrategy)||this.retryStrategy,a=(null==i?void 0:i.debugger)||this.debug;a("request: %o",{url:this.endpoint,headers:Object.assign(Object.assign({},this.headers),null==i?void 0:i.headers),query:e,variables:t,timeout:this.timeout});let l=Object.assign(Object.assign({},this.headers),null==i?void 0:i.headers),u=performance.now(),c=[this.client.request(e,t,l)];return this.timeout&&(this.abortTimeout=new eh.default(this.timeout),c.push(this.abortTimeout.start)),Promise.race(c).then(e=>{var t;return null==(t=this.abortTimeout)||t.clear(),this.debug("response in %dms: %o",performance.now()-u,e),Promise.resolve(e)},async e=>{var t,i;null==(t=this.abortTimeout)||t.clear(),a("response error: %o",e.response||e.message||e);let l=(null==(i=e.response)?void 0:i.status)||e.code;if(!o.shouldRetry(e,r,s))return Promise.reject(e);{let t=o.getDelay(e,r);return a("Error: %s. Retrying in %dms (attempt %d).",l,t,r),r++,new Promise(e=>setTimeout(e,t)).then(n)}})};return n()}}var ey=e.i(11155);e.s(["createGraphQLClientFactory",0,e=>{let t,{api:i}=e,{edge:r,local:n}=null!=i?i:{},s="u">typeof window;if(null==r?void 0:r.contextId)t={endpoint:(0,ey.getEdgeProxyContentUrl)(r.edgeUrl),contextId:r.contextId};else if(s&&(null==r?void 0:r.clientContextId))t={endpoint:(0,ey.getEdgeProxyContentUrl)(r.edgeUrl),contextId:r.clientContextId};else if((null==n?void 0:n.apiKey)&&(null==n?void 0:n.apiHost))t={endpoint:`${n.apiHost}${n.path}`,apiKey:n.apiKey};else if(s)console.warn("GraphQL client initialised in the browser without Edge or local API configuration; client-side requests may fail."),t={endpoint:"/api/graphql"};else throw Error(`GraphQL client misconfigured. 14 Configure one of the following in sitecore.config or your .env file: 15 Edge mode: set both sitecore.edge.contextId (server-side) and sitecore.edge.clientContextId (browser). 16 Local API mode: set api.local.apiHost and api.local.apiKey. 17 Supplying only api.edge.clientContextId will cause the application to fail at runtime.`);return ef.createClientFactory(Object.assign(Object.assign({},t),e))}],95104),e.s(["EDITING_PARAMS_HEADER",0,"x-sitecore-editing-params","EDITING_PASS_THROUGH_HEADERS",0,["authorization","cookie"],"QUERY_PARAM_VERCEL_PROTECTION_BYPASS",0,"x-vercel-protection-bypass","QUERY_PARAM_VERCEL_SET_BYPASS_COOKIE",0,"x-vercel-set-bypass-cookie"],17685)}]);
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.