@interopio/fdc3 2.5.1 → 2.5.2
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 +2 -0
- package/dist/fdc3.electron.es.js +1022 -538
- package/dist/fdc3.electron.umd.js +1022 -538
- package/dist/fdc3.es.js +1022 -538
- package/dist/fdc3.umd.js +1022 -538
- package/package.json +2 -2
package/dist/fdc3.es.js
CHANGED
|
@@ -29,10 +29,10 @@ function getAugmentedNamespace(n) {
|
|
|
29
29
|
return a;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
var toStr$
|
|
32
|
+
var toStr$8 = Object.prototype.toString;
|
|
33
33
|
|
|
34
34
|
var isArguments$3 = function isArguments(value) {
|
|
35
|
-
var str = toStr$
|
|
35
|
+
var str = toStr$8.call(value);
|
|
36
36
|
var isArgs = str === '[object Arguments]';
|
|
37
37
|
if (!isArgs) {
|
|
38
38
|
isArgs = str !== '[object Array]' &&
|
|
@@ -40,17 +40,17 @@ var isArguments$3 = function isArguments(value) {
|
|
|
40
40
|
typeof value === 'object' &&
|
|
41
41
|
typeof value.length === 'number' &&
|
|
42
42
|
value.length >= 0 &&
|
|
43
|
-
toStr$
|
|
43
|
+
toStr$8.call(value.callee) === '[object Function]';
|
|
44
44
|
}
|
|
45
45
|
return isArgs;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
var implementation$
|
|
49
|
-
var hasRequiredImplementation;
|
|
48
|
+
var implementation$a;
|
|
49
|
+
var hasRequiredImplementation$1;
|
|
50
50
|
|
|
51
|
-
function requireImplementation () {
|
|
52
|
-
if (hasRequiredImplementation) return implementation$
|
|
53
|
-
hasRequiredImplementation = 1;
|
|
51
|
+
function requireImplementation$1 () {
|
|
52
|
+
if (hasRequiredImplementation$1) return implementation$a;
|
|
53
|
+
hasRequiredImplementation$1 = 1;
|
|
54
54
|
|
|
55
55
|
var keysShim;
|
|
56
56
|
if (!Object.keys) {
|
|
@@ -171,15 +171,15 @@ function requireImplementation () {
|
|
|
171
171
|
return theKeys;
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
implementation$
|
|
175
|
-
return implementation$
|
|
174
|
+
implementation$a = keysShim;
|
|
175
|
+
return implementation$a;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var slice = Array.prototype.slice;
|
|
179
179
|
var isArgs = isArguments$3;
|
|
180
180
|
|
|
181
181
|
var origKeys = Object.keys;
|
|
182
|
-
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : requireImplementation();
|
|
182
|
+
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : requireImplementation$1();
|
|
183
183
|
|
|
184
184
|
var originalKeys = Object.keys;
|
|
185
185
|
|
|
@@ -206,6 +206,274 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
206
206
|
|
|
207
207
|
var objectKeys$2 = keysShim;
|
|
208
208
|
|
|
209
|
+
/** @type {import('.')} */
|
|
210
|
+
var $defineProperty$3 = Object.defineProperty || false;
|
|
211
|
+
if ($defineProperty$3) {
|
|
212
|
+
try {
|
|
213
|
+
$defineProperty$3({}, 'a', { value: 1 });
|
|
214
|
+
} catch (e) {
|
|
215
|
+
// IE 8 has a broken defineProperty
|
|
216
|
+
$defineProperty$3 = false;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
var esDefineProperty = $defineProperty$3;
|
|
221
|
+
|
|
222
|
+
/** @type {import('./syntax')} */
|
|
223
|
+
var syntax = SyntaxError;
|
|
224
|
+
|
|
225
|
+
/** @type {import('./type')} */
|
|
226
|
+
var type = TypeError;
|
|
227
|
+
|
|
228
|
+
/** @type {import('./gOPD')} */
|
|
229
|
+
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
230
|
+
|
|
231
|
+
/** @type {import('.')} */
|
|
232
|
+
var $gOPD$2 = gOPD$5;
|
|
233
|
+
|
|
234
|
+
if ($gOPD$2) {
|
|
235
|
+
try {
|
|
236
|
+
$gOPD$2([], 'length');
|
|
237
|
+
} catch (e) {
|
|
238
|
+
// IE 8 has a broken gOPD
|
|
239
|
+
$gOPD$2 = null;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
var gopd$1 = $gOPD$2;
|
|
244
|
+
|
|
245
|
+
var $defineProperty$2 = esDefineProperty;
|
|
246
|
+
|
|
247
|
+
var $SyntaxError$2 = syntax;
|
|
248
|
+
var $TypeError$a = type;
|
|
249
|
+
|
|
250
|
+
var gopd = gopd$1;
|
|
251
|
+
|
|
252
|
+
/** @type {import('.')} */
|
|
253
|
+
var defineDataProperty$1 = function defineDataProperty(
|
|
254
|
+
obj,
|
|
255
|
+
property,
|
|
256
|
+
value
|
|
257
|
+
) {
|
|
258
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
259
|
+
throw new $TypeError$a('`obj` must be an object or a function`');
|
|
260
|
+
}
|
|
261
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
262
|
+
throw new $TypeError$a('`property` must be a string or a symbol`');
|
|
263
|
+
}
|
|
264
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
265
|
+
throw new $TypeError$a('`nonEnumerable`, if provided, must be a boolean or null');
|
|
266
|
+
}
|
|
267
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
268
|
+
throw new $TypeError$a('`nonWritable`, if provided, must be a boolean or null');
|
|
269
|
+
}
|
|
270
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
271
|
+
throw new $TypeError$a('`nonConfigurable`, if provided, must be a boolean or null');
|
|
272
|
+
}
|
|
273
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
274
|
+
throw new $TypeError$a('`loose`, if provided, must be a boolean');
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
278
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
279
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
280
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
281
|
+
|
|
282
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
283
|
+
var desc = !!gopd && gopd(obj, property);
|
|
284
|
+
|
|
285
|
+
if ($defineProperty$2) {
|
|
286
|
+
$defineProperty$2(obj, property, {
|
|
287
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
288
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
289
|
+
value: value,
|
|
290
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
291
|
+
});
|
|
292
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
293
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
294
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
295
|
+
} else {
|
|
296
|
+
throw new $SyntaxError$2('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
var $defineProperty$1 = esDefineProperty;
|
|
301
|
+
|
|
302
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
303
|
+
return !!$defineProperty$1;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
307
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
308
|
+
if (!$defineProperty$1) {
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
try {
|
|
312
|
+
return $defineProperty$1([], 'length', { value: 1 }).length !== 1;
|
|
313
|
+
} catch (e) {
|
|
314
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
320
|
+
|
|
321
|
+
var keys = objectKeys$2;
|
|
322
|
+
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
323
|
+
|
|
324
|
+
var toStr$7 = Object.prototype.toString;
|
|
325
|
+
var concat = Array.prototype.concat;
|
|
326
|
+
var defineDataProperty = defineDataProperty$1;
|
|
327
|
+
|
|
328
|
+
var isFunction = function (fn) {
|
|
329
|
+
return typeof fn === 'function' && toStr$7.call(fn) === '[object Function]';
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
333
|
+
|
|
334
|
+
var defineProperty$1 = function (object, name, value, predicate) {
|
|
335
|
+
if (name in object) {
|
|
336
|
+
if (predicate === true) {
|
|
337
|
+
if (object[name] === value) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
} else if (!isFunction(predicate) || !predicate()) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
if (supportsDescriptors$2) {
|
|
346
|
+
defineDataProperty(object, name, value, true);
|
|
347
|
+
} else {
|
|
348
|
+
defineDataProperty(object, name, value);
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
var defineProperties$1 = function (object, map) {
|
|
353
|
+
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
354
|
+
var props = keys(map);
|
|
355
|
+
if (hasSymbols$5) {
|
|
356
|
+
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
357
|
+
}
|
|
358
|
+
for (var i = 0; i < props.length; i += 1) {
|
|
359
|
+
defineProperty$1(object, props[i], map[props[i]], predicates[props[i]]);
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
364
|
+
|
|
365
|
+
var defineProperties_1 = defineProperties$1;
|
|
366
|
+
|
|
367
|
+
var callBind$6 = {exports: {}};
|
|
368
|
+
|
|
369
|
+
var implementation$9;
|
|
370
|
+
var hasRequiredImplementation;
|
|
371
|
+
|
|
372
|
+
function requireImplementation () {
|
|
373
|
+
if (hasRequiredImplementation) return implementation$9;
|
|
374
|
+
hasRequiredImplementation = 1;
|
|
375
|
+
|
|
376
|
+
/* eslint no-invalid-this: 1 */
|
|
377
|
+
|
|
378
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
379
|
+
var toStr = Object.prototype.toString;
|
|
380
|
+
var max = Math.max;
|
|
381
|
+
var funcType = '[object Function]';
|
|
382
|
+
|
|
383
|
+
var concatty = function concatty(a, b) {
|
|
384
|
+
var arr = [];
|
|
385
|
+
|
|
386
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
387
|
+
arr[i] = a[i];
|
|
388
|
+
}
|
|
389
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
390
|
+
arr[j + a.length] = b[j];
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return arr;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
var slicy = function slicy(arrLike, offset) {
|
|
397
|
+
var arr = [];
|
|
398
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
399
|
+
arr[j] = arrLike[i];
|
|
400
|
+
}
|
|
401
|
+
return arr;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
var joiny = function (arr, joiner) {
|
|
405
|
+
var str = '';
|
|
406
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
407
|
+
str += arr[i];
|
|
408
|
+
if (i + 1 < arr.length) {
|
|
409
|
+
str += joiner;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return str;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
implementation$9 = function bind(that) {
|
|
416
|
+
var target = this;
|
|
417
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
418
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
419
|
+
}
|
|
420
|
+
var args = slicy(arguments, 1);
|
|
421
|
+
|
|
422
|
+
var bound;
|
|
423
|
+
var binder = function () {
|
|
424
|
+
if (this instanceof bound) {
|
|
425
|
+
var result = target.apply(
|
|
426
|
+
this,
|
|
427
|
+
concatty(args, arguments)
|
|
428
|
+
);
|
|
429
|
+
if (Object(result) === result) {
|
|
430
|
+
return result;
|
|
431
|
+
}
|
|
432
|
+
return this;
|
|
433
|
+
}
|
|
434
|
+
return target.apply(
|
|
435
|
+
that,
|
|
436
|
+
concatty(args, arguments)
|
|
437
|
+
);
|
|
438
|
+
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
var boundLength = max(0, target.length - args.length);
|
|
442
|
+
var boundArgs = [];
|
|
443
|
+
for (var i = 0; i < boundLength; i++) {
|
|
444
|
+
boundArgs[i] = '$' + i;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
448
|
+
|
|
449
|
+
if (target.prototype) {
|
|
450
|
+
var Empty = function Empty() {};
|
|
451
|
+
Empty.prototype = target.prototype;
|
|
452
|
+
bound.prototype = new Empty();
|
|
453
|
+
Empty.prototype = null;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
return bound;
|
|
457
|
+
};
|
|
458
|
+
return implementation$9;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
var functionBind;
|
|
462
|
+
var hasRequiredFunctionBind;
|
|
463
|
+
|
|
464
|
+
function requireFunctionBind () {
|
|
465
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
466
|
+
hasRequiredFunctionBind = 1;
|
|
467
|
+
|
|
468
|
+
var implementation = requireImplementation();
|
|
469
|
+
|
|
470
|
+
functionBind = Function.prototype.bind || implementation;
|
|
471
|
+
return functionBind;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** @type {import('.')} */
|
|
475
|
+
var esObjectAtoms = Object;
|
|
476
|
+
|
|
209
477
|
/** @type {import('.')} */
|
|
210
478
|
var esErrors = Error;
|
|
211
479
|
|
|
@@ -218,15 +486,42 @@ var range = RangeError;
|
|
|
218
486
|
/** @type {import('./ref')} */
|
|
219
487
|
var ref = ReferenceError;
|
|
220
488
|
|
|
221
|
-
/** @type {import('./syntax')} */
|
|
222
|
-
var syntax = SyntaxError;
|
|
223
|
-
|
|
224
|
-
/** @type {import('./type')} */
|
|
225
|
-
var type = TypeError;
|
|
226
|
-
|
|
227
489
|
/** @type {import('./uri')} */
|
|
228
490
|
var uri = URIError;
|
|
229
491
|
|
|
492
|
+
/** @type {import('./abs')} */
|
|
493
|
+
var abs$1 = Math.abs;
|
|
494
|
+
|
|
495
|
+
/** @type {import('./floor')} */
|
|
496
|
+
var floor$1 = Math.floor;
|
|
497
|
+
|
|
498
|
+
/** @type {import('./max')} */
|
|
499
|
+
var max$1 = Math.max;
|
|
500
|
+
|
|
501
|
+
/** @type {import('./min')} */
|
|
502
|
+
var min$1 = Math.min;
|
|
503
|
+
|
|
504
|
+
/** @type {import('./pow')} */
|
|
505
|
+
var pow$1 = Math.pow;
|
|
506
|
+
|
|
507
|
+
/** @type {import('./round')} */
|
|
508
|
+
var round$1 = Math.round;
|
|
509
|
+
|
|
510
|
+
/** @type {import('./isNaN')} */
|
|
511
|
+
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
512
|
+
return a !== a;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
var $isNaN = _isNaN;
|
|
516
|
+
|
|
517
|
+
/** @type {import('./sign')} */
|
|
518
|
+
var sign$1 = function sign(number) {
|
|
519
|
+
if ($isNaN(number) || number === 0) {
|
|
520
|
+
return number;
|
|
521
|
+
}
|
|
522
|
+
return number < 0 ? -1 : +1;
|
|
523
|
+
};
|
|
524
|
+
|
|
230
525
|
var shams$1;
|
|
231
526
|
var hasRequiredShams;
|
|
232
527
|
|
|
@@ -234,11 +529,13 @@ function requireShams () {
|
|
|
234
529
|
if (hasRequiredShams) return shams$1;
|
|
235
530
|
hasRequiredShams = 1;
|
|
236
531
|
|
|
532
|
+
/** @type {import('./shams')} */
|
|
237
533
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
238
534
|
shams$1 = function hasSymbols() {
|
|
239
535
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
240
536
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
241
537
|
|
|
538
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
242
539
|
var obj = {};
|
|
243
540
|
var sym = Symbol('test');
|
|
244
541
|
var symObj = Object(sym);
|
|
@@ -257,7 +554,7 @@ function requireShams () {
|
|
|
257
554
|
|
|
258
555
|
var symVal = 42;
|
|
259
556
|
obj[sym] = symVal;
|
|
260
|
-
for (
|
|
557
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
261
558
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
262
559
|
|
|
263
560
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -268,7 +565,8 @@ function requireShams () {
|
|
|
268
565
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
269
566
|
|
|
270
567
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
271
|
-
|
|
568
|
+
// eslint-disable-next-line no-extra-parens
|
|
569
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
272
570
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
273
571
|
}
|
|
274
572
|
|
|
@@ -280,7 +578,8 @@ function requireShams () {
|
|
|
280
578
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
281
579
|
var hasSymbolSham = requireShams();
|
|
282
580
|
|
|
283
|
-
|
|
581
|
+
/** @type {import('.')} */
|
|
582
|
+
var hasSymbols$4 = function hasNativeSymbols() {
|
|
284
583
|
if (typeof origSymbol !== 'function') { return false; }
|
|
285
584
|
if (typeof Symbol !== 'function') { return false; }
|
|
286
585
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -289,124 +588,191 @@ var hasSymbols$5 = function hasNativeSymbols() {
|
|
|
289
588
|
return hasSymbolSham();
|
|
290
589
|
};
|
|
291
590
|
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
foo: {}
|
|
295
|
-
};
|
|
591
|
+
var Reflect_getPrototypeOf;
|
|
592
|
+
var hasRequiredReflect_getPrototypeOf;
|
|
296
593
|
|
|
297
|
-
|
|
594
|
+
function requireReflect_getPrototypeOf () {
|
|
595
|
+
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
596
|
+
hasRequiredReflect_getPrototypeOf = 1;
|
|
298
597
|
|
|
299
|
-
/** @type {import('.')} */
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
&& !(test instanceof $Object$1);
|
|
304
|
-
};
|
|
598
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
599
|
+
Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
600
|
+
return Reflect_getPrototypeOf;
|
|
601
|
+
}
|
|
305
602
|
|
|
306
|
-
|
|
603
|
+
var Object_getPrototypeOf;
|
|
604
|
+
var hasRequiredObject_getPrototypeOf;
|
|
307
605
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
var funcType = '[object Function]';
|
|
606
|
+
function requireObject_getPrototypeOf () {
|
|
607
|
+
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
608
|
+
hasRequiredObject_getPrototypeOf = 1;
|
|
312
609
|
|
|
313
|
-
var
|
|
314
|
-
var arr = [];
|
|
610
|
+
var $Object = esObjectAtoms;
|
|
315
611
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
arr[j + a.length] = b[j];
|
|
321
|
-
}
|
|
612
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
613
|
+
Object_getPrototypeOf = $Object.getPrototypeOf || null;
|
|
614
|
+
return Object_getPrototypeOf;
|
|
615
|
+
}
|
|
322
616
|
|
|
323
|
-
|
|
324
|
-
|
|
617
|
+
var functionCall;
|
|
618
|
+
var hasRequiredFunctionCall;
|
|
325
619
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
arr[j] = arrLike[i];
|
|
330
|
-
}
|
|
331
|
-
return arr;
|
|
332
|
-
};
|
|
620
|
+
function requireFunctionCall () {
|
|
621
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
622
|
+
hasRequiredFunctionCall = 1;
|
|
333
623
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
if (i + 1 < arr.length) {
|
|
339
|
-
str += joiner;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return str;
|
|
343
|
-
};
|
|
624
|
+
/** @type {import('./functionCall')} */
|
|
625
|
+
functionCall = Function.prototype.call;
|
|
626
|
+
return functionCall;
|
|
627
|
+
}
|
|
344
628
|
|
|
345
|
-
var
|
|
346
|
-
|
|
347
|
-
if (typeof target !== 'function' || toStr$8.apply(target) !== funcType) {
|
|
348
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
349
|
-
}
|
|
350
|
-
var args = slicy(arguments, 1);
|
|
351
|
-
|
|
352
|
-
var bound;
|
|
353
|
-
var binder = function () {
|
|
354
|
-
if (this instanceof bound) {
|
|
355
|
-
var result = target.apply(
|
|
356
|
-
this,
|
|
357
|
-
concatty(args, arguments)
|
|
358
|
-
);
|
|
359
|
-
if (Object(result) === result) {
|
|
360
|
-
return result;
|
|
361
|
-
}
|
|
362
|
-
return this;
|
|
363
|
-
}
|
|
364
|
-
return target.apply(
|
|
365
|
-
that,
|
|
366
|
-
concatty(args, arguments)
|
|
367
|
-
);
|
|
629
|
+
var functionApply;
|
|
630
|
+
var hasRequiredFunctionApply;
|
|
368
631
|
|
|
369
|
-
|
|
632
|
+
function requireFunctionApply () {
|
|
633
|
+
if (hasRequiredFunctionApply) return functionApply;
|
|
634
|
+
hasRequiredFunctionApply = 1;
|
|
370
635
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
636
|
+
/** @type {import('./functionApply')} */
|
|
637
|
+
functionApply = Function.prototype.apply;
|
|
638
|
+
return functionApply;
|
|
639
|
+
}
|
|
376
640
|
|
|
377
|
-
|
|
641
|
+
/** @type {import('./reflectApply')} */
|
|
642
|
+
var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
378
643
|
|
|
379
|
-
|
|
380
|
-
var Empty = function Empty() {};
|
|
381
|
-
Empty.prototype = target.prototype;
|
|
382
|
-
bound.prototype = new Empty();
|
|
383
|
-
Empty.prototype = null;
|
|
384
|
-
}
|
|
644
|
+
var bind$2 = requireFunctionBind();
|
|
385
645
|
|
|
386
|
-
|
|
387
|
-
|
|
646
|
+
var $apply$1 = requireFunctionApply();
|
|
647
|
+
var $call$2 = requireFunctionCall();
|
|
648
|
+
var $reflectApply = reflectApply$1;
|
|
388
649
|
|
|
389
|
-
|
|
650
|
+
/** @type {import('./actualApply')} */
|
|
651
|
+
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
390
652
|
|
|
391
|
-
var
|
|
653
|
+
var bind$1 = requireFunctionBind();
|
|
654
|
+
var $TypeError$9 = type;
|
|
392
655
|
|
|
393
|
-
var call =
|
|
394
|
-
var $
|
|
395
|
-
var bind$1 = functionBind;
|
|
656
|
+
var $call$1 = requireFunctionCall();
|
|
657
|
+
var $actualApply = actualApply;
|
|
396
658
|
|
|
397
659
|
/** @type {import('.')} */
|
|
398
|
-
var
|
|
660
|
+
var callBindApplyHelpers = function callBindBasic(args) {
|
|
661
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
662
|
+
throw new $TypeError$9('a function is required');
|
|
663
|
+
}
|
|
664
|
+
return $actualApply(bind$1, $call$1, args);
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
var get;
|
|
668
|
+
var hasRequiredGet;
|
|
669
|
+
|
|
670
|
+
function requireGet () {
|
|
671
|
+
if (hasRequiredGet) return get;
|
|
672
|
+
hasRequiredGet = 1;
|
|
673
|
+
|
|
674
|
+
var callBind = callBindApplyHelpers;
|
|
675
|
+
var gOPD = gopd$1;
|
|
676
|
+
|
|
677
|
+
var hasProtoAccessor;
|
|
678
|
+
try {
|
|
679
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
680
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
681
|
+
} catch (e) {
|
|
682
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
683
|
+
throw e;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
// eslint-disable-next-line no-extra-parens
|
|
688
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
689
|
+
|
|
690
|
+
var $Object = Object;
|
|
691
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
692
|
+
|
|
693
|
+
/** @type {import('./get')} */
|
|
694
|
+
get = desc && typeof desc.get === 'function'
|
|
695
|
+
? callBind([desc.get])
|
|
696
|
+
: typeof $getPrototypeOf === 'function'
|
|
697
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
698
|
+
// eslint-disable-next-line eqeqeq
|
|
699
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
700
|
+
}
|
|
701
|
+
: false;
|
|
702
|
+
return get;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
var getProto$2;
|
|
706
|
+
var hasRequiredGetProto;
|
|
707
|
+
|
|
708
|
+
function requireGetProto () {
|
|
709
|
+
if (hasRequiredGetProto) return getProto$2;
|
|
710
|
+
hasRequiredGetProto = 1;
|
|
711
|
+
|
|
712
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
713
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
714
|
+
|
|
715
|
+
var getDunderProto = requireGet();
|
|
716
|
+
|
|
717
|
+
/** @type {import('.')} */
|
|
718
|
+
getProto$2 = reflectGetProto
|
|
719
|
+
? function getProto(O) {
|
|
720
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
721
|
+
return reflectGetProto(O);
|
|
722
|
+
}
|
|
723
|
+
: originalGetProto
|
|
724
|
+
? function getProto(O) {
|
|
725
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
726
|
+
throw new TypeError('getProto: not an object');
|
|
727
|
+
}
|
|
728
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
729
|
+
return originalGetProto(O);
|
|
730
|
+
}
|
|
731
|
+
: getDunderProto
|
|
732
|
+
? function getProto(O) {
|
|
733
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
734
|
+
return getDunderProto(O);
|
|
735
|
+
}
|
|
736
|
+
: null;
|
|
737
|
+
return getProto$2;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
var hasown;
|
|
741
|
+
var hasRequiredHasown;
|
|
742
|
+
|
|
743
|
+
function requireHasown () {
|
|
744
|
+
if (hasRequiredHasown) return hasown;
|
|
745
|
+
hasRequiredHasown = 1;
|
|
746
|
+
|
|
747
|
+
var call = Function.prototype.call;
|
|
748
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
749
|
+
var bind = requireFunctionBind();
|
|
750
|
+
|
|
751
|
+
/** @type {import('.')} */
|
|
752
|
+
hasown = bind.call(call, $hasOwn);
|
|
753
|
+
return hasown;
|
|
754
|
+
}
|
|
399
755
|
|
|
400
756
|
var undefined$1;
|
|
401
757
|
|
|
758
|
+
var $Object$1 = esObjectAtoms;
|
|
759
|
+
|
|
402
760
|
var $Error = esErrors;
|
|
403
761
|
var $EvalError = _eval;
|
|
404
762
|
var $RangeError = range;
|
|
405
763
|
var $ReferenceError = ref;
|
|
406
|
-
var $SyntaxError$
|
|
407
|
-
var $TypeError$
|
|
764
|
+
var $SyntaxError$1 = syntax;
|
|
765
|
+
var $TypeError$8 = type;
|
|
408
766
|
var $URIError = uri;
|
|
409
767
|
|
|
768
|
+
var abs = abs$1;
|
|
769
|
+
var floor = floor$1;
|
|
770
|
+
var max = max$1;
|
|
771
|
+
var min = min$1;
|
|
772
|
+
var pow = pow$1;
|
|
773
|
+
var round = round$1;
|
|
774
|
+
var sign = sign$1;
|
|
775
|
+
|
|
410
776
|
var $Function = Function;
|
|
411
777
|
|
|
412
778
|
// eslint-disable-next-line consistent-return
|
|
@@ -416,19 +782,13 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
416
782
|
} catch (e) {}
|
|
417
783
|
};
|
|
418
784
|
|
|
419
|
-
var $gOPD$
|
|
420
|
-
|
|
421
|
-
try {
|
|
422
|
-
$gOPD$2({}, '');
|
|
423
|
-
} catch (e) {
|
|
424
|
-
$gOPD$2 = null; // this is IE 8, which has a broken gOPD
|
|
425
|
-
}
|
|
426
|
-
}
|
|
785
|
+
var $gOPD$1 = gopd$1;
|
|
786
|
+
var $defineProperty = esDefineProperty;
|
|
427
787
|
|
|
428
788
|
var throwTypeError = function () {
|
|
429
|
-
throw new $TypeError$
|
|
789
|
+
throw new $TypeError$8();
|
|
430
790
|
};
|
|
431
|
-
var ThrowTypeError = $gOPD$
|
|
791
|
+
var ThrowTypeError = $gOPD$1
|
|
432
792
|
? (function () {
|
|
433
793
|
try {
|
|
434
794
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
@@ -437,7 +797,7 @@ var ThrowTypeError = $gOPD$2
|
|
|
437
797
|
} catch (calleeThrows) {
|
|
438
798
|
try {
|
|
439
799
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
440
|
-
return $gOPD$
|
|
800
|
+
return $gOPD$1(arguments, 'callee').get;
|
|
441
801
|
} catch (gOPDthrows) {
|
|
442
802
|
return throwTypeError;
|
|
443
803
|
}
|
|
@@ -445,14 +805,14 @@ var ThrowTypeError = $gOPD$2
|
|
|
445
805
|
}())
|
|
446
806
|
: throwTypeError;
|
|
447
807
|
|
|
448
|
-
var hasSymbols$
|
|
449
|
-
var hasProto = hasProto$1();
|
|
808
|
+
var hasSymbols$3 = hasSymbols$4();
|
|
450
809
|
|
|
451
|
-
var getProto$1 =
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
);
|
|
810
|
+
var getProto$1 = requireGetProto();
|
|
811
|
+
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
812
|
+
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
813
|
+
|
|
814
|
+
var $apply = requireFunctionApply();
|
|
815
|
+
var $call = requireFunctionCall();
|
|
456
816
|
|
|
457
817
|
var needsEval = {};
|
|
458
818
|
|
|
@@ -463,7 +823,7 @@ var INTRINSICS = {
|
|
|
463
823
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
464
824
|
'%Array%': Array,
|
|
465
825
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
466
|
-
'%ArrayIteratorPrototype%': hasSymbols$
|
|
826
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
|
|
467
827
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
468
828
|
'%AsyncFunction%': needsEval,
|
|
469
829
|
'%AsyncGenerator%': needsEval,
|
|
@@ -493,13 +853,14 @@ var INTRINSICS = {
|
|
|
493
853
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
494
854
|
'%isFinite%': isFinite,
|
|
495
855
|
'%isNaN%': isNaN,
|
|
496
|
-
'%IteratorPrototype%': hasSymbols$
|
|
856
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
|
|
497
857
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
498
858
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
499
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$
|
|
859
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$1 ? undefined$1 : getProto$1(new Map()[Symbol.iterator]()),
|
|
500
860
|
'%Math%': Math,
|
|
501
861
|
'%Number%': Number,
|
|
502
|
-
'%Object%': Object,
|
|
862
|
+
'%Object%': $Object$1,
|
|
863
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD$1,
|
|
503
864
|
'%parseFloat%': parseFloat,
|
|
504
865
|
'%parseInt%': parseInt,
|
|
505
866
|
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
@@ -509,15 +870,15 @@ var INTRINSICS = {
|
|
|
509
870
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
510
871
|
'%RegExp%': RegExp,
|
|
511
872
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
512
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$
|
|
873
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$1 ? undefined$1 : getProto$1(new Set()[Symbol.iterator]()),
|
|
513
874
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
514
875
|
'%String%': String,
|
|
515
|
-
'%StringIteratorPrototype%': hasSymbols$
|
|
516
|
-
'%Symbol%': hasSymbols$
|
|
517
|
-
'%SyntaxError%': $SyntaxError$
|
|
876
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1(''[Symbol.iterator]()) : undefined$1,
|
|
877
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
878
|
+
'%SyntaxError%': $SyntaxError$1,
|
|
518
879
|
'%ThrowTypeError%': ThrowTypeError,
|
|
519
880
|
'%TypedArray%': TypedArray,
|
|
520
|
-
'%TypeError%': $TypeError$
|
|
881
|
+
'%TypeError%': $TypeError$8,
|
|
521
882
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
522
883
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
523
884
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -525,7 +886,20 @@ var INTRINSICS = {
|
|
|
525
886
|
'%URIError%': $URIError,
|
|
526
887
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
527
888
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
528
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
889
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
890
|
+
|
|
891
|
+
'%Function.prototype.call%': $call,
|
|
892
|
+
'%Function.prototype.apply%': $apply,
|
|
893
|
+
'%Object.defineProperty%': $defineProperty,
|
|
894
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
895
|
+
'%Math.abs%': abs,
|
|
896
|
+
'%Math.floor%': floor,
|
|
897
|
+
'%Math.max%': max,
|
|
898
|
+
'%Math.min%': min,
|
|
899
|
+
'%Math.pow%': pow,
|
|
900
|
+
'%Math.round%': round,
|
|
901
|
+
'%Math.sign%': sign,
|
|
902
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
529
903
|
};
|
|
530
904
|
|
|
531
905
|
if (getProto$1) {
|
|
@@ -618,13 +992,13 @@ var LEGACY_ALIASES = {
|
|
|
618
992
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
619
993
|
};
|
|
620
994
|
|
|
621
|
-
var bind =
|
|
622
|
-
var hasOwn$2 =
|
|
623
|
-
var $concat$1 = bind.call(
|
|
624
|
-
var $spliceApply = bind.call(
|
|
625
|
-
var $replace$1 = bind.call(
|
|
626
|
-
var $strSlice = bind.call(
|
|
627
|
-
var $exec$1 = bind.call(
|
|
995
|
+
var bind = requireFunctionBind();
|
|
996
|
+
var hasOwn$2 = requireHasown();
|
|
997
|
+
var $concat$1 = bind.call($call, Array.prototype.concat);
|
|
998
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
999
|
+
var $replace$1 = bind.call($call, String.prototype.replace);
|
|
1000
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1001
|
+
var $exec$1 = bind.call($call, RegExp.prototype.exec);
|
|
628
1002
|
|
|
629
1003
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
630
1004
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -633,9 +1007,9 @@ var stringToPath = function stringToPath(string) {
|
|
|
633
1007
|
var first = $strSlice(string, 0, 1);
|
|
634
1008
|
var last = $strSlice(string, -1);
|
|
635
1009
|
if (first === '%' && last !== '%') {
|
|
636
|
-
throw new $SyntaxError$
|
|
1010
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
|
|
637
1011
|
} else if (last === '%' && first !== '%') {
|
|
638
|
-
throw new $SyntaxError$
|
|
1012
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
|
|
639
1013
|
}
|
|
640
1014
|
var result = [];
|
|
641
1015
|
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
|
@@ -658,281 +1032,118 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
658
1032
|
if (value === needsEval) {
|
|
659
1033
|
value = doEval(intrinsicName);
|
|
660
1034
|
}
|
|
661
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
662
|
-
throw new $TypeError$
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
return {
|
|
666
|
-
alias: alias,
|
|
667
|
-
name: intrinsicName,
|
|
668
|
-
value: value
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
throw new $SyntaxError$2('intrinsic ' + name + ' does not exist!');
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
676
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
677
|
-
throw new $TypeError$6('intrinsic name must be a non-empty string');
|
|
678
|
-
}
|
|
679
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
680
|
-
throw new $TypeError$6('"allowMissing" argument must be a boolean');
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
684
|
-
throw new $SyntaxError$2('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
685
|
-
}
|
|
686
|
-
var parts = stringToPath(name);
|
|
687
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
688
|
-
|
|
689
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
690
|
-
var intrinsicRealName = intrinsic.name;
|
|
691
|
-
var value = intrinsic.value;
|
|
692
|
-
var skipFurtherCaching = false;
|
|
693
|
-
|
|
694
|
-
var alias = intrinsic.alias;
|
|
695
|
-
if (alias) {
|
|
696
|
-
intrinsicBaseName = alias[0];
|
|
697
|
-
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
701
|
-
var part = parts[i];
|
|
702
|
-
var first = $strSlice(part, 0, 1);
|
|
703
|
-
var last = $strSlice(part, -1);
|
|
704
|
-
if (
|
|
705
|
-
(
|
|
706
|
-
(first === '"' || first === "'" || first === '`')
|
|
707
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
708
|
-
)
|
|
709
|
-
&& first !== last
|
|
710
|
-
) {
|
|
711
|
-
throw new $SyntaxError$2('property names with quotes must have matching quotes');
|
|
712
|
-
}
|
|
713
|
-
if (part === 'constructor' || !isOwn) {
|
|
714
|
-
skipFurtherCaching = true;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
intrinsicBaseName += '.' + part;
|
|
718
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
719
|
-
|
|
720
|
-
if (hasOwn$2(INTRINSICS, intrinsicRealName)) {
|
|
721
|
-
value = INTRINSICS[intrinsicRealName];
|
|
722
|
-
} else if (value != null) {
|
|
723
|
-
if (!(part in value)) {
|
|
724
|
-
if (!allowMissing) {
|
|
725
|
-
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
726
|
-
}
|
|
727
|
-
return void undefined$1;
|
|
728
|
-
}
|
|
729
|
-
if ($gOPD$2 && (i + 1) >= parts.length) {
|
|
730
|
-
var desc = $gOPD$2(value, part);
|
|
731
|
-
isOwn = !!desc;
|
|
732
|
-
|
|
733
|
-
// By convention, when a data property is converted to an accessor
|
|
734
|
-
// property to emulate a data property that does not suffer from
|
|
735
|
-
// the override mistake, that accessor's getter is marked with
|
|
736
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
737
|
-
// uphold the illusion by pretending to see that original data
|
|
738
|
-
// property, i.e., returning the value rather than the getter
|
|
739
|
-
// itself.
|
|
740
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
741
|
-
value = desc.get;
|
|
742
|
-
} else {
|
|
743
|
-
value = value[part];
|
|
744
|
-
}
|
|
745
|
-
} else {
|
|
746
|
-
isOwn = hasOwn$2(value, part);
|
|
747
|
-
value = value[part];
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
if (isOwn && !skipFurtherCaching) {
|
|
751
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
return value;
|
|
756
|
-
};
|
|
757
|
-
|
|
758
|
-
var esDefineProperty;
|
|
759
|
-
var hasRequiredEsDefineProperty;
|
|
760
|
-
|
|
761
|
-
function requireEsDefineProperty () {
|
|
762
|
-
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
763
|
-
hasRequiredEsDefineProperty = 1;
|
|
764
|
-
|
|
765
|
-
var GetIntrinsic = getIntrinsic;
|
|
766
|
-
|
|
767
|
-
/** @type {import('.')} */
|
|
768
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
769
|
-
if ($defineProperty) {
|
|
770
|
-
try {
|
|
771
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
772
|
-
} catch (e) {
|
|
773
|
-
// IE 8 has a broken defineProperty
|
|
774
|
-
$defineProperty = false;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
esDefineProperty = $defineProperty;
|
|
779
|
-
return esDefineProperty;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
var GetIntrinsic$7 = getIntrinsic;
|
|
783
|
-
|
|
784
|
-
var $gOPD$1 = GetIntrinsic$7('%Object.getOwnPropertyDescriptor%', true);
|
|
785
|
-
|
|
786
|
-
if ($gOPD$1) {
|
|
787
|
-
try {
|
|
788
|
-
$gOPD$1([], 'length');
|
|
789
|
-
} catch (e) {
|
|
790
|
-
// IE 8 has a broken gOPD
|
|
791
|
-
$gOPD$1 = null;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
var gopd$1 = $gOPD$1;
|
|
796
|
-
|
|
797
|
-
var $defineProperty$1 = requireEsDefineProperty();
|
|
798
|
-
|
|
799
|
-
var $SyntaxError$1 = syntax;
|
|
800
|
-
var $TypeError$5 = type;
|
|
801
|
-
|
|
802
|
-
var gopd = gopd$1;
|
|
803
|
-
|
|
804
|
-
/** @type {import('.')} */
|
|
805
|
-
var defineDataProperty$1 = function defineDataProperty(
|
|
806
|
-
obj,
|
|
807
|
-
property,
|
|
808
|
-
value
|
|
809
|
-
) {
|
|
810
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
811
|
-
throw new $TypeError$5('`obj` must be an object or a function`');
|
|
812
|
-
}
|
|
813
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
814
|
-
throw new $TypeError$5('`property` must be a string or a symbol`');
|
|
815
|
-
}
|
|
816
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
817
|
-
throw new $TypeError$5('`nonEnumerable`, if provided, must be a boolean or null');
|
|
818
|
-
}
|
|
819
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
820
|
-
throw new $TypeError$5('`nonWritable`, if provided, must be a boolean or null');
|
|
821
|
-
}
|
|
822
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
823
|
-
throw new $TypeError$5('`nonConfigurable`, if provided, must be a boolean or null');
|
|
824
|
-
}
|
|
825
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
826
|
-
throw new $TypeError$5('`loose`, if provided, must be a boolean');
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
830
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
831
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
832
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
833
|
-
|
|
834
|
-
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
835
|
-
var desc = !!gopd && gopd(obj, property);
|
|
836
|
-
|
|
837
|
-
if ($defineProperty$1) {
|
|
838
|
-
$defineProperty$1(obj, property, {
|
|
839
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
840
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
841
|
-
value: value,
|
|
842
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
843
|
-
});
|
|
844
|
-
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
845
|
-
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
846
|
-
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
847
|
-
} else {
|
|
848
|
-
throw new $SyntaxError$1('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
|
|
852
|
-
var $defineProperty = requireEsDefineProperty();
|
|
853
|
-
|
|
854
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
855
|
-
return !!$defineProperty;
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
859
|
-
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
860
|
-
if (!$defineProperty) {
|
|
861
|
-
return null;
|
|
862
|
-
}
|
|
863
|
-
try {
|
|
864
|
-
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
865
|
-
} catch (e) {
|
|
866
|
-
// In Firefox 4-22, defining length on an array throws an exception.
|
|
867
|
-
return true;
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
872
|
-
|
|
873
|
-
var keys = objectKeys$2;
|
|
874
|
-
var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
875
|
-
|
|
876
|
-
var toStr$7 = Object.prototype.toString;
|
|
877
|
-
var concat = Array.prototype.concat;
|
|
878
|
-
var defineDataProperty = defineDataProperty$1;
|
|
879
|
-
|
|
880
|
-
var isFunction = function (fn) {
|
|
881
|
-
return typeof fn === 'function' && toStr$7.call(fn) === '[object Function]';
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
885
|
-
|
|
886
|
-
var defineProperty$1 = function (object, name, value, predicate) {
|
|
887
|
-
if (name in object) {
|
|
888
|
-
if (predicate === true) {
|
|
889
|
-
if (object[name] === value) {
|
|
890
|
-
return;
|
|
891
|
-
}
|
|
892
|
-
} else if (!isFunction(predicate) || !predicate()) {
|
|
893
|
-
return;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
1035
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
1036
|
+
throw new $TypeError$8('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1037
|
+
}
|
|
896
1038
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
1039
|
+
return {
|
|
1040
|
+
alias: alias,
|
|
1041
|
+
name: intrinsicName,
|
|
1042
|
+
value: value
|
|
1043
|
+
};
|
|
901
1044
|
}
|
|
1045
|
+
|
|
1046
|
+
throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
|
|
902
1047
|
};
|
|
903
1048
|
|
|
904
|
-
var
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
if (hasSymbols$3) {
|
|
908
|
-
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
1049
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1050
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
1051
|
+
throw new $TypeError$8('intrinsic name must be a non-empty string');
|
|
909
1052
|
}
|
|
910
|
-
|
|
911
|
-
|
|
1053
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1054
|
+
throw new $TypeError$8('"allowMissing" argument must be a boolean');
|
|
912
1055
|
}
|
|
913
|
-
};
|
|
914
1056
|
|
|
915
|
-
|
|
1057
|
+
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
1058
|
+
throw new $SyntaxError$1('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
1059
|
+
}
|
|
1060
|
+
var parts = stringToPath(name);
|
|
1061
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
916
1062
|
|
|
917
|
-
var
|
|
1063
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
1064
|
+
var intrinsicRealName = intrinsic.name;
|
|
1065
|
+
var value = intrinsic.value;
|
|
1066
|
+
var skipFurtherCaching = false;
|
|
918
1067
|
|
|
919
|
-
var
|
|
1068
|
+
var alias = intrinsic.alias;
|
|
1069
|
+
if (alias) {
|
|
1070
|
+
intrinsicBaseName = alias[0];
|
|
1071
|
+
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
1072
|
+
}
|
|
920
1073
|
|
|
921
|
-
var
|
|
1074
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1075
|
+
var part = parts[i];
|
|
1076
|
+
var first = $strSlice(part, 0, 1);
|
|
1077
|
+
var last = $strSlice(part, -1);
|
|
1078
|
+
if (
|
|
1079
|
+
(
|
|
1080
|
+
(first === '"' || first === "'" || first === '`')
|
|
1081
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
1082
|
+
)
|
|
1083
|
+
&& first !== last
|
|
1084
|
+
) {
|
|
1085
|
+
throw new $SyntaxError$1('property names with quotes must have matching quotes');
|
|
1086
|
+
}
|
|
1087
|
+
if (part === 'constructor' || !isOwn) {
|
|
1088
|
+
skipFurtherCaching = true;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
intrinsicBaseName += '.' + part;
|
|
1092
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1093
|
+
|
|
1094
|
+
if (hasOwn$2(INTRINSICS, intrinsicRealName)) {
|
|
1095
|
+
value = INTRINSICS[intrinsicRealName];
|
|
1096
|
+
} else if (value != null) {
|
|
1097
|
+
if (!(part in value)) {
|
|
1098
|
+
if (!allowMissing) {
|
|
1099
|
+
throw new $TypeError$8('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1100
|
+
}
|
|
1101
|
+
return void undefined$1;
|
|
1102
|
+
}
|
|
1103
|
+
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
1104
|
+
var desc = $gOPD$1(value, part);
|
|
1105
|
+
isOwn = !!desc;
|
|
1106
|
+
|
|
1107
|
+
// By convention, when a data property is converted to an accessor
|
|
1108
|
+
// property to emulate a data property that does not suffer from
|
|
1109
|
+
// the override mistake, that accessor's getter is marked with
|
|
1110
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
1111
|
+
// uphold the illusion by pretending to see that original data
|
|
1112
|
+
// property, i.e., returning the value rather than the getter
|
|
1113
|
+
// itself.
|
|
1114
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1115
|
+
value = desc.get;
|
|
1116
|
+
} else {
|
|
1117
|
+
value = value[part];
|
|
1118
|
+
}
|
|
1119
|
+
} else {
|
|
1120
|
+
isOwn = hasOwn$2(value, part);
|
|
1121
|
+
value = value[part];
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (isOwn && !skipFurtherCaching) {
|
|
1125
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
return value;
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
var GetIntrinsic$8 = getIntrinsic;
|
|
922
1133
|
var define$5 = defineDataProperty$1;
|
|
923
1134
|
var hasDescriptors$1 = hasPropertyDescriptors_1();
|
|
924
1135
|
var gOPD$4 = gopd$1;
|
|
925
1136
|
|
|
926
|
-
var $TypeError$
|
|
927
|
-
var $floor$1 = GetIntrinsic$
|
|
1137
|
+
var $TypeError$7 = type;
|
|
1138
|
+
var $floor$1 = GetIntrinsic$8('%Math.floor%');
|
|
928
1139
|
|
|
929
1140
|
/** @type {import('.')} */
|
|
930
1141
|
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
931
1142
|
if (typeof fn !== 'function') {
|
|
932
|
-
throw new $TypeError$
|
|
1143
|
+
throw new $TypeError$7('`fn` is not a function');
|
|
933
1144
|
}
|
|
934
1145
|
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
|
|
935
|
-
throw new $TypeError$
|
|
1146
|
+
throw new $TypeError$7('`length` must be a positive 32-bit integer');
|
|
936
1147
|
}
|
|
937
1148
|
|
|
938
1149
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
@@ -961,7 +1172,7 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
961
1172
|
|
|
962
1173
|
(function (module) {
|
|
963
1174
|
|
|
964
|
-
var bind =
|
|
1175
|
+
var bind = requireFunctionBind();
|
|
965
1176
|
var GetIntrinsic = getIntrinsic;
|
|
966
1177
|
var setFunctionLength$1 = setFunctionLength;
|
|
967
1178
|
|
|
@@ -970,7 +1181,7 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
970
1181
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
971
1182
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
972
1183
|
|
|
973
|
-
var $defineProperty =
|
|
1184
|
+
var $defineProperty = esDefineProperty;
|
|
974
1185
|
var $max = GetIntrinsic('%Math.max%');
|
|
975
1186
|
|
|
976
1187
|
module.exports = function callBind(originalFunction) {
|
|
@@ -998,15 +1209,15 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
998
1209
|
|
|
999
1210
|
var callBindExports = callBind$6.exports;
|
|
1000
1211
|
|
|
1001
|
-
var GetIntrinsic$
|
|
1212
|
+
var GetIntrinsic$7 = getIntrinsic;
|
|
1002
1213
|
|
|
1003
1214
|
var callBind$5 = callBindExports;
|
|
1004
1215
|
|
|
1005
|
-
var $indexOf$
|
|
1216
|
+
var $indexOf$2 = callBind$5(GetIntrinsic$7('String.prototype.indexOf'));
|
|
1006
1217
|
|
|
1007
|
-
var callBound$
|
|
1008
|
-
var intrinsic = GetIntrinsic$
|
|
1009
|
-
if (typeof intrinsic === 'function' && $indexOf$
|
|
1218
|
+
var callBound$e = function callBoundIntrinsic(name, allowMissing) {
|
|
1219
|
+
var intrinsic = GetIntrinsic$7(name, !!allowMissing);
|
|
1220
|
+
if (typeof intrinsic === 'function' && $indexOf$2(name, '.prototype.') > -1) {
|
|
1010
1221
|
return callBind$5(intrinsic);
|
|
1011
1222
|
}
|
|
1012
1223
|
return intrinsic;
|
|
@@ -1015,10 +1226,10 @@ var callBound$c = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1015
1226
|
// modified from https://github.com/es-shims/es6-shim
|
|
1016
1227
|
var objectKeys$1 = objectKeys$2;
|
|
1017
1228
|
var hasSymbols$2 = requireShams()();
|
|
1018
|
-
var callBound$
|
|
1229
|
+
var callBound$d = callBound$e;
|
|
1019
1230
|
var toObject = Object;
|
|
1020
|
-
var $push = callBound$
|
|
1021
|
-
var $propIsEnumerable = callBound$
|
|
1231
|
+
var $push = callBound$d('Array.prototype.push');
|
|
1232
|
+
var $propIsEnumerable = callBound$d('Object.prototype.propertyIsEnumerable');
|
|
1022
1233
|
var originalGetSymbols = hasSymbols$2 ? Object.getOwnPropertySymbols : null;
|
|
1023
1234
|
|
|
1024
1235
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -1179,12 +1390,12 @@ var define$3 = defineDataProperty$1;
|
|
|
1179
1390
|
var hasDescriptors = hasPropertyDescriptors_1();
|
|
1180
1391
|
var functionsHaveConfigurableNames = functionsHaveNames_1.functionsHaveConfigurableNames();
|
|
1181
1392
|
|
|
1182
|
-
var $TypeError$
|
|
1393
|
+
var $TypeError$6 = type;
|
|
1183
1394
|
|
|
1184
1395
|
/** @type {import('.')} */
|
|
1185
1396
|
var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
1186
1397
|
if (typeof fn !== 'function') {
|
|
1187
|
-
throw new $TypeError$
|
|
1398
|
+
throw new $TypeError$6('`fn` is not a function');
|
|
1188
1399
|
}
|
|
1189
1400
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
1190
1401
|
if (!loose || functionsHaveConfigurableNames) {
|
|
@@ -1198,13 +1409,13 @@ var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
|
1198
1409
|
};
|
|
1199
1410
|
|
|
1200
1411
|
var setFunctionName = setFunctionName$1;
|
|
1201
|
-
var $TypeError$
|
|
1412
|
+
var $TypeError$5 = type;
|
|
1202
1413
|
|
|
1203
1414
|
var $Object = Object;
|
|
1204
1415
|
|
|
1205
1416
|
var implementation$5 = setFunctionName(function flags() {
|
|
1206
1417
|
if (this == null || this !== $Object(this)) {
|
|
1207
|
-
throw new $TypeError$
|
|
1418
|
+
throw new $TypeError$5('RegExp.prototype.flags getter called on non-object');
|
|
1208
1419
|
}
|
|
1209
1420
|
var result = '';
|
|
1210
1421
|
if (this.hasIndices) {
|
|
@@ -1321,9 +1532,9 @@ var shams = function hasToStringTagShams() {
|
|
|
1321
1532
|
};
|
|
1322
1533
|
|
|
1323
1534
|
var hasToStringTag$7 = shams();
|
|
1324
|
-
var callBound$
|
|
1535
|
+
var callBound$c = callBound$e;
|
|
1325
1536
|
|
|
1326
|
-
var $toString$4 = callBound$
|
|
1537
|
+
var $toString$4 = callBound$c('Object.prototype.toString');
|
|
1327
1538
|
|
|
1328
1539
|
var isStandardArguments = function isArguments(value) {
|
|
1329
1540
|
if (hasToStringTag$7 && value && typeof value === 'object' && Symbol.toStringTag in value) {
|
|
@@ -1432,10 +1643,21 @@ var utilInspect = require$$0;
|
|
|
1432
1643
|
var inspectCustom = utilInspect.custom;
|
|
1433
1644
|
var inspectSymbol = isSymbol$2(inspectCustom) ? inspectCustom : null;
|
|
1434
1645
|
|
|
1646
|
+
var quotes = {
|
|
1647
|
+
__proto__: null,
|
|
1648
|
+
'double': '"',
|
|
1649
|
+
single: "'"
|
|
1650
|
+
};
|
|
1651
|
+
var quoteREs = {
|
|
1652
|
+
__proto__: null,
|
|
1653
|
+
'double': /(["\\])/g,
|
|
1654
|
+
single: /(['\\])/g
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1435
1657
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
1436
1658
|
var opts = options || {};
|
|
1437
1659
|
|
|
1438
|
-
if (has$1(opts, 'quoteStyle') && (
|
|
1660
|
+
if (has$1(opts, 'quoteStyle') && !has$1(quotes, opts.quoteStyle)) {
|
|
1439
1661
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1440
1662
|
}
|
|
1441
1663
|
if (
|
|
@@ -1607,7 +1829,10 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1607
1829
|
if (typeof window !== 'undefined' && obj === window) {
|
|
1608
1830
|
return '{ [object Window] }';
|
|
1609
1831
|
}
|
|
1610
|
-
if (
|
|
1832
|
+
if (
|
|
1833
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
1834
|
+
|| (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
|
|
1835
|
+
) {
|
|
1611
1836
|
return '{ [object globalThis] }';
|
|
1612
1837
|
}
|
|
1613
1838
|
if (!isDate$1(obj) && !isRegExp(obj)) {
|
|
@@ -1627,7 +1852,8 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1627
1852
|
};
|
|
1628
1853
|
|
|
1629
1854
|
function wrapQuotes(s, defaultStyle, opts) {
|
|
1630
|
-
var
|
|
1855
|
+
var style = opts.quoteStyle || defaultStyle;
|
|
1856
|
+
var quoteChar = quotes[style];
|
|
1631
1857
|
return quoteChar + s + quoteChar;
|
|
1632
1858
|
}
|
|
1633
1859
|
|
|
@@ -1785,8 +2011,10 @@ function inspectString(str, opts) {
|
|
|
1785
2011
|
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
1786
2012
|
return inspectString($slice$1.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
1787
2013
|
}
|
|
2014
|
+
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
2015
|
+
quoteRE.lastIndex = 0;
|
|
1788
2016
|
// eslint-disable-next-line no-control-regex
|
|
1789
|
-
var s = $replace.call($replace.call(str,
|
|
2017
|
+
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
1790
2018
|
return wrapQuotes(s, 'single', opts);
|
|
1791
2019
|
}
|
|
1792
2020
|
|
|
@@ -1886,135 +2114,328 @@ function arrObjKeys(obj, inspect) {
|
|
|
1886
2114
|
return xs;
|
|
1887
2115
|
}
|
|
1888
2116
|
|
|
1889
|
-
var
|
|
1890
|
-
var callBound$9 = callBound$c;
|
|
1891
|
-
var inspect = objectInspect;
|
|
1892
|
-
|
|
1893
|
-
var $TypeError$1 = type;
|
|
1894
|
-
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
1895
|
-
var $Map$3 = GetIntrinsic$4('%Map%', true);
|
|
2117
|
+
var inspect$3 = objectInspect;
|
|
1896
2118
|
|
|
1897
|
-
var $
|
|
1898
|
-
var $weakMapSet = callBound$9('WeakMap.prototype.set', true);
|
|
1899
|
-
var $weakMapHas = callBound$9('WeakMap.prototype.has', true);
|
|
1900
|
-
var $mapGet$1 = callBound$9('Map.prototype.get', true);
|
|
1901
|
-
var $mapSet = callBound$9('Map.prototype.set', true);
|
|
1902
|
-
var $mapHas$5 = callBound$9('Map.prototype.has', true);
|
|
2119
|
+
var $TypeError$4 = type;
|
|
1903
2120
|
|
|
1904
2121
|
/*
|
|
1905
2122
|
* This function traverses the list returning the node corresponding to the given key.
|
|
1906
2123
|
*
|
|
1907
|
-
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
2124
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
2125
|
+
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
1908
2126
|
*/
|
|
1909
|
-
/** @type {import('.').listGetNode} */
|
|
1910
|
-
|
|
2127
|
+
/** @type {import('./list.d.ts').listGetNode} */
|
|
2128
|
+
// eslint-disable-next-line consistent-return
|
|
2129
|
+
var listGetNode = function (list, key, isDelete) {
|
|
1911
2130
|
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
1912
2131
|
var prev = list;
|
|
1913
2132
|
/** @type {(typeof list)['next']} */
|
|
1914
2133
|
var curr;
|
|
1915
|
-
|
|
2134
|
+
// eslint-disable-next-line eqeqeq
|
|
2135
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
1916
2136
|
if (curr.key === key) {
|
|
1917
2137
|
prev.next = curr.next;
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
2138
|
+
if (!isDelete) {
|
|
2139
|
+
// eslint-disable-next-line no-extra-parens
|
|
2140
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
2141
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
2142
|
+
}
|
|
1921
2143
|
return curr;
|
|
1922
2144
|
}
|
|
1923
2145
|
}
|
|
1924
2146
|
};
|
|
1925
2147
|
|
|
1926
|
-
/** @type {import('.').listGet} */
|
|
2148
|
+
/** @type {import('./list.d.ts').listGet} */
|
|
1927
2149
|
var listGet = function (objects, key) {
|
|
2150
|
+
if (!objects) {
|
|
2151
|
+
return void undefined;
|
|
2152
|
+
}
|
|
1928
2153
|
var node = listGetNode(objects, key);
|
|
1929
2154
|
return node && node.value;
|
|
1930
2155
|
};
|
|
1931
|
-
/** @type {import('.').listSet} */
|
|
2156
|
+
/** @type {import('./list.d.ts').listSet} */
|
|
1932
2157
|
var listSet = function (objects, key, value) {
|
|
1933
2158
|
var node = listGetNode(objects, key);
|
|
1934
2159
|
if (node) {
|
|
1935
2160
|
node.value = value;
|
|
1936
2161
|
} else {
|
|
1937
2162
|
// Prepend the new node to the beginning of the list
|
|
1938
|
-
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
2163
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
1939
2164
|
key: key,
|
|
1940
2165
|
next: objects.next,
|
|
1941
2166
|
value: value
|
|
1942
2167
|
});
|
|
1943
2168
|
}
|
|
1944
2169
|
};
|
|
1945
|
-
/** @type {import('.').listHas} */
|
|
2170
|
+
/** @type {import('./list.d.ts').listHas} */
|
|
1946
2171
|
var listHas = function (objects, key) {
|
|
2172
|
+
if (!objects) {
|
|
2173
|
+
return false;
|
|
2174
|
+
}
|
|
1947
2175
|
return !!listGetNode(objects, key);
|
|
1948
2176
|
};
|
|
2177
|
+
/** @type {import('./list.d.ts').listDelete} */
|
|
2178
|
+
// eslint-disable-next-line consistent-return
|
|
2179
|
+
var listDelete = function (objects, key) {
|
|
2180
|
+
if (objects) {
|
|
2181
|
+
return listGetNode(objects, key, true);
|
|
2182
|
+
}
|
|
2183
|
+
};
|
|
1949
2184
|
|
|
1950
2185
|
/** @type {import('.')} */
|
|
1951
|
-
var
|
|
1952
|
-
/** @
|
|
1953
|
-
/** @
|
|
1954
|
-
/** @
|
|
2186
|
+
var sideChannelList = function getSideChannelList() {
|
|
2187
|
+
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
2188
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2189
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2190
|
+
|
|
2191
|
+
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
1955
2192
|
|
|
1956
|
-
/** @type {
|
|
2193
|
+
/** @type {Channel} */
|
|
1957
2194
|
var channel = {
|
|
1958
2195
|
assert: function (key) {
|
|
1959
2196
|
if (!channel.has(key)) {
|
|
1960
|
-
throw new $TypeError$
|
|
2197
|
+
throw new $TypeError$4('Side channel does not contain ' + inspect$3(key));
|
|
1961
2198
|
}
|
|
1962
2199
|
},
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
} else if ($Map$3) {
|
|
1969
|
-
if ($m) {
|
|
1970
|
-
return $mapGet$1($m, key);
|
|
1971
|
-
}
|
|
1972
|
-
} else {
|
|
1973
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
1974
|
-
return listGet($o, key);
|
|
1975
|
-
}
|
|
2200
|
+
'delete': function (key) {
|
|
2201
|
+
var root = $o && $o.next;
|
|
2202
|
+
var deletedNode = listDelete($o, key);
|
|
2203
|
+
if (deletedNode && root && root === deletedNode) {
|
|
2204
|
+
$o = void undefined;
|
|
1976
2205
|
}
|
|
2206
|
+
return !!deletedNode;
|
|
2207
|
+
},
|
|
2208
|
+
get: function (key) {
|
|
2209
|
+
return listGet($o, key);
|
|
1977
2210
|
},
|
|
1978
2211
|
has: function (key) {
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
|
|
2212
|
+
return listHas($o, key);
|
|
2213
|
+
},
|
|
2214
|
+
set: function (key, value) {
|
|
2215
|
+
if (!$o) {
|
|
2216
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
2217
|
+
$o = {
|
|
2218
|
+
next: void undefined
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
// eslint-disable-next-line no-extra-parens
|
|
2222
|
+
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
2223
|
+
}
|
|
2224
|
+
};
|
|
2225
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2226
|
+
return channel;
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
var GetIntrinsic$6 = getIntrinsic;
|
|
2230
|
+
|
|
2231
|
+
var callBindBasic = callBindApplyHelpers;
|
|
2232
|
+
|
|
2233
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
2234
|
+
var $indexOf$1 = callBindBasic([GetIntrinsic$6('%String.prototype.indexOf%')]);
|
|
2235
|
+
|
|
2236
|
+
/** @type {import('.')} */
|
|
2237
|
+
var callBound$b = function callBoundIntrinsic(name, allowMissing) {
|
|
2238
|
+
// eslint-disable-next-line no-extra-parens
|
|
2239
|
+
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic$6(name, !!allowMissing));
|
|
2240
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
2241
|
+
return callBindBasic([intrinsic]);
|
|
2242
|
+
}
|
|
2243
|
+
return intrinsic;
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
var GetIntrinsic$5 = getIntrinsic;
|
|
2247
|
+
var callBound$a = callBound$b;
|
|
2248
|
+
var inspect$2 = objectInspect;
|
|
2249
|
+
|
|
2250
|
+
var $TypeError$3 = type;
|
|
2251
|
+
var $Map$3 = GetIntrinsic$5('%Map%', true);
|
|
2252
|
+
|
|
2253
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
2254
|
+
var $mapGet$1 = callBound$a('Map.prototype.get', true);
|
|
2255
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
2256
|
+
var $mapSet = callBound$a('Map.prototype.set', true);
|
|
2257
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2258
|
+
var $mapHas$5 = callBound$a('Map.prototype.has', true);
|
|
2259
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2260
|
+
var $mapDelete = callBound$a('Map.prototype.delete', true);
|
|
2261
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
2262
|
+
var $mapSize$1 = callBound$a('Map.prototype.size', true);
|
|
2263
|
+
|
|
2264
|
+
/** @type {import('.')} */
|
|
2265
|
+
var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
2266
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
2267
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2268
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2269
|
+
|
|
2270
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
2271
|
+
|
|
2272
|
+
/** @type {Channel} */
|
|
2273
|
+
var channel = {
|
|
2274
|
+
assert: function (key) {
|
|
2275
|
+
if (!channel.has(key)) {
|
|
2276
|
+
throw new $TypeError$3('Side channel does not contain ' + inspect$2(key));
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
'delete': function (key) {
|
|
2280
|
+
if ($m) {
|
|
2281
|
+
var result = $mapDelete($m, key);
|
|
2282
|
+
if ($mapSize$1($m) === 0) {
|
|
2283
|
+
$m = void undefined;
|
|
1990
2284
|
}
|
|
2285
|
+
return result;
|
|
2286
|
+
}
|
|
2287
|
+
return false;
|
|
2288
|
+
},
|
|
2289
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
2290
|
+
if ($m) {
|
|
2291
|
+
return $mapGet$1($m, key);
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
has: function (key) {
|
|
2295
|
+
if ($m) {
|
|
2296
|
+
return $mapHas$5($m, key);
|
|
1991
2297
|
}
|
|
1992
2298
|
return false;
|
|
1993
2299
|
},
|
|
1994
2300
|
set: function (key, value) {
|
|
1995
|
-
if (
|
|
1996
|
-
|
|
1997
|
-
|
|
2301
|
+
if (!$m) {
|
|
2302
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
2303
|
+
$m = new $Map$3();
|
|
2304
|
+
}
|
|
2305
|
+
$mapSet($m, key, value);
|
|
2306
|
+
}
|
|
2307
|
+
};
|
|
2308
|
+
|
|
2309
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
2310
|
+
return channel;
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
2314
|
+
var callBound$9 = callBound$b;
|
|
2315
|
+
var inspect$1 = objectInspect;
|
|
2316
|
+
var getSideChannelMap$1 = sideChannelMap;
|
|
2317
|
+
|
|
2318
|
+
var $TypeError$2 = type;
|
|
2319
|
+
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
2320
|
+
|
|
2321
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
2322
|
+
var $weakMapGet = callBound$9('WeakMap.prototype.get', true);
|
|
2323
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
2324
|
+
var $weakMapSet = callBound$9('WeakMap.prototype.set', true);
|
|
2325
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2326
|
+
var $weakMapHas = callBound$9('WeakMap.prototype.has', true);
|
|
2327
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2328
|
+
var $weakMapDelete = callBound$9('WeakMap.prototype.delete', true);
|
|
2329
|
+
|
|
2330
|
+
/** @type {import('.')} */
|
|
2331
|
+
var sideChannelWeakmap = $WeakMap$1
|
|
2332
|
+
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
2333
|
+
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
2334
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2335
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2336
|
+
|
|
2337
|
+
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
2338
|
+
/** @type {Channel | undefined} */ var $m;
|
|
2339
|
+
|
|
2340
|
+
/** @type {Channel} */
|
|
2341
|
+
var channel = {
|
|
2342
|
+
assert: function (key) {
|
|
2343
|
+
if (!channel.has(key)) {
|
|
2344
|
+
throw new $TypeError$2('Side channel does not contain ' + inspect$1(key));
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
'delete': function (key) {
|
|
2348
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2349
|
+
if ($wm) {
|
|
2350
|
+
return $weakMapDelete($wm, key);
|
|
2351
|
+
}
|
|
2352
|
+
} else if (getSideChannelMap$1) {
|
|
2353
|
+
if ($m) {
|
|
2354
|
+
return $m['delete'](key);
|
|
2355
|
+
}
|
|
1998
2356
|
}
|
|
1999
|
-
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
|
|
2357
|
+
return false;
|
|
2358
|
+
},
|
|
2359
|
+
get: function (key) {
|
|
2360
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2361
|
+
if ($wm) {
|
|
2362
|
+
return $weakMapGet($wm, key);
|
|
2363
|
+
}
|
|
2003
2364
|
}
|
|
2004
|
-
$
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
$
|
|
2365
|
+
return $m && $m.get(key);
|
|
2366
|
+
},
|
|
2367
|
+
has: function (key) {
|
|
2368
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2369
|
+
if ($wm) {
|
|
2370
|
+
return $weakMapHas($wm, key);
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
return !!$m && $m.has(key);
|
|
2374
|
+
},
|
|
2375
|
+
set: function (key, value) {
|
|
2376
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2377
|
+
if (!$wm) {
|
|
2378
|
+
$wm = new $WeakMap$1();
|
|
2379
|
+
}
|
|
2380
|
+
$weakMapSet($wm, key, value);
|
|
2381
|
+
} else if (getSideChannelMap$1) {
|
|
2382
|
+
if (!$m) {
|
|
2383
|
+
$m = getSideChannelMap$1();
|
|
2384
|
+
}
|
|
2385
|
+
// eslint-disable-next-line no-extra-parens
|
|
2386
|
+
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
2009
2387
|
}
|
|
2010
|
-
listSet($o, key, value);
|
|
2011
2388
|
}
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2392
|
+
return channel;
|
|
2393
|
+
}
|
|
2394
|
+
: getSideChannelMap$1;
|
|
2395
|
+
|
|
2396
|
+
var $TypeError$1 = type;
|
|
2397
|
+
var inspect = objectInspect;
|
|
2398
|
+
var getSideChannelList = sideChannelList;
|
|
2399
|
+
var getSideChannelMap = sideChannelMap;
|
|
2400
|
+
var getSideChannelWeakMap = sideChannelWeakmap;
|
|
2401
|
+
|
|
2402
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
2403
|
+
|
|
2404
|
+
/** @type {import('.')} */
|
|
2405
|
+
var sideChannel = function getSideChannel() {
|
|
2406
|
+
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
2407
|
+
|
|
2408
|
+
/** @type {Channel | undefined} */ var $channelData;
|
|
2409
|
+
|
|
2410
|
+
/** @type {Channel} */
|
|
2411
|
+
var channel = {
|
|
2412
|
+
assert: function (key) {
|
|
2413
|
+
if (!channel.has(key)) {
|
|
2414
|
+
throw new $TypeError$1('Side channel does not contain ' + inspect(key));
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
'delete': function (key) {
|
|
2418
|
+
return !!$channelData && $channelData['delete'](key);
|
|
2419
|
+
},
|
|
2420
|
+
get: function (key) {
|
|
2421
|
+
return $channelData && $channelData.get(key);
|
|
2422
|
+
},
|
|
2423
|
+
has: function (key) {
|
|
2424
|
+
return !!$channelData && $channelData.has(key);
|
|
2425
|
+
},
|
|
2426
|
+
set: function (key, value) {
|
|
2427
|
+
if (!$channelData) {
|
|
2428
|
+
$channelData = makeChannel();
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
$channelData.set(key, value);
|
|
2012
2432
|
}
|
|
2013
2433
|
};
|
|
2434
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2014
2435
|
return channel;
|
|
2015
2436
|
};
|
|
2016
2437
|
|
|
2017
|
-
var hasOwn =
|
|
2438
|
+
var hasOwn = requireHasown();
|
|
2018
2439
|
var channel = sideChannel();
|
|
2019
2440
|
|
|
2020
2441
|
var $TypeError = type;
|
|
@@ -2245,7 +2666,7 @@ var isSet$2 = exported$1 || function isSet(x) {
|
|
|
2245
2666
|
var isArguments$1 = isArguments$2;
|
|
2246
2667
|
var getStopIterationIterator = stopIterationIterator;
|
|
2247
2668
|
|
|
2248
|
-
if (hasSymbols$
|
|
2669
|
+
if (hasSymbols$4() || requireShams()()) {
|
|
2249
2670
|
var $iterator = Symbol.iterator;
|
|
2250
2671
|
// Symbol is available natively or shammed
|
|
2251
2672
|
// natively:
|
|
@@ -2272,7 +2693,7 @@ if (hasSymbols$5() || requireShams()()) {
|
|
|
2272
2693
|
var GetIntrinsic$3 = getIntrinsic;
|
|
2273
2694
|
var $Map = GetIntrinsic$3('%Map%', true);
|
|
2274
2695
|
var $Set$1 = GetIntrinsic$3('%Set%', true);
|
|
2275
|
-
var callBound$8 = callBound$
|
|
2696
|
+
var callBound$8 = callBound$e;
|
|
2276
2697
|
var $arrayPush = callBound$8('Array.prototype.push');
|
|
2277
2698
|
var $charCodeAt = callBound$8('String.prototype.charCodeAt');
|
|
2278
2699
|
var $stringSlice = callBound$8('String.prototype.slice');
|
|
@@ -2477,7 +2898,7 @@ define(polyfill, {
|
|
|
2477
2898
|
var objectIs = polyfill;
|
|
2478
2899
|
|
|
2479
2900
|
var callBind$1 = callBindExports;
|
|
2480
|
-
var callBound$7 = callBound$
|
|
2901
|
+
var callBound$7 = callBound$e;
|
|
2481
2902
|
var GetIntrinsic$2 = getIntrinsic;
|
|
2482
2903
|
|
|
2483
2904
|
var $ArrayBuffer = GetIntrinsic$2('%ArrayBuffer%', true);
|
|
@@ -2538,7 +2959,7 @@ var isDateObject = function isDateObject(value) {
|
|
|
2538
2959
|
return hasToStringTag$5 ? tryDateObject(value) : toStr$4.call(value) === dateClass;
|
|
2539
2960
|
};
|
|
2540
2961
|
|
|
2541
|
-
var callBound$6 = callBound$
|
|
2962
|
+
var callBound$6 = callBound$e;
|
|
2542
2963
|
var hasToStringTag$4 = shams();
|
|
2543
2964
|
var has;
|
|
2544
2965
|
var $exec;
|
|
@@ -2595,7 +3016,7 @@ var isRegex$1 = hasToStringTag$4
|
|
|
2595
3016
|
return $toString$2(value) === regexClass;
|
|
2596
3017
|
};
|
|
2597
3018
|
|
|
2598
|
-
var callBound$5 = callBound$
|
|
3019
|
+
var callBound$5 = callBound$e;
|
|
2599
3020
|
|
|
2600
3021
|
var $byteLength$1 = callBound$5('SharedArrayBuffer.prototype.byteLength', true);
|
|
2601
3022
|
|
|
@@ -2639,7 +3060,7 @@ var isNumberObject = function isNumberObject(value) {
|
|
|
2639
3060
|
return hasToStringTag$3 ? tryNumberObject(value) : toStr$3.call(value) === numClass;
|
|
2640
3061
|
};
|
|
2641
3062
|
|
|
2642
|
-
var callBound$4 = callBound$
|
|
3063
|
+
var callBound$4 = callBound$e;
|
|
2643
3064
|
var $boolToStr = callBound$4('Boolean.prototype.toString');
|
|
2644
3065
|
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
2645
3066
|
|
|
@@ -2667,7 +3088,7 @@ var isBooleanObject = function isBoolean(value) {
|
|
|
2667
3088
|
var isSymbol$1 = {exports: {}};
|
|
2668
3089
|
|
|
2669
3090
|
var toStr$2 = Object.prototype.toString;
|
|
2670
|
-
var hasSymbols = hasSymbols$
|
|
3091
|
+
var hasSymbols = hasSymbols$4();
|
|
2671
3092
|
|
|
2672
3093
|
if (hasSymbols) {
|
|
2673
3094
|
var symToStr = Symbol.prototype.toString;
|
|
@@ -2829,7 +3250,7 @@ var isWeakmap = exported || function isWeakMap(x) {
|
|
|
2829
3250
|
var isWeakset = {exports: {}};
|
|
2830
3251
|
|
|
2831
3252
|
var GetIntrinsic$1 = getIntrinsic;
|
|
2832
|
-
var callBound$3 = callBound$
|
|
3253
|
+
var callBound$3 = callBound$e;
|
|
2833
3254
|
|
|
2834
3255
|
var $WeakSet = GetIntrinsic$1('%WeakSet%', true);
|
|
2835
3256
|
|
|
@@ -3087,7 +3508,7 @@ var availableTypedArrays$1 = function availableTypedArrays() {
|
|
|
3087
3508
|
var forEach = forEach_1;
|
|
3088
3509
|
var availableTypedArrays = availableTypedArrays$1;
|
|
3089
3510
|
var callBind = callBindExports;
|
|
3090
|
-
var callBound$2 = callBound$
|
|
3511
|
+
var callBound$2 = callBound$e;
|
|
3091
3512
|
var gOPD = gopd$1;
|
|
3092
3513
|
|
|
3093
3514
|
/** @type {(O: object) => string} */
|
|
@@ -3199,7 +3620,7 @@ var whichTypedArray$1 = function whichTypedArray(value) {
|
|
|
3199
3620
|
return tryTypedArrays(value);
|
|
3200
3621
|
};
|
|
3201
3622
|
|
|
3202
|
-
var callBound$1 = callBound$
|
|
3623
|
+
var callBound$1 = callBound$e;
|
|
3203
3624
|
var $byteLength = callBound$1('ArrayBuffer.prototype.byteLength', true);
|
|
3204
3625
|
|
|
3205
3626
|
var isArrayBuffer$1 = isArrayBuffer$2;
|
|
@@ -3213,7 +3634,7 @@ var arrayBufferByteLength = function byteLength(ab) {
|
|
|
3213
3634
|
}; // in node < 0.11, byteLength is an own nonconfigurable property
|
|
3214
3635
|
|
|
3215
3636
|
var assign = object_assign;
|
|
3216
|
-
var callBound = callBound$
|
|
3637
|
+
var callBound = callBound$e;
|
|
3217
3638
|
var flags = regexp_prototype_flags;
|
|
3218
3639
|
var GetIntrinsic = getIntrinsic;
|
|
3219
3640
|
var getIterator = esGetIteratorExports;
|
|
@@ -4835,6 +5256,7 @@ const IntentsMethodPrefix = "Tick42.FDC3.Intents.";
|
|
|
4835
5256
|
const IO_ERRORS = errors.intents;
|
|
4836
5257
|
const BrowserClientControlMethodName = "T42.Web.Client.Control";
|
|
4837
5258
|
const DesktopClientControlMethodName = "T42.Channels.Command";
|
|
5259
|
+
const GlueReceivedPromiseTimeout = 120 * 1000;
|
|
4838
5260
|
|
|
4839
5261
|
const ioConnectFDC3SystemMethod = "FDC3.Collaborate";
|
|
4840
5262
|
const PrivateChannelPrefix = "___privateFDC3Channel___";
|
|
@@ -5695,16 +6117,14 @@ object({
|
|
|
5695
6117
|
|
|
5696
6118
|
class GlueController {
|
|
5697
6119
|
channelsParser;
|
|
5698
|
-
channelsStateStore;
|
|
5699
6120
|
glue;
|
|
5700
6121
|
_logger;
|
|
5701
6122
|
glueInitPromise;
|
|
5702
6123
|
resolveGluePromise;
|
|
5703
6124
|
rejectGluePromise;
|
|
5704
6125
|
defaultGluePromiseTimeout = 120 * 1000;
|
|
5705
|
-
constructor(channelsParser
|
|
6126
|
+
constructor(channelsParser) {
|
|
5706
6127
|
this.channelsParser = channelsParser;
|
|
5707
|
-
this.channelsStateStore = channelsStateStore;
|
|
5708
6128
|
}
|
|
5709
6129
|
get gluePromise() {
|
|
5710
6130
|
return this.glueInitPromise.then(this.initializeLogger.bind(this));
|
|
@@ -5722,7 +6142,7 @@ class GlueController {
|
|
|
5722
6142
|
this.resolveGluePromise = resolve;
|
|
5723
6143
|
this.rejectGluePromise = reject;
|
|
5724
6144
|
});
|
|
5725
|
-
},
|
|
6145
|
+
}, GlueReceivedPromiseTimeout, `Timeout of ${GlueReceivedPromiseTimeout}ms waiting to receive initialized 'io'`);
|
|
5726
6146
|
}
|
|
5727
6147
|
get logger() {
|
|
5728
6148
|
return this._logger;
|
|
@@ -5941,9 +6361,12 @@ class GlueController {
|
|
|
5941
6361
|
getPrefs(app) {
|
|
5942
6362
|
return this.glue.prefs.get(app);
|
|
5943
6363
|
}
|
|
6364
|
+
isRunningInBrowser() {
|
|
6365
|
+
return typeof window !== "undefined" && !window.iodesktop;
|
|
6366
|
+
}
|
|
5944
6367
|
async checkIsFdc3DataWrappingSupported() {
|
|
5945
|
-
const
|
|
5946
|
-
const methodName =
|
|
6368
|
+
const inBrowserNamespace = this.isRunningInBrowser();
|
|
6369
|
+
const methodName = inBrowserNamespace ? BrowserClientControlMethodName : DesktopClientControlMethodName;
|
|
5947
6370
|
const myServer = this.glue.interop.servers().find((server) => server.instance === this.glue.interop.instance.instance);
|
|
5948
6371
|
if (!myServer) {
|
|
5949
6372
|
return false;
|
|
@@ -5952,7 +6375,7 @@ class GlueController {
|
|
|
5952
6375
|
if (!registersControlMethod) {
|
|
5953
6376
|
return false;
|
|
5954
6377
|
}
|
|
5955
|
-
const data =
|
|
6378
|
+
const data = inBrowserNamespace ? { domain: "system", operation: "isFdc3DataWrappingSupported" } : { command: "isFdc3DataWrappingSupported" };
|
|
5956
6379
|
try {
|
|
5957
6380
|
const res = await this.glue.interop.invoke(methodName, data, { instance: this.interopInstance().instance });
|
|
5958
6381
|
return res.returned.isSupported;
|
|
@@ -6037,7 +6460,7 @@ const REQUEST_GLUE = "requestGlue";
|
|
|
6037
6460
|
const REQUEST_GLUE_RESPONSE = "requestGlueResponse";
|
|
6038
6461
|
const FDC3_READY = "fdc3Ready";
|
|
6039
6462
|
|
|
6040
|
-
class
|
|
6463
|
+
class WebEventDispatcher {
|
|
6041
6464
|
fireFdc3Ready() {
|
|
6042
6465
|
const event = new Event(FDC3_READY);
|
|
6043
6466
|
window.dispatchEvent(event);
|
|
@@ -7038,8 +7461,9 @@ class ApplicationsController {
|
|
|
7038
7461
|
async getInfo({ commandId }) {
|
|
7039
7462
|
await this.glueController.gluePromise;
|
|
7040
7463
|
this.logger?.info(`${commandId} - getInfo() invoked`);
|
|
7041
|
-
const appMetadata =
|
|
7042
|
-
const
|
|
7464
|
+
const appMetadata = this.getCurrentAppMetadata();
|
|
7465
|
+
const globalScope = typeof process !== "undefined" ? process : window;
|
|
7466
|
+
const { provider, providerVersion, standardVersion } = globalScope.fdc3Info;
|
|
7043
7467
|
return {
|
|
7044
7468
|
provider,
|
|
7045
7469
|
providerVersion,
|
|
@@ -7054,10 +7478,10 @@ class ApplicationsController {
|
|
|
7054
7478
|
}
|
|
7055
7479
|
getCurrentAppMetadata() {
|
|
7056
7480
|
const myInstance = this.glueController.interopInstance();
|
|
7057
|
-
return
|
|
7481
|
+
return {
|
|
7058
7482
|
appId: myInstance.applicationName,
|
|
7059
7483
|
instanceId: myInstance.instance
|
|
7060
|
-
}
|
|
7484
|
+
};
|
|
7061
7485
|
}
|
|
7062
7486
|
parseGlueInstToAppIdentifier(glueInst) {
|
|
7063
7487
|
return {
|
|
@@ -7073,13 +7497,13 @@ class ApplicationsController {
|
|
|
7073
7497
|
return this.addInstanceMetadataToAppMetadata(appMetadata, instance);
|
|
7074
7498
|
}
|
|
7075
7499
|
async getBaseGlueAppToAppMetadata(app) {
|
|
7076
|
-
const
|
|
7077
|
-
const appConfiguration =
|
|
7078
|
-
?
|
|
7079
|
-
: app.
|
|
7080
|
-
const icon =
|
|
7081
|
-
?
|
|
7082
|
-
: app.icon;
|
|
7500
|
+
const inBrowserNamespace = this.glueController.isRunningInBrowser();
|
|
7501
|
+
const appConfiguration = inBrowserNamespace
|
|
7502
|
+
? app.userProperties
|
|
7503
|
+
: await app.getConfiguration();
|
|
7504
|
+
const icon = inBrowserNamespace
|
|
7505
|
+
? app.icon
|
|
7506
|
+
: (await app.getConfiguration()).icon;
|
|
7083
7507
|
return {
|
|
7084
7508
|
appId: app.name,
|
|
7085
7509
|
name: app.name,
|
|
@@ -7088,9 +7512,9 @@ class ApplicationsController {
|
|
|
7088
7512
|
title: app.title,
|
|
7089
7513
|
icons: icon ? [{ src: icon }] : [],
|
|
7090
7514
|
tooltip: appConfiguration.tooltip,
|
|
7091
|
-
screenshots:
|
|
7092
|
-
? appConfiguration.
|
|
7093
|
-
: appConfiguration.screenshots
|
|
7515
|
+
screenshots: inBrowserNamespace
|
|
7516
|
+
? appConfiguration.screenshots
|
|
7517
|
+
: appConfiguration.customProperties.screenshots
|
|
7094
7518
|
};
|
|
7095
7519
|
}
|
|
7096
7520
|
addInstanceMetadataToAppMetadata(appMetadata, instance) {
|
|
@@ -7141,7 +7565,7 @@ class ApplicationsController {
|
|
|
7141
7565
|
}
|
|
7142
7566
|
}
|
|
7143
7567
|
|
|
7144
|
-
class
|
|
7568
|
+
class WebEventReceiver {
|
|
7145
7569
|
glueController;
|
|
7146
7570
|
eventDispatcher;
|
|
7147
7571
|
glueResponseReceived = false;
|
|
@@ -7168,7 +7592,7 @@ class EventReceiver {
|
|
|
7168
7592
|
}
|
|
7169
7593
|
glueReceiverHandler(event) {
|
|
7170
7594
|
const data = event.detail;
|
|
7171
|
-
if (!data
|
|
7595
|
+
if (!data?.glue42) {
|
|
7172
7596
|
return;
|
|
7173
7597
|
}
|
|
7174
7598
|
const glue42Event = data.glue42.event;
|
|
@@ -8241,9 +8665,55 @@ class NewDataWrappingChannelsController {
|
|
|
8241
8665
|
}
|
|
8242
8666
|
}
|
|
8243
8667
|
|
|
8668
|
+
class NodeEventReceiver {
|
|
8669
|
+
glueController;
|
|
8670
|
+
glueReceived = false;
|
|
8671
|
+
glueInitialized = false;
|
|
8672
|
+
timer;
|
|
8673
|
+
constructor(glueController) {
|
|
8674
|
+
this.glueController = glueController;
|
|
8675
|
+
}
|
|
8676
|
+
start() {
|
|
8677
|
+
setTimeout(this.clearInterval, GlueReceivedPromiseTimeout);
|
|
8678
|
+
this.setupInterval();
|
|
8679
|
+
}
|
|
8680
|
+
setupInterval() {
|
|
8681
|
+
this.timer = setInterval(() => {
|
|
8682
|
+
if (this.glueReceived) {
|
|
8683
|
+
return this.clearInterval();
|
|
8684
|
+
}
|
|
8685
|
+
const glueAvailable = typeof (process.io ?? process.glue) !== "undefined";
|
|
8686
|
+
if (!glueAvailable) {
|
|
8687
|
+
return;
|
|
8688
|
+
}
|
|
8689
|
+
this.glueReceived = true;
|
|
8690
|
+
const glue = process.io ?? process.glue;
|
|
8691
|
+
const glueValidator = this.glueController.validateGlue(glue);
|
|
8692
|
+
if (!glueValidator.isValid) {
|
|
8693
|
+
this.glueController.initializeFailed(glueValidator.error);
|
|
8694
|
+
return this.clearInterval();
|
|
8695
|
+
}
|
|
8696
|
+
this.clearInterval();
|
|
8697
|
+
this.glueController.initialize(glue);
|
|
8698
|
+
this.glueInitialized = true;
|
|
8699
|
+
}, 100);
|
|
8700
|
+
}
|
|
8701
|
+
clearInterval() {
|
|
8702
|
+
if (!this.timer) {
|
|
8703
|
+
return;
|
|
8704
|
+
}
|
|
8705
|
+
clearInterval(this.timer);
|
|
8706
|
+
this.timer = undefined;
|
|
8707
|
+
if (!this.glueReceived && !this.glueInitialized) {
|
|
8708
|
+
this.glueController.initializeFailed(`Timeout ${GlueReceivedPromiseTimeout}ms waiting for 'io' to be available on the process object`);
|
|
8709
|
+
}
|
|
8710
|
+
}
|
|
8711
|
+
}
|
|
8712
|
+
|
|
8244
8713
|
class IoC {
|
|
8245
|
-
|
|
8246
|
-
|
|
8714
|
+
_webEventDispatcher;
|
|
8715
|
+
_webEventReceiver;
|
|
8716
|
+
_nodeEventReceiver;
|
|
8247
8717
|
_desktopAgent;
|
|
8248
8718
|
_glueController;
|
|
8249
8719
|
_intentsController;
|
|
@@ -8261,14 +8731,15 @@ class IoC {
|
|
|
8261
8731
|
return this;
|
|
8262
8732
|
}
|
|
8263
8733
|
get eventReceiver() {
|
|
8264
|
-
|
|
8265
|
-
|
|
8734
|
+
const inNode = typeof process !== "undefined";
|
|
8735
|
+
if (inNode) {
|
|
8736
|
+
return this.nodeEventReceiver;
|
|
8266
8737
|
}
|
|
8267
|
-
return this.
|
|
8738
|
+
return this.webEventReceiver;
|
|
8268
8739
|
}
|
|
8269
8740
|
get glueController() {
|
|
8270
8741
|
if (!this._glueController) {
|
|
8271
|
-
this._glueController = new GlueController(this.channelsParser
|
|
8742
|
+
this._glueController = new GlueController(this.channelsParser);
|
|
8272
8743
|
}
|
|
8273
8744
|
return this._glueController;
|
|
8274
8745
|
}
|
|
@@ -8278,11 +8749,23 @@ class IoC {
|
|
|
8278
8749
|
}
|
|
8279
8750
|
return this._fdc3;
|
|
8280
8751
|
}
|
|
8281
|
-
get
|
|
8282
|
-
if (!this.
|
|
8283
|
-
this.
|
|
8752
|
+
get nodeEventReceiver() {
|
|
8753
|
+
if (!this._nodeEventReceiver) {
|
|
8754
|
+
this._nodeEventReceiver = new NodeEventReceiver(this.glueController);
|
|
8755
|
+
}
|
|
8756
|
+
return this._nodeEventReceiver;
|
|
8757
|
+
}
|
|
8758
|
+
get webEventReceiver() {
|
|
8759
|
+
if (!this._webEventReceiver) {
|
|
8760
|
+
this._webEventReceiver = new WebEventReceiver(this.glueController, this.webEventDispatcher);
|
|
8761
|
+
}
|
|
8762
|
+
return this._webEventReceiver;
|
|
8763
|
+
}
|
|
8764
|
+
get webEventDispatcher() {
|
|
8765
|
+
if (!this._webEventDispatcher) {
|
|
8766
|
+
this._webEventDispatcher = new WebEventDispatcher();
|
|
8284
8767
|
}
|
|
8285
|
-
return this.
|
|
8768
|
+
return this._webEventDispatcher;
|
|
8286
8769
|
}
|
|
8287
8770
|
get channelsFactory() {
|
|
8288
8771
|
if (!this._channelsFactory) {
|
|
@@ -8368,17 +8851,18 @@ const fdc3Factory = () => {
|
|
|
8368
8851
|
return ioc.fdc3;
|
|
8369
8852
|
};
|
|
8370
8853
|
|
|
8371
|
-
var version = "2.5.
|
|
8854
|
+
var version = "2.5.2";
|
|
8372
8855
|
|
|
8373
|
-
|
|
8374
|
-
|
|
8856
|
+
const globalScope = typeof process !== "undefined" ? process : window;
|
|
8857
|
+
globalScope.fdc3Info = {
|
|
8375
8858
|
provider: "io.Connect",
|
|
8376
8859
|
providerVersion: version,
|
|
8377
8860
|
standardVersion: "2.1"
|
|
8378
8861
|
};
|
|
8862
|
+
let globalFdc3 = globalScope.fdc3;
|
|
8379
8863
|
if (typeof globalFdc3 === "undefined") {
|
|
8380
8864
|
globalFdc3 = fdc3Factory();
|
|
8381
|
-
|
|
8865
|
+
globalScope.fdc3 = globalFdc3;
|
|
8382
8866
|
}
|
|
8383
8867
|
else {
|
|
8384
8868
|
console.warn("Defaulting to using the auto-injected fdc3.");
|