PageSourceSearch

https://readr.tw/_next/static/chunks/283-cd97bf42f34f92fe.js

js readr.tw collected 2026-09-24 19:07:16 UTC 27,705 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[283],{17283:function(e,t,i){i.d(t,{ZP:function(){return V}});var n,r,s,a,o,h=i(70655);let l=/\r\n|[\n\r]/g;function c(e,t){let i=0,n=1;for(let r of e.body.matchAll(l)){if("number"==typeof r.index||function(e,t){let i=Boolean(e);if(!i)throw Error(null!=t?t:"Unexpected invariant triggered.")}(!1),r.index>=t)break;i=r.index+r[0].length,n+=1}return{line:n,column:t+1-i}}function p(e,t){let i=e.locationOffset.column-1,n="".padStart(i)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?i:0,h=t.column+o,l=`${e.name}:${a}:${h}
2`,c=n.split(/\r\n|[\n\r]/g),p=c[r];if(p.length>120){let d=Math.floor(h/80),E=[];for(let f=0;f<p.length;f+=80)E.push(p.slice(f,f+80));return l+u([[`${a} |`,E[0]],...E.slice(1,d+1).map(e=>["|",e]),["|","^".padStart(h%80)],["|",E[d+1]]])}return l+u([[`${a-1} |`,c[r-1]],[`${a} |`,p],["|","^".padStart(h)],[`${a+1} |`,c[r+1]]])}function u(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 d extends Error{constructor(e,...t){var i,n,r,s;let{nodes:a,source:o,positions:h,path:l,originalError:p,extensions:u}=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!=p?p:void 0,this.nodes=E(Array.isArray(a)?a:a?[a]:void 0);let f=E(null===(i=this.nodes)||void 0===i?void 0:i.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==f?void 0:null===(n=f[0])||void 0===n?void 0:n.source,this.positions=null!=h?h:null==f?void 0:f.map(e=>e.start),this.locations=h&&o?h.map(e=>c(o,e)):null==f?void 0:f.map(e=>c(e.source,e.start));let N="object"==typeof(s=null==p?void 0:p.extensions)&&null!==s?null==p?void 0:p.extensions:void 0;this.extensions=null!==(r=null!=u?u:N)&&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!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,d):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 t of this.nodes)if(t.loc){var i;e+="\n\n"+p((i=t.loc).source,c(i.source,i.start))}}else if(this.source&&this.locations)for(let n of this.locations)e+="\n\n"+p(this.source,n);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 E(e){return void 0===e||0===e.length?void 0:e}function f(e,t,i){return new d(`Syntax Error: ${i}`,{source:e,positions:[t]})}var N=i(72380);(n=a||(a={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var T=i(97359),x=i(87392),k=i(68297);(r=o||(o={})).SOF="<SOF>",r.EOF="<EOF>",r.BANG="!",r.DOLLAR="$",r.AMP="&",r.PAREN_L="(",r.PAREN_R=")",r.SPREAD="...",r.COLON=":",r.EQUALS="=",r.AT="@",r.BRACKET_L="[",r.BRACKET_R="]",r.BRACE_L="{",r.PIPE="|",r.BRACE_R="}",r.NAME="Name",r.INT="Int",r.FLOAT="Float",r.STRING="String",r.BLOCK_STRING="BlockString",r.COMMENT="Comment";class m{constructor(e){let t=new N.WU(o.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(){this.lastToken=this.token;let e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==o.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let i=e.source.body,n=i.length,r=t;for(;r<n;){let s=i.charCodeAt(r);switch(s){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===i.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){let s=i.charCodeAt(r);if(10===s||13===s)break;if(A(s))++r;else if(_(i,r))r+=2;else break}return v(e,o.COMMENT,t,r,i.slice(t+1,r))}(e,r);case 33:return v(e,o.BANG,r,r+1);case 36:return v(e,o.DOLLAR,r,r+1);case 38:return v(e,o.AMP,r,r+1);case 40:return v(e,o.PAREN_L,r,r+1);case 41:return v(e,o.PAREN_R,r,r+1);case 46:if(46===i.charCodeAt(r+1)&&46===i.charCodeAt(r+2))return v(e,o.SPREAD,r,r+3);break;case 58:return v(e,o.COLON,r,r+1);case 61:return v(e,o.EQUALS,r,r+1);case 64:return v(e,o.AT,r,r+1);case 91:return v(e,o.BRACKET_L,r,r+1);case 93:return v(e,o.BRACKET_R,r,r+1);case 123:return v(e,o.BRACE_L,r,r+1);case 124:return v(e,o.PIPE,r,r+1);case 125:return v(e,o.BRACE_R,r,r+1);case 34:if(34===i.charCodeAt(r+1)&&34===i.charCodeAt(r+2))return function(e,t){let i=e.source.body,n=i.length,r=e.lineStart,s=t+3,a=s,h="",l=[];for(;s<n;){let c=i.charCodeAt(s);if(34===c&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)){h+=i.slice(a,s),l.push(h);let p=v(e,o.BLOCK_STRING,t,s+3,(0,x.wv)(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,p}if(92===c&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)&&34===i.charCodeAt(s+3)){h+=i.slice(a,s),a=s+1,s+=4;continue}if(10===c||13===c){h+=i.slice(a,s),l.push(h),13===c&&10===i.charCodeAt(s+1)?s+=2:++s,h="",a=s,r=s;continue}if(A(c))++s;else if(_(i,s))s+=2;else throw f(e.source,s,`Invalid character within String: ${O(e,s)}.`)}throw f(e.source,s,"Unterminated string.")}(e,r);return function(e,t){let i=e.source.body,n=i.length,r=t+1,s=r,a="";for(;r<n;){let h=i.charCodeAt(r);if(34===h)return a+=i.slice(s,r),v(e,o.STRING,t,r+1,a);if(92===h){a+=i.slice(s,r);let l=117===i.charCodeAt(r+1)?123===i.charCodeAt(r+2)?function(e,t){let i=e.source.body,n=0,r=3;for(;r<12;){let s=i.charCodeAt(t+r++);
2if(125===s){if(r<5||!A(n))break;return{value:String.fromCodePoint(n),size:r}}if((n=n<<4|R(s))<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+r)}".`)}(e,r):function(e,t){let i=e.source.body,n=y(i,t+2);if(A(n))return{value:String.fromCodePoint(n),size:6};if(I(n)&&92===i.charCodeAt(t+6)&&117===i.charCodeAt(t+7)){let r=y(i,t+8);if(D(r))return{value:String.fromCodePoint(n,r),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+6)}".`)}(e,r):function(e,t){let i=e.source.body,n=i.charCodeAt(t+1);switch(n){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 f(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}(e,r);a+=l.value,r+=l.size,s=r;continue}if(10===h||13===h)break;if(A(h))++r;else if(_(i,r))r+=2;else throw f(e.source,r,`Invalid character within String: ${O(e,r)}.`)}throw f(e.source,r,"Unterminated string.")}(e,r)}if((0,k.X1)(s)||45===s)return function(e,t,i){let n=e.source.body,r=t,s=i,a=!1;if(45===s&&(s=n.charCodeAt(++r)),48===s){if(s=n.charCodeAt(++r),(0,k.X1)(s))throw f(e.source,r,`Invalid number, unexpected digit after 0: ${O(e,r)}.`)}else r=C(e,r,s),s=n.charCodeAt(r);if(46===s&&(a=!0,s=n.charCodeAt(++r),r=C(e,r,s),s=n.charCodeAt(r)),(69===s||101===s)&&(a=!0,(43===(s=n.charCodeAt(++r))||45===s)&&(s=n.charCodeAt(++r)),r=C(e,r,s),s=n.charCodeAt(r)),46===s||(0,k.LQ)(s))throw f(e.source,r,`Invalid number, expected digit but got: ${O(e,r)}.`);return v(e,a?o.FLOAT:o.INT,t,r,n.slice(t,r))}(e,r,s);if((0,k.LQ)(s))return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){let s=i.charCodeAt(r);if((0,k.HQ)(s))++r;else break}return v(e,o.NAME,t,r,i.slice(t,r))}(e,r);throw f(e.source,r,39===s?"Unexpected single quote character ('), did you mean to use a double quote (\")?":A(s)||_(i,r)?`Unexpected character: ${O(e,r)}.`:`Invalid character: ${O(e,r)}.`)}return v(e,o.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===o.COMMENT);return e}}function A(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function _(e,t){return I(e.charCodeAt(t))&&D(e.charCodeAt(t+1))}function I(e){return e>=55296&&e<=56319}function D(e){return e>=56320&&e<=57343}function O(e,t){let i=e.source.body.codePointAt(t);if(void 0===i)return o.EOF;if(i>=32&&i<=126){let n=String.fromCodePoint(i);return'"'===n?"'\"'":`"${n}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function v(e,t,i,n,r){let s=e.line,a=1+i-e.lineStart;return new N.WU(t,i,n,s,a,r)}function C(e,t,i){if(!(0,k.X1)(i))throw f(e.source,t,`Invalid number, expected digit but got: ${O(e,t)}.`);let n=e.source.body,r=t+1;for(;(0,k.X1)(n.charCodeAt(r));)++r;return r}function y(e,t){return R(e.charCodeAt(t))<<12|R(e.charCodeAt(t+1))<<8|R(e.charCodeAt(t+2))<<4|R(e.charCodeAt(t+3))}function R(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var L=i(51270);class g{constructor(e,t={}){let i=(0,L.T)(e)?e:new L.H(e);this._lexer=new m(i),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(o.NAME);return this.node(e,{kind:T.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:T.h.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===o.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 f(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(o.BRACE_L))return this.node(t,{kind:T.h.OPERATION_DEFINITION,operation:N.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseOperationType();return this.peek(o.NAME)&&(e=this.parseName()),this.node(t,{kind:T.h.OPERATION_DEFINITION,operation:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(o.NAME);switch(e.value){case"query":return N.ku.QUERY;case"mutation":return N.ku.MUTATION;case"subscription":return N.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:T.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(e,{kind:T.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:T.h.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let i=this._lexer.token,n=this.parseName();return this.expectOptionalToken(o.COLON)?(e=n,t=this.parseName()):t=n,this.node(i,{kind:T.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,t,o.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:T.h.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(o.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(o.NAME)?this.node(e,{kind:T.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:T.h.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:T.h.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:T.h.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 o.BRACKET_L:return this.parseList(e);case o.BRACE_L:return this.parseObject(e);case o.INT:return this.advanceLexer(),this.node(t,{kind:T.h.INT,value:t.value});case o.FLOAT:return this.advanceLexer(),this.node(t,{kind:T.h.FLOAT,value:t.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:T.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:T.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:T.h.NULL});default:return this.node(t,{kind:T.h.ENUM,value:t.value})}case o.DOLLAR:if(e){if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let i=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${i}" 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:T.h.STRING,value:e.value,block:e.kind===o.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:T.h.LIST,values:this.any(o.BRACKET_L,t,o.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);
2return this.node(this._lexer.token,{kind:T.h.OBJECT,fields:this.any(o.BRACE_L,t,o.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:T.h.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(o.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(o.AT),this.node(t,{kind:T.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(o.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(o.BRACKET_R),e=this.node(t,{kind:T.h.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:T.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:T.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.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(),n=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(e,{kind:T.h.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(o.COLON);let i=this.parseNamedType();return this.node(e,{kind:T.h.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:T.h.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:T.h.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(o.COLON);let r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:T.h.FIELD_DEFINITION,description:t,name:i,arguments:n,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(o.COLON);let r=this.parseTypeReference();this.expectOptionalToken(o.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:T.h.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:T.h.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:T.h.UNION_TYPE_DEFINITION,description:t,name:i,directives:n,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:T.h.ENUM_TYPE_DEFINITION,description:t,name:i,directives:n,values:r})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:T.h.ENUM_VALUE_DEFINITION,description:t,name:i,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${S(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(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:T.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:n,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===o.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(),i=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:T.h.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:T.h.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(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();
2return this.node(e,{kind:T.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:T.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.h.UNION_TYPE_EXTENSION,name:t,directives:i,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.h.ENUM_TYPE_EXTENSION,name:t,directives:i,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let i=this.parseName(),n=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:T.h.DIRECTIVE_DEFINITION,description:t,name:i,arguments:n,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(a,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new N.Ye(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 f(this._lexer.source,t.start,`Expected ${b(e)}, found ${S(t)}.`)}expectOptionalToken(e){let t=this._lexer.token;return t.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===o.NAME&&t.value===e)this.advanceLexer();else throw f(this._lexer.source,t.start,`Expected "${e}", found ${S(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===o.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${S(t)}.`)}any(e,t,i){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(i);)n.push(t.call(this));return n}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i));return n}return[]}many(e,t,i){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i));return n}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(void 0!==e&&t.kind!==o.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw f(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function S(e){let t=e.value;return b(e.kind)+(null!=t?` "${t}"`:"")}function b(e){return e===o.BANG||e===o.DOLLAR||e===o.AMP||e===o.PAREN_L||e===o.PAREN_R||e===o.SPREAD||e===o.COLON||e===o.EQUALS||e===o.AT||e===o.BRACKET_L||e===o.BRACKET_R||e===o.BRACE_L||e===o.PIPE||e===o.BRACE_R?`"${e}"`:e}var w=new Map,F=new Map,P=!0,M=!1;function U(e){return e.replace(/[\s,]+/g," ").trim()}function B(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,i){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[i+1]}),function(e){var t=U(e);if(!w.has(t)){var i,n,r,s,a,o=function(e,t){let i=new g(e,t);return i.parseDocument()}(e,{experimentalFragmentVariables:M,allowLegacyFragmentVariables:M});if(!o||"Document"!==o.kind)throw Error("Not a valid GraphQL document.");w.set(t,(i=new Set,n=[],o.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,r=e.name.value,s=U((t=e.loc).source.body.substring(t.start,t.end)),a=F.get(r);a&&!a.has(s)?P&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||F.set(r,a=new Set),a.add(s),i.has(s)||(i.add(s),n.push(e))}else n.push(e)}),r=(0,h.pi)((0,h.pi)({},o),{definitions:n}
2),(s=new Set(r.definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var i=e[t];i&&"object"==typeof i&&s.add(i)})}),(a=r.loc)&&(delete a.startToken,delete a.endToken),r))}return w.get(t)}(n)}var K={gql:B,resetCaches:function(){w.clear(),F.clear()},disableFragmentWarnings:function(){P=!1},enableExperimentalFragmentVariables:function(){M=!0},disableExperimentalFragmentVariables:function(){M=!1}};(s=B||(B={})).gql=K.gql,s.resetCaches=K.resetCaches,s.disableFragmentWarnings=K.disableFragmentWarnings,s.enableExperimentalFragmentVariables=K.enableExperimentalFragmentVariables,s.disableExperimentalFragmentVariables=K.disableExperimentalFragmentVariables,B.default=B;var V=B}}]);

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.