@swagger-api/apidom-parser-adapter-json 1.0.0-alpha.0 → 1.0.0-alpha.10

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,42 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.10](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2024-10-21)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
9
+
10
+ # [1.0.0-alpha.9](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2024-08-14)
11
+
12
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
13
+
14
+ # [1.0.0-alpha.8](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2024-08-08)
15
+
16
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
17
+
18
+ # [1.0.0-alpha.7](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2024-08-05)
19
+
20
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
21
+
22
+ # [1.0.0-alpha.6](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2024-07-09)
23
+
24
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
25
+
26
+ # [1.0.0-alpha.5](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2024-05-29)
27
+
28
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
29
+
30
+ # [1.0.0-alpha.3](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2024-05-21)
31
+
32
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
33
+
34
+ # [1.0.0-alpha.2](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2024-05-20)
35
+
36
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
37
+
38
+ # [1.0.0-alpha.1](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2024-05-15)
39
+
40
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
41
+
6
42
  # [1.0.0-alpha.0](https://github.com/swagger-api/apidom/compare/v0.99.2...v1.0.0-alpha.0) (2024-05-14)
7
43
 
8
44
  **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
@@ -6820,6 +6820,7 @@ var createMethod = function (IS_INCLUDES) {
6820
6820
  return function ($this, el, fromIndex) {
6821
6821
  var O = toIndexedObject($this);
6822
6822
  var length = lengthOfArrayLike(O);
6823
+ if (length === 0) return !IS_INCLUDES && -1;
6823
6824
  var index = toAbsoluteIndex(fromIndex, length);
6824
6825
  var value;
6825
6826
  // Array#includes uses SameValueZero equality algorithm
@@ -7015,16 +7016,16 @@ module.exports = function (target, key, value, options) {
7015
7016
 
7016
7017
  "use strict";
7017
7018
 
7018
- var global = __webpack_require__(1063);
7019
+ var globalThis = __webpack_require__(8900);
7019
7020
 
7020
7021
  // eslint-disable-next-line es/no-object-defineproperty -- safe
7021
7022
  var defineProperty = Object.defineProperty;
7022
7023
 
7023
7024
  module.exports = function (key, value) {
7024
7025
  try {
7025
- defineProperty(global, key, { value: value, configurable: true, writable: true });
7026
+ defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
7026
7027
  } catch (error) {
7027
- global[key] = value;
7028
+ globalThis[key] = value;
7028
7029
  } return value;
7029
7030
  };
7030
7031
 
@@ -7052,10 +7053,10 @@ module.exports = !fails(function () {
7052
7053
 
7053
7054
  "use strict";
7054
7055
 
7055
- var global = __webpack_require__(1063);
7056
+ var globalThis = __webpack_require__(8900);
7056
7057
  var isObject = __webpack_require__(262);
7057
7058
 
7058
- var document = global.document;
7059
+ var document = globalThis.document;
7059
7060
  // typeof document.createElement is 'object' in old IE
7060
7061
  var EXISTS = isObject(document) && isObject(document.createElement);
7061
7062
 
@@ -7110,26 +7111,50 @@ module.exports = {
7110
7111
 
7111
7112
  /***/ }),
7112
7113
 
7113
- /***/ 7868:
7114
+ /***/ 9683:
7114
7115
  /***/ ((module) => {
7115
7116
 
7116
7117
  "use strict";
7117
7118
 
7118
- module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
7119
+ // IE8- don't enum bug keys
7120
+ module.exports = [
7121
+ 'constructor',
7122
+ 'hasOwnProperty',
7123
+ 'isPrototypeOf',
7124
+ 'propertyIsEnumerable',
7125
+ 'toLocaleString',
7126
+ 'toString',
7127
+ 'valueOf'
7128
+ ];
7129
+
7130
+
7131
+ /***/ }),
7132
+
7133
+ /***/ 3531:
7134
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7135
+
7136
+ "use strict";
7137
+
7138
+ var globalThis = __webpack_require__(8900);
7139
+
7140
+ var navigator = globalThis.navigator;
7141
+ var userAgent = navigator && navigator.userAgent;
7142
+
7143
+ module.exports = userAgent ? String(userAgent) : '';
7119
7144
 
7120
7145
 
7121
7146
  /***/ }),
7122
7147
 
7123
- /***/ 4432:
7148
+ /***/ 5547:
7124
7149
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7125
7150
 
7126
7151
  "use strict";
7127
7152
 
7128
- var global = __webpack_require__(1063);
7129
- var userAgent = __webpack_require__(7868);
7153
+ var globalThis = __webpack_require__(8900);
7154
+ var userAgent = __webpack_require__(3531);
7130
7155
 
7131
- var process = global.process;
7132
- var Deno = global.Deno;
7156
+ var process = globalThis.process;
7157
+ var Deno = globalThis.Deno;
7133
7158
  var versions = process && process.versions || Deno && Deno.version;
7134
7159
  var v8 = versions && versions.v8;
7135
7160
  var match, version;
@@ -7154,25 +7179,6 @@ if (!version && userAgent) {
7154
7179
  module.exports = version;
7155
7180
 
7156
7181
 
7157
- /***/ }),
7158
-
7159
- /***/ 9683:
7160
- /***/ ((module) => {
7161
-
7162
- "use strict";
7163
-
7164
- // IE8- don't enum bug keys
7165
- module.exports = [
7166
- 'constructor',
7167
- 'hasOwnProperty',
7168
- 'isPrototypeOf',
7169
- 'propertyIsEnumerable',
7170
- 'toLocaleString',
7171
- 'toString',
7172
- 'valueOf'
7173
- ];
7174
-
7175
-
7176
7182
  /***/ }),
7177
7183
 
7178
7184
  /***/ 3885:
@@ -7245,7 +7251,7 @@ module.exports = !fails(function () {
7245
7251
 
7246
7252
  "use strict";
7247
7253
 
7248
- var global = __webpack_require__(1063);
7254
+ var globalThis = __webpack_require__(8900);
7249
7255
  var apply = __webpack_require__(7013);
7250
7256
  var uncurryThis = __webpack_require__(9344);
7251
7257
  var isCallable = __webpack_require__(2769);
@@ -7255,6 +7261,8 @@ var path = __webpack_require__(8099);
7255
7261
  var bind = __webpack_require__(4572);
7256
7262
  var createNonEnumerableProperty = __webpack_require__(3999);
7257
7263
  var hasOwn = __webpack_require__(701);
7264
+ // add debugging info
7265
+ __webpack_require__(3753);
7258
7266
 
7259
7267
  var wrapConstructor = function (NativeConstructor) {
7260
7268
  var Wrapper = function (a, b, c) {
@@ -7291,7 +7299,7 @@ module.exports = function (options, source) {
7291
7299
  var STATIC = options.stat;
7292
7300
  var PROTO = options.proto;
7293
7301
 
7294
- var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : global[TARGET] && global[TARGET].prototype;
7302
+ var nativeSource = GLOBAL ? globalThis : STATIC ? globalThis[TARGET] : globalThis[TARGET] && globalThis[TARGET].prototype;
7295
7303
 
7296
7304
  var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
7297
7305
  var targetPrototype = target.prototype;
@@ -7317,7 +7325,7 @@ module.exports = function (options, source) {
7317
7325
  if (!FORCED && !PROTO && typeof targetProperty == typeof sourceProperty) continue;
7318
7326
 
7319
7327
  // bind methods to global for calling from export context
7320
- if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);
7328
+ if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, globalThis);
7321
7329
  // wrap global constructors for prevent changes in this version
7322
7330
  else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
7323
7331
  // make static versions for prototype methods
@@ -7528,7 +7536,7 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
7528
7536
  "use strict";
7529
7537
 
7530
7538
  var path = __webpack_require__(8099);
7531
- var global = __webpack_require__(1063);
7539
+ var globalThis = __webpack_require__(8900);
7532
7540
  var isCallable = __webpack_require__(2769);
7533
7541
 
7534
7542
  var aFunction = function (variable) {
@@ -7536,8 +7544,8 @@ var aFunction = function (variable) {
7536
7544
  };
7537
7545
 
7538
7546
  module.exports = function (namespace, method) {
7539
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
7540
- : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
7547
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis[namespace])
7548
+ : path[namespace] && path[namespace][method] || globalThis[namespace] && globalThis[namespace][method];
7541
7549
  };
7542
7550
 
7543
7551
 
@@ -7605,7 +7613,7 @@ module.exports = function (V, P) {
7605
7613
 
7606
7614
  /***/ }),
7607
7615
 
7608
- /***/ 1063:
7616
+ /***/ 8900:
7609
7617
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
7610
7618
 
7611
7619
  "use strict";
@@ -7767,7 +7775,7 @@ module.exports = function (O, options) {
7767
7775
  "use strict";
7768
7776
 
7769
7777
  var NATIVE_WEAK_MAP = __webpack_require__(1314);
7770
- var global = __webpack_require__(1063);
7778
+ var globalThis = __webpack_require__(8900);
7771
7779
  var isObject = __webpack_require__(262);
7772
7780
  var createNonEnumerableProperty = __webpack_require__(3999);
7773
7781
  var hasOwn = __webpack_require__(701);
@@ -7776,8 +7784,8 @@ var sharedKey = __webpack_require__(4275);
7776
7784
  var hiddenKeys = __webpack_require__(5241);
7777
7785
 
7778
7786
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
7779
- var TypeError = global.TypeError;
7780
- var WeakMap = global.WeakMap;
7787
+ var TypeError = globalThis.TypeError;
7788
+ var WeakMap = globalThis.WeakMap;
7781
7789
  var set, get, has;
7782
7790
 
7783
7791
  var enforce = function (it) {
@@ -8374,7 +8382,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
8374
8382
  activeXDocument.write(scriptTag(''));
8375
8383
  activeXDocument.close();
8376
8384
  var temp = activeXDocument.parentWindow.Object;
8377
- activeXDocument = null; // avoid memory leak
8385
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
8386
+ activeXDocument = null;
8378
8387
  return temp;
8379
8388
  };
8380
8389
 
@@ -8696,7 +8705,8 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
8696
8705
 
8697
8706
  /* eslint-disable no-proto -- safe */
8698
8707
  var uncurryThisAccessor = __webpack_require__(3574);
8699
- var anObject = __webpack_require__(7235);
8708
+ var isObject = __webpack_require__(262);
8709
+ var requireObjectCoercible = __webpack_require__(5426);
8700
8710
  var aPossiblePrototype = __webpack_require__(1966);
8701
8711
 
8702
8712
  // `Object.setPrototypeOf` method
@@ -8713,8 +8723,9 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
8713
8723
  CORRECT_SETTER = test instanceof Array;
8714
8724
  } catch (error) { /* empty */ }
8715
8725
  return function setPrototypeOf(O, proto) {
8716
- anObject(O);
8726
+ requireObjectCoercible(O);
8717
8727
  aPossiblePrototype(proto);
8728
+ if (!isObject(O)) return O;
8718
8729
  if (CORRECT_SETTER) setter(O, proto);
8719
8730
  else O.__proto__ = proto;
8720
8731
  return O;
@@ -8886,13 +8897,20 @@ module.exports = function (key) {
8886
8897
 
8887
8898
  "use strict";
8888
8899
 
8889
- var global = __webpack_require__(1063);
8900
+ var IS_PURE = __webpack_require__(4871);
8901
+ var globalThis = __webpack_require__(8900);
8890
8902
  var defineGlobalProperty = __webpack_require__(7525);
8891
8903
 
8892
8904
  var SHARED = '__core-js_shared__';
8893
- var store = global[SHARED] || defineGlobalProperty(SHARED, {});
8905
+ var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
8894
8906
 
8895
- module.exports = store;
8907
+ (store.versions || (store.versions = [])).push({
8908
+ version: '3.38.1',
8909
+ mode: IS_PURE ? 'pure' : 'global',
8910
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
8911
+ license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
8912
+ source: 'https://github.com/zloirock/core-js'
8913
+ });
8896
8914
 
8897
8915
 
8898
8916
  /***/ }),
@@ -8902,18 +8920,11 @@ module.exports = store;
8902
8920
 
8903
8921
  "use strict";
8904
8922
 
8905
- var IS_PURE = __webpack_require__(4871);
8906
8923
  var store = __webpack_require__(3753);
8907
8924
 
8908
- (module.exports = function (key, value) {
8909
- return store[key] || (store[key] = value !== undefined ? value : {});
8910
- })('versions', []).push({
8911
- version: '3.35.1',
8912
- mode: IS_PURE ? 'pure' : 'global',
8913
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
8914
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
8915
- source: 'https://github.com/zloirock/core-js'
8916
- });
8925
+ module.exports = function (key, value) {
8926
+ return store[key] || (store[key] = value || {});
8927
+ };
8917
8928
 
8918
8929
 
8919
8930
  /***/ }),
@@ -8969,11 +8980,11 @@ module.exports = {
8969
8980
  "use strict";
8970
8981
 
8971
8982
  /* eslint-disable es/no-symbol -- required for testing */
8972
- var V8_VERSION = __webpack_require__(4432);
8983
+ var V8_VERSION = __webpack_require__(5547);
8973
8984
  var fails = __webpack_require__(1203);
8974
- var global = __webpack_require__(1063);
8985
+ var globalThis = __webpack_require__(8900);
8975
8986
 
8976
- var $String = global.String;
8987
+ var $String = globalThis.String;
8977
8988
 
8978
8989
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
8979
8990
  module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
@@ -9245,10 +9256,10 @@ module.exports = DESCRIPTORS && fails(function () {
9245
9256
 
9246
9257
  "use strict";
9247
9258
 
9248
- var global = __webpack_require__(1063);
9259
+ var globalThis = __webpack_require__(8900);
9249
9260
  var isCallable = __webpack_require__(2769);
9250
9261
 
9251
- var WeakMap = global.WeakMap;
9262
+ var WeakMap = globalThis.WeakMap;
9252
9263
 
9253
9264
  module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
9254
9265
 
@@ -9260,14 +9271,14 @@ module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
9260
9271
 
9261
9272
  "use strict";
9262
9273
 
9263
- var global = __webpack_require__(1063);
9274
+ var globalThis = __webpack_require__(8900);
9264
9275
  var shared = __webpack_require__(8141);
9265
9276
  var hasOwn = __webpack_require__(701);
9266
9277
  var uid = __webpack_require__(1268);
9267
9278
  var NATIVE_SYMBOL = __webpack_require__(4603);
9268
9279
  var USE_SYMBOL_AS_UID = __webpack_require__(7460);
9269
9280
 
9270
- var Symbol = global.Symbol;
9281
+ var Symbol = globalThis.Symbol;
9271
9282
  var WellKnownSymbolsStore = shared('wks');
9272
9283
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
9273
9284
 
@@ -9499,7 +9510,7 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
9499
9510
  var target = state.target;
9500
9511
  var index = state.index++;
9501
9512
  if (!target || index >= target.length) {
9502
- state.target = undefined;
9513
+ state.target = null;
9503
9514
  return createIterResultObject(undefined, true);
9504
9515
  }
9505
9516
  switch (state.kind) {
@@ -9533,12 +9544,12 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
9533
9544
 
9534
9545
  /* eslint-disable no-unused-vars -- required for functions `.length` */
9535
9546
  var $ = __webpack_require__(9098);
9536
- var global = __webpack_require__(1063);
9547
+ var globalThis = __webpack_require__(8900);
9537
9548
  var apply = __webpack_require__(7013);
9538
9549
  var wrapErrorConstructorWithCause = __webpack_require__(6453);
9539
9550
 
9540
9551
  var WEB_ASSEMBLY = 'WebAssembly';
9541
- var WebAssembly = global[WEB_ASSEMBLY];
9552
+ var WebAssembly = globalThis[WEB_ASSEMBLY];
9542
9553
 
9543
9554
  // eslint-disable-next-line es/no-error-cause -- feature detection
9544
9555
  var FORCED = new Error('e', { cause: 7 }).cause !== 7;
@@ -9649,12 +9660,12 @@ __webpack_require__(5695);
9649
9660
 
9650
9661
  __webpack_require__(9828);
9651
9662
  var DOMIterables = __webpack_require__(1100);
9652
- var global = __webpack_require__(1063);
9663
+ var globalThis = __webpack_require__(8900);
9653
9664
  var setToStringTag = __webpack_require__(1811);
9654
9665
  var Iterators = __webpack_require__(6625);
9655
9666
 
9656
9667
  for (var COLLECTION_NAME in DOMIterables) {
9657
- setToStringTag(global[COLLECTION_NAME], COLLECTION_NAME);
9668
+ setToStringTag(globalThis[COLLECTION_NAME], COLLECTION_NAME);
9658
9669
  Iterators[COLLECTION_NAME] = Iterators.Array;
9659
9670
  }
9660
9671
 
@@ -11097,7 +11108,7 @@ __webpack_require__.r(__webpack_exports__);
11097
11108
  * @since v0.1.0
11098
11109
  * @category List
11099
11110
  * @sig [a] -> a | Undefined
11100
- * @sig String -> String
11111
+ * @sig String -> String | Undefined
11101
11112
  * @param {Array|String} list
11102
11113
  * @return {*}
11103
11114
  * @see R.tail, R.init, R.last
@@ -11107,7 +11118,7 @@ __webpack_require__.r(__webpack_exports__);
11107
11118
  * R.head([]); //=> undefined
11108
11119
  *
11109
11120
  * R.head('abc'); //=> 'a'
11110
- * R.head(''); //=> ''
11121
+ * R.head(''); //=> undefined
11111
11122
  */
11112
11123
  var head = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (list) {
11113
11124
  return (0,_internal_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0, list);
@@ -12201,10 +12212,8 @@ __webpack_require__.r(__webpack_exports__);
12201
12212
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12202
12213
  /* harmony export */ "default": () => (/* binding */ _isPlaceholder)
12203
12214
  /* harmony export */ });
12204
- /* harmony import */ var _placeholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(231);
12205
-
12206
12215
  function _isPlaceholder(a) {
12207
- return a === _placeholder_js__WEBPACK_IMPORTED_MODULE_0__["default"];
12216
+ return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
12208
12217
  }
12209
12218
 
12210
12219
  /***/ }),
@@ -12374,20 +12383,6 @@ function _pipe(f, g) {
12374
12383
 
12375
12384
  /***/ }),
12376
12385
 
12377
- /***/ 231:
12378
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
12379
-
12380
- "use strict";
12381
- __webpack_require__.r(__webpack_exports__);
12382
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12383
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12384
- /* harmony export */ });
12385
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
12386
- '@@functional/placeholder': true
12387
- });
12388
-
12389
- /***/ }),
12390
-
12391
12386
  /***/ 9569:
12392
12387
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
12393
12388
 
@@ -14440,7 +14435,7 @@ const cloneNode = node => Object.create(Object.getPrototypeOf(node), Object.getO
14440
14435
  * parallel. Each visitor will be visited for each node before moving on.
14441
14436
  *
14442
14437
  * If a prior visitor edits a node, no following visitors will see that node.
14443
- * `exposeEdits=true` can be used to exoise the edited node from the previous visitors.
14438
+ * `exposeEdits=true` can be used to expose the edited node from the previous visitors.
14444
14439
  */
14445
14440
 
14446
14441
  const mergeAll = (visitors, {
@@ -14454,14 +14449,21 @@ const mergeAll = (visitors, {
14454
14449
  const skipSymbol = Symbol('skip');
14455
14450
  const skipping = new Array(visitors.length).fill(skipSymbol);
14456
14451
  return {
14457
- enter(node, ...rest) {
14452
+ enter(node, key, parent, path, ancestors, link) {
14458
14453
  let currentNode = node;
14459
14454
  let hasChanged = false;
14455
+ const linkProxy = {
14456
+ ...link,
14457
+ replaceWith(newNode, replacer) {
14458
+ link.replaceWith(newNode, replacer);
14459
+ currentNode = newNode;
14460
+ }
14461
+ };
14460
14462
  for (let i = 0; i < visitors.length; i += 1) {
14461
14463
  if (skipping[i] === skipSymbol) {
14462
14464
  const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
14463
14465
  if (typeof visitFn === 'function') {
14464
- const result = visitFn.call(visitors[i], currentNode, ...rest);
14466
+ const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
14465
14467
 
14466
14468
  // check if the visitor is async
14467
14469
  if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
@@ -14471,7 +14473,7 @@ const mergeAll = (visitors, {
14471
14473
  });
14472
14474
  }
14473
14475
  if (result === skipVisitingNodeSymbol) {
14474
- skipping[i] = node;
14476
+ skipping[i] = currentNode;
14475
14477
  } else if (result === breakSymbol) {
14476
14478
  skipping[i] = breakSymbol;
14477
14479
  } else if (result === deleteNodeSymbol) {
@@ -14489,12 +14491,20 @@ const mergeAll = (visitors, {
14489
14491
  }
14490
14492
  return hasChanged ? currentNode : undefined;
14491
14493
  },
14492
- leave(node, ...rest) {
14494
+ leave(node, key, parent, path, ancestors, link) {
14495
+ let currentNode = node;
14496
+ const linkProxy = {
14497
+ ...link,
14498
+ replaceWith(newNode, replacer) {
14499
+ link.replaceWith(newNode, replacer);
14500
+ currentNode = newNode;
14501
+ }
14502
+ };
14493
14503
  for (let i = 0; i < visitors.length; i += 1) {
14494
14504
  if (skipping[i] === skipSymbol) {
14495
- const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
14505
+ const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
14496
14506
  if (typeof visitFn === 'function') {
14497
- const result = visitFn.call(visitors[i], node, ...rest);
14507
+ const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
14498
14508
 
14499
14509
  // check if the visitor is async
14500
14510
  if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
@@ -14509,7 +14519,7 @@ const mergeAll = (visitors, {
14509
14519
  return result;
14510
14520
  }
14511
14521
  }
14512
- } else if (skipping[i] === node) {
14522
+ } else if (skipping[i] === currentNode) {
14513
14523
  skipping[i] = skipSymbol;
14514
14524
  }
14515
14525
  }
@@ -14528,17 +14538,24 @@ const mergeAllAsync = (visitors, {
14528
14538
  const skipSymbol = Symbol('skip');
14529
14539
  const skipping = new Array(visitors.length).fill(skipSymbol);
14530
14540
  return {
14531
- async enter(node, ...rest) {
14541
+ async enter(node, key, parent, path, ancestors, link) {
14532
14542
  let currentNode = node;
14533
14543
  let hasChanged = false;
14544
+ const linkProxy = {
14545
+ ...link,
14546
+ replaceWith(newNode, replacer) {
14547
+ link.replaceWith(newNode, replacer);
14548
+ currentNode = newNode;
14549
+ }
14550
+ };
14534
14551
  for (let i = 0; i < visitors.length; i += 1) {
14535
14552
  if (skipping[i] === skipSymbol) {
14536
14553
  const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
14537
14554
  if (typeof visitFn === 'function') {
14538
14555
  // eslint-disable-next-line no-await-in-loop
14539
- const result = await visitFn.call(visitors[i], currentNode, ...rest);
14556
+ const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
14540
14557
  if (result === skipVisitingNodeSymbol) {
14541
- skipping[i] = node;
14558
+ skipping[i] = currentNode;
14542
14559
  } else if (result === breakSymbol) {
14543
14560
  skipping[i] = breakSymbol;
14544
14561
  } else if (result === deleteNodeSymbol) {
@@ -14556,20 +14573,28 @@ const mergeAllAsync = (visitors, {
14556
14573
  }
14557
14574
  return hasChanged ? currentNode : undefined;
14558
14575
  },
14559
- async leave(node, ...rest) {
14576
+ async leave(node, key, parent, path, ancestors, link) {
14577
+ let currentNode = node;
14578
+ const linkProxy = {
14579
+ ...link,
14580
+ replaceWith(newNode, replacer) {
14581
+ link.replaceWith(newNode, replacer);
14582
+ currentNode = newNode;
14583
+ }
14584
+ };
14560
14585
  for (let i = 0; i < visitors.length; i += 1) {
14561
14586
  if (skipping[i] === skipSymbol) {
14562
- const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
14587
+ const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
14563
14588
  if (typeof visitFn === 'function') {
14564
14589
  // eslint-disable-next-line no-await-in-loop
14565
- const result = await visitFn.call(visitors[i], node, ...rest);
14590
+ const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
14566
14591
  if (result === breakSymbol) {
14567
14592
  skipping[i] = breakSymbol;
14568
14593
  } else if (result !== undefined && result !== skipVisitingNodeSymbol) {
14569
14594
  return result;
14570
14595
  }
14571
14596
  }
14572
- } else if (skipping[i] === node) {
14597
+ } else if (skipping[i] === currentNode) {
14573
14598
  skipping[i] = skipSymbol;
14574
14599
  }
14575
14600
  }
@@ -14765,8 +14790,22 @@ visitor, {
14765
14790
  for (const [stateKey, stateValue] of Object.entries(state)) {
14766
14791
  visitor[stateKey] = stateValue;
14767
14792
  }
14793
+ const link = {
14794
+ // eslint-disable-next-line @typescript-eslint/no-loop-func
14795
+ replaceWith(newNode, replacer) {
14796
+ if (typeof replacer === 'function') {
14797
+ replacer(newNode, node, key, parent, path, ancestors);
14798
+ } else if (parent) {
14799
+ parent[key] = newNode;
14800
+ }
14801
+ if (!isLeaving) {
14802
+ node = newNode;
14803
+ }
14804
+ }
14805
+ };
14806
+
14768
14807
  // retrieve result
14769
- result = visitFn.call(visitor, node, key, parent, path, ancestors);
14808
+ result = visitFn.call(visitor, node, key, parent, path, ancestors, link);
14770
14809
  }
14771
14810
 
14772
14811
  // check if the visitor is async
@@ -14923,9 +14962,22 @@ visitor, {
14923
14962
  for (const [stateKey, stateValue] of Object.entries(state)) {
14924
14963
  visitor[stateKey] = stateValue;
14925
14964
  }
14965
+ const link = {
14966
+ // eslint-disable-next-line @typescript-eslint/no-loop-func
14967
+ replaceWith(newNode, replacer) {
14968
+ if (typeof replacer === 'function') {
14969
+ replacer(newNode, node, key, parent, path, ancestors);
14970
+ } else if (parent) {
14971
+ parent[key] = newNode;
14972
+ }
14973
+ if (!isLeaving) {
14974
+ node = newNode;
14975
+ }
14976
+ }
14977
+ };
14926
14978
 
14927
14979
  // retrieve result
14928
- result = await visitFn.call(visitor, node, key, parent, path, ancestors); // eslint-disable-line no-await-in-loop
14980
+ result = await visitFn.call(visitor, node, key, parent, path, ancestors, link); // eslint-disable-line no-await-in-loop
14929
14981
  }
14930
14982
  if (result === breakSymbol) {
14931
14983
  break;
@@ -16167,7 +16219,7 @@ class UnsupportedOperationError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODUL
16167
16219
  /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
16168
16220
  /******/ var document = __webpack_require__.g.document;
16169
16221
  /******/ if (!scriptUrl && document) {
16170
- /******/ if (document.currentScript)
16222
+ /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
16171
16223
  /******/ scriptUrl = document.currentScript.src;
16172
16224
  /******/ if (!scriptUrl) {
16173
16225
  /******/ var scripts = document.getElementsByTagName("script");