@movable/studio-framework-test-helpers 2.40.0 → 2.41.0-up-yarn-lock

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.
Files changed (3) hide show
  1. package/dist/index.es.js +378 -177
  2. package/dist/index.js +385 -182
  3. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -17,7 +17,7 @@ function createCommonjsModule(fn, module) {
17
17
  }
18
18
 
19
19
  var sinon = createCommonjsModule(function (module, exports) {
20
- /* Sinon.JS 11.1.1, 2021-05-26, @license BSD-3 */(function(f){{module.exports=f();}})(function(){return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof commonjsRequire&&commonjsRequire;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t);}return n[i].exports}for(var u="function"==typeof commonjsRequire&&commonjsRequire,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
20
+ /* Sinon.JS 11.1.2, 2021-07-27, @license BSD-3 */(function(f){{module.exports=f();}})(function(){return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof commonjsRequire&&commonjsRequire;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t);}return n[i].exports}for(var u="function"==typeof commonjsRequire&&commonjsRequire,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
21
21
 
22
22
  var behavior = require("./sinon/behavior");
23
23
  var createSandbox = require("./sinon/create-sandbox");
@@ -1056,120 +1056,286 @@ var createProxy = require("./proxy");
1056
1056
  var nextTick = require("./util/core/next-tick");
1057
1057
 
1058
1058
  var slice = arrayProto.slice;
1059
+ var promiseLib = Promise;
1059
1060
 
1060
- function getError(value) {
1061
- return value instanceof Error ? value : new Error(value);
1062
- }
1063
-
1064
- var uuid = 0;
1065
- function wrapFunc(f) {
1066
- var proxy;
1067
- var fakeInstance = function () {
1068
- var firstArg, lastArg;
1061
+ module.exports = fake;
1069
1062
 
1070
- if (arguments.length > 0) {
1071
- firstArg = arguments[0];
1072
- lastArg = arguments[arguments.length - 1];
1073
- }
1063
+ /**
1064
+ * Returns a `fake` that records all calls, arguments and return values.
1065
+ *
1066
+ * When an `f` argument is supplied, this implementation will be used.
1067
+ *
1068
+ * @example
1069
+ * // create an empty fake
1070
+ * var f1 = sinon.fake();
1071
+ *
1072
+ * f1();
1073
+ *
1074
+ * f1.calledOnce()
1075
+ * // true
1076
+ *
1077
+ * @example
1078
+ * function greet(greeting) {
1079
+ * console.log(`Hello ${greeting}`);
1080
+ * }
1081
+ *
1082
+ * // create a fake with implementation
1083
+ * var f2 = sinon.fake(greet);
1084
+ *
1085
+ * // Hello world
1086
+ * f2("world");
1087
+ *
1088
+ * f2.calledWith("world");
1089
+ * // true
1090
+ *
1091
+ * @param {Function|undefined} f
1092
+ * @returns {Function}
1093
+ * @namespace
1094
+ */
1095
+ function fake(f) {
1096
+ if (arguments.length > 0 && typeof f !== "function") {
1097
+ throw new TypeError("Expected f argument to be a Function");
1098
+ }
1074
1099
 
1075
- var callback =
1076
- lastArg && typeof lastArg === "function" ? lastArg : undefined;
1100
+ return wrapFunc(f);
1101
+ }
1077
1102
 
1078
- proxy.firstArg = firstArg;
1079
- proxy.lastArg = lastArg;
1080
- proxy.callback = callback;
1103
+ /**
1104
+ * Creates a `fake` that returns the provided `value`, as well as recording all
1105
+ * calls, arguments and return values.
1106
+ *
1107
+ * @example
1108
+ * var f1 = sinon.fake.returns(42);
1109
+ *
1110
+ * f1();
1111
+ * // 42
1112
+ *
1113
+ * @memberof fake
1114
+ * @param {*} value
1115
+ * @returns {Function}
1116
+ */
1117
+ fake.returns = function returns(value) {
1118
+ // eslint-disable-next-line jsdoc/require-jsdoc
1119
+ function f() {
1120
+ return value;
1121
+ }
1081
1122
 
1082
- return f && f.apply(this, arguments);
1083
- };
1084
- proxy = createProxy(fakeInstance, f || fakeInstance);
1123
+ return wrapFunc(f);
1124
+ };
1085
1125
 
1086
- proxy.displayName = "fake";
1087
- proxy.id = `fake#${uuid++}`;
1126
+ /**
1127
+ * Creates a `fake` that throws an Error.
1128
+ * If the `value` argument does not have Error in its prototype chain, it will
1129
+ * be used for creating a new error.
1130
+ *
1131
+ * @example
1132
+ * var f1 = sinon.fake.throws("hello");
1133
+ *
1134
+ * f1();
1135
+ * // Uncaught Error: hello
1136
+ *
1137
+ * @example
1138
+ * var f2 = sinon.fake.throws(new TypeError("Invalid argument"));
1139
+ *
1140
+ * f2();
1141
+ * // Uncaught TypeError: Invalid argument
1142
+ *
1143
+ * @memberof fake
1144
+ * @param {*|Error} value
1145
+ * @returns {Function}
1146
+ */
1147
+ fake.throws = function throws(value) {
1148
+ // eslint-disable-next-line jsdoc/require-jsdoc
1149
+ function f() {
1150
+ throw getError(value);
1151
+ }
1088
1152
 
1089
- return proxy;
1090
- }
1153
+ return wrapFunc(f);
1154
+ };
1091
1155
 
1092
- function fakeClass() {
1093
- var promiseLib = null;
1094
- if (typeof Promise === "function") {
1095
- promiseLib = Promise;
1156
+ /**
1157
+ * Creates a `fake` that returns a promise that resolves to the passed `value`
1158
+ * argument.
1159
+ *
1160
+ * @example
1161
+ * var f1 = sinon.fake.resolves("apple pie");
1162
+ *
1163
+ * await f1();
1164
+ * // "apple pie"
1165
+ *
1166
+ * @memberof fake
1167
+ * @param {*} value
1168
+ * @returns {Function}
1169
+ */
1170
+ fake.resolves = function resolves(value) {
1171
+ // eslint-disable-next-line jsdoc/require-jsdoc
1172
+ function f() {
1173
+ return promiseLib.resolve(value);
1096
1174
  }
1097
1175
 
1098
- function fake(f) {
1099
- if (arguments.length > 0 && typeof f !== "function") {
1100
- throw new TypeError("Expected f argument to be a Function");
1101
- }
1176
+ return wrapFunc(f);
1177
+ };
1102
1178
 
1103
- return wrapFunc(f);
1179
+ /**
1180
+ * Creates a `fake` that returns a promise that rejects to the passed `value`
1181
+ * argument. When `value` does not have Error in its prototype chain, it will be
1182
+ * wrapped in an Error.
1183
+ *
1184
+ * @example
1185
+ * var f1 = sinon.fake.rejects(":(");
1186
+ *
1187
+ * try {
1188
+ * await ft();
1189
+ * } catch (error) {
1190
+ * console.log(error);
1191
+ * // ":("
1192
+ * }
1193
+ *
1194
+ * @memberof fake
1195
+ * @param {*} value
1196
+ * @returns {Function}
1197
+ */
1198
+ fake.rejects = function rejects(value) {
1199
+ // eslint-disable-next-line jsdoc/require-jsdoc
1200
+ function f() {
1201
+ return promiseLib.reject(getError(value));
1104
1202
  }
1105
1203
 
1106
- fake.returns = function returns(value) {
1107
- function f() {
1108
- return value;
1109
- }
1204
+ return wrapFunc(f);
1205
+ };
1110
1206
 
1111
- return wrapFunc(f);
1112
- };
1207
+ /**
1208
+ * Causes `fake` to use a custom Promise implementation, instead of the native
1209
+ * Promise implementation.
1210
+ *
1211
+ * @example
1212
+ * const bluebird = require("bluebird");
1213
+ * sinon.fake.usingPromise(bluebird);
1214
+ *
1215
+ * @memberof fake
1216
+ * @param {*} promiseLibrary
1217
+ * @returns {Function}
1218
+ */
1219
+ fake.usingPromise = function usingPromise(promiseLibrary) {
1220
+ promiseLib = promiseLibrary;
1221
+ return fake;
1222
+ };
1113
1223
 
1114
- fake.throws = function throws(value) {
1115
- function f() {
1116
- throw getError(value);
1224
+ /**
1225
+ * Returns a `fake` that calls the callback with the defined arguments.
1226
+ *
1227
+ * @example
1228
+ * function callback() {
1229
+ * console.log(arguments.join("*"));
1230
+ * }
1231
+ *
1232
+ * const f1 = sinon.fake.yields("apple", "pie");
1233
+ *
1234
+ * f1(callback);
1235
+ * // "apple*pie"
1236
+ *
1237
+ * @memberof fake
1238
+ * @returns {Function}
1239
+ */
1240
+ fake.yields = function yields() {
1241
+ var values = slice(arguments);
1242
+
1243
+ // eslint-disable-next-line jsdoc/require-jsdoc
1244
+ function f() {
1245
+ var callback = arguments[arguments.length - 1];
1246
+ if (typeof callback !== "function") {
1247
+ throw new TypeError("Expected last argument to be a function");
1117
1248
  }
1118
1249
 
1119
- return wrapFunc(f);
1120
- };
1250
+ callback.apply(null, values);
1251
+ }
1121
1252
 
1122
- fake.resolves = function resolves(value) {
1123
- function f() {
1124
- return promiseLib.resolve(value);
1125
- }
1253
+ return wrapFunc(f);
1254
+ };
1126
1255
 
1127
- return wrapFunc(f);
1128
- };
1256
+ /**
1257
+ * Returns a `fake` that calls the callback **asynchronously** with the
1258
+ * defined arguments.
1259
+ *
1260
+ * @example
1261
+ * function callback() {
1262
+ * console.log(arguments.join("*"));
1263
+ * }
1264
+ *
1265
+ * const f1 = sinon.fake.yields("apple", "pie");
1266
+ *
1267
+ * f1(callback);
1268
+ *
1269
+ * setTimeout(() => {
1270
+ * // "apple*pie"
1271
+ * });
1272
+ *
1273
+ * @memberof fake
1274
+ * @returns {Function}
1275
+ */
1276
+ fake.yieldsAsync = function yieldsAsync() {
1277
+ var values = slice(arguments);
1129
1278
 
1130
- fake.rejects = function rejects(value) {
1131
- function f() {
1132
- return promiseLib.reject(getError(value));
1279
+ // eslint-disable-next-line jsdoc/require-jsdoc
1280
+ function f() {
1281
+ var callback = arguments[arguments.length - 1];
1282
+ if (typeof callback !== "function") {
1283
+ throw new TypeError("Expected last argument to be a function");
1133
1284
  }
1285
+ nextTick(function () {
1286
+ callback.apply(null, values);
1287
+ });
1288
+ }
1134
1289
 
1135
- return wrapFunc(f);
1136
- };
1290
+ return wrapFunc(f);
1291
+ };
1137
1292
 
1138
- fake.usingPromise = function usingPromise(promiseLibrary) {
1139
- promiseLib = promiseLibrary;
1140
- return fake;
1141
- };
1293
+ var uuid = 0;
1294
+ /**
1295
+ * Creates a proxy (sinon concept) from the passed function.
1296
+ *
1297
+ * @private
1298
+ * @param {Function} f
1299
+ * @returns {Function}
1300
+ */
1301
+ function wrapFunc(f) {
1302
+ var proxy;
1303
+ var fakeInstance = function () {
1304
+ var firstArg, lastArg;
1142
1305
 
1143
- function yieldInternal(async, values) {
1144
- function f() {
1145
- var callback = arguments[arguments.length - 1];
1146
- if (typeof callback !== "function") {
1147
- throw new TypeError("Expected last argument to be a function");
1148
- }
1149
- if (async) {
1150
- nextTick(function () {
1151
- callback.apply(null, values);
1152
- });
1153
- } else {
1154
- callback.apply(null, values);
1155
- }
1306
+ if (arguments.length > 0) {
1307
+ firstArg = arguments[0];
1308
+ lastArg = arguments[arguments.length - 1];
1156
1309
  }
1157
1310
 
1158
- return wrapFunc(f);
1159
- }
1311
+ var callback =
1312
+ lastArg && typeof lastArg === "function" ? lastArg : undefined;
1160
1313
 
1161
- fake.yields = function yields() {
1162
- return yieldInternal(false, slice(arguments));
1163
- };
1314
+ proxy.firstArg = firstArg;
1315
+ proxy.lastArg = lastArg;
1316
+ proxy.callback = callback;
1164
1317
 
1165
- fake.yieldsAsync = function yieldsAsync() {
1166
- return yieldInternal(true, slice(arguments));
1318
+ return f && f.apply(this, arguments);
1167
1319
  };
1320
+ proxy = createProxy(fakeInstance, f || fakeInstance);
1168
1321
 
1169
- return fake;
1322
+ proxy.displayName = "fake";
1323
+ proxy.id = `fake#${uuid++}`;
1324
+
1325
+ return proxy;
1170
1326
  }
1171
1327
 
1172
- module.exports = fakeClass();
1328
+ /**
1329
+ * Returns an Error instance from the passed value, if the value is not
1330
+ * already an Error instance.
1331
+ *
1332
+ * @private
1333
+ * @param {*} value [description]
1334
+ * @returns {Error} [description]
1335
+ */
1336
+ function getError(value) {
1337
+ return value instanceof Error ? value : new Error(value);
1338
+ }
1173
1339
 
1174
1340
  },{"./proxy":15,"./util/core/next-tick":33,"@sinonjs/commons":46}],9:[function(require,module,exports){
1175
1341
 
@@ -3846,13 +4012,30 @@ module.exports = function extend(target, ...sources) {
3846
4012
  if (prop === "name" && !destOwnPropertyDescriptor.writable) {
3847
4013
  return;
3848
4014
  }
3849
-
3850
- Object.defineProperty(dest, prop, {
4015
+ const descriptors = {
3851
4016
  configurable: sourceOwnPropertyDescriptor.configurable,
3852
4017
  enumerable: sourceOwnPropertyDescriptor.enumerable,
3853
- writable: sourceOwnPropertyDescriptor.writable,
3854
- value: sourceOwnPropertyDescriptor.value,
3855
- });
4018
+ };
4019
+ /*
4020
+ if the sorce has an Accessor property copy over the accessor functions (get and set)
4021
+ data properties has writable attribute where as acessor property don't
4022
+ REF: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#properties
4023
+ */
4024
+
4025
+ if (hasOwnProperty(sourceOwnPropertyDescriptor, "writable")) {
4026
+ descriptors.writable = sourceOwnPropertyDescriptor.writable;
4027
+ descriptors.value = sourceOwnPropertyDescriptor.value;
4028
+ } else {
4029
+ if (sourceOwnPropertyDescriptor.get) {
4030
+ descriptors.get =
4031
+ sourceOwnPropertyDescriptor.get.bind(dest);
4032
+ }
4033
+ if (sourceOwnPropertyDescriptor.set) {
4034
+ descriptors.set =
4035
+ sourceOwnPropertyDescriptor.set.bind(dest);
4036
+ }
4037
+ }
4038
+ Object.defineProperty(dest, prop, descriptors);
3856
4039
  }
3857
4040
  );
3858
4041
  };
@@ -4904,11 +5087,11 @@ var globalObject = require("@sinonjs/commons").global;
4904
5087
  * Configuration object for the `install` method.
4905
5088
  *
4906
5089
  * @typedef {object} Config
4907
- * @property {number|Date} now a number (in milliseconds) or a Date object (default epoch)
4908
- * @property {string[]} toFake names of the methods that should be faked.
4909
- * @property {number} loopLimit the maximum number of timers that will be run when calling runAll()
4910
- * @property {boolean} shouldAdvanceTime tells FakeTimers to increment mocked time automatically (default false)
4911
- * @property {number} advanceTimeDelta increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)
5090
+ * @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)
5091
+ * @property {string[]} [toFake] names of the methods that should be faked.
5092
+ * @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()
5093
+ * @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)
5094
+ * @property {number} [advanceTimeDelta] increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)
4912
5095
  */
4913
5096
 
4914
5097
  /**
@@ -5470,7 +5653,6 @@ function withGlobal(_global) {
5470
5653
  }
5471
5654
 
5472
5655
  function hijackMethod(target, method, clock) {
5473
- var prop;
5474
5656
  clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(
5475
5657
  target,
5476
5658
  method
@@ -5510,11 +5692,10 @@ function withGlobal(_global) {
5510
5692
  return clock[method].apply(clock, arguments);
5511
5693
  };
5512
5694
 
5513
- for (prop in clock[method]) {
5514
- if (clock[method].hasOwnProperty(prop)) {
5515
- target[method][prop] = clock[method][prop];
5516
- }
5517
- }
5695
+ Object.defineProperties(
5696
+ target[method],
5697
+ Object.getOwnPropertyDescriptors(clock[method])
5698
+ );
5518
5699
  }
5519
5700
 
5520
5701
  target[method].clock = clock;
@@ -5592,8 +5773,8 @@ function withGlobal(_global) {
5592
5773
  var originalSetTimeout = _global.setImmediate || _global.setTimeout;
5593
5774
 
5594
5775
  /**
5595
- * @param {Date|number} start the system time - non-integer values are floored
5596
- * @param {number} loopLimit maximum number of timers that will be run when calling runAll()
5776
+ * @param {Date|number} [start] the system time - non-integer values are floored
5777
+ * @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()
5597
5778
  * @returns {Clock}
5598
5779
  */
5599
5780
  function createClock(start, loopLimit) {
@@ -6170,7 +6351,7 @@ function withGlobal(_global) {
6170
6351
  /* eslint-disable complexity */
6171
6352
 
6172
6353
  /**
6173
- * @param {Config=} config Optional config
6354
+ * @param {Config=} [config] Optional config
6174
6355
  * @returns {Clock}
6175
6356
  */
6176
6357
  function install(config) {
@@ -18282,7 +18463,7 @@ var _arrayIncludes = function (IS_INCLUDES) {
18282
18463
  };
18283
18464
 
18284
18465
  var _core = createCommonjsModule(function (module) {
18285
- var core = module.exports = { version: '2.6.11' };
18466
+ var core = module.exports = { version: '2.6.12' };
18286
18467
  if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
18287
18468
  });
18288
18469
  _core.version;
@@ -18307,7 +18488,7 @@ var store = _global[SHARED] || (_global[SHARED] = {});
18307
18488
  })('versions', []).push({
18308
18489
  version: _core.version,
18309
18490
  mode: 'pure' ,
18310
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
18491
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
18311
18492
  });
18312
18493
  });
18313
18494
 
@@ -19468,6 +19649,44 @@ function settled() {
19468
19649
  });
19469
19650
  }
19470
19651
 
19652
+ // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
19653
+ _export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
19654
+
19655
+ var $Object$3 = _core.Object;
19656
+ var defineProperty$3 = function defineProperty(it, key, desc) {
19657
+ return $Object$3.defineProperty(it, key, desc);
19658
+ };
19659
+
19660
+ var defineProperty$2 = defineProperty$3;
19661
+
19662
+ var createClass = createCommonjsModule(function (module) {
19663
+ function _defineProperties(target, props) {
19664
+ for (var i = 0; i < props.length; i++) {
19665
+ var descriptor = props[i];
19666
+ descriptor.enumerable = descriptor.enumerable || false;
19667
+ descriptor.configurable = true;
19668
+ if ("value" in descriptor) descriptor.writable = true;
19669
+
19670
+ defineProperty$2(target, descriptor.key, descriptor);
19671
+ }
19672
+ }
19673
+
19674
+ function _createClass(Constructor, protoProps, staticProps) {
19675
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
19676
+ if (staticProps) _defineProperties(Constructor, staticProps);
19677
+
19678
+ defineProperty$2(Constructor, "prototype", {
19679
+ writable: false
19680
+ });
19681
+
19682
+ return Constructor;
19683
+ }
19684
+
19685
+ module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
19686
+ });
19687
+
19688
+ var _createClass = unwrapExports(createClass);
19689
+
19471
19690
  var classCallCheck = createCommonjsModule(function (module) {
19472
19691
  function _classCallCheck(instance, Constructor) {
19473
19692
  if (!(instance instanceof Constructor)) {
@@ -19475,8 +19694,7 @@ function _classCallCheck(instance, Constructor) {
19475
19694
  }
19476
19695
  }
19477
19696
 
19478
- module.exports = _classCallCheck;
19479
- module.exports["default"] = module.exports, module.exports.__esModule = true;
19697
+ module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
19480
19698
  });
19481
19699
 
19482
19700
  var _classCallCheck = unwrapExports(classCallCheck);
@@ -19490,8 +19708,7 @@ function _assertThisInitialized(self) {
19490
19708
  return self;
19491
19709
  }
19492
19710
 
19493
- module.exports = _assertThisInitialized;
19494
- module.exports["default"] = module.exports, module.exports.__esModule = true;
19711
+ module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
19495
19712
  });
19496
19713
 
19497
19714
  var _assertThisInitialized = unwrapExports(assertThisInitialized);
@@ -19499,9 +19716,9 @@ var _assertThisInitialized = unwrapExports(assertThisInitialized);
19499
19716
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
19500
19717
  _export(_export.S, 'Object', { create: _objectCreate });
19501
19718
 
19502
- var $Object$3 = _core.Object;
19719
+ var $Object$2 = _core.Object;
19503
19720
  var create$1 = function create(P, D) {
19504
- return $Object$3.create(P, D);
19721
+ return $Object$2.create(P, D);
19505
19722
  };
19506
19723
 
19507
19724
  var create = create$1;
@@ -19566,14 +19783,11 @@ function _setPrototypeOf(o, p) {
19566
19783
  module.exports = _setPrototypeOf = setPrototypeOf$1 || function _setPrototypeOf(o, p) {
19567
19784
  o.__proto__ = p;
19568
19785
  return o;
19569
- };
19570
-
19571
- module.exports["default"] = module.exports, module.exports.__esModule = true;
19786
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
19572
19787
  return _setPrototypeOf(o, p);
19573
19788
  }
19574
19789
 
19575
- module.exports = _setPrototypeOf;
19576
- module.exports["default"] = module.exports, module.exports.__esModule = true;
19790
+ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
19577
19791
  });
19578
19792
 
19579
19793
  unwrapExports(setPrototypeOf);
@@ -19591,11 +19805,15 @@ function _inherits(subClass, superClass) {
19591
19805
  configurable: true
19592
19806
  }
19593
19807
  });
19808
+
19809
+ defineProperty$2(subClass, "prototype", {
19810
+ writable: false
19811
+ });
19812
+
19594
19813
  if (superClass) setPrototypeOf(subClass, superClass);
19595
19814
  }
19596
19815
 
19597
- module.exports = _inherits;
19598
- module.exports["default"] = module.exports, module.exports.__esModule = true;
19816
+ module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
19599
19817
  });
19600
19818
 
19601
19819
  var _inherits = unwrapExports(inherits);
@@ -19667,10 +19885,10 @@ var _wksExt = {
19667
19885
  f: f$3
19668
19886
  };
19669
19887
 
19670
- var defineProperty$3 = _objectDp.f;
19888
+ var defineProperty$1 = _objectDp.f;
19671
19889
  var _wksDefine = function (name) {
19672
19890
  var $Symbol = _core.Symbol || (_core.Symbol = {} );
19673
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$3($Symbol, name, { value: _wksExt.f(name) });
19891
+ if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$1($Symbol, name, { value: _wksExt.f(name) });
19674
19892
  };
19675
19893
 
19676
19894
  var f$2 = Object.getOwnPropertySymbols;
@@ -19999,25 +20217,14 @@ var _typeof_1 = createCommonjsModule(function (module) {
19999
20217
  function _typeof(obj) {
20000
20218
  "@babel/helpers - typeof";
20001
20219
 
20002
- if (typeof symbol === "function" && typeof iterator === "symbol") {
20003
- module.exports = _typeof = function _typeof(obj) {
20004
- return typeof obj;
20005
- };
20006
-
20007
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20008
- } else {
20009
- module.exports = _typeof = function _typeof(obj) {
20010
- return obj && typeof symbol === "function" && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
20011
- };
20012
-
20013
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20014
- }
20015
-
20016
- return _typeof(obj);
20220
+ return (module.exports = _typeof = "function" == typeof symbol && "symbol" == typeof iterator ? function (obj) {
20221
+ return typeof obj;
20222
+ } : function (obj) {
20223
+ return obj && "function" == typeof symbol && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
20224
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
20017
20225
  }
20018
20226
 
20019
- module.exports = _typeof;
20020
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20227
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
20021
20228
  });
20022
20229
 
20023
20230
  unwrapExports(_typeof_1);
@@ -20030,13 +20237,14 @@ var _typeof = _typeof_1["default"];
20030
20237
  function _possibleConstructorReturn(self, call) {
20031
20238
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
20032
20239
  return call;
20240
+ } else if (call !== void 0) {
20241
+ throw new TypeError("Derived constructors may only return object or undefined");
20033
20242
  }
20034
20243
 
20035
20244
  return assertThisInitialized(self);
20036
20245
  }
20037
20246
 
20038
- module.exports = _possibleConstructorReturn;
20039
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20247
+ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
20040
20248
  });
20041
20249
 
20042
20250
  var _possibleConstructorReturn = unwrapExports(possibleConstructorReturn);
@@ -20059,31 +20267,19 @@ var getPrototypeOf = createCommonjsModule(function (module) {
20059
20267
  function _getPrototypeOf(o) {
20060
20268
  module.exports = _getPrototypeOf = setPrototypeOf$1 ? getPrototypeOf$1 : function _getPrototypeOf(o) {
20061
20269
  return o.__proto__ || getPrototypeOf$1(o);
20062
- };
20063
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20270
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
20064
20271
  return _getPrototypeOf(o);
20065
20272
  }
20066
20273
 
20067
- module.exports = _getPrototypeOf;
20068
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20274
+ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
20069
20275
  });
20070
20276
 
20071
20277
  var _getPrototypeOf = unwrapExports(getPrototypeOf);
20072
20278
 
20073
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
20074
- _export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
20075
-
20076
- var $Object$2 = _core.Object;
20077
- var defineProperty$2 = function defineProperty(it, key, desc) {
20078
- return $Object$2.defineProperty(it, key, desc);
20079
- };
20080
-
20081
- var defineProperty$1 = defineProperty$2;
20082
-
20083
20279
  var defineProperty = createCommonjsModule(function (module) {
20084
20280
  function _defineProperty(obj, key, value) {
20085
20281
  if (key in obj) {
20086
- defineProperty$1(obj, key, {
20282
+ defineProperty$2(obj, key, {
20087
20283
  value: value,
20088
20284
  enumerable: true,
20089
20285
  configurable: true,
@@ -20096,8 +20292,7 @@ function _defineProperty(obj, key, value) {
20096
20292
  return obj;
20097
20293
  }
20098
20294
 
20099
- module.exports = _defineProperty;
20100
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20295
+ module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
20101
20296
  });
20102
20297
 
20103
20298
  var _defineProperty = unwrapExports(defineProperty);
@@ -20139,8 +20334,7 @@ function _asyncToGenerator(fn) {
20139
20334
  };
20140
20335
  }
20141
20336
 
20142
- module.exports = _asyncToGenerator;
20143
- module.exports["default"] = module.exports, module.exports.__esModule = true;
20337
+ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
20144
20338
  });
20145
20339
 
20146
20340
  var _asyncToGenerator = unwrapExports(asyncToGenerator);
@@ -20233,9 +20427,9 @@ var runtime = (function (exports) {
20233
20427
  // This is a polyfill for %IteratorPrototype% for environments that
20234
20428
  // don't natively support it.
20235
20429
  var IteratorPrototype = {};
20236
- IteratorPrototype[iteratorSymbol] = function () {
20430
+ define(IteratorPrototype, iteratorSymbol, function () {
20237
20431
  return this;
20238
- };
20432
+ });
20239
20433
 
20240
20434
  var getProto = Object.getPrototypeOf;
20241
20435
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
@@ -20249,8 +20443,9 @@ var runtime = (function (exports) {
20249
20443
 
20250
20444
  var Gp = GeneratorFunctionPrototype.prototype =
20251
20445
  Generator.prototype = Object.create(IteratorPrototype);
20252
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
20253
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
20446
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
20447
+ define(Gp, "constructor", GeneratorFunctionPrototype);
20448
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
20254
20449
  GeneratorFunction.displayName = define(
20255
20450
  GeneratorFunctionPrototype,
20256
20451
  toStringTagSymbol,
@@ -20364,9 +20559,9 @@ var runtime = (function (exports) {
20364
20559
  }
20365
20560
 
20366
20561
  defineIteratorMethods(AsyncIterator.prototype);
20367
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
20562
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
20368
20563
  return this;
20369
- };
20564
+ });
20370
20565
  exports.AsyncIterator = AsyncIterator;
20371
20566
 
20372
20567
  // Note that simple async functions are implemented on top of
@@ -20559,13 +20754,13 @@ var runtime = (function (exports) {
20559
20754
  // iterator prototype chain incorrectly implement this, causing the Generator
20560
20755
  // object to not be returned from this call. This ensures that doesn't happen.
20561
20756
  // See https://github.com/facebook/regenerator/issues/274 for more details.
20562
- Gp[iteratorSymbol] = function() {
20757
+ define(Gp, iteratorSymbol, function() {
20563
20758
  return this;
20564
- };
20759
+ });
20565
20760
 
20566
- Gp.toString = function() {
20761
+ define(Gp, "toString", function() {
20567
20762
  return "[object Generator]";
20568
- };
20763
+ });
20569
20764
 
20570
20765
  function pushTryEntry(locs) {
20571
20766
  var entry = { tryLoc: locs[0] };
@@ -20884,14 +21079,19 @@ try {
20884
21079
  } catch (accidentalStrictMode) {
20885
21080
  // This module should not be running in strict mode, so the above
20886
21081
  // assignment should always work unless something is misconfigured. Just
20887
- // in case runtime.js accidentally runs in strict mode, we can escape
21082
+ // in case runtime.js accidentally runs in strict mode, in modern engines
21083
+ // we can explicitly access globalThis. In older engines we can escape
20888
21084
  // strict mode using a global Function call. This could conceivably fail
20889
21085
  // if a Content Security Policy forbids using Function, but in that case
20890
21086
  // the proper solution is to fix the accidental strict mode problem. If
20891
21087
  // you've misconfigured your bundler to force strict mode and applied a
20892
21088
  // CSP to forbid Function, and you're not willing to fix either of those
20893
21089
  // problems, please detail your unique predicament in a GitHub issue.
20894
- Function("r", "regeneratorRuntime = r")(runtime);
21090
+ if (typeof globalThis === "object") {
21091
+ globalThis.regeneratorRuntime = runtime;
21092
+ } else {
21093
+ Function("r", "regeneratorRuntime = r")(runtime);
21094
+ }
20895
21095
  }
20896
21096
  });
20897
21097
 
@@ -21008,7 +21208,8 @@ function setupApp(AppClass) {
21008
21208
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
21009
21209
 
21010
21210
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !construct) return false; if (construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
21011
- var ELEMENT_ID = 'testing-container';
21211
+ var TEST_CONTAINER_ID = 'testing-container';
21212
+ var TEST_IFRAME_DOM = "\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"keywords\" content=\"Cats and sometimes Turkeys\" />\n <meta name=\"author\" content=\"Millie\" />\n <script>MI={}; MI.options='DELETE ME!';</script>\n <style type=\"text/css\"></style>\n <base href=\"//cartridges-should-not-be-removed/\" >\n </head>\n <body style=\"margin: 8px\">\n <div id=\"purple\"><p>PURPLE</p></div>\n <div id=\"react-root\"></div>\n </body>\n </html>";
21012
21213
  var CONTAINER_ELEMENT;
21013
21214
  var IFRAME_ROOT;
21014
21215
 
@@ -21027,7 +21228,7 @@ function _createIframe() {
21027
21228
  iframe.id = 'test-iframe';
21028
21229
  iframe.width = '500px';
21029
21230
  iframe.height = '300px';
21030
- iframe.srcdoc = "\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"keywords\" content=\"Cats and sometimes Turkeys\" />\n <meta name=\"author\" content=\"Millie\" />\n <script>MI={}; MI.options='DELETE ME!';</script>\n <style type=\"text/css\"></style>\n <base href=\"//cartridges-should-not-be-removed/\" >\n </head>\n <body style=\"margin: 8px\">\n <div id=\"purple\"><p>PURPLE</p></div>\n <div id=\"react-root\"></div>\n </body>\n </html>";
21231
+ iframe.srcdoc = TEST_IFRAME_DOM;
21031
21232
  container.appendChild(iframe);
21032
21233
  iframe.addEventListener('load', function () {
21033
21234
  var root = iframe.contentWindow.document.getElementById('react-root');
@@ -21058,8 +21259,8 @@ function _createTestContainer() {
21058
21259
  case 0:
21059
21260
  container = document.createElement('div');
21060
21261
  CONTAINER_ELEMENT = container;
21061
- container.classNames = ELEMENT_ID;
21062
- container.id = ELEMENT_ID;
21262
+ container.classNames = TEST_CONTAINER_ID;
21263
+ container.id = TEST_CONTAINER_ID;
21063
21264
  container.style.background = 'white';
21064
21265
  container.style.position = 'fixed';
21065
21266
  container.style.width = '500px';
@@ -21186,7 +21387,7 @@ function render(testJsx) {
21186
21387
  return _this;
21187
21388
  }
21188
21389
 
21189
- return ErrorBoundary;
21390
+ return _createClass(ErrorBoundary);
21190
21391
  }(React.Component);
21191
21392
 
21192
21393
  ReactDOM.render( /*#__PURE__*/React.createElement(ErrorBoundary, null), element, function () {
@@ -21394,9 +21595,9 @@ var TagDefaults = {
21394
21595
  overflow: null
21395
21596
  };
21396
21597
 
21397
- function ownKeys(object, enumerableOnly) { var keys = keys$1(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
21598
+ function ownKeys(object, enumerableOnly) { var keys = keys$1(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21398
21599
 
21399
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (getOwnPropertyDescriptors) { defineProperties(target, getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { defineProperty$1(target, key, getOwnPropertyDescriptor(source, key)); }); } } return target; }
21600
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
21400
21601
  var makeTag = function makeTag(tagData) {
21401
21602
  return _objectSpread(_objectSpread({}, TagDefaults), tagData);
21402
21603
  };
@@ -21456,4 +21657,4 @@ var makeDynamicRichTextTag = function makeDynamicRichTextTag(dynamicProperty) {
21456
21657
  })], tagOptions);
21457
21658
  };
21458
21659
 
21459
- export { makeDynamicImageTag, makeDynamicProperty, makeDynamicRichTextTag, makeImageTag, makeRichTextOp, makeRichTextTag, makeTag, makeTagOfType, makeTextTag, pauseTest, render, renderApp, renderError, returnRenderedApp, settled, setupApp, setupCropduster, setupRenderingTest, sinon$1 as sinon };
21660
+ export { TEST_CONTAINER_ID, TEST_IFRAME_DOM, makeDynamicImageTag, makeDynamicProperty, makeDynamicRichTextTag, makeImageTag, makeRichTextOp, makeRichTextTag, makeTag, makeTagOfType, makeTextTag, pauseTest, render, renderApp, renderError, returnRenderedApp, settled, setupApp, setupCropduster, setupRenderingTest, sinon$1 as sinon };