@interopio/fdc3 2.5.0 → 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 +1024 -540
- package/dist/fdc3.electron.umd.js +1024 -540
- package/dist/fdc3.es.js +1024 -540
- package/dist/fdc3.umd.js +1024 -540
- package/package.json +3 -3
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
return a;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
var toStr$
|
|
38
|
+
var toStr$8 = Object.prototype.toString;
|
|
39
39
|
|
|
40
40
|
var isArguments$3 = function isArguments(value) {
|
|
41
|
-
var str = toStr$
|
|
41
|
+
var str = toStr$8.call(value);
|
|
42
42
|
var isArgs = str === '[object Arguments]';
|
|
43
43
|
if (!isArgs) {
|
|
44
44
|
isArgs = str !== '[object Array]' &&
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
typeof value === 'object' &&
|
|
47
47
|
typeof value.length === 'number' &&
|
|
48
48
|
value.length >= 0 &&
|
|
49
|
-
toStr$
|
|
49
|
+
toStr$8.call(value.callee) === '[object Function]';
|
|
50
50
|
}
|
|
51
51
|
return isArgs;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
var implementation$
|
|
55
|
-
var hasRequiredImplementation;
|
|
54
|
+
var implementation$a;
|
|
55
|
+
var hasRequiredImplementation$1;
|
|
56
56
|
|
|
57
|
-
function requireImplementation () {
|
|
58
|
-
if (hasRequiredImplementation) return implementation$
|
|
59
|
-
hasRequiredImplementation = 1;
|
|
57
|
+
function requireImplementation$1 () {
|
|
58
|
+
if (hasRequiredImplementation$1) return implementation$a;
|
|
59
|
+
hasRequiredImplementation$1 = 1;
|
|
60
60
|
|
|
61
61
|
var keysShim;
|
|
62
62
|
if (!Object.keys) {
|
|
@@ -177,15 +177,15 @@
|
|
|
177
177
|
return theKeys;
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
implementation$
|
|
181
|
-
return implementation$
|
|
180
|
+
implementation$a = keysShim;
|
|
181
|
+
return implementation$a;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
var slice = Array.prototype.slice;
|
|
185
185
|
var isArgs = isArguments$3;
|
|
186
186
|
|
|
187
187
|
var origKeys = Object.keys;
|
|
188
|
-
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : requireImplementation();
|
|
188
|
+
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : requireImplementation$1();
|
|
189
189
|
|
|
190
190
|
var originalKeys = Object.keys;
|
|
191
191
|
|
|
@@ -212,6 +212,274 @@
|
|
|
212
212
|
|
|
213
213
|
var objectKeys$2 = keysShim;
|
|
214
214
|
|
|
215
|
+
/** @type {import('.')} */
|
|
216
|
+
var $defineProperty$3 = Object.defineProperty || false;
|
|
217
|
+
if ($defineProperty$3) {
|
|
218
|
+
try {
|
|
219
|
+
$defineProperty$3({}, 'a', { value: 1 });
|
|
220
|
+
} catch (e) {
|
|
221
|
+
// IE 8 has a broken defineProperty
|
|
222
|
+
$defineProperty$3 = false;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
var esDefineProperty = $defineProperty$3;
|
|
227
|
+
|
|
228
|
+
/** @type {import('./syntax')} */
|
|
229
|
+
var syntax = SyntaxError;
|
|
230
|
+
|
|
231
|
+
/** @type {import('./type')} */
|
|
232
|
+
var type = TypeError;
|
|
233
|
+
|
|
234
|
+
/** @type {import('./gOPD')} */
|
|
235
|
+
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
236
|
+
|
|
237
|
+
/** @type {import('.')} */
|
|
238
|
+
var $gOPD$2 = gOPD$5;
|
|
239
|
+
|
|
240
|
+
if ($gOPD$2) {
|
|
241
|
+
try {
|
|
242
|
+
$gOPD$2([], 'length');
|
|
243
|
+
} catch (e) {
|
|
244
|
+
// IE 8 has a broken gOPD
|
|
245
|
+
$gOPD$2 = null;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
var gopd$1 = $gOPD$2;
|
|
250
|
+
|
|
251
|
+
var $defineProperty$2 = esDefineProperty;
|
|
252
|
+
|
|
253
|
+
var $SyntaxError$2 = syntax;
|
|
254
|
+
var $TypeError$a = type;
|
|
255
|
+
|
|
256
|
+
var gopd = gopd$1;
|
|
257
|
+
|
|
258
|
+
/** @type {import('.')} */
|
|
259
|
+
var defineDataProperty$1 = function defineDataProperty(
|
|
260
|
+
obj,
|
|
261
|
+
property,
|
|
262
|
+
value
|
|
263
|
+
) {
|
|
264
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
265
|
+
throw new $TypeError$a('`obj` must be an object or a function`');
|
|
266
|
+
}
|
|
267
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
268
|
+
throw new $TypeError$a('`property` must be a string or a symbol`');
|
|
269
|
+
}
|
|
270
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
271
|
+
throw new $TypeError$a('`nonEnumerable`, if provided, must be a boolean or null');
|
|
272
|
+
}
|
|
273
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
274
|
+
throw new $TypeError$a('`nonWritable`, if provided, must be a boolean or null');
|
|
275
|
+
}
|
|
276
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
277
|
+
throw new $TypeError$a('`nonConfigurable`, if provided, must be a boolean or null');
|
|
278
|
+
}
|
|
279
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
280
|
+
throw new $TypeError$a('`loose`, if provided, must be a boolean');
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
284
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
285
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
286
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
287
|
+
|
|
288
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
289
|
+
var desc = !!gopd && gopd(obj, property);
|
|
290
|
+
|
|
291
|
+
if ($defineProperty$2) {
|
|
292
|
+
$defineProperty$2(obj, property, {
|
|
293
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
294
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
295
|
+
value: value,
|
|
296
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
297
|
+
});
|
|
298
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
299
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
300
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
301
|
+
} else {
|
|
302
|
+
throw new $SyntaxError$2('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
var $defineProperty$1 = esDefineProperty;
|
|
307
|
+
|
|
308
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
309
|
+
return !!$defineProperty$1;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
313
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
314
|
+
if (!$defineProperty$1) {
|
|
315
|
+
return null;
|
|
316
|
+
}
|
|
317
|
+
try {
|
|
318
|
+
return $defineProperty$1([], 'length', { value: 1 }).length !== 1;
|
|
319
|
+
} catch (e) {
|
|
320
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
321
|
+
return true;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
326
|
+
|
|
327
|
+
var keys = objectKeys$2;
|
|
328
|
+
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
329
|
+
|
|
330
|
+
var toStr$7 = Object.prototype.toString;
|
|
331
|
+
var concat = Array.prototype.concat;
|
|
332
|
+
var defineDataProperty = defineDataProperty$1;
|
|
333
|
+
|
|
334
|
+
var isFunction = function (fn) {
|
|
335
|
+
return typeof fn === 'function' && toStr$7.call(fn) === '[object Function]';
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
339
|
+
|
|
340
|
+
var defineProperty$1 = function (object, name, value, predicate) {
|
|
341
|
+
if (name in object) {
|
|
342
|
+
if (predicate === true) {
|
|
343
|
+
if (object[name] === value) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
} else if (!isFunction(predicate) || !predicate()) {
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
if (supportsDescriptors$2) {
|
|
352
|
+
defineDataProperty(object, name, value, true);
|
|
353
|
+
} else {
|
|
354
|
+
defineDataProperty(object, name, value);
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
var defineProperties$1 = function (object, map) {
|
|
359
|
+
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
360
|
+
var props = keys(map);
|
|
361
|
+
if (hasSymbols$5) {
|
|
362
|
+
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
363
|
+
}
|
|
364
|
+
for (var i = 0; i < props.length; i += 1) {
|
|
365
|
+
defineProperty$1(object, props[i], map[props[i]], predicates[props[i]]);
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
370
|
+
|
|
371
|
+
var defineProperties_1 = defineProperties$1;
|
|
372
|
+
|
|
373
|
+
var callBind$6 = {exports: {}};
|
|
374
|
+
|
|
375
|
+
var implementation$9;
|
|
376
|
+
var hasRequiredImplementation;
|
|
377
|
+
|
|
378
|
+
function requireImplementation () {
|
|
379
|
+
if (hasRequiredImplementation) return implementation$9;
|
|
380
|
+
hasRequiredImplementation = 1;
|
|
381
|
+
|
|
382
|
+
/* eslint no-invalid-this: 1 */
|
|
383
|
+
|
|
384
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
385
|
+
var toStr = Object.prototype.toString;
|
|
386
|
+
var max = Math.max;
|
|
387
|
+
var funcType = '[object Function]';
|
|
388
|
+
|
|
389
|
+
var concatty = function concatty(a, b) {
|
|
390
|
+
var arr = [];
|
|
391
|
+
|
|
392
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
393
|
+
arr[i] = a[i];
|
|
394
|
+
}
|
|
395
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
396
|
+
arr[j + a.length] = b[j];
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
return arr;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
var slicy = function slicy(arrLike, offset) {
|
|
403
|
+
var arr = [];
|
|
404
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
405
|
+
arr[j] = arrLike[i];
|
|
406
|
+
}
|
|
407
|
+
return arr;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
var joiny = function (arr, joiner) {
|
|
411
|
+
var str = '';
|
|
412
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
413
|
+
str += arr[i];
|
|
414
|
+
if (i + 1 < arr.length) {
|
|
415
|
+
str += joiner;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return str;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
implementation$9 = function bind(that) {
|
|
422
|
+
var target = this;
|
|
423
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
424
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
425
|
+
}
|
|
426
|
+
var args = slicy(arguments, 1);
|
|
427
|
+
|
|
428
|
+
var bound;
|
|
429
|
+
var binder = function () {
|
|
430
|
+
if (this instanceof bound) {
|
|
431
|
+
var result = target.apply(
|
|
432
|
+
this,
|
|
433
|
+
concatty(args, arguments)
|
|
434
|
+
);
|
|
435
|
+
if (Object(result) === result) {
|
|
436
|
+
return result;
|
|
437
|
+
}
|
|
438
|
+
return this;
|
|
439
|
+
}
|
|
440
|
+
return target.apply(
|
|
441
|
+
that,
|
|
442
|
+
concatty(args, arguments)
|
|
443
|
+
);
|
|
444
|
+
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
var boundLength = max(0, target.length - args.length);
|
|
448
|
+
var boundArgs = [];
|
|
449
|
+
for (var i = 0; i < boundLength; i++) {
|
|
450
|
+
boundArgs[i] = '$' + i;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
454
|
+
|
|
455
|
+
if (target.prototype) {
|
|
456
|
+
var Empty = function Empty() {};
|
|
457
|
+
Empty.prototype = target.prototype;
|
|
458
|
+
bound.prototype = new Empty();
|
|
459
|
+
Empty.prototype = null;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
return bound;
|
|
463
|
+
};
|
|
464
|
+
return implementation$9;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
var functionBind;
|
|
468
|
+
var hasRequiredFunctionBind;
|
|
469
|
+
|
|
470
|
+
function requireFunctionBind () {
|
|
471
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
472
|
+
hasRequiredFunctionBind = 1;
|
|
473
|
+
|
|
474
|
+
var implementation = requireImplementation();
|
|
475
|
+
|
|
476
|
+
functionBind = Function.prototype.bind || implementation;
|
|
477
|
+
return functionBind;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/** @type {import('.')} */
|
|
481
|
+
var esObjectAtoms = Object;
|
|
482
|
+
|
|
215
483
|
/** @type {import('.')} */
|
|
216
484
|
var esErrors = Error;
|
|
217
485
|
|
|
@@ -224,15 +492,42 @@
|
|
|
224
492
|
/** @type {import('./ref')} */
|
|
225
493
|
var ref = ReferenceError;
|
|
226
494
|
|
|
227
|
-
/** @type {import('./syntax')} */
|
|
228
|
-
var syntax = SyntaxError;
|
|
229
|
-
|
|
230
|
-
/** @type {import('./type')} */
|
|
231
|
-
var type = TypeError;
|
|
232
|
-
|
|
233
495
|
/** @type {import('./uri')} */
|
|
234
496
|
var uri = URIError;
|
|
235
497
|
|
|
498
|
+
/** @type {import('./abs')} */
|
|
499
|
+
var abs$1 = Math.abs;
|
|
500
|
+
|
|
501
|
+
/** @type {import('./floor')} */
|
|
502
|
+
var floor$1 = Math.floor;
|
|
503
|
+
|
|
504
|
+
/** @type {import('./max')} */
|
|
505
|
+
var max$1 = Math.max;
|
|
506
|
+
|
|
507
|
+
/** @type {import('./min')} */
|
|
508
|
+
var min$1 = Math.min;
|
|
509
|
+
|
|
510
|
+
/** @type {import('./pow')} */
|
|
511
|
+
var pow$1 = Math.pow;
|
|
512
|
+
|
|
513
|
+
/** @type {import('./round')} */
|
|
514
|
+
var round$1 = Math.round;
|
|
515
|
+
|
|
516
|
+
/** @type {import('./isNaN')} */
|
|
517
|
+
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
518
|
+
return a !== a;
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
var $isNaN = _isNaN;
|
|
522
|
+
|
|
523
|
+
/** @type {import('./sign')} */
|
|
524
|
+
var sign$1 = function sign(number) {
|
|
525
|
+
if ($isNaN(number) || number === 0) {
|
|
526
|
+
return number;
|
|
527
|
+
}
|
|
528
|
+
return number < 0 ? -1 : +1;
|
|
529
|
+
};
|
|
530
|
+
|
|
236
531
|
var shams$1;
|
|
237
532
|
var hasRequiredShams;
|
|
238
533
|
|
|
@@ -240,11 +535,13 @@
|
|
|
240
535
|
if (hasRequiredShams) return shams$1;
|
|
241
536
|
hasRequiredShams = 1;
|
|
242
537
|
|
|
538
|
+
/** @type {import('./shams')} */
|
|
243
539
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
244
540
|
shams$1 = function hasSymbols() {
|
|
245
541
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
246
542
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
247
543
|
|
|
544
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
248
545
|
var obj = {};
|
|
249
546
|
var sym = Symbol('test');
|
|
250
547
|
var symObj = Object(sym);
|
|
@@ -263,7 +560,7 @@
|
|
|
263
560
|
|
|
264
561
|
var symVal = 42;
|
|
265
562
|
obj[sym] = symVal;
|
|
266
|
-
for (
|
|
563
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
267
564
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
268
565
|
|
|
269
566
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -274,7 +571,8 @@
|
|
|
274
571
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
275
572
|
|
|
276
573
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
277
|
-
|
|
574
|
+
// eslint-disable-next-line no-extra-parens
|
|
575
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
278
576
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
279
577
|
}
|
|
280
578
|
|
|
@@ -286,7 +584,8 @@
|
|
|
286
584
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
287
585
|
var hasSymbolSham = requireShams();
|
|
288
586
|
|
|
289
|
-
|
|
587
|
+
/** @type {import('.')} */
|
|
588
|
+
var hasSymbols$4 = function hasNativeSymbols() {
|
|
290
589
|
if (typeof origSymbol !== 'function') { return false; }
|
|
291
590
|
if (typeof Symbol !== 'function') { return false; }
|
|
292
591
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -295,124 +594,191 @@
|
|
|
295
594
|
return hasSymbolSham();
|
|
296
595
|
};
|
|
297
596
|
|
|
298
|
-
var
|
|
299
|
-
|
|
300
|
-
foo: {}
|
|
301
|
-
};
|
|
597
|
+
var Reflect_getPrototypeOf;
|
|
598
|
+
var hasRequiredReflect_getPrototypeOf;
|
|
302
599
|
|
|
303
|
-
|
|
600
|
+
function requireReflect_getPrototypeOf () {
|
|
601
|
+
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
602
|
+
hasRequiredReflect_getPrototypeOf = 1;
|
|
304
603
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
&& !(test instanceof $Object$1);
|
|
310
|
-
};
|
|
604
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
605
|
+
Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
606
|
+
return Reflect_getPrototypeOf;
|
|
607
|
+
}
|
|
311
608
|
|
|
312
|
-
|
|
609
|
+
var Object_getPrototypeOf;
|
|
610
|
+
var hasRequiredObject_getPrototypeOf;
|
|
313
611
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
var funcType = '[object Function]';
|
|
612
|
+
function requireObject_getPrototypeOf () {
|
|
613
|
+
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
614
|
+
hasRequiredObject_getPrototypeOf = 1;
|
|
318
615
|
|
|
319
|
-
|
|
320
|
-
var arr = [];
|
|
616
|
+
var $Object = esObjectAtoms;
|
|
321
617
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
arr[j + a.length] = b[j];
|
|
327
|
-
}
|
|
618
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
619
|
+
Object_getPrototypeOf = $Object.getPrototypeOf || null;
|
|
620
|
+
return Object_getPrototypeOf;
|
|
621
|
+
}
|
|
328
622
|
|
|
329
|
-
|
|
330
|
-
|
|
623
|
+
var functionCall;
|
|
624
|
+
var hasRequiredFunctionCall;
|
|
331
625
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
arr[j] = arrLike[i];
|
|
336
|
-
}
|
|
337
|
-
return arr;
|
|
338
|
-
};
|
|
626
|
+
function requireFunctionCall () {
|
|
627
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
628
|
+
hasRequiredFunctionCall = 1;
|
|
339
629
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
if (i + 1 < arr.length) {
|
|
345
|
-
str += joiner;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return str;
|
|
349
|
-
};
|
|
630
|
+
/** @type {import('./functionCall')} */
|
|
631
|
+
functionCall = Function.prototype.call;
|
|
632
|
+
return functionCall;
|
|
633
|
+
}
|
|
350
634
|
|
|
351
|
-
var
|
|
352
|
-
|
|
353
|
-
if (typeof target !== 'function' || toStr$8.apply(target) !== funcType) {
|
|
354
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
355
|
-
}
|
|
356
|
-
var args = slicy(arguments, 1);
|
|
357
|
-
|
|
358
|
-
var bound;
|
|
359
|
-
var binder = function () {
|
|
360
|
-
if (this instanceof bound) {
|
|
361
|
-
var result = target.apply(
|
|
362
|
-
this,
|
|
363
|
-
concatty(args, arguments)
|
|
364
|
-
);
|
|
365
|
-
if (Object(result) === result) {
|
|
366
|
-
return result;
|
|
367
|
-
}
|
|
368
|
-
return this;
|
|
369
|
-
}
|
|
370
|
-
return target.apply(
|
|
371
|
-
that,
|
|
372
|
-
concatty(args, arguments)
|
|
373
|
-
);
|
|
635
|
+
var functionApply;
|
|
636
|
+
var hasRequiredFunctionApply;
|
|
374
637
|
|
|
375
|
-
|
|
638
|
+
function requireFunctionApply () {
|
|
639
|
+
if (hasRequiredFunctionApply) return functionApply;
|
|
640
|
+
hasRequiredFunctionApply = 1;
|
|
376
641
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
642
|
+
/** @type {import('./functionApply')} */
|
|
643
|
+
functionApply = Function.prototype.apply;
|
|
644
|
+
return functionApply;
|
|
645
|
+
}
|
|
382
646
|
|
|
383
|
-
|
|
647
|
+
/** @type {import('./reflectApply')} */
|
|
648
|
+
var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
384
649
|
|
|
385
|
-
|
|
386
|
-
var Empty = function Empty() {};
|
|
387
|
-
Empty.prototype = target.prototype;
|
|
388
|
-
bound.prototype = new Empty();
|
|
389
|
-
Empty.prototype = null;
|
|
390
|
-
}
|
|
650
|
+
var bind$2 = requireFunctionBind();
|
|
391
651
|
|
|
392
|
-
|
|
393
|
-
|
|
652
|
+
var $apply$1 = requireFunctionApply();
|
|
653
|
+
var $call$2 = requireFunctionCall();
|
|
654
|
+
var $reflectApply = reflectApply$1;
|
|
394
655
|
|
|
395
|
-
|
|
656
|
+
/** @type {import('./actualApply')} */
|
|
657
|
+
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
396
658
|
|
|
397
|
-
var
|
|
659
|
+
var bind$1 = requireFunctionBind();
|
|
660
|
+
var $TypeError$9 = type;
|
|
398
661
|
|
|
399
|
-
var call =
|
|
400
|
-
var $
|
|
401
|
-
var bind$1 = functionBind;
|
|
662
|
+
var $call$1 = requireFunctionCall();
|
|
663
|
+
var $actualApply = actualApply;
|
|
402
664
|
|
|
403
665
|
/** @type {import('.')} */
|
|
404
|
-
var
|
|
666
|
+
var callBindApplyHelpers = function callBindBasic(args) {
|
|
667
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
668
|
+
throw new $TypeError$9('a function is required');
|
|
669
|
+
}
|
|
670
|
+
return $actualApply(bind$1, $call$1, args);
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
var get;
|
|
674
|
+
var hasRequiredGet;
|
|
675
|
+
|
|
676
|
+
function requireGet () {
|
|
677
|
+
if (hasRequiredGet) return get;
|
|
678
|
+
hasRequiredGet = 1;
|
|
679
|
+
|
|
680
|
+
var callBind = callBindApplyHelpers;
|
|
681
|
+
var gOPD = gopd$1;
|
|
682
|
+
|
|
683
|
+
var hasProtoAccessor;
|
|
684
|
+
try {
|
|
685
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
686
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
687
|
+
} catch (e) {
|
|
688
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
689
|
+
throw e;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
// eslint-disable-next-line no-extra-parens
|
|
694
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
695
|
+
|
|
696
|
+
var $Object = Object;
|
|
697
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
698
|
+
|
|
699
|
+
/** @type {import('./get')} */
|
|
700
|
+
get = desc && typeof desc.get === 'function'
|
|
701
|
+
? callBind([desc.get])
|
|
702
|
+
: typeof $getPrototypeOf === 'function'
|
|
703
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
704
|
+
// eslint-disable-next-line eqeqeq
|
|
705
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
706
|
+
}
|
|
707
|
+
: false;
|
|
708
|
+
return get;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
var getProto$2;
|
|
712
|
+
var hasRequiredGetProto;
|
|
713
|
+
|
|
714
|
+
function requireGetProto () {
|
|
715
|
+
if (hasRequiredGetProto) return getProto$2;
|
|
716
|
+
hasRequiredGetProto = 1;
|
|
717
|
+
|
|
718
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
719
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
720
|
+
|
|
721
|
+
var getDunderProto = requireGet();
|
|
722
|
+
|
|
723
|
+
/** @type {import('.')} */
|
|
724
|
+
getProto$2 = reflectGetProto
|
|
725
|
+
? function getProto(O) {
|
|
726
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
727
|
+
return reflectGetProto(O);
|
|
728
|
+
}
|
|
729
|
+
: originalGetProto
|
|
730
|
+
? function getProto(O) {
|
|
731
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
732
|
+
throw new TypeError('getProto: not an object');
|
|
733
|
+
}
|
|
734
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
735
|
+
return originalGetProto(O);
|
|
736
|
+
}
|
|
737
|
+
: getDunderProto
|
|
738
|
+
? function getProto(O) {
|
|
739
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
740
|
+
return getDunderProto(O);
|
|
741
|
+
}
|
|
742
|
+
: null;
|
|
743
|
+
return getProto$2;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
var hasown;
|
|
747
|
+
var hasRequiredHasown;
|
|
748
|
+
|
|
749
|
+
function requireHasown () {
|
|
750
|
+
if (hasRequiredHasown) return hasown;
|
|
751
|
+
hasRequiredHasown = 1;
|
|
752
|
+
|
|
753
|
+
var call = Function.prototype.call;
|
|
754
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
755
|
+
var bind = requireFunctionBind();
|
|
756
|
+
|
|
757
|
+
/** @type {import('.')} */
|
|
758
|
+
hasown = bind.call(call, $hasOwn);
|
|
759
|
+
return hasown;
|
|
760
|
+
}
|
|
405
761
|
|
|
406
762
|
var undefined$1;
|
|
407
763
|
|
|
764
|
+
var $Object$1 = esObjectAtoms;
|
|
765
|
+
|
|
408
766
|
var $Error = esErrors;
|
|
409
767
|
var $EvalError = _eval;
|
|
410
768
|
var $RangeError = range;
|
|
411
769
|
var $ReferenceError = ref;
|
|
412
|
-
var $SyntaxError$
|
|
413
|
-
var $TypeError$
|
|
770
|
+
var $SyntaxError$1 = syntax;
|
|
771
|
+
var $TypeError$8 = type;
|
|
414
772
|
var $URIError = uri;
|
|
415
773
|
|
|
774
|
+
var abs = abs$1;
|
|
775
|
+
var floor = floor$1;
|
|
776
|
+
var max = max$1;
|
|
777
|
+
var min = min$1;
|
|
778
|
+
var pow = pow$1;
|
|
779
|
+
var round = round$1;
|
|
780
|
+
var sign = sign$1;
|
|
781
|
+
|
|
416
782
|
var $Function = Function;
|
|
417
783
|
|
|
418
784
|
// eslint-disable-next-line consistent-return
|
|
@@ -422,19 +788,13 @@
|
|
|
422
788
|
} catch (e) {}
|
|
423
789
|
};
|
|
424
790
|
|
|
425
|
-
var $gOPD$
|
|
426
|
-
|
|
427
|
-
try {
|
|
428
|
-
$gOPD$2({}, '');
|
|
429
|
-
} catch (e) {
|
|
430
|
-
$gOPD$2 = null; // this is IE 8, which has a broken gOPD
|
|
431
|
-
}
|
|
432
|
-
}
|
|
791
|
+
var $gOPD$1 = gopd$1;
|
|
792
|
+
var $defineProperty = esDefineProperty;
|
|
433
793
|
|
|
434
794
|
var throwTypeError = function () {
|
|
435
|
-
throw new $TypeError$
|
|
795
|
+
throw new $TypeError$8();
|
|
436
796
|
};
|
|
437
|
-
var ThrowTypeError = $gOPD$
|
|
797
|
+
var ThrowTypeError = $gOPD$1
|
|
438
798
|
? (function () {
|
|
439
799
|
try {
|
|
440
800
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
@@ -443,7 +803,7 @@
|
|
|
443
803
|
} catch (calleeThrows) {
|
|
444
804
|
try {
|
|
445
805
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
446
|
-
return $gOPD$
|
|
806
|
+
return $gOPD$1(arguments, 'callee').get;
|
|
447
807
|
} catch (gOPDthrows) {
|
|
448
808
|
return throwTypeError;
|
|
449
809
|
}
|
|
@@ -451,14 +811,14 @@
|
|
|
451
811
|
}())
|
|
452
812
|
: throwTypeError;
|
|
453
813
|
|
|
454
|
-
var hasSymbols$
|
|
455
|
-
var hasProto = hasProto$1();
|
|
814
|
+
var hasSymbols$3 = hasSymbols$4();
|
|
456
815
|
|
|
457
|
-
var getProto$1 =
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
);
|
|
816
|
+
var getProto$1 = requireGetProto();
|
|
817
|
+
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
818
|
+
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
819
|
+
|
|
820
|
+
var $apply = requireFunctionApply();
|
|
821
|
+
var $call = requireFunctionCall();
|
|
462
822
|
|
|
463
823
|
var needsEval = {};
|
|
464
824
|
|
|
@@ -469,7 +829,7 @@
|
|
|
469
829
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
470
830
|
'%Array%': Array,
|
|
471
831
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
472
|
-
'%ArrayIteratorPrototype%': hasSymbols$
|
|
832
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
|
|
473
833
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
474
834
|
'%AsyncFunction%': needsEval,
|
|
475
835
|
'%AsyncGenerator%': needsEval,
|
|
@@ -499,13 +859,14 @@
|
|
|
499
859
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
500
860
|
'%isFinite%': isFinite,
|
|
501
861
|
'%isNaN%': isNaN,
|
|
502
|
-
'%IteratorPrototype%': hasSymbols$
|
|
862
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
|
|
503
863
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
504
864
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
505
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$
|
|
865
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$1 ? undefined$1 : getProto$1(new Map()[Symbol.iterator]()),
|
|
506
866
|
'%Math%': Math,
|
|
507
867
|
'%Number%': Number,
|
|
508
|
-
'%Object%': Object,
|
|
868
|
+
'%Object%': $Object$1,
|
|
869
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD$1,
|
|
509
870
|
'%parseFloat%': parseFloat,
|
|
510
871
|
'%parseInt%': parseInt,
|
|
511
872
|
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
@@ -515,15 +876,15 @@
|
|
|
515
876
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
516
877
|
'%RegExp%': RegExp,
|
|
517
878
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
518
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$
|
|
879
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$1 ? undefined$1 : getProto$1(new Set()[Symbol.iterator]()),
|
|
519
880
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
520
881
|
'%String%': String,
|
|
521
|
-
'%StringIteratorPrototype%': hasSymbols$
|
|
522
|
-
'%Symbol%': hasSymbols$
|
|
523
|
-
'%SyntaxError%': $SyntaxError$
|
|
882
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$1 ? getProto$1(''[Symbol.iterator]()) : undefined$1,
|
|
883
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
884
|
+
'%SyntaxError%': $SyntaxError$1,
|
|
524
885
|
'%ThrowTypeError%': ThrowTypeError,
|
|
525
886
|
'%TypedArray%': TypedArray,
|
|
526
|
-
'%TypeError%': $TypeError$
|
|
887
|
+
'%TypeError%': $TypeError$8,
|
|
527
888
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
528
889
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
529
890
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -531,7 +892,20 @@
|
|
|
531
892
|
'%URIError%': $URIError,
|
|
532
893
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
533
894
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
534
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
895
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
896
|
+
|
|
897
|
+
'%Function.prototype.call%': $call,
|
|
898
|
+
'%Function.prototype.apply%': $apply,
|
|
899
|
+
'%Object.defineProperty%': $defineProperty,
|
|
900
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
901
|
+
'%Math.abs%': abs,
|
|
902
|
+
'%Math.floor%': floor,
|
|
903
|
+
'%Math.max%': max,
|
|
904
|
+
'%Math.min%': min,
|
|
905
|
+
'%Math.pow%': pow,
|
|
906
|
+
'%Math.round%': round,
|
|
907
|
+
'%Math.sign%': sign,
|
|
908
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
535
909
|
};
|
|
536
910
|
|
|
537
911
|
if (getProto$1) {
|
|
@@ -624,13 +998,13 @@
|
|
|
624
998
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
625
999
|
};
|
|
626
1000
|
|
|
627
|
-
var bind =
|
|
628
|
-
var hasOwn$2 =
|
|
629
|
-
var $concat$1 = bind.call(
|
|
630
|
-
var $spliceApply = bind.call(
|
|
631
|
-
var $replace$1 = bind.call(
|
|
632
|
-
var $strSlice = bind.call(
|
|
633
|
-
var $exec$1 = bind.call(
|
|
1001
|
+
var bind = requireFunctionBind();
|
|
1002
|
+
var hasOwn$2 = requireHasown();
|
|
1003
|
+
var $concat$1 = bind.call($call, Array.prototype.concat);
|
|
1004
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
1005
|
+
var $replace$1 = bind.call($call, String.prototype.replace);
|
|
1006
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1007
|
+
var $exec$1 = bind.call($call, RegExp.prototype.exec);
|
|
634
1008
|
|
|
635
1009
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
636
1010
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -639,9 +1013,9 @@
|
|
|
639
1013
|
var first = $strSlice(string, 0, 1);
|
|
640
1014
|
var last = $strSlice(string, -1);
|
|
641
1015
|
if (first === '%' && last !== '%') {
|
|
642
|
-
throw new $SyntaxError$
|
|
1016
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
|
|
643
1017
|
} else if (last === '%' && first !== '%') {
|
|
644
|
-
throw new $SyntaxError$
|
|
1018
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
|
|
645
1019
|
}
|
|
646
1020
|
var result = [];
|
|
647
1021
|
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
|
@@ -664,281 +1038,118 @@
|
|
|
664
1038
|
if (value === needsEval) {
|
|
665
1039
|
value = doEval(intrinsicName);
|
|
666
1040
|
}
|
|
667
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
668
|
-
throw new $TypeError$
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
return {
|
|
672
|
-
alias: alias,
|
|
673
|
-
name: intrinsicName,
|
|
674
|
-
value: value
|
|
675
|
-
};
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
throw new $SyntaxError$2('intrinsic ' + name + ' does not exist!');
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
682
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
683
|
-
throw new $TypeError$6('intrinsic name must be a non-empty string');
|
|
684
|
-
}
|
|
685
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
686
|
-
throw new $TypeError$6('"allowMissing" argument must be a boolean');
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
690
|
-
throw new $SyntaxError$2('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
691
|
-
}
|
|
692
|
-
var parts = stringToPath(name);
|
|
693
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
694
|
-
|
|
695
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
696
|
-
var intrinsicRealName = intrinsic.name;
|
|
697
|
-
var value = intrinsic.value;
|
|
698
|
-
var skipFurtherCaching = false;
|
|
699
|
-
|
|
700
|
-
var alias = intrinsic.alias;
|
|
701
|
-
if (alias) {
|
|
702
|
-
intrinsicBaseName = alias[0];
|
|
703
|
-
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
707
|
-
var part = parts[i];
|
|
708
|
-
var first = $strSlice(part, 0, 1);
|
|
709
|
-
var last = $strSlice(part, -1);
|
|
710
|
-
if (
|
|
711
|
-
(
|
|
712
|
-
(first === '"' || first === "'" || first === '`')
|
|
713
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
714
|
-
)
|
|
715
|
-
&& first !== last
|
|
716
|
-
) {
|
|
717
|
-
throw new $SyntaxError$2('property names with quotes must have matching quotes');
|
|
718
|
-
}
|
|
719
|
-
if (part === 'constructor' || !isOwn) {
|
|
720
|
-
skipFurtherCaching = true;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
intrinsicBaseName += '.' + part;
|
|
724
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
725
|
-
|
|
726
|
-
if (hasOwn$2(INTRINSICS, intrinsicRealName)) {
|
|
727
|
-
value = INTRINSICS[intrinsicRealName];
|
|
728
|
-
} else if (value != null) {
|
|
729
|
-
if (!(part in value)) {
|
|
730
|
-
if (!allowMissing) {
|
|
731
|
-
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
732
|
-
}
|
|
733
|
-
return void undefined$1;
|
|
734
|
-
}
|
|
735
|
-
if ($gOPD$2 && (i + 1) >= parts.length) {
|
|
736
|
-
var desc = $gOPD$2(value, part);
|
|
737
|
-
isOwn = !!desc;
|
|
738
|
-
|
|
739
|
-
// By convention, when a data property is converted to an accessor
|
|
740
|
-
// property to emulate a data property that does not suffer from
|
|
741
|
-
// the override mistake, that accessor's getter is marked with
|
|
742
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
743
|
-
// uphold the illusion by pretending to see that original data
|
|
744
|
-
// property, i.e., returning the value rather than the getter
|
|
745
|
-
// itself.
|
|
746
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
747
|
-
value = desc.get;
|
|
748
|
-
} else {
|
|
749
|
-
value = value[part];
|
|
750
|
-
}
|
|
751
|
-
} else {
|
|
752
|
-
isOwn = hasOwn$2(value, part);
|
|
753
|
-
value = value[part];
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
if (isOwn && !skipFurtherCaching) {
|
|
757
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
return value;
|
|
762
|
-
};
|
|
763
|
-
|
|
764
|
-
var esDefineProperty;
|
|
765
|
-
var hasRequiredEsDefineProperty;
|
|
766
|
-
|
|
767
|
-
function requireEsDefineProperty () {
|
|
768
|
-
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
769
|
-
hasRequiredEsDefineProperty = 1;
|
|
770
|
-
|
|
771
|
-
var GetIntrinsic = getIntrinsic;
|
|
772
|
-
|
|
773
|
-
/** @type {import('.')} */
|
|
774
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
775
|
-
if ($defineProperty) {
|
|
776
|
-
try {
|
|
777
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
778
|
-
} catch (e) {
|
|
779
|
-
// IE 8 has a broken defineProperty
|
|
780
|
-
$defineProperty = false;
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
esDefineProperty = $defineProperty;
|
|
785
|
-
return esDefineProperty;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
var GetIntrinsic$7 = getIntrinsic;
|
|
789
|
-
|
|
790
|
-
var $gOPD$1 = GetIntrinsic$7('%Object.getOwnPropertyDescriptor%', true);
|
|
791
|
-
|
|
792
|
-
if ($gOPD$1) {
|
|
793
|
-
try {
|
|
794
|
-
$gOPD$1([], 'length');
|
|
795
|
-
} catch (e) {
|
|
796
|
-
// IE 8 has a broken gOPD
|
|
797
|
-
$gOPD$1 = null;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
var gopd$1 = $gOPD$1;
|
|
802
|
-
|
|
803
|
-
var $defineProperty$1 = requireEsDefineProperty();
|
|
804
|
-
|
|
805
|
-
var $SyntaxError$1 = syntax;
|
|
806
|
-
var $TypeError$5 = type;
|
|
807
|
-
|
|
808
|
-
var gopd = gopd$1;
|
|
809
|
-
|
|
810
|
-
/** @type {import('.')} */
|
|
811
|
-
var defineDataProperty$1 = function defineDataProperty(
|
|
812
|
-
obj,
|
|
813
|
-
property,
|
|
814
|
-
value
|
|
815
|
-
) {
|
|
816
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
817
|
-
throw new $TypeError$5('`obj` must be an object or a function`');
|
|
818
|
-
}
|
|
819
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
820
|
-
throw new $TypeError$5('`property` must be a string or a symbol`');
|
|
821
|
-
}
|
|
822
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
823
|
-
throw new $TypeError$5('`nonEnumerable`, if provided, must be a boolean or null');
|
|
824
|
-
}
|
|
825
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
826
|
-
throw new $TypeError$5('`nonWritable`, if provided, must be a boolean or null');
|
|
827
|
-
}
|
|
828
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
829
|
-
throw new $TypeError$5('`nonConfigurable`, if provided, must be a boolean or null');
|
|
830
|
-
}
|
|
831
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
832
|
-
throw new $TypeError$5('`loose`, if provided, must be a boolean');
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
836
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
837
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
838
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
839
|
-
|
|
840
|
-
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
841
|
-
var desc = !!gopd && gopd(obj, property);
|
|
842
|
-
|
|
843
|
-
if ($defineProperty$1) {
|
|
844
|
-
$defineProperty$1(obj, property, {
|
|
845
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
846
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
847
|
-
value: value,
|
|
848
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
849
|
-
});
|
|
850
|
-
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
851
|
-
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
852
|
-
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
853
|
-
} else {
|
|
854
|
-
throw new $SyntaxError$1('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
var $defineProperty = requireEsDefineProperty();
|
|
859
|
-
|
|
860
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
861
|
-
return !!$defineProperty;
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
865
|
-
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
866
|
-
if (!$defineProperty) {
|
|
867
|
-
return null;
|
|
868
|
-
}
|
|
869
|
-
try {
|
|
870
|
-
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
871
|
-
} catch (e) {
|
|
872
|
-
// In Firefox 4-22, defining length on an array throws an exception.
|
|
873
|
-
return true;
|
|
874
|
-
}
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
878
|
-
|
|
879
|
-
var keys = objectKeys$2;
|
|
880
|
-
var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
881
|
-
|
|
882
|
-
var toStr$7 = Object.prototype.toString;
|
|
883
|
-
var concat = Array.prototype.concat;
|
|
884
|
-
var defineDataProperty = defineDataProperty$1;
|
|
885
|
-
|
|
886
|
-
var isFunction = function (fn) {
|
|
887
|
-
return typeof fn === 'function' && toStr$7.call(fn) === '[object Function]';
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
891
|
-
|
|
892
|
-
var defineProperty$1 = function (object, name, value, predicate) {
|
|
893
|
-
if (name in object) {
|
|
894
|
-
if (predicate === true) {
|
|
895
|
-
if (object[name] === value) {
|
|
896
|
-
return;
|
|
897
|
-
}
|
|
898
|
-
} else if (!isFunction(predicate) || !predicate()) {
|
|
899
|
-
return;
|
|
900
|
-
}
|
|
901
|
-
}
|
|
1041
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
1042
|
+
throw new $TypeError$8('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1043
|
+
}
|
|
902
1044
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
1045
|
+
return {
|
|
1046
|
+
alias: alias,
|
|
1047
|
+
name: intrinsicName,
|
|
1048
|
+
value: value
|
|
1049
|
+
};
|
|
907
1050
|
}
|
|
1051
|
+
|
|
1052
|
+
throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
|
|
908
1053
|
};
|
|
909
1054
|
|
|
910
|
-
var
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
if (hasSymbols$3) {
|
|
914
|
-
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
1055
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1056
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
1057
|
+
throw new $TypeError$8('intrinsic name must be a non-empty string');
|
|
915
1058
|
}
|
|
916
|
-
|
|
917
|
-
|
|
1059
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1060
|
+
throw new $TypeError$8('"allowMissing" argument must be a boolean');
|
|
918
1061
|
}
|
|
919
|
-
};
|
|
920
1062
|
|
|
921
|
-
|
|
1063
|
+
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
1064
|
+
throw new $SyntaxError$1('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
1065
|
+
}
|
|
1066
|
+
var parts = stringToPath(name);
|
|
1067
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
922
1068
|
|
|
923
|
-
|
|
1069
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
1070
|
+
var intrinsicRealName = intrinsic.name;
|
|
1071
|
+
var value = intrinsic.value;
|
|
1072
|
+
var skipFurtherCaching = false;
|
|
924
1073
|
|
|
925
|
-
|
|
1074
|
+
var alias = intrinsic.alias;
|
|
1075
|
+
if (alias) {
|
|
1076
|
+
intrinsicBaseName = alias[0];
|
|
1077
|
+
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
1078
|
+
}
|
|
926
1079
|
|
|
927
|
-
|
|
1080
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1081
|
+
var part = parts[i];
|
|
1082
|
+
var first = $strSlice(part, 0, 1);
|
|
1083
|
+
var last = $strSlice(part, -1);
|
|
1084
|
+
if (
|
|
1085
|
+
(
|
|
1086
|
+
(first === '"' || first === "'" || first === '`')
|
|
1087
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
1088
|
+
)
|
|
1089
|
+
&& first !== last
|
|
1090
|
+
) {
|
|
1091
|
+
throw new $SyntaxError$1('property names with quotes must have matching quotes');
|
|
1092
|
+
}
|
|
1093
|
+
if (part === 'constructor' || !isOwn) {
|
|
1094
|
+
skipFurtherCaching = true;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
intrinsicBaseName += '.' + part;
|
|
1098
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1099
|
+
|
|
1100
|
+
if (hasOwn$2(INTRINSICS, intrinsicRealName)) {
|
|
1101
|
+
value = INTRINSICS[intrinsicRealName];
|
|
1102
|
+
} else if (value != null) {
|
|
1103
|
+
if (!(part in value)) {
|
|
1104
|
+
if (!allowMissing) {
|
|
1105
|
+
throw new $TypeError$8('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1106
|
+
}
|
|
1107
|
+
return void undefined$1;
|
|
1108
|
+
}
|
|
1109
|
+
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
1110
|
+
var desc = $gOPD$1(value, part);
|
|
1111
|
+
isOwn = !!desc;
|
|
1112
|
+
|
|
1113
|
+
// By convention, when a data property is converted to an accessor
|
|
1114
|
+
// property to emulate a data property that does not suffer from
|
|
1115
|
+
// the override mistake, that accessor's getter is marked with
|
|
1116
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
1117
|
+
// uphold the illusion by pretending to see that original data
|
|
1118
|
+
// property, i.e., returning the value rather than the getter
|
|
1119
|
+
// itself.
|
|
1120
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1121
|
+
value = desc.get;
|
|
1122
|
+
} else {
|
|
1123
|
+
value = value[part];
|
|
1124
|
+
}
|
|
1125
|
+
} else {
|
|
1126
|
+
isOwn = hasOwn$2(value, part);
|
|
1127
|
+
value = value[part];
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
if (isOwn && !skipFurtherCaching) {
|
|
1131
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return value;
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
var GetIntrinsic$8 = getIntrinsic;
|
|
928
1139
|
var define$5 = defineDataProperty$1;
|
|
929
1140
|
var hasDescriptors$1 = hasPropertyDescriptors_1();
|
|
930
1141
|
var gOPD$4 = gopd$1;
|
|
931
1142
|
|
|
932
|
-
var $TypeError$
|
|
933
|
-
var $floor$1 = GetIntrinsic$
|
|
1143
|
+
var $TypeError$7 = type;
|
|
1144
|
+
var $floor$1 = GetIntrinsic$8('%Math.floor%');
|
|
934
1145
|
|
|
935
1146
|
/** @type {import('.')} */
|
|
936
1147
|
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
937
1148
|
if (typeof fn !== 'function') {
|
|
938
|
-
throw new $TypeError$
|
|
1149
|
+
throw new $TypeError$7('`fn` is not a function');
|
|
939
1150
|
}
|
|
940
1151
|
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
|
|
941
|
-
throw new $TypeError$
|
|
1152
|
+
throw new $TypeError$7('`length` must be a positive 32-bit integer');
|
|
942
1153
|
}
|
|
943
1154
|
|
|
944
1155
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
@@ -967,7 +1178,7 @@
|
|
|
967
1178
|
|
|
968
1179
|
(function (module) {
|
|
969
1180
|
|
|
970
|
-
var bind =
|
|
1181
|
+
var bind = requireFunctionBind();
|
|
971
1182
|
var GetIntrinsic = getIntrinsic;
|
|
972
1183
|
var setFunctionLength$1 = setFunctionLength;
|
|
973
1184
|
|
|
@@ -976,7 +1187,7 @@
|
|
|
976
1187
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
977
1188
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
978
1189
|
|
|
979
|
-
var $defineProperty =
|
|
1190
|
+
var $defineProperty = esDefineProperty;
|
|
980
1191
|
var $max = GetIntrinsic('%Math.max%');
|
|
981
1192
|
|
|
982
1193
|
module.exports = function callBind(originalFunction) {
|
|
@@ -1004,15 +1215,15 @@
|
|
|
1004
1215
|
|
|
1005
1216
|
var callBindExports = callBind$6.exports;
|
|
1006
1217
|
|
|
1007
|
-
var GetIntrinsic$
|
|
1218
|
+
var GetIntrinsic$7 = getIntrinsic;
|
|
1008
1219
|
|
|
1009
1220
|
var callBind$5 = callBindExports;
|
|
1010
1221
|
|
|
1011
|
-
var $indexOf$
|
|
1222
|
+
var $indexOf$2 = callBind$5(GetIntrinsic$7('String.prototype.indexOf'));
|
|
1012
1223
|
|
|
1013
|
-
var callBound$
|
|
1014
|
-
var intrinsic = GetIntrinsic$
|
|
1015
|
-
if (typeof intrinsic === 'function' && $indexOf$
|
|
1224
|
+
var callBound$e = function callBoundIntrinsic(name, allowMissing) {
|
|
1225
|
+
var intrinsic = GetIntrinsic$7(name, !!allowMissing);
|
|
1226
|
+
if (typeof intrinsic === 'function' && $indexOf$2(name, '.prototype.') > -1) {
|
|
1016
1227
|
return callBind$5(intrinsic);
|
|
1017
1228
|
}
|
|
1018
1229
|
return intrinsic;
|
|
@@ -1021,10 +1232,10 @@
|
|
|
1021
1232
|
// modified from https://github.com/es-shims/es6-shim
|
|
1022
1233
|
var objectKeys$1 = objectKeys$2;
|
|
1023
1234
|
var hasSymbols$2 = requireShams()();
|
|
1024
|
-
var callBound$
|
|
1235
|
+
var callBound$d = callBound$e;
|
|
1025
1236
|
var toObject = Object;
|
|
1026
|
-
var $push = callBound$
|
|
1027
|
-
var $propIsEnumerable = callBound$
|
|
1237
|
+
var $push = callBound$d('Array.prototype.push');
|
|
1238
|
+
var $propIsEnumerable = callBound$d('Object.prototype.propertyIsEnumerable');
|
|
1028
1239
|
var originalGetSymbols = hasSymbols$2 ? Object.getOwnPropertySymbols : null;
|
|
1029
1240
|
|
|
1030
1241
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -1185,12 +1396,12 @@
|
|
|
1185
1396
|
var hasDescriptors = hasPropertyDescriptors_1();
|
|
1186
1397
|
var functionsHaveConfigurableNames = functionsHaveNames_1.functionsHaveConfigurableNames();
|
|
1187
1398
|
|
|
1188
|
-
var $TypeError$
|
|
1399
|
+
var $TypeError$6 = type;
|
|
1189
1400
|
|
|
1190
1401
|
/** @type {import('.')} */
|
|
1191
1402
|
var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
1192
1403
|
if (typeof fn !== 'function') {
|
|
1193
|
-
throw new $TypeError$
|
|
1404
|
+
throw new $TypeError$6('`fn` is not a function');
|
|
1194
1405
|
}
|
|
1195
1406
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
1196
1407
|
if (!loose || functionsHaveConfigurableNames) {
|
|
@@ -1204,13 +1415,13 @@
|
|
|
1204
1415
|
};
|
|
1205
1416
|
|
|
1206
1417
|
var setFunctionName = setFunctionName$1;
|
|
1207
|
-
var $TypeError$
|
|
1418
|
+
var $TypeError$5 = type;
|
|
1208
1419
|
|
|
1209
1420
|
var $Object = Object;
|
|
1210
1421
|
|
|
1211
1422
|
var implementation$5 = setFunctionName(function flags() {
|
|
1212
1423
|
if (this == null || this !== $Object(this)) {
|
|
1213
|
-
throw new $TypeError$
|
|
1424
|
+
throw new $TypeError$5('RegExp.prototype.flags getter called on non-object');
|
|
1214
1425
|
}
|
|
1215
1426
|
var result = '';
|
|
1216
1427
|
if (this.hasIndices) {
|
|
@@ -1327,9 +1538,9 @@
|
|
|
1327
1538
|
};
|
|
1328
1539
|
|
|
1329
1540
|
var hasToStringTag$7 = shams();
|
|
1330
|
-
var callBound$
|
|
1541
|
+
var callBound$c = callBound$e;
|
|
1331
1542
|
|
|
1332
|
-
var $toString$4 = callBound$
|
|
1543
|
+
var $toString$4 = callBound$c('Object.prototype.toString');
|
|
1333
1544
|
|
|
1334
1545
|
var isStandardArguments = function isArguments(value) {
|
|
1335
1546
|
if (hasToStringTag$7 && value && typeof value === 'object' && Symbol.toStringTag in value) {
|
|
@@ -1438,10 +1649,21 @@
|
|
|
1438
1649
|
var inspectCustom = utilInspect.custom;
|
|
1439
1650
|
var inspectSymbol = isSymbol$2(inspectCustom) ? inspectCustom : null;
|
|
1440
1651
|
|
|
1652
|
+
var quotes = {
|
|
1653
|
+
__proto__: null,
|
|
1654
|
+
'double': '"',
|
|
1655
|
+
single: "'"
|
|
1656
|
+
};
|
|
1657
|
+
var quoteREs = {
|
|
1658
|
+
__proto__: null,
|
|
1659
|
+
'double': /(["\\])/g,
|
|
1660
|
+
single: /(['\\])/g
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1441
1663
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
1442
1664
|
var opts = options || {};
|
|
1443
1665
|
|
|
1444
|
-
if (has$1(opts, 'quoteStyle') && (
|
|
1666
|
+
if (has$1(opts, 'quoteStyle') && !has$1(quotes, opts.quoteStyle)) {
|
|
1445
1667
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1446
1668
|
}
|
|
1447
1669
|
if (
|
|
@@ -1613,7 +1835,10 @@
|
|
|
1613
1835
|
if (typeof window !== 'undefined' && obj === window) {
|
|
1614
1836
|
return '{ [object Window] }';
|
|
1615
1837
|
}
|
|
1616
|
-
if (
|
|
1838
|
+
if (
|
|
1839
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
1840
|
+
|| (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
|
|
1841
|
+
) {
|
|
1617
1842
|
return '{ [object globalThis] }';
|
|
1618
1843
|
}
|
|
1619
1844
|
if (!isDate$1(obj) && !isRegExp(obj)) {
|
|
@@ -1633,7 +1858,8 @@
|
|
|
1633
1858
|
};
|
|
1634
1859
|
|
|
1635
1860
|
function wrapQuotes(s, defaultStyle, opts) {
|
|
1636
|
-
var
|
|
1861
|
+
var style = opts.quoteStyle || defaultStyle;
|
|
1862
|
+
var quoteChar = quotes[style];
|
|
1637
1863
|
return quoteChar + s + quoteChar;
|
|
1638
1864
|
}
|
|
1639
1865
|
|
|
@@ -1791,8 +2017,10 @@
|
|
|
1791
2017
|
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
1792
2018
|
return inspectString($slice$1.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
1793
2019
|
}
|
|
2020
|
+
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
2021
|
+
quoteRE.lastIndex = 0;
|
|
1794
2022
|
// eslint-disable-next-line no-control-regex
|
|
1795
|
-
var s = $replace.call($replace.call(str,
|
|
2023
|
+
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
1796
2024
|
return wrapQuotes(s, 'single', opts);
|
|
1797
2025
|
}
|
|
1798
2026
|
|
|
@@ -1892,135 +2120,328 @@
|
|
|
1892
2120
|
return xs;
|
|
1893
2121
|
}
|
|
1894
2122
|
|
|
1895
|
-
var
|
|
1896
|
-
var callBound$9 = callBound$c;
|
|
1897
|
-
var inspect = objectInspect;
|
|
1898
|
-
|
|
1899
|
-
var $TypeError$1 = type;
|
|
1900
|
-
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
1901
|
-
var $Map$3 = GetIntrinsic$4('%Map%', true);
|
|
2123
|
+
var inspect$3 = objectInspect;
|
|
1902
2124
|
|
|
1903
|
-
var $
|
|
1904
|
-
var $weakMapSet = callBound$9('WeakMap.prototype.set', true);
|
|
1905
|
-
var $weakMapHas = callBound$9('WeakMap.prototype.has', true);
|
|
1906
|
-
var $mapGet$1 = callBound$9('Map.prototype.get', true);
|
|
1907
|
-
var $mapSet = callBound$9('Map.prototype.set', true);
|
|
1908
|
-
var $mapHas$5 = callBound$9('Map.prototype.has', true);
|
|
2125
|
+
var $TypeError$4 = type;
|
|
1909
2126
|
|
|
1910
2127
|
/*
|
|
1911
2128
|
* This function traverses the list returning the node corresponding to the given key.
|
|
1912
2129
|
*
|
|
1913
|
-
* 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.
|
|
2130
|
+
* 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.
|
|
2131
|
+
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
1914
2132
|
*/
|
|
1915
|
-
/** @type {import('.').listGetNode} */
|
|
1916
|
-
|
|
2133
|
+
/** @type {import('./list.d.ts').listGetNode} */
|
|
2134
|
+
// eslint-disable-next-line consistent-return
|
|
2135
|
+
var listGetNode = function (list, key, isDelete) {
|
|
1917
2136
|
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
1918
2137
|
var prev = list;
|
|
1919
2138
|
/** @type {(typeof list)['next']} */
|
|
1920
2139
|
var curr;
|
|
1921
|
-
|
|
2140
|
+
// eslint-disable-next-line eqeqeq
|
|
2141
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
1922
2142
|
if (curr.key === key) {
|
|
1923
2143
|
prev.next = curr.next;
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
2144
|
+
if (!isDelete) {
|
|
2145
|
+
// eslint-disable-next-line no-extra-parens
|
|
2146
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
2147
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
2148
|
+
}
|
|
1927
2149
|
return curr;
|
|
1928
2150
|
}
|
|
1929
2151
|
}
|
|
1930
2152
|
};
|
|
1931
2153
|
|
|
1932
|
-
/** @type {import('.').listGet} */
|
|
2154
|
+
/** @type {import('./list.d.ts').listGet} */
|
|
1933
2155
|
var listGet = function (objects, key) {
|
|
2156
|
+
if (!objects) {
|
|
2157
|
+
return void undefined;
|
|
2158
|
+
}
|
|
1934
2159
|
var node = listGetNode(objects, key);
|
|
1935
2160
|
return node && node.value;
|
|
1936
2161
|
};
|
|
1937
|
-
/** @type {import('.').listSet} */
|
|
2162
|
+
/** @type {import('./list.d.ts').listSet} */
|
|
1938
2163
|
var listSet = function (objects, key, value) {
|
|
1939
2164
|
var node = listGetNode(objects, key);
|
|
1940
2165
|
if (node) {
|
|
1941
2166
|
node.value = value;
|
|
1942
2167
|
} else {
|
|
1943
2168
|
// Prepend the new node to the beginning of the list
|
|
1944
|
-
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
2169
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
1945
2170
|
key: key,
|
|
1946
2171
|
next: objects.next,
|
|
1947
2172
|
value: value
|
|
1948
2173
|
});
|
|
1949
2174
|
}
|
|
1950
2175
|
};
|
|
1951
|
-
/** @type {import('.').listHas} */
|
|
2176
|
+
/** @type {import('./list.d.ts').listHas} */
|
|
1952
2177
|
var listHas = function (objects, key) {
|
|
2178
|
+
if (!objects) {
|
|
2179
|
+
return false;
|
|
2180
|
+
}
|
|
1953
2181
|
return !!listGetNode(objects, key);
|
|
1954
2182
|
};
|
|
2183
|
+
/** @type {import('./list.d.ts').listDelete} */
|
|
2184
|
+
// eslint-disable-next-line consistent-return
|
|
2185
|
+
var listDelete = function (objects, key) {
|
|
2186
|
+
if (objects) {
|
|
2187
|
+
return listGetNode(objects, key, true);
|
|
2188
|
+
}
|
|
2189
|
+
};
|
|
1955
2190
|
|
|
1956
2191
|
/** @type {import('.')} */
|
|
1957
|
-
var
|
|
1958
|
-
/** @
|
|
1959
|
-
/** @
|
|
1960
|
-
/** @
|
|
2192
|
+
var sideChannelList = function getSideChannelList() {
|
|
2193
|
+
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
2194
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2195
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2196
|
+
|
|
2197
|
+
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
1961
2198
|
|
|
1962
|
-
/** @type {
|
|
2199
|
+
/** @type {Channel} */
|
|
1963
2200
|
var channel = {
|
|
1964
2201
|
assert: function (key) {
|
|
1965
2202
|
if (!channel.has(key)) {
|
|
1966
|
-
throw new $TypeError$
|
|
2203
|
+
throw new $TypeError$4('Side channel does not contain ' + inspect$3(key));
|
|
1967
2204
|
}
|
|
1968
2205
|
},
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
} else if ($Map$3) {
|
|
1975
|
-
if ($m) {
|
|
1976
|
-
return $mapGet$1($m, key);
|
|
1977
|
-
}
|
|
1978
|
-
} else {
|
|
1979
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
1980
|
-
return listGet($o, key);
|
|
1981
|
-
}
|
|
2206
|
+
'delete': function (key) {
|
|
2207
|
+
var root = $o && $o.next;
|
|
2208
|
+
var deletedNode = listDelete($o, key);
|
|
2209
|
+
if (deletedNode && root && root === deletedNode) {
|
|
2210
|
+
$o = void undefined;
|
|
1982
2211
|
}
|
|
2212
|
+
return !!deletedNode;
|
|
2213
|
+
},
|
|
2214
|
+
get: function (key) {
|
|
2215
|
+
return listGet($o, key);
|
|
1983
2216
|
},
|
|
1984
2217
|
has: function (key) {
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
|
|
2218
|
+
return listHas($o, key);
|
|
2219
|
+
},
|
|
2220
|
+
set: function (key, value) {
|
|
2221
|
+
if (!$o) {
|
|
2222
|
+
// 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
|
|
2223
|
+
$o = {
|
|
2224
|
+
next: void undefined
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
// eslint-disable-next-line no-extra-parens
|
|
2228
|
+
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
2229
|
+
}
|
|
2230
|
+
};
|
|
2231
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2232
|
+
return channel;
|
|
2233
|
+
};
|
|
2234
|
+
|
|
2235
|
+
var GetIntrinsic$6 = getIntrinsic;
|
|
2236
|
+
|
|
2237
|
+
var callBindBasic = callBindApplyHelpers;
|
|
2238
|
+
|
|
2239
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
2240
|
+
var $indexOf$1 = callBindBasic([GetIntrinsic$6('%String.prototype.indexOf%')]);
|
|
2241
|
+
|
|
2242
|
+
/** @type {import('.')} */
|
|
2243
|
+
var callBound$b = function callBoundIntrinsic(name, allowMissing) {
|
|
2244
|
+
// eslint-disable-next-line no-extra-parens
|
|
2245
|
+
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic$6(name, !!allowMissing));
|
|
2246
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
2247
|
+
return callBindBasic([intrinsic]);
|
|
2248
|
+
}
|
|
2249
|
+
return intrinsic;
|
|
2250
|
+
};
|
|
2251
|
+
|
|
2252
|
+
var GetIntrinsic$5 = getIntrinsic;
|
|
2253
|
+
var callBound$a = callBound$b;
|
|
2254
|
+
var inspect$2 = objectInspect;
|
|
2255
|
+
|
|
2256
|
+
var $TypeError$3 = type;
|
|
2257
|
+
var $Map$3 = GetIntrinsic$5('%Map%', true);
|
|
2258
|
+
|
|
2259
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
2260
|
+
var $mapGet$1 = callBound$a('Map.prototype.get', true);
|
|
2261
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
2262
|
+
var $mapSet = callBound$a('Map.prototype.set', true);
|
|
2263
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2264
|
+
var $mapHas$5 = callBound$a('Map.prototype.has', true);
|
|
2265
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2266
|
+
var $mapDelete = callBound$a('Map.prototype.delete', true);
|
|
2267
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
2268
|
+
var $mapSize$1 = callBound$a('Map.prototype.size', true);
|
|
2269
|
+
|
|
2270
|
+
/** @type {import('.')} */
|
|
2271
|
+
var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
2272
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
2273
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2274
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2275
|
+
|
|
2276
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
2277
|
+
|
|
2278
|
+
/** @type {Channel} */
|
|
2279
|
+
var channel = {
|
|
2280
|
+
assert: function (key) {
|
|
2281
|
+
if (!channel.has(key)) {
|
|
2282
|
+
throw new $TypeError$3('Side channel does not contain ' + inspect$2(key));
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
'delete': function (key) {
|
|
2286
|
+
if ($m) {
|
|
2287
|
+
var result = $mapDelete($m, key);
|
|
2288
|
+
if ($mapSize$1($m) === 0) {
|
|
2289
|
+
$m = void undefined;
|
|
1996
2290
|
}
|
|
2291
|
+
return result;
|
|
2292
|
+
}
|
|
2293
|
+
return false;
|
|
2294
|
+
},
|
|
2295
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
2296
|
+
if ($m) {
|
|
2297
|
+
return $mapGet$1($m, key);
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2300
|
+
has: function (key) {
|
|
2301
|
+
if ($m) {
|
|
2302
|
+
return $mapHas$5($m, key);
|
|
1997
2303
|
}
|
|
1998
2304
|
return false;
|
|
1999
2305
|
},
|
|
2000
2306
|
set: function (key, value) {
|
|
2001
|
-
if (
|
|
2002
|
-
|
|
2003
|
-
|
|
2307
|
+
if (!$m) {
|
|
2308
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
2309
|
+
$m = new $Map$3();
|
|
2310
|
+
}
|
|
2311
|
+
$mapSet($m, key, value);
|
|
2312
|
+
}
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
2316
|
+
return channel;
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2319
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
2320
|
+
var callBound$9 = callBound$b;
|
|
2321
|
+
var inspect$1 = objectInspect;
|
|
2322
|
+
var getSideChannelMap$1 = sideChannelMap;
|
|
2323
|
+
|
|
2324
|
+
var $TypeError$2 = type;
|
|
2325
|
+
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
2326
|
+
|
|
2327
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
2328
|
+
var $weakMapGet = callBound$9('WeakMap.prototype.get', true);
|
|
2329
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
2330
|
+
var $weakMapSet = callBound$9('WeakMap.prototype.set', true);
|
|
2331
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2332
|
+
var $weakMapHas = callBound$9('WeakMap.prototype.has', true);
|
|
2333
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2334
|
+
var $weakMapDelete = callBound$9('WeakMap.prototype.delete', true);
|
|
2335
|
+
|
|
2336
|
+
/** @type {import('.')} */
|
|
2337
|
+
var sideChannelWeakmap = $WeakMap$1
|
|
2338
|
+
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
2339
|
+
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
2340
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
2341
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
2342
|
+
|
|
2343
|
+
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
2344
|
+
/** @type {Channel | undefined} */ var $m;
|
|
2345
|
+
|
|
2346
|
+
/** @type {Channel} */
|
|
2347
|
+
var channel = {
|
|
2348
|
+
assert: function (key) {
|
|
2349
|
+
if (!channel.has(key)) {
|
|
2350
|
+
throw new $TypeError$2('Side channel does not contain ' + inspect$1(key));
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
'delete': function (key) {
|
|
2354
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2355
|
+
if ($wm) {
|
|
2356
|
+
return $weakMapDelete($wm, key);
|
|
2357
|
+
}
|
|
2358
|
+
} else if (getSideChannelMap$1) {
|
|
2359
|
+
if ($m) {
|
|
2360
|
+
return $m['delete'](key);
|
|
2361
|
+
}
|
|
2004
2362
|
}
|
|
2005
|
-
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
|
|
2363
|
+
return false;
|
|
2364
|
+
},
|
|
2365
|
+
get: function (key) {
|
|
2366
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2367
|
+
if ($wm) {
|
|
2368
|
+
return $weakMapGet($wm, key);
|
|
2369
|
+
}
|
|
2009
2370
|
}
|
|
2010
|
-
$
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
$
|
|
2371
|
+
return $m && $m.get(key);
|
|
2372
|
+
},
|
|
2373
|
+
has: function (key) {
|
|
2374
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2375
|
+
if ($wm) {
|
|
2376
|
+
return $weakMapHas($wm, key);
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
return !!$m && $m.has(key);
|
|
2380
|
+
},
|
|
2381
|
+
set: function (key, value) {
|
|
2382
|
+
if ($WeakMap$1 && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2383
|
+
if (!$wm) {
|
|
2384
|
+
$wm = new $WeakMap$1();
|
|
2385
|
+
}
|
|
2386
|
+
$weakMapSet($wm, key, value);
|
|
2387
|
+
} else if (getSideChannelMap$1) {
|
|
2388
|
+
if (!$m) {
|
|
2389
|
+
$m = getSideChannelMap$1();
|
|
2390
|
+
}
|
|
2391
|
+
// eslint-disable-next-line no-extra-parens
|
|
2392
|
+
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
2015
2393
|
}
|
|
2016
|
-
listSet($o, key, value);
|
|
2017
2394
|
}
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2398
|
+
return channel;
|
|
2399
|
+
}
|
|
2400
|
+
: getSideChannelMap$1;
|
|
2401
|
+
|
|
2402
|
+
var $TypeError$1 = type;
|
|
2403
|
+
var inspect = objectInspect;
|
|
2404
|
+
var getSideChannelList = sideChannelList;
|
|
2405
|
+
var getSideChannelMap = sideChannelMap;
|
|
2406
|
+
var getSideChannelWeakMap = sideChannelWeakmap;
|
|
2407
|
+
|
|
2408
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
2409
|
+
|
|
2410
|
+
/** @type {import('.')} */
|
|
2411
|
+
var sideChannel = function getSideChannel() {
|
|
2412
|
+
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
2413
|
+
|
|
2414
|
+
/** @type {Channel | undefined} */ var $channelData;
|
|
2415
|
+
|
|
2416
|
+
/** @type {Channel} */
|
|
2417
|
+
var channel = {
|
|
2418
|
+
assert: function (key) {
|
|
2419
|
+
if (!channel.has(key)) {
|
|
2420
|
+
throw new $TypeError$1('Side channel does not contain ' + inspect(key));
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
'delete': function (key) {
|
|
2424
|
+
return !!$channelData && $channelData['delete'](key);
|
|
2425
|
+
},
|
|
2426
|
+
get: function (key) {
|
|
2427
|
+
return $channelData && $channelData.get(key);
|
|
2428
|
+
},
|
|
2429
|
+
has: function (key) {
|
|
2430
|
+
return !!$channelData && $channelData.has(key);
|
|
2431
|
+
},
|
|
2432
|
+
set: function (key, value) {
|
|
2433
|
+
if (!$channelData) {
|
|
2434
|
+
$channelData = makeChannel();
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
$channelData.set(key, value);
|
|
2018
2438
|
}
|
|
2019
2439
|
};
|
|
2440
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
2020
2441
|
return channel;
|
|
2021
2442
|
};
|
|
2022
2443
|
|
|
2023
|
-
var hasOwn =
|
|
2444
|
+
var hasOwn = requireHasown();
|
|
2024
2445
|
var channel = sideChannel();
|
|
2025
2446
|
|
|
2026
2447
|
var $TypeError = type;
|
|
@@ -2251,7 +2672,7 @@
|
|
|
2251
2672
|
var isArguments$1 = isArguments$2;
|
|
2252
2673
|
var getStopIterationIterator = stopIterationIterator;
|
|
2253
2674
|
|
|
2254
|
-
if (hasSymbols$
|
|
2675
|
+
if (hasSymbols$4() || requireShams()()) {
|
|
2255
2676
|
var $iterator = Symbol.iterator;
|
|
2256
2677
|
// Symbol is available natively or shammed
|
|
2257
2678
|
// natively:
|
|
@@ -2278,7 +2699,7 @@
|
|
|
2278
2699
|
var GetIntrinsic$3 = getIntrinsic;
|
|
2279
2700
|
var $Map = GetIntrinsic$3('%Map%', true);
|
|
2280
2701
|
var $Set$1 = GetIntrinsic$3('%Set%', true);
|
|
2281
|
-
var callBound$8 = callBound$
|
|
2702
|
+
var callBound$8 = callBound$e;
|
|
2282
2703
|
var $arrayPush = callBound$8('Array.prototype.push');
|
|
2283
2704
|
var $charCodeAt = callBound$8('String.prototype.charCodeAt');
|
|
2284
2705
|
var $stringSlice = callBound$8('String.prototype.slice');
|
|
@@ -2483,7 +2904,7 @@
|
|
|
2483
2904
|
var objectIs = polyfill;
|
|
2484
2905
|
|
|
2485
2906
|
var callBind$1 = callBindExports;
|
|
2486
|
-
var callBound$7 = callBound$
|
|
2907
|
+
var callBound$7 = callBound$e;
|
|
2487
2908
|
var GetIntrinsic$2 = getIntrinsic;
|
|
2488
2909
|
|
|
2489
2910
|
var $ArrayBuffer = GetIntrinsic$2('%ArrayBuffer%', true);
|
|
@@ -2544,7 +2965,7 @@
|
|
|
2544
2965
|
return hasToStringTag$5 ? tryDateObject(value) : toStr$4.call(value) === dateClass;
|
|
2545
2966
|
};
|
|
2546
2967
|
|
|
2547
|
-
var callBound$6 = callBound$
|
|
2968
|
+
var callBound$6 = callBound$e;
|
|
2548
2969
|
var hasToStringTag$4 = shams();
|
|
2549
2970
|
var has;
|
|
2550
2971
|
var $exec;
|
|
@@ -2601,7 +3022,7 @@
|
|
|
2601
3022
|
return $toString$2(value) === regexClass;
|
|
2602
3023
|
};
|
|
2603
3024
|
|
|
2604
|
-
var callBound$5 = callBound$
|
|
3025
|
+
var callBound$5 = callBound$e;
|
|
2605
3026
|
|
|
2606
3027
|
var $byteLength$1 = callBound$5('SharedArrayBuffer.prototype.byteLength', true);
|
|
2607
3028
|
|
|
@@ -2645,7 +3066,7 @@
|
|
|
2645
3066
|
return hasToStringTag$3 ? tryNumberObject(value) : toStr$3.call(value) === numClass;
|
|
2646
3067
|
};
|
|
2647
3068
|
|
|
2648
|
-
var callBound$4 = callBound$
|
|
3069
|
+
var callBound$4 = callBound$e;
|
|
2649
3070
|
var $boolToStr = callBound$4('Boolean.prototype.toString');
|
|
2650
3071
|
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
2651
3072
|
|
|
@@ -2673,7 +3094,7 @@
|
|
|
2673
3094
|
var isSymbol$1 = {exports: {}};
|
|
2674
3095
|
|
|
2675
3096
|
var toStr$2 = Object.prototype.toString;
|
|
2676
|
-
var hasSymbols = hasSymbols$
|
|
3097
|
+
var hasSymbols = hasSymbols$4();
|
|
2677
3098
|
|
|
2678
3099
|
if (hasSymbols) {
|
|
2679
3100
|
var symToStr = Symbol.prototype.toString;
|
|
@@ -2835,7 +3256,7 @@
|
|
|
2835
3256
|
var isWeakset = {exports: {}};
|
|
2836
3257
|
|
|
2837
3258
|
var GetIntrinsic$1 = getIntrinsic;
|
|
2838
|
-
var callBound$3 = callBound$
|
|
3259
|
+
var callBound$3 = callBound$e;
|
|
2839
3260
|
|
|
2840
3261
|
var $WeakSet = GetIntrinsic$1('%WeakSet%', true);
|
|
2841
3262
|
|
|
@@ -3093,7 +3514,7 @@
|
|
|
3093
3514
|
var forEach = forEach_1;
|
|
3094
3515
|
var availableTypedArrays = availableTypedArrays$1;
|
|
3095
3516
|
var callBind = callBindExports;
|
|
3096
|
-
var callBound$2 = callBound$
|
|
3517
|
+
var callBound$2 = callBound$e;
|
|
3097
3518
|
var gOPD = gopd$1;
|
|
3098
3519
|
|
|
3099
3520
|
/** @type {(O: object) => string} */
|
|
@@ -3205,7 +3626,7 @@
|
|
|
3205
3626
|
return tryTypedArrays(value);
|
|
3206
3627
|
};
|
|
3207
3628
|
|
|
3208
|
-
var callBound$1 = callBound$
|
|
3629
|
+
var callBound$1 = callBound$e;
|
|
3209
3630
|
var $byteLength = callBound$1('ArrayBuffer.prototype.byteLength', true);
|
|
3210
3631
|
|
|
3211
3632
|
var isArrayBuffer$1 = isArrayBuffer$2;
|
|
@@ -3219,7 +3640,7 @@
|
|
|
3219
3640
|
}; // in node < 0.11, byteLength is an own nonconfigurable property
|
|
3220
3641
|
|
|
3221
3642
|
var assign = object_assign;
|
|
3222
|
-
var callBound = callBound$
|
|
3643
|
+
var callBound = callBound$e;
|
|
3223
3644
|
var flags = regexp_prototype_flags;
|
|
3224
3645
|
var GetIntrinsic = getIntrinsic;
|
|
3225
3646
|
var getIterator = esGetIteratorExports;
|
|
@@ -4852,6 +5273,7 @@
|
|
|
4852
5273
|
const IO_ERRORS = errors.intents;
|
|
4853
5274
|
const BrowserClientControlMethodName = "T42.Web.Client.Control";
|
|
4854
5275
|
const DesktopClientControlMethodName = "T42.Channels.Command";
|
|
5276
|
+
const GlueReceivedPromiseTimeout = 120 * 1000;
|
|
4855
5277
|
|
|
4856
5278
|
const ioConnectFDC3SystemMethod = "FDC3.Collaborate";
|
|
4857
5279
|
const PrivateChannelPrefix = "___privateFDC3Channel___";
|
|
@@ -5712,16 +6134,14 @@
|
|
|
5712
6134
|
|
|
5713
6135
|
class GlueController {
|
|
5714
6136
|
channelsParser;
|
|
5715
|
-
channelsStateStore;
|
|
5716
6137
|
glue;
|
|
5717
6138
|
_logger;
|
|
5718
6139
|
glueInitPromise;
|
|
5719
6140
|
resolveGluePromise;
|
|
5720
6141
|
rejectGluePromise;
|
|
5721
6142
|
defaultGluePromiseTimeout = 120 * 1000;
|
|
5722
|
-
constructor(channelsParser
|
|
6143
|
+
constructor(channelsParser) {
|
|
5723
6144
|
this.channelsParser = channelsParser;
|
|
5724
|
-
this.channelsStateStore = channelsStateStore;
|
|
5725
6145
|
}
|
|
5726
6146
|
get gluePromise() {
|
|
5727
6147
|
return this.glueInitPromise.then(this.initializeLogger.bind(this));
|
|
@@ -5739,7 +6159,7 @@
|
|
|
5739
6159
|
this.resolveGluePromise = resolve;
|
|
5740
6160
|
this.rejectGluePromise = reject;
|
|
5741
6161
|
});
|
|
5742
|
-
},
|
|
6162
|
+
}, GlueReceivedPromiseTimeout, `Timeout of ${GlueReceivedPromiseTimeout}ms waiting to receive initialized 'io'`);
|
|
5743
6163
|
}
|
|
5744
6164
|
get logger() {
|
|
5745
6165
|
return this._logger;
|
|
@@ -5958,9 +6378,12 @@
|
|
|
5958
6378
|
getPrefs(app) {
|
|
5959
6379
|
return this.glue.prefs.get(app);
|
|
5960
6380
|
}
|
|
6381
|
+
isRunningInBrowser() {
|
|
6382
|
+
return typeof window !== "undefined" && !window.iodesktop;
|
|
6383
|
+
}
|
|
5961
6384
|
async checkIsFdc3DataWrappingSupported() {
|
|
5962
|
-
const
|
|
5963
|
-
const methodName =
|
|
6385
|
+
const inBrowserNamespace = this.isRunningInBrowser();
|
|
6386
|
+
const methodName = inBrowserNamespace ? BrowserClientControlMethodName : DesktopClientControlMethodName;
|
|
5964
6387
|
const myServer = this.glue.interop.servers().find((server) => server.instance === this.glue.interop.instance.instance);
|
|
5965
6388
|
if (!myServer) {
|
|
5966
6389
|
return false;
|
|
@@ -5969,7 +6392,7 @@
|
|
|
5969
6392
|
if (!registersControlMethod) {
|
|
5970
6393
|
return false;
|
|
5971
6394
|
}
|
|
5972
|
-
const data =
|
|
6395
|
+
const data = inBrowserNamespace ? { domain: "system", operation: "isFdc3DataWrappingSupported" } : { command: "isFdc3DataWrappingSupported" };
|
|
5973
6396
|
try {
|
|
5974
6397
|
const res = await this.glue.interop.invoke(methodName, data, { instance: this.interopInstance().instance });
|
|
5975
6398
|
return res.returned.isSupported;
|
|
@@ -6054,7 +6477,7 @@
|
|
|
6054
6477
|
const REQUEST_GLUE_RESPONSE = "requestGlueResponse";
|
|
6055
6478
|
const FDC3_READY = "fdc3Ready";
|
|
6056
6479
|
|
|
6057
|
-
class
|
|
6480
|
+
class WebEventDispatcher {
|
|
6058
6481
|
fireFdc3Ready() {
|
|
6059
6482
|
const event = new Event(FDC3_READY);
|
|
6060
6483
|
window.dispatchEvent(event);
|
|
@@ -6238,7 +6661,7 @@
|
|
|
6238
6661
|
return tuple;
|
|
6239
6662
|
}; };
|
|
6240
6663
|
|
|
6241
|
-
var STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.nothing', 'fdc3.
|
|
6664
|
+
var STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.nothing', 'fdc3.timeRange', 'fdc3.transactionResult', 'fdc3.valuation');
|
|
6242
6665
|
// used internally to check if a given intent/context is a standard one
|
|
6243
6666
|
new Set(STANDARD_CONTEXT_TYPES);
|
|
6244
6667
|
|
|
@@ -6271,7 +6694,7 @@
|
|
|
6271
6694
|
ContextTypes["Portfolio"] = "fdc3.portfolio";
|
|
6272
6695
|
ContextTypes["Position"] = "fdc3.position";
|
|
6273
6696
|
ContextTypes["ChatSearchCriteria"] = "fdc3.chat.searchCriteria";
|
|
6274
|
-
ContextTypes["TimeRange"] = "fdc3.
|
|
6697
|
+
ContextTypes["TimeRange"] = "fdc3.timeRange";
|
|
6275
6698
|
ContextTypes["TransactionResult"] = "fdc3.transactionResult";
|
|
6276
6699
|
ContextTypes["Valuation"] = "fdc3.valuation";
|
|
6277
6700
|
})(ContextTypes || (ContextTypes = {}));
|
|
@@ -7055,8 +7478,9 @@
|
|
|
7055
7478
|
async getInfo({ commandId }) {
|
|
7056
7479
|
await this.glueController.gluePromise;
|
|
7057
7480
|
this.logger?.info(`${commandId} - getInfo() invoked`);
|
|
7058
|
-
const appMetadata =
|
|
7059
|
-
const
|
|
7481
|
+
const appMetadata = this.getCurrentAppMetadata();
|
|
7482
|
+
const globalScope = typeof process !== "undefined" ? process : window;
|
|
7483
|
+
const { provider, providerVersion, standardVersion } = globalScope.fdc3Info;
|
|
7060
7484
|
return {
|
|
7061
7485
|
provider,
|
|
7062
7486
|
providerVersion,
|
|
@@ -7071,10 +7495,10 @@
|
|
|
7071
7495
|
}
|
|
7072
7496
|
getCurrentAppMetadata() {
|
|
7073
7497
|
const myInstance = this.glueController.interopInstance();
|
|
7074
|
-
return
|
|
7498
|
+
return {
|
|
7075
7499
|
appId: myInstance.applicationName,
|
|
7076
7500
|
instanceId: myInstance.instance
|
|
7077
|
-
}
|
|
7501
|
+
};
|
|
7078
7502
|
}
|
|
7079
7503
|
parseGlueInstToAppIdentifier(glueInst) {
|
|
7080
7504
|
return {
|
|
@@ -7090,13 +7514,13 @@
|
|
|
7090
7514
|
return this.addInstanceMetadataToAppMetadata(appMetadata, instance);
|
|
7091
7515
|
}
|
|
7092
7516
|
async getBaseGlueAppToAppMetadata(app) {
|
|
7093
|
-
const
|
|
7094
|
-
const appConfiguration =
|
|
7095
|
-
?
|
|
7096
|
-
: app.
|
|
7097
|
-
const icon =
|
|
7098
|
-
?
|
|
7099
|
-
: app.icon;
|
|
7517
|
+
const inBrowserNamespace = this.glueController.isRunningInBrowser();
|
|
7518
|
+
const appConfiguration = inBrowserNamespace
|
|
7519
|
+
? app.userProperties
|
|
7520
|
+
: await app.getConfiguration();
|
|
7521
|
+
const icon = inBrowserNamespace
|
|
7522
|
+
? app.icon
|
|
7523
|
+
: (await app.getConfiguration()).icon;
|
|
7100
7524
|
return {
|
|
7101
7525
|
appId: app.name,
|
|
7102
7526
|
name: app.name,
|
|
@@ -7105,9 +7529,9 @@
|
|
|
7105
7529
|
title: app.title,
|
|
7106
7530
|
icons: icon ? [{ src: icon }] : [],
|
|
7107
7531
|
tooltip: appConfiguration.tooltip,
|
|
7108
|
-
screenshots:
|
|
7109
|
-
? appConfiguration.
|
|
7110
|
-
: appConfiguration.screenshots
|
|
7532
|
+
screenshots: inBrowserNamespace
|
|
7533
|
+
? appConfiguration.screenshots
|
|
7534
|
+
: appConfiguration.customProperties.screenshots
|
|
7111
7535
|
};
|
|
7112
7536
|
}
|
|
7113
7537
|
addInstanceMetadataToAppMetadata(appMetadata, instance) {
|
|
@@ -7158,7 +7582,7 @@
|
|
|
7158
7582
|
}
|
|
7159
7583
|
}
|
|
7160
7584
|
|
|
7161
|
-
class
|
|
7585
|
+
class WebEventReceiver {
|
|
7162
7586
|
glueController;
|
|
7163
7587
|
eventDispatcher;
|
|
7164
7588
|
glueResponseReceived = false;
|
|
@@ -7185,7 +7609,7 @@
|
|
|
7185
7609
|
}
|
|
7186
7610
|
glueReceiverHandler(event) {
|
|
7187
7611
|
const data = event.detail;
|
|
7188
|
-
if (!data
|
|
7612
|
+
if (!data?.glue42) {
|
|
7189
7613
|
return;
|
|
7190
7614
|
}
|
|
7191
7615
|
const glue42Event = data.glue42.event;
|
|
@@ -8258,9 +8682,55 @@
|
|
|
8258
8682
|
}
|
|
8259
8683
|
}
|
|
8260
8684
|
|
|
8685
|
+
class NodeEventReceiver {
|
|
8686
|
+
glueController;
|
|
8687
|
+
glueReceived = false;
|
|
8688
|
+
glueInitialized = false;
|
|
8689
|
+
timer;
|
|
8690
|
+
constructor(glueController) {
|
|
8691
|
+
this.glueController = glueController;
|
|
8692
|
+
}
|
|
8693
|
+
start() {
|
|
8694
|
+
setTimeout(this.clearInterval, GlueReceivedPromiseTimeout);
|
|
8695
|
+
this.setupInterval();
|
|
8696
|
+
}
|
|
8697
|
+
setupInterval() {
|
|
8698
|
+
this.timer = setInterval(() => {
|
|
8699
|
+
if (this.glueReceived) {
|
|
8700
|
+
return this.clearInterval();
|
|
8701
|
+
}
|
|
8702
|
+
const glueAvailable = typeof (process.io ?? process.glue) !== "undefined";
|
|
8703
|
+
if (!glueAvailable) {
|
|
8704
|
+
return;
|
|
8705
|
+
}
|
|
8706
|
+
this.glueReceived = true;
|
|
8707
|
+
const glue = process.io ?? process.glue;
|
|
8708
|
+
const glueValidator = this.glueController.validateGlue(glue);
|
|
8709
|
+
if (!glueValidator.isValid) {
|
|
8710
|
+
this.glueController.initializeFailed(glueValidator.error);
|
|
8711
|
+
return this.clearInterval();
|
|
8712
|
+
}
|
|
8713
|
+
this.clearInterval();
|
|
8714
|
+
this.glueController.initialize(glue);
|
|
8715
|
+
this.glueInitialized = true;
|
|
8716
|
+
}, 100);
|
|
8717
|
+
}
|
|
8718
|
+
clearInterval() {
|
|
8719
|
+
if (!this.timer) {
|
|
8720
|
+
return;
|
|
8721
|
+
}
|
|
8722
|
+
clearInterval(this.timer);
|
|
8723
|
+
this.timer = undefined;
|
|
8724
|
+
if (!this.glueReceived && !this.glueInitialized) {
|
|
8725
|
+
this.glueController.initializeFailed(`Timeout ${GlueReceivedPromiseTimeout}ms waiting for 'io' to be available on the process object`);
|
|
8726
|
+
}
|
|
8727
|
+
}
|
|
8728
|
+
}
|
|
8729
|
+
|
|
8261
8730
|
class IoC {
|
|
8262
|
-
|
|
8263
|
-
|
|
8731
|
+
_webEventDispatcher;
|
|
8732
|
+
_webEventReceiver;
|
|
8733
|
+
_nodeEventReceiver;
|
|
8264
8734
|
_desktopAgent;
|
|
8265
8735
|
_glueController;
|
|
8266
8736
|
_intentsController;
|
|
@@ -8278,14 +8748,15 @@
|
|
|
8278
8748
|
return this;
|
|
8279
8749
|
}
|
|
8280
8750
|
get eventReceiver() {
|
|
8281
|
-
|
|
8282
|
-
|
|
8751
|
+
const inNode = typeof process !== "undefined";
|
|
8752
|
+
if (inNode) {
|
|
8753
|
+
return this.nodeEventReceiver;
|
|
8283
8754
|
}
|
|
8284
|
-
return this.
|
|
8755
|
+
return this.webEventReceiver;
|
|
8285
8756
|
}
|
|
8286
8757
|
get glueController() {
|
|
8287
8758
|
if (!this._glueController) {
|
|
8288
|
-
this._glueController = new GlueController(this.channelsParser
|
|
8759
|
+
this._glueController = new GlueController(this.channelsParser);
|
|
8289
8760
|
}
|
|
8290
8761
|
return this._glueController;
|
|
8291
8762
|
}
|
|
@@ -8295,11 +8766,23 @@
|
|
|
8295
8766
|
}
|
|
8296
8767
|
return this._fdc3;
|
|
8297
8768
|
}
|
|
8298
|
-
get
|
|
8299
|
-
if (!this.
|
|
8300
|
-
this.
|
|
8769
|
+
get nodeEventReceiver() {
|
|
8770
|
+
if (!this._nodeEventReceiver) {
|
|
8771
|
+
this._nodeEventReceiver = new NodeEventReceiver(this.glueController);
|
|
8772
|
+
}
|
|
8773
|
+
return this._nodeEventReceiver;
|
|
8774
|
+
}
|
|
8775
|
+
get webEventReceiver() {
|
|
8776
|
+
if (!this._webEventReceiver) {
|
|
8777
|
+
this._webEventReceiver = new WebEventReceiver(this.glueController, this.webEventDispatcher);
|
|
8778
|
+
}
|
|
8779
|
+
return this._webEventReceiver;
|
|
8780
|
+
}
|
|
8781
|
+
get webEventDispatcher() {
|
|
8782
|
+
if (!this._webEventDispatcher) {
|
|
8783
|
+
this._webEventDispatcher = new WebEventDispatcher();
|
|
8301
8784
|
}
|
|
8302
|
-
return this.
|
|
8785
|
+
return this._webEventDispatcher;
|
|
8303
8786
|
}
|
|
8304
8787
|
get channelsFactory() {
|
|
8305
8788
|
if (!this._channelsFactory) {
|
|
@@ -8385,18 +8868,19 @@
|
|
|
8385
8868
|
return ioc.fdc3;
|
|
8386
8869
|
};
|
|
8387
8870
|
|
|
8388
|
-
var version = "2.5.
|
|
8871
|
+
var version = "2.5.2";
|
|
8389
8872
|
|
|
8390
|
-
|
|
8391
|
-
|
|
8873
|
+
const globalScope = typeof process !== "undefined" ? process : window;
|
|
8874
|
+
globalScope.fdc3Info = {
|
|
8392
8875
|
provider: "io.Connect",
|
|
8393
8876
|
providerVersion: version,
|
|
8394
8877
|
standardVersion: "2.1"
|
|
8395
8878
|
};
|
|
8879
|
+
let globalFdc3 = globalScope.fdc3;
|
|
8396
8880
|
if (typeof globalFdc3 === "undefined") {
|
|
8397
8881
|
globalFdc3 = fdc3Factory();
|
|
8398
8882
|
checkIfInElectron(globalFdc3);
|
|
8399
|
-
|
|
8883
|
+
globalScope.fdc3 = globalFdc3;
|
|
8400
8884
|
}
|
|
8401
8885
|
else {
|
|
8402
8886
|
console.warn("Defaulting to using the auto-injected fdc3.");
|