@salesforce/lds-worker-api 1.404.0-dev2 → 1.404.0-dev5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
4274
4274
  }
4275
4275
  callbacks.push(callback);
4276
4276
  }
4277
- // version: 1.404.0-dev2-3aea909b9d
4277
+ // version: 1.404.0-dev5-924c469d6b
4278
4278
 
4279
4279
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4280
4280
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5318
5318
  const { apiFamily, name } = metadata;
5319
5319
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5320
5320
  }
5321
- // version: 1.404.0-dev2-3aea909b9d
5321
+ // version: 1.404.0-dev5-924c469d6b
5322
5322
 
5323
5323
  /**
5324
5324
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -35432,7 +35432,7 @@ withDefaultLuvio((luvio) => {
35432
35432
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
35433
35433
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
35434
35434
  });
35435
- // version: 1.404.0-dev2-c0a696aed4
35435
+ // version: 1.404.0-dev5-38a59c52aa
35436
35436
 
35437
35437
  var allowUpdatesForNonCachedRecords = {
35438
35438
  isOpen: function (e) {
@@ -36056,7 +36056,7 @@ function isNode$2(maybeNode) {
36056
36056
  * An exported enum describing the different kinds of tokens that the
36057
36057
  * lexer emits.
36058
36058
  */
36059
- var TokenKind$3 = Object.freeze({
36059
+ var TokenKind$2 = Object.freeze({
36060
36060
  SOF: '<SOF>',
36061
36061
  EOF: '<EOF>',
36062
36062
  BANG: '!',
@@ -36276,7 +36276,7 @@ function isSource(source) {
36276
36276
  /**
36277
36277
  * The set of allowed directive location values.
36278
36278
  */
36279
- var DirectiveLocation$3 = Object.freeze({
36279
+ var DirectiveLocation$2 = Object.freeze({
36280
36280
  // Request Definitions
36281
36281
  QUERY: 'QUERY',
36282
36282
  MUTATION: 'MUTATION',
@@ -36454,7 +36454,7 @@ var Lexer = /*#__PURE__*/function () {
36454
36454
  * The character offset at which the current line begins.
36455
36455
  */
36456
36456
  function Lexer(source) {
36457
- var startOfFileToken = new Token$1(TokenKind$3.SOF, 0, 0, 0, 0, null);
36457
+ var startOfFileToken = new Token$1(TokenKind$2.SOF, 0, 0, 0, 0, null);
36458
36458
  this.source = source;
36459
36459
  this.lastToken = startOfFileToken;
36460
36460
  this.token = startOfFileToken;
@@ -36482,13 +36482,13 @@ var Lexer = /*#__PURE__*/function () {
36482
36482
  _proto.lookahead = function lookahead() {
36483
36483
  var token = this.token;
36484
36484
 
36485
- if (token.kind !== TokenKind$3.EOF) {
36485
+ if (token.kind !== TokenKind$2.EOF) {
36486
36486
  do {
36487
36487
  var _token$next;
36488
36488
 
36489
36489
  // Note: next is only mutable during parsing, so we cast to allow this.
36490
36490
  token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);
36491
- } while (token.kind === TokenKind$3.COMMENT);
36491
+ } while (token.kind === TokenKind$2.COMMENT);
36492
36492
  }
36493
36493
 
36494
36494
  return token;
@@ -36501,12 +36501,12 @@ var Lexer = /*#__PURE__*/function () {
36501
36501
  */
36502
36502
 
36503
36503
  function isPunctuatorTokenKind(kind) {
36504
- return kind === TokenKind$3.BANG || kind === TokenKind$3.DOLLAR || kind === TokenKind$3.AMP || kind === TokenKind$3.PAREN_L || kind === TokenKind$3.PAREN_R || kind === TokenKind$3.SPREAD || kind === TokenKind$3.COLON || kind === TokenKind$3.EQUALS || kind === TokenKind$3.AT || kind === TokenKind$3.BRACKET_L || kind === TokenKind$3.BRACKET_R || kind === TokenKind$3.BRACE_L || kind === TokenKind$3.PIPE || kind === TokenKind$3.BRACE_R;
36504
+ return kind === TokenKind$2.BANG || kind === TokenKind$2.DOLLAR || kind === TokenKind$2.AMP || kind === TokenKind$2.PAREN_L || kind === TokenKind$2.PAREN_R || kind === TokenKind$2.SPREAD || kind === TokenKind$2.COLON || kind === TokenKind$2.EQUALS || kind === TokenKind$2.AT || kind === TokenKind$2.BRACKET_L || kind === TokenKind$2.BRACKET_R || kind === TokenKind$2.BRACE_L || kind === TokenKind$2.PIPE || kind === TokenKind$2.BRACE_R;
36505
36505
  }
36506
36506
 
36507
36507
  function printCharCode(code) {
36508
36508
  return (// NaN/undefined represents access beyond the end of the file.
36509
- isNaN(code) ? TokenKind$3.EOF : // Trust JSON for ASCII.
36509
+ isNaN(code) ? TokenKind$2.EOF : // Trust JSON for ASCII.
36510
36510
  code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form.
36511
36511
  "\"\\u".concat(('00' + code.toString(16).toUpperCase()).slice(-4), "\"")
36512
36512
  );
@@ -36566,7 +36566,7 @@ function readToken(lexer, prev) {
36566
36566
 
36567
36567
  case 33:
36568
36568
  // !
36569
- return new Token$1(TokenKind$3.BANG, pos, pos + 1, _line, _col, prev);
36569
+ return new Token$1(TokenKind$2.BANG, pos, pos + 1, _line, _col, prev);
36570
36570
 
36571
36571
  case 35:
36572
36572
  // #
@@ -36574,59 +36574,59 @@ function readToken(lexer, prev) {
36574
36574
 
36575
36575
  case 36:
36576
36576
  // $
36577
- return new Token$1(TokenKind$3.DOLLAR, pos, pos + 1, _line, _col, prev);
36577
+ return new Token$1(TokenKind$2.DOLLAR, pos, pos + 1, _line, _col, prev);
36578
36578
 
36579
36579
  case 38:
36580
36580
  // &
36581
- return new Token$1(TokenKind$3.AMP, pos, pos + 1, _line, _col, prev);
36581
+ return new Token$1(TokenKind$2.AMP, pos, pos + 1, _line, _col, prev);
36582
36582
 
36583
36583
  case 40:
36584
36584
  // (
36585
- return new Token$1(TokenKind$3.PAREN_L, pos, pos + 1, _line, _col, prev);
36585
+ return new Token$1(TokenKind$2.PAREN_L, pos, pos + 1, _line, _col, prev);
36586
36586
 
36587
36587
  case 41:
36588
36588
  // )
36589
- return new Token$1(TokenKind$3.PAREN_R, pos, pos + 1, _line, _col, prev);
36589
+ return new Token$1(TokenKind$2.PAREN_R, pos, pos + 1, _line, _col, prev);
36590
36590
 
36591
36591
  case 46:
36592
36592
  // .
36593
36593
  if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) {
36594
- return new Token$1(TokenKind$3.SPREAD, pos, pos + 3, _line, _col, prev);
36594
+ return new Token$1(TokenKind$2.SPREAD, pos, pos + 3, _line, _col, prev);
36595
36595
  }
36596
36596
 
36597
36597
  break;
36598
36598
 
36599
36599
  case 58:
36600
36600
  // :
36601
- return new Token$1(TokenKind$3.COLON, pos, pos + 1, _line, _col, prev);
36601
+ return new Token$1(TokenKind$2.COLON, pos, pos + 1, _line, _col, prev);
36602
36602
 
36603
36603
  case 61:
36604
36604
  // =
36605
- return new Token$1(TokenKind$3.EQUALS, pos, pos + 1, _line, _col, prev);
36605
+ return new Token$1(TokenKind$2.EQUALS, pos, pos + 1, _line, _col, prev);
36606
36606
 
36607
36607
  case 64:
36608
36608
  // @
36609
- return new Token$1(TokenKind$3.AT, pos, pos + 1, _line, _col, prev);
36609
+ return new Token$1(TokenKind$2.AT, pos, pos + 1, _line, _col, prev);
36610
36610
 
36611
36611
  case 91:
36612
36612
  // [
36613
- return new Token$1(TokenKind$3.BRACKET_L, pos, pos + 1, _line, _col, prev);
36613
+ return new Token$1(TokenKind$2.BRACKET_L, pos, pos + 1, _line, _col, prev);
36614
36614
 
36615
36615
  case 93:
36616
36616
  // ]
36617
- return new Token$1(TokenKind$3.BRACKET_R, pos, pos + 1, _line, _col, prev);
36617
+ return new Token$1(TokenKind$2.BRACKET_R, pos, pos + 1, _line, _col, prev);
36618
36618
 
36619
36619
  case 123:
36620
36620
  // {
36621
- return new Token$1(TokenKind$3.BRACE_L, pos, pos + 1, _line, _col, prev);
36621
+ return new Token$1(TokenKind$2.BRACE_L, pos, pos + 1, _line, _col, prev);
36622
36622
 
36623
36623
  case 124:
36624
36624
  // |
36625
- return new Token$1(TokenKind$3.PIPE, pos, pos + 1, _line, _col, prev);
36625
+ return new Token$1(TokenKind$2.PIPE, pos, pos + 1, _line, _col, prev);
36626
36626
 
36627
36627
  case 125:
36628
36628
  // }
36629
- return new Token$1(TokenKind$3.BRACE_R, pos, pos + 1, _line, _col, prev);
36629
+ return new Token$1(TokenKind$2.BRACE_R, pos, pos + 1, _line, _col, prev);
36630
36630
 
36631
36631
  case 34:
36632
36632
  // "
@@ -36774,7 +36774,7 @@ function readToken(lexer, prev) {
36774
36774
 
36775
36775
  var line = lexer.line;
36776
36776
  var col = 1 + pos - lexer.lineStart;
36777
- return new Token$1(TokenKind$3.EOF, bodyLength, bodyLength, line, col, prev);
36777
+ return new Token$1(TokenKind$2.EOF, bodyLength, bodyLength, line, col, prev);
36778
36778
  }
36779
36779
  /**
36780
36780
  * Report a message that an unexpected character was encountered.
@@ -36810,7 +36810,7 @@ function readComment(source, start, line, col, prev) {
36810
36810
  } while (!isNaN(code) && ( // SourceCharacter but not LineTerminator
36811
36811
  code > 0x001f || code === 0x0009));
36812
36812
 
36813
- return new Token$1(TokenKind$3.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36813
+ return new Token$1(TokenKind$2.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36814
36814
  }
36815
36815
  /**
36816
36816
  * Reads a number token from the source file, either a float
@@ -36871,7 +36871,7 @@ function readNumber(source, start, firstCode, line, col, prev) {
36871
36871
  throw syntaxError(source, position, "Invalid number, expected digit but got: ".concat(printCharCode(code), "."));
36872
36872
  }
36873
36873
 
36874
- return new Token$1(isFloat ? TokenKind$3.FLOAT : TokenKind$3.INT, start, position, line, col, prev, body.slice(start, position));
36874
+ return new Token$1(isFloat ? TokenKind$2.FLOAT : TokenKind$2.INT, start, position, line, col, prev, body.slice(start, position));
36875
36875
  }
36876
36876
  /**
36877
36877
  * Returns the new position in the source after reading digits.
@@ -36914,7 +36914,7 @@ function readString(source, start, line, col, prev) {
36914
36914
  // Closing Quote (")
36915
36915
  if (code === 34) {
36916
36916
  value += body.slice(chunkStart, position);
36917
- return new Token$1(TokenKind$3.STRING, start, position + 1, line, col, prev, value);
36917
+ return new Token$1(TokenKind$2.STRING, start, position + 1, line, col, prev, value);
36918
36918
  } // SourceCharacter
36919
36919
 
36920
36920
 
@@ -37006,7 +37006,7 @@ function readBlockString(source, start, line, col, prev, lexer) {
37006
37006
  // Closing Triple-Quote (""")
37007
37007
  if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {
37008
37008
  rawValue += body.slice(chunkStart, position);
37009
- return new Token$1(TokenKind$3.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37009
+ return new Token$1(TokenKind$2.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37010
37010
  } // SourceCharacter
37011
37011
 
37012
37012
 
@@ -37093,7 +37093,7 @@ function readName(source, start, line, col, prev) {
37093
37093
  ++position;
37094
37094
  }
37095
37095
 
37096
- return new Token$1(TokenKind$3.NAME, start, position, line, col, prev, body.slice(start, position));
37096
+ return new Token$1(TokenKind$2.NAME, start, position, line, col, prev, body.slice(start, position));
37097
37097
  } // _ A-Z a-z
37098
37098
 
37099
37099
 
@@ -37139,7 +37139,7 @@ var Parser = /*#__PURE__*/function () {
37139
37139
  var _proto = Parser.prototype;
37140
37140
 
37141
37141
  _proto.parseName = function parseName() {
37142
- var token = this.expectToken(TokenKind$3.NAME);
37142
+ var token = this.expectToken(TokenKind$2.NAME);
37143
37143
  return {
37144
37144
  kind: Kind$3.NAME,
37145
37145
  value: token.value,
@@ -37156,7 +37156,7 @@ var Parser = /*#__PURE__*/function () {
37156
37156
  var start = this._lexer.token;
37157
37157
  return {
37158
37158
  kind: Kind$3.DOCUMENT,
37159
- definitions: this.many(TokenKind$3.SOF, this.parseDefinition, TokenKind$3.EOF),
37159
+ definitions: this.many(TokenKind$2.SOF, this.parseDefinition, TokenKind$2.EOF),
37160
37160
  loc: this.loc(start)
37161
37161
  };
37162
37162
  }
@@ -37173,7 +37173,7 @@ var Parser = /*#__PURE__*/function () {
37173
37173
  ;
37174
37174
 
37175
37175
  _proto.parseDefinition = function parseDefinition() {
37176
- if (this.peek(TokenKind$3.NAME)) {
37176
+ if (this.peek(TokenKind$2.NAME)) {
37177
37177
  switch (this._lexer.token.value) {
37178
37178
  case 'query':
37179
37179
  case 'mutation':
@@ -37196,7 +37196,7 @@ var Parser = /*#__PURE__*/function () {
37196
37196
  case 'extend':
37197
37197
  return this.parseTypeSystemExtension();
37198
37198
  }
37199
- } else if (this.peek(TokenKind$3.BRACE_L)) {
37199
+ } else if (this.peek(TokenKind$2.BRACE_L)) {
37200
37200
  return this.parseOperationDefinition();
37201
37201
  } else if (this.peekDescription()) {
37202
37202
  return this.parseTypeSystemDefinition();
@@ -37215,7 +37215,7 @@ var Parser = /*#__PURE__*/function () {
37215
37215
  _proto.parseOperationDefinition = function parseOperationDefinition() {
37216
37216
  var start = this._lexer.token;
37217
37217
 
37218
- if (this.peek(TokenKind$3.BRACE_L)) {
37218
+ if (this.peek(TokenKind$2.BRACE_L)) {
37219
37219
  return {
37220
37220
  kind: Kind$3.OPERATION_DEFINITION,
37221
37221
  operation: 'query',
@@ -37230,7 +37230,7 @@ var Parser = /*#__PURE__*/function () {
37230
37230
  var operation = this.parseOperationType();
37231
37231
  var name;
37232
37232
 
37233
- if (this.peek(TokenKind$3.NAME)) {
37233
+ if (this.peek(TokenKind$2.NAME)) {
37234
37234
  name = this.parseName();
37235
37235
  }
37236
37236
 
@@ -37250,7 +37250,7 @@ var Parser = /*#__PURE__*/function () {
37250
37250
  ;
37251
37251
 
37252
37252
  _proto.parseOperationType = function parseOperationType() {
37253
- var operationToken = this.expectToken(TokenKind$3.NAME);
37253
+ var operationToken = this.expectToken(TokenKind$2.NAME);
37254
37254
 
37255
37255
  switch (operationToken.value) {
37256
37256
  case 'query':
@@ -37271,7 +37271,7 @@ var Parser = /*#__PURE__*/function () {
37271
37271
  ;
37272
37272
 
37273
37273
  _proto.parseVariableDefinitions = function parseVariableDefinitions() {
37274
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseVariableDefinition, TokenKind$3.PAREN_R);
37274
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseVariableDefinition, TokenKind$2.PAREN_R);
37275
37275
  }
37276
37276
  /**
37277
37277
  * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
@@ -37283,8 +37283,8 @@ var Parser = /*#__PURE__*/function () {
37283
37283
  return {
37284
37284
  kind: Kind$3.VARIABLE_DEFINITION,
37285
37285
  variable: this.parseVariable(),
37286
- type: (this.expectToken(TokenKind$3.COLON), this.parseTypeReference()),
37287
- defaultValue: this.expectOptionalToken(TokenKind$3.EQUALS) ? this.parseValueLiteral(true) : undefined,
37286
+ type: (this.expectToken(TokenKind$2.COLON), this.parseTypeReference()),
37287
+ defaultValue: this.expectOptionalToken(TokenKind$2.EQUALS) ? this.parseValueLiteral(true) : undefined,
37288
37288
  directives: this.parseDirectives(true),
37289
37289
  loc: this.loc(start)
37290
37290
  };
@@ -37296,7 +37296,7 @@ var Parser = /*#__PURE__*/function () {
37296
37296
 
37297
37297
  _proto.parseVariable = function parseVariable() {
37298
37298
  var start = this._lexer.token;
37299
- this.expectToken(TokenKind$3.DOLLAR);
37299
+ this.expectToken(TokenKind$2.DOLLAR);
37300
37300
  return {
37301
37301
  kind: Kind$3.VARIABLE,
37302
37302
  name: this.parseName(),
@@ -37312,7 +37312,7 @@ var Parser = /*#__PURE__*/function () {
37312
37312
  var start = this._lexer.token;
37313
37313
  return {
37314
37314
  kind: Kind$3.SELECTION_SET,
37315
- selections: this.many(TokenKind$3.BRACE_L, this.parseSelection, TokenKind$3.BRACE_R),
37315
+ selections: this.many(TokenKind$2.BRACE_L, this.parseSelection, TokenKind$2.BRACE_R),
37316
37316
  loc: this.loc(start)
37317
37317
  };
37318
37318
  }
@@ -37325,7 +37325,7 @@ var Parser = /*#__PURE__*/function () {
37325
37325
  ;
37326
37326
 
37327
37327
  _proto.parseSelection = function parseSelection() {
37328
- return this.peek(TokenKind$3.SPREAD) ? this.parseFragment() : this.parseField();
37328
+ return this.peek(TokenKind$2.SPREAD) ? this.parseFragment() : this.parseField();
37329
37329
  }
37330
37330
  /**
37331
37331
  * Field : Alias? Name Arguments? Directives? SelectionSet?
@@ -37340,7 +37340,7 @@ var Parser = /*#__PURE__*/function () {
37340
37340
  var alias;
37341
37341
  var name;
37342
37342
 
37343
- if (this.expectOptionalToken(TokenKind$3.COLON)) {
37343
+ if (this.expectOptionalToken(TokenKind$2.COLON)) {
37344
37344
  alias = nameOrAlias;
37345
37345
  name = this.parseName();
37346
37346
  } else {
@@ -37353,7 +37353,7 @@ var Parser = /*#__PURE__*/function () {
37353
37353
  name: name,
37354
37354
  arguments: this.parseArguments(false),
37355
37355
  directives: this.parseDirectives(false),
37356
- selectionSet: this.peek(TokenKind$3.BRACE_L) ? this.parseSelectionSet() : undefined,
37356
+ selectionSet: this.peek(TokenKind$2.BRACE_L) ? this.parseSelectionSet() : undefined,
37357
37357
  loc: this.loc(start)
37358
37358
  };
37359
37359
  }
@@ -37364,7 +37364,7 @@ var Parser = /*#__PURE__*/function () {
37364
37364
 
37365
37365
  _proto.parseArguments = function parseArguments(isConst) {
37366
37366
  var item = isConst ? this.parseConstArgument : this.parseArgument;
37367
- return this.optionalMany(TokenKind$3.PAREN_L, item, TokenKind$3.PAREN_R);
37367
+ return this.optionalMany(TokenKind$2.PAREN_L, item, TokenKind$2.PAREN_R);
37368
37368
  }
37369
37369
  /**
37370
37370
  * Argument[Const] : Name : Value[?Const]
@@ -37374,7 +37374,7 @@ var Parser = /*#__PURE__*/function () {
37374
37374
  _proto.parseArgument = function parseArgument() {
37375
37375
  var start = this._lexer.token;
37376
37376
  var name = this.parseName();
37377
- this.expectToken(TokenKind$3.COLON);
37377
+ this.expectToken(TokenKind$2.COLON);
37378
37378
  return {
37379
37379
  kind: Kind$3.ARGUMENT,
37380
37380
  name: name,
@@ -37388,7 +37388,7 @@ var Parser = /*#__PURE__*/function () {
37388
37388
  return {
37389
37389
  kind: Kind$3.ARGUMENT,
37390
37390
  name: this.parseName(),
37391
- value: (this.expectToken(TokenKind$3.COLON), this.parseValueLiteral(true)),
37391
+ value: (this.expectToken(TokenKind$2.COLON), this.parseValueLiteral(true)),
37392
37392
  loc: this.loc(start)
37393
37393
  };
37394
37394
  } // Implements the parsing rules in the Fragments section.
@@ -37404,10 +37404,10 @@ var Parser = /*#__PURE__*/function () {
37404
37404
 
37405
37405
  _proto.parseFragment = function parseFragment() {
37406
37406
  var start = this._lexer.token;
37407
- this.expectToken(TokenKind$3.SPREAD);
37407
+ this.expectToken(TokenKind$2.SPREAD);
37408
37408
  var hasTypeCondition = this.expectOptionalKeyword('on');
37409
37409
 
37410
- if (!hasTypeCondition && this.peek(TokenKind$3.NAME)) {
37410
+ if (!hasTypeCondition && this.peek(TokenKind$2.NAME)) {
37411
37411
  return {
37412
37412
  kind: Kind$3.FRAGMENT_SPREAD,
37413
37413
  name: this.parseFragmentName(),
@@ -37498,13 +37498,13 @@ var Parser = /*#__PURE__*/function () {
37498
37498
  var token = this._lexer.token;
37499
37499
 
37500
37500
  switch (token.kind) {
37501
- case TokenKind$3.BRACKET_L:
37501
+ case TokenKind$2.BRACKET_L:
37502
37502
  return this.parseList(isConst);
37503
37503
 
37504
- case TokenKind$3.BRACE_L:
37504
+ case TokenKind$2.BRACE_L:
37505
37505
  return this.parseObject(isConst);
37506
37506
 
37507
- case TokenKind$3.INT:
37507
+ case TokenKind$2.INT:
37508
37508
  this._lexer.advance();
37509
37509
 
37510
37510
  return {
@@ -37513,7 +37513,7 @@ var Parser = /*#__PURE__*/function () {
37513
37513
  loc: this.loc(token)
37514
37514
  };
37515
37515
 
37516
- case TokenKind$3.FLOAT:
37516
+ case TokenKind$2.FLOAT:
37517
37517
  this._lexer.advance();
37518
37518
 
37519
37519
  return {
@@ -37522,11 +37522,11 @@ var Parser = /*#__PURE__*/function () {
37522
37522
  loc: this.loc(token)
37523
37523
  };
37524
37524
 
37525
- case TokenKind$3.STRING:
37526
- case TokenKind$3.BLOCK_STRING:
37525
+ case TokenKind$2.STRING:
37526
+ case TokenKind$2.BLOCK_STRING:
37527
37527
  return this.parseStringLiteral();
37528
37528
 
37529
- case TokenKind$3.NAME:
37529
+ case TokenKind$2.NAME:
37530
37530
  this._lexer.advance();
37531
37531
 
37532
37532
  switch (token.value) {
@@ -37558,7 +37558,7 @@ var Parser = /*#__PURE__*/function () {
37558
37558
  };
37559
37559
  }
37560
37560
 
37561
- case TokenKind$3.DOLLAR:
37561
+ case TokenKind$2.DOLLAR:
37562
37562
  if (!isConst) {
37563
37563
  return this.parseVariable();
37564
37564
  }
@@ -37577,7 +37577,7 @@ var Parser = /*#__PURE__*/function () {
37577
37577
  return {
37578
37578
  kind: Kind$3.STRING,
37579
37579
  value: token.value,
37580
- block: token.kind === TokenKind$3.BLOCK_STRING,
37580
+ block: token.kind === TokenKind$2.BLOCK_STRING,
37581
37581
  loc: this.loc(token)
37582
37582
  };
37583
37583
  }
@@ -37599,7 +37599,7 @@ var Parser = /*#__PURE__*/function () {
37599
37599
 
37600
37600
  return {
37601
37601
  kind: Kind$3.LIST,
37602
- values: this.any(TokenKind$3.BRACKET_L, item, TokenKind$3.BRACKET_R),
37602
+ values: this.any(TokenKind$2.BRACKET_L, item, TokenKind$2.BRACKET_R),
37603
37603
  loc: this.loc(start)
37604
37604
  };
37605
37605
  }
@@ -37621,7 +37621,7 @@ var Parser = /*#__PURE__*/function () {
37621
37621
 
37622
37622
  return {
37623
37623
  kind: Kind$3.OBJECT,
37624
- fields: this.any(TokenKind$3.BRACE_L, item, TokenKind$3.BRACE_R),
37624
+ fields: this.any(TokenKind$2.BRACE_L, item, TokenKind$2.BRACE_R),
37625
37625
  loc: this.loc(start)
37626
37626
  };
37627
37627
  }
@@ -37633,7 +37633,7 @@ var Parser = /*#__PURE__*/function () {
37633
37633
  _proto.parseObjectField = function parseObjectField(isConst) {
37634
37634
  var start = this._lexer.token;
37635
37635
  var name = this.parseName();
37636
- this.expectToken(TokenKind$3.COLON);
37636
+ this.expectToken(TokenKind$2.COLON);
37637
37637
  return {
37638
37638
  kind: Kind$3.OBJECT_FIELD,
37639
37639
  name: name,
@@ -37650,7 +37650,7 @@ var Parser = /*#__PURE__*/function () {
37650
37650
  _proto.parseDirectives = function parseDirectives(isConst) {
37651
37651
  var directives = [];
37652
37652
 
37653
- while (this.peek(TokenKind$3.AT)) {
37653
+ while (this.peek(TokenKind$2.AT)) {
37654
37654
  directives.push(this.parseDirective(isConst));
37655
37655
  }
37656
37656
 
@@ -37663,7 +37663,7 @@ var Parser = /*#__PURE__*/function () {
37663
37663
 
37664
37664
  _proto.parseDirective = function parseDirective(isConst) {
37665
37665
  var start = this._lexer.token;
37666
- this.expectToken(TokenKind$3.AT);
37666
+ this.expectToken(TokenKind$2.AT);
37667
37667
  return {
37668
37668
  kind: Kind$3.DIRECTIVE,
37669
37669
  name: this.parseName(),
@@ -37684,9 +37684,9 @@ var Parser = /*#__PURE__*/function () {
37684
37684
  var start = this._lexer.token;
37685
37685
  var type;
37686
37686
 
37687
- if (this.expectOptionalToken(TokenKind$3.BRACKET_L)) {
37687
+ if (this.expectOptionalToken(TokenKind$2.BRACKET_L)) {
37688
37688
  type = this.parseTypeReference();
37689
- this.expectToken(TokenKind$3.BRACKET_R);
37689
+ this.expectToken(TokenKind$2.BRACKET_R);
37690
37690
  type = {
37691
37691
  kind: Kind$3.LIST_TYPE,
37692
37692
  type: type,
@@ -37696,7 +37696,7 @@ var Parser = /*#__PURE__*/function () {
37696
37696
  type = this.parseNamedType();
37697
37697
  }
37698
37698
 
37699
- if (this.expectOptionalToken(TokenKind$3.BANG)) {
37699
+ if (this.expectOptionalToken(TokenKind$2.BANG)) {
37700
37700
  return {
37701
37701
  kind: Kind$3.NON_NULL_TYPE,
37702
37702
  type: type,
@@ -37740,7 +37740,7 @@ var Parser = /*#__PURE__*/function () {
37740
37740
  // Many definitions begin with a description and require a lookahead.
37741
37741
  var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;
37742
37742
 
37743
- if (keywordToken.kind === TokenKind$3.NAME) {
37743
+ if (keywordToken.kind === TokenKind$2.NAME) {
37744
37744
  switch (keywordToken.value) {
37745
37745
  case 'schema':
37746
37746
  return this.parseSchemaDefinition();
@@ -37772,7 +37772,7 @@ var Parser = /*#__PURE__*/function () {
37772
37772
  };
37773
37773
 
37774
37774
  _proto.peekDescription = function peekDescription() {
37775
- return this.peek(TokenKind$3.STRING) || this.peek(TokenKind$3.BLOCK_STRING);
37775
+ return this.peek(TokenKind$2.STRING) || this.peek(TokenKind$2.BLOCK_STRING);
37776
37776
  }
37777
37777
  /**
37778
37778
  * Description : StringValue
@@ -37794,7 +37794,7 @@ var Parser = /*#__PURE__*/function () {
37794
37794
  var description = this.parseDescription();
37795
37795
  this.expectKeyword('schema');
37796
37796
  var directives = this.parseDirectives(true);
37797
- var operationTypes = this.many(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
37797
+ var operationTypes = this.many(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
37798
37798
  return {
37799
37799
  kind: Kind$3.SCHEMA_DEFINITION,
37800
37800
  description: description,
@@ -37811,7 +37811,7 @@ var Parser = /*#__PURE__*/function () {
37811
37811
  _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {
37812
37812
  var start = this._lexer.token;
37813
37813
  var operation = this.parseOperationType();
37814
- this.expectToken(TokenKind$3.COLON);
37814
+ this.expectToken(TokenKind$2.COLON);
37815
37815
  var type = this.parseNamedType();
37816
37816
  return {
37817
37817
  kind: Kind$3.OPERATION_TYPE_DEFINITION,
@@ -37881,16 +37881,16 @@ var Parser = /*#__PURE__*/function () {
37881
37881
  if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {
37882
37882
  var types = []; // Optional leading ampersand
37883
37883
 
37884
- this.expectOptionalToken(TokenKind$3.AMP);
37884
+ this.expectOptionalToken(TokenKind$2.AMP);
37885
37885
 
37886
37886
  do {
37887
37887
  types.push(this.parseNamedType());
37888
- } while (this.expectOptionalToken(TokenKind$3.AMP) || this.peek(TokenKind$3.NAME));
37888
+ } while (this.expectOptionalToken(TokenKind$2.AMP) || this.peek(TokenKind$2.NAME));
37889
37889
 
37890
37890
  return types;
37891
37891
  }
37892
37892
 
37893
- return this.delimitedMany(TokenKind$3.AMP, this.parseNamedType);
37893
+ return this.delimitedMany(TokenKind$2.AMP, this.parseNamedType);
37894
37894
  }
37895
37895
  /**
37896
37896
  * FieldsDefinition : { FieldDefinition+ }
@@ -37901,7 +37901,7 @@ var Parser = /*#__PURE__*/function () {
37901
37901
  var _this$_options3;
37902
37902
 
37903
37903
  // Legacy support for the SDL?
37904
- if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind$3.BRACE_L) && this._lexer.lookahead().kind === TokenKind$3.BRACE_R) {
37904
+ if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind$2.BRACE_L) && this._lexer.lookahead().kind === TokenKind$2.BRACE_R) {
37905
37905
  this._lexer.advance();
37906
37906
 
37907
37907
  this._lexer.advance();
@@ -37909,7 +37909,7 @@ var Parser = /*#__PURE__*/function () {
37909
37909
  return [];
37910
37910
  }
37911
37911
 
37912
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseFieldDefinition, TokenKind$3.BRACE_R);
37912
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseFieldDefinition, TokenKind$2.BRACE_R);
37913
37913
  }
37914
37914
  /**
37915
37915
  * FieldDefinition :
@@ -37922,7 +37922,7 @@ var Parser = /*#__PURE__*/function () {
37922
37922
  var description = this.parseDescription();
37923
37923
  var name = this.parseName();
37924
37924
  var args = this.parseArgumentDefs();
37925
- this.expectToken(TokenKind$3.COLON);
37925
+ this.expectToken(TokenKind$2.COLON);
37926
37926
  var type = this.parseTypeReference();
37927
37927
  var directives = this.parseDirectives(true);
37928
37928
  return {
@@ -37941,7 +37941,7 @@ var Parser = /*#__PURE__*/function () {
37941
37941
  ;
37942
37942
 
37943
37943
  _proto.parseArgumentDefs = function parseArgumentDefs() {
37944
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseInputValueDef, TokenKind$3.PAREN_R);
37944
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseInputValueDef, TokenKind$2.PAREN_R);
37945
37945
  }
37946
37946
  /**
37947
37947
  * InputValueDefinition :
@@ -37953,11 +37953,11 @@ var Parser = /*#__PURE__*/function () {
37953
37953
  var start = this._lexer.token;
37954
37954
  var description = this.parseDescription();
37955
37955
  var name = this.parseName();
37956
- this.expectToken(TokenKind$3.COLON);
37956
+ this.expectToken(TokenKind$2.COLON);
37957
37957
  var type = this.parseTypeReference();
37958
37958
  var defaultValue;
37959
37959
 
37960
- if (this.expectOptionalToken(TokenKind$3.EQUALS)) {
37960
+ if (this.expectOptionalToken(TokenKind$2.EQUALS)) {
37961
37961
  defaultValue = this.parseValueLiteral(true);
37962
37962
  }
37963
37963
 
@@ -38026,7 +38026,7 @@ var Parser = /*#__PURE__*/function () {
38026
38026
  ;
38027
38027
 
38028
38028
  _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {
38029
- return this.expectOptionalToken(TokenKind$3.EQUALS) ? this.delimitedMany(TokenKind$3.PIPE, this.parseNamedType) : [];
38029
+ return this.expectOptionalToken(TokenKind$2.EQUALS) ? this.delimitedMany(TokenKind$2.PIPE, this.parseNamedType) : [];
38030
38030
  }
38031
38031
  /**
38032
38032
  * EnumTypeDefinition :
@@ -38056,7 +38056,7 @@ var Parser = /*#__PURE__*/function () {
38056
38056
  ;
38057
38057
 
38058
38058
  _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {
38059
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseEnumValueDefinition, TokenKind$3.BRACE_R);
38059
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseEnumValueDefinition, TokenKind$2.BRACE_R);
38060
38060
  }
38061
38061
  /**
38062
38062
  * EnumValueDefinition : Description? EnumValue Directives[Const]?
@@ -38106,7 +38106,7 @@ var Parser = /*#__PURE__*/function () {
38106
38106
  ;
38107
38107
 
38108
38108
  _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {
38109
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseInputValueDef, TokenKind$3.BRACE_R);
38109
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseInputValueDef, TokenKind$2.BRACE_R);
38110
38110
  }
38111
38111
  /**
38112
38112
  * TypeSystemExtension :
@@ -38126,7 +38126,7 @@ var Parser = /*#__PURE__*/function () {
38126
38126
  _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {
38127
38127
  var keywordToken = this._lexer.lookahead();
38128
38128
 
38129
- if (keywordToken.kind === TokenKind$3.NAME) {
38129
+ if (keywordToken.kind === TokenKind$2.NAME) {
38130
38130
  switch (keywordToken.value) {
38131
38131
  case 'schema':
38132
38132
  return this.parseSchemaExtension();
@@ -38165,7 +38165,7 @@ var Parser = /*#__PURE__*/function () {
38165
38165
  this.expectKeyword('extend');
38166
38166
  this.expectKeyword('schema');
38167
38167
  var directives = this.parseDirectives(true);
38168
- var operationTypes = this.optionalMany(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
38168
+ var operationTypes = this.optionalMany(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
38169
38169
 
38170
38170
  if (directives.length === 0 && operationTypes.length === 0) {
38171
38171
  throw this.unexpected();
@@ -38353,7 +38353,7 @@ var Parser = /*#__PURE__*/function () {
38353
38353
  var start = this._lexer.token;
38354
38354
  var description = this.parseDescription();
38355
38355
  this.expectKeyword('directive');
38356
- this.expectToken(TokenKind$3.AT);
38356
+ this.expectToken(TokenKind$2.AT);
38357
38357
  var name = this.parseName();
38358
38358
  var args = this.parseArgumentDefs();
38359
38359
  var repeatable = this.expectOptionalKeyword('repeatable');
@@ -38377,7 +38377,7 @@ var Parser = /*#__PURE__*/function () {
38377
38377
  ;
38378
38378
 
38379
38379
  _proto.parseDirectiveLocations = function parseDirectiveLocations() {
38380
- return this.delimitedMany(TokenKind$3.PIPE, this.parseDirectiveLocation);
38380
+ return this.delimitedMany(TokenKind$2.PIPE, this.parseDirectiveLocation);
38381
38381
  }
38382
38382
  /*
38383
38383
  * DirectiveLocation :
@@ -38412,7 +38412,7 @@ var Parser = /*#__PURE__*/function () {
38412
38412
  var start = this._lexer.token;
38413
38413
  var name = this.parseName();
38414
38414
 
38415
- if (DirectiveLocation$3[name.value] !== undefined) {
38415
+ if (DirectiveLocation$2[name.value] !== undefined) {
38416
38416
  return name;
38417
38417
  }
38418
38418
 
@@ -38482,7 +38482,7 @@ var Parser = /*#__PURE__*/function () {
38482
38482
  _proto.expectKeyword = function expectKeyword(value) {
38483
38483
  var token = this._lexer.token;
38484
38484
 
38485
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38485
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38486
38486
  this._lexer.advance();
38487
38487
  } else {
38488
38488
  throw syntaxError(this._lexer.source, token.start, "Expected \"".concat(value, "\", found ").concat(getTokenDesc(token), "."));
@@ -38497,7 +38497,7 @@ var Parser = /*#__PURE__*/function () {
38497
38497
  _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {
38498
38498
  var token = this._lexer.token;
38499
38499
 
38500
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38500
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38501
38501
  this._lexer.advance();
38502
38502
 
38503
38503
  return true;
@@ -41436,79 +41436,79 @@ var __DirectiveLocation = new GraphQLEnumType({
41436
41436
  description: 'A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.',
41437
41437
  values: {
41438
41438
  QUERY: {
41439
- value: DirectiveLocation$3.QUERY,
41439
+ value: DirectiveLocation$2.QUERY,
41440
41440
  description: 'Location adjacent to a query operation.'
41441
41441
  },
41442
41442
  MUTATION: {
41443
- value: DirectiveLocation$3.MUTATION,
41443
+ value: DirectiveLocation$2.MUTATION,
41444
41444
  description: 'Location adjacent to a mutation operation.'
41445
41445
  },
41446
41446
  SUBSCRIPTION: {
41447
- value: DirectiveLocation$3.SUBSCRIPTION,
41447
+ value: DirectiveLocation$2.SUBSCRIPTION,
41448
41448
  description: 'Location adjacent to a subscription operation.'
41449
41449
  },
41450
41450
  FIELD: {
41451
- value: DirectiveLocation$3.FIELD,
41451
+ value: DirectiveLocation$2.FIELD,
41452
41452
  description: 'Location adjacent to a field.'
41453
41453
  },
41454
41454
  FRAGMENT_DEFINITION: {
41455
- value: DirectiveLocation$3.FRAGMENT_DEFINITION,
41455
+ value: DirectiveLocation$2.FRAGMENT_DEFINITION,
41456
41456
  description: 'Location adjacent to a fragment definition.'
41457
41457
  },
41458
41458
  FRAGMENT_SPREAD: {
41459
- value: DirectiveLocation$3.FRAGMENT_SPREAD,
41459
+ value: DirectiveLocation$2.FRAGMENT_SPREAD,
41460
41460
  description: 'Location adjacent to a fragment spread.'
41461
41461
  },
41462
41462
  INLINE_FRAGMENT: {
41463
- value: DirectiveLocation$3.INLINE_FRAGMENT,
41463
+ value: DirectiveLocation$2.INLINE_FRAGMENT,
41464
41464
  description: 'Location adjacent to an inline fragment.'
41465
41465
  },
41466
41466
  VARIABLE_DEFINITION: {
41467
- value: DirectiveLocation$3.VARIABLE_DEFINITION,
41467
+ value: DirectiveLocation$2.VARIABLE_DEFINITION,
41468
41468
  description: 'Location adjacent to a variable definition.'
41469
41469
  },
41470
41470
  SCHEMA: {
41471
- value: DirectiveLocation$3.SCHEMA,
41471
+ value: DirectiveLocation$2.SCHEMA,
41472
41472
  description: 'Location adjacent to a schema definition.'
41473
41473
  },
41474
41474
  SCALAR: {
41475
- value: DirectiveLocation$3.SCALAR,
41475
+ value: DirectiveLocation$2.SCALAR,
41476
41476
  description: 'Location adjacent to a scalar definition.'
41477
41477
  },
41478
41478
  OBJECT: {
41479
- value: DirectiveLocation$3.OBJECT,
41479
+ value: DirectiveLocation$2.OBJECT,
41480
41480
  description: 'Location adjacent to an object type definition.'
41481
41481
  },
41482
41482
  FIELD_DEFINITION: {
41483
- value: DirectiveLocation$3.FIELD_DEFINITION,
41483
+ value: DirectiveLocation$2.FIELD_DEFINITION,
41484
41484
  description: 'Location adjacent to a field definition.'
41485
41485
  },
41486
41486
  ARGUMENT_DEFINITION: {
41487
- value: DirectiveLocation$3.ARGUMENT_DEFINITION,
41487
+ value: DirectiveLocation$2.ARGUMENT_DEFINITION,
41488
41488
  description: 'Location adjacent to an argument definition.'
41489
41489
  },
41490
41490
  INTERFACE: {
41491
- value: DirectiveLocation$3.INTERFACE,
41491
+ value: DirectiveLocation$2.INTERFACE,
41492
41492
  description: 'Location adjacent to an interface definition.'
41493
41493
  },
41494
41494
  UNION: {
41495
- value: DirectiveLocation$3.UNION,
41495
+ value: DirectiveLocation$2.UNION,
41496
41496
  description: 'Location adjacent to a union definition.'
41497
41497
  },
41498
41498
  ENUM: {
41499
- value: DirectiveLocation$3.ENUM,
41499
+ value: DirectiveLocation$2.ENUM,
41500
41500
  description: 'Location adjacent to an enum definition.'
41501
41501
  },
41502
41502
  ENUM_VALUE: {
41503
- value: DirectiveLocation$3.ENUM_VALUE,
41503
+ value: DirectiveLocation$2.ENUM_VALUE,
41504
41504
  description: 'Location adjacent to an enum value definition.'
41505
41505
  },
41506
41506
  INPUT_OBJECT: {
41507
- value: DirectiveLocation$3.INPUT_OBJECT,
41507
+ value: DirectiveLocation$2.INPUT_OBJECT,
41508
41508
  description: 'Location adjacent to an input object type definition.'
41509
41509
  },
41510
41510
  INPUT_FIELD_DEFINITION: {
41511
- value: DirectiveLocation$3.INPUT_FIELD_DEFINITION,
41511
+ value: DirectiveLocation$2.INPUT_FIELD_DEFINITION,
41512
41512
  description: 'Location adjacent to an input object field definition.'
41513
41513
  }
41514
41514
  }
@@ -41991,7 +41991,7 @@ defineInspect$1(GraphQLDirective);
41991
41991
  var GraphQLIncludeDirective = new GraphQLDirective({
41992
41992
  name: 'include',
41993
41993
  description: 'Directs the executor to include this field or fragment only when the `if` argument is true.',
41994
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
41994
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
41995
41995
  args: {
41996
41996
  if: {
41997
41997
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42006,7 +42006,7 @@ var GraphQLIncludeDirective = new GraphQLDirective({
42006
42006
  var GraphQLSkipDirective = new GraphQLDirective({
42007
42007
  name: 'skip',
42008
42008
  description: 'Directs the executor to skip this field or fragment when the `if` argument is true.',
42009
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
42009
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
42010
42010
  args: {
42011
42011
  if: {
42012
42012
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42026,7 +42026,7 @@ var DEFAULT_DEPRECATION_REASON = 'No longer supported';
42026
42026
  var GraphQLDeprecatedDirective = new GraphQLDirective({
42027
42027
  name: 'deprecated',
42028
42028
  description: 'Marks an element of a GraphQL schema as no longer supported.',
42029
- locations: [DirectiveLocation$3.FIELD_DEFINITION, DirectiveLocation$3.ARGUMENT_DEFINITION, DirectiveLocation$3.INPUT_FIELD_DEFINITION, DirectiveLocation$3.ENUM_VALUE],
42029
+ locations: [DirectiveLocation$2.FIELD_DEFINITION, DirectiveLocation$2.ARGUMENT_DEFINITION, DirectiveLocation$2.INPUT_FIELD_DEFINITION, DirectiveLocation$2.ENUM_VALUE],
42030
42030
  args: {
42031
42031
  reason: {
42032
42032
  type: GraphQLString,
@@ -42042,7 +42042,7 @@ var GraphQLDeprecatedDirective = new GraphQLDirective({
42042
42042
  var GraphQLSpecifiedByDirective = new GraphQLDirective({
42043
42043
  name: 'specifiedBy',
42044
42044
  description: 'Exposes a URL that specifies the behaviour of this scalar.',
42045
- locations: [DirectiveLocation$3.SCALAR],
42045
+ locations: [DirectiveLocation$2.SCALAR],
42046
42046
  args: {
42047
42047
  url: {
42048
42048
  type: new GraphQLNonNull(GraphQLString),
@@ -43077,58 +43077,58 @@ function getDirectiveLocationForASTPath(ancestors) {
43077
43077
  return getDirectiveLocationForOperation(appliedTo.operation);
43078
43078
 
43079
43079
  case Kind$3.FIELD:
43080
- return DirectiveLocation$3.FIELD;
43080
+ return DirectiveLocation$2.FIELD;
43081
43081
 
43082
43082
  case Kind$3.FRAGMENT_SPREAD:
43083
- return DirectiveLocation$3.FRAGMENT_SPREAD;
43083
+ return DirectiveLocation$2.FRAGMENT_SPREAD;
43084
43084
 
43085
43085
  case Kind$3.INLINE_FRAGMENT:
43086
- return DirectiveLocation$3.INLINE_FRAGMENT;
43086
+ return DirectiveLocation$2.INLINE_FRAGMENT;
43087
43087
 
43088
43088
  case Kind$3.FRAGMENT_DEFINITION:
43089
- return DirectiveLocation$3.FRAGMENT_DEFINITION;
43089
+ return DirectiveLocation$2.FRAGMENT_DEFINITION;
43090
43090
 
43091
43091
  case Kind$3.VARIABLE_DEFINITION:
43092
- return DirectiveLocation$3.VARIABLE_DEFINITION;
43092
+ return DirectiveLocation$2.VARIABLE_DEFINITION;
43093
43093
 
43094
43094
  case Kind$3.SCHEMA_DEFINITION:
43095
43095
  case Kind$3.SCHEMA_EXTENSION:
43096
- return DirectiveLocation$3.SCHEMA;
43096
+ return DirectiveLocation$2.SCHEMA;
43097
43097
 
43098
43098
  case Kind$3.SCALAR_TYPE_DEFINITION:
43099
43099
  case Kind$3.SCALAR_TYPE_EXTENSION:
43100
- return DirectiveLocation$3.SCALAR;
43100
+ return DirectiveLocation$2.SCALAR;
43101
43101
 
43102
43102
  case Kind$3.OBJECT_TYPE_DEFINITION:
43103
43103
  case Kind$3.OBJECT_TYPE_EXTENSION:
43104
- return DirectiveLocation$3.OBJECT;
43104
+ return DirectiveLocation$2.OBJECT;
43105
43105
 
43106
43106
  case Kind$3.FIELD_DEFINITION:
43107
- return DirectiveLocation$3.FIELD_DEFINITION;
43107
+ return DirectiveLocation$2.FIELD_DEFINITION;
43108
43108
 
43109
43109
  case Kind$3.INTERFACE_TYPE_DEFINITION:
43110
43110
  case Kind$3.INTERFACE_TYPE_EXTENSION:
43111
- return DirectiveLocation$3.INTERFACE;
43111
+ return DirectiveLocation$2.INTERFACE;
43112
43112
 
43113
43113
  case Kind$3.UNION_TYPE_DEFINITION:
43114
43114
  case Kind$3.UNION_TYPE_EXTENSION:
43115
- return DirectiveLocation$3.UNION;
43115
+ return DirectiveLocation$2.UNION;
43116
43116
 
43117
43117
  case Kind$3.ENUM_TYPE_DEFINITION:
43118
43118
  case Kind$3.ENUM_TYPE_EXTENSION:
43119
- return DirectiveLocation$3.ENUM;
43119
+ return DirectiveLocation$2.ENUM;
43120
43120
 
43121
43121
  case Kind$3.ENUM_VALUE_DEFINITION:
43122
- return DirectiveLocation$3.ENUM_VALUE;
43122
+ return DirectiveLocation$2.ENUM_VALUE;
43123
43123
 
43124
43124
  case Kind$3.INPUT_OBJECT_TYPE_DEFINITION:
43125
43125
  case Kind$3.INPUT_OBJECT_TYPE_EXTENSION:
43126
- return DirectiveLocation$3.INPUT_OBJECT;
43126
+ return DirectiveLocation$2.INPUT_OBJECT;
43127
43127
 
43128
43128
  case Kind$3.INPUT_VALUE_DEFINITION:
43129
43129
  {
43130
43130
  var parentNode = ancestors[ancestors.length - 3];
43131
- return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$3.INPUT_FIELD_DEFINITION : DirectiveLocation$3.ARGUMENT_DEFINITION;
43131
+ return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$2.INPUT_FIELD_DEFINITION : DirectiveLocation$2.ARGUMENT_DEFINITION;
43132
43132
  }
43133
43133
  }
43134
43134
  }
@@ -43136,13 +43136,13 @@ function getDirectiveLocationForASTPath(ancestors) {
43136
43136
  function getDirectiveLocationForOperation(operation) {
43137
43137
  switch (operation) {
43138
43138
  case 'query':
43139
- return DirectiveLocation$3.QUERY;
43139
+ return DirectiveLocation$2.QUERY;
43140
43140
 
43141
43141
  case 'mutation':
43142
- return DirectiveLocation$3.MUTATION;
43142
+ return DirectiveLocation$2.MUTATION;
43143
43143
 
43144
43144
  case 'subscription':
43145
- return DirectiveLocation$3.SUBSCRIPTION;
43145
+ return DirectiveLocation$2.SUBSCRIPTION;
43146
43146
  } // istanbul ignore next (Not reachable. All possible types have been considered)
43147
43147
 
43148
43148
 
@@ -46029,7 +46029,7 @@ function getLeadingCommentBlock(node) {
46029
46029
  var comments = [];
46030
46030
  var token = loc.startToken.prev;
46031
46031
 
46032
- while (token != null && token.kind === TokenKind$3.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46032
+ while (token != null && token.kind === TokenKind$2.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46033
46033
  var value = String(token.value);
46034
46034
  comments.push(value);
46035
46035
  token = token.prev;
@@ -46191,7 +46191,7 @@ function stripIgnoredCharacters(source) {
46191
46191
  var strippedBody = '';
46192
46192
  var wasLastAddedTokenNonPunctuator = false;
46193
46193
 
46194
- while (lexer.advance().kind !== TokenKind$3.EOF) {
46194
+ while (lexer.advance().kind !== TokenKind$2.EOF) {
46195
46195
  var currentToken = lexer.token;
46196
46196
  var tokenKind = currentToken.kind;
46197
46197
  /**
@@ -46203,14 +46203,14 @@ function stripIgnoredCharacters(source) {
46203
46203
  var isNonPunctuator = !isPunctuatorTokenKind(currentToken.kind);
46204
46204
 
46205
46205
  if (wasLastAddedTokenNonPunctuator) {
46206
- if (isNonPunctuator || currentToken.kind === TokenKind$3.SPREAD) {
46206
+ if (isNonPunctuator || currentToken.kind === TokenKind$2.SPREAD) {
46207
46207
  strippedBody += ' ';
46208
46208
  }
46209
46209
  }
46210
46210
 
46211
46211
  var tokenBody = body.slice(currentToken.start, currentToken.end);
46212
46212
 
46213
- if (tokenKind === TokenKind$3.BLOCK_STRING) {
46213
+ if (tokenKind === TokenKind$2.BLOCK_STRING) {
46214
46214
  strippedBody += dedentBlockString(tokenBody);
46215
46215
  } else {
46216
46216
  strippedBody += tokenBody;
@@ -46643,7 +46643,7 @@ const docMap = new Map();
46643
46643
  * Opaque reference map to return keys to userland
46644
46644
  * As a user shouldn't have access to the Document
46645
46645
  */
46646
- const referenceMap$2 = new WeakMap();
46646
+ const referenceMap$1 = new WeakMap();
46647
46647
  /**
46648
46648
  * Strips characters that are not significant to the validity or execution
46649
46649
  * of a GraphQL document:
@@ -46691,7 +46691,7 @@ function insertFragments(doc, fragments) {
46691
46691
  return doc;
46692
46692
  }
46693
46693
  function updateReferenceMapWithKnownKey(doc, key) {
46694
- referenceMap$2.set(key, doc);
46694
+ referenceMap$1.set(key, doc);
46695
46695
  }
46696
46696
  function updateReferenceMapAndGetKey(doc) {
46697
46697
  // the key is a String object so that legacy locker does not replace its identity.
@@ -46716,7 +46716,7 @@ function processSubstitutions(inputString, substitutions) {
46716
46716
  outputString += substitution;
46717
46717
  }
46718
46718
  else if (typeof substitution === 'object') {
46719
- const doc = referenceMap$2.get(substitution);
46719
+ const doc = referenceMap$1.get(substitution);
46720
46720
  if (doc === undefined) {
46721
46721
  return null;
46722
46722
  }
@@ -46737,8 +46737,8 @@ function processSubstitutions(inputString, substitutions) {
46737
46737
  *
46738
46738
  * @param astReference - ast reference passed from user land
46739
46739
  */
46740
- const astResolver$2 = function (astReference) {
46741
- return referenceMap$2.get(astReference);
46740
+ const astResolver$1 = function (astReference) {
46741
+ return referenceMap$1.get(astReference);
46742
46742
  };
46743
46743
  /**
46744
46744
  *
@@ -46937,6 +46937,15 @@ function parseAndVisit(source) {
46937
46937
  return luvioDocumentNode;
46938
46938
  }
46939
46939
 
46940
+ var graphqlRelationshipFieldsPerf = {
46941
+ isOpen: function (e) {
46942
+ return e.fallback;
46943
+ },
46944
+ hasError: function () {
46945
+ return !0;
46946
+ },
46947
+ };
46948
+
46940
46949
  var FIRST_DAY_OF_WEEK = 0;
46941
46950
 
46942
46951
  var graphqQueryFieldLimit = {
@@ -47395,6 +47404,906 @@ function buildReadWriteResult(data, errors) {
47395
47404
  return ok$3(data);
47396
47405
  }
47397
47406
 
47407
+ /**
47408
+ * Copyright (c) 2022, Salesforce, Inc.,
47409
+ * All rights reserved.
47410
+ * For full license text, see the LICENSE.txt file
47411
+ */
47412
+
47413
+ /*!
47414
+ * Copyright (c) 2022, Salesforce, Inc.,
47415
+ * All rights reserved.
47416
+ * For full license text, see the LICENSE.txt file
47417
+ */
47418
+ function devAssert(condition, message) {
47419
+ const booleanCondition = Boolean(condition);
47420
+ if (!booleanCondition) {
47421
+ throw new Error(message);
47422
+ }
47423
+ }
47424
+ const MAX_ARRAY_LENGTH$1 = 10;
47425
+ const MAX_RECURSIVE_DEPTH$1 = 2;
47426
+ function inspect$1(value) {
47427
+ return formatValue$1(value, []);
47428
+ }
47429
+ function formatValue$1(value, seenValues) {
47430
+ switch (typeof value) {
47431
+ case "string":
47432
+ return JSON.stringify(value);
47433
+ case "function":
47434
+ return value.name ? `[function ${value.name}]` : "[function]";
47435
+ case "object":
47436
+ return formatObjectValue$1(value, seenValues);
47437
+ default:
47438
+ return String(value);
47439
+ }
47440
+ }
47441
+ function formatObjectValue$1(value, previouslySeenValues) {
47442
+ if (value === null) {
47443
+ return "null";
47444
+ }
47445
+ if (previouslySeenValues.includes(value)) {
47446
+ return "[Circular]";
47447
+ }
47448
+ const seenValues = [...previouslySeenValues, value];
47449
+ if (isJSONable(value)) {
47450
+ const jsonValue = value.toJSON();
47451
+ if (jsonValue !== value) {
47452
+ return typeof jsonValue === "string" ? jsonValue : formatValue$1(jsonValue, seenValues);
47453
+ }
47454
+ } else if (Array.isArray(value)) {
47455
+ return formatArray$1(value, seenValues);
47456
+ }
47457
+ return formatObject$1(value, seenValues);
47458
+ }
47459
+ function isJSONable(value) {
47460
+ return typeof value.toJSON === "function";
47461
+ }
47462
+ function formatObject$1(object, seenValues) {
47463
+ const entries = Object.entries(object);
47464
+ if (entries.length === 0) {
47465
+ return "{}";
47466
+ }
47467
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47468
+ return "[" + getObjectTag$1(object) + "]";
47469
+ }
47470
+ const properties = entries.map(
47471
+ ([key, value]) => key + ": " + formatValue$1(value, seenValues)
47472
+ );
47473
+ return "{ " + properties.join(", ") + " }";
47474
+ }
47475
+ function formatArray$1(array, seenValues) {
47476
+ if (array.length === 0) {
47477
+ return "[]";
47478
+ }
47479
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47480
+ return "[Array]";
47481
+ }
47482
+ const len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
47483
+ const remaining = array.length - len;
47484
+ const items = [];
47485
+ for (let i = 0; i < len; ++i) {
47486
+ items.push(formatValue$1(array[i], seenValues));
47487
+ }
47488
+ if (remaining === 1) {
47489
+ items.push("... 1 more item");
47490
+ } else if (remaining > 1) {
47491
+ items.push(`... ${remaining} more items`);
47492
+ }
47493
+ return "[" + items.join(", ") + "]";
47494
+ }
47495
+ function getObjectTag$1(object) {
47496
+ const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
47497
+ if (tag === "Object" && typeof object.constructor === "function") {
47498
+ const name = object.constructor.name;
47499
+ if (typeof name === "string" && name !== "") {
47500
+ return name;
47501
+ }
47502
+ }
47503
+ return tag;
47504
+ }
47505
+ var Kind$2;
47506
+ (function(Kind2) {
47507
+ Kind2["NAME"] = "Name";
47508
+ Kind2["DOCUMENT"] = "Document";
47509
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
47510
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
47511
+ Kind2["SELECTION_SET"] = "SelectionSet";
47512
+ Kind2["FIELD"] = "Field";
47513
+ Kind2["ARGUMENT"] = "Argument";
47514
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
47515
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
47516
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
47517
+ Kind2["VARIABLE"] = "Variable";
47518
+ Kind2["INT"] = "IntValue";
47519
+ Kind2["FLOAT"] = "FloatValue";
47520
+ Kind2["STRING"] = "StringValue";
47521
+ Kind2["BOOLEAN"] = "BooleanValue";
47522
+ Kind2["NULL"] = "NullValue";
47523
+ Kind2["ENUM"] = "EnumValue";
47524
+ Kind2["LIST"] = "ListValue";
47525
+ Kind2["OBJECT"] = "ObjectValue";
47526
+ Kind2["OBJECT_FIELD"] = "ObjectField";
47527
+ Kind2["DIRECTIVE"] = "Directive";
47528
+ Kind2["NAMED_TYPE"] = "NamedType";
47529
+ Kind2["LIST_TYPE"] = "ListType";
47530
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
47531
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
47532
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
47533
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
47534
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
47535
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
47536
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
47537
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
47538
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
47539
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
47540
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
47541
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
47542
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
47543
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
47544
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
47545
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
47546
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
47547
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
47548
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
47549
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
47550
+ })(Kind$2 || (Kind$2 = {}));
47551
+ var TokenKind$1;
47552
+ (function(TokenKind2) {
47553
+ TokenKind2["SOF"] = "<SOF>";
47554
+ TokenKind2["EOF"] = "<EOF>";
47555
+ TokenKind2["BANG"] = "!";
47556
+ TokenKind2["DOLLAR"] = "$";
47557
+ TokenKind2["AMP"] = "&";
47558
+ TokenKind2["PAREN_L"] = "(";
47559
+ TokenKind2["PAREN_R"] = ")";
47560
+ TokenKind2["SPREAD"] = "...";
47561
+ TokenKind2["COLON"] = ":";
47562
+ TokenKind2["EQUALS"] = "=";
47563
+ TokenKind2["AT"] = "@";
47564
+ TokenKind2["BRACKET_L"] = "[";
47565
+ TokenKind2["BRACKET_R"] = "]";
47566
+ TokenKind2["BRACE_L"] = "{";
47567
+ TokenKind2["PIPE"] = "|";
47568
+ TokenKind2["BRACE_R"] = "}";
47569
+ TokenKind2["NAME"] = "Name";
47570
+ TokenKind2["INT"] = "Int";
47571
+ TokenKind2["FLOAT"] = "Float";
47572
+ TokenKind2["STRING"] = "String";
47573
+ TokenKind2["BLOCK_STRING"] = "BlockString";
47574
+ TokenKind2["COMMENT"] = "Comment";
47575
+ })(TokenKind$1 || (TokenKind$1 = {}));
47576
+ const QueryDocumentKeys$2 = {
47577
+ Name: [],
47578
+ Document: ["definitions"],
47579
+ OperationDefinition: [
47580
+ "name",
47581
+ "variableDefinitions",
47582
+ "directives",
47583
+ "selectionSet"
47584
+ ],
47585
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
47586
+ Variable: ["name"],
47587
+ SelectionSet: ["selections"],
47588
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
47589
+ Argument: ["name", "value"],
47590
+ FragmentSpread: ["name", "directives"],
47591
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
47592
+ FragmentDefinition: [
47593
+ "name",
47594
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
47595
+ "variableDefinitions",
47596
+ "typeCondition",
47597
+ "directives",
47598
+ "selectionSet"
47599
+ ],
47600
+ IntValue: [],
47601
+ FloatValue: [],
47602
+ StringValue: [],
47603
+ BooleanValue: [],
47604
+ NullValue: [],
47605
+ EnumValue: [],
47606
+ ListValue: ["values"],
47607
+ ObjectValue: ["fields"],
47608
+ ObjectField: ["name", "value"],
47609
+ Directive: ["name", "arguments"],
47610
+ NamedType: ["name"],
47611
+ ListType: ["type"],
47612
+ NonNullType: ["type"],
47613
+ SchemaDefinition: ["description", "directives", "operationTypes"],
47614
+ OperationTypeDefinition: ["type"],
47615
+ ScalarTypeDefinition: ["description", "name", "directives"],
47616
+ ObjectTypeDefinition: [
47617
+ "description",
47618
+ "name",
47619
+ "interfaces",
47620
+ "directives",
47621
+ "fields"
47622
+ ],
47623
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
47624
+ InputValueDefinition: [
47625
+ "description",
47626
+ "name",
47627
+ "type",
47628
+ "defaultValue",
47629
+ "directives"
47630
+ ],
47631
+ InterfaceTypeDefinition: [
47632
+ "description",
47633
+ "name",
47634
+ "interfaces",
47635
+ "directives",
47636
+ "fields"
47637
+ ],
47638
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
47639
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
47640
+ EnumValueDefinition: ["description", "name", "directives"],
47641
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
47642
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
47643
+ SchemaExtension: ["directives", "operationTypes"],
47644
+ ScalarTypeExtension: ["name", "directives"],
47645
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
47646
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
47647
+ UnionTypeExtension: ["name", "directives", "types"],
47648
+ EnumTypeExtension: ["name", "directives", "values"],
47649
+ InputObjectTypeExtension: ["name", "directives", "fields"]
47650
+ };
47651
+ const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
47652
+ function isNode$1(maybeNode) {
47653
+ const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
47654
+ return typeof maybeKind === "string" && kindValues.has(maybeKind);
47655
+ }
47656
+ var OperationTypeNode$1;
47657
+ (function(OperationTypeNode2) {
47658
+ OperationTypeNode2["QUERY"] = "query";
47659
+ OperationTypeNode2["MUTATION"] = "mutation";
47660
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
47661
+ })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
47662
+ function isWhiteSpace(code) {
47663
+ return code === 9 || code === 32;
47664
+ }
47665
+ function printBlockString(value, options) {
47666
+ const escapedValue = value.replace(/"""/g, '\\"""');
47667
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
47668
+ const isSingleLine = lines.length === 1;
47669
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
47670
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
47671
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
47672
+ const hasTrailingSlash = value.endsWith("\\");
47673
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
47674
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
47675
+ (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
47676
+ let result = "";
47677
+ const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
47678
+ if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
47679
+ result += "\n";
47680
+ }
47681
+ result += escapedValue;
47682
+ if (printAsMultipleLines || forceTrailingNewline) {
47683
+ result += "\n";
47684
+ }
47685
+ return '"""' + result + '"""';
47686
+ }
47687
+ var DirectiveLocation$1;
47688
+ (function(DirectiveLocation2) {
47689
+ DirectiveLocation2["QUERY"] = "QUERY";
47690
+ DirectiveLocation2["MUTATION"] = "MUTATION";
47691
+ DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
47692
+ DirectiveLocation2["FIELD"] = "FIELD";
47693
+ DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
47694
+ DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
47695
+ DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
47696
+ DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
47697
+ DirectiveLocation2["SCHEMA"] = "SCHEMA";
47698
+ DirectiveLocation2["SCALAR"] = "SCALAR";
47699
+ DirectiveLocation2["OBJECT"] = "OBJECT";
47700
+ DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
47701
+ DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
47702
+ DirectiveLocation2["INTERFACE"] = "INTERFACE";
47703
+ DirectiveLocation2["UNION"] = "UNION";
47704
+ DirectiveLocation2["ENUM"] = "ENUM";
47705
+ DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
47706
+ DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
47707
+ DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
47708
+ })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
47709
+ function printString(str) {
47710
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
47711
+ }
47712
+ const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
47713
+ function escapedReplacer(str) {
47714
+ return escapeSequences[str.charCodeAt(0)];
47715
+ }
47716
+ const escapeSequences = [
47717
+ "\\u0000",
47718
+ "\\u0001",
47719
+ "\\u0002",
47720
+ "\\u0003",
47721
+ "\\u0004",
47722
+ "\\u0005",
47723
+ "\\u0006",
47724
+ "\\u0007",
47725
+ "\\b",
47726
+ "\\t",
47727
+ "\\n",
47728
+ "\\u000B",
47729
+ "\\f",
47730
+ "\\r",
47731
+ "\\u000E",
47732
+ "\\u000F",
47733
+ "\\u0010",
47734
+ "\\u0011",
47735
+ "\\u0012",
47736
+ "\\u0013",
47737
+ "\\u0014",
47738
+ "\\u0015",
47739
+ "\\u0016",
47740
+ "\\u0017",
47741
+ "\\u0018",
47742
+ "\\u0019",
47743
+ "\\u001A",
47744
+ "\\u001B",
47745
+ "\\u001C",
47746
+ "\\u001D",
47747
+ "\\u001E",
47748
+ "\\u001F",
47749
+ "",
47750
+ "",
47751
+ '\\"',
47752
+ "",
47753
+ "",
47754
+ "",
47755
+ "",
47756
+ "",
47757
+ "",
47758
+ "",
47759
+ "",
47760
+ "",
47761
+ "",
47762
+ "",
47763
+ "",
47764
+ "",
47765
+ // 2F
47766
+ "",
47767
+ "",
47768
+ "",
47769
+ "",
47770
+ "",
47771
+ "",
47772
+ "",
47773
+ "",
47774
+ "",
47775
+ "",
47776
+ "",
47777
+ "",
47778
+ "",
47779
+ "",
47780
+ "",
47781
+ "",
47782
+ // 3F
47783
+ "",
47784
+ "",
47785
+ "",
47786
+ "",
47787
+ "",
47788
+ "",
47789
+ "",
47790
+ "",
47791
+ "",
47792
+ "",
47793
+ "",
47794
+ "",
47795
+ "",
47796
+ "",
47797
+ "",
47798
+ "",
47799
+ // 4F
47800
+ "",
47801
+ "",
47802
+ "",
47803
+ "",
47804
+ "",
47805
+ "",
47806
+ "",
47807
+ "",
47808
+ "",
47809
+ "",
47810
+ "",
47811
+ "",
47812
+ "\\\\",
47813
+ "",
47814
+ "",
47815
+ "",
47816
+ // 5F
47817
+ "",
47818
+ "",
47819
+ "",
47820
+ "",
47821
+ "",
47822
+ "",
47823
+ "",
47824
+ "",
47825
+ "",
47826
+ "",
47827
+ "",
47828
+ "",
47829
+ "",
47830
+ "",
47831
+ "",
47832
+ "",
47833
+ // 6F
47834
+ "",
47835
+ "",
47836
+ "",
47837
+ "",
47838
+ "",
47839
+ "",
47840
+ "",
47841
+ "",
47842
+ "",
47843
+ "",
47844
+ "",
47845
+ "",
47846
+ "",
47847
+ "",
47848
+ "",
47849
+ "\\u007F",
47850
+ "\\u0080",
47851
+ "\\u0081",
47852
+ "\\u0082",
47853
+ "\\u0083",
47854
+ "\\u0084",
47855
+ "\\u0085",
47856
+ "\\u0086",
47857
+ "\\u0087",
47858
+ "\\u0088",
47859
+ "\\u0089",
47860
+ "\\u008A",
47861
+ "\\u008B",
47862
+ "\\u008C",
47863
+ "\\u008D",
47864
+ "\\u008E",
47865
+ "\\u008F",
47866
+ "\\u0090",
47867
+ "\\u0091",
47868
+ "\\u0092",
47869
+ "\\u0093",
47870
+ "\\u0094",
47871
+ "\\u0095",
47872
+ "\\u0096",
47873
+ "\\u0097",
47874
+ "\\u0098",
47875
+ "\\u0099",
47876
+ "\\u009A",
47877
+ "\\u009B",
47878
+ "\\u009C",
47879
+ "\\u009D",
47880
+ "\\u009E",
47881
+ "\\u009F"
47882
+ ];
47883
+ const BREAK$1 = Object.freeze({});
47884
+ function visit$1(root, visitor, visitorKeys = QueryDocumentKeys$2) {
47885
+ const enterLeaveMap = /* @__PURE__ */ new Map();
47886
+ for (const kind of Object.values(Kind$2)) {
47887
+ enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
47888
+ }
47889
+ let stack = void 0;
47890
+ let inArray = Array.isArray(root);
47891
+ let keys = [root];
47892
+ let index = -1;
47893
+ let edits = [];
47894
+ let node = root;
47895
+ let key = void 0;
47896
+ let parent = void 0;
47897
+ const path = [];
47898
+ const ancestors = [];
47899
+ do {
47900
+ index++;
47901
+ const isLeaving = index === keys.length;
47902
+ const isEdited = isLeaving && edits.length !== 0;
47903
+ if (isLeaving) {
47904
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
47905
+ node = parent;
47906
+ parent = ancestors.pop();
47907
+ if (isEdited) {
47908
+ if (inArray) {
47909
+ node = node.slice();
47910
+ let editOffset = 0;
47911
+ for (const [editKey, editValue] of edits) {
47912
+ const arrayKey = editKey - editOffset;
47913
+ if (editValue === null) {
47914
+ node.splice(arrayKey, 1);
47915
+ editOffset++;
47916
+ } else {
47917
+ node[arrayKey] = editValue;
47918
+ }
47919
+ }
47920
+ } else {
47921
+ node = { ...node };
47922
+ for (const [editKey, editValue] of edits) {
47923
+ node[editKey] = editValue;
47924
+ }
47925
+ }
47926
+ }
47927
+ index = stack.index;
47928
+ keys = stack.keys;
47929
+ edits = stack.edits;
47930
+ inArray = stack.inArray;
47931
+ stack = stack.prev;
47932
+ } else if (parent) {
47933
+ key = inArray ? index : keys[index];
47934
+ node = parent[key];
47935
+ if (node === null || node === void 0) {
47936
+ continue;
47937
+ }
47938
+ path.push(key);
47939
+ }
47940
+ let result;
47941
+ if (!Array.isArray(node)) {
47942
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
47943
+ isNode$1(node) || devAssert(false, `Invalid AST Node: ${inspect$1(node)}.`);
47944
+ const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
47945
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
47946
+ if (result === BREAK$1) {
47947
+ break;
47948
+ }
47949
+ if (result === false) {
47950
+ if (!isLeaving) {
47951
+ path.pop();
47952
+ continue;
47953
+ }
47954
+ } else if (result !== void 0) {
47955
+ edits.push([key, result]);
47956
+ if (!isLeaving) {
47957
+ if (isNode$1(result)) {
47958
+ node = result;
47959
+ } else {
47960
+ path.pop();
47961
+ continue;
47962
+ }
47963
+ }
47964
+ }
47965
+ }
47966
+ if (result === void 0 && isEdited) {
47967
+ edits.push([key, node]);
47968
+ }
47969
+ if (isLeaving) {
47970
+ path.pop();
47971
+ } else {
47972
+ var _node$kind;
47973
+ stack = {
47974
+ inArray,
47975
+ index,
47976
+ keys,
47977
+ edits,
47978
+ prev: stack
47979
+ };
47980
+ inArray = Array.isArray(node);
47981
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
47982
+ index = -1;
47983
+ edits = [];
47984
+ if (parent) {
47985
+ ancestors.push(parent);
47986
+ }
47987
+ parent = node;
47988
+ }
47989
+ } while (stack !== void 0);
47990
+ if (edits.length !== 0) {
47991
+ return edits[edits.length - 1][1];
47992
+ }
47993
+ return root;
47994
+ }
47995
+ function getEnterLeaveForKind(visitor, kind) {
47996
+ const kindVisitor = visitor[kind];
47997
+ if (typeof kindVisitor === "object") {
47998
+ return kindVisitor;
47999
+ } else if (typeof kindVisitor === "function") {
48000
+ return {
48001
+ enter: kindVisitor,
48002
+ leave: void 0
48003
+ };
48004
+ }
48005
+ return {
48006
+ enter: visitor.enter,
48007
+ leave: visitor.leave
48008
+ };
48009
+ }
48010
+ function print(ast) {
48011
+ return visit$1(ast, printDocASTReducer);
48012
+ }
48013
+ const MAX_LINE_LENGTH = 80;
48014
+ const printDocASTReducer = {
48015
+ Name: {
48016
+ leave: (node) => node.value
48017
+ },
48018
+ Variable: {
48019
+ leave: (node) => "$" + node.name
48020
+ },
48021
+ // Document
48022
+ Document: {
48023
+ leave: (node) => join$2(node.definitions, "\n\n")
48024
+ },
48025
+ OperationDefinition: {
48026
+ leave(node) {
48027
+ const varDefs = wrap("(", join$2(node.variableDefinitions, ", "), ")");
48028
+ const prefix = join$2(
48029
+ [
48030
+ node.operation,
48031
+ join$2([node.name, varDefs]),
48032
+ join$2(node.directives, " ")
48033
+ ],
48034
+ " "
48035
+ );
48036
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
48037
+ }
48038
+ },
48039
+ VariableDefinition: {
48040
+ leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join$2(directives, " "))
48041
+ },
48042
+ SelectionSet: {
48043
+ leave: ({ selections }) => block(selections)
48044
+ },
48045
+ Field: {
48046
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
48047
+ const prefix = wrap("", alias, ": ") + name;
48048
+ let argsLine = prefix + wrap("(", join$2(args, ", "), ")");
48049
+ if (argsLine.length > MAX_LINE_LENGTH) {
48050
+ argsLine = prefix + wrap("(\n", indent(join$2(args, "\n")), "\n)");
48051
+ }
48052
+ return join$2([argsLine, join$2(directives, " "), selectionSet], " ");
48053
+ }
48054
+ },
48055
+ Argument: {
48056
+ leave: ({ name, value }) => name + ": " + value
48057
+ },
48058
+ // Fragments
48059
+ FragmentSpread: {
48060
+ leave: ({ name, directives }) => "..." + name + wrap(" ", join$2(directives, " "))
48061
+ },
48062
+ InlineFragment: {
48063
+ leave: ({ typeCondition, directives, selectionSet }) => join$2(
48064
+ [
48065
+ "...",
48066
+ wrap("on ", typeCondition),
48067
+ join$2(directives, " "),
48068
+ selectionSet
48069
+ ],
48070
+ " "
48071
+ )
48072
+ },
48073
+ FragmentDefinition: {
48074
+ leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
48075
+ // or removed in the future.
48076
+ `fragment ${name}${wrap("(", join$2(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join$2(directives, " "), " ")}` + selectionSet
48077
+ )
48078
+ },
48079
+ // Value
48080
+ IntValue: {
48081
+ leave: ({ value }) => value
48082
+ },
48083
+ FloatValue: {
48084
+ leave: ({ value }) => value
48085
+ },
48086
+ StringValue: {
48087
+ leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
48088
+ },
48089
+ BooleanValue: {
48090
+ leave: ({ value }) => value ? "true" : "false"
48091
+ },
48092
+ NullValue: {
48093
+ leave: () => "null"
48094
+ },
48095
+ EnumValue: {
48096
+ leave: ({ value }) => value
48097
+ },
48098
+ ListValue: {
48099
+ leave: ({ values }) => "[" + join$2(values, ", ") + "]"
48100
+ },
48101
+ ObjectValue: {
48102
+ leave: ({ fields }) => "{" + join$2(fields, ", ") + "}"
48103
+ },
48104
+ ObjectField: {
48105
+ leave: ({ name, value }) => name + ": " + value
48106
+ },
48107
+ // Directive
48108
+ Directive: {
48109
+ leave: ({ name, arguments: args }) => "@" + name + wrap("(", join$2(args, ", "), ")")
48110
+ },
48111
+ // Type
48112
+ NamedType: {
48113
+ leave: ({ name }) => name
48114
+ },
48115
+ ListType: {
48116
+ leave: ({ type }) => "[" + type + "]"
48117
+ },
48118
+ NonNullType: {
48119
+ leave: ({ type }) => type + "!"
48120
+ },
48121
+ // Type System Definitions
48122
+ SchemaDefinition: {
48123
+ leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join$2(["schema", join$2(directives, " "), block(operationTypes)], " ")
48124
+ },
48125
+ OperationTypeDefinition: {
48126
+ leave: ({ operation, type }) => operation + ": " + type
48127
+ },
48128
+ ScalarTypeDefinition: {
48129
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2(["scalar", name, join$2(directives, " ")], " ")
48130
+ },
48131
+ ObjectTypeDefinition: {
48132
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48133
+ [
48134
+ "type",
48135
+ name,
48136
+ wrap("implements ", join$2(interfaces, " & ")),
48137
+ join$2(directives, " "),
48138
+ block(fields)
48139
+ ],
48140
+ " "
48141
+ )
48142
+ },
48143
+ FieldDefinition: {
48144
+ leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join$2(args, "\n")), "\n)") : wrap("(", join$2(args, ", "), ")")) + ": " + type + wrap(" ", join$2(directives, " "))
48145
+ },
48146
+ InputValueDefinition: {
48147
+ leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join$2(
48148
+ [name + ": " + type, wrap("= ", defaultValue), join$2(directives, " ")],
48149
+ " "
48150
+ )
48151
+ },
48152
+ InterfaceTypeDefinition: {
48153
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48154
+ [
48155
+ "interface",
48156
+ name,
48157
+ wrap("implements ", join$2(interfaces, " & ")),
48158
+ join$2(directives, " "),
48159
+ block(fields)
48160
+ ],
48161
+ " "
48162
+ )
48163
+ },
48164
+ UnionTypeDefinition: {
48165
+ leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join$2(
48166
+ ["union", name, join$2(directives, " "), wrap("= ", join$2(types, " | "))],
48167
+ " "
48168
+ )
48169
+ },
48170
+ EnumTypeDefinition: {
48171
+ leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join$2(["enum", name, join$2(directives, " "), block(values)], " ")
48172
+ },
48173
+ EnumValueDefinition: {
48174
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2([name, join$2(directives, " ")], " ")
48175
+ },
48176
+ InputObjectTypeDefinition: {
48177
+ leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join$2(["input", name, join$2(directives, " "), block(fields)], " ")
48178
+ },
48179
+ DirectiveDefinition: {
48180
+ leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join$2(args, "\n")), "\n)") : wrap("(", join$2(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join$2(locations, " | ")
48181
+ },
48182
+ SchemaExtension: {
48183
+ leave: ({ directives, operationTypes }) => join$2(
48184
+ ["extend schema", join$2(directives, " "), block(operationTypes)],
48185
+ " "
48186
+ )
48187
+ },
48188
+ ScalarTypeExtension: {
48189
+ leave: ({ name, directives }) => join$2(["extend scalar", name, join$2(directives, " ")], " ")
48190
+ },
48191
+ ObjectTypeExtension: {
48192
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48193
+ [
48194
+ "extend type",
48195
+ name,
48196
+ wrap("implements ", join$2(interfaces, " & ")),
48197
+ join$2(directives, " "),
48198
+ block(fields)
48199
+ ],
48200
+ " "
48201
+ )
48202
+ },
48203
+ InterfaceTypeExtension: {
48204
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48205
+ [
48206
+ "extend interface",
48207
+ name,
48208
+ wrap("implements ", join$2(interfaces, " & ")),
48209
+ join$2(directives, " "),
48210
+ block(fields)
48211
+ ],
48212
+ " "
48213
+ )
48214
+ },
48215
+ UnionTypeExtension: {
48216
+ leave: ({ name, directives, types }) => join$2(
48217
+ [
48218
+ "extend union",
48219
+ name,
48220
+ join$2(directives, " "),
48221
+ wrap("= ", join$2(types, " | "))
48222
+ ],
48223
+ " "
48224
+ )
48225
+ },
48226
+ EnumTypeExtension: {
48227
+ leave: ({ name, directives, values }) => join$2(["extend enum", name, join$2(directives, " "), block(values)], " ")
48228
+ },
48229
+ InputObjectTypeExtension: {
48230
+ leave: ({ name, directives, fields }) => join$2(["extend input", name, join$2(directives, " "), block(fields)], " ")
48231
+ }
48232
+ };
48233
+ function join$2(maybeArray, separator = "") {
48234
+ var _maybeArray$filter$jo;
48235
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
48236
+ }
48237
+ function block(array) {
48238
+ return wrap("{\n", indent(join$2(array, "\n")), "\n}");
48239
+ }
48240
+ function wrap(start, maybeString, end = "") {
48241
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
48242
+ }
48243
+ function indent(str) {
48244
+ return wrap(" ", str.replace(/\n/g, "\n "));
48245
+ }
48246
+ function hasMultilineItems(maybeArray) {
48247
+ var _maybeArray$some;
48248
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
48249
+ }
48250
+ const referenceMap = /* @__PURE__ */ new WeakMap();
48251
+ const astResolver = function(astReference) {
48252
+ return referenceMap.get(astReference);
48253
+ };
48254
+ function findExecutableOperation$2(document, operationName) {
48255
+ const operations = document.definitions.filter(
48256
+ (def) => def.kind === Kind$2.OPERATION_DEFINITION
48257
+ );
48258
+ if (operations.length === 0) {
48259
+ return void 0;
48260
+ }
48261
+ if (operations.length === 1 && !operationName) {
48262
+ return operations[0];
48263
+ }
48264
+ if (operationName) {
48265
+ return operations.find((op) => {
48266
+ var _a;
48267
+ return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
48268
+ });
48269
+ }
48270
+ return void 0;
48271
+ }
48272
+ function validateGraphQLOperations(config, options) {
48273
+ const executableOperation = findExecutableOperation$2(config.query, config.operationName);
48274
+ if (executableOperation) {
48275
+ const operationType = executableOperation.operation;
48276
+ if (!options.acceptedOperations.includes(operationType)) {
48277
+ const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
48278
+ throw new Error(
48279
+ `${operationTypeCapitalized} operations are not supported in this context`
48280
+ );
48281
+ }
48282
+ }
48283
+ }
48284
+ function resolveAst(ast) {
48285
+ if (ast === null || ast === void 0) {
48286
+ return;
48287
+ }
48288
+ const result = astResolver(ast);
48289
+ if (result === void 0) {
48290
+ throw new Error("Could not resolve AST. Did you parse the query with gql?");
48291
+ }
48292
+ return result;
48293
+ }
48294
+ function wrapConfigAndVerify(config, options) {
48295
+ if (config == null ? void 0 : config.query) {
48296
+ config = { ...config, query: resolveAst(config.query) };
48297
+ if (config.query === void 0) {
48298
+ throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
48299
+ }
48300
+ validateGraphQLOperations(config, {
48301
+ acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
48302
+ });
48303
+ }
48304
+ return config;
48305
+ }
48306
+
47398
48307
  var productConsumedSideEffects = {
47399
48308
  isOpen: function (e) {
47400
48309
  return e.fallback;
@@ -47419,7 +48328,7 @@ var productConsumedSideEffects = {
47419
48328
 
47420
48329
 
47421
48330
  const { parse: parse$7, stringify: stringify$7 } = JSON;
47422
- const { join: join$2, push: push$2, unshift } = Array.prototype;
48331
+ const { join: join$1, push: push$2, unshift } = Array.prototype;
47423
48332
  const { isArray: isArray$5 } = Array;
47424
48333
  const { entries: entries$4, keys: keys$6 } = Object;
47425
48334
 
@@ -47553,14 +48462,14 @@ function buildAggregateUiUrl$1(params, resourceRequest) {
47553
48462
  const { fields, optionalFields } = params;
47554
48463
  const queryString = [];
47555
48464
  if (fields !== undefined && fields.length > 0) {
47556
- const fieldString = join$2.call(fields, ',');
48465
+ const fieldString = join$1.call(fields, ',');
47557
48466
  push$2.call(queryString, `fields=${encodeURIComponent(fieldString)}`);
47558
48467
  }
47559
48468
  if (optionalFields !== undefined && optionalFields.length > 0) {
47560
- const optionalFieldString = join$2.call(optionalFields, ',');
48469
+ const optionalFieldString = join$1.call(optionalFields, ',');
47561
48470
  push$2.call(queryString, `optionalFields=${encodeURIComponent(optionalFieldString)}`);
47562
48471
  }
47563
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$2.call(queryString, '&')}`;
48472
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
47564
48473
  }
47565
48474
  function buildGetRecordByFieldsCompositeRequest(resourceRequest, recordsCompositeRequest) {
47566
48475
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
@@ -83287,18 +84196,34 @@ function recordLoaderFactory(query) {
83287
84196
  async function batchRecordQuery(ids) {
83288
84197
  const varbinds = Array(ids.length).fill('?').join(',');
83289
84198
  const { rows } = await query(`select data from lds_data where key like 'UiApi::RecordRepresentation:%' and json_extract(data,'$.id') in (${varbinds})`, ids);
83290
- return ids.map((id) => {
83291
- let foundRow = null;
84199
+ if (graphqlRelationshipFieldsPerf.isOpen({ fallback: false })) {
84200
+ // old, non-performant logic fallback
84201
+ return ids.map((id) => {
84202
+ let foundRow = null;
84203
+ rows.forEach((row) => {
84204
+ if (!row[0])
84205
+ return null;
84206
+ const record = parse$5(row[0]);
84207
+ if (record.id === id) {
84208
+ foundRow = record;
84209
+ }
84210
+ });
84211
+ return foundRow;
84212
+ });
84213
+ }
84214
+ else {
84215
+ // DEFAULT PERFORMANT LOGIC - Use kill switch gate to revert
84216
+ // Build a map of id -> record (O(m) with single parse per record)
84217
+ const recordMap = new Map();
83292
84218
  rows.forEach((row) => {
83293
84219
  if (!row[0])
83294
- return null;
84220
+ return;
83295
84221
  const record = parse$5(row[0]);
83296
- if (record.id === id) {
83297
- foundRow = record;
83298
- }
84222
+ recordMap.set(record.id, record);
83299
84223
  });
83300
- return foundRow;
83301
- });
84224
+ // Map ids to records (O(n) lookup)
84225
+ return ids.map((id) => recordMap.get(id) || null);
84226
+ }
83302
84227
  }
83303
84228
  return new DataLoader(batchRecordQuery);
83304
84229
  }
@@ -85581,7 +86506,7 @@ const base64decode = typeof atob === 'function' ? atob : atobPolyfill;
85581
86506
  /**
85582
86507
  * The set of allowed kind values for AST nodes.
85583
86508
  */
85584
- var Kind$1$1 = Object.freeze({
86509
+ var Kind$1 = Object.freeze({
85585
86510
  // Name
85586
86511
  NAME: 'Name',
85587
86512
  // Document
@@ -85777,7 +86702,7 @@ defineInspect(Token);
85777
86702
  * @internal
85778
86703
  */
85779
86704
 
85780
- function isNode$1(maybeNode) {
86705
+ function isNode(maybeNode) {
85781
86706
  return maybeNode != null && typeof maybeNode.kind === 'string';
85782
86707
  }
85783
86708
  /**
@@ -85785,17 +86710,17 @@ function isNode$1(maybeNode) {
85785
86710
  */
85786
86711
 
85787
86712
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
85788
- var MAX_ARRAY_LENGTH$1 = 10;
85789
- var MAX_RECURSIVE_DEPTH$1 = 2;
86713
+ var MAX_ARRAY_LENGTH = 10;
86714
+ var MAX_RECURSIVE_DEPTH = 2;
85790
86715
  /**
85791
86716
  * Used to print values in error messages.
85792
86717
  */
85793
86718
 
85794
- function inspect$1(value) {
85795
- return formatValue$1(value, []);
86719
+ function inspect(value) {
86720
+ return formatValue(value, []);
85796
86721
  }
85797
86722
 
85798
- function formatValue$1(value, seenValues) {
86723
+ function formatValue(value, seenValues) {
85799
86724
  switch (_typeof(value)) {
85800
86725
  case 'string':
85801
86726
  return JSON.stringify(value);
@@ -85808,14 +86733,14 @@ function formatValue$1(value, seenValues) {
85808
86733
  return 'null';
85809
86734
  }
85810
86735
 
85811
- return formatObjectValue$1(value, seenValues);
86736
+ return formatObjectValue(value, seenValues);
85812
86737
 
85813
86738
  default:
85814
86739
  return String(value);
85815
86740
  }
85816
86741
  }
85817
86742
 
85818
- function formatObjectValue$1(value, previouslySeenValues) {
86743
+ function formatObjectValue(value, previouslySeenValues) {
85819
86744
  if (previouslySeenValues.indexOf(value) !== -1) {
85820
86745
  return '[Circular]';
85821
86746
  }
@@ -85827,48 +86752,48 @@ function formatObjectValue$1(value, previouslySeenValues) {
85827
86752
  var customValue = customInspectFn.call(value); // check for infinite recursion
85828
86753
 
85829
86754
  if (customValue !== value) {
85830
- return typeof customValue === 'string' ? customValue : formatValue$1(customValue, seenValues);
86755
+ return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);
85831
86756
  }
85832
86757
  } else if (Array.isArray(value)) {
85833
- return formatArray$1(value, seenValues);
86758
+ return formatArray(value, seenValues);
85834
86759
  }
85835
86760
 
85836
- return formatObject$1(value, seenValues);
86761
+ return formatObject(value, seenValues);
85837
86762
  }
85838
86763
 
85839
- function formatObject$1(object, seenValues) {
86764
+ function formatObject(object, seenValues) {
85840
86765
  var keys = Object.keys(object);
85841
86766
 
85842
86767
  if (keys.length === 0) {
85843
86768
  return '{}';
85844
86769
  }
85845
86770
 
85846
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
85847
- return '[' + getObjectTag$1(object) + ']';
86771
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
86772
+ return '[' + getObjectTag(object) + ']';
85848
86773
  }
85849
86774
 
85850
86775
  var properties = keys.map(function (key) {
85851
- var value = formatValue$1(object[key], seenValues);
86776
+ var value = formatValue(object[key], seenValues);
85852
86777
  return key + ': ' + value;
85853
86778
  });
85854
86779
  return '{ ' + properties.join(', ') + ' }';
85855
86780
  }
85856
86781
 
85857
- function formatArray$1(array, seenValues) {
86782
+ function formatArray(array, seenValues) {
85858
86783
  if (array.length === 0) {
85859
86784
  return '[]';
85860
86785
  }
85861
86786
 
85862
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
86787
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
85863
86788
  return '[Array]';
85864
86789
  }
85865
86790
 
85866
- var len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
86791
+ var len = Math.min(MAX_ARRAY_LENGTH, array.length);
85867
86792
  var remaining = array.length - len;
85868
86793
  var items = [];
85869
86794
 
85870
86795
  for (var i = 0; i < len; ++i) {
85871
- items.push(formatValue$1(array[i], seenValues));
86796
+ items.push(formatValue(array[i], seenValues));
85872
86797
  }
85873
86798
 
85874
86799
  if (remaining === 1) {
@@ -85892,7 +86817,7 @@ function getCustomFn(object) {
85892
86817
  }
85893
86818
  }
85894
86819
 
85895
- function getObjectTag$1(object) {
86820
+ function getObjectTag(object) {
85896
86821
  var tag = Object.prototype.toString.call(object).replace(/^\[object /, '').replace(/]$/, '');
85897
86822
 
85898
86823
  if (tag === 'Object' && typeof object.constructor === 'function') {
@@ -85911,7 +86836,7 @@ function getObjectTag$1(object) {
85911
86836
  * relevant functions to be called during the visitor's traversal.
85912
86837
  */
85913
86838
 
85914
- var QueryDocumentKeys$1$1 = {
86839
+ var QueryDocumentKeys$1 = {
85915
86840
  Name: [],
85916
86841
  Document: ['definitions'],
85917
86842
  OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],
@@ -85958,7 +86883,7 @@ var QueryDocumentKeys$1$1 = {
85958
86883
  EnumTypeExtension: ['name', 'directives', 'values'],
85959
86884
  InputObjectTypeExtension: ['name', 'directives', 'fields']
85960
86885
  };
85961
- var BREAK$1 = Object.freeze({});
86886
+ var BREAK = Object.freeze({});
85962
86887
  /**
85963
86888
  * visit() will walk through an AST using a depth-first traversal, calling
85964
86889
  * the visitor's enter function at each node in the traversal, and calling the
@@ -86046,8 +86971,8 @@ var BREAK$1 = Object.freeze({});
86046
86971
  * })
86047
86972
  */
86048
86973
 
86049
- function visit$1(root, visitor) {
86050
- var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1$1;
86974
+ function visit(root, visitor) {
86975
+ var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1;
86051
86976
 
86052
86977
  /* eslint-disable no-undef-init */
86053
86978
  var stack = undefined;
@@ -86127,8 +87052,8 @@ function visit$1(root, visitor) {
86127
87052
  var result = void 0;
86128
87053
 
86129
87054
  if (!Array.isArray(node)) {
86130
- if (!isNode$1(node)) {
86131
- throw new Error("Invalid AST Node: ".concat(inspect$1(node), "."));
87055
+ if (!isNode(node)) {
87056
+ throw new Error("Invalid AST Node: ".concat(inspect(node), "."));
86132
87057
  }
86133
87058
 
86134
87059
  var visitFn = getVisitFn(visitor, node.kind, isLeaving);
@@ -86136,7 +87061,7 @@ function visit$1(root, visitor) {
86136
87061
  if (visitFn) {
86137
87062
  result = visitFn.call(visitor, node, key, parent, path, ancestors);
86138
87063
 
86139
- if (result === BREAK$1) {
87064
+ if (result === BREAK) {
86140
87065
  break;
86141
87066
  }
86142
87067
 
@@ -86149,7 +87074,7 @@ function visit$1(root, visitor) {
86149
87074
  edits.push([key, result]);
86150
87075
 
86151
87076
  if (!isLeaving) {
86152
- if (isNode$1(result)) {
87077
+ if (isNode(result)) {
86153
87078
  node = result;
86154
87079
  } else {
86155
87080
  path.pop();
@@ -86325,7 +87250,7 @@ function decodeV1Cursor(base64cursor) {
86325
87250
  function selectionIncludesHasNextPage(selections, fragments) {
86326
87251
  for (let selection of selections) {
86327
87252
  switch (selection.kind) {
86328
- case Kind$1$1.FIELD: {
87253
+ case Kind$1.FIELD: {
86329
87254
  if (selection.name.value === 'pageInfo') {
86330
87255
  if (!selection.selectionSet)
86331
87256
  continue;
@@ -86336,7 +87261,7 @@ function selectionIncludesHasNextPage(selections, fragments) {
86336
87261
  }
86337
87262
  break;
86338
87263
  }
86339
- case Kind$1$1.FRAGMENT_SPREAD: {
87264
+ case Kind$1.FRAGMENT_SPREAD: {
86340
87265
  let fragment = fragments[selection.name.value];
86341
87266
  if (!fragment)
86342
87267
  return false;
@@ -86345,7 +87270,7 @@ function selectionIncludesHasNextPage(selections, fragments) {
86345
87270
  }
86346
87271
  break;
86347
87272
  }
86348
- case Kind$1$1.INLINE_FRAGMENT:
87273
+ case Kind$1.INLINE_FRAGMENT:
86349
87274
  if (selectionIncludesHasNextPage(selection.selectionSet.selections, fragments)) {
86350
87275
  return true;
86351
87276
  }
@@ -89460,7 +90385,7 @@ function enforceFieldLimitOnAST(ast, variables, objectInfos, enforcedLimits = {
89460
90385
  }) {
89461
90386
  const { maxFieldCount, maxRecordLimit, singleRecordField, maxFieldSize } = enforcedLimits;
89462
90387
  const fieldsWithDataType = findFieldTypeInObjectInfo(objectInfos, singleRecordField);
89463
- const documentNode = visit$1(ast, {
90388
+ const documentNode = visit(ast, {
89464
90389
  Field(node) {
89465
90390
  // is it a record query?
89466
90391
  if (!isRecordQuery(node)) {
@@ -89510,7 +90435,7 @@ function enforceFieldLimitOnAST(ast, variables, objectInfos, enforcedLimits = {
89510
90435
  return {
89511
90436
  ...argument,
89512
90437
  value: {
89513
- kind: Kind$1$1.INT,
90438
+ kind: Kind$1.INT,
89514
90439
  value: recordLimit,
89515
90440
  },
89516
90441
  };
@@ -90140,7 +91065,7 @@ const recordIdGenerator = (id) => {
90140
91065
 
90141
91066
  const { keys: keys$2$1, create: create$2$1, assign: assign$1$1, entries: entries$2 } = Object;
90142
91067
  const { stringify: stringify$4, parse: parse$4 } = JSON;
90143
- const { push: push$3, join: join$1, slice } = Array.prototype;
91068
+ const { push: push$3, join, slice } = Array.prototype;
90144
91069
  const { isArray: isArray$2$1, from } = Array;
90145
91070
 
90146
91071
  function ldsParamsToString(params) {
@@ -90321,10 +91246,10 @@ class ScopedFields {
90321
91246
  fields.forEach(this.addField, this);
90322
91247
  }
90323
91248
  toQueryParameterValue() {
90324
- const joinedFields = join$1.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
91249
+ const joinedFields = join.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
90325
91250
  return this.isUnScoped()
90326
91251
  ? joinedFields
90327
- : join$1.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
91252
+ : join.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
90328
91253
  }
90329
91254
  toQueryParams() {
90330
91255
  return this.isUnScoped() ? Object.keys(this.fields) : this.toQueryParameterValue();
@@ -90392,7 +91317,7 @@ class ScopedFieldsCollection {
90392
91317
  if (chunk !== undefined)
90393
91318
  result.push(chunk);
90394
91319
  }
90395
- return join$1.call(result, SEPARATOR_BETWEEN_SCOPES);
91320
+ return join.call(result, SEPARATOR_BETWEEN_SCOPES);
90396
91321
  }
90397
91322
  /**
90398
91323
  * split the ScopedFields into multiple ScopedFields
@@ -90569,7 +91494,7 @@ function buildAggregateUiUrl(params, resourceRequest) {
90569
91494
  queryString.push(`${key}=${isArray$2$1(value) ? value.join(',') : value}`);
90570
91495
  }
90571
91496
  }
90572
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
91497
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join.call(queryString, '&')}`;
90573
91498
  }
90574
91499
  function shouldUseAggregateUiForFields(fieldsArray, optionalFieldsArray, maxLengthPerChunk) {
90575
91500
  return fieldsArray.length + optionalFieldsArray.length >= maxLengthPerChunk;
@@ -97605,7 +98530,7 @@ function buildServiceDescriptor$b(luvio) {
97605
98530
  },
97606
98531
  };
97607
98532
  }
97608
- // version: 1.404.0-dev2-c0a696aed4
98533
+ // version: 1.404.0-dev5-38a59c52aa
97609
98534
 
97610
98535
  /**
97611
98536
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -97631,908 +98556,14 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
97631
98556
  },
97632
98557
  };
97633
98558
  }
97634
- // version: 1.404.0-dev2-c0a696aed4
97635
-
97636
- /*!
97637
- * Copyright (c) 2022, Salesforce, Inc.,
97638
- * All rights reserved.
97639
- * For full license text, see the LICENSE.txt file
97640
- */
97641
- function devAssert(condition, message) {
97642
- const booleanCondition = Boolean(condition);
97643
- if (!booleanCondition) {
97644
- throw new Error(message);
97645
- }
97646
- }
97647
- const MAX_ARRAY_LENGTH = 10;
97648
- const MAX_RECURSIVE_DEPTH = 2;
97649
- function inspect(value) {
97650
- return formatValue(value, []);
97651
- }
97652
- function formatValue(value, seenValues) {
97653
- switch (typeof value) {
97654
- case "string":
97655
- return JSON.stringify(value);
97656
- case "function":
97657
- return value.name ? `[function ${value.name}]` : "[function]";
97658
- case "object":
97659
- return formatObjectValue(value, seenValues);
97660
- default:
97661
- return String(value);
97662
- }
97663
- }
97664
- function formatObjectValue(value, previouslySeenValues) {
97665
- if (value === null) {
97666
- return "null";
97667
- }
97668
- if (previouslySeenValues.includes(value)) {
97669
- return "[Circular]";
97670
- }
97671
- const seenValues = [...previouslySeenValues, value];
97672
- if (isJSONable(value)) {
97673
- const jsonValue = value.toJSON();
97674
- if (jsonValue !== value) {
97675
- return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
97676
- }
97677
- } else if (Array.isArray(value)) {
97678
- return formatArray(value, seenValues);
97679
- }
97680
- return formatObject(value, seenValues);
97681
- }
97682
- function isJSONable(value) {
97683
- return typeof value.toJSON === "function";
97684
- }
97685
- function formatObject(object, seenValues) {
97686
- const entries = Object.entries(object);
97687
- if (entries.length === 0) {
97688
- return "{}";
97689
- }
97690
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97691
- return "[" + getObjectTag(object) + "]";
97692
- }
97693
- const properties = entries.map(
97694
- ([key, value]) => key + ": " + formatValue(value, seenValues)
97695
- );
97696
- return "{ " + properties.join(", ") + " }";
97697
- }
97698
- function formatArray(array, seenValues) {
97699
- if (array.length === 0) {
97700
- return "[]";
97701
- }
97702
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97703
- return "[Array]";
97704
- }
97705
- const len = Math.min(MAX_ARRAY_LENGTH, array.length);
97706
- const remaining = array.length - len;
97707
- const items = [];
97708
- for (let i = 0; i < len; ++i) {
97709
- items.push(formatValue(array[i], seenValues));
97710
- }
97711
- if (remaining === 1) {
97712
- items.push("... 1 more item");
97713
- } else if (remaining > 1) {
97714
- items.push(`... ${remaining} more items`);
97715
- }
97716
- return "[" + items.join(", ") + "]";
97717
- }
97718
- function getObjectTag(object) {
97719
- const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
97720
- if (tag === "Object" && typeof object.constructor === "function") {
97721
- const name = object.constructor.name;
97722
- if (typeof name === "string" && name !== "") {
97723
- return name;
97724
- }
97725
- }
97726
- return tag;
97727
- }
97728
- var Kind$2;
97729
- (function(Kind2) {
97730
- Kind2["NAME"] = "Name";
97731
- Kind2["DOCUMENT"] = "Document";
97732
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
97733
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
97734
- Kind2["SELECTION_SET"] = "SelectionSet";
97735
- Kind2["FIELD"] = "Field";
97736
- Kind2["ARGUMENT"] = "Argument";
97737
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
97738
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
97739
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
97740
- Kind2["VARIABLE"] = "Variable";
97741
- Kind2["INT"] = "IntValue";
97742
- Kind2["FLOAT"] = "FloatValue";
97743
- Kind2["STRING"] = "StringValue";
97744
- Kind2["BOOLEAN"] = "BooleanValue";
97745
- Kind2["NULL"] = "NullValue";
97746
- Kind2["ENUM"] = "EnumValue";
97747
- Kind2["LIST"] = "ListValue";
97748
- Kind2["OBJECT"] = "ObjectValue";
97749
- Kind2["OBJECT_FIELD"] = "ObjectField";
97750
- Kind2["DIRECTIVE"] = "Directive";
97751
- Kind2["NAMED_TYPE"] = "NamedType";
97752
- Kind2["LIST_TYPE"] = "ListType";
97753
- Kind2["NON_NULL_TYPE"] = "NonNullType";
97754
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
97755
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
97756
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
97757
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
97758
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
97759
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
97760
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
97761
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
97762
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
97763
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
97764
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
97765
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
97766
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
97767
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
97768
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
97769
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
97770
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
97771
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
97772
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
97773
- })(Kind$2 || (Kind$2 = {}));
97774
- var TokenKind$2;
97775
- (function(TokenKind2) {
97776
- TokenKind2["SOF"] = "<SOF>";
97777
- TokenKind2["EOF"] = "<EOF>";
97778
- TokenKind2["BANG"] = "!";
97779
- TokenKind2["DOLLAR"] = "$";
97780
- TokenKind2["AMP"] = "&";
97781
- TokenKind2["PAREN_L"] = "(";
97782
- TokenKind2["PAREN_R"] = ")";
97783
- TokenKind2["SPREAD"] = "...";
97784
- TokenKind2["COLON"] = ":";
97785
- TokenKind2["EQUALS"] = "=";
97786
- TokenKind2["AT"] = "@";
97787
- TokenKind2["BRACKET_L"] = "[";
97788
- TokenKind2["BRACKET_R"] = "]";
97789
- TokenKind2["BRACE_L"] = "{";
97790
- TokenKind2["PIPE"] = "|";
97791
- TokenKind2["BRACE_R"] = "}";
97792
- TokenKind2["NAME"] = "Name";
97793
- TokenKind2["INT"] = "Int";
97794
- TokenKind2["FLOAT"] = "Float";
97795
- TokenKind2["STRING"] = "String";
97796
- TokenKind2["BLOCK_STRING"] = "BlockString";
97797
- TokenKind2["COMMENT"] = "Comment";
97798
- })(TokenKind$2 || (TokenKind$2 = {}));
97799
- const QueryDocumentKeys$2 = {
97800
- Name: [],
97801
- Document: ["definitions"],
97802
- OperationDefinition: [
97803
- "name",
97804
- "variableDefinitions",
97805
- "directives",
97806
- "selectionSet"
97807
- ],
97808
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
97809
- Variable: ["name"],
97810
- SelectionSet: ["selections"],
97811
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
97812
- Argument: ["name", "value"],
97813
- FragmentSpread: ["name", "directives"],
97814
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
97815
- FragmentDefinition: [
97816
- "name",
97817
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
97818
- "variableDefinitions",
97819
- "typeCondition",
97820
- "directives",
97821
- "selectionSet"
97822
- ],
97823
- IntValue: [],
97824
- FloatValue: [],
97825
- StringValue: [],
97826
- BooleanValue: [],
97827
- NullValue: [],
97828
- EnumValue: [],
97829
- ListValue: ["values"],
97830
- ObjectValue: ["fields"],
97831
- ObjectField: ["name", "value"],
97832
- Directive: ["name", "arguments"],
97833
- NamedType: ["name"],
97834
- ListType: ["type"],
97835
- NonNullType: ["type"],
97836
- SchemaDefinition: ["description", "directives", "operationTypes"],
97837
- OperationTypeDefinition: ["type"],
97838
- ScalarTypeDefinition: ["description", "name", "directives"],
97839
- ObjectTypeDefinition: [
97840
- "description",
97841
- "name",
97842
- "interfaces",
97843
- "directives",
97844
- "fields"
97845
- ],
97846
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
97847
- InputValueDefinition: [
97848
- "description",
97849
- "name",
97850
- "type",
97851
- "defaultValue",
97852
- "directives"
97853
- ],
97854
- InterfaceTypeDefinition: [
97855
- "description",
97856
- "name",
97857
- "interfaces",
97858
- "directives",
97859
- "fields"
97860
- ],
97861
- UnionTypeDefinition: ["description", "name", "directives", "types"],
97862
- EnumTypeDefinition: ["description", "name", "directives", "values"],
97863
- EnumValueDefinition: ["description", "name", "directives"],
97864
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
97865
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
97866
- SchemaExtension: ["directives", "operationTypes"],
97867
- ScalarTypeExtension: ["name", "directives"],
97868
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
97869
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
97870
- UnionTypeExtension: ["name", "directives", "types"],
97871
- EnumTypeExtension: ["name", "directives", "values"],
97872
- InputObjectTypeExtension: ["name", "directives", "fields"]
97873
- };
97874
- const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
97875
- function isNode(maybeNode) {
97876
- const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
97877
- return typeof maybeKind === "string" && kindValues.has(maybeKind);
97878
- }
97879
- var OperationTypeNode$2;
97880
- (function(OperationTypeNode2) {
97881
- OperationTypeNode2["QUERY"] = "query";
97882
- OperationTypeNode2["MUTATION"] = "mutation";
97883
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
97884
- })(OperationTypeNode$2 || (OperationTypeNode$2 = {}));
97885
- function isWhiteSpace(code) {
97886
- return code === 9 || code === 32;
97887
- }
97888
- function printBlockString(value, options) {
97889
- const escapedValue = value.replace(/"""/g, '\\"""');
97890
- const lines = escapedValue.split(/\r\n|[\n\r]/g);
97891
- const isSingleLine = lines.length === 1;
97892
- const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
97893
- const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
97894
- const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
97895
- const hasTrailingSlash = value.endsWith("\\");
97896
- const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
97897
- const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
97898
- (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
97899
- let result = "";
97900
- const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
97901
- if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
97902
- result += "\n";
97903
- }
97904
- result += escapedValue;
97905
- if (printAsMultipleLines || forceTrailingNewline) {
97906
- result += "\n";
97907
- }
97908
- return '"""' + result + '"""';
97909
- }
97910
- var DirectiveLocation$2;
97911
- (function(DirectiveLocation2) {
97912
- DirectiveLocation2["QUERY"] = "QUERY";
97913
- DirectiveLocation2["MUTATION"] = "MUTATION";
97914
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
97915
- DirectiveLocation2["FIELD"] = "FIELD";
97916
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
97917
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
97918
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
97919
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
97920
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
97921
- DirectiveLocation2["SCALAR"] = "SCALAR";
97922
- DirectiveLocation2["OBJECT"] = "OBJECT";
97923
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
97924
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
97925
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
97926
- DirectiveLocation2["UNION"] = "UNION";
97927
- DirectiveLocation2["ENUM"] = "ENUM";
97928
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
97929
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
97930
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
97931
- })(DirectiveLocation$2 || (DirectiveLocation$2 = {}));
97932
- function printString(str) {
97933
- return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
97934
- }
97935
- const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
97936
- function escapedReplacer(str) {
97937
- return escapeSequences[str.charCodeAt(0)];
97938
- }
97939
- const escapeSequences = [
97940
- "\\u0000",
97941
- "\\u0001",
97942
- "\\u0002",
97943
- "\\u0003",
97944
- "\\u0004",
97945
- "\\u0005",
97946
- "\\u0006",
97947
- "\\u0007",
97948
- "\\b",
97949
- "\\t",
97950
- "\\n",
97951
- "\\u000B",
97952
- "\\f",
97953
- "\\r",
97954
- "\\u000E",
97955
- "\\u000F",
97956
- "\\u0010",
97957
- "\\u0011",
97958
- "\\u0012",
97959
- "\\u0013",
97960
- "\\u0014",
97961
- "\\u0015",
97962
- "\\u0016",
97963
- "\\u0017",
97964
- "\\u0018",
97965
- "\\u0019",
97966
- "\\u001A",
97967
- "\\u001B",
97968
- "\\u001C",
97969
- "\\u001D",
97970
- "\\u001E",
97971
- "\\u001F",
97972
- "",
97973
- "",
97974
- '\\"',
97975
- "",
97976
- "",
97977
- "",
97978
- "",
97979
- "",
97980
- "",
97981
- "",
97982
- "",
97983
- "",
97984
- "",
97985
- "",
97986
- "",
97987
- "",
97988
- // 2F
97989
- "",
97990
- "",
97991
- "",
97992
- "",
97993
- "",
97994
- "",
97995
- "",
97996
- "",
97997
- "",
97998
- "",
97999
- "",
98000
- "",
98001
- "",
98002
- "",
98003
- "",
98004
- "",
98005
- // 3F
98006
- "",
98007
- "",
98008
- "",
98009
- "",
98010
- "",
98011
- "",
98012
- "",
98013
- "",
98014
- "",
98015
- "",
98016
- "",
98017
- "",
98018
- "",
98019
- "",
98020
- "",
98021
- "",
98022
- // 4F
98023
- "",
98024
- "",
98025
- "",
98026
- "",
98027
- "",
98028
- "",
98029
- "",
98030
- "",
98031
- "",
98032
- "",
98033
- "",
98034
- "",
98035
- "\\\\",
98036
- "",
98037
- "",
98038
- "",
98039
- // 5F
98040
- "",
98041
- "",
98042
- "",
98043
- "",
98044
- "",
98045
- "",
98046
- "",
98047
- "",
98048
- "",
98049
- "",
98050
- "",
98051
- "",
98052
- "",
98053
- "",
98054
- "",
98055
- "",
98056
- // 6F
98057
- "",
98058
- "",
98059
- "",
98060
- "",
98061
- "",
98062
- "",
98063
- "",
98064
- "",
98065
- "",
98066
- "",
98067
- "",
98068
- "",
98069
- "",
98070
- "",
98071
- "",
98072
- "\\u007F",
98073
- "\\u0080",
98074
- "\\u0081",
98075
- "\\u0082",
98076
- "\\u0083",
98077
- "\\u0084",
98078
- "\\u0085",
98079
- "\\u0086",
98080
- "\\u0087",
98081
- "\\u0088",
98082
- "\\u0089",
98083
- "\\u008A",
98084
- "\\u008B",
98085
- "\\u008C",
98086
- "\\u008D",
98087
- "\\u008E",
98088
- "\\u008F",
98089
- "\\u0090",
98090
- "\\u0091",
98091
- "\\u0092",
98092
- "\\u0093",
98093
- "\\u0094",
98094
- "\\u0095",
98095
- "\\u0096",
98096
- "\\u0097",
98097
- "\\u0098",
98098
- "\\u0099",
98099
- "\\u009A",
98100
- "\\u009B",
98101
- "\\u009C",
98102
- "\\u009D",
98103
- "\\u009E",
98104
- "\\u009F"
98105
- ];
98106
- const BREAK = Object.freeze({});
98107
- function visit(root, visitor, visitorKeys = QueryDocumentKeys$2) {
98108
- const enterLeaveMap = /* @__PURE__ */ new Map();
98109
- for (const kind of Object.values(Kind$2)) {
98110
- enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
98111
- }
98112
- let stack = void 0;
98113
- let inArray = Array.isArray(root);
98114
- let keys = [root];
98115
- let index = -1;
98116
- let edits = [];
98117
- let node = root;
98118
- let key = void 0;
98119
- let parent = void 0;
98120
- const path = [];
98121
- const ancestors = [];
98122
- do {
98123
- index++;
98124
- const isLeaving = index === keys.length;
98125
- const isEdited = isLeaving && edits.length !== 0;
98126
- if (isLeaving) {
98127
- key = ancestors.length === 0 ? void 0 : path[path.length - 1];
98128
- node = parent;
98129
- parent = ancestors.pop();
98130
- if (isEdited) {
98131
- if (inArray) {
98132
- node = node.slice();
98133
- let editOffset = 0;
98134
- for (const [editKey, editValue] of edits) {
98135
- const arrayKey = editKey - editOffset;
98136
- if (editValue === null) {
98137
- node.splice(arrayKey, 1);
98138
- editOffset++;
98139
- } else {
98140
- node[arrayKey] = editValue;
98141
- }
98142
- }
98143
- } else {
98144
- node = { ...node };
98145
- for (const [editKey, editValue] of edits) {
98146
- node[editKey] = editValue;
98147
- }
98148
- }
98149
- }
98150
- index = stack.index;
98151
- keys = stack.keys;
98152
- edits = stack.edits;
98153
- inArray = stack.inArray;
98154
- stack = stack.prev;
98155
- } else if (parent) {
98156
- key = inArray ? index : keys[index];
98157
- node = parent[key];
98158
- if (node === null || node === void 0) {
98159
- continue;
98160
- }
98161
- path.push(key);
98162
- }
98163
- let result;
98164
- if (!Array.isArray(node)) {
98165
- var _enterLeaveMap$get, _enterLeaveMap$get2;
98166
- isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
98167
- const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
98168
- result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
98169
- if (result === BREAK) {
98170
- break;
98171
- }
98172
- if (result === false) {
98173
- if (!isLeaving) {
98174
- path.pop();
98175
- continue;
98176
- }
98177
- } else if (result !== void 0) {
98178
- edits.push([key, result]);
98179
- if (!isLeaving) {
98180
- if (isNode(result)) {
98181
- node = result;
98182
- } else {
98183
- path.pop();
98184
- continue;
98185
- }
98186
- }
98187
- }
98188
- }
98189
- if (result === void 0 && isEdited) {
98190
- edits.push([key, node]);
98191
- }
98192
- if (isLeaving) {
98193
- path.pop();
98194
- } else {
98195
- var _node$kind;
98196
- stack = {
98197
- inArray,
98198
- index,
98199
- keys,
98200
- edits,
98201
- prev: stack
98202
- };
98203
- inArray = Array.isArray(node);
98204
- keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
98205
- index = -1;
98206
- edits = [];
98207
- if (parent) {
98208
- ancestors.push(parent);
98209
- }
98210
- parent = node;
98211
- }
98212
- } while (stack !== void 0);
98213
- if (edits.length !== 0) {
98214
- return edits[edits.length - 1][1];
98215
- }
98216
- return root;
98217
- }
98218
- function getEnterLeaveForKind(visitor, kind) {
98219
- const kindVisitor = visitor[kind];
98220
- if (typeof kindVisitor === "object") {
98221
- return kindVisitor;
98222
- } else if (typeof kindVisitor === "function") {
98223
- return {
98224
- enter: kindVisitor,
98225
- leave: void 0
98226
- };
98227
- }
98228
- return {
98229
- enter: visitor.enter,
98230
- leave: visitor.leave
98231
- };
98232
- }
98233
- function print(ast) {
98234
- return visit(ast, printDocASTReducer);
98235
- }
98236
- const MAX_LINE_LENGTH = 80;
98237
- const printDocASTReducer = {
98238
- Name: {
98239
- leave: (node) => node.value
98240
- },
98241
- Variable: {
98242
- leave: (node) => "$" + node.name
98243
- },
98244
- // Document
98245
- Document: {
98246
- leave: (node) => join(node.definitions, "\n\n")
98247
- },
98248
- OperationDefinition: {
98249
- leave(node) {
98250
- const varDefs = wrap("(", join(node.variableDefinitions, ", "), ")");
98251
- const prefix = join(
98252
- [
98253
- node.operation,
98254
- join([node.name, varDefs]),
98255
- join(node.directives, " ")
98256
- ],
98257
- " "
98258
- );
98259
- return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
98260
- }
98261
- },
98262
- VariableDefinition: {
98263
- leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
98264
- },
98265
- SelectionSet: {
98266
- leave: ({ selections }) => block(selections)
98267
- },
98268
- Field: {
98269
- leave({ alias, name, arguments: args, directives, selectionSet }) {
98270
- const prefix = wrap("", alias, ": ") + name;
98271
- let argsLine = prefix + wrap("(", join(args, ", "), ")");
98272
- if (argsLine.length > MAX_LINE_LENGTH) {
98273
- argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
98274
- }
98275
- return join([argsLine, join(directives, " "), selectionSet], " ");
98276
- }
98277
- },
98278
- Argument: {
98279
- leave: ({ name, value }) => name + ": " + value
98280
- },
98281
- // Fragments
98282
- FragmentSpread: {
98283
- leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
98284
- },
98285
- InlineFragment: {
98286
- leave: ({ typeCondition, directives, selectionSet }) => join(
98287
- [
98288
- "...",
98289
- wrap("on ", typeCondition),
98290
- join(directives, " "),
98291
- selectionSet
98292
- ],
98293
- " "
98294
- )
98295
- },
98296
- FragmentDefinition: {
98297
- leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
98298
- // or removed in the future.
98299
- `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
98300
- )
98301
- },
98302
- // Value
98303
- IntValue: {
98304
- leave: ({ value }) => value
98305
- },
98306
- FloatValue: {
98307
- leave: ({ value }) => value
98308
- },
98309
- StringValue: {
98310
- leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
98311
- },
98312
- BooleanValue: {
98313
- leave: ({ value }) => value ? "true" : "false"
98314
- },
98315
- NullValue: {
98316
- leave: () => "null"
98317
- },
98318
- EnumValue: {
98319
- leave: ({ value }) => value
98320
- },
98321
- ListValue: {
98322
- leave: ({ values }) => "[" + join(values, ", ") + "]"
98323
- },
98324
- ObjectValue: {
98325
- leave: ({ fields }) => "{" + join(fields, ", ") + "}"
98326
- },
98327
- ObjectField: {
98328
- leave: ({ name, value }) => name + ": " + value
98329
- },
98330
- // Directive
98331
- Directive: {
98332
- leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
98333
- },
98334
- // Type
98335
- NamedType: {
98336
- leave: ({ name }) => name
98337
- },
98338
- ListType: {
98339
- leave: ({ type }) => "[" + type + "]"
98340
- },
98341
- NonNullType: {
98342
- leave: ({ type }) => type + "!"
98343
- },
98344
- // Type System Definitions
98345
- SchemaDefinition: {
98346
- leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
98347
- },
98348
- OperationTypeDefinition: {
98349
- leave: ({ operation, type }) => operation + ": " + type
98350
- },
98351
- ScalarTypeDefinition: {
98352
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
98353
- },
98354
- ObjectTypeDefinition: {
98355
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98356
- [
98357
- "type",
98358
- name,
98359
- wrap("implements ", join(interfaces, " & ")),
98360
- join(directives, " "),
98361
- block(fields)
98362
- ],
98363
- " "
98364
- )
98365
- },
98366
- FieldDefinition: {
98367
- leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " "))
98368
- },
98369
- InputValueDefinition: {
98370
- leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
98371
- [name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
98372
- " "
98373
- )
98374
- },
98375
- InterfaceTypeDefinition: {
98376
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98377
- [
98378
- "interface",
98379
- name,
98380
- wrap("implements ", join(interfaces, " & ")),
98381
- join(directives, " "),
98382
- block(fields)
98383
- ],
98384
- " "
98385
- )
98386
- },
98387
- UnionTypeDefinition: {
98388
- leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
98389
- ["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
98390
- " "
98391
- )
98392
- },
98393
- EnumTypeDefinition: {
98394
- leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
98395
- },
98396
- EnumValueDefinition: {
98397
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
98398
- },
98399
- InputObjectTypeDefinition: {
98400
- leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
98401
- },
98402
- DirectiveDefinition: {
98403
- leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
98404
- },
98405
- SchemaExtension: {
98406
- leave: ({ directives, operationTypes }) => join(
98407
- ["extend schema", join(directives, " "), block(operationTypes)],
98408
- " "
98409
- )
98410
- },
98411
- ScalarTypeExtension: {
98412
- leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
98413
- },
98414
- ObjectTypeExtension: {
98415
- leave: ({ name, interfaces, directives, fields }) => join(
98416
- [
98417
- "extend type",
98418
- name,
98419
- wrap("implements ", join(interfaces, " & ")),
98420
- join(directives, " "),
98421
- block(fields)
98422
- ],
98423
- " "
98424
- )
98425
- },
98426
- InterfaceTypeExtension: {
98427
- leave: ({ name, interfaces, directives, fields }) => join(
98428
- [
98429
- "extend interface",
98430
- name,
98431
- wrap("implements ", join(interfaces, " & ")),
98432
- join(directives, " "),
98433
- block(fields)
98434
- ],
98435
- " "
98436
- )
98437
- },
98438
- UnionTypeExtension: {
98439
- leave: ({ name, directives, types }) => join(
98440
- [
98441
- "extend union",
98442
- name,
98443
- join(directives, " "),
98444
- wrap("= ", join(types, " | "))
98445
- ],
98446
- " "
98447
- )
98448
- },
98449
- EnumTypeExtension: {
98450
- leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
98451
- },
98452
- InputObjectTypeExtension: {
98453
- leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
98454
- }
98455
- };
98456
- function join(maybeArray, separator = "") {
98457
- var _maybeArray$filter$jo;
98458
- return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
98459
- }
98460
- function block(array) {
98461
- return wrap("{\n", indent(join(array, "\n")), "\n}");
98462
- }
98463
- function wrap(start, maybeString, end = "") {
98464
- return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
98465
- }
98466
- function indent(str) {
98467
- return wrap(" ", str.replace(/\n/g, "\n "));
98468
- }
98469
- function hasMultilineItems(maybeArray) {
98470
- var _maybeArray$some;
98471
- return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
98472
- }
98473
- const referenceMap$1 = /* @__PURE__ */ new WeakMap();
98474
- const astResolver$1 = function(astReference) {
98475
- return referenceMap$1.get(astReference);
98476
- };
98477
- function findExecutableOperation$1(document, operationName) {
98478
- const operations = document.definitions.filter(
98479
- (def) => def.kind === Kind$2.OPERATION_DEFINITION
98480
- );
98481
- if (operations.length === 0) {
98482
- return void 0;
98483
- }
98484
- if (operations.length === 1 && !operationName) {
98485
- return operations[0];
98486
- }
98487
- if (operationName) {
98488
- return operations.find((op) => {
98489
- var _a;
98490
- return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
98491
- });
98492
- }
98493
- return void 0;
98494
- }
98495
- function validateGraphQLOperations(config, options) {
98496
- const executableOperation = findExecutableOperation$1(config.query, config.operationName);
98497
- if (executableOperation) {
98498
- const operationType = executableOperation.operation;
98499
- if (!options.acceptedOperations.includes(operationType)) {
98500
- const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
98501
- throw new Error(
98502
- `${operationTypeCapitalized} operations are not supported in this context`
98503
- );
98504
- }
98505
- }
98506
- }
98507
- function resolveAst$1(ast) {
98508
- if (ast === null || ast === void 0) {
98509
- return;
98510
- }
98511
- const result = astResolver$1(ast);
98512
- if (result === void 0) {
98513
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
98514
- }
98515
- return result;
98516
- }
98517
- function wrapConfigAndVerify(config, options) {
98518
- if (config == null ? void 0 : config.query) {
98519
- config = { ...config, query: resolveAst$1(config.query) };
98520
- if (config.query === void 0) {
98521
- throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
98522
- }
98523
- validateGraphQLOperations(config, {
98524
- acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
98525
- });
98526
- }
98527
- return config;
98528
- }
98559
+ // version: 1.404.0-dev5-38a59c52aa
98529
98560
 
98530
98561
  /*!
98531
98562
  * Copyright (c) 2022, Salesforce, Inc.,
98532
98563
  * All rights reserved.
98533
98564
  * For full license text, see the LICENSE.txt file
98534
98565
  */
98535
- function findExecutableOperation$2(input) {
98566
+ function findExecutableOperation$1(input) {
98536
98567
  const operations = input.query.definitions.filter(
98537
98568
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
98538
98569
  );
@@ -98555,7 +98586,7 @@ function findExecutableOperation$2(input) {
98555
98586
  return err$1(new Error("Multiple operations found in query, and no operation name provided"));
98556
98587
  }
98557
98588
  function buildGraphQLInputExtension$1(input) {
98558
- const operationResult = findExecutableOperation$2(input);
98589
+ const operationResult = findExecutableOperation$1(input);
98559
98590
  if (operationResult.isErr()) {
98560
98591
  return err$1(operationResult.error);
98561
98592
  }
@@ -98588,7 +98619,7 @@ const TYPENAME_FIELD = {
98588
98619
  }
98589
98620
  };
98590
98621
  function addTypenameToDocument(doc) {
98591
- return visit(doc, {
98622
+ return visit$1(doc, {
98592
98623
  SelectionSet: {
98593
98624
  enter(node, _key, parent) {
98594
98625
  if (isOperationDefinition(parent)) {
@@ -98635,7 +98666,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
98635
98666
  this.services = services;
98636
98667
  }
98637
98668
  get operationType() {
98638
- const operationResult = findExecutableOperation$2(this.config);
98669
+ const operationResult = findExecutableOperation$1(this.config);
98639
98670
  if (operationResult.isErr()) {
98640
98671
  return "mutation";
98641
98672
  }
@@ -98808,7 +98839,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
98808
98839
  return this.documentRootType;
98809
98840
  }
98810
98841
  get operationType() {
98811
- const operationResult = findExecutableOperation$2(this.config);
98842
+ const operationResult = findExecutableOperation$1(this.config);
98812
98843
  if (operationResult.isErr()) {
98813
98844
  return "mutation";
98814
98845
  }
@@ -100014,7 +100045,7 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
100014
100045
  }
100015
100046
  update(config, _context) {
100016
100047
  this.unsubscribe();
100017
- const resolvedQuery = resolveAst$1(config.query);
100048
+ const resolvedQuery = resolveAst(config.query);
100018
100049
  if (resolvedQuery) {
100019
100050
  validateGraphQLOperations(
100020
100051
  { query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
@@ -101085,7 +101116,7 @@ register$1({
101085
101116
  id: '@salesforce/lds-network-adapter',
101086
101117
  instrument: instrument$2,
101087
101118
  });
101088
- // version: 1.404.0-dev2-3aea909b9d
101119
+ // version: 1.404.0-dev5-924c469d6b
101089
101120
 
101090
101121
  const { create: create$3, keys: keys$3 } = Object;
101091
101122
  const { stringify, parse } = JSON;
@@ -101462,7 +101493,7 @@ function findSchemaAtPath(document, ref) {
101462
101493
  * All rights reserved.
101463
101494
  * For full license text, see the LICENSE.txt file
101464
101495
  */
101465
- var Kind$1;
101496
+ var Kind;
101466
101497
  (function(Kind2) {
101467
101498
  Kind2["NAME"] = "Name";
101468
101499
  Kind2["DOCUMENT"] = "Document";
@@ -101507,8 +101538,8 @@ var Kind$1;
101507
101538
  Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
101508
101539
  Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
101509
101540
  Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
101510
- })(Kind$1 || (Kind$1 = {}));
101511
- var TokenKind$1;
101541
+ })(Kind || (Kind = {}));
101542
+ var TokenKind;
101512
101543
  (function(TokenKind2) {
101513
101544
  TokenKind2["SOF"] = "<SOF>";
101514
101545
  TokenKind2["EOF"] = "<EOF>";
@@ -101532,8 +101563,8 @@ var TokenKind$1;
101532
101563
  TokenKind2["STRING"] = "String";
101533
101564
  TokenKind2["BLOCK_STRING"] = "BlockString";
101534
101565
  TokenKind2["COMMENT"] = "Comment";
101535
- })(TokenKind$1 || (TokenKind$1 = {}));
101536
- const QueryDocumentKeys$1 = {
101566
+ })(TokenKind || (TokenKind = {}));
101567
+ const QueryDocumentKeys = {
101537
101568
  Name: [],
101538
101569
  Document: ["definitions"],
101539
101570
  OperationDefinition: [
@@ -101608,14 +101639,14 @@ const QueryDocumentKeys$1 = {
101608
101639
  EnumTypeExtension: ["name", "directives", "values"],
101609
101640
  InputObjectTypeExtension: ["name", "directives", "fields"]
101610
101641
  };
101611
- new Set(Object.keys(QueryDocumentKeys$1));
101612
- var OperationTypeNode$1;
101642
+ new Set(Object.keys(QueryDocumentKeys));
101643
+ var OperationTypeNode;
101613
101644
  (function(OperationTypeNode2) {
101614
101645
  OperationTypeNode2["QUERY"] = "query";
101615
101646
  OperationTypeNode2["MUTATION"] = "mutation";
101616
101647
  OperationTypeNode2["SUBSCRIPTION"] = "subscription";
101617
- })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
101618
- var DirectiveLocation$1;
101648
+ })(OperationTypeNode || (OperationTypeNode = {}));
101649
+ var DirectiveLocation;
101619
101650
  (function(DirectiveLocation2) {
101620
101651
  DirectiveLocation2["QUERY"] = "QUERY";
101621
101652
  DirectiveLocation2["MUTATION"] = "MUTATION";
@@ -101636,7 +101667,7 @@ var DirectiveLocation$1;
101636
101667
  DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
101637
101668
  DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
101638
101669
  DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
101639
- })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
101670
+ })(DirectiveLocation || (DirectiveLocation = {}));
101640
101671
 
101641
101672
  /*!
101642
101673
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -101644,15 +101675,15 @@ var DirectiveLocation$1;
101644
101675
  * For full license text, see the LICENSE.txt file
101645
101676
  */
101646
101677
  function extractValue(valueNode, variableDefinitions, expectedType) {
101647
- if (valueNode.kind === Kind$1.VARIABLE) {
101678
+ if (valueNode.kind === Kind.VARIABLE) {
101648
101679
  const variableResult = extractVariableValue(valueNode.name.value, variableDefinitions);
101649
101680
  if (variableResult.isErr()) {
101650
101681
  return variableResult;
101651
101682
  }
101652
101683
  return validateExpectedType(variableResult.value, expectedType);
101653
- } else if (valueNode.kind === Kind$1.NULL) {
101684
+ } else if (valueNode.kind === Kind.NULL) {
101654
101685
  return validateExpectedType(null, expectedType);
101655
- } else if (valueNode.kind === Kind$1.LIST) {
101686
+ } else if (valueNode.kind === Kind.LIST) {
101656
101687
  const values = [];
101657
101688
  for (const val of valueNode.values) {
101658
101689
  const extractedResult = extractValue(val, variableDefinitions);
@@ -101662,7 +101693,7 @@ function extractValue(valueNode, variableDefinitions, expectedType) {
101662
101693
  values.push(extractedResult.value);
101663
101694
  }
101664
101695
  return validateExpectedType(values, expectedType);
101665
- } else if (valueNode.kind === Kind$1.OBJECT) {
101696
+ } else if (valueNode.kind === Kind.OBJECT) {
101666
101697
  const value = {};
101667
101698
  for (const field of valueNode.fields) {
101668
101699
  const extractedResult = extractValue(field.value, variableDefinitions);
@@ -101672,10 +101703,10 @@ function extractValue(valueNode, variableDefinitions, expectedType) {
101672
101703
  value[field.name.value] = extractedResult.value;
101673
101704
  }
101674
101705
  return validateExpectedType(value, expectedType);
101675
- } else if (valueNode.kind === Kind$1.INT) {
101706
+ } else if (valueNode.kind === Kind.INT) {
101676
101707
  const value = parseInt(valueNode.value, 10);
101677
101708
  return validateExpectedType(value, expectedType);
101678
- } else if (valueNode.kind === Kind$1.FLOAT) {
101709
+ } else if (valueNode.kind === Kind.FLOAT) {
101679
101710
  const value = parseFloat(valueNode.value);
101680
101711
  return validateExpectedType(value, expectedType);
101681
101712
  } else {
@@ -101754,7 +101785,7 @@ function deepMerge$2(target, ...sources) {
101754
101785
  }
101755
101786
  function findExecutableOperation(input) {
101756
101787
  const operations = input.query.definitions.filter(
101757
- (def) => def.kind === Kind$1.OPERATION_DEFINITION
101788
+ (def) => def.kind === Kind.OPERATION_DEFINITION
101758
101789
  );
101759
101790
  if (operations.length === 0) {
101760
101791
  return err$3(new Error("No operations found in query"));
@@ -101810,7 +101841,7 @@ function buildAugmentedFieldSelection(newSelection, selections, fragments) {
101810
101841
  const baseAliasedSelection = {
101811
101842
  ...newSelection,
101812
101843
  alias: {
101813
- kind: Kind$1.NAME,
101844
+ kind: Kind.NAME,
101814
101845
  value: baseInjectedAlias
101815
101846
  }
101816
101847
  };
@@ -101821,7 +101852,7 @@ function buildAugmentedFieldSelection(newSelection, selections, fragments) {
101821
101852
  return {
101822
101853
  ...newSelection,
101823
101854
  alias: {
101824
- kind: Kind$1.NAME,
101855
+ kind: Kind.NAME,
101825
101856
  value: fieldName
101826
101857
  }
101827
101858
  };
@@ -101834,11 +101865,11 @@ function selectionEquals(a, b) {
101834
101865
  if (a.kind !== b.kind) {
101835
101866
  return false;
101836
101867
  }
101837
- if (a.kind === Kind$1.FIELD) {
101868
+ if (a.kind === Kind.FIELD) {
101838
101869
  const bField = b;
101839
101870
  return !!(a.name.value === bField.name.value) && !!(((_a = a.alias) == null ? void 0 : _a.value) === ((_b = bField.alias) == null ? void 0 : _b.value)) && argumentsEqual(a.arguments, bField.arguments) && selectionSetsEqual((_c = a.selectionSet) == null ? void 0 : _c.selections, (_d = bField.selectionSet) == null ? void 0 : _d.selections) && directivesEqual(a.directives, bField.directives);
101840
101871
  }
101841
- if (a.kind === Kind$1.FRAGMENT_SPREAD) {
101872
+ if (a.kind === Kind.FRAGMENT_SPREAD) {
101842
101873
  const bFragmentSpread = b;
101843
101874
  return a.name.value === bFragmentSpread.name.value && directivesEqual(a.directives, bFragmentSpread.directives);
101844
101875
  }
@@ -101850,23 +101881,23 @@ function argumentValueEquals(a, b) {
101850
101881
  return false;
101851
101882
  }
101852
101883
  switch (a.kind) {
101853
- case Kind$1.STRING:
101854
- case Kind$1.INT:
101855
- case Kind$1.FLOAT:
101856
- case Kind$1.BOOLEAN:
101857
- case Kind$1.ENUM:
101884
+ case Kind.STRING:
101885
+ case Kind.INT:
101886
+ case Kind.FLOAT:
101887
+ case Kind.BOOLEAN:
101888
+ case Kind.ENUM:
101858
101889
  return a.value === b.value;
101859
- case Kind$1.NULL:
101890
+ case Kind.NULL:
101860
101891
  return true;
101861
- case Kind$1.VARIABLE:
101892
+ case Kind.VARIABLE:
101862
101893
  return a.name.value === b.name.value;
101863
- case Kind$1.LIST:
101894
+ case Kind.LIST:
101864
101895
  const bList = b;
101865
101896
  if (a.values.length !== bList.values.length) {
101866
101897
  return false;
101867
101898
  }
101868
101899
  return a.values.every((val, index) => argumentValueEquals(val, bList.values[index]));
101869
- case Kind$1.OBJECT:
101900
+ case Kind.OBJECT:
101870
101901
  const bObject = b;
101871
101902
  if (a.fields.length !== bObject.fields.length) {
101872
101903
  return false;
@@ -101967,23 +101998,23 @@ function buildFieldKey(canonicalFieldName, fieldArguments, variables) {
101967
101998
  return ok$3(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
101968
101999
  }
101969
102000
  ({
101970
- kind: Kind$1.FIELD,
102001
+ kind: Kind.FIELD,
101971
102002
  name: {
101972
- kind: Kind$1.NAME,
102003
+ kind: Kind.NAME,
101973
102004
  value: "__typename"
101974
102005
  }
101975
102006
  });
101976
102007
  function isField(node) {
101977
- return node.kind === Kind$1.FIELD;
102008
+ return node.kind === Kind.FIELD;
101978
102009
  }
101979
102010
  function isFragmentSpread(node) {
101980
- return node.kind === Kind$1.FRAGMENT_SPREAD;
102011
+ return node.kind === Kind.FRAGMENT_SPREAD;
101981
102012
  }
101982
102013
  function isInlineFragment(node) {
101983
- return node.kind === Kind$1.INLINE_FRAGMENT;
102014
+ return node.kind === Kind.INLINE_FRAGMENT;
101984
102015
  }
101985
102016
  function isFragmentDefinition(node) {
101986
- return node.kind === Kind$1.FRAGMENT_DEFINITION;
102017
+ return node.kind === Kind.FRAGMENT_DEFINITION;
101987
102018
  }
101988
102019
  function extractIfArgument(directive, variables, directiveName) {
101989
102020
  var _a;
@@ -102290,9 +102321,9 @@ class BaseGraphQLTypeRepository {
102290
102321
  }
102291
102322
  const newTypenameSelection = buildAugmentedFieldSelection(
102292
102323
  {
102293
- kind: Kind$1.FIELD,
102324
+ kind: Kind.FIELD,
102294
102325
  name: {
102295
- kind: Kind$1.NAME,
102326
+ kind: Kind.NAME,
102296
102327
  value: "__typename"
102297
102328
  }
102298
102329
  },
@@ -102319,7 +102350,7 @@ class BaseGraphQLTypeRepository {
102319
102350
  {
102320
102351
  ...selection,
102321
102352
  selectionSet: {
102322
- kind: Kind$1.SELECTION_SET,
102353
+ kind: Kind.SELECTION_SET,
102323
102354
  selections: result.selections
102324
102355
  }
102325
102356
  }
@@ -102345,7 +102376,7 @@ class BaseGraphQLTypeRepository {
102345
102376
  {
102346
102377
  ...fragment,
102347
102378
  selectionSet: {
102348
- kind: Kind$1.SELECTION_SET,
102379
+ kind: Kind.SELECTION_SET,
102349
102380
  selections: augmentedFragmentSelections.selections
102350
102381
  }
102351
102382
  }
@@ -102377,7 +102408,7 @@ class BaseGraphQLTypeRepository {
102377
102408
  [fragment.name.value]: {
102378
102409
  ...fragment,
102379
102410
  selectionSet: {
102380
- kind: Kind$1.SELECTION_SET,
102411
+ kind: Kind.SELECTION_SET,
102381
102412
  selections: augmentedFragment.selections
102382
102413
  }
102383
102414
  }
@@ -102699,9 +102730,9 @@ class IdentifiableGraphQLTypeRepository extends IdentifiableTypeRepository {
102699
102730
  let augmentedFragments = result.fragments;
102700
102731
  const newSelection = buildAugmentedFieldSelection(
102701
102732
  {
102702
- kind: Kind$1.FIELD,
102733
+ kind: Kind.FIELD,
102703
102734
  name: {
102704
- kind: Kind$1.NAME,
102735
+ kind: Kind.NAME,
102705
102736
  value: this.idField
102706
102737
  }
102707
102738
  },
@@ -102769,7 +102800,7 @@ class IdentifiableGraphQLTypeRepository extends IdentifiableTypeRepository {
102769
102800
  buildKeyParams(input) {
102770
102801
  var _a;
102771
102802
  const idField = input.selections.find(
102772
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === this.idField
102803
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === this.idField
102773
102804
  );
102774
102805
  if (!idField) {
102775
102806
  throw new Error(`Id field ${this.idField} not found in selections`);
@@ -102831,7 +102862,7 @@ class GraphQLDocumentRootTypeRepository extends IdentifiableGraphQLTypeRepositor
102831
102862
  }
102832
102863
  const operation = operationResult.value;
102833
102864
  const fragmentDefinitions = input.query.definitions.filter(
102834
- (def) => def.kind === Kind$1.FRAGMENT_DEFINITION
102865
+ (def) => def.kind === Kind.FRAGMENT_DEFINITION
102835
102866
  );
102836
102867
  const fragments = fragmentDefinitions.reduce(
102837
102868
  (acc, def) => {
@@ -102848,13 +102879,13 @@ class GraphQLDocumentRootTypeRepository extends IdentifiableGraphQLTypeRepositor
102848
102879
  let augmentedFragments = result.fragments;
102849
102880
  const augmentedOperation = {
102850
102881
  ...operation,
102851
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: augmentedOperationSelections }
102882
+ selectionSet: { kind: Kind.SELECTION_SET, selections: augmentedOperationSelections }
102852
102883
  };
102853
102884
  return ok$3({
102854
102885
  ...input.query,
102855
102886
  definitions: [
102856
- ...input.query.definitions.filter((def) => def.kind !== Kind$1.FRAGMENT_DEFINITION).map((def) => {
102857
- if (def.kind !== Kind$1.OPERATION_DEFINITION || def !== operation) {
102887
+ ...input.query.definitions.filter((def) => def.kind !== Kind.FRAGMENT_DEFINITION).map((def) => {
102888
+ if (def.kind !== Kind.OPERATION_DEFINITION || def !== operation) {
102858
102889
  return def;
102859
102890
  }
102860
102891
  return augmentedOperation;
@@ -102963,7 +102994,7 @@ class BaseInterfaceRepository {
102963
102994
  let augmentedFragments = { ...input.fragments };
102964
102995
  input.selections.forEach((selection) => {
102965
102996
  var _a;
102966
- if (selection.kind === Kind$1.FIELD) {
102997
+ if (selection.kind === Kind.FIELD) {
102967
102998
  if (Object.keys(this.fields).includes(selection.name.value)) {
102968
102999
  const field = this.fields[selection.name.value];
102969
103000
  const result2 = field.augmentSelections({
@@ -102972,7 +103003,7 @@ class BaseInterfaceRepository {
102972
103003
  });
102973
103004
  augmentedSelections.push({
102974
103005
  ...selection,
102975
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: result2.selections }
103006
+ selectionSet: { kind: Kind.SELECTION_SET, selections: result2.selections }
102976
103007
  });
102977
103008
  augmentedFragments = result2.fragments;
102978
103009
  } else {
@@ -102990,7 +103021,7 @@ class BaseInterfaceRepository {
102990
103021
  augmentedSelections.push(...result.selections);
102991
103022
  augmentedFragments = result.fragments;
102992
103023
  const newSelection = buildAugmentedFieldSelection(
102993
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103024
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
102994
103025
  augmentedSelections,
102995
103026
  input.fragments
102996
103027
  );
@@ -103002,7 +103033,7 @@ class BaseInterfaceRepository {
103002
103033
  getTypeDiscriminator(data, selections) {
103003
103034
  var _a;
103004
103035
  const typenameSelection = selections.find(
103005
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103036
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103006
103037
  );
103007
103038
  if (typenameSelection) {
103008
103039
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103013,7 +103044,7 @@ class BaseInterfaceRepository {
103013
103044
  verifyInterfaceFields(selections) {
103014
103045
  let selectionErr;
103015
103046
  selections.forEach((selection) => {
103016
- if (selection.kind === Kind$1.FIELD) {
103047
+ if (selection.kind === Kind.FIELD) {
103017
103048
  const fieldName = selection.name.value;
103018
103049
  const selectionAllowed = fieldName === "__typename" || Object.keys(this.fields).includes(fieldName);
103019
103050
  if (!selectionAllowed) {
@@ -103137,7 +103168,7 @@ class BaseUnionRepository {
103137
103168
  augmentedSelections.push(...result.selections);
103138
103169
  augmentedFragments = result.fragments;
103139
103170
  const newSelection = buildAugmentedFieldSelection(
103140
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103171
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
103141
103172
  augmentedSelections,
103142
103173
  input.fragments
103143
103174
  );
@@ -103149,7 +103180,7 @@ class BaseUnionRepository {
103149
103180
  getTypeDiscriminator(data, selections) {
103150
103181
  var _a;
103151
103182
  const typenameSelection = selections.find(
103152
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103183
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103153
103184
  );
103154
103185
  if (typenameSelection) {
103155
103186
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103160,7 +103191,7 @@ class BaseUnionRepository {
103160
103191
  verifyUnionFields(selections) {
103161
103192
  let selectionErr;
103162
103193
  selections.forEach((selection) => {
103163
- if (selection.kind === Kind$1.FIELD) {
103194
+ if (selection.kind === Kind.FIELD) {
103164
103195
  const fieldName = selection.name.value;
103165
103196
  const selectionAllowed = fieldName === "__typename";
103166
103197
  if (!selectionAllowed) {
@@ -103197,12 +103228,12 @@ function augmentUnionLikeSelections(input, possibleTypes) {
103197
103228
  selections: [...input.selections, ...augmentedSelections],
103198
103229
  fragments: augmentedFragments
103199
103230
  });
103200
- const typeSelections = result.selections.filter((selection) => selection.kind !== Kind$1.FIELD).map((selection) => {
103201
- if (selection.kind === Kind$1.INLINE_FRAGMENT) {
103231
+ const typeSelections = result.selections.filter((selection) => selection.kind !== Kind.FIELD).map((selection) => {
103232
+ if (selection.kind === Kind.INLINE_FRAGMENT) {
103202
103233
  return {
103203
103234
  ...selection,
103204
103235
  selectionSet: {
103205
- kind: Kind$1.SELECTION_SET,
103236
+ kind: Kind.SELECTION_SET,
103206
103237
  selections: selection.selectionSet.selections
103207
103238
  }
103208
103239
  };
@@ -103225,202 +103256,6 @@ const GraphQLQueryJsonSchema = {
103225
103256
  additionalProperties: true
103226
103257
  };
103227
103258
 
103228
- /**
103229
- * Copyright (c) 2022, Salesforce, Inc.,
103230
- * All rights reserved.
103231
- * For full license text, see the LICENSE.txt file
103232
- */
103233
-
103234
- var Kind;
103235
- (function(Kind2) {
103236
- Kind2["NAME"] = "Name";
103237
- Kind2["DOCUMENT"] = "Document";
103238
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
103239
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
103240
- Kind2["SELECTION_SET"] = "SelectionSet";
103241
- Kind2["FIELD"] = "Field";
103242
- Kind2["ARGUMENT"] = "Argument";
103243
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
103244
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
103245
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
103246
- Kind2["VARIABLE"] = "Variable";
103247
- Kind2["INT"] = "IntValue";
103248
- Kind2["FLOAT"] = "FloatValue";
103249
- Kind2["STRING"] = "StringValue";
103250
- Kind2["BOOLEAN"] = "BooleanValue";
103251
- Kind2["NULL"] = "NullValue";
103252
- Kind2["ENUM"] = "EnumValue";
103253
- Kind2["LIST"] = "ListValue";
103254
- Kind2["OBJECT"] = "ObjectValue";
103255
- Kind2["OBJECT_FIELD"] = "ObjectField";
103256
- Kind2["DIRECTIVE"] = "Directive";
103257
- Kind2["NAMED_TYPE"] = "NamedType";
103258
- Kind2["LIST_TYPE"] = "ListType";
103259
- Kind2["NON_NULL_TYPE"] = "NonNullType";
103260
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
103261
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
103262
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
103263
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
103264
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
103265
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
103266
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
103267
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
103268
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
103269
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
103270
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
103271
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
103272
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
103273
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
103274
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
103275
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
103276
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
103277
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
103278
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
103279
- })(Kind || (Kind = {}));
103280
- var TokenKind;
103281
- (function(TokenKind2) {
103282
- TokenKind2["SOF"] = "<SOF>";
103283
- TokenKind2["EOF"] = "<EOF>";
103284
- TokenKind2["BANG"] = "!";
103285
- TokenKind2["DOLLAR"] = "$";
103286
- TokenKind2["AMP"] = "&";
103287
- TokenKind2["PAREN_L"] = "(";
103288
- TokenKind2["PAREN_R"] = ")";
103289
- TokenKind2["SPREAD"] = "...";
103290
- TokenKind2["COLON"] = ":";
103291
- TokenKind2["EQUALS"] = "=";
103292
- TokenKind2["AT"] = "@";
103293
- TokenKind2["BRACKET_L"] = "[";
103294
- TokenKind2["BRACKET_R"] = "]";
103295
- TokenKind2["BRACE_L"] = "{";
103296
- TokenKind2["PIPE"] = "|";
103297
- TokenKind2["BRACE_R"] = "}";
103298
- TokenKind2["NAME"] = "Name";
103299
- TokenKind2["INT"] = "Int";
103300
- TokenKind2["FLOAT"] = "Float";
103301
- TokenKind2["STRING"] = "String";
103302
- TokenKind2["BLOCK_STRING"] = "BlockString";
103303
- TokenKind2["COMMENT"] = "Comment";
103304
- })(TokenKind || (TokenKind = {}));
103305
- const QueryDocumentKeys = {
103306
- Name: [],
103307
- Document: ["definitions"],
103308
- OperationDefinition: [
103309
- "name",
103310
- "variableDefinitions",
103311
- "directives",
103312
- "selectionSet"
103313
- ],
103314
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
103315
- Variable: ["name"],
103316
- SelectionSet: ["selections"],
103317
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
103318
- Argument: ["name", "value"],
103319
- FragmentSpread: ["name", "directives"],
103320
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
103321
- FragmentDefinition: [
103322
- "name",
103323
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
103324
- "variableDefinitions",
103325
- "typeCondition",
103326
- "directives",
103327
- "selectionSet"
103328
- ],
103329
- IntValue: [],
103330
- FloatValue: [],
103331
- StringValue: [],
103332
- BooleanValue: [],
103333
- NullValue: [],
103334
- EnumValue: [],
103335
- ListValue: ["values"],
103336
- ObjectValue: ["fields"],
103337
- ObjectField: ["name", "value"],
103338
- Directive: ["name", "arguments"],
103339
- NamedType: ["name"],
103340
- ListType: ["type"],
103341
- NonNullType: ["type"],
103342
- SchemaDefinition: ["description", "directives", "operationTypes"],
103343
- OperationTypeDefinition: ["type"],
103344
- ScalarTypeDefinition: ["description", "name", "directives"],
103345
- ObjectTypeDefinition: [
103346
- "description",
103347
- "name",
103348
- "interfaces",
103349
- "directives",
103350
- "fields"
103351
- ],
103352
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
103353
- InputValueDefinition: [
103354
- "description",
103355
- "name",
103356
- "type",
103357
- "defaultValue",
103358
- "directives"
103359
- ],
103360
- InterfaceTypeDefinition: [
103361
- "description",
103362
- "name",
103363
- "interfaces",
103364
- "directives",
103365
- "fields"
103366
- ],
103367
- UnionTypeDefinition: ["description", "name", "directives", "types"],
103368
- EnumTypeDefinition: ["description", "name", "directives", "values"],
103369
- EnumValueDefinition: ["description", "name", "directives"],
103370
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
103371
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
103372
- SchemaExtension: ["directives", "operationTypes"],
103373
- ScalarTypeExtension: ["name", "directives"],
103374
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
103375
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
103376
- UnionTypeExtension: ["name", "directives", "types"],
103377
- EnumTypeExtension: ["name", "directives", "values"],
103378
- InputObjectTypeExtension: ["name", "directives", "fields"]
103379
- };
103380
- new Set(Object.keys(QueryDocumentKeys));
103381
- var OperationTypeNode;
103382
- (function(OperationTypeNode2) {
103383
- OperationTypeNode2["QUERY"] = "query";
103384
- OperationTypeNode2["MUTATION"] = "mutation";
103385
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
103386
- })(OperationTypeNode || (OperationTypeNode = {}));
103387
- var DirectiveLocation;
103388
- (function(DirectiveLocation2) {
103389
- DirectiveLocation2["QUERY"] = "QUERY";
103390
- DirectiveLocation2["MUTATION"] = "MUTATION";
103391
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
103392
- DirectiveLocation2["FIELD"] = "FIELD";
103393
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
103394
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
103395
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
103396
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
103397
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
103398
- DirectiveLocation2["SCALAR"] = "SCALAR";
103399
- DirectiveLocation2["OBJECT"] = "OBJECT";
103400
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
103401
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
103402
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
103403
- DirectiveLocation2["UNION"] = "UNION";
103404
- DirectiveLocation2["ENUM"] = "ENUM";
103405
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
103406
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
103407
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
103408
- })(DirectiveLocation || (DirectiveLocation = {}));
103409
- const referenceMap = /* @__PURE__ */ new WeakMap();
103410
- const astResolver = function(astReference) {
103411
- return referenceMap.get(astReference);
103412
- };
103413
- function resolveAst(ast) {
103414
- if (ast === null || ast === void 0) {
103415
- return;
103416
- }
103417
- const result = astResolver(ast);
103418
- if (result === void 0) {
103419
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
103420
- }
103421
- return result;
103422
- }
103423
-
103424
103259
  /**
103425
103260
  * Copyright (c) 2022, Salesforce, Inc.,
103426
103261
  * All rights reserved.
@@ -115094,7 +114929,7 @@ function registerCallback(cb) {
115094
114929
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
115095
114930
  }
115096
114931
  }
115097
- // version: 1.404.0-dev2-c0a696aed4
114932
+ // version: 1.404.0-dev5-38a59c52aa
115098
114933
 
115099
114934
  function createFragmentMap(documentNode) {
115100
114935
  const fragments = {};
@@ -143788,12 +143623,12 @@ function bindExportsTo(luvio) {
143788
143623
  const graphqlBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'graphqlBatch', factory), graphqlBatchMetadata);
143789
143624
  return {
143790
143625
  // Wire Adapters
143791
- graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143626
+ graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143792
143627
  // One Store Enabled Adapters
143793
- graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143794
- graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143628
+ graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143629
+ graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143795
143630
  // Imperative Adapters
143796
- graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143631
+ graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143797
143632
  };
143798
143633
  }
143799
143634
  withDefaultLuvio((luvio) => {
@@ -144319,7 +144154,7 @@ register$1({
144319
144154
  configuration: { ...configurationForGraphQLAdapters$1 },
144320
144155
  instrument: instrument$1,
144321
144156
  });
144322
- // version: 1.404.0-dev2-c0a696aed4
144157
+ // version: 1.404.0-dev5-38a59c52aa
144323
144158
 
144324
144159
  // On core the unstable adapters are re-exported with different names,
144325
144160
  // we want to match them here.
@@ -144445,7 +144280,7 @@ const graphQLAdapterFactory = (luvio) => {
144445
144280
  }
144446
144281
  const { query, variables } = validatedConfig;
144447
144282
  // Forward to new adapter
144448
- const resolvedQuery = astResolver$2(query);
144283
+ const resolvedQuery = astResolver$1(query);
144449
144284
  if (resolvedQuery === undefined) {
144450
144285
  return null;
144451
144286
  }
@@ -144471,7 +144306,7 @@ withDefaultLuvio((luvio) => {
144471
144306
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
144472
144307
  graphQLImperative = ldsAdapter;
144473
144308
  });
144474
- // version: 1.404.0-dev2-c0a696aed4
144309
+ // version: 1.404.0-dev5-38a59c52aa
144475
144310
 
144476
144311
  var gqlApi = /*#__PURE__*/Object.freeze({
144477
144312
  __proto__: null,
@@ -145270,7 +145105,7 @@ const callbacks$1 = [];
145270
145105
  function register(r) {
145271
145106
  callbacks$1.forEach((callback) => callback(r));
145272
145107
  }
145273
- // version: 1.404.0-dev2-3aea909b9d
145108
+ // version: 1.404.0-dev5-924c469d6b
145274
145109
 
145275
145110
  /**
145276
145111
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -146586,4 +146421,4 @@ const { luvio } = getRuntime();
146586
146421
  setDefaultLuvio({ luvio });
146587
146422
 
146588
146423
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
146589
- // version: 1.404.0-dev2-3aea909b9d
146424
+ // version: 1.404.0-dev5-924c469d6b