@swagger-api/apidom-parser-adapter-openapi-yaml-2 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.
@@ -6567,6 +6567,7 @@ var createMethod = function (IS_INCLUDES) {
6567
6567
  return function ($this, el, fromIndex) {
6568
6568
  var O = toIndexedObject($this);
6569
6569
  var length = lengthOfArrayLike(O);
6570
+ if (length === 0) return !IS_INCLUDES && -1;
6570
6571
  var index = toAbsoluteIndex(fromIndex, length);
6571
6572
  var value;
6572
6573
  // Array#includes uses SameValueZero equality algorithm
@@ -6762,16 +6763,16 @@ module.exports = function (target, key, value, options) {
6762
6763
 
6763
6764
  "use strict";
6764
6765
 
6765
- var global = __webpack_require__(21063);
6766
+ var globalThis = __webpack_require__(58900);
6766
6767
 
6767
6768
  // eslint-disable-next-line es/no-object-defineproperty -- safe
6768
6769
  var defineProperty = Object.defineProperty;
6769
6770
 
6770
6771
  module.exports = function (key, value) {
6771
6772
  try {
6772
- defineProperty(global, key, { value: value, configurable: true, writable: true });
6773
+ defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
6773
6774
  } catch (error) {
6774
- global[key] = value;
6775
+ globalThis[key] = value;
6775
6776
  } return value;
6776
6777
  };
6777
6778
 
@@ -6799,10 +6800,10 @@ module.exports = !fails(function () {
6799
6800
 
6800
6801
  "use strict";
6801
6802
 
6802
- var global = __webpack_require__(21063);
6803
+ var globalThis = __webpack_require__(58900);
6803
6804
  var isObject = __webpack_require__(90262);
6804
6805
 
6805
- var document = global.document;
6806
+ var document = globalThis.document;
6806
6807
  // typeof document.createElement is 'object' in old IE
6807
6808
  var EXISTS = isObject(document) && isObject(document.createElement);
6808
6809
 
@@ -6857,26 +6858,50 @@ module.exports = {
6857
6858
 
6858
6859
  /***/ }),
6859
6860
 
6860
- /***/ 47868:
6861
+ /***/ 79683:
6861
6862
  /***/ ((module) => {
6862
6863
 
6863
6864
  "use strict";
6864
6865
 
6865
- module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
6866
+ // IE8- don't enum bug keys
6867
+ module.exports = [
6868
+ 'constructor',
6869
+ 'hasOwnProperty',
6870
+ 'isPrototypeOf',
6871
+ 'propertyIsEnumerable',
6872
+ 'toLocaleString',
6873
+ 'toString',
6874
+ 'valueOf'
6875
+ ];
6866
6876
 
6867
6877
 
6868
6878
  /***/ }),
6869
6879
 
6870
- /***/ 44432:
6880
+ /***/ 83531:
6871
6881
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6872
6882
 
6873
6883
  "use strict";
6874
6884
 
6875
- var global = __webpack_require__(21063);
6876
- var userAgent = __webpack_require__(47868);
6885
+ var globalThis = __webpack_require__(58900);
6886
+
6887
+ var navigator = globalThis.navigator;
6888
+ var userAgent = navigator && navigator.userAgent;
6877
6889
 
6878
- var process = global.process;
6879
- var Deno = global.Deno;
6890
+ module.exports = userAgent ? String(userAgent) : '';
6891
+
6892
+
6893
+ /***/ }),
6894
+
6895
+ /***/ 5547:
6896
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6897
+
6898
+ "use strict";
6899
+
6900
+ var globalThis = __webpack_require__(58900);
6901
+ var userAgent = __webpack_require__(83531);
6902
+
6903
+ var process = globalThis.process;
6904
+ var Deno = globalThis.Deno;
6880
6905
  var versions = process && process.versions || Deno && Deno.version;
6881
6906
  var v8 = versions && versions.v8;
6882
6907
  var match, version;
@@ -6901,25 +6926,6 @@ if (!version && userAgent) {
6901
6926
  module.exports = version;
6902
6927
 
6903
6928
 
6904
- /***/ }),
6905
-
6906
- /***/ 79683:
6907
- /***/ ((module) => {
6908
-
6909
- "use strict";
6910
-
6911
- // IE8- don't enum bug keys
6912
- module.exports = [
6913
- 'constructor',
6914
- 'hasOwnProperty',
6915
- 'isPrototypeOf',
6916
- 'propertyIsEnumerable',
6917
- 'toLocaleString',
6918
- 'toString',
6919
- 'valueOf'
6920
- ];
6921
-
6922
-
6923
6929
  /***/ }),
6924
6930
 
6925
6931
  /***/ 13885:
@@ -6992,7 +6998,7 @@ module.exports = !fails(function () {
6992
6998
 
6993
6999
  "use strict";
6994
7000
 
6995
- var global = __webpack_require__(21063);
7001
+ var globalThis = __webpack_require__(58900);
6996
7002
  var apply = __webpack_require__(57013);
6997
7003
  var uncurryThis = __webpack_require__(9344);
6998
7004
  var isCallable = __webpack_require__(52769);
@@ -7002,6 +7008,8 @@ var path = __webpack_require__(68099);
7002
7008
  var bind = __webpack_require__(94572);
7003
7009
  var createNonEnumerableProperty = __webpack_require__(73999);
7004
7010
  var hasOwn = __webpack_require__(70701);
7011
+ // add debugging info
7012
+ __webpack_require__(33753);
7005
7013
 
7006
7014
  var wrapConstructor = function (NativeConstructor) {
7007
7015
  var Wrapper = function (a, b, c) {
@@ -7038,7 +7046,7 @@ module.exports = function (options, source) {
7038
7046
  var STATIC = options.stat;
7039
7047
  var PROTO = options.proto;
7040
7048
 
7041
- var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : global[TARGET] && global[TARGET].prototype;
7049
+ var nativeSource = GLOBAL ? globalThis : STATIC ? globalThis[TARGET] : globalThis[TARGET] && globalThis[TARGET].prototype;
7042
7050
 
7043
7051
  var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
7044
7052
  var targetPrototype = target.prototype;
@@ -7064,7 +7072,7 @@ module.exports = function (options, source) {
7064
7072
  if (!FORCED && !PROTO && typeof targetProperty == typeof sourceProperty) continue;
7065
7073
 
7066
7074
  // bind methods to global for calling from export context
7067
- if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);
7075
+ if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, globalThis);
7068
7076
  // wrap global constructors for prevent changes in this version
7069
7077
  else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
7070
7078
  // make static versions for prototype methods
@@ -7275,7 +7283,7 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
7275
7283
  "use strict";
7276
7284
 
7277
7285
  var path = __webpack_require__(68099);
7278
- var global = __webpack_require__(21063);
7286
+ var globalThis = __webpack_require__(58900);
7279
7287
  var isCallable = __webpack_require__(52769);
7280
7288
 
7281
7289
  var aFunction = function (variable) {
@@ -7283,8 +7291,8 @@ var aFunction = function (variable) {
7283
7291
  };
7284
7292
 
7285
7293
  module.exports = function (namespace, method) {
7286
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
7287
- : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
7294
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis[namespace])
7295
+ : path[namespace] && path[namespace][method] || globalThis[namespace] && globalThis[namespace][method];
7288
7296
  };
7289
7297
 
7290
7298
 
@@ -7352,7 +7360,7 @@ module.exports = function (V, P) {
7352
7360
 
7353
7361
  /***/ }),
7354
7362
 
7355
- /***/ 21063:
7363
+ /***/ 58900:
7356
7364
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
7357
7365
 
7358
7366
  "use strict";
@@ -7514,7 +7522,7 @@ module.exports = function (O, options) {
7514
7522
  "use strict";
7515
7523
 
7516
7524
  var NATIVE_WEAK_MAP = __webpack_require__(31314);
7517
- var global = __webpack_require__(21063);
7525
+ var globalThis = __webpack_require__(58900);
7518
7526
  var isObject = __webpack_require__(90262);
7519
7527
  var createNonEnumerableProperty = __webpack_require__(73999);
7520
7528
  var hasOwn = __webpack_require__(70701);
@@ -7523,8 +7531,8 @@ var sharedKey = __webpack_require__(64275);
7523
7531
  var hiddenKeys = __webpack_require__(95241);
7524
7532
 
7525
7533
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
7526
- var TypeError = global.TypeError;
7527
- var WeakMap = global.WeakMap;
7534
+ var TypeError = globalThis.TypeError;
7535
+ var WeakMap = globalThis.WeakMap;
7528
7536
  var set, get, has;
7529
7537
 
7530
7538
  var enforce = function (it) {
@@ -8121,7 +8129,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
8121
8129
  activeXDocument.write(scriptTag(''));
8122
8130
  activeXDocument.close();
8123
8131
  var temp = activeXDocument.parentWindow.Object;
8124
- activeXDocument = null; // avoid memory leak
8132
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
8133
+ activeXDocument = null;
8125
8134
  return temp;
8126
8135
  };
8127
8136
 
@@ -8443,7 +8452,8 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
8443
8452
 
8444
8453
  /* eslint-disable no-proto -- safe */
8445
8454
  var uncurryThisAccessor = __webpack_require__(33574);
8446
- var anObject = __webpack_require__(47235);
8455
+ var isObject = __webpack_require__(90262);
8456
+ var requireObjectCoercible = __webpack_require__(95426);
8447
8457
  var aPossiblePrototype = __webpack_require__(91966);
8448
8458
 
8449
8459
  // `Object.setPrototypeOf` method
@@ -8460,8 +8470,9 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
8460
8470
  CORRECT_SETTER = test instanceof Array;
8461
8471
  } catch (error) { /* empty */ }
8462
8472
  return function setPrototypeOf(O, proto) {
8463
- anObject(O);
8473
+ requireObjectCoercible(O);
8464
8474
  aPossiblePrototype(proto);
8475
+ if (!isObject(O)) return O;
8465
8476
  if (CORRECT_SETTER) setter(O, proto);
8466
8477
  else O.__proto__ = proto;
8467
8478
  return O;
@@ -8633,13 +8644,20 @@ module.exports = function (key) {
8633
8644
 
8634
8645
  "use strict";
8635
8646
 
8636
- var global = __webpack_require__(21063);
8647
+ var IS_PURE = __webpack_require__(64871);
8648
+ var globalThis = __webpack_require__(58900);
8637
8649
  var defineGlobalProperty = __webpack_require__(57525);
8638
8650
 
8639
8651
  var SHARED = '__core-js_shared__';
8640
- var store = global[SHARED] || defineGlobalProperty(SHARED, {});
8652
+ var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
8641
8653
 
8642
- module.exports = store;
8654
+ (store.versions || (store.versions = [])).push({
8655
+ version: '3.38.1',
8656
+ mode: IS_PURE ? 'pure' : 'global',
8657
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
8658
+ license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
8659
+ source: 'https://github.com/zloirock/core-js'
8660
+ });
8643
8661
 
8644
8662
 
8645
8663
  /***/ }),
@@ -8649,18 +8667,11 @@ module.exports = store;
8649
8667
 
8650
8668
  "use strict";
8651
8669
 
8652
- var IS_PURE = __webpack_require__(64871);
8653
8670
  var store = __webpack_require__(33753);
8654
8671
 
8655
- (module.exports = function (key, value) {
8656
- return store[key] || (store[key] = value !== undefined ? value : {});
8657
- })('versions', []).push({
8658
- version: '3.35.1',
8659
- mode: IS_PURE ? 'pure' : 'global',
8660
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
8661
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
8662
- source: 'https://github.com/zloirock/core-js'
8663
- });
8672
+ module.exports = function (key, value) {
8673
+ return store[key] || (store[key] = value || {});
8674
+ };
8664
8675
 
8665
8676
 
8666
8677
  /***/ }),
@@ -8716,11 +8727,11 @@ module.exports = {
8716
8727
  "use strict";
8717
8728
 
8718
8729
  /* eslint-disable es/no-symbol -- required for testing */
8719
- var V8_VERSION = __webpack_require__(44432);
8730
+ var V8_VERSION = __webpack_require__(5547);
8720
8731
  var fails = __webpack_require__(61203);
8721
- var global = __webpack_require__(21063);
8732
+ var globalThis = __webpack_require__(58900);
8722
8733
 
8723
- var $String = global.String;
8734
+ var $String = globalThis.String;
8724
8735
 
8725
8736
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
8726
8737
  module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
@@ -8992,10 +9003,10 @@ module.exports = DESCRIPTORS && fails(function () {
8992
9003
 
8993
9004
  "use strict";
8994
9005
 
8995
- var global = __webpack_require__(21063);
9006
+ var globalThis = __webpack_require__(58900);
8996
9007
  var isCallable = __webpack_require__(52769);
8997
9008
 
8998
- var WeakMap = global.WeakMap;
9009
+ var WeakMap = globalThis.WeakMap;
8999
9010
 
9000
9011
  module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
9001
9012
 
@@ -9007,14 +9018,14 @@ module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
9007
9018
 
9008
9019
  "use strict";
9009
9020
 
9010
- var global = __webpack_require__(21063);
9021
+ var globalThis = __webpack_require__(58900);
9011
9022
  var shared = __webpack_require__(58141);
9012
9023
  var hasOwn = __webpack_require__(70701);
9013
9024
  var uid = __webpack_require__(41268);
9014
9025
  var NATIVE_SYMBOL = __webpack_require__(74603);
9015
9026
  var USE_SYMBOL_AS_UID = __webpack_require__(57460);
9016
9027
 
9017
- var Symbol = global.Symbol;
9028
+ var Symbol = globalThis.Symbol;
9018
9029
  var WellKnownSymbolsStore = shared('wks');
9019
9030
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
9020
9031
 
@@ -9246,7 +9257,7 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
9246
9257
  var target = state.target;
9247
9258
  var index = state.index++;
9248
9259
  if (!target || index >= target.length) {
9249
- state.target = undefined;
9260
+ state.target = null;
9250
9261
  return createIterResultObject(undefined, true);
9251
9262
  }
9252
9263
  switch (state.kind) {
@@ -9280,12 +9291,12 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
9280
9291
 
9281
9292
  /* eslint-disable no-unused-vars -- required for functions `.length` */
9282
9293
  var $ = __webpack_require__(9098);
9283
- var global = __webpack_require__(21063);
9294
+ var globalThis = __webpack_require__(58900);
9284
9295
  var apply = __webpack_require__(57013);
9285
9296
  var wrapErrorConstructorWithCause = __webpack_require__(16453);
9286
9297
 
9287
9298
  var WEB_ASSEMBLY = 'WebAssembly';
9288
- var WebAssembly = global[WEB_ASSEMBLY];
9299
+ var WebAssembly = globalThis[WEB_ASSEMBLY];
9289
9300
 
9290
9301
  // eslint-disable-next-line es/no-error-cause -- feature detection
9291
9302
  var FORCED = new Error('e', { cause: 7 }).cause !== 7;
@@ -9396,12 +9407,12 @@ __webpack_require__(35695);
9396
9407
 
9397
9408
  __webpack_require__(59828);
9398
9409
  var DOMIterables = __webpack_require__(1100);
9399
- var global = __webpack_require__(21063);
9410
+ var globalThis = __webpack_require__(58900);
9400
9411
  var setToStringTag = __webpack_require__(71811);
9401
9412
  var Iterators = __webpack_require__(86625);
9402
9413
 
9403
9414
  for (var COLLECTION_NAME in DOMIterables) {
9404
- setToStringTag(global[COLLECTION_NAME], COLLECTION_NAME);
9415
+ setToStringTag(globalThis[COLLECTION_NAME], COLLECTION_NAME);
9405
9416
  Iterators[COLLECTION_NAME] = Iterators.Array;
9406
9417
  }
9407
9418
 
@@ -9487,12 +9498,12 @@ __webpack_require__.r(__webpack_exports__);
9487
9498
  /* harmony import */ var _isNotNil_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76955);
9488
9499
  /* harmony import */ var _isNonEmptyArray_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(60058);
9489
9500
  /* harmony import */ var _stubUndefined_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23387);
9490
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9501
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
9491
9502
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9492
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
9493
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
9494
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
9495
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9503
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
9504
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
9505
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
9506
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9496
9507
 
9497
9508
 
9498
9509
  /**
@@ -12488,7 +12499,7 @@ __webpack_require__.r(__webpack_exports__);
12488
12499
  * @since v0.1.0
12489
12500
  * @category List
12490
12501
  * @sig [a] -> a | Undefined
12491
- * @sig String -> String
12502
+ * @sig String -> String | Undefined
12492
12503
  * @param {Array|String} list
12493
12504
  * @return {*}
12494
12505
  * @see R.tail, R.init, R.last
@@ -12498,7 +12509,7 @@ __webpack_require__.r(__webpack_exports__);
12498
12509
  * R.head([]); //=> undefined
12499
12510
  *
12500
12511
  * R.head('abc'); //=> 'a'
12501
- * R.head(''); //=> ''
12512
+ * R.head(''); //=> undefined
12502
12513
  */
12503
12514
  var head = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (list) {
12504
12515
  return (0,_internal_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0, list);
@@ -14024,10 +14035,8 @@ __webpack_require__.r(__webpack_exports__);
14024
14035
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14025
14036
  /* harmony export */ "default": () => (/* binding */ _isPlaceholder)
14026
14037
  /* harmony export */ });
14027
- /* harmony import */ var _placeholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80231);
14028
-
14029
14038
  function _isPlaceholder(a) {
14030
- return a === _placeholder_js__WEBPACK_IMPORTED_MODULE_0__["default"];
14039
+ return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
14031
14040
  }
14032
14041
 
14033
14042
  /***/ }),
@@ -14247,20 +14256,6 @@ function _pipe(f, g) {
14247
14256
 
14248
14257
  /***/ }),
14249
14258
 
14250
- /***/ 80231:
14251
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
14252
-
14253
- "use strict";
14254
- __webpack_require__.r(__webpack_exports__);
14255
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14256
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
14257
- /* harmony export */ });
14258
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
14259
- '@@functional/placeholder': true
14260
- });
14261
-
14262
- /***/ }),
14263
-
14264
14259
  /***/ 61950:
14265
14260
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
14266
14261
 
@@ -15027,7 +15022,7 @@ __webpack_require__.r(__webpack_exports__);
15027
15022
  * @since v0.1.4
15028
15023
  * @category List
15029
15024
  * @sig [a] -> a | Undefined
15030
- * @sig String -> String
15025
+ * @sig String -> String | Undefined
15031
15026
  * @param {*} list
15032
15027
  * @return {*}
15033
15028
  * @see R.init, R.head, R.tail
@@ -15037,7 +15032,7 @@ __webpack_require__.r(__webpack_exports__);
15037
15032
  * R.last([]); //=> undefined
15038
15033
  *
15039
15034
  * R.last('abc'); //=> 'c'
15040
- * R.last(''); //=> ''
15035
+ * R.last(''); //=> undefined
15041
15036
  */
15042
15037
  var last = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (list) {
15043
15038
  return (0,_internal_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(-1, list);
@@ -17124,7 +17119,7 @@ const cloneNode = node => Object.create(Object.getPrototypeOf(node), Object.getO
17124
17119
  * parallel. Each visitor will be visited for each node before moving on.
17125
17120
  *
17126
17121
  * If a prior visitor edits a node, no following visitors will see that node.
17127
- * `exposeEdits=true` can be used to exoise the edited node from the previous visitors.
17122
+ * `exposeEdits=true` can be used to expose the edited node from the previous visitors.
17128
17123
  */
17129
17124
 
17130
17125
  const mergeAll = (visitors, {
@@ -17138,14 +17133,21 @@ const mergeAll = (visitors, {
17138
17133
  const skipSymbol = Symbol('skip');
17139
17134
  const skipping = new Array(visitors.length).fill(skipSymbol);
17140
17135
  return {
17141
- enter(node, ...rest) {
17136
+ enter(node, key, parent, path, ancestors, link) {
17142
17137
  let currentNode = node;
17143
17138
  let hasChanged = false;
17139
+ const linkProxy = {
17140
+ ...link,
17141
+ replaceWith(newNode, replacer) {
17142
+ link.replaceWith(newNode, replacer);
17143
+ currentNode = newNode;
17144
+ }
17145
+ };
17144
17146
  for (let i = 0; i < visitors.length; i += 1) {
17145
17147
  if (skipping[i] === skipSymbol) {
17146
17148
  const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
17147
17149
  if (typeof visitFn === 'function') {
17148
- const result = visitFn.call(visitors[i], currentNode, ...rest);
17150
+ const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
17149
17151
 
17150
17152
  // check if the visitor is async
17151
17153
  if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
@@ -17155,7 +17157,7 @@ const mergeAll = (visitors, {
17155
17157
  });
17156
17158
  }
17157
17159
  if (result === skipVisitingNodeSymbol) {
17158
- skipping[i] = node;
17160
+ skipping[i] = currentNode;
17159
17161
  } else if (result === breakSymbol) {
17160
17162
  skipping[i] = breakSymbol;
17161
17163
  } else if (result === deleteNodeSymbol) {
@@ -17173,12 +17175,20 @@ const mergeAll = (visitors, {
17173
17175
  }
17174
17176
  return hasChanged ? currentNode : undefined;
17175
17177
  },
17176
- leave(node, ...rest) {
17178
+ leave(node, key, parent, path, ancestors, link) {
17179
+ let currentNode = node;
17180
+ const linkProxy = {
17181
+ ...link,
17182
+ replaceWith(newNode, replacer) {
17183
+ link.replaceWith(newNode, replacer);
17184
+ currentNode = newNode;
17185
+ }
17186
+ };
17177
17187
  for (let i = 0; i < visitors.length; i += 1) {
17178
17188
  if (skipping[i] === skipSymbol) {
17179
- const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
17189
+ const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
17180
17190
  if (typeof visitFn === 'function') {
17181
- const result = visitFn.call(visitors[i], node, ...rest);
17191
+ const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
17182
17192
 
17183
17193
  // check if the visitor is async
17184
17194
  if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
@@ -17193,7 +17203,7 @@ const mergeAll = (visitors, {
17193
17203
  return result;
17194
17204
  }
17195
17205
  }
17196
- } else if (skipping[i] === node) {
17206
+ } else if (skipping[i] === currentNode) {
17197
17207
  skipping[i] = skipSymbol;
17198
17208
  }
17199
17209
  }
@@ -17212,17 +17222,24 @@ const mergeAllAsync = (visitors, {
17212
17222
  const skipSymbol = Symbol('skip');
17213
17223
  const skipping = new Array(visitors.length).fill(skipSymbol);
17214
17224
  return {
17215
- async enter(node, ...rest) {
17225
+ async enter(node, key, parent, path, ancestors, link) {
17216
17226
  let currentNode = node;
17217
17227
  let hasChanged = false;
17228
+ const linkProxy = {
17229
+ ...link,
17230
+ replaceWith(newNode, replacer) {
17231
+ link.replaceWith(newNode, replacer);
17232
+ currentNode = newNode;
17233
+ }
17234
+ };
17218
17235
  for (let i = 0; i < visitors.length; i += 1) {
17219
17236
  if (skipping[i] === skipSymbol) {
17220
17237
  const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
17221
17238
  if (typeof visitFn === 'function') {
17222
17239
  // eslint-disable-next-line no-await-in-loop
17223
- const result = await visitFn.call(visitors[i], currentNode, ...rest);
17240
+ const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
17224
17241
  if (result === skipVisitingNodeSymbol) {
17225
- skipping[i] = node;
17242
+ skipping[i] = currentNode;
17226
17243
  } else if (result === breakSymbol) {
17227
17244
  skipping[i] = breakSymbol;
17228
17245
  } else if (result === deleteNodeSymbol) {
@@ -17240,20 +17257,28 @@ const mergeAllAsync = (visitors, {
17240
17257
  }
17241
17258
  return hasChanged ? currentNode : undefined;
17242
17259
  },
17243
- async leave(node, ...rest) {
17260
+ async leave(node, key, parent, path, ancestors, link) {
17261
+ let currentNode = node;
17262
+ const linkProxy = {
17263
+ ...link,
17264
+ replaceWith(newNode, replacer) {
17265
+ link.replaceWith(newNode, replacer);
17266
+ currentNode = newNode;
17267
+ }
17268
+ };
17244
17269
  for (let i = 0; i < visitors.length; i += 1) {
17245
17270
  if (skipping[i] === skipSymbol) {
17246
- const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
17271
+ const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
17247
17272
  if (typeof visitFn === 'function') {
17248
17273
  // eslint-disable-next-line no-await-in-loop
17249
- const result = await visitFn.call(visitors[i], node, ...rest);
17274
+ const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
17250
17275
  if (result === breakSymbol) {
17251
17276
  skipping[i] = breakSymbol;
17252
17277
  } else if (result !== undefined && result !== skipVisitingNodeSymbol) {
17253
17278
  return result;
17254
17279
  }
17255
17280
  }
17256
- } else if (skipping[i] === node) {
17281
+ } else if (skipping[i] === currentNode) {
17257
17282
  skipping[i] = skipSymbol;
17258
17283
  }
17259
17284
  }
@@ -17449,8 +17474,22 @@ visitor, {
17449
17474
  for (const [stateKey, stateValue] of Object.entries(state)) {
17450
17475
  visitor[stateKey] = stateValue;
17451
17476
  }
17477
+ const link = {
17478
+ // eslint-disable-next-line @typescript-eslint/no-loop-func
17479
+ replaceWith(newNode, replacer) {
17480
+ if (typeof replacer === 'function') {
17481
+ replacer(newNode, node, key, parent, path, ancestors);
17482
+ } else if (parent) {
17483
+ parent[key] = newNode;
17484
+ }
17485
+ if (!isLeaving) {
17486
+ node = newNode;
17487
+ }
17488
+ }
17489
+ };
17490
+
17452
17491
  // retrieve result
17453
- result = visitFn.call(visitor, node, key, parent, path, ancestors);
17492
+ result = visitFn.call(visitor, node, key, parent, path, ancestors, link);
17454
17493
  }
17455
17494
 
17456
17495
  // check if the visitor is async
@@ -17607,9 +17646,22 @@ visitor, {
17607
17646
  for (const [stateKey, stateValue] of Object.entries(state)) {
17608
17647
  visitor[stateKey] = stateValue;
17609
17648
  }
17649
+ const link = {
17650
+ // eslint-disable-next-line @typescript-eslint/no-loop-func
17651
+ replaceWith(newNode, replacer) {
17652
+ if (typeof replacer === 'function') {
17653
+ replacer(newNode, node, key, parent, path, ancestors);
17654
+ } else if (parent) {
17655
+ parent[key] = newNode;
17656
+ }
17657
+ if (!isLeaving) {
17658
+ node = newNode;
17659
+ }
17660
+ }
17661
+ };
17610
17662
 
17611
17663
  // retrieve result
17612
- result = await visitFn.call(visitor, node, key, parent, path, ancestors); // eslint-disable-line no-await-in-loop
17664
+ result = await visitFn.call(visitor, node, key, parent, path, ancestors, link); // eslint-disable-line no-await-in-loop
17613
17665
  }
17614
17666
  if (result === breakSymbol) {
17615
17667
  break;
@@ -28536,7 +28588,7 @@ class YamlAstVisitor {
28536
28588
  /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
28537
28589
  /******/ var document = __webpack_require__.g.document;
28538
28590
  /******/ if (!scriptUrl && document) {
28539
- /******/ if (document.currentScript)
28591
+ /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
28540
28592
  /******/ scriptUrl = document.currentScript.src;
28541
28593
  /******/ if (!scriptUrl) {
28542
28594
  /******/ var scripts = document.getElementsByTagName("script");