houdini-svelte 0.18.2 → 0.19.0

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.
@@ -1980,12 +1980,12 @@ var require_parser3 = __commonJS({
1980
1980
  return [];
1981
1981
  }
1982
1982
  if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {
1983
- var types11 = [];
1983
+ var types13 = [];
1984
1984
  this.expectOptionalToken(_tokenKind.TokenKind.AMP);
1985
1985
  do {
1986
- types11.push(this.parseNamedType());
1986
+ types13.push(this.parseNamedType());
1987
1987
  } while (this.expectOptionalToken(_tokenKind.TokenKind.AMP) || this.peek(_tokenKind.TokenKind.NAME));
1988
- return types11;
1988
+ return types13;
1989
1989
  }
1990
1990
  return this.delimitedMany(_tokenKind.TokenKind.AMP, this.parseNamedType);
1991
1991
  };
@@ -2064,13 +2064,13 @@ var require_parser3 = __commonJS({
2064
2064
  this.expectKeyword("union");
2065
2065
  var name2 = this.parseName();
2066
2066
  var directives = this.parseDirectives(true);
2067
- var types11 = this.parseUnionMemberTypes();
2067
+ var types13 = this.parseUnionMemberTypes();
2068
2068
  return {
2069
2069
  kind: _kinds.Kind.UNION_TYPE_DEFINITION,
2070
2070
  description,
2071
2071
  name: name2,
2072
2072
  directives,
2073
- types: types11,
2073
+ types: types13,
2074
2074
  loc: this.loc(start)
2075
2075
  };
2076
2076
  };
@@ -2228,15 +2228,15 @@ var require_parser3 = __commonJS({
2228
2228
  this.expectKeyword("union");
2229
2229
  var name2 = this.parseName();
2230
2230
  var directives = this.parseDirectives(true);
2231
- var types11 = this.parseUnionMemberTypes();
2232
- if (directives.length === 0 && types11.length === 0) {
2231
+ var types13 = this.parseUnionMemberTypes();
2232
+ if (directives.length === 0 && types13.length === 0) {
2233
2233
  throw this.unexpected();
2234
2234
  }
2235
2235
  return {
2236
2236
  kind: _kinds.Kind.UNION_TYPE_EXTENSION,
2237
2237
  name: name2,
2238
2238
  directives,
2239
- types: types11,
2239
+ types: types13,
2240
2240
  loc: this.loc(start)
2241
2241
  };
2242
2242
  };
@@ -3214,8 +3214,8 @@ var require_printer3 = __commonJS({
3214
3214
  return join5(["interface", name2, wrap3("implements ", join5(interfaces, " & ")), join5(directives, " "), block3(fields)], " ");
3215
3215
  }),
3216
3216
  UnionTypeDefinition: addDescription3(function(_ref27) {
3217
- var name2 = _ref27.name, directives = _ref27.directives, types11 = _ref27.types;
3218
- return join5(["union", name2, join5(directives, " "), types11 && types11.length !== 0 ? "= " + join5(types11, " | ") : ""], " ");
3217
+ var name2 = _ref27.name, directives = _ref27.directives, types13 = _ref27.types;
3218
+ return join5(["union", name2, join5(directives, " "), types13 && types13.length !== 0 ? "= " + join5(types13, " | ") : ""], " ");
3219
3219
  }),
3220
3220
  EnumTypeDefinition: addDescription3(function(_ref28) {
3221
3221
  var name2 = _ref28.name, directives = _ref28.directives, values = _ref28.values;
@@ -3250,8 +3250,8 @@ var require_printer3 = __commonJS({
3250
3250
  return join5(["extend interface", name2, wrap3("implements ", join5(interfaces, " & ")), join5(directives, " "), block3(fields)], " ");
3251
3251
  },
3252
3252
  UnionTypeExtension: function UnionTypeExtension(_ref36) {
3253
- var name2 = _ref36.name, directives = _ref36.directives, types11 = _ref36.types;
3254
- return join5(["extend union", name2, join5(directives, " "), types11 && types11.length !== 0 ? "= " + join5(types11, " | ") : ""], " ");
3253
+ var name2 = _ref36.name, directives = _ref36.directives, types13 = _ref36.types;
3254
+ return join5(["extend union", name2, join5(directives, " "), types13 && types13.length !== 0 ? "= " + join5(types13, " | ") : ""], " ");
3255
3255
  },
3256
3256
  EnumTypeExtension: function EnumTypeExtension(_ref37) {
3257
3257
  var name2 = _ref37.name, directives = _ref37.directives, values = _ref37.values;
@@ -3922,9 +3922,9 @@ var require_definition2 = __commonJS({
3922
3922
  exports.GraphQLUnionType = GraphQLUnionType;
3923
3923
  (0, _defineInspect.default)(GraphQLUnionType);
3924
3924
  function defineTypes(config4) {
3925
- var types11 = resolveThunk(config4.types);
3926
- Array.isArray(types11) || (0, _devAssert.default)(0, "Must provide Array of types or a function which returns such an array for Union ".concat(config4.name, "."));
3927
- return types11;
3925
+ var types13 = resolveThunk(config4.types);
3926
+ Array.isArray(types13) || (0, _devAssert.default)(0, "Must provide Array of types or a function which returns such an array for Union ".concat(config4.name, "."));
3927
+ return types13;
3928
3928
  }
3929
3929
  var GraphQLEnumType = /* @__PURE__ */ function() {
3930
3930
  function GraphQLEnumType2(config4) {
@@ -9762,7 +9762,7 @@ var require_graphql3 = __commonJS({
9762
9762
  Object.defineProperty(exports, "__esModule", {
9763
9763
  value: true
9764
9764
  });
9765
- exports.graphql = graphql30;
9765
+ exports.graphql = graphql34;
9766
9766
  exports.graphqlSync = graphqlSync;
9767
9767
  var _isPromise = _interopRequireDefault(require_isPromise2());
9768
9768
  var _parser = require_parser3();
@@ -9772,7 +9772,7 @@ var require_graphql3 = __commonJS({
9772
9772
  function _interopRequireDefault(obj) {
9773
9773
  return obj && obj.__esModule ? obj : { default: obj };
9774
9774
  }
9775
- function graphql30(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver) {
9775
+ function graphql34(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver) {
9776
9776
  var _arguments = arguments;
9777
9777
  return new Promise(function(resolve4) {
9778
9778
  return resolve4(
@@ -11561,7 +11561,7 @@ var require_buildClientSchema2 = __commonJS({
11561
11561
  return new _definition.GraphQLUnionType({
11562
11562
  name: unionIntrospection.name,
11563
11563
  description: unionIntrospection.description,
11564
- types: function types11() {
11564
+ types: function types13() {
11565
11565
  return unionIntrospection.possibleTypes.map(getObjectType);
11566
11566
  }
11567
11567
  });
@@ -11906,7 +11906,7 @@ var require_extendSchema2 = __commonJS({
11906
11906
  var config4 = type.toConfig();
11907
11907
  var extensions = (_typeExtensionsMap$co5 = typeExtensionsMap[config4.name]) !== null && _typeExtensionsMap$co5 !== void 0 ? _typeExtensionsMap$co5 : [];
11908
11908
  return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, config4), {}, {
11909
- types: function types11() {
11909
+ types: function types13() {
11910
11910
  return [].concat(type.getTypes().map(replaceNamedType), buildUnionTypes(extensions));
11911
11911
  },
11912
11912
  extensionASTNodes: config4.extensionASTNodes.concat(extensions)
@@ -12054,17 +12054,17 @@ var require_extendSchema2 = __commonJS({
12054
12054
  return interfaces;
12055
12055
  }
12056
12056
  function buildUnionTypes(nodes) {
12057
- var types11 = [];
12057
+ var types13 = [];
12058
12058
  for (var _i32 = 0; _i32 < nodes.length; _i32++) {
12059
12059
  var _node$types;
12060
12060
  var node2 = nodes[_i32];
12061
12061
  var typeNodes = (_node$types = node2.types) !== null && _node$types !== void 0 ? _node$types : [];
12062
12062
  for (var _i34 = 0; _i34 < typeNodes.length; _i34++) {
12063
12063
  var type = typeNodes[_i34];
12064
- types11.push(getNamedType(type));
12064
+ types13.push(getNamedType(type));
12065
12065
  }
12066
12066
  }
12067
- return types11;
12067
+ return types13;
12068
12068
  }
12069
12069
  function buildType(astNode) {
12070
12070
  var _typeExtensionsMap$na;
@@ -12121,7 +12121,7 @@ var require_extendSchema2 = __commonJS({
12121
12121
  return new _definition.GraphQLUnionType({
12122
12122
  name: name3,
12123
12123
  description,
12124
- types: function types11() {
12124
+ types: function types13() {
12125
12125
  return buildUnionTypes(_allNodes3);
12126
12126
  },
12127
12127
  astNode,
@@ -12419,7 +12419,7 @@ var require_lexicographicSortSchema2 = __commonJS({
12419
12419
  if ((0, _definition.isUnionType)(type)) {
12420
12420
  var _config2 = type.toConfig();
12421
12421
  return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
12422
- types: function types11() {
12422
+ types: function types13() {
12423
12423
  return sortTypes(_config2.types);
12424
12424
  }
12425
12425
  }));
@@ -12504,10 +12504,10 @@ var require_printSchema2 = __commonJS({
12504
12504
  }
12505
12505
  function printFilteredSchema(schema, directiveFilter, typeFilter, options) {
12506
12506
  var directives = schema.getDirectives().filter(directiveFilter);
12507
- var types11 = (0, _objectValues.default)(schema.getTypeMap()).filter(typeFilter);
12507
+ var types13 = (0, _objectValues.default)(schema.getTypeMap()).filter(typeFilter);
12508
12508
  return [printSchemaDefinition(schema)].concat(directives.map(function(directive) {
12509
12509
  return printDirective(directive, options);
12510
- }), types11.map(function(type) {
12510
+ }), types13.map(function(type) {
12511
12511
  return printType(type, options);
12512
12512
  })).filter(Boolean).join("\n\n") + "\n";
12513
12513
  }
@@ -12582,8 +12582,8 @@ var require_printSchema2 = __commonJS({
12582
12582
  return printDescription(options, type) + "interface ".concat(type.name) + printImplementedInterfaces(type) + printFields(options, type);
12583
12583
  }
12584
12584
  function printUnion(type, options) {
12585
- var types11 = type.getTypes();
12586
- var possibleTypes = types11.length ? " = " + types11.join(" | ") : "";
12585
+ var types13 = type.getTypes();
12586
+ var possibleTypes = types13.length ? " = " + types13.join(" | ") : "";
12587
12587
  return printDescription(options, type) + "union " + type.name + possibleTypes;
12588
12588
  }
12589
12589
  function printEnum(type, options) {
@@ -12646,8 +12646,8 @@ var require_printSchema2 = __commonJS({
12646
12646
  if (scalar.specifiedByUrl == null) {
12647
12647
  return "";
12648
12648
  }
12649
- var url = scalar.specifiedByUrl;
12650
- var urlAST = (0, _astFromValue.astFromValue)(url, _scalars.GraphQLString);
12649
+ var url2 = scalar.specifiedByUrl;
12650
+ var urlAST = (0, _astFromValue.astFromValue)(url2, _scalars.GraphQLString);
12651
12651
  urlAST || (0, _invariant.default)(0, "Unexpected null value returned from `astFromValue` for specifiedByUrl");
12652
12652
  return " @specifiedBy(url: " + (0, _printer.print)(urlAST) + ")";
12653
12653
  }
@@ -15166,9 +15166,9 @@ var require_shared3 = __commonJS({
15166
15166
  var tslib_1 = require_tslib3();
15167
15167
  var types_110 = tslib_1.__importDefault(require_types3());
15168
15168
  function default_1(fork) {
15169
- var types11 = fork.use(types_110.default);
15170
- var Type = types11.Type;
15171
- var builtin = types11.builtInTypes;
15169
+ var types13 = fork.use(types_110.default);
15170
+ var Type = types13.Type;
15171
+ var builtin = types13.builtInTypes;
15172
15172
  var isNumber2 = builtin.number;
15173
15173
  function geq(than) {
15174
15174
  return Type.from(function(value2) {
@@ -15318,9 +15318,9 @@ var require_types3 = __commonJS({
15318
15318
  }(BaseType);
15319
15319
  var OrType = function(_super) {
15320
15320
  tslib_1.__extends(OrType2, _super);
15321
- function OrType2(types11) {
15321
+ function OrType2(types13) {
15322
15322
  var _this = _super.call(this) || this;
15323
- _this.types = types11;
15323
+ _this.types = types13;
15324
15324
  _this.kind = "OrType";
15325
15325
  return _this;
15326
15326
  }
@@ -15461,11 +15461,11 @@ var require_types3 = __commonJS({
15461
15461
  function typesPlugin(_fork) {
15462
15462
  var Type = {
15463
15463
  or: function() {
15464
- var types11 = [];
15464
+ var types13 = [];
15465
15465
  for (var _i = 0; _i < arguments.length; _i++) {
15466
- types11[_i] = arguments[_i];
15466
+ types13[_i] = arguments[_i];
15467
15467
  }
15468
- return new OrType(types11.map(function(type) {
15468
+ return new OrType(types13.map(function(type) {
15469
15469
  return Type.from(type);
15470
15470
  }));
15471
15471
  },
@@ -15910,9 +15910,9 @@ var require_path4 = __commonJS({
15910
15910
  var Op = Object.prototype;
15911
15911
  var hasOwn2 = Op.hasOwnProperty;
15912
15912
  function pathPlugin(fork) {
15913
- var types11 = fork.use(types_110.default);
15914
- var isArray2 = types11.builtInTypes.array;
15915
- var isNumber2 = types11.builtInTypes.number;
15913
+ var types13 = fork.use(types_110.default);
15914
+ var isArray2 = types13.builtInTypes.array;
15915
+ var isNumber2 = types13.builtInTypes.number;
15916
15916
  var Path = function Path2(value2, parentPath, name2) {
15917
15917
  if (!(this instanceof Path2)) {
15918
15918
  throw new Error("Path constructor cannot be invoked without 'new'");
@@ -16214,13 +16214,13 @@ var require_scope3 = __commonJS({
16214
16214
  var types_110 = tslib_1.__importDefault(require_types3());
16215
16215
  var hasOwn2 = Object.prototype.hasOwnProperty;
16216
16216
  function scopePlugin(fork) {
16217
- var types11 = fork.use(types_110.default);
16218
- var Type = types11.Type;
16219
- var namedTypes = types11.namedTypes;
16217
+ var types13 = fork.use(types_110.default);
16218
+ var Type = types13.Type;
16219
+ var namedTypes = types13.namedTypes;
16220
16220
  var Node3 = namedTypes.Node;
16221
16221
  var Expression = namedTypes.Expression;
16222
- var isArray2 = types11.builtInTypes.array;
16223
- var b = types11.builders;
16222
+ var isArray2 = types13.builtInTypes.array;
16223
+ var b = types13.builders;
16224
16224
  var Scope3 = function Scope4(path3, parentScope) {
16225
16225
  if (!(this instanceof Scope4)) {
16226
16226
  throw new Error("Scope constructor cannot be invoked without 'new'");
@@ -16283,7 +16283,7 @@ var require_scope3 = __commonJS({
16283
16283
  ++index;
16284
16284
  }
16285
16285
  var name2 = prefix + index;
16286
- return this.bindings[name2] = types11.builders.identifier(name2);
16286
+ return this.bindings[name2] = types13.builders.identifier(name2);
16287
16287
  };
16288
16288
  Sp.injectTemporary = function(identifier, init) {
16289
16289
  identifier || (identifier = this.declareTemporary());
@@ -16359,7 +16359,7 @@ var require_scope3 = __commonJS({
16359
16359
  bindings
16360
16360
  );
16361
16361
  } else if (Node3.check(node2) && !Expression.check(node2)) {
16362
- types11.eachField(node2, function(name2, child) {
16362
+ types13.eachField(node2, function(name2, child) {
16363
16363
  var childPath = path3.get(name2);
16364
16364
  if (!pathHasValue(childPath, child)) {
16365
16365
  throw new Error("");
@@ -16437,24 +16437,24 @@ var require_scope3 = __commonJS({
16437
16437
  addPattern(patternPath.get("argument"), bindings);
16438
16438
  }
16439
16439
  }
16440
- function addTypePattern(patternPath, types12) {
16440
+ function addTypePattern(patternPath, types14) {
16441
16441
  var pattern = patternPath.value;
16442
16442
  namedTypes.Pattern.assert(pattern);
16443
16443
  if (namedTypes.Identifier.check(pattern)) {
16444
- if (hasOwn2.call(types12, pattern.name)) {
16445
- types12[pattern.name].push(patternPath);
16444
+ if (hasOwn2.call(types14, pattern.name)) {
16445
+ types14[pattern.name].push(patternPath);
16446
16446
  } else {
16447
- types12[pattern.name] = [patternPath];
16447
+ types14[pattern.name] = [patternPath];
16448
16448
  }
16449
16449
  }
16450
16450
  }
16451
- function addTypeParameter(parameterPath, types12) {
16451
+ function addTypeParameter(parameterPath, types14) {
16452
16452
  var parameter = parameterPath.value;
16453
16453
  FlowOrTSTypeParameterType.assert(parameter);
16454
- if (hasOwn2.call(types12, parameter.name)) {
16455
- types12[parameter.name].push(parameterPath);
16454
+ if (hasOwn2.call(types14, parameter.name)) {
16455
+ types14[parameter.name].push(parameterPath);
16456
16456
  } else {
16457
- types12[parameter.name] = [parameterPath];
16457
+ types14[parameter.name] = [parameterPath];
16458
16458
  }
16459
16459
  }
16460
16460
  Sp.lookup = function(name2) {
@@ -16495,11 +16495,11 @@ var require_node_path3 = __commonJS({
16495
16495
  var scope_1 = tslib_1.__importDefault(require_scope3());
16496
16496
  var shared_1 = require_shared3();
16497
16497
  function nodePathPlugin(fork) {
16498
- var types11 = fork.use(types_110.default);
16499
- var n2 = types11.namedTypes;
16500
- var b = types11.builders;
16501
- var isNumber2 = types11.builtInTypes.number;
16502
- var isArray2 = types11.builtInTypes.array;
16498
+ var types13 = fork.use(types_110.default);
16499
+ var n2 = types13.namedTypes;
16500
+ var b = types13.builders;
16501
+ var isNumber2 = types13.builtInTypes.number;
16502
+ var isArray2 = types13.builtInTypes.array;
16503
16503
  var Path = fork.use(path_1.default);
16504
16504
  var Scope3 = fork.use(scope_1.default);
16505
16505
  var NodePath = function NodePath2(value2, parentPath, name2) {
@@ -16590,7 +16590,7 @@ var require_node_path3 = __commonJS({
16590
16590
  return scope2 || null;
16591
16591
  };
16592
16592
  NPp.getValueProperty = function(name2) {
16593
- return types11.getFieldValue(this.value, name2);
16593
+ return types13.getFieldValue(this.value, name2);
16594
16594
  };
16595
16595
  NPp.needsParens = function(assumeExpressionContext) {
16596
16596
  var pp2 = this.parentPath;
@@ -16732,7 +16732,7 @@ var require_node_path3 = __commonJS({
16732
16732
  return node2.some(containsCallExpression);
16733
16733
  }
16734
16734
  if (n2.Node.check(node2)) {
16735
- return types11.someField(node2, function(_name, child) {
16735
+ return types13.someField(node2, function(_name, child) {
16736
16736
  return containsCallExpression(child);
16737
16737
  });
16738
16738
  }
@@ -16853,11 +16853,11 @@ var require_path_visitor3 = __commonJS({
16853
16853
  var shared_1 = require_shared3();
16854
16854
  var hasOwn2 = Object.prototype.hasOwnProperty;
16855
16855
  function pathVisitorPlugin(fork) {
16856
- var types11 = fork.use(types_110.default);
16856
+ var types13 = fork.use(types_110.default);
16857
16857
  var NodePath = fork.use(node_path_1.default);
16858
- var isArray2 = types11.builtInTypes.array;
16859
- var isObject2 = types11.builtInTypes.object;
16860
- var isFunction2 = types11.builtInTypes.function;
16858
+ var isArray2 = types13.builtInTypes.array;
16859
+ var isObject2 = types13.builtInTypes.object;
16860
+ var isFunction2 = types13.builtInTypes.function;
16861
16861
  var undefined2;
16862
16862
  var PathVisitor = function PathVisitor2() {
16863
16863
  if (!(this instanceof PathVisitor2)) {
@@ -16877,7 +16877,7 @@ var require_path_visitor3 = __commonJS({
16877
16877
  typeNames[methodName.slice("visit".length)] = true;
16878
16878
  }
16879
16879
  }
16880
- var supertypeTable = types11.computeSupertypeLookupTable(typeNames);
16880
+ var supertypeTable = types13.computeSupertypeLookupTable(typeNames);
16881
16881
  var methodNameTable = /* @__PURE__ */ Object.create(null);
16882
16882
  var typeNameKeys = Object.keys(supertypeTable);
16883
16883
  var typeNameCount = typeNameKeys.length;
@@ -16996,7 +16996,7 @@ var require_path_visitor3 = __commonJS({
16996
16996
  path3.each(visitor.visitWithoutReset, visitor);
16997
16997
  } else if (!isObject2.check(value2)) {
16998
16998
  } else {
16999
- var childNames = types11.getFieldNames(value2);
16999
+ var childNames = types13.getFieldNames(value2);
17000
17000
  if (visitor._shouldVisitComments && value2.comments && childNames.indexOf("comments") < 0) {
17001
17001
  childNames.push("comments");
17002
17002
  }
@@ -17005,7 +17005,7 @@ var require_path_visitor3 = __commonJS({
17005
17005
  for (var i3 = 0; i3 < childCount; ++i3) {
17006
17006
  var childName = childNames[i3];
17007
17007
  if (!hasOwn2.call(value2, childName)) {
17008
- value2[childName] = types11.getFieldValue(value2, childName);
17008
+ value2[childName] = types13.getFieldValue(value2, childName);
17009
17009
  }
17010
17010
  childPaths.push(path3.get(childName));
17011
17011
  }
@@ -17148,13 +17148,13 @@ var require_equiv3 = __commonJS({
17148
17148
  var shared_1 = require_shared3();
17149
17149
  var types_110 = tslib_1.__importDefault(require_types3());
17150
17150
  function default_1(fork) {
17151
- var types11 = fork.use(types_110.default);
17152
- var getFieldNames = types11.getFieldNames;
17153
- var getFieldValue = types11.getFieldValue;
17154
- var isArray2 = types11.builtInTypes.array;
17155
- var isObject2 = types11.builtInTypes.object;
17156
- var isDate2 = types11.builtInTypes.Date;
17157
- var isRegExp2 = types11.builtInTypes.RegExp;
17151
+ var types13 = fork.use(types_110.default);
17152
+ var getFieldNames = types13.getFieldNames;
17153
+ var getFieldValue = types13.getFieldValue;
17154
+ var isArray2 = types13.builtInTypes.array;
17155
+ var isObject2 = types13.builtInTypes.object;
17156
+ var isDate2 = types13.builtInTypes.Date;
17157
+ var isRegExp2 = types13.builtInTypes.RegExp;
17158
17158
  var hasOwn2 = Object.prototype.hasOwnProperty;
17159
17159
  function astNodesAreEquivalent(a, b, problemPath) {
17160
17160
  if (isArray2.check(problemPath)) {
@@ -17307,24 +17307,24 @@ var require_fork3 = __commonJS({
17307
17307
  var shared_1 = require_shared3();
17308
17308
  function default_1(plugins) {
17309
17309
  var fork = createFork();
17310
- var types11 = fork.use(types_110.default);
17310
+ var types13 = fork.use(types_110.default);
17311
17311
  plugins.forEach(fork.use);
17312
- types11.finalize();
17312
+ types13.finalize();
17313
17313
  var PathVisitor = fork.use(path_visitor_1.default);
17314
17314
  return {
17315
- Type: types11.Type,
17316
- builtInTypes: types11.builtInTypes,
17317
- namedTypes: types11.namedTypes,
17318
- builders: types11.builders,
17319
- defineMethod: types11.defineMethod,
17320
- getFieldNames: types11.getFieldNames,
17321
- getFieldValue: types11.getFieldValue,
17322
- eachField: types11.eachField,
17323
- someField: types11.someField,
17324
- getSupertypeNames: types11.getSupertypeNames,
17325
- getBuilderName: types11.getBuilderName,
17315
+ Type: types13.Type,
17316
+ builtInTypes: types13.builtInTypes,
17317
+ namedTypes: types13.namedTypes,
17318
+ builders: types13.builders,
17319
+ defineMethod: types13.defineMethod,
17320
+ getFieldNames: types13.getFieldNames,
17321
+ getFieldValue: types13.getFieldValue,
17322
+ eachField: types13.eachField,
17323
+ someField: types13.someField,
17324
+ getSupertypeNames: types13.getSupertypeNames,
17325
+ getBuilderName: types13.getBuilderName,
17326
17326
  astNodesAreEquivalent: fork.use(equiv_1.default),
17327
- finalize: types11.finalize,
17327
+ finalize: types13.finalize,
17328
17328
  Path: fork.use(path_1.default),
17329
17329
  NodePath: fork.use(node_path_1.default),
17330
17330
  PathVisitor,
@@ -17494,8 +17494,8 @@ var require_core5 = __commonJS({
17494
17494
  var types_110 = tslib_1.__importDefault(require_types3());
17495
17495
  var shared_1 = tslib_1.__importStar(require_shared3());
17496
17496
  function default_1(fork) {
17497
- var types11 = fork.use(types_110.default);
17498
- var Type = types11.Type;
17497
+ var types13 = fork.use(types_110.default);
17498
+ var Type = types13.Type;
17499
17499
  var def = Type.def;
17500
17500
  var or = Type.or;
17501
17501
  var shared = fork.use(shared_1.default);
@@ -17587,9 +17587,9 @@ var require_es63 = __commonJS({
17587
17587
  var shared_1 = tslib_1.__importStar(require_shared3());
17588
17588
  function default_1(fork) {
17589
17589
  fork.use(core_1.default);
17590
- var types11 = fork.use(types_110.default);
17591
- var def = types11.Type.def;
17592
- var or = types11.Type.or;
17590
+ var types13 = fork.use(types_110.default);
17591
+ var def = types13.Type.def;
17592
+ var or = types13.Type.or;
17593
17593
  var defaults2 = fork.use(shared_1.default).defaults;
17594
17594
  def("Function").field("generator", Boolean, defaults2["false"]).field("expression", Boolean, defaults2["false"]).field("defaults", [or(def("Expression"), null)], defaults2.emptyArray).field("rest", or(def("Identifier"), null), defaults2["null"]);
17595
17595
  def("RestElement").bases("Pattern").build("argument").field("argument", def("Pattern")).field(
@@ -17679,8 +17679,8 @@ var require_es20173 = __commonJS({
17679
17679
  var shared_1 = tslib_1.__importStar(require_shared3());
17680
17680
  function default_1(fork) {
17681
17681
  fork.use(es2016_1.default);
17682
- var types11 = fork.use(types_110.default);
17683
- var def = types11.Type.def;
17682
+ var types13 = fork.use(types_110.default);
17683
+ var def = types13.Type.def;
17684
17684
  var defaults2 = fork.use(shared_1.default).defaults;
17685
17685
  def("Function").field("async", Boolean, defaults2["false"]);
17686
17686
  def("AwaitExpression").bases("Expression").build("argument").field("argument", def("Expression"));
@@ -17703,9 +17703,9 @@ var require_es20183 = __commonJS({
17703
17703
  var shared_1 = tslib_1.__importStar(require_shared3());
17704
17704
  function default_1(fork) {
17705
17705
  fork.use(es2017_1.default);
17706
- var types11 = fork.use(types_110.default);
17707
- var def = types11.Type.def;
17708
- var or = types11.Type.or;
17706
+ var types13 = fork.use(types_110.default);
17707
+ var def = types13.Type.def;
17708
+ var or = types13.Type.or;
17709
17709
  var defaults2 = fork.use(shared_1.default).defaults;
17710
17710
  def("ForOfStatement").field("await", Boolean, defaults2["false"]);
17711
17711
  def("SpreadProperty").bases("Node").build("argument").field("argument", def("Expression"));
@@ -17736,9 +17736,9 @@ var require_es20193 = __commonJS({
17736
17736
  var shared_1 = tslib_1.__importStar(require_shared3());
17737
17737
  function default_1(fork) {
17738
17738
  fork.use(es2018_1.default);
17739
- var types11 = fork.use(types_110.default);
17740
- var def = types11.Type.def;
17741
- var or = types11.Type.or;
17739
+ var types13 = fork.use(types_110.default);
17740
+ var def = types13.Type.def;
17741
+ var or = types13.Type.or;
17742
17742
  var defaults2 = fork.use(shared_1.default).defaults;
17743
17743
  def("CatchClause").field("param", or(def("Pattern"), null), defaults2["null"]);
17744
17744
  }
@@ -17762,9 +17762,9 @@ var require_es20205 = __commonJS({
17762
17762
  function default_1(fork) {
17763
17763
  fork.use(es2020_1.default);
17764
17764
  fork.use(es2019_1.default);
17765
- var types11 = fork.use(types_110.default);
17766
- var def = types11.Type.def;
17767
- var or = types11.Type.or;
17765
+ var types13 = fork.use(types_110.default);
17766
+ var def = types13.Type.def;
17767
+ var or = types13.Type.or;
17768
17768
  var shared = fork.use(shared_1.default);
17769
17769
  var defaults2 = shared.defaults;
17770
17770
  def("ImportExpression").bases("Expression").build("source").field("source", def("Expression"));
@@ -17814,8 +17814,8 @@ var require_es20223 = __commonJS({
17814
17814
  var shared_1 = require_shared3();
17815
17815
  function default_1(fork) {
17816
17816
  fork.use(es2021_1.default);
17817
- var types11 = fork.use(types_110.default);
17818
- var def = types11.Type.def;
17817
+ var types13 = fork.use(types_110.default);
17818
+ var def = types13.Type.def;
17819
17819
  def("StaticBlock").bases("Declaration").build("body").field("body", [def("Statement")]);
17820
17820
  }
17821
17821
  exports.default = default_1;
@@ -17836,9 +17836,9 @@ var require_es_proposals3 = __commonJS({
17836
17836
  var es2022_1 = tslib_1.__importDefault(require_es20223());
17837
17837
  function default_1(fork) {
17838
17838
  fork.use(es2022_1.default);
17839
- var types11 = fork.use(types_110.default);
17840
- var Type = types11.Type;
17841
- var def = types11.Type.def;
17839
+ var types13 = fork.use(types_110.default);
17840
+ var Type = types13.Type;
17841
+ var def = types13.Type.def;
17842
17842
  var or = Type.or;
17843
17843
  var shared = fork.use(shared_1.default);
17844
17844
  var defaults2 = shared.defaults;
@@ -17878,9 +17878,9 @@ var require_jsx3 = __commonJS({
17878
17878
  var shared_1 = tslib_1.__importStar(require_shared3());
17879
17879
  function default_1(fork) {
17880
17880
  fork.use(es_proposals_1.default);
17881
- var types11 = fork.use(types_110.default);
17882
- var def = types11.Type.def;
17883
- var or = types11.Type.or;
17881
+ var types13 = fork.use(types_110.default);
17882
+ var def = types13.Type.def;
17883
+ var or = types13.Type.or;
17884
17884
  var defaults2 = fork.use(shared_1.default).defaults;
17885
17885
  def("JSXAttribute").bases("Node").build("name", "value").field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))).field("value", or(
17886
17886
  def("Literal"),
@@ -17938,9 +17938,9 @@ var require_type_annotations3 = __commonJS({
17938
17938
  var types_110 = tslib_1.__importDefault(require_types3());
17939
17939
  var shared_1 = tslib_1.__importStar(require_shared3());
17940
17940
  function default_1(fork) {
17941
- var types11 = fork.use(types_110.default);
17942
- var def = types11.Type.def;
17943
- var or = types11.Type.or;
17941
+ var types13 = fork.use(types_110.default);
17942
+ var def = types13.Type.def;
17943
+ var or = types13.Type.or;
17944
17944
  var defaults2 = fork.use(shared_1.default).defaults;
17945
17945
  var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null);
17946
17946
  var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null);
@@ -17975,9 +17975,9 @@ var require_flow3 = __commonJS({
17975
17975
  function default_1(fork) {
17976
17976
  fork.use(es_proposals_1.default);
17977
17977
  fork.use(type_annotations_1.default);
17978
- var types11 = fork.use(types_110.default);
17979
- var def = types11.Type.def;
17980
- var or = types11.Type.or;
17978
+ var types13 = fork.use(types_110.default);
17979
+ var def = types13.Type.def;
17980
+ var or = types13.Type.or;
17981
17981
  var defaults2 = fork.use(shared_1.default).defaults;
17982
17982
  def("Flow").bases("Node");
17983
17983
  def("FlowType").bases("Flow");
@@ -18091,10 +18091,10 @@ var require_esprima5 = __commonJS({
18091
18091
  var shared_1 = tslib_1.__importStar(require_shared3());
18092
18092
  function default_1(fork) {
18093
18093
  fork.use(es_proposals_1.default);
18094
- var types11 = fork.use(types_110.default);
18094
+ var types13 = fork.use(types_110.default);
18095
18095
  var defaults2 = fork.use(shared_1.default).defaults;
18096
- var def = types11.Type.def;
18097
- var or = types11.Type.or;
18096
+ var def = types13.Type.def;
18097
+ var or = types13.Type.or;
18098
18098
  def("VariableDeclaration").field("declarations", [or(
18099
18099
  def("VariableDeclarator"),
18100
18100
  def("Identifier")
@@ -18139,11 +18139,11 @@ var require_babel_core3 = __commonJS({
18139
18139
  function default_1(fork) {
18140
18140
  var _a, _b, _c, _d, _e;
18141
18141
  fork.use(es_proposals_1.default);
18142
- var types11 = fork.use(types_110.default);
18142
+ var types13 = fork.use(types_110.default);
18143
18143
  var defaults2 = fork.use(shared_1.default).defaults;
18144
- var def = types11.Type.def;
18145
- var or = types11.Type.or;
18146
- var isUndefined = types11.builtInTypes.undefined;
18144
+ var def = types13.Type.def;
18145
+ var or = types13.Type.or;
18146
+ var isUndefined = types13.builtInTypes.undefined;
18147
18147
  def("Noop").bases("Statement").build();
18148
18148
  def("DoExpression").bases("Expression").build("body").field("body", [def("Statement")]);
18149
18149
  def("BindExpression").bases("Expression").build("object", "callee").field("object", or(def("Expression"), null)).field("callee", def("Expression"));
@@ -18168,7 +18168,7 @@ var require_babel_core3 = __commonJS({
18168
18168
  raw: String
18169
18169
  },
18170
18170
  function getDefault() {
18171
- var value2 = types11.getFieldValue(this, "value");
18171
+ var value2 = types13.getFieldValue(this, "value");
18172
18172
  return {
18173
18173
  rawValue: value2,
18174
18174
  raw: toRaw ? toRaw(value2) : String(value2)
@@ -18271,8 +18271,8 @@ var require_babel3 = __commonJS({
18271
18271
  var flow_1 = tslib_1.__importDefault(require_flow3());
18272
18272
  var shared_1 = require_shared3();
18273
18273
  function default_1(fork) {
18274
- var types11 = fork.use(types_110.default);
18275
- var def = types11.Type.def;
18274
+ var types13 = fork.use(types_110.default);
18275
+ var def = types13.Type.def;
18276
18276
  fork.use(babel_core_1.default);
18277
18277
  fork.use(flow_1.default);
18278
18278
  def("V8IntrinsicIdentifier").bases("Expression").build("name").field("name", String);
@@ -18298,12 +18298,12 @@ var require_typescript3 = __commonJS({
18298
18298
  function default_1(fork) {
18299
18299
  fork.use(babel_core_1.default);
18300
18300
  fork.use(type_annotations_1.default);
18301
- var types11 = fork.use(types_110.default);
18302
- var n2 = types11.namedTypes;
18303
- var def = types11.Type.def;
18304
- var or = types11.Type.or;
18301
+ var types13 = fork.use(types_110.default);
18302
+ var n2 = types13.namedTypes;
18303
+ var def = types13.Type.def;
18304
+ var or = types13.Type.or;
18305
18305
  var defaults2 = fork.use(shared_1.default).defaults;
18306
- var StringLiteral = types11.Type.from(function(value2, deep) {
18306
+ var StringLiteral = types13.Type.from(function(value2, deep) {
18307
18307
  if (n2.StringLiteral && n2.StringLiteral.check(value2, deep)) {
18308
18308
  return true;
18309
18309
  }
@@ -18650,34 +18650,34 @@ var require_util4 = __commonJS({
18650
18650
  }
18651
18651
  exports.urlParse = urlParse;
18652
18652
  function urlGenerate(aParsedUrl) {
18653
- var url = "";
18653
+ var url2 = "";
18654
18654
  if (aParsedUrl.scheme) {
18655
- url += aParsedUrl.scheme + ":";
18655
+ url2 += aParsedUrl.scheme + ":";
18656
18656
  }
18657
- url += "//";
18657
+ url2 += "//";
18658
18658
  if (aParsedUrl.auth) {
18659
- url += aParsedUrl.auth + "@";
18659
+ url2 += aParsedUrl.auth + "@";
18660
18660
  }
18661
18661
  if (aParsedUrl.host) {
18662
- url += aParsedUrl.host;
18662
+ url2 += aParsedUrl.host;
18663
18663
  }
18664
18664
  if (aParsedUrl.port) {
18665
- url += ":" + aParsedUrl.port;
18665
+ url2 += ":" + aParsedUrl.port;
18666
18666
  }
18667
18667
  if (aParsedUrl.path) {
18668
- url += aParsedUrl.path;
18668
+ url2 += aParsedUrl.path;
18669
18669
  }
18670
- return url;
18670
+ return url2;
18671
18671
  }
18672
18672
  exports.urlGenerate = urlGenerate;
18673
18673
  function normalize(aPath) {
18674
18674
  var path3 = aPath;
18675
- var url = urlParse(aPath);
18676
- if (url) {
18677
- if (!url.path) {
18675
+ var url2 = urlParse(aPath);
18676
+ if (url2) {
18677
+ if (!url2.path) {
18678
18678
  return aPath;
18679
18679
  }
18680
- path3 = url.path;
18680
+ path3 = url2.path;
18681
18681
  }
18682
18682
  var isAbsolute3 = exports.isAbsolute(path3);
18683
18683
  var parts = path3.split(/\/+/);
@@ -18701,9 +18701,9 @@ var require_util4 = __commonJS({
18701
18701
  if (path3 === "") {
18702
18702
  path3 = isAbsolute3 ? "/" : ".";
18703
18703
  }
18704
- if (url) {
18705
- url.path = path3;
18706
- return urlGenerate(url);
18704
+ if (url2) {
18705
+ url2.path = path3;
18706
+ return urlGenerate(url2);
18707
18707
  }
18708
18708
  return path3;
18709
18709
  }
@@ -19781,13 +19781,13 @@ var require_source_map_consumer3 = __commonJS({
19781
19781
  if (this.sourceRoot != null) {
19782
19782
  relativeSource = util2.relative(this.sourceRoot, relativeSource);
19783
19783
  }
19784
- var url;
19785
- if (this.sourceRoot != null && (url = util2.urlParse(this.sourceRoot))) {
19784
+ var url2;
19785
+ if (this.sourceRoot != null && (url2 = util2.urlParse(this.sourceRoot))) {
19786
19786
  var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
19787
- if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
19787
+ if (url2.scheme == "file" && this._sources.has(fileUriAbsPath)) {
19788
19788
  return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
19789
19789
  }
19790
- if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
19790
+ if ((!url2.path || url2.path == "/") && this._sources.has("/" + relativeSource)) {
19791
19791
  return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
19792
19792
  }
19793
19793
  }
@@ -20279,8 +20279,8 @@ var require_util5 = __commonJS({
20279
20279
  exports.isTrailingCommaEnabled = exports.getParentExportDeclaration = exports.isExportDeclaration = exports.fixFaultyLocations = exports.getTrueLoc = exports.composeSourceMaps = exports.copyPos = exports.comparePos = exports.getUnionOfKeys = exports.getOption = exports.isBrowser = exports.getLineTerminator = void 0;
20280
20280
  var tslib_1 = require_tslib3();
20281
20281
  var assert_1 = tslib_1.__importDefault(__require("assert"));
20282
- var types11 = tslib_1.__importStar(require_main4());
20283
- var n2 = types11.namedTypes;
20282
+ var types13 = tslib_1.__importStar(require_main4());
20283
+ var n2 = types13.namedTypes;
20284
20284
  var source_map_1 = tslib_1.__importDefault(require_source_map3());
20285
20285
  var SourceMapConsumer = source_map_1.default.SourceMapConsumer;
20286
20286
  var SourceMapGenerator = source_map_1.default.SourceMapGenerator;
@@ -27598,10 +27598,10 @@ var require_comments3 = __commonJS({
27598
27598
  exports.printComments = exports.attach = void 0;
27599
27599
  var tslib_1 = require_tslib3();
27600
27600
  var assert_1 = tslib_1.__importDefault(__require("assert"));
27601
- var types11 = tslib_1.__importStar(require_main4());
27602
- var n2 = types11.namedTypes;
27603
- var isArray2 = types11.builtInTypes.array;
27604
- var isObject2 = types11.builtInTypes.object;
27601
+ var types13 = tslib_1.__importStar(require_main4());
27602
+ var n2 = types13.namedTypes;
27603
+ var isArray2 = types13.builtInTypes.array;
27604
+ var isObject2 = types13.builtInTypes.object;
27605
27605
  var lines_1 = require_lines3();
27606
27606
  var util_110 = require_util5();
27607
27607
  var childNodesCache = /* @__PURE__ */ new WeakMap();
@@ -27632,7 +27632,7 @@ var require_comments3 = __commonJS({
27632
27632
  if (isArray2.check(node2)) {
27633
27633
  names = Object.keys(node2);
27634
27634
  } else if (isObject2.check(node2)) {
27635
- names = types11.getFieldNames(node2);
27635
+ names = types13.getFieldNames(node2);
27636
27636
  } else {
27637
27637
  return resultArray;
27638
27638
  }
@@ -27810,7 +27810,7 @@ var require_comments3 = __commonJS({
27810
27810
  function printComments(path3, print2) {
27811
27811
  var value2 = path3.getValue();
27812
27812
  var innerLines = print2(path3);
27813
- var comments = n2.Node.check(value2) && types11.getFieldValue(value2, "comments");
27813
+ var comments = n2.Node.check(value2) && types13.getFieldValue(value2, "comments");
27814
27814
  if (!comments || comments.length === 0) {
27815
27815
  return innerLines;
27816
27816
  }
@@ -27818,8 +27818,8 @@ var require_comments3 = __commonJS({
27818
27818
  var trailingParts = [innerLines];
27819
27819
  path3.each(function(commentPath) {
27820
27820
  var comment = commentPath.getValue();
27821
- var leading = types11.getFieldValue(comment, "leading");
27822
- var trailing = types11.getFieldValue(comment, "trailing");
27821
+ var leading = types13.getFieldValue(comment, "leading");
27822
+ var trailing = types13.getFieldValue(comment, "trailing");
27823
27823
  if (leading || trailing && !(n2.Statement.check(value2) || comment.type === "Block" || comment.type === "CommentBlock")) {
27824
27824
  leadingParts.push(printLeadingComment(commentPath, print2));
27825
27825
  } else if (trailing) {
@@ -27841,10 +27841,10 @@ var require_parser5 = __commonJS({
27841
27841
  exports.parse = void 0;
27842
27842
  var tslib_1 = require_tslib3();
27843
27843
  var assert_1 = tslib_1.__importDefault(__require("assert"));
27844
- var types11 = tslib_1.__importStar(require_main4());
27845
- var b = types11.builders;
27846
- var isObject2 = types11.builtInTypes.object;
27847
- var isArray2 = types11.builtInTypes.array;
27844
+ var types13 = tslib_1.__importStar(require_main4());
27845
+ var b = types13.builders;
27846
+ var isObject2 = types13.builtInTypes.object;
27847
+ var isArray2 = types13.builtInTypes.array;
27848
27848
  var options_1 = require_options3();
27849
27849
  var lines_1 = require_lines3();
27850
27850
  var comments_1 = require_comments3();
@@ -28030,11 +28030,11 @@ var require_fast_path3 = __commonJS({
28030
28030
  Object.defineProperty(exports, "__esModule", { value: true });
28031
28031
  var tslib_1 = require_tslib3();
28032
28032
  var assert_1 = tslib_1.__importDefault(__require("assert"));
28033
- var types11 = tslib_1.__importStar(require_main4());
28033
+ var types13 = tslib_1.__importStar(require_main4());
28034
28034
  var util2 = tslib_1.__importStar(require_util5());
28035
- var n2 = types11.namedTypes;
28036
- var isArray2 = types11.builtInTypes.array;
28037
- var isNumber2 = types11.builtInTypes.number;
28035
+ var n2 = types13.namedTypes;
28036
+ var isArray2 = types13.builtInTypes.array;
28037
+ var isNumber2 = types13.builtInTypes.number;
28038
28038
  var PRECEDENCE = {};
28039
28039
  [
28040
28040
  ["??"],
@@ -28063,7 +28063,7 @@ var require_fast_path3 = __commonJS({
28063
28063
  if (obj instanceof FastPath) {
28064
28064
  return obj.copy();
28065
28065
  }
28066
- if (obj instanceof types11.NodePath) {
28066
+ if (obj instanceof types13.NodePath) {
28067
28067
  var copy = Object.create(FastPath.prototype);
28068
28068
  var stack = [obj.value];
28069
28069
  for (var pp2 = void 0; pp2 = obj.parentPath; obj = pp2)
@@ -28374,7 +28374,7 @@ var require_fast_path3 = __commonJS({
28374
28374
  return node2.some(containsCallExpression);
28375
28375
  }
28376
28376
  if (n2.Node.check(node2)) {
28377
- return types11.someField(node2, function(_name, child) {
28377
+ return types13.someField(node2, function(_name, child) {
28378
28378
  return containsCallExpression(child);
28379
28379
  });
28380
28380
  }
@@ -28464,16 +28464,16 @@ var require_patcher3 = __commonJS({
28464
28464
  var tslib_1 = require_tslib3();
28465
28465
  var assert_1 = tslib_1.__importDefault(__require("assert"));
28466
28466
  var linesModule = tslib_1.__importStar(require_lines3());
28467
- var types11 = tslib_1.__importStar(require_main4());
28468
- var Printable = types11.namedTypes.Printable;
28469
- var Expression = types11.namedTypes.Expression;
28470
- var ReturnStatement = types11.namedTypes.ReturnStatement;
28471
- var SourceLocation3 = types11.namedTypes.SourceLocation;
28467
+ var types13 = tslib_1.__importStar(require_main4());
28468
+ var Printable = types13.namedTypes.Printable;
28469
+ var Expression = types13.namedTypes.Expression;
28470
+ var ReturnStatement = types13.namedTypes.ReturnStatement;
28471
+ var SourceLocation3 = types13.namedTypes.SourceLocation;
28472
28472
  var util_110 = require_util5();
28473
28473
  var fast_path_1 = tslib_1.__importDefault(require_fast_path3());
28474
- var isObject2 = types11.builtInTypes.object;
28475
- var isArray2 = types11.builtInTypes.array;
28476
- var isString3 = types11.builtInTypes.string;
28474
+ var isObject2 = types13.builtInTypes.object;
28475
+ var isArray2 = types13.builtInTypes.array;
28476
+ var isString3 = types13.builtInTypes.string;
28477
28477
  var riskyAdjoiningCharExp = /[0-9a-z_$]/i;
28478
28478
  var Patcher = function Patcher2(lines) {
28479
28479
  assert_1.default.ok(this instanceof Patcher2);
@@ -28743,8 +28743,8 @@ var require_patcher3 = __commonJS({
28743
28743
  if (k.charAt(0) === "_") {
28744
28744
  continue;
28745
28745
  }
28746
- newPath.stack.push(k, types11.getFieldValue(newNode, k));
28747
- oldPath.stack.push(k, types11.getFieldValue(oldNode, k));
28746
+ newPath.stack.push(k, types13.getFieldValue(newNode, k));
28747
+ oldPath.stack.push(k, types13.getFieldValue(oldNode, k));
28748
28748
  var canReprint = findAnyReprints(newPath, oldPath, reprints);
28749
28749
  newPath.stack.length -= 2;
28750
28750
  oldPath.stack.length -= 2;
@@ -28768,16 +28768,16 @@ var require_printer5 = __commonJS({
28768
28768
  exports.Printer = void 0;
28769
28769
  var tslib_1 = require_tslib3();
28770
28770
  var assert_1 = tslib_1.__importDefault(__require("assert"));
28771
- var types11 = tslib_1.__importStar(require_main4());
28771
+ var types13 = tslib_1.__importStar(require_main4());
28772
28772
  var comments_1 = require_comments3();
28773
28773
  var fast_path_1 = tslib_1.__importDefault(require_fast_path3());
28774
28774
  var lines_1 = require_lines3();
28775
28775
  var options_1 = require_options3();
28776
28776
  var patcher_1 = require_patcher3();
28777
28777
  var util2 = tslib_1.__importStar(require_util5());
28778
- var namedTypes = types11.namedTypes;
28779
- var isString3 = types11.builtInTypes.string;
28780
- var isObject2 = types11.builtInTypes.object;
28778
+ var namedTypes = types13.namedTypes;
28779
+ var isString3 = types13.builtInTypes.string;
28780
+ var isObject2 = types13.builtInTypes.object;
28781
28781
  var PrintResult = function PrintResult2(code, sourceMap) {
28782
28782
  assert_1.default.ok(this instanceof PrintResult2);
28783
28783
  isString3.assert(code);
@@ -28939,7 +28939,7 @@ var require_printer5 = __commonJS({
28939
28939
  case "OptionalMemberExpression": {
28940
28940
  parts.push(path3.call(print2, "object"));
28941
28941
  var property = path3.call(print2, "property");
28942
- var optional = types11.getFieldValue(n2, "optional");
28942
+ var optional = types13.getFieldValue(n2, "optional");
28943
28943
  if (n2.computed) {
28944
28944
  parts.push(optional ? "?.[" : "[", property, "]");
28945
28945
  } else {
@@ -29210,7 +29210,7 @@ var require_printer5 = __commonJS({
29210
29210
  if (n2.typeArguments) {
29211
29211
  parts.push(path3.call(print2, "typeArguments"));
29212
29212
  }
29213
- if (types11.getFieldValue(n2, "optional")) {
29213
+ if (types13.getFieldValue(n2, "optional")) {
29214
29214
  parts.push("?.");
29215
29215
  }
29216
29216
  parts.push(printArgumentsList(path3, options, print2));
@@ -30889,8 +30889,8 @@ var require_printer5 = __commonJS({
30889
30889
  });
30890
30890
  }
30891
30891
  function getPossibleRaw(node2) {
30892
- var value2 = types11.getFieldValue(node2, "value");
30893
- var extra = types11.getFieldValue(node2, "extra");
30892
+ var value2 = types13.getFieldValue(node2, "value");
30893
+ var extra = types13.getFieldValue(node2, "extra");
30894
30894
  if (extra && typeof extra.raw === "string" && value2 == extra.rawValue) {
30895
30895
  return extra.raw;
30896
30896
  }
@@ -30938,8 +30938,8 @@ var require_main5 = __commonJS({
30938
30938
  exports.run = exports.prettyPrint = exports.print = exports.visit = exports.types = exports.parse = void 0;
30939
30939
  var tslib_1 = require_tslib3();
30940
30940
  var fs_1 = tslib_1.__importDefault(__require("fs"));
30941
- var types11 = tslib_1.__importStar(require_main4());
30942
- exports.types = types11;
30941
+ var types13 = tslib_1.__importStar(require_main4());
30942
+ exports.types = types13;
30943
30943
  var parser_1 = require_parser5();
30944
30944
  Object.defineProperty(exports, "parse", { enumerable: true, get: function() {
30945
30945
  return parser_1.parse;
@@ -30953,10 +30953,10 @@ var require_main5 = __commonJS({
30953
30953
  return new printer_1.Printer(options).print(node2);
30954
30954
  }
30955
30955
  exports.print = print2;
30956
- function prettyPrint(node2, options) {
30956
+ function prettyPrint2(node2, options) {
30957
30957
  return new printer_1.Printer(options).printGenerically(node2);
30958
30958
  }
30959
- exports.prettyPrint = prettyPrint;
30959
+ exports.prettyPrint = prettyPrint2;
30960
30960
  function run(transformer, options) {
30961
30961
  return runFile(process.argv[2], transformer, options);
30962
30962
  }
@@ -43492,8 +43492,8 @@ var require_printSchema = __commonJS2({
43492
43492
  if (scalar.specifiedByUrl == null) {
43493
43493
  return "";
43494
43494
  }
43495
- var url = scalar.specifiedByUrl;
43496
- var urlAST = (0, _astFromValue.astFromValue)(url, _scalars.GraphQLString);
43495
+ var url2 = scalar.specifiedByUrl;
43496
+ var urlAST = (0, _astFromValue.astFromValue)(url2, _scalars.GraphQLString);
43497
43497
  urlAST || (0, _invariant.default)(0, "Unexpected null value returned from `astFromValue` for specifiedByUrl");
43498
43498
  return " @specifiedBy(url: " + (0, _printer.print)(urlAST) + ")";
43499
43499
  }
@@ -51884,11 +51884,11 @@ var require_volume = __commonJS2({
51884
51884
  var getStatOptsAndCb = function(options, callback) {
51885
51885
  return typeof options === "function" ? [getStatOptions(), options] : [getStatOptions(options), validateCallback(callback)];
51886
51886
  };
51887
- function getPathFromURLPosix(url) {
51888
- if (url.hostname !== "") {
51887
+ function getPathFromURLPosix(url2) {
51888
+ if (url2.hostname !== "") {
51889
51889
  throw new errors.TypeError("ERR_INVALID_FILE_URL_HOST", process_1.default.platform);
51890
51890
  }
51891
- var pathname = url.pathname;
51891
+ var pathname = url2.pathname;
51892
51892
  for (var n2 = 0; n2 < pathname.length; n2++) {
51893
51893
  if (pathname[n2] === "%") {
51894
51894
  var third = pathname.codePointAt(n2 + 2) | 32;
@@ -76583,34 +76583,34 @@ var require_util = __commonJS2({
76583
76583
  }
76584
76584
  exports.urlParse = urlParse;
76585
76585
  function urlGenerate(aParsedUrl) {
76586
- var url = "";
76586
+ var url2 = "";
76587
76587
  if (aParsedUrl.scheme) {
76588
- url += aParsedUrl.scheme + ":";
76588
+ url2 += aParsedUrl.scheme + ":";
76589
76589
  }
76590
- url += "//";
76590
+ url2 += "//";
76591
76591
  if (aParsedUrl.auth) {
76592
- url += aParsedUrl.auth + "@";
76592
+ url2 += aParsedUrl.auth + "@";
76593
76593
  }
76594
76594
  if (aParsedUrl.host) {
76595
- url += aParsedUrl.host;
76595
+ url2 += aParsedUrl.host;
76596
76596
  }
76597
76597
  if (aParsedUrl.port) {
76598
- url += ":" + aParsedUrl.port;
76598
+ url2 += ":" + aParsedUrl.port;
76599
76599
  }
76600
76600
  if (aParsedUrl.path) {
76601
- url += aParsedUrl.path;
76601
+ url2 += aParsedUrl.path;
76602
76602
  }
76603
- return url;
76603
+ return url2;
76604
76604
  }
76605
76605
  exports.urlGenerate = urlGenerate;
76606
76606
  function normalize(aPath) {
76607
76607
  var path22 = aPath;
76608
- var url = urlParse(aPath);
76609
- if (url) {
76610
- if (!url.path) {
76608
+ var url2 = urlParse(aPath);
76609
+ if (url2) {
76610
+ if (!url2.path) {
76611
76611
  return aPath;
76612
76612
  }
76613
- path22 = url.path;
76613
+ path22 = url2.path;
76614
76614
  }
76615
76615
  var isAbsolute22 = exports.isAbsolute(path22);
76616
76616
  var parts = path22.split(/\/+/);
@@ -76634,9 +76634,9 @@ var require_util = __commonJS2({
76634
76634
  if (path22 === "") {
76635
76635
  path22 = isAbsolute22 ? "/" : ".";
76636
76636
  }
76637
- if (url) {
76638
- url.path = path22;
76639
- return urlGenerate(url);
76637
+ if (url2) {
76638
+ url2.path = path22;
76639
+ return urlGenerate(url2);
76640
76640
  }
76641
76641
  return path22;
76642
76642
  }
@@ -77702,13 +77702,13 @@ var require_source_map_consumer = __commonJS2({
77702
77702
  if (this.sourceRoot != null) {
77703
77703
  relativeSource = util2.relative(this.sourceRoot, relativeSource);
77704
77704
  }
77705
- var url;
77706
- if (this.sourceRoot != null && (url = util2.urlParse(this.sourceRoot))) {
77705
+ var url2;
77706
+ if (this.sourceRoot != null && (url2 = util2.urlParse(this.sourceRoot))) {
77707
77707
  var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
77708
- if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
77708
+ if (url2.scheme == "file" && this._sources.has(fileUriAbsPath)) {
77709
77709
  return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
77710
77710
  }
77711
- if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
77711
+ if ((!url2.path || url2.path == "/") && this._sources.has("/" + relativeSource)) {
77712
77712
  return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
77713
77713
  }
77714
77714
  }
@@ -88846,10 +88846,10 @@ var require_main2 = __commonJS2({
88846
88846
  return new printer_1.Printer(options).print(node2);
88847
88847
  }
88848
88848
  exports.print = print5;
88849
- function prettyPrint(node2, options) {
88849
+ function prettyPrint2(node2, options) {
88850
88850
  return new printer_1.Printer(options).printGenerically(node2);
88851
88851
  }
88852
- exports.prettyPrint = prettyPrint;
88852
+ exports.prettyPrint = prettyPrint2;
88853
88853
  function run(transformer, options) {
88854
88854
  return runFile(process.argv[2], transformer, options);
88855
88855
  }
@@ -89671,6 +89671,44 @@ var ListCollection = class {
89671
89671
  }
89672
89672
  }
89673
89673
  };
89674
+ var SchemaManager = class {
89675
+ cache;
89676
+ fieldTypes = {};
89677
+ constructor(cache) {
89678
+ this.cache = cache;
89679
+ }
89680
+ setFieldType({
89681
+ parent,
89682
+ key,
89683
+ type,
89684
+ nullable = false,
89685
+ link
89686
+ }) {
89687
+ let parensIndex = key.indexOf("(");
89688
+ if (parensIndex !== -1) {
89689
+ key = key.substring(0, parensIndex);
89690
+ }
89691
+ if (parent === rootID) {
89692
+ parent = "Query";
89693
+ } else if (parent.includes(":")) {
89694
+ parent = parent.substring(0, parent.indexOf(":"));
89695
+ }
89696
+ if (!this.fieldTypes[parent]) {
89697
+ this.fieldTypes[parent] = {};
89698
+ }
89699
+ this.fieldTypes[parent][key] = {
89700
+ type,
89701
+ nullable,
89702
+ link: !!link
89703
+ };
89704
+ }
89705
+ fieldType(type, field) {
89706
+ return this.fieldTypes[type]?.[field] || null;
89707
+ }
89708
+ get config() {
89709
+ return this.cache._internal_unstable.config;
89710
+ }
89711
+ };
89674
89712
  var InMemoryStorage = class {
89675
89713
  data;
89676
89714
  idCount = 0;
@@ -90233,7 +90271,7 @@ var InMemorySubscriptions = class {
90233
90271
  }
90234
90272
  }
90235
90273
  };
90236
- var Cache2 = class {
90274
+ var Cache3 = class {
90237
90275
  _internal_unstable;
90238
90276
  constructor(config4) {
90239
90277
  this._internal_unstable = new CacheInternal({
@@ -90241,7 +90279,8 @@ var Cache2 = class {
90241
90279
  storage: new InMemoryStorage(),
90242
90280
  subscriptions: new InMemorySubscriptions(this),
90243
90281
  lists: new ListManager(this, rootID),
90244
- lifetimes: new GarbageCollector(this)
90282
+ lifetimes: new GarbageCollector(this),
90283
+ schema: new SchemaManager(this)
90245
90284
  });
90246
90285
  if (config4) {
90247
90286
  this.setConfig(defaultConfigValues(config4));
@@ -90327,18 +90366,21 @@ var CacheInternal = class {
90327
90366
  lists;
90328
90367
  cache;
90329
90368
  lifetimes;
90369
+ schema;
90330
90370
  constructor({
90331
90371
  storage,
90332
90372
  subscriptions,
90333
90373
  lists,
90334
90374
  cache,
90335
- lifetimes
90375
+ lifetimes,
90376
+ schema
90336
90377
  }) {
90337
90378
  this.storage = storage;
90338
90379
  this.subscriptions = subscriptions;
90339
90380
  this.lists = lists;
90340
90381
  this.cache = cache;
90341
90382
  this.lifetimes = lifetimes;
90383
+ this.schema = schema;
90342
90384
  this._disabled = typeof globalThis.window === "undefined";
90343
90385
  try {
90344
90386
  if (process.env.HOUDINI_TEST === "true") {
@@ -90354,7 +90396,6 @@ var CacheInternal = class {
90354
90396
  data: data2,
90355
90397
  selection,
90356
90398
  variables = {},
90357
- root = rootID,
90358
90399
  parent = rootID,
90359
90400
  applyUpdates = false,
90360
90401
  layer,
@@ -90377,9 +90418,17 @@ var CacheInternal = class {
90377
90418
  selection: fieldSelection,
90378
90419
  operations,
90379
90420
  abstract: isAbstract,
90380
- update
90421
+ update,
90422
+ nullable
90381
90423
  } = targetSelection[field];
90382
90424
  const key = evaluateKey(keyRaw, variables);
90425
+ this.schema.setFieldType({
90426
+ parent,
90427
+ key: keyRaw,
90428
+ type: linkedType,
90429
+ nullable,
90430
+ link: !!fieldSelection
90431
+ });
90383
90432
  const currentSubscribers = this.subscriptions.get(parent, key);
90384
90433
  const { value: previousValue, displayLayers } = this.storage.get(parent, key);
90385
90434
  const displayLayer = layer.isDisplayLayer(displayLayers);
@@ -90448,7 +90497,6 @@ var CacheInternal = class {
90448
90497
  }
90449
90498
  if (linkedID) {
90450
90499
  this.writeSelection({
90451
- root,
90452
90500
  selection: fieldSelection,
90453
90501
  parent: linkedID,
90454
90502
  data: value2,
@@ -90837,7 +90885,7 @@ var CacheInternal = class {
90837
90885
  }
90838
90886
  };
90839
90887
  var rootID = "_ROOT_";
90840
- var cache_default = new Cache2();
90888
+ var cache_default = new Cache3();
90841
90889
  var ArtifactKind = /* @__PURE__ */ ((ArtifactKind2) => {
90842
90890
  ArtifactKind2["Query"] = "HoudiniQuery";
90843
90891
  ArtifactKind2["Subscription"] = "HoudiniSubscription";
@@ -91019,6 +91067,7 @@ async function writeFile(filepath, data2) {
91019
91067
  return;
91020
91068
  }
91021
91069
  if (houdini_mode.is_testing) {
91070
+ import_memfs.fs.mkdirpSync(dirname(filepath));
91022
91071
  return import_memfs.fs.writeFileSync(filepath, data2);
91023
91072
  }
91024
91073
  return await fs.writeFile(filepath, data2, "utf8");
@@ -91577,13 +91626,13 @@ var Response2 = class extends Body {
91577
91626
  highWaterMark: this.highWaterMark
91578
91627
  });
91579
91628
  }
91580
- static redirect(url, status = 302) {
91629
+ static redirect(url2, status = 302) {
91581
91630
  if (!isRedirect(status)) {
91582
91631
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
91583
91632
  }
91584
91633
  return new Response2(null, {
91585
91634
  headers: {
91586
- location: new URL(url).toString()
91635
+ location: new URL(url2).toString()
91587
91636
  },
91588
91637
  status
91589
91638
  });
@@ -91806,6 +91855,33 @@ async function parseJS(str) {
91806
91855
  }
91807
91856
  var recast = __toESM2(require_main2(), 1);
91808
91857
  var AST = recast.types.builders;
91858
+ function ensureImports({
91859
+ config: config4,
91860
+ body,
91861
+ import: importID,
91862
+ sourceModule,
91863
+ importKind
91864
+ }) {
91865
+ const idList = Array.isArray(importID) ? importID : [importID];
91866
+ const toImport = idList.filter(
91867
+ (identifier) => !body.find(
91868
+ (statement) => statement.type === "ImportDeclaration" && statement.specifiers.find(
91869
+ (importSpecifier) => importSpecifier.type === "ImportSpecifier" && importSpecifier.imported.type === "Identifier" && importSpecifier.imported.name === identifier && importSpecifier.local.name === identifier || importSpecifier.type === "ImportDefaultSpecifier" && importSpecifier.local.type === "Identifier" && importSpecifier.local.name === identifier
91870
+ )
91871
+ )
91872
+ );
91873
+ if (toImport.length > 0) {
91874
+ body.unshift({
91875
+ type: "ImportDeclaration",
91876
+ source: AST.stringLiteral(sourceModule),
91877
+ specifiers: toImport.map(
91878
+ (identifier) => !Array.isArray(importID) ? AST.importDefaultSpecifier(AST.identifier(identifier)) : AST.importSpecifier(AST.identifier(identifier), AST.identifier(identifier))
91879
+ ),
91880
+ importKind
91881
+ });
91882
+ }
91883
+ return Array.isArray(importID) ? toImport : toImport[0];
91884
+ }
91809
91885
  async function cleanupFiles(pathFolder, listOfObj) {
91810
91886
  const listFile = await readdir(pathFolder);
91811
91887
  const storeListFile = listFile.filter((c2) => c2.endsWith(".js") && c2 !== "index.js").map((c2) => c2.slice(0, -3)).sort();
@@ -91928,53 +92004,79 @@ var graphql4 = __toESM2(require_graphql2(), 1);
91928
92004
  async function find_graphql(config4, parsedScript, walker) {
91929
92005
  await asyncWalk(parsedScript, {
91930
92006
  async enter(node2, parent) {
91931
- if (node2.type === "TaggedTemplateExpression" && node2.tag.name === "graphql") {
92007
+ if (node2.type !== "TaggedTemplateExpression" && node2.type !== "CallExpression") {
92008
+ return;
92009
+ }
92010
+ let documentString;
92011
+ if (node2.type === "TaggedTemplateExpression") {
91932
92012
  const expr = node2;
91933
- const tagContent = expr.quasi.quasis[0].value.raw;
91934
- const parsedTag = graphql4.parse(tagContent);
91935
- if (walker.where && !walker.where(parsedTag)) {
92013
+ if (expr.tag.type !== "Identifier" || expr.tag.name !== "graphql") {
91936
92014
  return;
91937
92015
  }
91938
- const definition = config4.extractDefinition(parsedTag);
91939
- const name2 = definition.name?.value;
91940
- if (!name2) {
91941
- throw new Error("Could not find definition name");
92016
+ documentString = expr.quasi.quasis[0].value.raw;
92017
+ } else if (node2.type === "CallExpression") {
92018
+ const expr = node2;
92019
+ if (expr.callee.type !== "Identifier" || expr.callee.name !== "graphql" || expr.arguments.length !== 1) {
92020
+ return;
91942
92021
  }
91943
- let kind;
91944
- if (definition.kind === "FragmentDefinition") {
91945
- kind = CompiledFragmentKind;
92022
+ const argument = expr.arguments[0];
92023
+ if (argument.type === "TemplateLiteral") {
92024
+ documentString = argument.quasis[0].value.raw;
92025
+ } else if (argument.type === "StringLiteral") {
92026
+ documentString = argument.value;
91946
92027
  } else {
91947
- if (definition.operation === "query") {
91948
- kind = CompiledQueryKind;
91949
- } else if (definition.operation === "mutation") {
91950
- kind = CompiledMutationKind;
91951
- } else {
91952
- kind = CompiledSubscriptionKind;
91953
- }
92028
+ return;
92029
+ }
92030
+ } else {
92031
+ return;
92032
+ }
92033
+ const parsedTag = graphql4.parse(documentString);
92034
+ if (walker.where && !walker.where(parsedTag)) {
92035
+ return;
92036
+ }
92037
+ const definition = config4.extractDefinition(parsedTag);
92038
+ const name2 = definition.name?.value;
92039
+ if (!name2) {
92040
+ throw new Error("Could not find definition name");
92041
+ }
92042
+ let kind;
92043
+ if (definition.kind === "FragmentDefinition") {
92044
+ kind = CompiledFragmentKind;
92045
+ } else {
92046
+ if (definition.operation === "query") {
92047
+ kind = CompiledQueryKind;
92048
+ } else if (definition.operation === "mutation") {
92049
+ kind = CompiledMutationKind;
92050
+ } else {
92051
+ kind = CompiledSubscriptionKind;
91954
92052
  }
91955
- walker.dependency?.(config4.artifactPath(parsedTag));
91956
- await walker.tag({
91957
- parsedDocument: parsedTag,
91958
- node: {
91959
- ...node2,
91960
- ...this,
91961
- remove: this.remove,
91962
- replaceWith: this.replace
91963
- },
91964
- artifact: {
91965
- name: name2,
91966
- kind
91967
- },
91968
- parent,
91969
- tagContent
91970
- });
91971
92053
  }
92054
+ walker.dependency?.(config4.artifactPath(parsedTag));
92055
+ await walker.tag({
92056
+ parsedDocument: parsedTag,
92057
+ node: {
92058
+ ...node2,
92059
+ ...this,
92060
+ remove: this.remove,
92061
+ replaceWith: this.replace
92062
+ },
92063
+ artifact: {
92064
+ name: name2,
92065
+ kind
92066
+ },
92067
+ parent,
92068
+ tagContent: documentString
92069
+ });
91972
92070
  }
91973
92071
  });
91974
92072
  }
91975
92073
 
92074
+ // src/plugin/index.ts
92075
+ import * as url from "url";
92076
+ import { loadEnv } from "vite";
92077
+
91976
92078
  // src/plugin/kit.ts
91977
- var graphql28 = __toESM(require_graphql4(), 1);
92079
+ var graphql31 = __toESM(require_graphql4(), 1);
91978
92080
 
91979
92081
  // ../houdini/build/vite-esm/index.js
91980
92082
  import { createRequire as conflict_free2 } from "module";
@@ -96611,7 +96713,7 @@ var require_kinds3 = __commonJS3({
96611
96713
  value: true
96612
96714
  });
96613
96715
  exports.Kind = void 0;
96614
- var Kind29 = Object.freeze({
96716
+ var Kind30 = Object.freeze({
96615
96717
  NAME: "Name",
96616
96718
  DOCUMENT: "Document",
96617
96719
  OPERATION_DEFINITION: "OperationDefinition",
@@ -96656,7 +96758,7 @@ var require_kinds3 = __commonJS3({
96656
96758
  ENUM_TYPE_EXTENSION: "EnumTypeExtension",
96657
96759
  INPUT_OBJECT_TYPE_EXTENSION: "InputObjectTypeExtension"
96658
96760
  });
96659
- exports.Kind = Kind29;
96761
+ exports.Kind = Kind30;
96660
96762
  }
96661
96763
  });
96662
96764
  var require_invariant3 = __commonJS3({
@@ -98028,12 +98130,12 @@ var require_parser4 = __commonJS3({
98028
98130
  return [];
98029
98131
  }
98030
98132
  if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {
98031
- var types15 = [];
98133
+ var types17 = [];
98032
98134
  this.expectOptionalToken(_tokenKind.TokenKind.AMP);
98033
98135
  do {
98034
- types15.push(this.parseNamedType());
98136
+ types17.push(this.parseNamedType());
98035
98137
  } while (this.expectOptionalToken(_tokenKind.TokenKind.AMP) || this.peek(_tokenKind.TokenKind.NAME));
98036
- return types15;
98138
+ return types17;
98037
98139
  }
98038
98140
  return this.delimitedMany(_tokenKind.TokenKind.AMP, this.parseNamedType);
98039
98141
  };
@@ -98112,13 +98214,13 @@ var require_parser4 = __commonJS3({
98112
98214
  this.expectKeyword("union");
98113
98215
  var name2 = this.parseName();
98114
98216
  var directives = this.parseDirectives(true);
98115
- var types15 = this.parseUnionMemberTypes();
98217
+ var types17 = this.parseUnionMemberTypes();
98116
98218
  return {
98117
98219
  kind: _kinds.Kind.UNION_TYPE_DEFINITION,
98118
98220
  description,
98119
98221
  name: name2,
98120
98222
  directives,
98121
- types: types15,
98223
+ types: types17,
98122
98224
  loc: this.loc(start)
98123
98225
  };
98124
98226
  };
@@ -98276,15 +98378,15 @@ var require_parser4 = __commonJS3({
98276
98378
  this.expectKeyword("union");
98277
98379
  var name2 = this.parseName();
98278
98380
  var directives = this.parseDirectives(true);
98279
- var types15 = this.parseUnionMemberTypes();
98280
- if (directives.length === 0 && types15.length === 0) {
98381
+ var types17 = this.parseUnionMemberTypes();
98382
+ if (directives.length === 0 && types17.length === 0) {
98281
98383
  throw this.unexpected();
98282
98384
  }
98283
98385
  return {
98284
98386
  kind: _kinds.Kind.UNION_TYPE_EXTENSION,
98285
98387
  name: name2,
98286
98388
  directives,
98287
- types: types15,
98389
+ types: types17,
98288
98390
  loc: this.loc(start)
98289
98391
  };
98290
98392
  };
@@ -98452,7 +98554,7 @@ var require_visitor3 = __commonJS3({
98452
98554
  Object.defineProperty(exports, "__esModule", {
98453
98555
  value: true
98454
98556
  });
98455
- exports.visit = visit12;
98557
+ exports.visit = visit13;
98456
98558
  exports.visitInParallel = visitInParallel;
98457
98559
  exports.getVisitFn = getVisitFn;
98458
98560
  exports.BREAK = exports.QueryDocumentKeys = void 0;
@@ -98515,7 +98617,7 @@ var require_visitor3 = __commonJS3({
98515
98617
  exports.QueryDocumentKeys = QueryDocumentKeys;
98516
98618
  var BREAK = Object.freeze({});
98517
98619
  exports.BREAK = BREAK;
98518
- function visit12(root, visitor) {
98620
+ function visit13(root, visitor) {
98519
98621
  var visitorKeys = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QueryDocumentKeys;
98520
98622
  var stack = void 0;
98521
98623
  var inArray = Array.isArray(root);
@@ -99232,8 +99334,8 @@ var require_printer4 = __commonJS3({
99232
99334
  return join32(["interface", name2, wrap22("implements ", join32(interfaces, " & ")), join32(directives, " "), block22(fields)], " ");
99233
99335
  }),
99234
99336
  UnionTypeDefinition: addDescription22(function(_ref27) {
99235
- var name2 = _ref27.name, directives = _ref27.directives, types15 = _ref27.types;
99236
- return join32(["union", name2, join32(directives, " "), types15 && types15.length !== 0 ? "= " + join32(types15, " | ") : ""], " ");
99337
+ var name2 = _ref27.name, directives = _ref27.directives, types17 = _ref27.types;
99338
+ return join32(["union", name2, join32(directives, " "), types17 && types17.length !== 0 ? "= " + join32(types17, " | ") : ""], " ");
99237
99339
  }),
99238
99340
  EnumTypeDefinition: addDescription22(function(_ref28) {
99239
99341
  var name2 = _ref28.name, directives = _ref28.directives, values = _ref28.values;
@@ -99268,8 +99370,8 @@ var require_printer4 = __commonJS3({
99268
99370
  return join32(["extend interface", name2, wrap22("implements ", join32(interfaces, " & ")), join32(directives, " "), block22(fields)], " ");
99269
99371
  },
99270
99372
  UnionTypeExtension: function UnionTypeExtension(_ref36) {
99271
- var name2 = _ref36.name, directives = _ref36.directives, types15 = _ref36.types;
99272
- return join32(["extend union", name2, join32(directives, " "), types15 && types15.length !== 0 ? "= " + join32(types15, " | ") : ""], " ");
99373
+ var name2 = _ref36.name, directives = _ref36.directives, types17 = _ref36.types;
99374
+ return join32(["extend union", name2, join32(directives, " "), types17 && types17.length !== 0 ? "= " + join32(types17, " | ") : ""], " ");
99273
99375
  },
99274
99376
  EnumTypeExtension: function EnumTypeExtension(_ref37) {
99275
99377
  var name2 = _ref37.name, directives = _ref37.directives, values = _ref37.values;
@@ -99361,17 +99463,17 @@ var require_definition3 = __commonJS3({
99361
99463
  });
99362
99464
  exports.isType = isType;
99363
99465
  exports.assertType = assertType;
99364
- exports.isScalarType = isScalarType12;
99466
+ exports.isScalarType = isScalarType13;
99365
99467
  exports.assertScalarType = assertScalarType;
99366
- exports.isObjectType = isObjectType11;
99468
+ exports.isObjectType = isObjectType12;
99367
99469
  exports.assertObjectType = assertObjectType;
99368
99470
  exports.isInterfaceType = isInterfaceType12;
99369
99471
  exports.assertInterfaceType = assertInterfaceType;
99370
99472
  exports.isUnionType = isUnionType13;
99371
99473
  exports.assertUnionType = assertUnionType;
99372
- exports.isEnumType = isEnumType9;
99474
+ exports.isEnumType = isEnumType10;
99373
99475
  exports.assertEnumType = assertEnumType;
99374
- exports.isInputObjectType = isInputObjectType7;
99476
+ exports.isInputObjectType = isInputObjectType8;
99375
99477
  exports.assertInputObjectType = assertInputObjectType;
99376
99478
  exports.isListType = isListType8;
99377
99479
  exports.assertListType = assertListType;
@@ -99385,7 +99487,7 @@ var require_definition3 = __commonJS3({
99385
99487
  exports.assertLeafType = assertLeafType;
99386
99488
  exports.isCompositeType = isCompositeType;
99387
99489
  exports.assertCompositeType = assertCompositeType;
99388
- exports.isAbstractType = isAbstractType2;
99490
+ exports.isAbstractType = isAbstractType3;
99389
99491
  exports.assertAbstractType = assertAbstractType;
99390
99492
  exports.GraphQLList = GraphQLList6;
99391
99493
  exports.GraphQLNonNull = GraphQLNonNull6;
@@ -99440,7 +99542,7 @@ var require_definition3 = __commonJS3({
99440
99542
  return Constructor;
99441
99543
  }
99442
99544
  function isType(type) {
99443
- return isScalarType12(type) || isObjectType11(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType9(type) || isInputObjectType7(type) || isListType8(type) || isNonNullType10(type);
99545
+ return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType10(type) || isInputObjectType8(type) || isListType8(type) || isNonNullType10(type);
99444
99546
  }
99445
99547
  function assertType(type) {
99446
99548
  if (!isType(type)) {
@@ -99448,20 +99550,20 @@ var require_definition3 = __commonJS3({
99448
99550
  }
99449
99551
  return type;
99450
99552
  }
99451
- function isScalarType12(type) {
99553
+ function isScalarType13(type) {
99452
99554
  return (0, _instanceOf.default)(type, GraphQLScalarType4);
99453
99555
  }
99454
99556
  function assertScalarType(type) {
99455
- if (!isScalarType12(type)) {
99557
+ if (!isScalarType13(type)) {
99456
99558
  throw new Error("Expected ".concat((0, _inspect.default)(type), " to be a GraphQL Scalar type."));
99457
99559
  }
99458
99560
  return type;
99459
99561
  }
99460
- function isObjectType11(type) {
99562
+ function isObjectType12(type) {
99461
99563
  return (0, _instanceOf.default)(type, GraphQLObjectType6);
99462
99564
  }
99463
99565
  function assertObjectType(type) {
99464
- if (!isObjectType11(type)) {
99566
+ if (!isObjectType12(type)) {
99465
99567
  throw new Error("Expected ".concat((0, _inspect.default)(type), " to be a GraphQL Object type."));
99466
99568
  }
99467
99569
  return type;
@@ -99484,20 +99586,20 @@ var require_definition3 = __commonJS3({
99484
99586
  }
99485
99587
  return type;
99486
99588
  }
99487
- function isEnumType9(type) {
99589
+ function isEnumType10(type) {
99488
99590
  return (0, _instanceOf.default)(type, GraphQLEnumType4);
99489
99591
  }
99490
99592
  function assertEnumType(type) {
99491
- if (!isEnumType9(type)) {
99593
+ if (!isEnumType10(type)) {
99492
99594
  throw new Error("Expected ".concat((0, _inspect.default)(type), " to be a GraphQL Enum type."));
99493
99595
  }
99494
99596
  return type;
99495
99597
  }
99496
- function isInputObjectType7(type) {
99598
+ function isInputObjectType8(type) {
99497
99599
  return (0, _instanceOf.default)(type, GraphQLInputObjectType4);
99498
99600
  }
99499
99601
  function assertInputObjectType(type) {
99500
- if (!isInputObjectType7(type)) {
99602
+ if (!isInputObjectType8(type)) {
99501
99603
  throw new Error("Expected ".concat((0, _inspect.default)(type), " to be a GraphQL Input Object type."));
99502
99604
  }
99503
99605
  return type;
@@ -99521,7 +99623,7 @@ var require_definition3 = __commonJS3({
99521
99623
  return type;
99522
99624
  }
99523
99625
  function isInputType(type) {
99524
- return isScalarType12(type) || isEnumType9(type) || isInputObjectType7(type) || isWrappingType(type) && isInputType(type.ofType);
99626
+ return isScalarType13(type) || isEnumType10(type) || isInputObjectType8(type) || isWrappingType(type) && isInputType(type.ofType);
99525
99627
  }
99526
99628
  function assertInputType(type) {
99527
99629
  if (!isInputType(type)) {
@@ -99530,7 +99632,7 @@ var require_definition3 = __commonJS3({
99530
99632
  return type;
99531
99633
  }
99532
99634
  function isOutputType(type) {
99533
- return isScalarType12(type) || isObjectType11(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType9(type) || isWrappingType(type) && isOutputType(type.ofType);
99635
+ return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType10(type) || isWrappingType(type) && isOutputType(type.ofType);
99534
99636
  }
99535
99637
  function assertOutputType(type) {
99536
99638
  if (!isOutputType(type)) {
@@ -99539,7 +99641,7 @@ var require_definition3 = __commonJS3({
99539
99641
  return type;
99540
99642
  }
99541
99643
  function isLeafType4(type) {
99542
- return isScalarType12(type) || isEnumType9(type);
99644
+ return isScalarType13(type) || isEnumType10(type);
99543
99645
  }
99544
99646
  function assertLeafType(type) {
99545
99647
  if (!isLeafType4(type)) {
@@ -99548,7 +99650,7 @@ var require_definition3 = __commonJS3({
99548
99650
  return type;
99549
99651
  }
99550
99652
  function isCompositeType(type) {
99551
- return isObjectType11(type) || isInterfaceType12(type) || isUnionType13(type);
99653
+ return isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type);
99552
99654
  }
99553
99655
  function assertCompositeType(type) {
99554
99656
  if (!isCompositeType(type)) {
@@ -99556,11 +99658,11 @@ var require_definition3 = __commonJS3({
99556
99658
  }
99557
99659
  return type;
99558
99660
  }
99559
- function isAbstractType2(type) {
99661
+ function isAbstractType3(type) {
99560
99662
  return isInterfaceType12(type) || isUnionType13(type);
99561
99663
  }
99562
99664
  function assertAbstractType(type) {
99563
- if (!isAbstractType2(type)) {
99665
+ if (!isAbstractType3(type)) {
99564
99666
  throw new Error("Expected ".concat((0, _inspect.default)(type), " to be a GraphQL abstract type."));
99565
99667
  }
99566
99668
  return type;
@@ -99627,7 +99729,7 @@ var require_definition3 = __commonJS3({
99627
99729
  }
99628
99730
  }
99629
99731
  function isNamedType4(type) {
99630
- return isScalarType12(type) || isObjectType11(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType9(type) || isInputObjectType7(type);
99732
+ return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType10(type) || isInputObjectType8(type);
99631
99733
  }
99632
99734
  function assertNamedType(type) {
99633
99735
  if (!isNamedType4(type)) {
@@ -99936,9 +100038,9 @@ var require_definition3 = __commonJS3({
99936
100038
  exports.GraphQLUnionType = GraphQLUnionType3;
99937
100039
  (0, _defineInspect.default)(GraphQLUnionType3);
99938
100040
  function defineTypes(config4) {
99939
- var types15 = resolveThunk(config4.types);
99940
- Array.isArray(types15) || (0, _devAssert.default)(0, "Must provide Array of types or a function which returns such an array for Union ".concat(config4.name, "."));
99941
- return types15;
100041
+ var types17 = resolveThunk(config4.types);
100042
+ Array.isArray(types17) || (0, _devAssert.default)(0, "Must provide Array of types or a function which returns such an array for Union ".concat(config4.name, "."));
100043
+ return types17;
99942
100044
  }
99943
100045
  var GraphQLEnumType4 = /* @__PURE__ */ function() {
99944
100046
  function GraphQLEnumType5(config4) {
@@ -105654,7 +105756,7 @@ var require_graphql5 = __commonJS3({
105654
105756
  Object.defineProperty(exports, "__esModule", {
105655
105757
  value: true
105656
105758
  });
105657
- exports.graphql = graphql282;
105759
+ exports.graphql = graphql302;
105658
105760
  exports.graphqlSync = graphqlSync;
105659
105761
  var _isPromise = _interopRequireDefault(require_isPromise3());
105660
105762
  var _parser = require_parser4();
@@ -105664,7 +105766,7 @@ var require_graphql5 = __commonJS3({
105664
105766
  function _interopRequireDefault(obj) {
105665
105767
  return obj && obj.__esModule ? obj : { default: obj };
105666
105768
  }
105667
- function graphql282(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver) {
105769
+ function graphql302(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver) {
105668
105770
  var _arguments = arguments;
105669
105771
  return new Promise(function(resolve22) {
105670
105772
  return resolve22(
@@ -107421,7 +107523,7 @@ var require_buildClientSchema3 = __commonJS3({
107421
107523
  return new _definition.GraphQLUnionType({
107422
107524
  name: unionIntrospection.name,
107423
107525
  description: unionIntrospection.description,
107424
- types: function types15() {
107526
+ types: function types17() {
107425
107527
  return unionIntrospection.possibleTypes.map(getObjectType);
107426
107528
  }
107427
107529
  });
@@ -107764,7 +107866,7 @@ var require_extendSchema3 = __commonJS3({
107764
107866
  var config4 = type.toConfig();
107765
107867
  var extensions = (_typeExtensionsMap$co5 = typeExtensionsMap[config4.name]) !== null && _typeExtensionsMap$co5 !== void 0 ? _typeExtensionsMap$co5 : [];
107766
107868
  return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, config4), {}, {
107767
- types: function types15() {
107869
+ types: function types17() {
107768
107870
  return [].concat(type.getTypes().map(replaceNamedType), buildUnionTypes(extensions));
107769
107871
  },
107770
107872
  extensionASTNodes: config4.extensionASTNodes.concat(extensions)
@@ -107912,17 +108014,17 @@ var require_extendSchema3 = __commonJS3({
107912
108014
  return interfaces;
107913
108015
  }
107914
108016
  function buildUnionTypes(nodes) {
107915
- var types15 = [];
108017
+ var types17 = [];
107916
108018
  for (var _i32 = 0; _i32 < nodes.length; _i32++) {
107917
108019
  var _node$types;
107918
108020
  var node2 = nodes[_i32];
107919
108021
  var typeNodes = (_node$types = node2.types) !== null && _node$types !== void 0 ? _node$types : [];
107920
108022
  for (var _i34 = 0; _i34 < typeNodes.length; _i34++) {
107921
108023
  var type = typeNodes[_i34];
107922
- types15.push(getNamedType5(type));
108024
+ types17.push(getNamedType5(type));
107923
108025
  }
107924
108026
  }
107925
- return types15;
108027
+ return types17;
107926
108028
  }
107927
108029
  function buildType(astNode) {
107928
108030
  var _typeExtensionsMap$na;
@@ -107979,7 +108081,7 @@ var require_extendSchema3 = __commonJS3({
107979
108081
  return new _definition.GraphQLUnionType({
107980
108082
  name: name3,
107981
108083
  description,
107982
- types: function types15() {
108084
+ types: function types17() {
107983
108085
  return buildUnionTypes(_allNodes3);
107984
108086
  },
107985
108087
  astNode,
@@ -108273,7 +108375,7 @@ var require_lexicographicSortSchema3 = __commonJS3({
108273
108375
  if ((0, _definition.isUnionType)(type)) {
108274
108376
  var _config22 = type.toConfig();
108275
108377
  return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
108276
- types: function types15() {
108378
+ types: function types17() {
108277
108379
  return sortTypes(_config22.types);
108278
108380
  }
108279
108381
  }));
@@ -108356,10 +108458,10 @@ var require_printSchema3 = __commonJS3({
108356
108458
  }
108357
108459
  function printFilteredSchema(schema, directiveFilter, typeFilter, options) {
108358
108460
  var directives = schema.getDirectives().filter(directiveFilter);
108359
- var types15 = (0, _objectValues.default)(schema.getTypeMap()).filter(typeFilter);
108461
+ var types17 = (0, _objectValues.default)(schema.getTypeMap()).filter(typeFilter);
108360
108462
  return [printSchemaDefinition(schema)].concat(directives.map(function(directive) {
108361
108463
  return printDirective(directive, options);
108362
- }), types15.map(function(type) {
108464
+ }), types17.map(function(type) {
108363
108465
  return printType(type, options);
108364
108466
  })).filter(Boolean).join("\n\n") + "\n";
108365
108467
  }
@@ -108434,8 +108536,8 @@ var require_printSchema3 = __commonJS3({
108434
108536
  return printDescription(options, type) + "interface ".concat(type.name) + printImplementedInterfaces(type) + printFields(options, type);
108435
108537
  }
108436
108538
  function printUnion(type, options) {
108437
- var types15 = type.getTypes();
108438
- var possibleTypes = types15.length ? " = " + types15.join(" | ") : "";
108539
+ var types17 = type.getTypes();
108540
+ var possibleTypes = types17.length ? " = " + types17.join(" | ") : "";
108439
108541
  return printDescription(options, type) + "union " + type.name + possibleTypes;
108440
108542
  }
108441
108543
  function printEnum(type, options) {
@@ -108498,8 +108600,8 @@ var require_printSchema3 = __commonJS3({
108498
108600
  if (scalar.specifiedByUrl == null) {
108499
108601
  return "";
108500
108602
  }
108501
- var url = scalar.specifiedByUrl;
108502
- var urlAST = (0, _astFromValue.astFromValue)(url, _scalars.GraphQLString);
108603
+ var url2 = scalar.specifiedByUrl;
108604
+ var urlAST = (0, _astFromValue.astFromValue)(url2, _scalars.GraphQLString);
108503
108605
  urlAST || (0, _invariant.default)(0, "Unexpected null value returned from `astFromValue` for specifiedByUrl");
108504
108606
  return " @specifiedBy(url: " + (0, _printer.print)(urlAST) + ")";
108505
108607
  }
@@ -116137,11 +116239,11 @@ var require_volume2 = __commonJS3({
116137
116239
  var getStatOptsAndCb = function(options, callback) {
116138
116240
  return typeof options === "function" ? [getStatOptions(), options] : [getStatOptions(options), validateCallback(callback)];
116139
116241
  };
116140
- function getPathFromURLPosix(url) {
116141
- if (url.hostname !== "") {
116242
+ function getPathFromURLPosix(url2) {
116243
+ if (url2.hostname !== "") {
116142
116244
  throw new errors.TypeError("ERR_INVALID_FILE_URL_HOST", process_1.default.platform);
116143
116245
  }
116144
- var pathname = url.pathname;
116246
+ var pathname = url2.pathname;
116145
116247
  for (var n2 = 0; n2 < pathname.length; n2++) {
116146
116248
  if (pathname[n2] === "%") {
116147
116249
  var third = pathname.codePointAt(n2 + 2) | 32;
@@ -123225,14 +123327,14 @@ var require_lib32 = __commonJS3({
123225
123327
  this.preserveSpace = !!preserveSpace;
123226
123328
  }
123227
123329
  };
123228
- var types15 = {
123330
+ var types17 = {
123229
123331
  brace: new TokContext3("{"),
123230
123332
  j_oTag: new TokContext3("<tag"),
123231
123333
  j_cTag: new TokContext3("</tag"),
123232
123334
  j_expr: new TokContext3("<tag>...</tag>", true)
123233
123335
  };
123234
123336
  {
123235
- types15.template = new TokContext3("`", true);
123337
+ types17.template = new TokContext3("`", true);
123236
123338
  }
123237
123339
  var beforeExpr2 = true;
123238
123340
  var startsExpr2 = true;
@@ -123764,17 +123866,17 @@ var require_lib32 = __commonJS3({
123764
123866
  context.pop();
123765
123867
  };
123766
123868
  tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = (context) => {
123767
- context.push(types15.brace);
123869
+ context.push(types17.brace);
123768
123870
  };
123769
123871
  tokenTypes[22].updateContext = (context) => {
123770
- if (context[context.length - 1] === types15.template) {
123872
+ if (context[context.length - 1] === types17.template) {
123771
123873
  context.pop();
123772
123874
  } else {
123773
- context.push(types15.template);
123875
+ context.push(types17.template);
123774
123876
  }
123775
123877
  };
123776
123878
  tokenTypes[140].updateContext = (context) => {
123777
- context.push(types15.j_expr, types15.j_oTag);
123879
+ context.push(types17.j_expr, types17.j_oTag);
123778
123880
  };
123779
123881
  }
123780
123882
  var nonASCIIidentifierStartChars2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
@@ -124415,7 +124517,7 @@ var require_lib32 = __commonJS3({
124415
124517
  this.lastTokEndLoc = null;
124416
124518
  this.lastTokStartLoc = null;
124417
124519
  this.lastTokStart = 0;
124418
- this.context = [types15.brace];
124520
+ this.context = [types17.brace];
124419
124521
  this.canStartJSXElement = true;
124420
124522
  this.containsEsc = false;
124421
124523
  this.firstInvalidTemplateEscapePos = null;
@@ -128339,7 +128441,7 @@ var require_lib32 = __commonJS3({
128339
128441
  context
128340
128442
  } = this.state;
128341
128443
  const currentContext = context[context.length - 1];
128342
- if (currentContext === types15.j_oTag || currentContext === types15.j_expr) {
128444
+ if (currentContext === types17.j_oTag || currentContext === types17.j_expr) {
128343
128445
  context.pop();
128344
128446
  }
128345
128447
  }
@@ -129399,9 +129501,9 @@ var require_lib32 = __commonJS3({
129399
129501
  switch (this.state.type) {
129400
129502
  case 5:
129401
129503
  node2 = this.startNode();
129402
- this.setContext(types15.brace);
129504
+ this.setContext(types17.brace);
129403
129505
  this.next();
129404
- node2 = this.jsxParseExpressionContainer(node2, types15.j_oTag);
129506
+ node2 = this.jsxParseExpressionContainer(node2, types17.j_oTag);
129405
129507
  if (node2.expression.type === "JSXEmptyExpression") {
129406
129508
  this.raise(JsxErrors.AttributeIsEmpty, {
129407
129509
  at: node2
@@ -129424,7 +129526,7 @@ var require_lib32 = __commonJS3({
129424
129526
  jsxParseSpreadChild(node2) {
129425
129527
  this.next();
129426
129528
  node2.expression = this.parseExpression();
129427
- this.setContext(types15.j_expr);
129529
+ this.setContext(types17.j_expr);
129428
129530
  this.state.canStartJSXElement = true;
129429
129531
  this.expect(8);
129430
129532
  return this.finishNode(node2, "JSXSpreadChild");
@@ -129444,11 +129546,11 @@ var require_lib32 = __commonJS3({
129444
129546
  jsxParseAttribute() {
129445
129547
  const node2 = this.startNode();
129446
129548
  if (this.match(5)) {
129447
- this.setContext(types15.brace);
129549
+ this.setContext(types17.brace);
129448
129550
  this.next();
129449
129551
  this.expect(21);
129450
129552
  node2.argument = this.parseMaybeAssignAllowIn();
129451
- this.setContext(types15.j_oTag);
129553
+ this.setContext(types17.j_oTag);
129452
129554
  this.state.canStartJSXElement = true;
129453
129555
  this.expect(8);
129454
129556
  return this.finishNode(node2, "JSXSpreadAttribute");
@@ -129507,12 +129609,12 @@ var require_lib32 = __commonJS3({
129507
129609
  break;
129508
129610
  case 5: {
129509
129611
  const node22 = this.startNode();
129510
- this.setContext(types15.brace);
129612
+ this.setContext(types17.brace);
129511
129613
  this.next();
129512
129614
  if (this.match(21)) {
129513
129615
  children.push(this.jsxParseSpreadChild(node22));
129514
129616
  } else {
129515
- children.push(this.jsxParseExpressionContainer(node22, types15.j_expr));
129617
+ children.push(this.jsxParseExpressionContainer(node22, types17.j_expr));
129516
129618
  }
129517
129619
  break;
129518
129620
  }
@@ -129583,10 +129685,10 @@ var require_lib32 = __commonJS3({
129583
129685
  }
129584
129686
  getTokenFromCode(code) {
129585
129687
  const context = this.curContext();
129586
- if (context === types15.j_expr) {
129688
+ if (context === types17.j_expr) {
129587
129689
  return this.jsxReadToken();
129588
129690
  }
129589
- if (context === types15.j_oTag || context === types15.j_cTag) {
129691
+ if (context === types17.j_oTag || context === types17.j_cTag) {
129590
129692
  if (isIdentifierStart2(code)) {
129591
129693
  return this.jsxReadWord();
129592
129694
  }
@@ -129594,7 +129696,7 @@ var require_lib32 = __commonJS3({
129594
129696
  ++this.state.pos;
129595
129697
  return this.finishToken(141);
129596
129698
  }
129597
- if ((code === 34 || code === 39) && context === types15.j_oTag) {
129699
+ if ((code === 34 || code === 39) && context === types17.j_oTag) {
129598
129700
  return this.jsxReadString(code);
129599
129701
  }
129600
129702
  }
@@ -129610,17 +129712,17 @@ var require_lib32 = __commonJS3({
129610
129712
  type
129611
129713
  } = this.state;
129612
129714
  if (type === 56 && prevType === 140) {
129613
- context.splice(-2, 2, types15.j_cTag);
129715
+ context.splice(-2, 2, types17.j_cTag);
129614
129716
  this.state.canStartJSXElement = false;
129615
129717
  } else if (type === 140) {
129616
- context.push(types15.j_oTag);
129718
+ context.push(types17.j_oTag);
129617
129719
  } else if (type === 141) {
129618
129720
  const out = context[context.length - 1];
129619
- if (out === types15.j_oTag && prevType === 56 || out === types15.j_cTag) {
129721
+ if (out === types17.j_oTag && prevType === 56 || out === types17.j_cTag) {
129620
129722
  context.pop();
129621
- this.state.canStartJSXElement = context[context.length - 1] === types15.j_expr;
129723
+ this.state.canStartJSXElement = context[context.length - 1] === types17.j_expr;
129622
129724
  } else {
129623
- this.setContext(types15.j_expr);
129725
+ this.setContext(types17.j_expr);
129624
129726
  this.state.canStartJSXElement = true;
129625
129727
  }
129626
129728
  } else {
@@ -130627,14 +130729,14 @@ var require_lib32 = __commonJS3({
130627
130729
  tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
130628
130730
  const node2 = this.startNode();
130629
130731
  const hasLeadingOperator = this.eat(operator);
130630
- const types16 = [];
130732
+ const types18 = [];
130631
130733
  do {
130632
- types16.push(parseConstituentType());
130734
+ types18.push(parseConstituentType());
130633
130735
  } while (this.eat(operator));
130634
- if (types16.length === 1 && !hasLeadingOperator) {
130635
- return types16[0];
130736
+ if (types18.length === 1 && !hasLeadingOperator) {
130737
+ return types18[0];
130636
130738
  }
130637
- node2.types = types16;
130739
+ node2.types = types18;
130638
130740
  return this.finishNode(node2, kind);
130639
130741
  }
130640
130742
  tsParseIntersectionTypeOrHigher() {
@@ -131850,7 +131952,7 @@ var require_lib32 = __commonJS3({
131850
131952
  context
131851
131953
  } = this.state;
131852
131954
  const currentContext = context[context.length - 1];
131853
- if (currentContext === types15.j_oTag || currentContext === types15.j_expr) {
131955
+ if (currentContext === types17.j_oTag || currentContext === types17.j_expr) {
131854
131956
  context.pop();
131855
131957
  }
131856
131958
  }
@@ -137418,9 +137520,9 @@ var require_shared2 = __commonJS3({
137418
137520
  var tslib_1 = require_tslib2();
137419
137521
  var types_110 = tslib_1.__importDefault(require_types2());
137420
137522
  function default_1(fork) {
137421
- var types15 = fork.use(types_110.default);
137422
- var Type = types15.Type;
137423
- var builtin = types15.builtInTypes;
137523
+ var types17 = fork.use(types_110.default);
137524
+ var Type = types17.Type;
137525
+ var builtin = types17.builtInTypes;
137424
137526
  var isNumber2 = builtin.number;
137425
137527
  function geq(than) {
137426
137528
  return Type.from(function(value2) {
@@ -137568,9 +137670,9 @@ var require_types2 = __commonJS3({
137568
137670
  }(BaseType);
137569
137671
  var OrType = function(_super) {
137570
137672
  tslib_1.__extends(OrType2, _super);
137571
- function OrType2(types15) {
137673
+ function OrType2(types17) {
137572
137674
  var _this = _super.call(this) || this;
137573
- _this.types = types15;
137675
+ _this.types = types17;
137574
137676
  _this.kind = "OrType";
137575
137677
  return _this;
137576
137678
  }
@@ -137711,11 +137813,11 @@ var require_types2 = __commonJS3({
137711
137813
  function typesPlugin(_fork) {
137712
137814
  var Type = {
137713
137815
  or: function() {
137714
- var types15 = [];
137816
+ var types17 = [];
137715
137817
  for (var _i = 0; _i < arguments.length; _i++) {
137716
- types15[_i] = arguments[_i];
137818
+ types17[_i] = arguments[_i];
137717
137819
  }
137718
- return new OrType(types15.map(function(type) {
137820
+ return new OrType(types17.map(function(type) {
137719
137821
  return Type.from(type);
137720
137822
  }));
137721
137823
  },
@@ -138158,9 +138260,9 @@ var require_path22 = __commonJS3({
138158
138260
  var Op = Object.prototype;
138159
138261
  var hasOwn2 = Op.hasOwnProperty;
138160
138262
  function pathPlugin(fork) {
138161
- var types15 = fork.use(types_110.default);
138162
- var isArray2 = types15.builtInTypes.array;
138163
- var isNumber2 = types15.builtInTypes.number;
138263
+ var types17 = fork.use(types_110.default);
138264
+ var isArray2 = types17.builtInTypes.array;
138265
+ var isNumber2 = types17.builtInTypes.number;
138164
138266
  var Path = function Path2(value2, parentPath, name2) {
138165
138267
  if (!(this instanceof Path2)) {
138166
138268
  throw new Error("Path constructor cannot be invoked without 'new'");
@@ -138460,13 +138562,13 @@ var require_scope2 = __commonJS3({
138460
138562
  var types_110 = tslib_1.__importDefault(require_types2());
138461
138563
  var hasOwn2 = Object.prototype.hasOwnProperty;
138462
138564
  function scopePlugin(fork) {
138463
- var types15 = fork.use(types_110.default);
138464
- var Type = types15.Type;
138465
- var namedTypes = types15.namedTypes;
138565
+ var types17 = fork.use(types_110.default);
138566
+ var Type = types17.Type;
138567
+ var namedTypes = types17.namedTypes;
138466
138568
  var Node3 = namedTypes.Node;
138467
138569
  var Expression = namedTypes.Expression;
138468
- var isArray2 = types15.builtInTypes.array;
138469
- var b = types15.builders;
138570
+ var isArray2 = types17.builtInTypes.array;
138571
+ var b = types17.builders;
138470
138572
  var Scope3 = function Scope22(path22, parentScope) {
138471
138573
  if (!(this instanceof Scope22)) {
138472
138574
  throw new Error("Scope constructor cannot be invoked without 'new'");
@@ -138529,7 +138631,7 @@ var require_scope2 = __commonJS3({
138529
138631
  ++index;
138530
138632
  }
138531
138633
  var name2 = prefix + index;
138532
- return this.bindings[name2] = types15.builders.identifier(name2);
138634
+ return this.bindings[name2] = types17.builders.identifier(name2);
138533
138635
  };
138534
138636
  Sp.injectTemporary = function(identifier, init) {
138535
138637
  identifier || (identifier = this.declareTemporary());
@@ -138605,7 +138707,7 @@ var require_scope2 = __commonJS3({
138605
138707
  bindings
138606
138708
  );
138607
138709
  } else if (Node3.check(node2) && !Expression.check(node2)) {
138608
- types15.eachField(node2, function(name2, child) {
138710
+ types17.eachField(node2, function(name2, child) {
138609
138711
  var childPath = path22.get(name2);
138610
138712
  if (!pathHasValue(childPath, child)) {
138611
138713
  throw new Error("");
@@ -138683,24 +138785,24 @@ var require_scope2 = __commonJS3({
138683
138785
  addPattern(patternPath.get("argument"), bindings);
138684
138786
  }
138685
138787
  }
138686
- function addTypePattern(patternPath, types16) {
138788
+ function addTypePattern(patternPath, types18) {
138687
138789
  var pattern = patternPath.value;
138688
138790
  namedTypes.Pattern.assert(pattern);
138689
138791
  if (namedTypes.Identifier.check(pattern)) {
138690
- if (hasOwn2.call(types16, pattern.name)) {
138691
- types16[pattern.name].push(patternPath);
138792
+ if (hasOwn2.call(types18, pattern.name)) {
138793
+ types18[pattern.name].push(patternPath);
138692
138794
  } else {
138693
- types16[pattern.name] = [patternPath];
138795
+ types18[pattern.name] = [patternPath];
138694
138796
  }
138695
138797
  }
138696
138798
  }
138697
- function addTypeParameter(parameterPath, types16) {
138799
+ function addTypeParameter(parameterPath, types18) {
138698
138800
  var parameter = parameterPath.value;
138699
138801
  FlowOrTSTypeParameterType.assert(parameter);
138700
- if (hasOwn2.call(types16, parameter.name)) {
138701
- types16[parameter.name].push(parameterPath);
138802
+ if (hasOwn2.call(types18, parameter.name)) {
138803
+ types18[parameter.name].push(parameterPath);
138702
138804
  } else {
138703
- types16[parameter.name] = [parameterPath];
138805
+ types18[parameter.name] = [parameterPath];
138704
138806
  }
138705
138807
  }
138706
138808
  Sp.lookup = function(name2) {
@@ -138739,11 +138841,11 @@ var require_node_path2 = __commonJS3({
138739
138841
  var scope_1 = tslib_1.__importDefault(require_scope2());
138740
138842
  var shared_1 = require_shared2();
138741
138843
  function nodePathPlugin(fork) {
138742
- var types15 = fork.use(types_110.default);
138743
- var n2 = types15.namedTypes;
138744
- var b = types15.builders;
138745
- var isNumber2 = types15.builtInTypes.number;
138746
- var isArray2 = types15.builtInTypes.array;
138844
+ var types17 = fork.use(types_110.default);
138845
+ var n2 = types17.namedTypes;
138846
+ var b = types17.builders;
138847
+ var isNumber2 = types17.builtInTypes.number;
138848
+ var isArray2 = types17.builtInTypes.array;
138747
138849
  var Path = fork.use(path_1.default);
138748
138850
  var Scope3 = fork.use(scope_1.default);
138749
138851
  var NodePath = function NodePath2(value2, parentPath, name2) {
@@ -138834,7 +138936,7 @@ var require_node_path2 = __commonJS3({
138834
138936
  return scope2 || null;
138835
138937
  };
138836
138938
  NPp.getValueProperty = function(name2) {
138837
- return types15.getFieldValue(this.value, name2);
138939
+ return types17.getFieldValue(this.value, name2);
138838
138940
  };
138839
138941
  NPp.needsParens = function(assumeExpressionContext) {
138840
138942
  var pp2 = this.parentPath;
@@ -138976,7 +139078,7 @@ var require_node_path2 = __commonJS3({
138976
139078
  return node2.some(containsCallExpression);
138977
139079
  }
138978
139080
  if (n2.Node.check(node2)) {
138979
- return types15.someField(node2, function(_name, child) {
139081
+ return types17.someField(node2, function(_name, child) {
138980
139082
  return containsCallExpression(child);
138981
139083
  });
138982
139084
  }
@@ -139095,11 +139197,11 @@ var require_path_visitor2 = __commonJS3({
139095
139197
  var shared_1 = require_shared2();
139096
139198
  var hasOwn2 = Object.prototype.hasOwnProperty;
139097
139199
  function pathVisitorPlugin(fork) {
139098
- var types15 = fork.use(types_110.default);
139200
+ var types17 = fork.use(types_110.default);
139099
139201
  var NodePath = fork.use(node_path_1.default);
139100
- var isArray2 = types15.builtInTypes.array;
139101
- var isObject2 = types15.builtInTypes.object;
139102
- var isFunction2 = types15.builtInTypes.function;
139202
+ var isArray2 = types17.builtInTypes.array;
139203
+ var isObject2 = types17.builtInTypes.object;
139204
+ var isFunction2 = types17.builtInTypes.function;
139103
139205
  var undefined2;
139104
139206
  var PathVisitor = function PathVisitor2() {
139105
139207
  if (!(this instanceof PathVisitor2)) {
@@ -139119,7 +139221,7 @@ var require_path_visitor2 = __commonJS3({
139119
139221
  typeNames[methodName.slice("visit".length)] = true;
139120
139222
  }
139121
139223
  }
139122
- var supertypeTable = types15.computeSupertypeLookupTable(typeNames);
139224
+ var supertypeTable = types17.computeSupertypeLookupTable(typeNames);
139123
139225
  var methodNameTable = /* @__PURE__ */ Object.create(null);
139124
139226
  var typeNameKeys = Object.keys(supertypeTable);
139125
139227
  var typeNameCount = typeNameKeys.length;
@@ -139161,7 +139263,7 @@ var require_path_visitor2 = __commonJS3({
139161
139263
  }
139162
139264
  return target;
139163
139265
  }
139164
- PathVisitor.visit = function visit12(node2, methods) {
139266
+ PathVisitor.visit = function visit13(node2, methods) {
139165
139267
  return PathVisitor.fromMethodsObject(methods).visit(node2);
139166
139268
  };
139167
139269
  var PVp = PathVisitor.prototype;
@@ -139238,7 +139340,7 @@ var require_path_visitor2 = __commonJS3({
139238
139340
  path22.each(visitor.visitWithoutReset, visitor);
139239
139341
  } else if (!isObject2.check(value2)) {
139240
139342
  } else {
139241
- var childNames = types15.getFieldNames(value2);
139343
+ var childNames = types17.getFieldNames(value2);
139242
139344
  if (visitor._shouldVisitComments && value2.comments && childNames.indexOf("comments") < 0) {
139243
139345
  childNames.push("comments");
139244
139346
  }
@@ -139247,7 +139349,7 @@ var require_path_visitor2 = __commonJS3({
139247
139349
  for (var i22 = 0; i22 < childCount; ++i22) {
139248
139350
  var childName = childNames[i22];
139249
139351
  if (!hasOwn2.call(value2, childName)) {
139250
- value2[childName] = types15.getFieldValue(value2, childName);
139352
+ value2[childName] = types17.getFieldValue(value2, childName);
139251
139353
  }
139252
139354
  childPaths.push(path22.get(childName));
139253
139355
  }
@@ -139352,7 +139454,7 @@ var require_path_visitor2 = __commonJS3({
139352
139454
  this.needToCallTraverse = false;
139353
139455
  return visitChildren(path22, PathVisitor.fromMethodsObject(newVisitor || this.visitor));
139354
139456
  };
139355
- sharedContextProtoMethods.visit = function visit12(path22, newVisitor) {
139457
+ sharedContextProtoMethods.visit = function visit13(path22, newVisitor) {
139356
139458
  if (!(this instanceof this.Context)) {
139357
139459
  throw new Error("");
139358
139460
  }
@@ -139388,13 +139490,13 @@ var require_equiv2 = __commonJS3({
139388
139490
  var shared_1 = require_shared2();
139389
139491
  var types_110 = tslib_1.__importDefault(require_types2());
139390
139492
  function default_1(fork) {
139391
- var types15 = fork.use(types_110.default);
139392
- var getFieldNames = types15.getFieldNames;
139393
- var getFieldValue = types15.getFieldValue;
139394
- var isArray2 = types15.builtInTypes.array;
139395
- var isObject2 = types15.builtInTypes.object;
139396
- var isDate2 = types15.builtInTypes.Date;
139397
- var isRegExp2 = types15.builtInTypes.RegExp;
139493
+ var types17 = fork.use(types_110.default);
139494
+ var getFieldNames = types17.getFieldNames;
139495
+ var getFieldValue = types17.getFieldValue;
139496
+ var isArray2 = types17.builtInTypes.array;
139497
+ var isObject2 = types17.builtInTypes.object;
139498
+ var isDate2 = types17.builtInTypes.Date;
139499
+ var isRegExp2 = types17.builtInTypes.RegExp;
139398
139500
  var hasOwn2 = Object.prototype.hasOwnProperty;
139399
139501
  function astNodesAreEquivalent(a, b, problemPath) {
139400
139502
  if (isArray2.check(problemPath)) {
@@ -139545,24 +139647,24 @@ var require_fork2 = __commonJS3({
139545
139647
  var shared_1 = require_shared2();
139546
139648
  function default_1(plugins) {
139547
139649
  var fork = createFork();
139548
- var types15 = fork.use(types_110.default);
139650
+ var types17 = fork.use(types_110.default);
139549
139651
  plugins.forEach(fork.use);
139550
- types15.finalize();
139652
+ types17.finalize();
139551
139653
  var PathVisitor = fork.use(path_visitor_1.default);
139552
139654
  return {
139553
- Type: types15.Type,
139554
- builtInTypes: types15.builtInTypes,
139555
- namedTypes: types15.namedTypes,
139556
- builders: types15.builders,
139557
- defineMethod: types15.defineMethod,
139558
- getFieldNames: types15.getFieldNames,
139559
- getFieldValue: types15.getFieldValue,
139560
- eachField: types15.eachField,
139561
- someField: types15.someField,
139562
- getSupertypeNames: types15.getSupertypeNames,
139563
- getBuilderName: types15.getBuilderName,
139655
+ Type: types17.Type,
139656
+ builtInTypes: types17.builtInTypes,
139657
+ namedTypes: types17.namedTypes,
139658
+ builders: types17.builders,
139659
+ defineMethod: types17.defineMethod,
139660
+ getFieldNames: types17.getFieldNames,
139661
+ getFieldValue: types17.getFieldValue,
139662
+ eachField: types17.eachField,
139663
+ someField: types17.someField,
139664
+ getSupertypeNames: types17.getSupertypeNames,
139665
+ getBuilderName: types17.getBuilderName,
139564
139666
  astNodesAreEquivalent: fork.use(equiv_1.default),
139565
- finalize: types15.finalize,
139667
+ finalize: types17.finalize,
139566
139668
  Path: fork.use(path_1.default),
139567
139669
  NodePath: fork.use(node_path_1.default),
139568
139670
  PathVisitor,
@@ -139722,8 +139824,8 @@ var require_core22 = __commonJS3({
139722
139824
  var types_110 = tslib_1.__importDefault(require_types2());
139723
139825
  var shared_1 = tslib_1.__importStar(require_shared2());
139724
139826
  function default_1(fork) {
139725
- var types15 = fork.use(types_110.default);
139726
- var Type = types15.Type;
139827
+ var types17 = fork.use(types_110.default);
139828
+ var Type = types17.Type;
139727
139829
  var def = Type.def;
139728
139830
  var or = Type.or;
139729
139831
  var shared = fork.use(shared_1.default);
@@ -139813,9 +139915,9 @@ var require_es62 = __commonJS3({
139813
139915
  var shared_1 = tslib_1.__importStar(require_shared2());
139814
139916
  function default_1(fork) {
139815
139917
  fork.use(core_1.default);
139816
- var types15 = fork.use(types_110.default);
139817
- var def = types15.Type.def;
139818
- var or = types15.Type.or;
139918
+ var types17 = fork.use(types_110.default);
139919
+ var def = types17.Type.def;
139920
+ var or = types17.Type.or;
139819
139921
  var defaults2 = fork.use(shared_1.default).defaults;
139820
139922
  def("Function").field("generator", Boolean, defaults2["false"]).field("expression", Boolean, defaults2["false"]).field("defaults", [or(def("Expression"), null)], defaults2.emptyArray).field("rest", or(def("Identifier"), null), defaults2["null"]);
139821
139923
  def("RestElement").bases("Pattern").build("argument").field("argument", def("Pattern")).field(
@@ -139901,8 +140003,8 @@ var require_es20172 = __commonJS3({
139901
140003
  var shared_1 = tslib_1.__importStar(require_shared2());
139902
140004
  function default_1(fork) {
139903
140005
  fork.use(es2016_1.default);
139904
- var types15 = fork.use(types_110.default);
139905
- var def = types15.Type.def;
140006
+ var types17 = fork.use(types_110.default);
140007
+ var def = types17.Type.def;
139906
140008
  var defaults2 = fork.use(shared_1.default).defaults;
139907
140009
  def("Function").field("async", Boolean, defaults2["false"]);
139908
140010
  def("AwaitExpression").bases("Expression").build("argument").field("argument", def("Expression"));
@@ -139923,9 +140025,9 @@ var require_es20182 = __commonJS3({
139923
140025
  var shared_1 = tslib_1.__importStar(require_shared2());
139924
140026
  function default_1(fork) {
139925
140027
  fork.use(es2017_1.default);
139926
- var types15 = fork.use(types_110.default);
139927
- var def = types15.Type.def;
139928
- var or = types15.Type.or;
140028
+ var types17 = fork.use(types_110.default);
140029
+ var def = types17.Type.def;
140030
+ var or = types17.Type.or;
139929
140031
  var defaults2 = fork.use(shared_1.default).defaults;
139930
140032
  def("ForOfStatement").field("await", Boolean, defaults2["false"]);
139931
140033
  def("SpreadProperty").bases("Node").build("argument").field("argument", def("Expression"));
@@ -139954,9 +140056,9 @@ var require_es20192 = __commonJS3({
139954
140056
  var shared_1 = tslib_1.__importStar(require_shared2());
139955
140057
  function default_1(fork) {
139956
140058
  fork.use(es2018_1.default);
139957
- var types15 = fork.use(types_110.default);
139958
- var def = types15.Type.def;
139959
- var or = types15.Type.or;
140059
+ var types17 = fork.use(types_110.default);
140060
+ var def = types17.Type.def;
140061
+ var or = types17.Type.or;
139960
140062
  var defaults2 = fork.use(shared_1.default).defaults;
139961
140063
  def("CatchClause").field("param", or(def("Pattern"), null), defaults2["null"]);
139962
140064
  }
@@ -139978,9 +140080,9 @@ var require_es202022 = __commonJS3({
139978
140080
  function default_1(fork) {
139979
140081
  fork.use(es2020_1.default);
139980
140082
  fork.use(es2019_1.default);
139981
- var types15 = fork.use(types_110.default);
139982
- var def = types15.Type.def;
139983
- var or = types15.Type.or;
140083
+ var types17 = fork.use(types_110.default);
140084
+ var def = types17.Type.def;
140085
+ var or = types17.Type.or;
139984
140086
  var shared = fork.use(shared_1.default);
139985
140087
  var defaults2 = shared.defaults;
139986
140088
  def("ImportExpression").bases("Expression").build("source").field("source", def("Expression"));
@@ -140026,8 +140128,8 @@ var require_es20222 = __commonJS3({
140026
140128
  var shared_1 = require_shared2();
140027
140129
  function default_1(fork) {
140028
140130
  fork.use(es2021_1.default);
140029
- var types15 = fork.use(types_110.default);
140030
- var def = types15.Type.def;
140131
+ var types17 = fork.use(types_110.default);
140132
+ var def = types17.Type.def;
140031
140133
  def("StaticBlock").bases("Declaration").build("body").field("body", [def("Statement")]);
140032
140134
  }
140033
140135
  exports.default = default_1;
@@ -140046,9 +140148,9 @@ var require_es_proposals2 = __commonJS3({
140046
140148
  var es2022_1 = tslib_1.__importDefault(require_es20222());
140047
140149
  function default_1(fork) {
140048
140150
  fork.use(es2022_1.default);
140049
- var types15 = fork.use(types_110.default);
140050
- var Type = types15.Type;
140051
- var def = types15.Type.def;
140151
+ var types17 = fork.use(types_110.default);
140152
+ var Type = types17.Type;
140153
+ var def = types17.Type.def;
140052
140154
  var or = Type.or;
140053
140155
  var shared = fork.use(shared_1.default);
140054
140156
  var defaults2 = shared.defaults;
@@ -140086,9 +140188,9 @@ var require_jsx2 = __commonJS3({
140086
140188
  var shared_1 = tslib_1.__importStar(require_shared2());
140087
140189
  function default_1(fork) {
140088
140190
  fork.use(es_proposals_1.default);
140089
- var types15 = fork.use(types_110.default);
140090
- var def = types15.Type.def;
140091
- var or = types15.Type.or;
140191
+ var types17 = fork.use(types_110.default);
140192
+ var def = types17.Type.def;
140193
+ var or = types17.Type.or;
140092
140194
  var defaults2 = fork.use(shared_1.default).defaults;
140093
140195
  def("JSXAttribute").bases("Node").build("name", "value").field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))).field("value", or(
140094
140196
  def("Literal"),
@@ -140144,9 +140246,9 @@ var require_type_annotations2 = __commonJS3({
140144
140246
  var types_110 = tslib_1.__importDefault(require_types2());
140145
140247
  var shared_1 = tslib_1.__importStar(require_shared2());
140146
140248
  function default_1(fork) {
140147
- var types15 = fork.use(types_110.default);
140148
- var def = types15.Type.def;
140149
- var or = types15.Type.or;
140249
+ var types17 = fork.use(types_110.default);
140250
+ var def = types17.Type.def;
140251
+ var or = types17.Type.or;
140150
140252
  var defaults2 = fork.use(shared_1.default).defaults;
140151
140253
  var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null);
140152
140254
  var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null);
@@ -140179,9 +140281,9 @@ var require_flow2 = __commonJS3({
140179
140281
  function default_1(fork) {
140180
140282
  fork.use(es_proposals_1.default);
140181
140283
  fork.use(type_annotations_1.default);
140182
- var types15 = fork.use(types_110.default);
140183
- var def = types15.Type.def;
140184
- var or = types15.Type.or;
140284
+ var types17 = fork.use(types_110.default);
140285
+ var def = types17.Type.def;
140286
+ var or = types17.Type.or;
140185
140287
  var defaults2 = fork.use(shared_1.default).defaults;
140186
140288
  def("Flow").bases("Node");
140187
140289
  def("FlowType").bases("Flow");
@@ -140293,10 +140395,10 @@ var require_esprima4 = __commonJS3({
140293
140395
  var shared_1 = tslib_1.__importStar(require_shared2());
140294
140396
  function default_1(fork) {
140295
140397
  fork.use(es_proposals_1.default);
140296
- var types15 = fork.use(types_110.default);
140398
+ var types17 = fork.use(types_110.default);
140297
140399
  var defaults2 = fork.use(shared_1.default).defaults;
140298
- var def = types15.Type.def;
140299
- var or = types15.Type.or;
140400
+ var def = types17.Type.def;
140401
+ var or = types17.Type.or;
140300
140402
  def("VariableDeclaration").field("declarations", [or(
140301
140403
  def("VariableDeclarator"),
140302
140404
  def("Identifier")
@@ -140339,11 +140441,11 @@ var require_babel_core2 = __commonJS3({
140339
140441
  function default_1(fork) {
140340
140442
  var _a, _b, _c, _d, _e;
140341
140443
  fork.use(es_proposals_1.default);
140342
- var types15 = fork.use(types_110.default);
140444
+ var types17 = fork.use(types_110.default);
140343
140445
  var defaults2 = fork.use(shared_1.default).defaults;
140344
- var def = types15.Type.def;
140345
- var or = types15.Type.or;
140346
- var isUndefined = types15.builtInTypes.undefined;
140446
+ var def = types17.Type.def;
140447
+ var or = types17.Type.or;
140448
+ var isUndefined = types17.builtInTypes.undefined;
140347
140449
  def("Noop").bases("Statement").build();
140348
140450
  def("DoExpression").bases("Expression").build("body").field("body", [def("Statement")]);
140349
140451
  def("BindExpression").bases("Expression").build("object", "callee").field("object", or(def("Expression"), null)).field("callee", def("Expression"));
@@ -140368,7 +140470,7 @@ var require_babel_core2 = __commonJS3({
140368
140470
  raw: String
140369
140471
  },
140370
140472
  function getDefault() {
140371
- var value2 = types15.getFieldValue(this, "value");
140473
+ var value2 = types17.getFieldValue(this, "value");
140372
140474
  return {
140373
140475
  rawValue: value2,
140374
140476
  raw: toRaw ? toRaw(value2) : String(value2)
@@ -140469,8 +140571,8 @@ var require_babel2 = __commonJS3({
140469
140571
  var flow_1 = tslib_1.__importDefault(require_flow2());
140470
140572
  var shared_1 = require_shared2();
140471
140573
  function default_1(fork) {
140472
- var types15 = fork.use(types_110.default);
140473
- var def = types15.Type.def;
140574
+ var types17 = fork.use(types_110.default);
140575
+ var def = types17.Type.def;
140474
140576
  fork.use(babel_core_1.default);
140475
140577
  fork.use(flow_1.default);
140476
140578
  def("V8IntrinsicIdentifier").bases("Expression").build("name").field("name", String);
@@ -140494,12 +140596,12 @@ var require_typescript2 = __commonJS3({
140494
140596
  function default_1(fork) {
140495
140597
  fork.use(babel_core_1.default);
140496
140598
  fork.use(type_annotations_1.default);
140497
- var types15 = fork.use(types_110.default);
140498
- var n2 = types15.namedTypes;
140499
- var def = types15.Type.def;
140500
- var or = types15.Type.or;
140599
+ var types17 = fork.use(types_110.default);
140600
+ var n2 = types17.namedTypes;
140601
+ var def = types17.Type.def;
140602
+ var or = types17.Type.or;
140501
140603
  var defaults2 = fork.use(shared_1.default).defaults;
140502
- var StringLiteral = types15.Type.from(function(value2, deep) {
140604
+ var StringLiteral = types17.Type.from(function(value2, deep) {
140503
140605
  if (n2.StringLiteral && n2.StringLiteral.check(value2, deep)) {
140504
140606
  return true;
140505
140607
  }
@@ -140695,7 +140797,7 @@ var require_main3 = __commonJS3({
140695
140797
  var someField = _a.someField;
140696
140798
  var Type = _a.Type;
140697
140799
  var use = _a.use;
140698
- var visit12 = _a.visit;
140800
+ var visit13 = _a.visit;
140699
140801
  exports.astNodesAreEquivalent = astNodesAreEquivalent;
140700
140802
  exports.builders = builders;
140701
140803
  exports.builtInTypes = builtInTypes;
@@ -140712,7 +140814,7 @@ var require_main3 = __commonJS3({
140712
140814
  exports.someField = someField;
140713
140815
  exports.Type = Type;
140714
140816
  exports.use = use;
140715
- exports.visit = visit12;
140817
+ exports.visit = visit13;
140716
140818
  Object.assign(namedTypes_1.namedTypes, n2);
140717
140819
  }
140718
140820
  });
@@ -140836,34 +140938,34 @@ var require_util3 = __commonJS3({
140836
140938
  }
140837
140939
  exports.urlParse = urlParse;
140838
140940
  function urlGenerate(aParsedUrl) {
140839
- var url = "";
140941
+ var url2 = "";
140840
140942
  if (aParsedUrl.scheme) {
140841
- url += aParsedUrl.scheme + ":";
140943
+ url2 += aParsedUrl.scheme + ":";
140842
140944
  }
140843
- url += "//";
140945
+ url2 += "//";
140844
140946
  if (aParsedUrl.auth) {
140845
- url += aParsedUrl.auth + "@";
140947
+ url2 += aParsedUrl.auth + "@";
140846
140948
  }
140847
140949
  if (aParsedUrl.host) {
140848
- url += aParsedUrl.host;
140950
+ url2 += aParsedUrl.host;
140849
140951
  }
140850
140952
  if (aParsedUrl.port) {
140851
- url += ":" + aParsedUrl.port;
140953
+ url2 += ":" + aParsedUrl.port;
140852
140954
  }
140853
140955
  if (aParsedUrl.path) {
140854
- url += aParsedUrl.path;
140956
+ url2 += aParsedUrl.path;
140855
140957
  }
140856
- return url;
140958
+ return url2;
140857
140959
  }
140858
140960
  exports.urlGenerate = urlGenerate;
140859
140961
  function normalize(aPath) {
140860
140962
  var path22 = aPath;
140861
- var url = urlParse(aPath);
140862
- if (url) {
140863
- if (!url.path) {
140963
+ var url2 = urlParse(aPath);
140964
+ if (url2) {
140965
+ if (!url2.path) {
140864
140966
  return aPath;
140865
140967
  }
140866
- path22 = url.path;
140968
+ path22 = url2.path;
140867
140969
  }
140868
140970
  var isAbsolute22 = exports.isAbsolute(path22);
140869
140971
  var parts = path22.split(/\/+/);
@@ -140887,9 +140989,9 @@ var require_util3 = __commonJS3({
140887
140989
  if (path22 === "") {
140888
140990
  path22 = isAbsolute22 ? "/" : ".";
140889
140991
  }
140890
- if (url) {
140891
- url.path = path22;
140892
- return urlGenerate(url);
140992
+ if (url2) {
140993
+ url2.path = path22;
140994
+ return urlGenerate(url2);
140893
140995
  }
140894
140996
  return path22;
140895
140997
  }
@@ -141955,13 +142057,13 @@ var require_source_map_consumer2 = __commonJS3({
141955
142057
  if (this.sourceRoot != null) {
141956
142058
  relativeSource = util2.relative(this.sourceRoot, relativeSource);
141957
142059
  }
141958
- var url;
141959
- if (this.sourceRoot != null && (url = util2.urlParse(this.sourceRoot))) {
142060
+ var url2;
142061
+ if (this.sourceRoot != null && (url2 = util2.urlParse(this.sourceRoot))) {
141960
142062
  var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
141961
- if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
142063
+ if (url2.scheme == "file" && this._sources.has(fileUriAbsPath)) {
141962
142064
  return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
141963
142065
  }
141964
- if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
142066
+ if ((!url2.path || url2.path == "/") && this._sources.has("/" + relativeSource)) {
141965
142067
  return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
141966
142068
  }
141967
142069
  }
@@ -142447,8 +142549,8 @@ var require_util22 = __commonJS3({
142447
142549
  exports.isTrailingCommaEnabled = exports.getParentExportDeclaration = exports.isExportDeclaration = exports.fixFaultyLocations = exports.getTrueLoc = exports.composeSourceMaps = exports.copyPos = exports.comparePos = exports.getUnionOfKeys = exports.getOption = exports.isBrowser = exports.getLineTerminator = void 0;
142448
142550
  var tslib_1 = require_tslib2();
142449
142551
  var assert_1 = tslib_1.__importDefault(__require3("assert"));
142450
- var types15 = tslib_1.__importStar(require_main3());
142451
- var n2 = types15.namedTypes;
142552
+ var types17 = tslib_1.__importStar(require_main3());
142553
+ var n2 = types17.namedTypes;
142452
142554
  var source_map_1 = tslib_1.__importDefault(require_source_map2());
142453
142555
  var SourceMapConsumer = source_map_1.default.SourceMapConsumer;
142454
142556
  var SourceMapGenerator = source_map_1.default.SourceMapGenerator;
@@ -149754,10 +149856,10 @@ var require_comments2 = __commonJS3({
149754
149856
  exports.printComments = exports.attach = void 0;
149755
149857
  var tslib_1 = require_tslib2();
149756
149858
  var assert_1 = tslib_1.__importDefault(__require3("assert"));
149757
- var types15 = tslib_1.__importStar(require_main3());
149758
- var n2 = types15.namedTypes;
149759
- var isArray2 = types15.builtInTypes.array;
149760
- var isObject2 = types15.builtInTypes.object;
149859
+ var types17 = tslib_1.__importStar(require_main3());
149860
+ var n2 = types17.namedTypes;
149861
+ var isArray2 = types17.builtInTypes.array;
149862
+ var isObject2 = types17.builtInTypes.object;
149761
149863
  var lines_1 = require_lines2();
149762
149864
  var util_110 = require_util22();
149763
149865
  var childNodesCache = /* @__PURE__ */ new WeakMap();
@@ -149788,7 +149890,7 @@ var require_comments2 = __commonJS3({
149788
149890
  if (isArray2.check(node2)) {
149789
149891
  names = Object.keys(node2);
149790
149892
  } else if (isObject2.check(node2)) {
149791
- names = types15.getFieldNames(node2);
149893
+ names = types17.getFieldNames(node2);
149792
149894
  } else {
149793
149895
  return resultArray;
149794
149896
  }
@@ -149966,7 +150068,7 @@ var require_comments2 = __commonJS3({
149966
150068
  function printComments(path22, print12) {
149967
150069
  var value2 = path22.getValue();
149968
150070
  var innerLines = print12(path22);
149969
- var comments = n2.Node.check(value2) && types15.getFieldValue(value2, "comments");
150071
+ var comments = n2.Node.check(value2) && types17.getFieldValue(value2, "comments");
149970
150072
  if (!comments || comments.length === 0) {
149971
150073
  return innerLines;
149972
150074
  }
@@ -149974,8 +150076,8 @@ var require_comments2 = __commonJS3({
149974
150076
  var trailingParts = [innerLines];
149975
150077
  path22.each(function(commentPath) {
149976
150078
  var comment = commentPath.getValue();
149977
- var leading = types15.getFieldValue(comment, "leading");
149978
- var trailing = types15.getFieldValue(comment, "trailing");
150079
+ var leading = types17.getFieldValue(comment, "leading");
150080
+ var trailing = types17.getFieldValue(comment, "trailing");
149979
150081
  if (leading || trailing && !(n2.Statement.check(value2) || comment.type === "Block" || comment.type === "CommentBlock")) {
149980
150082
  leadingParts.push(printLeadingComment(commentPath, print12));
149981
150083
  } else if (trailing) {
@@ -149995,10 +150097,10 @@ var require_parser22 = __commonJS3({
149995
150097
  exports.parse = void 0;
149996
150098
  var tslib_1 = require_tslib2();
149997
150099
  var assert_1 = tslib_1.__importDefault(__require3("assert"));
149998
- var types15 = tslib_1.__importStar(require_main3());
149999
- var b = types15.builders;
150000
- var isObject2 = types15.builtInTypes.object;
150001
- var isArray2 = types15.builtInTypes.array;
150100
+ var types17 = tslib_1.__importStar(require_main3());
150101
+ var b = types17.builders;
150102
+ var isObject2 = types17.builtInTypes.object;
150103
+ var isArray2 = types17.builtInTypes.array;
150002
150104
  var options_1 = require_options2();
150003
150105
  var lines_1 = require_lines2();
150004
150106
  var comments_1 = require_comments2();
@@ -150182,11 +150284,11 @@ var require_fast_path2 = __commonJS3({
150182
150284
  Object.defineProperty(exports, "__esModule", { value: true });
150183
150285
  var tslib_1 = require_tslib2();
150184
150286
  var assert_1 = tslib_1.__importDefault(__require3("assert"));
150185
- var types15 = tslib_1.__importStar(require_main3());
150287
+ var types17 = tslib_1.__importStar(require_main3());
150186
150288
  var util2 = tslib_1.__importStar(require_util22());
150187
- var n2 = types15.namedTypes;
150188
- var isArray2 = types15.builtInTypes.array;
150189
- var isNumber2 = types15.builtInTypes.number;
150289
+ var n2 = types17.namedTypes;
150290
+ var isArray2 = types17.builtInTypes.array;
150291
+ var isNumber2 = types17.builtInTypes.number;
150190
150292
  var PRECEDENCE = {};
150191
150293
  [
150192
150294
  ["??"],
@@ -150215,7 +150317,7 @@ var require_fast_path2 = __commonJS3({
150215
150317
  if (obj instanceof FastPath) {
150216
150318
  return obj.copy();
150217
150319
  }
150218
- if (obj instanceof types15.NodePath) {
150320
+ if (obj instanceof types17.NodePath) {
150219
150321
  var copy = Object.create(FastPath.prototype);
150220
150322
  var stack = [obj.value];
150221
150323
  for (var pp2 = void 0; pp2 = obj.parentPath; obj = pp2)
@@ -150526,7 +150628,7 @@ var require_fast_path2 = __commonJS3({
150526
150628
  return node2.some(containsCallExpression);
150527
150629
  }
150528
150630
  if (n2.Node.check(node2)) {
150529
- return types15.someField(node2, function(_name, child) {
150631
+ return types17.someField(node2, function(_name, child) {
150530
150632
  return containsCallExpression(child);
150531
150633
  });
150532
150634
  }
@@ -150614,16 +150716,16 @@ var require_patcher2 = __commonJS3({
150614
150716
  var tslib_1 = require_tslib2();
150615
150717
  var assert_1 = tslib_1.__importDefault(__require3("assert"));
150616
150718
  var linesModule = tslib_1.__importStar(require_lines2());
150617
- var types15 = tslib_1.__importStar(require_main3());
150618
- var Printable = types15.namedTypes.Printable;
150619
- var Expression = types15.namedTypes.Expression;
150620
- var ReturnStatement = types15.namedTypes.ReturnStatement;
150621
- var SourceLocation3 = types15.namedTypes.SourceLocation;
150719
+ var types17 = tslib_1.__importStar(require_main3());
150720
+ var Printable = types17.namedTypes.Printable;
150721
+ var Expression = types17.namedTypes.Expression;
150722
+ var ReturnStatement = types17.namedTypes.ReturnStatement;
150723
+ var SourceLocation3 = types17.namedTypes.SourceLocation;
150622
150724
  var util_110 = require_util22();
150623
150725
  var fast_path_1 = tslib_1.__importDefault(require_fast_path2());
150624
- var isObject2 = types15.builtInTypes.object;
150625
- var isArray2 = types15.builtInTypes.array;
150626
- var isString3 = types15.builtInTypes.string;
150726
+ var isObject2 = types17.builtInTypes.object;
150727
+ var isArray2 = types17.builtInTypes.array;
150728
+ var isString3 = types17.builtInTypes.string;
150627
150729
  var riskyAdjoiningCharExp = /[0-9a-z_$]/i;
150628
150730
  var Patcher = function Patcher2(lines) {
150629
150731
  assert_1.default.ok(this instanceof Patcher2);
@@ -150893,8 +150995,8 @@ var require_patcher2 = __commonJS3({
150893
150995
  if (k.charAt(0) === "_") {
150894
150996
  continue;
150895
150997
  }
150896
- newPath.stack.push(k, types15.getFieldValue(newNode, k));
150897
- oldPath.stack.push(k, types15.getFieldValue(oldNode, k));
150998
+ newPath.stack.push(k, types17.getFieldValue(newNode, k));
150999
+ oldPath.stack.push(k, types17.getFieldValue(oldNode, k));
150898
151000
  var canReprint = findAnyReprints(newPath, oldPath, reprints);
150899
151001
  newPath.stack.length -= 2;
150900
151002
  oldPath.stack.length -= 2;
@@ -150916,16 +151018,16 @@ var require_printer22 = __commonJS3({
150916
151018
  exports.Printer = void 0;
150917
151019
  var tslib_1 = require_tslib2();
150918
151020
  var assert_1 = tslib_1.__importDefault(__require3("assert"));
150919
- var types15 = tslib_1.__importStar(require_main3());
151021
+ var types17 = tslib_1.__importStar(require_main3());
150920
151022
  var comments_1 = require_comments2();
150921
151023
  var fast_path_1 = tslib_1.__importDefault(require_fast_path2());
150922
151024
  var lines_1 = require_lines2();
150923
151025
  var options_1 = require_options2();
150924
151026
  var patcher_1 = require_patcher2();
150925
151027
  var util2 = tslib_1.__importStar(require_util22());
150926
- var namedTypes = types15.namedTypes;
150927
- var isString3 = types15.builtInTypes.string;
150928
- var isObject2 = types15.builtInTypes.object;
151028
+ var namedTypes = types17.namedTypes;
151029
+ var isString3 = types17.builtInTypes.string;
151030
+ var isObject2 = types17.builtInTypes.object;
150929
151031
  var PrintResult = function PrintResult2(code, sourceMap) {
150930
151032
  assert_1.default.ok(this instanceof PrintResult2);
150931
151033
  isString3.assert(code);
@@ -151087,7 +151189,7 @@ var require_printer22 = __commonJS3({
151087
151189
  case "OptionalMemberExpression": {
151088
151190
  parts.push(path22.call(print12, "object"));
151089
151191
  var property = path22.call(print12, "property");
151090
- var optional = types15.getFieldValue(n2, "optional");
151192
+ var optional = types17.getFieldValue(n2, "optional");
151091
151193
  if (n2.computed) {
151092
151194
  parts.push(optional ? "?.[" : "[", property, "]");
151093
151195
  } else {
@@ -151358,7 +151460,7 @@ var require_printer22 = __commonJS3({
151358
151460
  if (n2.typeArguments) {
151359
151461
  parts.push(path22.call(print12, "typeArguments"));
151360
151462
  }
151361
- if (types15.getFieldValue(n2, "optional")) {
151463
+ if (types17.getFieldValue(n2, "optional")) {
151362
151464
  parts.push("?.");
151363
151465
  }
151364
151466
  parts.push(printArgumentsList(path22, options, print12));
@@ -153037,8 +153139,8 @@ var require_printer22 = __commonJS3({
153037
153139
  });
153038
153140
  }
153039
153141
  function getPossibleRaw(node2) {
153040
- var value2 = types15.getFieldValue(node2, "value");
153041
- var extra = types15.getFieldValue(node2, "extra");
153142
+ var value2 = types17.getFieldValue(node2, "value");
153143
+ var extra = types17.getFieldValue(node2, "extra");
153042
153144
  if (extra && typeof extra.raw === "string" && value2 == extra.rawValue) {
153043
153145
  return extra.raw;
153044
153146
  }
@@ -153084,8 +153186,8 @@ var require_main22 = __commonJS3({
153084
153186
  exports.run = exports.prettyPrint = exports.print = exports.visit = exports.types = exports.parse = void 0;
153085
153187
  var tslib_1 = require_tslib2();
153086
153188
  var fs_1 = tslib_1.__importDefault(__require3("fs"));
153087
- var types15 = tslib_1.__importStar(require_main3());
153088
- exports.types = types15;
153189
+ var types17 = tslib_1.__importStar(require_main3());
153190
+ exports.types = types17;
153089
153191
  var parser_1 = require_parser22();
153090
153192
  Object.defineProperty(exports, "parse", { enumerable: true, get: function() {
153091
153193
  return parser_1.parse;
@@ -153099,10 +153201,10 @@ var require_main22 = __commonJS3({
153099
153201
  return new printer_1.Printer(options).print(node2);
153100
153202
  }
153101
153203
  exports.print = print12;
153102
- function prettyPrint(node2, options) {
153204
+ function prettyPrint3(node2, options) {
153103
153205
  return new printer_1.Printer(options).printGenerically(node2);
153104
153206
  }
153105
- exports.prettyPrint = prettyPrint;
153207
+ exports.prettyPrint = prettyPrint3;
153106
153208
  function run(transformer, options) {
153107
153209
  return runFile(process.argv[2], transformer, options);
153108
153210
  }
@@ -153255,7 +153357,7 @@ var import__ = __toESM3(require_safe_stable_stringify(), 1);
153255
153357
  var configure = import__.default.configure;
153256
153358
  var import_micromatch = __toESM3(require_micromatch(), 1);
153257
153359
  var log = new Log("Watch-and-Run");
153258
- var graphql27 = __toESM3(require_graphql22(), 1);
153360
+ var graphql29 = __toESM3(require_graphql22(), 1);
153259
153361
  var import_graphql162 = __toESM3(require_graphql22(), 1);
153260
153362
  var import_graphql30 = __toESM3(require_graphql22(), 1);
153261
153363
  var AggregateErrorImpl2;
@@ -153442,7 +153544,7 @@ var printDocASTReducer2 = {
153442
153544
  leave: ({ name: name2, interfaces, directives, fields }) => join3(["interface", name2, wrap2("implements ", join3(interfaces, " & ")), join3(directives, " "), block2(fields)], " ")
153443
153545
  },
153444
153546
  UnionTypeDefinition: {
153445
- leave: ({ name: name2, directives, types: types15 }) => join3(["union", name2, join3(directives, " "), wrap2("= ", join3(types15, " | "))], " ")
153547
+ leave: ({ name: name2, directives, types: types17 }) => join3(["union", name2, join3(directives, " "), wrap2("= ", join3(types17, " | "))], " ")
153446
153548
  },
153447
153549
  EnumTypeDefinition: {
153448
153550
  leave: ({ name: name2, directives, values }) => join3(["enum", name2, join3(directives, " "), block2(values)], " ")
@@ -153469,7 +153571,7 @@ var printDocASTReducer2 = {
153469
153571
  leave: ({ name: name2, interfaces, directives, fields }) => join3(["extend interface", name2, wrap2("implements ", join3(interfaces, " & ")), join3(directives, " "), block2(fields)], " ")
153470
153572
  },
153471
153573
  UnionTypeExtension: {
153472
- leave: ({ name: name2, directives, types: types15 }) => join3(["extend union", name2, join3(directives, " "), wrap2("= ", join3(types15, " | "))], " ")
153574
+ leave: ({ name: name2, directives, types: types17 }) => join3(["extend union", name2, join3(directives, " "), wrap2("= ", join3(types17, " | "))], " ")
153473
153575
  },
153474
153576
  EnumTypeExtension: {
153475
153577
  leave: ({ name: name2, directives, values }) => join3(["extend enum", name2, join3(directives, " "), block2(values)], " ")
@@ -153999,8 +154101,8 @@ var List2 = class {
153999
154101
  } else {
154000
154102
  entries = this.cache._internal_unstable.storage.get(value2, "edges").value;
154001
154103
  }
154002
- for (let record of entries) {
154003
- yield record;
154104
+ for (let record2 of entries) {
154105
+ yield record2;
154004
154106
  }
154005
154107
  }
154006
154108
  };
@@ -154048,6 +154150,44 @@ var ListCollection2 = class {
154048
154150
  }
154049
154151
  }
154050
154152
  };
154153
+ var SchemaManager2 = class {
154154
+ cache;
154155
+ fieldTypes = {};
154156
+ constructor(cache) {
154157
+ this.cache = cache;
154158
+ }
154159
+ setFieldType({
154160
+ parent,
154161
+ key,
154162
+ type,
154163
+ nullable = false,
154164
+ link
154165
+ }) {
154166
+ let parensIndex = key.indexOf("(");
154167
+ if (parensIndex !== -1) {
154168
+ key = key.substring(0, parensIndex);
154169
+ }
154170
+ if (parent === rootID2) {
154171
+ parent = "Query";
154172
+ } else if (parent.includes(":")) {
154173
+ parent = parent.substring(0, parent.indexOf(":"));
154174
+ }
154175
+ if (!this.fieldTypes[parent]) {
154176
+ this.fieldTypes[parent] = {};
154177
+ }
154178
+ this.fieldTypes[parent][key] = {
154179
+ type,
154180
+ nullable,
154181
+ link: !!link
154182
+ };
154183
+ }
154184
+ fieldType(type, field) {
154185
+ return this.fieldTypes[type]?.[field] || null;
154186
+ }
154187
+ get config() {
154188
+ return this.cache._internal_unstable.config;
154189
+ }
154190
+ };
154051
154191
  var InMemoryStorage2 = class {
154052
154192
  data;
154053
154193
  idCount = 0;
@@ -154610,7 +154750,7 @@ var InMemorySubscriptions2 = class {
154610
154750
  }
154611
154751
  }
154612
154752
  };
154613
- var Cache22 = class {
154753
+ var Cache32 = class {
154614
154754
  _internal_unstable;
154615
154755
  constructor(config4) {
154616
154756
  this._internal_unstable = new CacheInternal2({
@@ -154618,7 +154758,8 @@ var Cache22 = class {
154618
154758
  storage: new InMemoryStorage2(),
154619
154759
  subscriptions: new InMemorySubscriptions2(this),
154620
154760
  lists: new ListManager2(this, rootID2),
154621
- lifetimes: new GarbageCollector2(this)
154761
+ lifetimes: new GarbageCollector2(this),
154762
+ schema: new SchemaManager2(this)
154622
154763
  });
154623
154764
  if (config4) {
154624
154765
  this.setConfig(defaultConfigValues2(config4));
@@ -154704,18 +154845,21 @@ var CacheInternal2 = class {
154704
154845
  lists;
154705
154846
  cache;
154706
154847
  lifetimes;
154848
+ schema;
154707
154849
  constructor({
154708
154850
  storage,
154709
154851
  subscriptions,
154710
154852
  lists,
154711
154853
  cache,
154712
- lifetimes
154854
+ lifetimes,
154855
+ schema
154713
154856
  }) {
154714
154857
  this.storage = storage;
154715
154858
  this.subscriptions = subscriptions;
154716
154859
  this.lists = lists;
154717
154860
  this.cache = cache;
154718
154861
  this.lifetimes = lifetimes;
154862
+ this.schema = schema;
154719
154863
  this._disabled = typeof globalThis.window === "undefined";
154720
154864
  try {
154721
154865
  if (process.env.HOUDINI_TEST === "true") {
@@ -154731,7 +154875,6 @@ var CacheInternal2 = class {
154731
154875
  data: data2,
154732
154876
  selection: selection2,
154733
154877
  variables = {},
154734
- root = rootID2,
154735
154878
  parent = rootID2,
154736
154879
  applyUpdates = false,
154737
154880
  layer,
@@ -154754,9 +154897,17 @@ var CacheInternal2 = class {
154754
154897
  selection: fieldSelection,
154755
154898
  operations,
154756
154899
  abstract: isAbstract,
154757
- update
154900
+ update,
154901
+ nullable
154758
154902
  } = targetSelection[field];
154759
154903
  const key = evaluateKey2(keyRaw, variables);
154904
+ this.schema.setFieldType({
154905
+ parent,
154906
+ key: keyRaw,
154907
+ type: linkedType,
154908
+ nullable,
154909
+ link: !!fieldSelection
154910
+ });
154760
154911
  const currentSubscribers = this.subscriptions.get(parent, key);
154761
154912
  const { value: previousValue, displayLayers } = this.storage.get(parent, key);
154762
154913
  const displayLayer = layer.isDisplayLayer(displayLayers);
@@ -154825,7 +154976,6 @@ var CacheInternal2 = class {
154825
154976
  }
154826
154977
  if (linkedID) {
154827
154978
  this.writeSelection({
154828
- root,
154829
154979
  selection: fieldSelection,
154830
154980
  parent: linkedID,
154831
154981
  data: value2,
@@ -155214,7 +155364,7 @@ var CacheInternal2 = class {
155214
155364
  }
155215
155365
  };
155216
155366
  var rootID2 = "_ROOT_";
155217
- var cache_default2 = new Cache22();
155367
+ var cache_default2 = new Cache32();
155218
155368
  var siteURL = "https://houdinigraphql.com";
155219
155369
  var houdini_mode2 = {
155220
155370
  get is_testing() {
@@ -155369,6 +155519,7 @@ async function writeFile2(filepath, data2) {
155369
155519
  return;
155370
155520
  }
155371
155521
  if (houdini_mode2.is_testing) {
155522
+ import_memfs2.fs.mkdirpSync(dirname2(filepath));
155372
155523
  return import_memfs2.fs.writeFileSync(filepath, data2);
155373
155524
  }
155374
155525
  return await fs3.writeFile(filepath, data2, "utf8");
@@ -155927,13 +156078,13 @@ var Response3 = class extends Body2 {
155927
156078
  highWaterMark: this.highWaterMark
155928
156079
  });
155929
156080
  }
155930
- static redirect(url, status = 302) {
156081
+ static redirect(url2, status = 302) {
155931
156082
  if (!isRedirect2(status)) {
155932
156083
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
155933
156084
  }
155934
156085
  return new Response3(null, {
155935
156086
  headers: {
155936
- location: new URL(url).toString()
156087
+ location: new URL(url2).toString()
155937
156088
  },
155938
156089
  status
155939
156090
  });
@@ -156122,7 +156273,7 @@ var import_parser2 = __toESM3(require_lib32(), 1);
156122
156273
  var recast2 = __toESM3(require_main22(), 1);
156123
156274
  var AST2 = recast2.types.builders;
156124
156275
  var graphql42 = __toESM3(require_graphql22(), 1);
156125
- var graphql13 = __toESM3(require_graphql22(), 1);
156276
+ var graphql14 = __toESM3(require_graphql22(), 1);
156126
156277
  var recast5 = __toESM3(require_main22(), 1);
156127
156278
  var graphql52 = __toESM3(require_graphql22(), 1);
156128
156279
  var recast22 = __toESM3(require_main22(), 1);
@@ -156134,39 +156285,40 @@ var graphql8 = __toESM3(require_graphql22(), 1);
156134
156285
  var graphql7 = __toESM3(require_graphql22(), 1);
156135
156286
  var recast4 = __toESM3(require_main22(), 1);
156136
156287
  var AST4 = recast4.types.builders;
156137
- var graphql12 = __toESM3(require_graphql22(), 1);
156138
- var graphql10 = __toESM3(require_graphql22(), 1);
156288
+ var graphql13 = __toESM3(require_graphql22(), 1);
156289
+ var graphql11 = __toESM3(require_graphql22(), 1);
156139
156290
  var graphql9 = __toESM3(require_graphql22(), 1);
156291
+ var graphql10 = __toESM3(require_graphql22(), 1);
156140
156292
  var pageInfoSelection = [
156141
156293
  {
156142
- kind: graphql9.Kind.FIELD,
156294
+ kind: graphql10.Kind.FIELD,
156143
156295
  name: {
156144
- kind: graphql9.Kind.NAME,
156296
+ kind: graphql10.Kind.NAME,
156145
156297
  value: "edges"
156146
156298
  },
156147
156299
  selectionSet: {
156148
- kind: graphql9.Kind.SELECTION_SET,
156300
+ kind: graphql10.Kind.SELECTION_SET,
156149
156301
  selections: [
156150
156302
  {
156151
- kind: graphql9.Kind.FIELD,
156303
+ kind: graphql10.Kind.FIELD,
156152
156304
  name: {
156153
- kind: graphql9.Kind.NAME,
156305
+ kind: graphql10.Kind.NAME,
156154
156306
  value: "cursor"
156155
156307
  }
156156
156308
  },
156157
156309
  {
156158
- kind: graphql9.Kind.FIELD,
156310
+ kind: graphql10.Kind.FIELD,
156159
156311
  name: {
156160
- kind: graphql9.Kind.NAME,
156312
+ kind: graphql10.Kind.NAME,
156161
156313
  value: "node"
156162
156314
  },
156163
156315
  selectionSet: {
156164
- kind: graphql9.Kind.SELECTION_SET,
156316
+ kind: graphql10.Kind.SELECTION_SET,
156165
156317
  selections: [
156166
156318
  {
156167
- kind: graphql9.Kind.FIELD,
156319
+ kind: graphql10.Kind.FIELD,
156168
156320
  name: {
156169
- kind: graphql9.Kind.NAME,
156321
+ kind: graphql10.Kind.NAME,
156170
156322
  value: "__typename"
156171
156323
  }
156172
156324
  }
@@ -156177,39 +156329,39 @@ var pageInfoSelection = [
156177
156329
  }
156178
156330
  },
156179
156331
  {
156180
- kind: graphql9.Kind.FIELD,
156332
+ kind: graphql10.Kind.FIELD,
156181
156333
  name: {
156182
- kind: graphql9.Kind.NAME,
156334
+ kind: graphql10.Kind.NAME,
156183
156335
  value: "pageInfo"
156184
156336
  },
156185
156337
  selectionSet: {
156186
- kind: graphql9.Kind.SELECTION_SET,
156338
+ kind: graphql10.Kind.SELECTION_SET,
156187
156339
  selections: [
156188
156340
  {
156189
- kind: graphql9.Kind.FIELD,
156341
+ kind: graphql10.Kind.FIELD,
156190
156342
  name: {
156191
- kind: graphql9.Kind.NAME,
156343
+ kind: graphql10.Kind.NAME,
156192
156344
  value: "hasPreviousPage"
156193
156345
  }
156194
156346
  },
156195
156347
  {
156196
- kind: graphql9.Kind.FIELD,
156348
+ kind: graphql10.Kind.FIELD,
156197
156349
  name: {
156198
- kind: graphql9.Kind.NAME,
156350
+ kind: graphql10.Kind.NAME,
156199
156351
  value: "hasNextPage"
156200
156352
  }
156201
156353
  },
156202
156354
  {
156203
- kind: graphql9.Kind.FIELD,
156355
+ kind: graphql10.Kind.FIELD,
156204
156356
  name: {
156205
- kind: graphql9.Kind.NAME,
156357
+ kind: graphql10.Kind.NAME,
156206
156358
  value: "startCursor"
156207
156359
  }
156208
156360
  },
156209
156361
  {
156210
- kind: graphql9.Kind.FIELD,
156362
+ kind: graphql10.Kind.FIELD,
156211
156363
  name: {
156212
- kind: graphql9.Kind.NAME,
156364
+ kind: graphql10.Kind.NAME,
156213
156365
  value: "endCursor"
156214
156366
  }
156215
156367
  }
@@ -156217,33 +156369,38 @@ var pageInfoSelection = [
156217
156369
  }
156218
156370
  }
156219
156371
  ];
156220
- var graphql11 = __toESM3(require_graphql22(), 1);
156372
+ var graphql12 = __toESM3(require_graphql22(), 1);
156221
156373
  var AST5 = recast5.types.builders;
156222
- var recast10 = __toESM3(require_main22(), 1);
156374
+ var recast6 = __toESM3(require_main22(), 1);
156375
+ var AST6 = recast6.types.builders;
156376
+ var recast12 = __toESM3(require_main22(), 1);
156377
+ var graphql17 = __toESM3(require_graphql22(), 1);
156378
+ var recast9 = __toESM3(require_main22(), 1);
156223
156379
  var graphql16 = __toESM3(require_graphql22(), 1);
156224
156380
  var recast8 = __toESM3(require_main22(), 1);
156225
156381
  var graphql15 = __toESM3(require_graphql22(), 1);
156226
156382
  var recast7 = __toESM3(require_main22(), 1);
156227
- var graphql14 = __toESM3(require_graphql22(), 1);
156228
- var recast6 = __toESM3(require_main22(), 1);
156229
- var AST6 = recast6.types.builders;
156230
156383
  var AST7 = recast7.types.builders;
156231
156384
  var AST8 = recast8.types.builders;
156232
- var graphql17 = __toESM3(require_graphql22(), 1);
156233
- var recast9 = __toESM3(require_main22(), 1);
156234
156385
  var AST9 = recast9.types.builders;
156235
- var AST10 = recast10.types.builders;
156236
156386
  var graphql18 = __toESM3(require_graphql22(), 1);
156387
+ var recast10 = __toESM3(require_main22(), 1);
156388
+ var AST10 = recast10.types.builders;
156237
156389
  var graphql19 = __toESM3(require_graphql22(), 1);
156238
156390
  var recast11 = __toESM3(require_main22(), 1);
156239
156391
  var AST11 = recast11.types.builders;
156240
- var import_graphql302 = __toESM3(require_graphql22(), 1);
156392
+ var AST12 = recast12.types.builders;
156393
+ var graphql20 = __toESM3(require_graphql22(), 1);
156241
156394
  var graphql21 = __toESM3(require_graphql22(), 1);
156242
- var graphql222 = __toESM3(require_graphql22(), 1);
156395
+ var recast13 = __toESM3(require_main22(), 1);
156396
+ var AST13 = recast13.types.builders;
156397
+ var import_graphql302 = __toESM3(require_graphql22(), 1);
156243
156398
  var graphql23 = __toESM3(require_graphql22(), 1);
156244
156399
  var graphql24 = __toESM3(require_graphql22(), 1);
156245
- var GraphqlKinds2 = graphql24.Kind;
156246
156400
  var graphql25 = __toESM3(require_graphql22(), 1);
156401
+ var graphql26 = __toESM3(require_graphql22(), 1);
156402
+ var GraphqlKinds2 = graphql26.Kind;
156403
+ var graphql27 = __toESM3(require_graphql22(), 1);
156247
156404
  var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interface but it does not conform to the Global Identification Spec.
156248
156405
 
156249
156406
  If you are trying to provide the Node interface and its field, they must look like the following:
@@ -156260,7 +156417,7 @@ For more information, please visit these links:
156260
156417
  - https://graphql.org/learn/global-object-identification/
156261
156418
  - ${siteURL}/guides/caching-data#custom-ids
156262
156419
  `;
156263
- var graphql26 = __toESM3(require_graphql22(), 1);
156420
+ var graphql28 = __toESM3(require_graphql22(), 1);
156264
156421
  function find_insert_index(script) {
156265
156422
  let insert_index = script.body.findIndex((statement) => {
156266
156423
  return statement.type !== "ImportDeclaration";
@@ -156302,8 +156459,8 @@ function find_exported_fn(body, name2) {
156302
156459
  }
156303
156460
  return exported2.declaration;
156304
156461
  }
156305
- var recast12 = __toESM3(require_main22(), 1);
156306
- var AST12 = recast12.types.builders;
156462
+ var recast14 = __toESM3(require_main22(), 1);
156463
+ var AST14 = recast14.types.builders;
156307
156464
  function ensure_imports({
156308
156465
  config: config4,
156309
156466
  script,
@@ -156319,13 +156476,13 @@ function ensure_imports({
156319
156476
  if (!has_import) {
156320
156477
  script.body.unshift({
156321
156478
  type: "ImportDeclaration",
156322
- source: AST12.stringLiteral(sourceModule),
156479
+ source: AST14.stringLiteral(sourceModule),
156323
156480
  importKind
156324
156481
  });
156325
156482
  }
156326
156483
  return { ids: [], added: has_import ? 0 : 1 };
156327
156484
  }
156328
- const idList = (Array.isArray(importID) ? importID : [importID]).map((id2) => AST12.identifier(id2));
156485
+ const idList = (Array.isArray(importID) ? importID : [importID]).map((id2) => AST14.identifier(id2));
156329
156486
  const toImport = idList.filter(
156330
156487
  (identifier) => !script.body.find(
156331
156488
  (statement) => statement.type === "ImportDeclaration" && statement.specifiers?.find(
@@ -156336,16 +156493,16 @@ function ensure_imports({
156336
156493
  if (toImport.length > 0) {
156337
156494
  script.body.unshift({
156338
156495
  type: "ImportDeclaration",
156339
- source: AST12.stringLiteral(sourceModule),
156496
+ source: AST14.stringLiteral(sourceModule),
156340
156497
  specifiers: toImport.map(
156341
- (identifier, i22) => !Array.isArray(importID) ? AST12.importDefaultSpecifier(identifier) : AST12.importSpecifier(identifier, as?.[i22] ? AST12.identifier(as[i22]) : identifier)
156498
+ (identifier, i22) => !Array.isArray(importID) ? AST14.importDefaultSpecifier(identifier) : AST14.importSpecifier(identifier, as?.[i22] ? AST14.identifier(as[i22]) : identifier)
156342
156499
  ),
156343
156500
  importKind
156344
156501
  });
156345
156502
  }
156346
156503
  for (const [i22, target] of (as ?? []).entries()) {
156347
156504
  if (target) {
156348
- idList[i22] = AST12.identifier(target);
156505
+ idList[i22] = AST14.identifier(target);
156349
156506
  }
156350
156507
  }
156351
156508
  return {
@@ -156353,6 +156510,20 @@ function ensure_imports({
156353
156510
  added: toImport.length
156354
156511
  };
156355
156512
  }
156513
+ function artifact_import({
156514
+ config: config4,
156515
+ script,
156516
+ artifact,
156517
+ local
156518
+ }) {
156519
+ const { ids, added } = ensure_imports({
156520
+ config: config4,
156521
+ script,
156522
+ sourceModule: config4.artifactImportPath(artifact.name),
156523
+ import: local || `_${artifact.name}Artifact`
156524
+ });
156525
+ return { id: ids, added };
156526
+ }
156356
156527
 
156357
156528
  // ../../node_modules/.pnpm/svelte@3.55.0/node_modules/svelte/compiler.mjs
156358
156529
  var now = typeof process !== "undefined" && process.hrtime ? () => {
@@ -182744,9 +182915,9 @@ var OriginalSource = class {
182744
182915
  };
182745
182916
  var Url$1 = typeof URL !== "undefined" ? URL : __require("url").URL;
182746
182917
  var parentRegex = /(^|\/)\.\.(?=\/|$)/g;
182747
- function isAbsoluteUrl(url) {
182918
+ function isAbsoluteUrl(url2) {
182748
182919
  try {
182749
- return !!new Url$1(url);
182920
+ return !!new Url$1(url2);
182750
182921
  } catch (e3) {
182751
182922
  return false;
182752
182923
  }
@@ -184289,18 +184460,15 @@ async function preprocess(source, preprocessor, options) {
184289
184460
  }
184290
184461
 
184291
184462
  // src/plugin/extract.ts
184292
- async function extract_default(filepath, contents) {
184463
+ async function extract_default(config4, filepath, contents) {
184293
184464
  const documents = [];
184294
184465
  let parsedFile = await parseSvelte(contents);
184295
184466
  if (!parsedFile) {
184296
184467
  return documents;
184297
184468
  }
184298
- walk(parsedFile.script, {
184299
- enter(node2) {
184300
- if (node2.type === "TaggedTemplateExpression" && node2.tag.name === "graphql") {
184301
- const printedDoc = node2.quasi.quasis[0].value.raw;
184302
- documents.push(printedDoc);
184303
- }
184469
+ await find_graphql(config4, parsedFile.script, {
184470
+ tag({ tagContent }) {
184471
+ documents.push(tagContent);
184304
184472
  }
184305
184473
  });
184306
184474
  return documents;
@@ -184366,8 +184534,39 @@ function findScriptInnerBounds({
184366
184534
  return [greaterThanIndex + 1, lessThanIndex];
184367
184535
  }
184368
184536
 
184537
+ // ../../node_modules/.pnpm/@kitql+helper@0.5.0/node_modules/@kitql/helper/index.mjs
184538
+ var config3 = {
184539
+ reset: {
184540
+ node: `\x1B[37m\x1B[0m`,
184541
+ browser: ""
184542
+ },
184543
+ green: {
184544
+ node: `\x1B[32m`,
184545
+ browser: "color: green"
184546
+ },
184547
+ magneta: {
184548
+ node: `\x1B[35m`,
184549
+ browser: "color: #ff00ff"
184550
+ },
184551
+ red: {
184552
+ node: `\x1B[31m`,
184553
+ browser: "color: red"
184554
+ },
184555
+ cyan: {
184556
+ node: `\x1B[36m`,
184557
+ browser: "color: cyan"
184558
+ },
184559
+ yellow: {
184560
+ node: `\x1B[33m`,
184561
+ browser: "color: yellow"
184562
+ }
184563
+ };
184564
+ function logYellow(str) {
184565
+ return `${config3.yellow.node}${str}${config3.reset.node}`;
184566
+ }
184567
+
184369
184568
  // src/plugin/extractLoadFunction.ts
184370
- var graphql20 = __toESM(require_graphql4(), 1);
184569
+ var graphql30 = __toESM(require_graphql4(), 1);
184371
184570
  import { transformWithEsbuild } from "vite";
184372
184571
 
184373
184572
  // src/plugin/naming.ts
@@ -184404,7 +184603,7 @@ async function extract_load_function(config4, filepath, mockArtifacts) {
184404
184603
  return {
184405
184604
  exports,
184406
184605
  houdini_load: load.map(
184407
- (query) => graphql20.parse(query).definitions[0]
184606
+ (query) => graphql30.parse(query).definitions[0]
184408
184607
  )
184409
184608
  };
184410
184609
  }
@@ -184421,10 +184620,7 @@ async function processScript(config4, filepath, program, mockArtifacts) {
184421
184620
  for (const specifier of statement.specifiers ?? []) {
184422
184621
  let name2 = specifier.local?.name || "";
184423
184622
  let query = "";
184424
- const store_prefix = plugin_config(config4).globalStorePrefix;
184425
- if (store_prefix && name2.startsWith(store_prefix)) {
184426
- query = name2.substring(store_prefix.length);
184427
- } else if (name2.endsWith(store_suffix(config4))) {
184623
+ if (name2.endsWith(store_suffix(config4))) {
184428
184624
  query = name2.substring(0, name2.length - store_suffix(config4).length);
184429
184625
  } else if (source.startsWith("$houdini/" + stores_directory_name()) && specifier.type === "ImportDefaultSpecifier") {
184430
184626
  query = source.substring(`$houdini/${stores_directory_name()}`.length - 1);
@@ -184471,7 +184667,8 @@ async function processScript(config4, filepath, program, mockArtifacts) {
184471
184667
  load.push(result);
184472
184668
  if (!result) {
184473
184669
  throw new Error(
184474
- `Could not find query for computing ${houdini_load_fn}: ` + element.name + ". filepath: " + filepath
184670
+ `Could not find ${logYellow(element.name)} for computing ${logYellow(houdini_load_fn)}. (if it was a global store, you need to instantiate the store manually.)
184671
+ filepath: ${filepath}`
184475
184672
  );
184476
184673
  }
184477
184674
  } else if (element.type === "TaggedTemplateExpression") {
@@ -184481,6 +184678,27 @@ async function processScript(config4, filepath, program, mockArtifacts) {
184481
184678
  );
184482
184679
  }
184483
184680
  load.push(element.quasi.quasis[0].value.raw);
184681
+ } else if (element.type === "CallExpression") {
184682
+ if (element.callee.type !== "Identifier" || element.callee.name !== "graphql" || element.arguments.length !== 1) {
184683
+ throw new Error(`only graphql function can be passed to ${houdini_load_fn}`);
184684
+ }
184685
+ let documentString;
184686
+ const argument = element.arguments[0];
184687
+ if (argument.type === "TemplateLiteral") {
184688
+ documentString = argument.quasis[0].value.raw;
184689
+ } else if (argument.type === "StringLiteral") {
184690
+ documentString = argument.value;
184691
+ } else {
184692
+ throw new Error("only strings can be passed to the graphql function");
184693
+ }
184694
+ load.push(documentString);
184695
+ } else if (element.type === "NewExpression") {
184696
+ const suffix = store_suffix(config4);
184697
+ if (element && element.callee.type === "Identifier" && element.callee.name.endsWith(suffix)) {
184698
+ load.push(globalImports[element.callee.name]);
184699
+ } else {
184700
+ throw new Error(`only query store classes can be passed to ${houdini_load_fn}`);
184701
+ }
184484
184702
  }
184485
184703
  }
184486
184704
  }
@@ -184505,7 +184723,17 @@ function identifyQueryReference(imports, statement) {
184505
184723
  if (value2.type === "Identifier" && value2.name in imports) {
184506
184724
  return { local, query: imports[value2.name] };
184507
184725
  }
184508
- if (value2.type === "CallExpression" && value2.callee.type == "Identifier" && value2.callee.name in imports) {
184726
+ if (value2.type === "CallExpression" && value2.callee.type === "Identifier" && value2.callee.name in imports) {
184727
+ return { local, query: imports[value2.callee.name] };
184728
+ }
184729
+ if (value2.type === "CallExpression" && value2.callee.type === "Identifier" && value2.callee.name === "graphql" && value2.arguments.length === 1) {
184730
+ if (value2.arguments[0].type === "StringLiteral") {
184731
+ return { local, query: value2.arguments[0].value };
184732
+ } else if (value2.arguments[0].type === "TemplateLiteral") {
184733
+ return { local, query: value2.arguments[0].quasis[0].value.raw };
184734
+ }
184735
+ }
184736
+ if (value2.type === "NewExpression" && value2.callee.type == "Identifier") {
184509
184737
  return { local, query: imports[value2.callee.name] };
184510
184738
  }
184511
184739
  if (value2.type === "TaggedTemplateExpression") {
@@ -184657,7 +184885,7 @@ async function walk_routes(config4, framework2, visitor, dirpath = config4.route
184657
184885
  continue;
184658
184886
  }
184659
184887
  try {
184660
- const query = config4.extractQueryDefinition(graphql28.parse(contents));
184888
+ const query = config4.extractQueryDefinition(graphql31.parse(contents));
184661
184889
  await visitor.routeLayoutQuery?.(query, childPath);
184662
184890
  layoutQueries.push(query);
184663
184891
  } catch (e3) {
@@ -184670,7 +184898,7 @@ async function walk_routes(config4, framework2, visitor, dirpath = config4.route
184670
184898
  continue;
184671
184899
  }
184672
184900
  try {
184673
- const query = config4.extractQueryDefinition(graphql28.parse(contents));
184901
+ const query = config4.extractQueryDefinition(graphql31.parse(contents));
184674
184902
  await visitor.routePageQuery?.(query, childPath);
184675
184903
  pageQueries.push(query);
184676
184904
  } catch (e3) {
@@ -184730,14 +184958,10 @@ function store_suffix(config4) {
184730
184958
  function store_name({ config: config4, name: name2 }) {
184731
184959
  return name2 + store_suffix(config4);
184732
184960
  }
184733
- function global_store_name({ config: config4, name: name2 }) {
184734
- return plugin_config(config4).globalStorePrefix + name2;
184735
- }
184736
184961
  function plugin_config(config4) {
184737
184962
  const cfg = config4.pluginConfig("houdini-svelte");
184738
184963
  return {
184739
184964
  client: "./src/client",
184740
- globalStorePrefix: "GQL_",
184741
184965
  pageQueryFilename: "+page.gql",
184742
184966
  layoutQueryFilename: "+layout.gql",
184743
184967
  quietQueryErrors: false,
@@ -184767,9 +184991,14 @@ function store_import({
184767
184991
  config: page2.config,
184768
184992
  script: page2.script,
184769
184993
  sourceModule: store_import_path({ config: page2.config, name: artifact.name }),
184770
- import: `GQL_${artifact.name}`
184994
+ import: [
184995
+ store_name({
184996
+ config: page2.config,
184997
+ name: artifact.name
184998
+ })
184999
+ ]
184771
185000
  });
184772
- return { id: ids, added };
185001
+ return { id: ids[0], added };
184773
185002
  }
184774
185003
 
184775
185004
  // src/plugin/codegen/components/index.ts
@@ -184850,6 +185079,121 @@ export type ${config4.variableFunctionName(
184850
185079
  await fs_exports.writeFile(path_exports.join(relative3, "$houdini.d.ts"), typeFile);
184851
185080
  }
184852
185081
 
185082
+ // src/plugin/codegen/fragmentTypedefs/index.ts
185083
+ var recast15 = __toESM(require_main5(), 1);
185084
+ var AST15 = recast15.types.builders;
185085
+ async function fragmentTypedefs(input) {
185086
+ let fragments = {};
185087
+ for (const doc of input.documents) {
185088
+ if (doc.kind === ArtifactKind.Fragment) {
185089
+ if (doc.refetch?.paginated) {
185090
+ fragments = {
185091
+ ...fragments,
185092
+ ["paginatedFragment"]: {
185093
+ ...fragments["paginatedFragment"],
185094
+ [doc.originalString]: doc
185095
+ }
185096
+ };
185097
+ }
185098
+ fragments = {
185099
+ ...fragments,
185100
+ ["fragment"]: {
185101
+ ...fragments["fragment"],
185102
+ [doc.originalString]: doc
185103
+ }
185104
+ };
185105
+ }
185106
+ }
185107
+ const target_path = path_exports.join(
185108
+ input.config.pluginRuntimeDirectory("houdini-svelte"),
185109
+ "fragments.d.ts"
185110
+ );
185111
+ const contents = await parseJS(await fs_exports.readFile(target_path) || "");
185112
+ if (!contents) {
185113
+ return;
185114
+ }
185115
+ function insert_exports(which, statements) {
185116
+ for (const [i3, expression] of [...contents.script.body ?? []].entries()) {
185117
+ if (expression.type !== "ExportNamedDeclaration" || expression.declaration?.type !== "TSDeclareFunction" || expression.declaration.id?.name !== which) {
185118
+ continue;
185119
+ }
185120
+ contents.script.body.splice(i3, 0, ...statements);
185121
+ break;
185122
+ }
185123
+ }
185124
+ for (const [which, docs] of Object.entries(fragments)) {
185125
+ insert_exports(
185126
+ which,
185127
+ Object.entries(docs).flatMap(([queryString, doc]) => {
185128
+ if (!doc.generateStore) {
185129
+ return [];
185130
+ }
185131
+ const store = store_name({ config: input.config, name: doc.name });
185132
+ const import_path3 = path_exports.join("..", stores_directory_name(), doc.name);
185133
+ const fragment_map = AST15.tsTypeLiteral([
185134
+ AST15.tsPropertySignature(
185135
+ AST15.identifier("$fragments"),
185136
+ AST15.tsTypeAnnotation(
185137
+ AST15.tsTypeLiteral([
185138
+ AST15.tsPropertySignature(
185139
+ AST15.identifier(doc.name),
185140
+ AST15.tsTypeAnnotation(
185141
+ AST15.tsLiteralType(AST15.booleanLiteral(true))
185142
+ )
185143
+ )
185144
+ ])
185145
+ )
185146
+ )
185147
+ ]);
185148
+ const initial_value_input = AST15.identifier("initialValue");
185149
+ initial_value_input.typeAnnotation = AST15.tsTypeAnnotation(fragment_map);
185150
+ const initial_value_or_null_input = AST15.identifier("initialValue");
185151
+ initial_value_or_null_input.typeAnnotation = AST15.tsTypeAnnotation(
185152
+ AST15.tsUnionType([fragment_map, AST15.tsNullKeyword()])
185153
+ );
185154
+ const document_input = AST15.identifier("document");
185155
+ document_input.typeAnnotation = AST15.tsTypeAnnotation(
185156
+ AST15.tsTypeReference(AST15.identifier(store))
185157
+ );
185158
+ const return_value = AST15.tsTypeReference(
185159
+ AST15.identifier("ReturnType"),
185160
+ AST15.tsTypeParameterInstantiation([
185161
+ AST15.tsIndexedAccessType(
185162
+ AST15.tsTypeReference(AST15.identifier(store)),
185163
+ AST15.tsLiteralType(AST15.stringLiteral("get"))
185164
+ )
185165
+ ])
185166
+ );
185167
+ ensureImports({
185168
+ config: input.config,
185169
+ body: contents.script.body,
185170
+ sourceModule: import_path3,
185171
+ import: [store]
185172
+ });
185173
+ return [
185174
+ AST15.exportNamedDeclaration(
185175
+ AST15.tsDeclareFunction(
185176
+ AST15.identifier(which),
185177
+ [initial_value_input, document_input],
185178
+ AST15.tsTypeAnnotation(return_value)
185179
+ )
185180
+ ),
185181
+ AST15.exportNamedDeclaration(
185182
+ AST15.tsDeclareFunction(
185183
+ AST15.identifier(which),
185184
+ [initial_value_or_null_input, document_input],
185185
+ AST15.tsTypeAnnotation(
185186
+ AST15.tsUnionType([return_value, AST15.tsNullKeyword()])
185187
+ )
185188
+ )
185189
+ )
185190
+ ];
185191
+ })
185192
+ );
185193
+ }
185194
+ await fs_exports.writeFile(target_path, recast15.prettyPrint(contents.script).code);
185195
+ }
185196
+
184853
185197
  // src/plugin/codegen/routes/index.ts
184854
185198
  async function svelteKitGenerator(framework2, { config: config4 }) {
184855
185199
  if (framework2 !== "kit") {
@@ -185064,7 +185408,6 @@ async function fragmentStore({ config: config4, plugin_root }, doc) {
185064
185408
  const fileName = doc.name;
185065
185409
  const artifactName = `${doc.name}`;
185066
185410
  const storeName = store_name({ config: config4, name: doc.name });
185067
- const globalStoreName = global_store_name({ config: config4, name: doc.name });
185068
185411
  const paginationMethod = doc.refetch?.method;
185069
185412
  let which = "fragment";
185070
185413
  if (paginationMethod === "cursor") {
@@ -185082,8 +185425,8 @@ ${paginationMethod ? `import _PaginationArtifact from '${config4.artifactImportP
185082
185425
  // create the fragment store
185083
185426
 
185084
185427
  export class ${storeName} extends ${store_class} {
185085
- constructor() {
185086
- super({
185428
+ constructor() {
185429
+ super({
185087
185430
  artifact,
185088
185431
  storeName: ${JSON.stringify(storeName)},
185089
185432
  variables: ${JSON.stringify(true)},
@@ -185091,10 +185434,6 @@ export class ${storeName} extends ${store_class} {
185091
185434
  })
185092
185435
  }
185093
185436
  }
185094
-
185095
- export const ${globalStoreName} = new ${storeName}()
185096
-
185097
- export default ${globalStoreName}
185098
185437
  `;
185099
185438
  const _data = `${artifactName}$data`;
185100
185439
  const typeDefs = `import type { ${_data}, ${store_class}, QueryStoreFetchParams} from '$houdini'
@@ -185106,11 +185445,7 @@ export declare class ${storeName} extends ${store_class}<${_data}, {}> {
185106
185445
  }
185107
185446
  }
185108
185447
 
185109
- export const ${globalStoreName}: ${storeName}
185110
-
185111
185448
  export declare const load_${artifactName}: (params: QueryStoreFetchParams<${_data}, {}>) => Promise<${storeName}>
185112
-
185113
- export default ${storeName}
185114
185449
  `;
185115
185450
  await Promise.all([
185116
185451
  fs_exports.writeFile(path_exports.join(stores_directory(plugin_root), `${fileName}.d.ts`), typeDefs),
@@ -185123,7 +185458,6 @@ export default ${storeName}
185123
185458
  async function mutationStore({ config: config4, plugin_root }, doc) {
185124
185459
  const fileName = doc.name;
185125
185460
  const storeName = store_name({ config: config4, name: doc.name });
185126
- const globalStoreName = global_store_name({ config: config4, name: doc.name });
185127
185461
  const artifactName = `${doc.name}`;
185128
185462
  const { statement, store_class } = store_import2(config4, "mutation");
185129
185463
  const storeData = `import artifact from '$houdini/artifacts/${artifactName}'
@@ -185136,10 +185470,6 @@ export class ${storeName} extends ${store_class} {
185136
185470
  })
185137
185471
  }
185138
185472
  }
185139
-
185140
- export const ${globalStoreName} = new ${storeName}()
185141
-
185142
- export default ${globalStoreName}
185143
185473
  `;
185144
185474
  const _input = `${artifactName}$input`;
185145
185475
  const _data = `${artifactName}$result`;
@@ -185152,10 +185482,6 @@ export declare class ${storeName} extends ${store_class}<${_data} | undefined, $
185152
185482
  super({})
185153
185483
  }
185154
185484
  }
185155
-
185156
- export const ${globalStoreName}: ${storeName}
185157
-
185158
- export default ${storeName}
185159
185485
  `;
185160
185486
  await Promise.all([
185161
185487
  fs_exports.writeFile(path_exports.join(stores_directory(plugin_root), `${fileName}.js`), storeData),
@@ -185169,7 +185495,6 @@ async function queryStore({ config: config4, plugin_root }, doc) {
185169
185495
  const fileName = doc.name;
185170
185496
  const artifactName = `${doc.name}`;
185171
185497
  const storeName = store_name({ config: config4, name: doc.name });
185172
- const globalStoreName = global_store_name({ config: config4, name: doc.name });
185173
185498
  let variables = false;
185174
185499
  const operation = doc.originalDocument.definitions.find(
185175
185500
  (defn) => defn.kind === "OperationDefinition" && defn.operation === "query"
@@ -185207,10 +185532,6 @@ export async function load_${artifactName}(params) {
185207
185532
  ${artifactName}: store,
185208
185533
  }
185209
185534
  }
185210
-
185211
- export const ${globalStoreName} = new ${storeName}()
185212
-
185213
- export default ${globalStoreName}
185214
185535
  `;
185215
185536
  const _input = `${artifactName}$input`;
185216
185537
  const _data = `${artifactName}$result`;
@@ -185220,26 +185541,26 @@ export declare class ${storeName} extends ${store_class}<${_data}, ${_input}> {
185220
185541
  /**
185221
185542
  * ### Route Loads
185222
185543
  * In a route's load function, manually instantiating a store can be used to look at the result:
185223
- *
185544
+ *
185224
185545
  * \`\`\`js
185225
185546
  * export async function load(event) {
185226
185547
  * const store = new ${storeName}Store()
185227
185548
  * const { data } = await store.fetch({event})
185228
185549
  * console.log('do something with', data)
185229
- *
185230
- * return {
185550
+ *
185551
+ * return {
185231
185552
  * ${storeName}: store,
185232
185553
  * }
185233
185554
  * }
185234
- *
185555
+ *
185235
185556
  * \`\`\`
185236
- *
185557
+ *
185237
185558
  * ### Client Side Loading
185238
185559
  * When performing a client-side only fetch, the best practice to use a store _manually_ is to do the following:
185239
- *
185560
+ *
185240
185561
  * \`\`\`js
185241
185562
  * const store = new ${storeName}Store()
185242
- *
185563
+ *
185243
185564
  * $: browser && store.fetch({ variables });
185244
185565
  * \`\`\`
185245
185566
  */
@@ -185252,44 +185573,40 @@ export declare class ${storeName} extends ${store_class}<${_data}, ${_input}> {
185252
185573
  /**
185253
185574
  * ### Manual Loads
185254
185575
  * Usually your load function will look like this:
185255
- *
185576
+ *
185256
185577
  * \`\`\`js
185257
185578
  * import { load_${artifactName} } from '$houdini';
185258
185579
  * import type { PageLoad } from './$types';
185259
- *
185580
+ *
185260
185581
  * export const load: PageLoad = async (event) => {
185261
185582
  * const variables = {
185262
185583
  * id: // Something like: event.url.searchParams.get('id')
185263
185584
  * };
185264
- *
185585
+ *
185265
185586
  * return await load_${artifactName}({ event, variables });
185266
- * };
185587
+ * };
185267
185588
  * \`\`\`
185268
- *
185589
+ *
185269
185590
  * ### Multiple stores to load
185270
185591
  * You can trigger them in parallel with \`loadAll\` function
185271
- *
185592
+ *
185272
185593
  * \`\`\`js
185273
185594
  * import { loadAll, load_${artifactName} } from '$houdini';
185274
185595
  * import type { PageLoad } from './$types';
185275
- *
185596
+ *
185276
185597
  * export const load: PageLoad = async (event) => {
185277
185598
  * const variables = {
185278
185599
  * id: // Something like: event.url.searchParams.get('id')
185279
185600
  * };
185280
- *
185601
+ *
185281
185602
  * return await await loadAll(
185282
185603
  * load_${artifactName}({ event, variables }),
185283
185604
  * // load_ANOTHER_STORE
185284
185605
  * );
185285
- * };
185606
+ * };
185286
185607
  * \`\`\`
185287
185608
  */
185288
185609
  export declare const load_${artifactName}: (params: QueryStoreFetchParams<${_data}, ${_input}>) => Promise<{${artifactName}: ${storeName}}>
185289
-
185290
- export const ${globalStoreName}: ${storeName}
185291
-
185292
- export default ${storeName}
185293
185610
  `;
185294
185611
  await Promise.all([
185295
185612
  fs_exports.writeFile(path_exports.join(stores_directory(plugin_root), `${fileName}.js`), storeData),
@@ -185302,7 +185619,6 @@ export default ${storeName}
185302
185619
  async function subscriptionStore({ config: config4, plugin_root }, doc) {
185303
185620
  const fileName = doc.name;
185304
185621
  const storeName = store_name({ config: config4, name: doc.name });
185305
- const globalStoreName = global_store_name({ config: config4, name: doc.name });
185306
185622
  const artifactName = `${doc.name}`;
185307
185623
  const { store_class, statement } = store_import2(config4, "subscription");
185308
185624
  const storeContent = `import artifact from '$houdini/artifacts/${artifactName}'
@@ -185315,10 +185631,6 @@ export class ${storeName} extends ${store_class} {
185315
185631
  })
185316
185632
  }
185317
185633
  }
185318
-
185319
- export const ${globalStoreName} = new ${storeName}()
185320
-
185321
- export default ${globalStoreName}
185322
185634
  `;
185323
185635
  const _input = `${artifactName}$input`;
185324
185636
  const _data = `${artifactName}$result`;
@@ -185330,10 +185642,6 @@ export declare class ${storeName} extends ${store_class}<${_data} | undefined, $
185330
185642
  super({})
185331
185643
  }
185332
185644
  }
185333
-
185334
- export const ${globalStoreName}: ${storeName}
185335
-
185336
- export default ${storeName}
185337
185645
  `;
185338
185646
  await Promise.all([
185339
185647
  fs_exports.writeFile(path_exports.join(stores_directory(plugin_root), `${fileName}.d.ts`), typeDefs),
@@ -185390,7 +185698,8 @@ async function codegen_default(input) {
185390
185698
  await Promise.all([
185391
185699
  svelteKitGenerator(input.framework, input),
185392
185700
  storesGenerator(input),
185393
- componentTypesGenerator(input.framework, input)
185701
+ componentTypesGenerator(input.framework, input),
185702
+ fragmentTypedefs(input)
185394
185703
  ]);
185395
185704
  }
185396
185705
 
@@ -185537,11 +185846,11 @@ function is_root_route(filepath) {
185537
185846
  var empty_layout = "<slot />";
185538
185847
 
185539
185848
  // src/plugin/transforms/index.ts
185540
- var recast18 = __toESM(require_main5(), 1);
185849
+ var recast23 = __toESM(require_main5(), 1);
185541
185850
 
185542
185851
  // src/plugin/transforms/kit/init.ts
185543
- var recast13 = __toESM(require_main5(), 1);
185544
- var AST13 = recast13.types.builders;
185852
+ var recast16 = __toESM(require_main5(), 1);
185853
+ var AST16 = recast16.types.builders;
185545
185854
  async function kit_init(page2) {
185546
185855
  if (!is_root_layout(page2.config, page2.filepath)) {
185547
185856
  return;
@@ -185565,9 +185874,9 @@ async function kit_init(page2) {
185565
185874
  import: ["extractSession", "setClientSession"]
185566
185875
  }).ids;
185567
185876
  page2.script.body.push(
185568
- AST13.expressionStatement(
185569
- AST13.callExpression(on_mount, [
185570
- AST13.arrowFunctionExpression([], AST13.callExpression(set_client_started, []))
185877
+ AST16.expressionStatement(
185878
+ AST16.callExpression(on_mount, [
185879
+ AST16.arrowFunctionExpression([], AST16.callExpression(set_client_started, []))
185571
185880
  ])
185572
185881
  )
185573
185882
  );
@@ -185578,17 +185887,17 @@ async function kit_init(page2) {
185578
185887
  import: ["page"]
185579
185888
  }).ids[0];
185580
185889
  page2.script.body.push(
185581
- AST13.expressionStatement(
185582
- AST13.callExpression(AST13.memberExpression(store_id, AST13.identifier("subscribe")), [
185583
- AST13.arrowFunctionExpression(
185584
- [AST13.identifier("val")],
185585
- AST13.blockStatement([
185586
- AST13.expressionStatement(
185587
- AST13.callExpression(set_session, [
185588
- AST13.callExpression(extract_session, [
185589
- AST13.memberExpression(
185590
- AST13.identifier("val"),
185591
- AST13.identifier("data")
185890
+ AST16.expressionStatement(
185891
+ AST16.callExpression(AST16.memberExpression(store_id, AST16.identifier("subscribe")), [
185892
+ AST16.arrowFunctionExpression(
185893
+ [AST16.identifier("val")],
185894
+ AST16.blockStatement([
185895
+ AST16.expressionStatement(
185896
+ AST16.callExpression(set_session, [
185897
+ AST16.callExpression(extract_session, [
185898
+ AST16.memberExpression(
185899
+ AST16.identifier("val"),
185900
+ AST16.identifier("data")
185592
185901
  )
185593
185902
  ])
185594
185903
  ])
@@ -185600,50 +185909,19 @@ async function kit_init(page2) {
185600
185909
  );
185601
185910
  }
185602
185911
 
185603
- // ../../node_modules/.pnpm/@kitql+helper@0.5.0/node_modules/@kitql/helper/index.mjs
185604
- var config3 = {
185605
- reset: {
185606
- node: `\x1B[37m\x1B[0m`,
185607
- browser: ""
185608
- },
185609
- green: {
185610
- node: `\x1B[32m`,
185611
- browser: "color: green"
185612
- },
185613
- magneta: {
185614
- node: `\x1B[35m`,
185615
- browser: "color: #ff00ff"
185616
- },
185617
- red: {
185618
- node: `\x1B[31m`,
185619
- browser: "color: red"
185620
- },
185621
- cyan: {
185622
- node: `\x1B[36m`,
185623
- browser: "color: cyan"
185624
- },
185625
- yellow: {
185626
- node: `\x1B[33m`,
185627
- browser: "color: yellow"
185628
- }
185629
- };
185630
- function logYellow(str) {
185631
- return `${config3.yellow.node}${str}${config3.reset.node}`;
185632
- }
185633
-
185634
185912
  // src/plugin/transforms/kit/load.ts
185635
- var graphql29 = __toESM(require_graphql4(), 1);
185636
- var recast15 = __toESM(require_main5(), 1);
185913
+ var graphql33 = __toESM(require_graphql4(), 1);
185914
+ var recast18 = __toESM(require_main5(), 1);
185637
185915
 
185638
185916
  // src/plugin/transforms/query.ts
185639
- var recast14 = __toESM(require_main5(), 1);
185640
- var AST14 = recast14.types.builders;
185917
+ var recast17 = __toESM(require_main5(), 1);
185918
+ var AST17 = recast17.types.builders;
185641
185919
  async function QueryProcessor(config4, page2) {
185642
185920
  if (!is_component(config4, page2.framework, page2.filepath)) {
185643
185921
  return;
185644
185922
  }
185645
185923
  const store_id = (name2) => {
185646
- return AST14.identifier(`_houdini_` + name2);
185924
+ return AST17.identifier(`_houdini_` + name2);
185647
185925
  };
185648
185926
  const queries = await find_inline_queries(page2, page2.script, store_id);
185649
185927
  if (queries.length === 0) {
@@ -185687,8 +185965,8 @@ async function QueryProcessor(config4, page2) {
185687
185965
  page2.script.body.splice(
185688
185966
  find_insert_index(page2.script),
185689
185967
  0,
185690
- AST14.variableDeclaration("const", [
185691
- AST14.variableDeclarator(store_id(query.name), AST14.newExpression(factory, []))
185968
+ AST17.variableDeclaration("const", [
185969
+ AST17.variableDeclarator(store_id(query.name), AST17.newExpression(factory, []))
185692
185970
  ])
185693
185971
  );
185694
185972
  }
@@ -185705,42 +185983,42 @@ async function QueryProcessor(config4, page2) {
185705
185983
  });
185706
185984
  }
185707
185985
  return [
185708
- AST14.labeledStatement(
185709
- AST14.identifier("$"),
185710
- AST14.expressionStatement(
185711
- AST14.callExpression(
185712
- AST14.memberExpression(
185713
- AST14.callExpression(AST14.identifier("marshalInputs"), [
185714
- AST14.objectExpression([
185715
- AST14.objectProperty(
185716
- AST14.identifier("artifact"),
185717
- AST14.memberExpression(
185986
+ AST17.labeledStatement(
185987
+ AST17.identifier("$"),
185988
+ AST17.expressionStatement(
185989
+ AST17.callExpression(
185990
+ AST17.memberExpression(
185991
+ AST17.callExpression(AST17.identifier("marshalInputs"), [
185992
+ AST17.objectExpression([
185993
+ AST17.objectProperty(
185994
+ AST17.identifier("artifact"),
185995
+ AST17.memberExpression(
185718
185996
  store_id(query.name),
185719
- AST14.identifier("artifact")
185997
+ AST17.identifier("artifact")
185720
185998
  )
185721
185999
  ),
185722
- AST14.objectProperty(
185723
- AST14.identifier("input"),
185724
- has_variables ? AST14.callExpression(
185725
- AST14.memberExpression(
185726
- AST14.identifier(variable_fn),
185727
- AST14.identifier("call")
186000
+ AST17.objectProperty(
186001
+ AST17.identifier("input"),
186002
+ has_variables ? AST17.callExpression(
186003
+ AST17.memberExpression(
186004
+ AST17.identifier(variable_fn),
186005
+ AST17.identifier("call")
185728
186006
  ),
185729
186007
  [
185730
- AST14.newExpression(
185731
- AST14.identifier("RequestContext"),
186008
+ AST17.newExpression(
186009
+ AST17.identifier("RequestContext"),
185732
186010
  []
185733
186011
  ),
185734
- AST14.objectExpression([
185735
- AST14.objectProperty(
185736
- AST14.identifier("props"),
185737
- AST14.objectExpression(
186012
+ AST17.objectExpression([
186013
+ AST17.objectProperty(
186014
+ AST17.identifier("props"),
186015
+ AST17.objectExpression(
185738
186016
  props.map(
185739
- (prop) => AST14.objectProperty(
185740
- AST14.identifier(
186017
+ (prop) => AST17.objectProperty(
186018
+ AST17.identifier(
185741
186019
  prop
185742
186020
  ),
185743
- AST14.identifier(
186021
+ AST17.identifier(
185744
186022
  prop
185745
186023
  )
185746
186024
  )
@@ -185749,27 +186027,27 @@ async function QueryProcessor(config4, page2) {
185749
186027
  )
185750
186028
  ])
185751
186029
  ]
185752
- ) : AST14.objectExpression([])
186030
+ ) : AST17.objectExpression([])
185753
186031
  )
185754
186032
  ])
185755
186033
  ]),
185756
- AST14.identifier("then")
186034
+ AST17.identifier("then")
185757
186035
  ),
185758
186036
  [
185759
- AST14.arrowFunctionExpression(
186037
+ AST17.arrowFunctionExpression(
185760
186038
  [local_input_id(query.name)],
185761
- AST14.logicalExpression(
186039
+ AST17.logicalExpression(
185762
186040
  "&&",
185763
- AST14.identifier("isBrowser"),
185764
- AST14.callExpression(
185765
- AST14.memberExpression(
186041
+ AST17.identifier("isBrowser"),
186042
+ AST17.callExpression(
186043
+ AST17.memberExpression(
185766
186044
  store_id(query.name),
185767
- AST14.identifier("fetch")
186045
+ AST17.identifier("fetch")
185768
186046
  ),
185769
186047
  [
185770
- AST14.objectExpression([
185771
- AST14.objectProperty(
185772
- AST14.identifier("variables"),
186048
+ AST17.objectExpression([
186049
+ AST17.objectProperty(
186050
+ AST17.identifier("variables"),
185773
186051
  local_input_id(query.name)
185774
186052
  )
185775
186053
  ])
@@ -185817,23 +186095,25 @@ async function find_inline_queries(page2, parsed, store_id) {
185817
186095
  });
185818
186096
  return queries.map((query) => {
185819
186097
  return {
185820
- store_id: AST14.identifier(""),
186098
+ store_id: AST17.identifier(""),
185821
186099
  name: query.name,
185822
186100
  variables: query.variables
185823
186101
  };
185824
186102
  });
185825
186103
  }
185826
- var local_input_id = (name2) => AST14.identifier(`_${name2}_Input`);
186104
+ var local_input_id = (name2) => AST17.identifier(`_${name2}_Input`);
185827
186105
 
185828
186106
  // src/plugin/transforms/kit/load.ts
185829
- var AST15 = recast15.types.builders;
186107
+ var AST18 = recast18.types.builders;
185830
186108
  async function kit_load_generator(page2) {
185831
186109
  const route = is_route(page2.config, page2.framework, page2.filepath);
185832
186110
  const script = is_route_script(page2.framework, page2.filepath);
185833
186111
  if (!route && !script) {
185834
186112
  return;
185835
186113
  }
185836
- const inline_query_store = (name2) => route ? AST15.memberExpression(AST15.identifier("data"), AST15.identifier(name2)) : store_import({
186114
+ const inline_query_store = (name2) => route ? AST18.memberExpression(AST18.identifier("data"), AST18.identifier(name2)) : artifact_import({
186115
+ config: page2.config,
186116
+ script: page2.script,
185837
186117
  page: page2,
185838
186118
  artifact: { name: name2 }
185839
186119
  }).id;
@@ -185854,7 +186134,7 @@ async function kit_load_generator(page2) {
185854
186134
  houdini_load_queries.push({
185855
186135
  name: target.name.value,
185856
186136
  variables: operation_requires_variables(target),
185857
- store_id: AST15.memberExpression(AST15.identifier(houdini_load_fn), AST15.literal(i3))
186137
+ store_id: AST18.memberExpression(AST18.identifier(houdini_load_fn), AST18.literal(i3))
185858
186138
  });
185859
186139
  }
185860
186140
  if (script) {
@@ -185886,8 +186166,8 @@ async function kit_load_generator(page2) {
185886
186166
  find_insert_index(page2.script),
185887
186167
  0,
185888
186168
  ...!has_data ? [
185889
- AST15.exportNamedDeclaration(
185890
- AST15.variableDeclaration("let", [AST15.identifier("data")])
186169
+ AST18.exportNamedDeclaration(
186170
+ AST18.variableDeclaration("let", [AST18.identifier("data")])
185891
186171
  )
185892
186172
  ] : []
185893
186173
  );
@@ -185932,43 +186212,43 @@ function add_load({
185932
186212
  let before_load = page_info.exports.includes(houdini_before_load_fn);
185933
186213
  let after_load = page_info.exports.includes(houdini_after_load_fn);
185934
186214
  let on_error = page_info.exports.includes(houdini_on_error_fn);
185935
- const request_context = AST15.identifier("houdini_context");
185936
- const promise_list = AST15.identifier("promises");
185937
- const return_value = AST15.memberExpression(request_context, AST15.identifier("returnValue"));
185938
- const result_obj = AST15.identifier("result");
185939
- const input_obj = AST15.identifier("inputs");
185940
- const preload_fn = AST15.functionDeclaration(
185941
- AST15.identifier("load"),
185942
- [AST15.identifier("context")],
185943
- AST15.blockStatement([
185944
- AST15.variableDeclaration("const", [
185945
- AST15.variableDeclarator(
186215
+ const request_context = AST18.identifier("houdini_context");
186216
+ const promise_list = AST18.identifier("promises");
186217
+ const return_value = AST18.memberExpression(request_context, AST18.identifier("returnValue"));
186218
+ const result_obj = AST18.identifier("result");
186219
+ const input_obj = AST18.identifier("inputs");
186220
+ const preload_fn = AST18.functionDeclaration(
186221
+ AST18.identifier("load"),
186222
+ [AST18.identifier("context")],
186223
+ AST18.blockStatement([
186224
+ AST18.variableDeclaration("const", [
186225
+ AST18.variableDeclarator(
185946
186226
  request_context,
185947
- AST15.newExpression(AST15.identifier("RequestContext"), [AST15.identifier("context")])
186227
+ AST18.newExpression(AST18.identifier("RequestContext"), [AST18.identifier("context")])
185948
186228
  )
185949
186229
  ]),
185950
- AST15.variableDeclaration("const", [
185951
- AST15.variableDeclarator(
185952
- AST15.identifier("houdiniConfig"),
185953
- AST15.awaitExpression(AST15.callExpression(AST15.identifier("getCurrentConfig"), []))
186230
+ AST18.variableDeclaration("const", [
186231
+ AST18.variableDeclarator(
186232
+ AST18.identifier("houdiniConfig"),
186233
+ AST18.awaitExpression(AST18.callExpression(AST18.identifier("getCurrentConfig"), []))
185954
186234
  )
185955
186235
  ]),
185956
- AST15.variableDeclaration("const", [
185957
- AST15.variableDeclarator(promise_list, AST15.arrayExpression([]))
186236
+ AST18.variableDeclaration("const", [
186237
+ AST18.variableDeclarator(promise_list, AST18.arrayExpression([]))
185958
186238
  ]),
185959
- AST15.variableDeclaration("const", [
185960
- AST15.variableDeclarator(input_obj, AST15.objectExpression([]))
186239
+ AST18.variableDeclaration("const", [
186240
+ AST18.variableDeclarator(input_obj, AST18.objectExpression([]))
185961
186241
  ]),
185962
- AST15.returnStatement(
185963
- AST15.objectExpression([
185964
- AST15.spreadElement(return_value),
185965
- AST15.spreadElement(result_obj)
186242
+ AST18.returnStatement(
186243
+ AST18.objectExpression([
186244
+ AST18.spreadElement(return_value),
186245
+ AST18.spreadElement(result_obj)
185966
186246
  ])
185967
186247
  )
185968
186248
  ])
185969
186249
  );
185970
186250
  preload_fn.async = true;
185971
- page2.script.body.push(AST15.exportNamedDeclaration(preload_fn));
186251
+ page2.script.body.push(AST18.exportNamedDeclaration(preload_fn));
185972
186252
  let insert_index = 4;
185973
186253
  for (const query of queries) {
185974
186254
  const { ids } = ensure_imports({
@@ -185978,40 +186258,39 @@ function add_load({
185978
186258
  sourceModule: store_import_path({ config: page2.config, name: query.name })
185979
186259
  });
185980
186260
  const load_fn = ids[0];
185981
- const variables = page_info.exports.includes(query_variable_fn(query.name)) ? AST15.awaitExpression(
185982
- AST15.callExpression(
185983
- AST15.memberExpression(request_context, AST15.identifier("computeInput")),
186261
+ const variables = page_info.exports.includes(query_variable_fn(query.name)) ? AST18.awaitExpression(
186262
+ AST18.callExpression(
186263
+ AST18.memberExpression(request_context, AST18.identifier("computeInput")),
185984
186264
  [
185985
- AST15.objectExpression([
185986
- AST15.objectProperty(
185987
- AST15.literal("config"),
185988
- AST15.identifier("houdiniConfig")
186265
+ AST18.objectExpression([
186266
+ AST18.objectProperty(
186267
+ AST18.literal("config"),
186268
+ AST18.identifier("houdiniConfig")
185989
186269
  ),
185990
- AST15.objectProperty(
185991
- AST15.literal("variableFunction"),
185992
- AST15.identifier(query_variable_fn(query.name))
186270
+ AST18.objectProperty(
186271
+ AST18.literal("variableFunction"),
186272
+ AST18.identifier(query_variable_fn(query.name))
185993
186273
  ),
185994
- AST15.objectProperty(
185995
- AST15.literal("artifact"),
185996
- AST15.memberExpression(
185997
- store_import({
185998
- page: page2,
185999
- artifact: query
186000
- }).id,
186001
- AST15.identifier("artifact")
186002
- )
186274
+ AST18.objectProperty(
186275
+ AST18.literal("artifact"),
186276
+ artifact_import({
186277
+ config: page2.config,
186278
+ script: page2.script,
186279
+ page: page2,
186280
+ artifact: { name: query.name }
186281
+ }).id
186003
186282
  )
186004
186283
  ])
186005
186284
  ]
186006
186285
  )
186007
- ) : AST15.objectExpression([]);
186286
+ ) : AST18.objectExpression([]);
186008
186287
  preload_fn.body.body.splice(
186009
186288
  insert_index++,
186010
186289
  0,
186011
- AST15.expressionStatement(
186012
- AST15.assignmentExpression(
186290
+ AST18.expressionStatement(
186291
+ AST18.assignmentExpression(
186013
186292
  "=",
186014
- AST15.memberExpression(input_obj, AST15.literal(query.name)),
186293
+ AST18.memberExpression(input_obj, AST18.literal(query.name)),
186015
186294
  variables
186016
186295
  )
186017
186296
  )
@@ -186019,18 +186298,18 @@ function add_load({
186019
186298
  preload_fn.body.body.splice(
186020
186299
  insert_index++,
186021
186300
  0,
186022
- AST15.expressionStatement(
186023
- AST15.callExpression(AST15.memberExpression(promise_list, AST15.identifier("push")), [
186024
- AST15.callExpression(load_fn, [
186025
- AST15.objectExpression([
186026
- AST15.objectProperty(
186027
- AST15.literal("variables"),
186028
- AST15.memberExpression(input_obj, AST15.literal(query.name))
186301
+ AST18.expressionStatement(
186302
+ AST18.callExpression(AST18.memberExpression(promise_list, AST18.identifier("push")), [
186303
+ AST18.callExpression(load_fn, [
186304
+ AST18.objectExpression([
186305
+ AST18.objectProperty(
186306
+ AST18.literal("variables"),
186307
+ AST18.memberExpression(input_obj, AST18.literal(query.name))
186029
186308
  ),
186030
- AST15.objectProperty(AST15.literal("event"), AST15.identifier("context")),
186031
- AST15.objectProperty(
186032
- AST15.literal("blocking"),
186033
- AST15.booleanLiteral(after_load || on_error)
186309
+ AST18.objectProperty(AST18.literal("event"), AST18.identifier("context")),
186310
+ AST18.objectProperty(
186311
+ AST18.literal("blocking"),
186312
+ AST18.booleanLiteral(after_load || on_error)
186034
186313
  )
186035
186314
  ])
186036
186315
  ])
@@ -186042,28 +186321,28 @@ function add_load({
186042
186321
  preload_fn.body.body.splice(
186043
186322
  insert_index++,
186044
186323
  0,
186045
- AST15.variableDeclaration("let", [
186046
- AST15.variableDeclarator(result_obj, AST15.objectExpression([]))
186324
+ AST18.variableDeclaration("let", [
186325
+ AST18.variableDeclarator(result_obj, AST18.objectExpression([]))
186047
186326
  ]),
186048
- AST15.tryStatement(
186049
- AST15.blockStatement([
186050
- AST15.expressionStatement(
186051
- AST15.assignmentExpression(
186327
+ AST18.tryStatement(
186328
+ AST18.blockStatement([
186329
+ AST18.expressionStatement(
186330
+ AST18.assignmentExpression(
186052
186331
  "=",
186053
186332
  result_obj,
186054
- AST15.callExpression(
186055
- AST15.memberExpression(
186056
- AST15.identifier("Object"),
186057
- AST15.identifier("assign")
186333
+ AST18.callExpression(
186334
+ AST18.memberExpression(
186335
+ AST18.identifier("Object"),
186336
+ AST18.identifier("assign")
186058
186337
  ),
186059
186338
  [
186060
- AST15.objectExpression([]),
186061
- AST15.spreadElement(
186062
- AST15.awaitExpression(
186063
- AST15.callExpression(
186064
- AST15.memberExpression(
186065
- AST15.identifier("Promise"),
186066
- AST15.identifier("all")
186339
+ AST18.objectExpression([]),
186340
+ AST18.spreadElement(
186341
+ AST18.awaitExpression(
186342
+ AST18.callExpression(
186343
+ AST18.memberExpression(
186344
+ AST18.identifier("Promise"),
186345
+ AST18.identifier("all")
186067
186346
  ),
186068
186347
  [promise_list]
186069
186348
  )
@@ -186074,37 +186353,37 @@ function add_load({
186074
186353
  )
186075
186354
  )
186076
186355
  ]),
186077
- AST15.catchClause(
186078
- AST15.identifier("err"),
186356
+ AST18.catchClause(
186357
+ AST18.identifier("err"),
186079
186358
  null,
186080
- AST15.blockStatement([
186081
- on_error ? AST15.expressionStatement(
186082
- AST15.awaitExpression(
186083
- AST15.callExpression(
186084
- AST15.memberExpression(
186359
+ AST18.blockStatement([
186360
+ on_error ? AST18.expressionStatement(
186361
+ AST18.awaitExpression(
186362
+ AST18.callExpression(
186363
+ AST18.memberExpression(
186085
186364
  request_context,
186086
- AST15.identifier("invokeLoadHook")
186365
+ AST18.identifier("invokeLoadHook")
186087
186366
  ),
186088
186367
  [
186089
- AST15.objectExpression([
186090
- AST15.objectProperty(
186091
- AST15.literal("variant"),
186092
- AST15.stringLiteral("error")
186368
+ AST18.objectExpression([
186369
+ AST18.objectProperty(
186370
+ AST18.literal("variant"),
186371
+ AST18.stringLiteral("error")
186093
186372
  ),
186094
- AST15.objectProperty(
186095
- AST15.literal("hookFn"),
186096
- AST15.identifier(houdini_on_error_fn)
186373
+ AST18.objectProperty(
186374
+ AST18.literal("hookFn"),
186375
+ AST18.identifier(houdini_on_error_fn)
186097
186376
  ),
186098
- AST15.objectProperty(
186099
- AST15.literal("error"),
186100
- AST15.identifier("err")
186377
+ AST18.objectProperty(
186378
+ AST18.literal("error"),
186379
+ AST18.identifier("err")
186101
186380
  ),
186102
- AST15.objectProperty(AST15.literal("input"), input_obj)
186381
+ AST18.objectProperty(AST18.literal("input"), input_obj)
186103
186382
  ])
186104
186383
  ]
186105
186384
  )
186106
186385
  )
186107
- ) : AST15.throwStatement(AST15.identifier("err"))
186386
+ ) : AST18.throwStatement(AST18.identifier("err"))
186108
186387
  ])
186109
186388
  )
186110
186389
  )
@@ -186128,7 +186407,7 @@ async function find_special_query(type, page2) {
186128
186407
  if (!contents) {
186129
186408
  return null;
186130
186409
  }
186131
- const parsed = graphql29.parse(contents);
186410
+ const parsed = graphql33.parse(contents);
186132
186411
  const definition = parsed.definitions.find(
186133
186412
  (defn) => defn.kind === "OperationDefinition" && defn.operation === "query"
186134
186413
  );
@@ -186136,33 +186415,28 @@ async function find_special_query(type, page2) {
186136
186415
  formatErrors({ message: "gql file must contain a query.", filepath: query_path });
186137
186416
  return null;
186138
186417
  }
186139
- const { id: id2 } = store_import({
186140
- page: page2,
186141
- artifact: { name: definition.name.value }
186142
- });
186143
186418
  return {
186144
- store_id: id2,
186145
186419
  name: definition.name.value,
186146
186420
  variables: operation_requires_variables(definition)
186147
186421
  };
186148
186422
  }
186149
186423
  function load_hook_statements(name2, request_context, input_id, result_id) {
186150
- return AST15.expressionStatement(
186151
- AST15.awaitExpression(
186152
- AST15.callExpression(
186153
- AST15.memberExpression(request_context, AST15.identifier("invokeLoadHook")),
186424
+ return AST18.expressionStatement(
186425
+ AST18.awaitExpression(
186426
+ AST18.callExpression(
186427
+ AST18.memberExpression(request_context, AST18.identifier("invokeLoadHook")),
186154
186428
  [
186155
- AST15.objectExpression([
186156
- AST15.objectProperty(AST15.literal("variant"), AST15.stringLiteral(name2)),
186157
- AST15.objectProperty(
186158
- AST15.literal("hookFn"),
186159
- AST15.identifier(
186429
+ AST18.objectExpression([
186430
+ AST18.objectProperty(AST18.literal("variant"), AST18.stringLiteral(name2)),
186431
+ AST18.objectProperty(
186432
+ AST18.literal("hookFn"),
186433
+ AST18.identifier(
186160
186434
  name2 === "before" ? houdini_before_load_fn : houdini_after_load_fn
186161
186435
  )
186162
186436
  ),
186163
186437
  ...name2 === "after" ? [
186164
- AST15.objectProperty(AST15.literal("input"), input_id),
186165
- AST15.objectProperty(AST15.literal("data"), result_id)
186438
+ AST18.objectProperty(AST18.literal("input"), input_id),
186439
+ AST18.objectProperty(AST18.literal("data"), result_id)
186166
186440
  ] : []
186167
186441
  ])
186168
186442
  ]
@@ -186191,8 +186465,8 @@ function unexported_data_error(filepath) {
186191
186465
  }
186192
186466
 
186193
186467
  // src/plugin/transforms/kit/session.ts
186194
- var recast16 = __toESM(require_main5(), 1);
186195
- var AST16 = recast16.types.builders;
186468
+ var recast19 = __toESM(require_main5(), 1);
186469
+ var AST19 = recast19.types.builders;
186196
186470
  function session_default(page2) {
186197
186471
  if (is_root_layout_server(page2.config, page2.filepath)) {
186198
186472
  process_root_layout_server(page2);
@@ -186208,12 +186482,12 @@ function process_root_layout_server(page2) {
186208
186482
  sourceModule: "$houdini/plugins/houdini-svelte/runtime/session"
186209
186483
  }).ids[0];
186210
186484
  add_load_return(page2, (event_id) => [
186211
- AST16.spreadElement(AST16.callExpression(build_session_object, [event_id]))
186485
+ AST19.spreadElement(AST19.callExpression(build_session_object, [event_id]))
186212
186486
  ]);
186213
186487
  }
186214
186488
  function process_root_layout_script(page2) {
186215
186489
  add_load_return(page2, (event_id) => [
186216
- AST16.spreadElement(AST16.memberExpression(event_id, AST16.identifier("data")))
186490
+ AST19.spreadElement(AST19.memberExpression(event_id, AST19.identifier("data")))
186217
186491
  ]);
186218
186492
  }
186219
186493
  function add_load_return(page2, properties) {
@@ -186225,48 +186499,48 @@ function add_load_return(page2, properties) {
186225
186499
  if (return_statement_index !== -1) {
186226
186500
  return_statement = body.body[return_statement_index];
186227
186501
  } else {
186228
- return_statement = AST16.returnStatement(AST16.objectExpression([]));
186502
+ return_statement = AST19.returnStatement(AST19.objectExpression([]));
186229
186503
  body.body.push(return_statement);
186230
186504
  return_statement_index = body.body.length - 1;
186231
186505
  }
186232
- const local_return_var = AST16.identifier("__houdini__vite__plugin__return__value__");
186233
- body.body[return_statement_index] = AST16.variableDeclaration("const", [
186234
- AST16.variableDeclarator(local_return_var, return_statement.argument)
186506
+ const local_return_var = AST19.identifier("__houdini__vite__plugin__return__value__");
186507
+ body.body[return_statement_index] = AST19.variableDeclaration("const", [
186508
+ AST19.variableDeclarator(local_return_var, return_statement.argument)
186235
186509
  ]);
186236
186510
  body.body.splice(
186237
186511
  return_statement_index + 1,
186238
186512
  0,
186239
- AST16.returnStatement(
186240
- AST16.objectExpression([...properties(event_id), AST16.spreadElement(local_return_var)])
186513
+ AST19.returnStatement(
186514
+ AST19.objectExpression([...properties(event_id), AST19.spreadElement(local_return_var)])
186241
186515
  )
186242
186516
  );
186243
186517
  });
186244
186518
  }
186245
186519
  function modify_load(page2, cb) {
186246
186520
  let load_fn = find_exported_fn(page2.script.body, "load");
186247
- let event_id = AST16.identifier("event");
186248
- let body = AST16.blockStatement([]);
186521
+ let event_id = AST19.identifier("event");
186522
+ let body = AST19.blockStatement([]);
186249
186523
  if (load_fn?.type === "ArrowFunctionExpression") {
186250
186524
  if (load_fn.body.type === "BlockStatement") {
186251
186525
  body = load_fn.body;
186252
186526
  } else {
186253
- body = AST16.blockStatement([AST16.returnStatement(load_fn.body)]);
186527
+ body = AST19.blockStatement([AST19.returnStatement(load_fn.body)]);
186254
186528
  load_fn.body = body;
186255
186529
  }
186256
186530
  } else if (load_fn) {
186257
186531
  body = load_fn.body;
186258
186532
  }
186259
186533
  if (!load_fn) {
186260
- load_fn = AST16.functionDeclaration(
186261
- AST16.identifier("load"),
186534
+ load_fn = AST19.functionDeclaration(
186535
+ AST19.identifier("load"),
186262
186536
  [event_id],
186263
- AST16.blockStatement([])
186537
+ AST19.blockStatement([])
186264
186538
  );
186265
186539
  load_fn.async = true;
186266
186540
  page2.script.body.splice(
186267
186541
  find_insert_index(page2.script),
186268
186542
  0,
186269
- AST16.exportNamedDeclaration(load_fn)
186543
+ AST19.exportNamedDeclaration(load_fn)
186270
186544
  );
186271
186545
  body = load_fn.body;
186272
186546
  } else {
@@ -186278,7 +186552,7 @@ function modify_load(page2, cb) {
186278
186552
  const pattern = load_fn.params[0];
186279
186553
  load_fn.params[0] = event_id;
186280
186554
  body.body.unshift(
186281
- AST16.variableDeclaration("let", [AST16.variableDeclarator(pattern, event_id)])
186555
+ AST19.variableDeclaration("let", [AST19.variableDeclarator(pattern, event_id)])
186282
186556
  );
186283
186557
  } else {
186284
186558
  throw new Error(
@@ -186411,13 +186685,13 @@ function walk2(ast, { enter, leave }) {
186411
186685
  }
186412
186686
 
186413
186687
  // src/plugin/transforms/reactive.ts
186414
- var recast17 = __toESM(require_main5(), 1);
186415
- var AST17 = recast17.types.builders;
186688
+ var recast20 = __toESM(require_main5(), 1);
186689
+ var AST20 = recast20.types.builders;
186416
186690
  async function ReactiveProcessor(config4, page2) {
186417
186691
  if (!is_component(config4, page2.framework, page2.filepath) && !is_route(config4, page2.framework, page2.filepath)) {
186418
186692
  return;
186419
186693
  }
186420
- const magicFunctions = ["query", "graphql", "fragment", "paginatedFragment", "paginatedQuery"];
186694
+ const magicFunctions = ["graphql", "fragment", "paginatedFragment"];
186421
186695
  if (!magicFunctions.includes("graphql") || magicFunctions.length === 1) {
186422
186696
  return;
186423
186697
  }
@@ -186450,9 +186724,9 @@ async function ReactiveProcessor(config4, page2) {
186450
186724
  declaration.id.typeAnnotation = null;
186451
186725
  }
186452
186726
  this.replace(
186453
- AST17.labeledStatement(
186454
- AST17.identifier("$"),
186455
- AST17.expressionStatement(AST17.assignmentExpression("=", declaration.id, value2))
186727
+ AST20.labeledStatement(
186728
+ AST20.identifier("$"),
186729
+ AST20.expressionStatement(AST20.assignmentExpression("=", declaration.id, value2))
186456
186730
  )
186457
186731
  );
186458
186732
  }
@@ -186462,9 +186736,11 @@ function filterCallExpr(expr) {
186462
186736
  if (expr.type !== "CallExpression" || expr.callee.type !== "Identifier") {
186463
186737
  return;
186464
186738
  }
186465
- const callExpr = expr;
186466
- const tag2 = callExpr.arguments.find(
186467
- (arg) => arg.type === "TaggedTemplateExpression" && arg.tag.type === "Identifier" && arg.tag.name === "graphql"
186739
+ if (expr.callee.type === "Identifier" && expr.callee.name === "graphql" && expr.arguments.length === 1 && (expr.arguments[0].type === "StringLiteral" || expr.arguments[0].type === "TemplateLiteral")) {
186740
+ return true;
186741
+ }
186742
+ const tag2 = expr.arguments.find(
186743
+ (arg) => arg.type === "TaggedTemplateExpression" && arg.tag.type === "Identifier" && arg.tag.name === "graphql" || arg.type === "CallExpression" && arg.callee.type === "Identifier" && arg.callee.name === "graphql" && arg.arguments.length === 1 && (arg.arguments[0].type === "StringLiteral" || arg.arguments[0].type === "TemplateLiteral")
186468
186744
  );
186469
186745
  if (!tag2) {
186470
186746
  return;
@@ -186476,13 +186752,16 @@ function filterTaggedTemplate(expr) {
186476
186752
  }
186477
186753
 
186478
186754
  // src/plugin/transforms/tags.ts
186755
+ var recast21 = __toESM(require_main5(), 1);
186756
+ var AST21 = recast21.types.builders;
186479
186757
  async function GraphQLTagProcessor(config4, page2) {
186480
186758
  await find_graphql(config4, page2.script, {
186481
186759
  dependency: page2.watch_file,
186482
186760
  tag(tag2) {
186483
186761
  const { node: node2, parsedDocument } = tag2;
186484
186762
  const operation = config4.extractDefinition(parsedDocument);
186485
- node2.replaceWith(store_import({ page: page2, artifact: { name: operation.name.value } }).id);
186763
+ const { id: id2 } = store_import({ page: page2, artifact: { name: operation.name.value } });
186764
+ node2.replaceWith(AST21.newExpression(id2, []));
186486
186765
  }
186487
186766
  });
186488
186767
  }
@@ -186504,7 +186783,7 @@ async function apply_transforms(framework2, page2) {
186504
186783
  script = {
186505
186784
  start: 0,
186506
186785
  end: 0,
186507
- script: recast18.types.builders.program([])
186786
+ script: recast23.types.builders.program([])
186508
186787
  };
186509
186788
  }
186510
186789
  if (!script) {
@@ -186521,7 +186800,7 @@ async function apply_transforms(framework2, page2) {
186521
186800
  formatErrors({ message: e3.message, filepath: page2.filepath });
186522
186801
  return { code: page2.content };
186523
186802
  }
186524
- const printedScript = recast18.print(result.script).code;
186803
+ const printedScript = recast23.print(result.script).code;
186525
186804
  return {
186526
186805
  code: !page2.filepath.endsWith(".svelte") ? printedScript : replace_tag_content(page2.content, script.start, script.end, printedScript)
186527
186806
  };
@@ -186575,6 +186854,7 @@ async function validateDocuments({
186575
186854
  // src/plugin/index.ts
186576
186855
  var framework = "svelte";
186577
186856
  var HoudiniSveltePlugin = async () => ({
186857
+ order: "core",
186578
186858
  extensions: [".svelte"],
186579
186859
  transform_runtime: {
186580
186860
  "network.js": ({ config: config4, content }) => {
@@ -186615,6 +186895,19 @@ export const error = svelteKitError
186615
186895
  framework
186616
186896
  });
186617
186897
  },
186898
+ graphql_tag_return({ config: config4, doc, ensure_import }) {
186899
+ if (doc.generateStore) {
186900
+ const store = store_name({ config: config4, name: doc.name });
186901
+ ensure_import({
186902
+ identifier: store,
186903
+ module: store_import_path({
186904
+ config: config4,
186905
+ name: doc.name
186906
+ }).replaceAll("$houdini", "..")
186907
+ });
186908
+ return store;
186909
+ }
186910
+ },
186618
186911
  index_file({ config: config4, content, export_star_from, plugin_root }) {
186619
186912
  const storesDir = "./" + path_exports.relative(config4.rootDir, stores_directory(plugin_root)).split(path_exports.sep).join("/");
186620
186913
  return content + export_star_from({ module: storesDir });
@@ -186629,13 +186922,6 @@ export const error = svelteKitError
186629
186922
  ...fsPatch_default(() => framework)
186630
186923
  },
186631
186924
  async after_load(cfg) {
186632
- if (store_name({ config: cfg, name: "QueryName" }) === global_store_name({ config: cfg, name: "QueryName" })) {
186633
- throw new HoudiniError({
186634
- filepath: cfg.filepath,
186635
- message: 'Invalid cfg file: "globalStoreName" and "storeName" are overlapping',
186636
- description: `Here, both gives: ${store_name({ config: cfg, name: "QueryName" })}`
186637
- });
186638
- }
186639
186925
  const cfgPlugin = plugin_config(cfg);
186640
186926
  let client_file_exists = false;
186641
186927
  if (path_exports.extname(cfgPlugin.client)) {
@@ -186658,8 +186944,22 @@ export const error = svelteKitError
186658
186944
  framework = "kit";
186659
186945
  } catch {
186660
186946
  }
186947
+ },
186948
+ async env({ config: config4 }) {
186949
+ if (_env) {
186950
+ return _env;
186951
+ }
186952
+ const config_file = path_exports.join(config4.projectRoot, "svelte.config.js");
186953
+ let svelte_kit_cfg = {};
186954
+ try {
186955
+ svelte_kit_cfg = !fs_exports.existsSync(config_file) ? {} : await import(`${url.pathToFileURL(config_file).href}?ts=${Date.now()}`);
186956
+ } catch {
186957
+ }
186958
+ _env = loadEnv("dev", svelte_kit_cfg.kit?.dir || ".", "");
186959
+ return _env;
186661
186960
  }
186662
186961
  });
186962
+ var _env;
186663
186963
  var plugin_default = HoudiniSveltePlugin;
186664
186964
  export {
186665
186965
  plugin_default as default