@lwrjs/client-modules 0.7.2 → 0.7.3

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.
@@ -68,9 +68,6 @@ const SymbolCtor$LWS = Symbol;
68
68
  const {
69
69
  prototype: SymbolProto$LWS
70
70
  } = SymbolCtor$LWS;
71
- const {
72
- valueOf: SymbolProtoValueOf$LWS
73
- } = SymbolProto$LWS;
74
71
  const {
75
72
  for: SymbolFor$LWS,
76
73
  iterator: SymbolIterator$LWS,
@@ -78,25 +75,9 @@ const {
78
75
  unscopables: SymbolUnscopables$LWS
79
76
  } = SymbolCtor$LWS;
80
77
  const {
81
- toString: SymbolProtoToString$LWS
78
+ toString: SymbolProtoToString$LWS,
79
+ valueOf: SymbolProtoValueOf$LWS
82
80
  } = SymbolProto$LWS;
83
-
84
- function isSymbolObject$LWS(value$LWS) {
85
- if (typeof value$LWS === 'object' && value$LWS !== null) {
86
- try {
87
- // Section 20.4.3 Properties of the Symbol Prototype Object
88
- // https://tc39.es/ecma262/#thissymbolvalue
89
- // Step 2: If Type(value) is Object and value has a [[SymbolData]] internal slot, then
90
- // a. Let s be value.[[SymbolData]].
91
- // b. Assert: Type(s) is Symbol.
92
- ReflectApply$LWS(SymbolProtoValueOf$LWS, value$LWS, []);
93
- return true; // eslint-disable-next-line no-empty
94
- } catch (_unused$LWS) {}
95
- }
96
-
97
- return false;
98
- }
99
-
100
81
  const ArrayCtor$LWS = Array;
101
82
  const {
102
83
  prototype: ArrayProto$LWS
@@ -210,63 +191,15 @@ const ArrayBufferCtor$LWS = ArrayBuffer;
210
191
  const {
211
192
  isView: ArrayBufferIsView$LWS
212
193
  } = ArrayBufferCtor$LWS;
213
- const ArrayBufferProtoByteLengthGetter$LWS = ObjectLookupOwnGetter$LWS(ArrayBufferCtor$LWS.prototype, 'byteLength');
214
-
215
- function isArrayBuffer$LWS(value$LWS) {
216
- try {
217
- // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
218
- // https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.bytelength
219
- // Step 2: Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
220
- ReflectApply$LWS(ArrayBufferProtoByteLengthGetter$LWS, value$LWS, []);
221
- return true; // eslint-disable-next-line no-empty
222
- } catch (_unused2$LWS) {}
223
-
224
- return false;
225
- } // https://caniuse.com/bigint
226
-
194
+ const ArrayBufferProtoByteLengthGetter$LWS = ObjectLookupOwnGetter$LWS(ArrayBufferCtor$LWS.prototype, 'byteLength'); // https://caniuse.com/bigint
227
195
 
228
196
  const SUPPORTS_BIG_INT$LWS = typeof BigInt === 'function';
229
197
  const BigIntProtoValueOf$LWS = SUPPORTS_BIG_INT$LWS ? BigInt.prototype.valueOf :
230
198
  /* istanbul ignore next: currently unreachable via tests */
231
199
  undefined;
232
- const isBigIntObject$LWS = SUPPORTS_BIG_INT$LWS ? function isBigIntObject$LWS(value$LWS) {
233
- if (typeof value$LWS === 'object' && value$LWS !== null) {
234
- try {
235
- // Section 21.2.3 Properties of the BigInt Prototype Object
236
- // https://tc39.es/ecma262/#thisbigintvalue
237
- // Step 2: If Type(value) is Object and value has a [[BigIntData]] internal slot, then
238
- // a. Assert: Type(value.[[BigIntData]]) is BigInt.
239
- ReflectApply$LWS(BigIntProtoValueOf$LWS, value$LWS, []);
240
- return true; // eslint-disable-next-line no-empty
241
- } catch (_unused3$LWS) {}
242
- }
243
-
244
- return false;
245
- } :
246
- /* istanbul ignore next: currently unreachable via tests */
247
- function isBigIntObject$LWS(_value$LWS) {
248
- return false;
249
- };
250
200
  const {
251
201
  valueOf: BooleanProtoValueOf$LWS
252
202
  } = Boolean.prototype;
253
-
254
- function isBooleanObject$LWS(value$LWS) {
255
- if (typeof value$LWS === 'object' && value$LWS !== null) {
256
- try {
257
- // Section 20.3.3 Properties of the Boolean Prototype Object
258
- // https://tc39.es/ecma262/#thisbooleanvalue
259
- // Step 2: If Type(value) is Object and value has a [[BooleanData]] internal slot, then
260
- // a. Let b be value.[[BooleanData]].
261
- // b. Assert: Type(b) is Boolean.
262
- ReflectApply$LWS(BooleanProtoValueOf$LWS, value$LWS, []);
263
- return true; // eslint-disable-next-line no-empty
264
- } catch (_unused4$LWS) {}
265
- }
266
-
267
- return false;
268
- }
269
-
270
203
  const LOCKER_IDENTIFIER_MARKER$LWS = '$LWS'; // This package is bundled by third-parties that have their own build time
271
204
  // replacement logic. Instead of customizing each build system to be aware
272
205
  // of this package we implement a two phase debug mode by performing small
@@ -285,6 +218,7 @@ const CHAR_QUOTE_SINGLE$LWS = "'";
285
218
  const SANDBOX_EVAL_CONTEXT_NAME$LWS = '$lockerEvalContext$';
286
219
  const SANDBOX_EVAL_HELPERS_NAME$LWS = '$lockerEvalHelpers$';
287
220
  const TO_STRING_BRAND_ARRAY$LWS = '[object Array]';
221
+ const TO_STRING_BRAND_ARRAY_BUFFER$LWS = '[object ArrayBuffer]';
288
222
  const TO_STRING_BRAND_BIG_INT$LWS = '[object BigInt]';
289
223
  const TO_STRING_BRAND_BOOLEAN$LWS = '[object Boolean]';
290
224
  const TO_STRING_BRAND_DATE$LWS = '[object Date]';
@@ -303,29 +237,12 @@ const TO_STRING_BRAND_WEAK_SET$LWS = '[object WeakSet]';
303
237
  const UNCOMPILED_LOCATION_NAME$LWS = `uncompiledLocation${LOCKER_IDENTIFIER_MARKER$LWS}`;
304
238
  const WEBPACK_REQUIRE_NAME$LWS = '__webpack_require__';
305
239
  const DateCtor$LWS = Date;
306
- const {
307
- valueOf: DateProtoValueOf$LWS
308
- } = DateCtor$LWS.prototype;
309
240
  const {
310
241
  now: DateNow$LWS
311
242
  } = DateCtor$LWS;
312
-
313
- function isDate$LWS(value$LWS) {
314
- if (typeof value$LWS === 'object' && value$LWS !== null) {
315
- try {
316
- // Section 21.4.4 Properties of the Date Prototype Object
317
- // https://tc39.es/ecma262/#thistimevalue
318
- // Step 1: If Type(value) is Object and value has a [[DateValue]] internal slot, then
319
- // a. Return value.[[DateValue]].
320
- // Step 2: Throw a TypeError exception.
321
- ReflectApply$LWS(DateProtoValueOf$LWS, value$LWS, []);
322
- return true; // eslint-disable-next-line no-empty
323
- } catch (_unused5$LWS) {}
324
- }
325
-
326
- return false;
327
- }
328
-
243
+ const {
244
+ valueOf: DateProtoValueOf$LWS
245
+ } = DateCtor$LWS.prototype;
329
246
  const {
330
247
  bind: FunctionProtoBind$LWS,
331
248
  toString: FunctionProtoToString$LWS
@@ -349,23 +266,11 @@ const {
349
266
  [SymbolIterator$LWS]: MapProtoSymbolIterator$LWS,
350
267
  [SymbolToStringTag$LWS]: MapProtoSymbolToStringTag$LWS
351
268
  } = MapProto$LWS;
352
- const MapProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(MapProto$LWS, 'size');
353
269
  const {
354
270
  entries: MapProtoEntries$LWS,
355
271
  set: MapProtoSet$LWS
356
272
  } = MapProto$LWS;
357
-
358
- function isMap$LWS(value$LWS) {
359
- try {
360
- // Section 24.1.3.10 get Map.prototype.size
361
- // https://tc39.es/ecma262/#sec-get-map.prototype.size
362
- // Step 2: Perform ? RequireInternalSlot(M, [[MapData]]).
363
- ReflectApply$LWS(MapProtoSizeGetter$LWS, value$LWS, []);
364
- return true; // eslint-disable-next-line no-empty
365
- } catch (_unused6$LWS) {}
366
-
367
- return false;
368
- }
273
+ const MapProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(MapProto$LWS, 'size');
369
274
 
370
275
  function toSafeMap$LWS(map$LWS) {
371
276
  ReflectSetPrototypeOf$LWS(map$LWS, null);
@@ -396,30 +301,14 @@ const NumberCtor$LWS = Number;
396
301
  const {
397
302
  prototype: NumberProto$LWS
398
303
  } = NumberCtor$LWS;
399
- const {
400
- valueOf: NumberProtoValueOf$LWS
401
- } = NumberProto$LWS;
402
304
  const {
403
305
  isFinite: NumberIsFinite$LWS,
404
306
  isInteger: NumberIsInteger$LWS
405
307
  } = NumberCtor$LWS;
406
-
407
- function isNumberObject$LWS(value$LWS) {
408
- if (typeof value$LWS === 'object' && value$LWS !== null) {
409
- try {
410
- // Section 21.1.3 Properties of the Number Prototype Object
411
- // https://tc39.es/ecma262/#thisnumbervalue
412
- // Step 2: If Type(value) is Object and value has a [[NumberData]] internal slot, then
413
- // a. Let n be value.[[NumberData]].
414
- // b. Assert: Type(n) is Number.
415
- ReflectApply$LWS(NumberProtoValueOf$LWS, value$LWS, []);
416
- return true; // eslint-disable-next-line no-empty
417
- } catch (_unused7$LWS) {}
418
- }
419
-
420
- return false;
421
- }
422
-
308
+ const {
309
+ toFixed: NumberProtoToFixed$LWS,
310
+ valueOf: NumberProtoValueOf$LWS
311
+ } = NumberProto$LWS;
423
312
  const StringCtor$LWS = String;
424
313
  const {
425
314
  prototype: StringProto$LWS
@@ -490,23 +379,7 @@ function isConvertibleToString$LWS(value$LWS) {
490
379
  // Section 7.1.17 ToString ( argument )
491
380
  // https://tc39.es/ecma262/#sec-tostring
492
381
  return `${value$LWS}` !== undefined; // eslint-disable-next-line no-empty
493
- } catch (_unused8$LWS) {}
494
- }
495
-
496
- return false;
497
- }
498
-
499
- function isStringObject$LWS(value$LWS) {
500
- if (typeof value$LWS === 'object' && value$LWS !== null) {
501
- try {
502
- // Section 22.1.3 Properties of the String Prototype Object
503
- // https://tc39.es/ecma262/#thisstringvalue
504
- // Step 2: If Type(value) is Object and value has a [[StringData]] internal slot, then
505
- // a. Let s be value.[[StringData]].
506
- // b. Assert: Type(s) is String.
507
- ReflectApply$LWS(StringProtoValueOf$LWS, value$LWS, []);
508
- return true; // eslint-disable-next-line no-empty
509
- } catch (_unused9$LWS) {}
382
+ } catch (_unused$LWS) {}
510
383
  }
511
384
 
512
385
  return false;
@@ -551,7 +424,7 @@ function toSafeTemplateStringValue$LWS(value$LWS) {
551
424
 
552
425
 
553
426
  return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty
554
- } catch (_unused10$LWS) {}
427
+ } catch (_unused2$LWS) {}
555
428
 
556
429
  return '[object Unknown]';
557
430
  }
@@ -571,23 +444,6 @@ function escapeRegExp$LWS(string$LWS) {
571
444
  return ReflectApply$LWS(StringProtoReplace$LWS, string$LWS, [specialCharRegExp$LWS, '\\$&']);
572
445
  }
573
446
 
574
- function isRegExp$LWS(value$LWS) {
575
- try {
576
- // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
577
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.source
578
- // Step 3: If R does not have an [[OriginalSource]] internal slot, then
579
- // a. If SameValue(R, %RegExp.prototype%) is true, return "(?:)".
580
- // b. Otherwise, throw a TypeError exception.
581
- if (value$LWS !== RegExpProto$LWS) {
582
- ReflectApply$LWS(RegExpProtoSourceGetter$LWS, value$LWS, []);
583
- return true;
584
- } // eslint-disable-next-line no-empty
585
-
586
- } catch (_unused11$LWS) {}
587
-
588
- return false;
589
- }
590
-
591
447
  const SetCtor$LWS = Set;
592
448
  const {
593
449
  prototype: SetProto$LWS
@@ -602,23 +458,11 @@ const {
602
458
  [SymbolIterator$LWS]: SetProtoSymbolIterator$LWS,
603
459
  [SymbolToStringTag$LWS]: SetProtoSymbolToStringTag$LWS
604
460
  } = SetProto$LWS;
605
- const SetProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(SetProto$LWS, 'size');
606
461
  const {
607
462
  add: SetProtoAdd$LWS,
608
463
  values: SetProtoValues$LWS
609
464
  } = SetProto$LWS;
610
-
611
- function isSet$LWS(value$LWS) {
612
- try {
613
- // Section 24.2.3.9 get Set.prototype.size
614
- // https://tc39.es/ecma262/#sec-get-set.prototype.size
615
- // Step 2: Perform ? RequireInternalSlot(S, [[SetData]]).
616
- ReflectApply$LWS(SetProtoSizeGetter$LWS, value$LWS, []);
617
- return true; // eslint-disable-next-line no-empty
618
- } catch (_unused12$LWS) {}
619
-
620
- return false;
621
- }
465
+ const SetProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(SetProto$LWS, 'size');
622
466
 
623
467
  function toSafeSet$LWS(set$LWS) {
624
468
  ReflectSetPrototypeOf$LWS(set$LWS, null);
@@ -648,28 +492,16 @@ const WeakMapCtor$LWS = WeakMap;
648
492
  const {
649
493
  prototype: WeakMapProto$LWS
650
494
  } = WeakMapCtor$LWS;
495
+ const {
496
+ has: WeakMapProtoHas$LWS
497
+ } = WeakMapProto$LWS;
651
498
  const {
652
499
  delete: WeakMapProtoDelete$LWS,
653
500
  get: WeakMapProtoGet$LWS,
654
- has: WeakMapProtoHas$LWS,
655
501
  set: WeakMapProtoSet$LWS,
656
502
  [SymbolToStringTag$LWS]: WeakMapProtoSymbolToStringTag$LWS
657
503
  } = WeakMapProto$LWS;
658
504
 
659
- function isWeakMap$LWS(value$LWS) {
660
- if (typeof value$LWS === 'object' && value$LWS !== null) {
661
- try {
662
- // Section 24.3.3.4 WeakMap.prototype.has ( key )
663
- // https://tc39.es/ecma262/#sec-weakmap.prototype.has
664
- // Step 2: Perform ? RequireInternalSlot(M, [[WeakMapData]]).
665
- ReflectApply$LWS(WeakMapProtoHas$LWS, value$LWS, []);
666
- return true; // eslint-disable-next-line no-empty
667
- } catch (_unused13$LWS) {}
668
- }
669
-
670
- return false;
671
- }
672
-
673
505
  function toSafeWeakMap$LWS$1(weakMap$LWS) {
674
506
  ReflectSetPrototypeOf$LWS(weakMap$LWS, null);
675
507
  weakMap$LWS.constructor = WeakMapCtor$LWS;
@@ -682,22 +514,28 @@ function toSafeWeakMap$LWS$1(weakMap$LWS) {
682
514
  return weakMap$LWS;
683
515
  }
684
516
 
517
+ const WeakSetCtor$LWS = WeakSet;
518
+ const {
519
+ prototype: WeakSetProto$LWS
520
+ } = WeakSetCtor$LWS;
685
521
  const {
686
522
  has: WeakSetProtoHas$LWS
687
- } = WeakSet.prototype;
688
-
689
- function isWeakSet$LWS(value$LWS) {
690
- if (typeof value$LWS === 'object' && value$LWS !== null) {
691
- try {
692
- // Section 24.4.3.4 WeakSet.prototype.has ( value )
693
- // https://tc39.es/ecma262/#sec-weakset.prototype.has
694
- // Step 2: 2. Perform ? RequireInternalSlot(S, [[WeakSetData]]).
695
- ReflectApply$LWS(WeakSetProtoHas$LWS, value$LWS, []);
696
- return true; // eslint-disable-next-line no-empty
697
- } catch (_unused14$LWS) {}
698
- }
699
-
700
- return false;
523
+ } = WeakSetProto$LWS;
524
+ const {
525
+ add: WeakSetProtoAdd$LWS,
526
+ delete: WeakSetProtoDelete$LWS,
527
+ [SymbolToStringTag$LWS]: WeakSetProtoSymbolToStringTag$LWS
528
+ } = WeakSetProto$LWS;
529
+
530
+ function toSafeWeakSet$LWS(weakSet$LWS) {
531
+ ReflectSetPrototypeOf$LWS(weakSet$LWS, null);
532
+ weakSet$LWS.add = WeakSetProtoAdd$LWS;
533
+ weakSet$LWS.constructor = WeakSetCtor$LWS;
534
+ weakSet$LWS.delete = WeakSetProtoDelete$LWS;
535
+ weakSet$LWS.has = WeakSetProtoHas$LWS;
536
+ weakSet$LWS[SymbolToStringTag$LWS] = WeakSetProtoSymbolToStringTag$LWS;
537
+ ReflectSetPrototypeOf$LWS(weakSet$LWS, WeakSetProto$LWS);
538
+ return weakSet$LWS;
701
539
  }
702
540
 
703
541
  const {
@@ -711,53 +549,152 @@ const lineBreakRegExp$LWS = /\r\n?|\n|\u2028|\u2029/;
711
549
  const skipWhiteSpacesRegExp$LWS = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
712
550
  const stringLiteralRegExp$LWS = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
713
551
 
714
- function getBrandByTrailAndError$LWS(value$LWS) {
552
+ function getBrandByTrialAndError$LWS(value$LWS) {
715
553
  // Internally these brand checks rely on native methods that throw and catch
716
554
  // an exception when they operate on values with unexpected internal slot
717
555
  // entries.
718
- if (isDate$LWS(value$LWS)) {
719
- return TO_STRING_BRAND_DATE$LWS;
720
- }
556
+ //
557
+ // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
558
+ // https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.bytelength
559
+ // Step 2: Perform RequireInternalSlot(O, [[ArrayBufferData]]).
560
+ try {
561
+ if ('byteLength' in value$LWS) {
562
+ ReflectApply$LWS(ArrayBufferProtoByteLengthGetter$LWS, value$LWS, []);
563
+ return TO_STRING_BRAND_ARRAY_BUFFER$LWS;
564
+ } // eslint-disable-next-line no-empty
721
565
 
722
- if (isMap$LWS(value$LWS)) {
723
- return TO_STRING_BRAND_MAP$LWS;
724
- }
566
+ } catch (_unused3$LWS) {} // Section 21.4.4 Properties of the Date Prototype Object
567
+ // https://tc39.es/ecma262/#thistimevalue
568
+ // Step 1: If Type(value) is Object and value has a [[DateValue]] internal slot, then
569
+ // a. Return value.[[DateValue]].
570
+ // Step 2: Throw a TypeError exception.
725
571
 
726
- if (isRegExp$LWS(value$LWS)) {
727
- return TO_STRING_BRAND_REG_EXP$LWS;
728
- }
729
572
 
730
- if (isSet$LWS(value$LWS)) {
731
- return TO_STRING_BRAND_SET$LWS;
732
- }
573
+ try {
574
+ if ('toLocaleDateString' in value$LWS) {
575
+ ReflectApply$LWS(DateProtoValueOf$LWS, value$LWS, []);
576
+ return TO_STRING_BRAND_DATE$LWS;
577
+ } // eslint-disable-next-line no-empty
733
578
 
734
- if (isWeakMap$LWS(value$LWS)) {
735
- return TO_STRING_BRAND_WEAK_MAP$LWS;
736
- }
579
+ } catch (_unused4$LWS) {} // Section 24.1.3.10 get Map.prototype.size
580
+ // https://tc39.es/ecma262/#sec-get-map.prototype.size
581
+ // Step 2: Perform ? RequireInternalSlot(M, [[MapData]]).
737
582
 
738
- if (isWeakSet$LWS(value$LWS)) {
739
- return TO_STRING_BRAND_WEAK_SET$LWS;
740
- }
741
583
 
742
- if (isBigIntObject$LWS(value$LWS)) {
743
- return TO_STRING_BRAND_BIG_INT$LWS;
744
- }
584
+ try {
585
+ if ('get' in value$LWS && 'size' in value$LWS) {
586
+ ReflectApply$LWS(MapProtoSizeGetter$LWS, value$LWS, []);
587
+ return TO_STRING_BRAND_MAP$LWS;
588
+ } // eslint-disable-next-line no-empty
745
589
 
746
- if (isBooleanObject$LWS(value$LWS)) {
747
- return TO_STRING_BRAND_BOOLEAN$LWS;
748
- }
590
+ } catch (_unused5$LWS) {} // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
591
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.source
592
+ // Step 3: If R does not have an [[OriginalSource]] internal slot, then
593
+ // a. If SameValue(R, %RegExp.prototype%) is true, return "(?:)".
594
+ // b. Otherwise, throw a TypeError exception.
749
595
 
750
- if (isNumberObject$LWS(value$LWS)) {
751
- return TO_STRING_BRAND_NUMBER$LWS;
752
- }
753
596
 
754
- if (isStringObject$LWS(value$LWS)) {
755
- return TO_STRING_BRAND_STRING$LWS;
597
+ try {
598
+ if (ObjectHasOwn$LWS(value$LWS, 'lastIndex')) {
599
+ ReflectApply$LWS(RegExpProtoSourceGetter$LWS, value$LWS, []);
600
+ return TO_STRING_BRAND_REG_EXP$LWS;
601
+ } // eslint-disable-next-line no-empty
602
+
603
+ } catch (_unused6$LWS) {} // Section 24.2.3.9 get Set.prototype.size
604
+ // https://tc39.es/ecma262/#sec-get-set.prototype.size
605
+ // Step 2: Perform ? RequireInternalSlot(S, [[SetData]]).
606
+
607
+
608
+ try {
609
+ if ('add' in value$LWS && 'size' in value$LWS) {
610
+ ReflectApply$LWS(SetProtoSizeGetter$LWS, value$LWS, []);
611
+ return TO_STRING_BRAND_SET$LWS;
612
+ } // eslint-disable-next-line no-empty
613
+
614
+ } catch (_unused7$LWS) {} // Section 24.3.3.4 WeakMap.prototype.has ( key )
615
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.has
616
+ // Step 2: Perform RequireInternalSlot(M, [[WeakMapData]]).
617
+
618
+
619
+ try {
620
+ if ('get' in value$LWS && !('size' in value$LWS)) {
621
+ ReflectApply$LWS(WeakMapProtoHas$LWS, value$LWS, []);
622
+ return TO_STRING_BRAND_WEAK_MAP$LWS;
623
+ } // eslint-disable-next-line no-empty
624
+
625
+ } catch (_unused8$LWS) {} // Section 24.4.3.4 WeakSet.prototype.has ( value )
626
+ // https://tc39.es/ecma262/#sec-weakset.prototype.has
627
+ // Step 2: 2. Perform RequireInternalSlot(S, [[WeakSetData]]).
628
+
629
+
630
+ try {
631
+ if ('add' in value$LWS && !('size' in value$LWS)) {
632
+ ReflectApply$LWS(WeakSetProtoHas$LWS, value$LWS, []);
633
+ return TO_STRING_BRAND_WEAK_SET$LWS;
634
+ } // eslint-disable-next-line no-empty
635
+
636
+ } catch (_unused9$LWS) {} // Section 21.1.3 Properties of the Number Prototype Object
637
+ // https://tc39.es/ecma262/#thisnumbervalue
638
+ // Step 2: If Type(value) is Object and value has a [[NumberData]] internal slot, then
639
+ // a. Let n be value.[[NumberData]].
640
+ // b. Assert: Type(n) is Number.
641
+
642
+
643
+ try {
644
+ if ('toPrecision' in value$LWS) {
645
+ ReflectApply$LWS(NumberProtoValueOf$LWS, value$LWS, []);
646
+ return TO_STRING_BRAND_NUMBER$LWS;
647
+ } // eslint-disable-next-line no-empty
648
+
649
+ } catch (_unused10$LWS) {} // Section 22.1.3 Properties of the String Prototype Object
650
+ // https://tc39.es/ecma262/#thisstringvalue
651
+ // Step 2: If Type(value) is Object and value has a [[StringData]] internal slot, then
652
+ // a. Let s be value.[[StringData]].
653
+ // b. Assert: Type(s) is String.
654
+
655
+
656
+ try {
657
+ if (ObjectHasOwn$LWS(value$LWS, 'length')) {
658
+ ReflectApply$LWS(StringProtoValueOf$LWS, value$LWS, []);
659
+ return TO_STRING_BRAND_STRING$LWS;
660
+ } // eslint-disable-next-line no-empty
661
+
662
+ } catch (_unused11$LWS) {} // Section 20.4.3 Properties of the Symbol Prototype Object
663
+ // https://tc39.es/ecma262/#thissymbolvalue
664
+ // Step 2: If Type(value) is Object and value has a [[SymbolData]] internal slot, then
665
+ // a. Let s be value.[[SymbolData]].
666
+ // b. Assert: Type(s) is Symbol.
667
+
668
+
669
+ try {
670
+ if ('description' in value$LWS) {
671
+ ReflectApply$LWS(SymbolProtoValueOf$LWS, value$LWS, []);
672
+ return TO_STRING_BRAND_SYMBOL$LWS;
673
+ } // eslint-disable-next-line no-empty
674
+
675
+ } catch (_unused12$LWS) {} // istanbul ignore else: All platforms that LWS runs tests in support BigInt
676
+
677
+
678
+ if (SUPPORTS_BIG_INT$LWS) {
679
+ try {
680
+ // Section 21.2.3 Properties of the BigInt Prototype Object
681
+ // https://tc39.es/ecma262/#thisbigintvalue
682
+ // Step 2: If Type(value) is Object and value has a [[BigIntData]] internal slot, then
683
+ // a. Assert: Type(value.[[BigIntData]]) is BigInt.
684
+ ReflectApply$LWS(BigIntProtoValueOf$LWS, value$LWS, []);
685
+ return TO_STRING_BRAND_BIG_INT$LWS; // eslint-disable-next-line no-empty
686
+ } catch (_unused13$LWS) {}
756
687
  }
757
688
 
758
- if (isSymbolObject$LWS(value$LWS)) {
759
- return TO_STRING_BRAND_SYMBOL$LWS;
760
- } // Cannot detect brands for Arguments and Error objects.
689
+ try {
690
+ // Section 20.3.3 Properties of the Boolean Prototype Object
691
+ // https://tc39.es/ecma262/#thisbooleanvalue
692
+ // Step 2: If Type(value) is Object and value has a [[BooleanData]] internal slot, then
693
+ // a. Let b be value.[[BooleanData]].
694
+ // b. Assert: Type(b) is Boolean.
695
+ ReflectApply$LWS(BooleanProtoValueOf$LWS, value$LWS, []);
696
+ return TO_STRING_BRAND_BOOLEAN$LWS; // eslint-disable-next-line no-empty
697
+ } catch (_unused14$LWS) {} // Cannot detect brands for Arguments and Error objects.
761
698
 
762
699
 
763
700
  return TO_STRING_BRAND_OBJECT$LWS;
@@ -799,7 +736,7 @@ function getBrand$LWS(value$LWS) {
799
736
  return TO_STRING_BRAND_ARRAY$LWS;
800
737
  }
801
738
 
802
- return TO_STRING_TAG_SYMBOL$LWS in value$LWS ? getBrandByTrailAndError$LWS(value$LWS) : ReflectApply$LWS(ObjectProtoToString$LWS, value$LWS, []);
739
+ return TO_STRING_TAG_SYMBOL$LWS in value$LWS ? getBrandByTrialAndError$LWS(value$LWS) : ReflectApply$LWS(ObjectProtoToString$LWS, value$LWS, []);
803
740
  }
804
741
 
805
742
  const getTimestamp$LWS = typeof performance === 'undefined' ?
@@ -896,40 +833,90 @@ const {
896
833
  const LOCKER_LIVE_VALUE_SYMBOL$LWS = SymbolFor$LWS('@@lockerLiveValue'); // This is used by packages/locker-core-engine/src/LockerFilter.js
897
834
 
898
835
  function isLiveObject$LWS(value$LWS) {
899
- if (value$LWS === null || value$LWS === undefined || value$LWS === ObjectProto$LWS || !(typeof value$LWS === 'object' || typeof value$LWS === 'function')) {
900
- return false;
901
- } // Based on the isTargetLive() function of
836
+ // Based on the isTargetLive() function of
902
837
  // salesforce/near-membrane/packages/near-membrane-base/src/membrane.ts.
838
+ if (value$LWS === null || value$LWS === undefined || value$LWS === ObjectProto$LWS || value$LWS === RegExpProto$LWS) {
839
+ return false;
840
+ }
903
841
 
842
+ if (typeof value$LWS === 'function') {
843
+ try {
844
+ return ObjectHasOwn$LWS(value$LWS, LOCKER_LIVE_VALUE_SYMBOL$LWS); // eslint-disable-next-line no-empty
845
+ } catch (_unused15$LWS) {}
846
+
847
+ return false;
848
+ }
904
849
 
905
850
  if (typeof value$LWS === 'object') {
906
- const {
907
- constructor: constructor$LWS
908
- } = value$LWS;
851
+ let constructor$LWS;
909
852
 
910
- if (constructor$LWS === ObjectCtor$LWS) {
911
- // If the constructor, own or inherited, points to `Object`
912
- // then `value` is not likely a prototype object.
913
- return true;
914
- }
853
+ try {
854
+ ({
855
+ constructor: constructor$LWS
856
+ } = value$LWS);
915
857
 
916
- let result$LWS = false;
858
+ if (constructor$LWS === ObjectCtor$LWS) {
859
+ // If the constructor, own or inherited, points to `Object`
860
+ // then `value` is not likely a prototype object.
861
+ return true;
862
+ } // eslint-disable-next-line no-empty
917
863
 
918
- if (ReflectGetPrototypeOf$LWS(value$LWS) === null) {
919
- // Ensure `value` is not an `Object.prototype` from an iframe.
920
- result$LWS = typeof constructor$LWS !== 'function' || constructor$LWS.prototype !== value$LWS;
921
- }
864
+ } catch (_unused16$LWS) {}
922
865
 
923
- if (!result$LWS) {
924
- result$LWS = ArrayIsArray$LWS(value$LWS) || ArrayBufferIsView$LWS(value$LWS) || isArrayBuffer$LWS(value$LWS) || isRegExp$LWS(value$LWS);
925
- }
866
+ try {
867
+ if (ObjectHasOwn$LWS(value$LWS, LOCKER_LIVE_VALUE_SYMBOL$LWS)) {
868
+ return true;
869
+ } // eslint-disable-next-line no-empty
870
+
871
+ } catch (_unused17$LWS) {}
872
+
873
+ try {
874
+ if (ReflectGetPrototypeOf$LWS(value$LWS) === null && ( // Ensure `value` is not an `Object.prototype` from an iframe.
875
+ typeof constructor$LWS !== 'function' || constructor$LWS.prototype !== value$LWS)) {
876
+ return true;
877
+ } // eslint-disable-next-line no-empty
926
878
 
927
- if (result$LWS) {
928
- return result$LWS;
879
+ } catch (_unused18$LWS) {}
880
+
881
+ try {
882
+ if (ArrayIsArray$LWS(value$LWS)) {
883
+ return true;
884
+ }
885
+ } catch (_unused19$LWS) {
886
+ // The value is a revoked proxy.
887
+ return false;
929
888
  }
889
+
890
+ if (ArrayBufferIsView$LWS(value$LWS)) {
891
+ return true;
892
+ } // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
893
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.source
894
+ // Step 3: If R does not have an [[OriginalSource]] internal slot, then
895
+ // a. If SameValue(R, %RegExp.prototype%) is true, return "(?:)".
896
+ // b. Otherwise, throw a TypeError exception.
897
+
898
+
899
+ try {
900
+ if (ObjectHasOwn$LWS(value$LWS, 'lastIndex')) {
901
+ ReflectApply$LWS(RegExpProtoSourceGetter$LWS, value$LWS, []);
902
+ return true;
903
+ } // eslint-disable-next-line no-empty
904
+
905
+ } catch (_unused20$LWS) {} // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
906
+ // https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.bytelength
907
+ // Step 2: Perform RequireInternalSlot(O, [[ArrayBufferData]]).
908
+
909
+
910
+ try {
911
+ if ('byteLength' in value$LWS) {
912
+ ReflectApply$LWS(ArrayBufferProtoByteLengthGetter$LWS, value$LWS, []);
913
+ return true;
914
+ } // eslint-disable-next-line no-empty
915
+
916
+ } catch (_unused21$LWS) {}
930
917
  }
931
918
 
932
- return ObjectHasOwn$LWS(value$LWS, LOCKER_LIVE_VALUE_SYMBOL$LWS);
919
+ return false;
933
920
  }
934
921
 
935
922
  function markLiveObject$LWS(target$LWS) {
@@ -990,10 +977,13 @@ function isNearMembrane$LWS(value$LWS) {
990
977
  return false;
991
978
  }
992
979
 
980
+ const PromiseCtor$LWS = Promise;
993
981
  const {
982
+ catch: PromiseProtoCatch$LWS,
994
983
  then: PromiseProtoThen$LWS
995
- } = Promise.prototype;
996
- const PromiseReject$LWS = Promise.reject.bind(Promise);
984
+ } = PromiseCtor$LWS.prototype;
985
+ const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
986
+ const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
997
987
  const ProxyCtor$LWS = Proxy;
998
988
  const {
999
989
  revocable: ProxyRevocable$LWS
@@ -1006,7 +996,7 @@ function createRevokedProxy$LWS(object$LWS) {
1006
996
  revocable$LWS.revoke();
1007
997
  return revocable$LWS.proxy;
1008
998
  }
1009
- /*! version: 0.16.18 */
999
+ /*! version: 0.16.23 */
1010
1000
 
1011
1001
  /*!
1012
1002
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1039,19 +1029,6 @@ const DocumentProtoDefaultViewGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentPro
1039
1029
  const DocumentProtoDocumentElementGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'documentElement');
1040
1030
  const DocumentProtoHeadGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'head');
1041
1031
  const DocumentProtoImplementationGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'implementation');
1042
-
1043
- function getDocumentDefaultView$LWS(value$LWS) {
1044
- if (typeof value$LWS === 'object' && value$LWS !== null && 'defaultView' in value$LWS) {
1045
- // Slower check that must certainly detect a document object.
1046
- try {
1047
- // This will throw if "value" is not an instance of Document
1048
- return ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, value$LWS, []); // eslint-disable-next-line no-empty
1049
- } catch (_unused$LWS) {}
1050
- }
1051
-
1052
- return null;
1053
- }
1054
-
1055
1032
  const {
1056
1033
  prototype: ElementProto$LWS
1057
1034
  } = Element;
@@ -1087,7 +1064,51 @@ const NodeProtoChildNodesGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, '
1087
1064
  const NodeProtoFirstChildGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'firstChild');
1088
1065
  const NodeProtoNodeNameGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'nodeName');
1089
1066
  const NodeProtoOwnerDocumentGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'ownerDocument');
1090
- const globalObjectToValidatorMap$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
1067
+ /* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
1068
+
1069
+ class Validator$LWS {
1070
+ constructor(record$LWS) {
1071
+ this.isEqualDomString = (leftString$LWS, rightString$LWS) => {
1072
+ ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.left, [leftString$LWS]);
1073
+ ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.right, [rightString$LWS]);
1074
+ return deepIsEqualNode$LWS(this._templates.left, this._templates.right);
1075
+ };
1076
+
1077
+ this.isSharedElement = element$LWS => element$LWS === ReflectApply$LWS(DocumentProtoHeadGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoBodyGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoDocumentElementGetter$LWS, this._document, []);
1078
+
1079
+ this.isAllowedSharedElementChild = element$LWS => element$LWS instanceof this._constructors.HTMLLinkElement || element$LWS instanceof this._constructors.HTMLScriptElement;
1080
+
1081
+ this.isMediaSourceObject = object$LWS => // MediaSource may not be defined in some browsers
1082
+ this._constructors.MediaSource && object$LWS instanceof this._constructors.MediaSource;
1083
+
1084
+ const {
1085
+ document: document$LWS,
1086
+ globalObject: {
1087
+ HTMLLinkElement: HTMLLinkElement$LWS,
1088
+ HTMLScriptElement: HTMLScriptElement$LWS,
1089
+ MediaSource: MediaSource$LWS
1090
+ }
1091
+ } = record$LWS;
1092
+ this._constructors = {
1093
+ HTMLLinkElement: HTMLLinkElement$LWS,
1094
+ HTMLScriptElement: HTMLScriptElement$LWS,
1095
+ MediaSource: MediaSource$LWS
1096
+ };
1097
+ this._document = document$LWS;
1098
+ this._templates = {
1099
+ left: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template']),
1100
+ right: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template'])
1101
+ };
1102
+ }
1103
+
1104
+ }
1105
+
1106
+ const topValidator$LWS = new Validator$LWS( // Mock sandbox record.
1107
+ {
1108
+ document,
1109
+ globalObject: window
1110
+ });
1111
+ const documentToValidatorMap$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS([[document, topValidator$LWS]]));
1091
1112
  const documentPattern$LWS = 'document';
1092
1113
  const windowPattern$LWS = 'document\\.defaultView|frames|globalThis|self|window';
1093
1114
  const webpackGlobalPattern$LWS = `${windowPattern$LWS}|global`;
@@ -1128,73 +1149,47 @@ function deepIsEqualNode$LWS(leftRoot$LWS, rightRoot$LWS) {
1128
1149
 
1129
1150
  return false;
1130
1151
  }
1131
- /* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
1132
-
1133
-
1134
- class Validator$LWS {
1135
- constructor(globalObject$LWS) {
1136
- this.isEqualDomString = (leftString$LWS, rightString$LWS) => {
1137
- ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.left, [leftString$LWS]);
1138
- ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.right, [rightString$LWS]);
1139
- return deepIsEqualNode$LWS(this._templates.left, this._templates.right);
1140
- };
1141
-
1142
- this.isSharedElement = element$LWS => element$LWS === ReflectApply$LWS(DocumentProtoHeadGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoBodyGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoDocumentElementGetter$LWS, this._document, []);
1143
-
1144
- this.isAllowedSharedElementChild = element$LWS => element$LWS instanceof this._constructors.HTMLLinkElement || element$LWS instanceof this._constructors.HTMLScriptElement;
1145
1152
 
1146
- this.isMediaSourceObject = object$LWS => // MediaSource may not be defined in some browsers
1147
- this._constructors.MediaSource && object$LWS instanceof this._constructors.MediaSource;
1148
-
1149
- const {
1150
- document: document$LWS,
1151
- HTMLLinkElement: HTMLLinkElement$LWS,
1152
- HTMLScriptElement: HTMLScriptElement$LWS,
1153
- MediaSource: MediaSource$LWS
1154
- } = globalObject$LWS;
1155
- this._constructors = {
1156
- HTMLLinkElement: HTMLLinkElement$LWS,
1157
- HTMLScriptElement: HTMLScriptElement$LWS,
1158
- MediaSource: MediaSource$LWS
1159
- };
1160
- this._document = document$LWS;
1161
- this._templates = {
1162
- left: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template']),
1163
- right: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template'])
1164
- };
1153
+ function getValidator$LWS(record$LWS) {
1154
+ // Fast path validator lookup for top level window.
1155
+ if (record$LWS === undefined || record$LWS.globalObject === window) {
1156
+ return topValidator$LWS;
1165
1157
  }
1166
1158
 
1167
- }
1159
+ const {
1160
+ document: document$LWS
1161
+ } = record$LWS; // Use the `document` as the key because a window object maintains its identity
1162
+ // continuity when its location changes and while the non-configurable document
1163
+ // property does not.
1168
1164
 
1169
- function getValidator$LWS(globalObject$LWS) {
1170
- let validator$LWS = globalObjectToValidatorMap$LWS.get(globalObject$LWS);
1165
+ let validator$LWS = documentToValidatorMap$LWS.get(document$LWS);
1171
1166
 
1172
1167
  if (validator$LWS === undefined) {
1173
- validator$LWS = new Validator$LWS(globalObject$LWS);
1174
- globalObjectToValidatorMap$LWS.set(globalObject$LWS, validator$LWS);
1168
+ validator$LWS = new Validator$LWS(record$LWS);
1169
+ documentToValidatorMap$LWS.set(document$LWS, validator$LWS);
1175
1170
  }
1176
1171
 
1177
1172
  return validator$LWS;
1178
1173
  }
1179
1174
 
1180
- function transformUncompiledSource$LWS(source$LWS) {
1181
- // To avoid conflicts with anyone else using SANDBOX_EVAL_CONTEXT_NAME,
1182
- // we sniff the source code to see if it is present, and in that case we
1175
+ function transformUncompiledSourceText$LWS(sourceText$LWS) {
1176
+ // To avoid conflicts with anyone else using `SANDBOX_EVAL_CONTEXT_NAME`,
1177
+ // we sniff the source text to see if it is present, and in that case we
1183
1178
  // don't proceed with the string replacement.
1184
- if (ReflectApply$LWS(RegExpProtoTest$LWS, sandboxEvalContextNameRegExp$LWS, [source$LWS])) {
1185
- return source$LWS;
1179
+ if (ReflectApply$LWS(RegExpProtoTest$LWS, sandboxEvalContextNameRegExp$LWS, [sourceText$LWS])) {
1180
+ return sourceText$LWS;
1186
1181
  }
1187
1182
 
1188
- const destructuredBlueHelpers$LWS = []; // Input `source` is uncompiled, so `window.location` returns `null` inside
1183
+ const destructuredBlueHelpers$LWS = []; // Input `sourceText` is uncompiled, so `window.location` returns `null` inside
1189
1184
  // the detached iframe sandbox. Our compiler solves this problem by transforming
1190
1185
  // the red `location` reference into a blue `location` reference. The solution
1191
1186
  // below emulates what our compiler does, but using a simple string replacement.
1192
1187
 
1193
1188
  let locationTransformed$LWS = false;
1194
- source$LWS = ReflectApply$LWS(StringProtoReplace$LWS, source$LWS, [// RegExp.prototype[Symbol.replace] resets the lastIndex of global
1189
+ sourceText$LWS = ReflectApply$LWS(StringProtoReplace$LWS, sourceText$LWS, [// RegExp.prototype[Symbol.replace] resets the lastIndex of global
1195
1190
  // regexp to 0.
1196
1191
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1197
- ReflectApply$LWS(RegExpProtoTest$LWS, webpackRequireNameRegExp$LWS, [source$LWS]) ? locationReferencesWithWebPackRegExp$LWS : locationReferencesRegExp$LWS, (_match$LWS, assignmentOperator$LWS) => {
1192
+ ReflectApply$LWS(RegExpProtoTest$LWS, webpackRequireNameRegExp$LWS, [sourceText$LWS]) ? locationReferencesWithWebPackRegExp$LWS : locationReferencesRegExp$LWS, (_match$LWS, assignmentOperator$LWS) => {
1198
1193
  locationTransformed$LWS = true;
1199
1194
  return assignmentOperator$LWS ? `${UNCOMPILED_LOCATION_NAME$LWS}.href${assignmentOperator$LWS}` : UNCOMPILED_LOCATION_NAME$LWS;
1200
1195
  }]);
@@ -1204,26 +1199,26 @@ function transformUncompiledSource$LWS(source$LWS) {
1204
1199
  }
1205
1200
 
1206
1201
  if (!destructuredBlueHelpers$LWS.length) {
1207
- return source$LWS;
1202
+ return sourceText$LWS;
1208
1203
  }
1209
1204
 
1210
1205
  const destructureSandboxEvalContextSnippet$LWS = `const {
1211
1206
  ${ReflectApply$LWS(ArrayProtoJoin$LWS, destructuredBlueHelpers$LWS, [','])}} = ${SANDBOX_EVAL_CONTEXT_NAME$LWS};`;
1212
- const pragmaIndex$LWS = indexOfPragma$LWS(source$LWS, 'use strict');
1207
+ const pragmaIndex$LWS = indexOfPragma$LWS(sourceText$LWS, 'use strict');
1213
1208
 
1214
1209
  if (pragmaIndex$LWS === -1) {
1215
- return destructureSandboxEvalContextSnippet$LWS + source$LWS;
1210
+ return destructureSandboxEvalContextSnippet$LWS + sourceText$LWS;
1216
1211
  } // The "use strict" pragma, including quotes, is 12 characters long.
1217
1212
 
1218
1213
 
1219
1214
  let afterPragmaIndex$LWS = pragmaIndex$LWS + 12; // istanbul ignore else
1220
1215
 
1221
- if (afterPragmaIndex$LWS < source$LWS.length && source$LWS[afterPragmaIndex$LWS] === ';') {
1216
+ if (afterPragmaIndex$LWS < sourceText$LWS.length && sourceText$LWS[afterPragmaIndex$LWS] === ';') {
1222
1217
  // Move index after the semicolon.
1223
1218
  afterPragmaIndex$LWS += 1;
1224
1219
  }
1225
1220
 
1226
- return ReflectApply$LWS(StringProtoSlice$LWS, source$LWS, [0, afterPragmaIndex$LWS]) + destructureSandboxEvalContextSnippet$LWS + ReflectApply$LWS(StringProtoSlice$LWS, source$LWS, [afterPragmaIndex$LWS]);
1221
+ return ReflectApply$LWS(StringProtoSlice$LWS, sourceText$LWS, [0, afterPragmaIndex$LWS]) + destructureSandboxEvalContextSnippet$LWS + ReflectApply$LWS(StringProtoSlice$LWS, sourceText$LWS, [afterPragmaIndex$LWS]);
1227
1222
  }
1228
1223
 
1229
1224
  const BlobCtor$LWS = Blob;
@@ -1542,15 +1537,14 @@ function partialStructuredClone$LWS(value$LWS) {
1542
1537
 
1543
1538
  try {
1544
1539
  result$LWS = partialStructuredCloneInternal$LWS(value$LWS); // eslint-disable-next-line no-empty
1545
- } catch (_unused2$LWS) {}
1540
+ } catch (_unused$LWS) {}
1546
1541
 
1547
1542
  SEEN_OBJECTS_MAP$LWS.clear();
1548
1543
  return result$LWS;
1549
1544
  }
1550
1545
 
1551
1546
  const {
1552
- getElementById: DocumentFragmentProtoGetElementById$LWS,
1553
- querySelector: DocumentFragmentProtoQuerySelector$LWS
1547
+ getElementById: DocumentFragmentProtoGetElementById$LWS
1554
1548
  } = DocumentFragment.prototype;
1555
1549
  const {
1556
1550
  createDocument: DOMImplementationProtoCreateDocument$LWS
@@ -1585,7 +1579,10 @@ const SVGElementProtoDatasetGetter$LWS = ObjectLookupOwnGetter$LWS(SVGElement.pr
1585
1579
  const {
1586
1580
  createObjectURL: URLCreateObjectURL$LWS,
1587
1581
  revokeObjectURL: URLRevokeObjectURL$LWS
1588
- } = URL; // These properties are part of the WindowOrGlobalScope mixin and not on
1582
+ } = URL;
1583
+ const {
1584
+ setTimeout: WindowSetTimeout$LWS
1585
+ } = window; // These properties are part of the WindowOrGlobalScope mixin and not on
1589
1586
  // Window.prototype.
1590
1587
  // https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope
1591
1588
 
@@ -1595,11 +1592,35 @@ const {
1595
1592
  encodeURIComponent: WindowEncodeURIComponent$LWS,
1596
1593
  setInterval: WindowSetInterval$LWS
1597
1594
  } = window;
1595
+
1596
+ const WindowQueueMicrotask$LWS = (() => {
1597
+ const {
1598
+ queueMicrotask: queueMicrotask$LWS
1599
+ } = window; // istanbul ignore else
1600
+
1601
+ if (typeof queueMicrotask$LWS === 'function') {
1602
+ return queueMicrotask$LWS;
1603
+ } // Edge 15 does not support `queueMicrotask()`.
1604
+ // https://caniuse.com/mdn-api_queuemicrotask
1605
+ // https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask#when_queuemicrotask_isnt_available
1606
+ // istanbul ignore next: coverage is not measured in Edge 15, which means this whole fallback is considered "uncovered" when the tests are run in Chrome.
1607
+
1608
+
1609
+ return function queueMicrotask$LWS(callback$LWS) {
1610
+ let promise$LWS = PromiseResolve$LWS();
1611
+ promise$LWS = ReflectApply$LWS(PromiseProtoThen$LWS, promise$LWS, [callback$LWS]);
1612
+ ReflectApply$LWS(PromiseProtoCatch$LWS, promise$LWS, [error => WindowSetTimeout$LWS(() => {
1613
+ throw error;
1614
+ }, 0)]);
1615
+ };
1616
+ })();
1617
+
1618
+ const WindowDocumentGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'document');
1619
+ const WindowFrameElementGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'frameElement');
1598
1620
  const WindowLengthGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'length');
1599
- const WindowSelfGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'self');
1600
1621
 
1601
1622
  function isWindow$LWS(value$LWS) {
1602
- if (typeof value$LWS === 'object' && value$LWS !== null && ObjectHasOwn$LWS(value$LWS, 'top')) {
1623
+ if (typeof value$LWS === 'object' && value$LWS !== null && ObjectHasOwn$LWS(value$LWS, 'window') && value$LWS.window === value$LWS) {
1603
1624
  // Slower check that must certainly detect a window object.
1604
1625
  try {
1605
1626
  // window.self getter only works for a window object, otherwise it
@@ -1610,9 +1631,9 @@ function isWindow$LWS(value$LWS) {
1610
1631
  // equivalent to window.frames, and here is the very simple spec for
1611
1632
  // this getter:
1612
1633
  // https://html.spec.whatwg.org/multipage/window-object.html#dom-self
1613
- ReflectApply$LWS(WindowSelfGetter$LWS, value$LWS, []);
1634
+ ReflectApply$LWS(WindowDocumentGetter$LWS, value$LWS, []);
1614
1635
  return true; // eslint-disable-next-line no-empty
1615
- } catch (_unused3$LWS) {}
1636
+ } catch (_unused2$LWS) {}
1616
1637
  }
1617
1638
 
1618
1639
  return false;
@@ -1633,7 +1654,7 @@ const {
1633
1654
  const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'responseText');
1634
1655
  const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'status');
1635
1656
  const XhrProtoWithCredentialsSetter$LWS = ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
1636
- /*! version: 0.16.18 */
1657
+ /*! version: 0.16.23 */
1637
1658
 
1638
1659
  /*!
1639
1660
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1700,7 +1721,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
1700
1721
  function sanitizeURLString$LWS(urlString$LWS) {
1701
1722
  return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
1702
1723
  }
1703
- /*! version: 0.16.18 */
1724
+ /*! version: 0.16.23 */
1704
1725
 
1705
1726
  /*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
1706
1727
 
@@ -3220,9 +3241,8 @@ const SANITIZER_HOOKS_REGISTRY$LWS = {
3220
3241
  __proto__: null,
3221
3242
  uponSanitizeAttribute: sanitizeHrefAttributeHook$LWS
3222
3243
  };
3223
- const docRef$LWS = document;
3224
- const htmlTemplate$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, docRef$LWS, ['template']);
3225
- const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, docRef$LWS, ['a']); // Queue for managing pending xhr requests.
3244
+ const htmlTemplate$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['template']);
3245
+ const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['a']); // Queue for managing pending xhr requests.
3226
3246
 
3227
3247
  const queue$LWS = toSafeSet$LWS(new SetCtor$LWS()); // A regexp to find all non lowercase alphanumeric.
3228
3248
 
@@ -3244,10 +3264,10 @@ function checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS) {
3244
3264
  }
3245
3265
 
3246
3266
  function createUrlContainer$LWS(url$LWS) {
3247
- const container$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, docRef$LWS, ['div']);
3267
+ const container$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['div']);
3248
3268
  ReflectApply$LWS(ElementProtoSetAttribute$LWS, container$LWS, ['style', 'display:none']);
3249
3269
  ReflectApply$LWS(ElementProtoSetAttribute$LWS, container$LWS, ['id', url$LWS]);
3250
- const body$LWS = ReflectApply$LWS(DocumentProtoBodyGetter$LWS, docRef$LWS, []);
3270
+ const body$LWS = ReflectApply$LWS(DocumentProtoBodyGetter$LWS, document, []);
3251
3271
  ReflectApply$LWS(NodeProtoAppendChild$LWS, body$LWS, [container$LWS]);
3252
3272
  return container$LWS;
3253
3273
  }
@@ -3375,7 +3395,7 @@ function sanitizeSvgHref$LWS(url$LWS) {
3375
3395
  const normalizedHref$LWS = parseHref$LWS(urlAsString$LWS); // Sanitize only for supported URL_SCHEMES_LIST.
3376
3396
 
3377
3397
  if (URL_SCHEMES_LIST$LWS.includes(normalizedHref$LWS.protocol)) {
3378
- const container$LWS = ReflectApply$LWS(DocumentProtoGetElementById$LWS, docRef$LWS, [normalizedHref$LWS.normalizedUrl]); // Have we sanitized this URL already?
3398
+ const container$LWS = ReflectApply$LWS(DocumentProtoGetElementById$LWS, document, [normalizedHref$LWS.normalizedUrl]); // Have we sanitized this URL already?
3379
3399
 
3380
3400
  if (container$LWS && normalizedHref$LWS.normalizedFragment) {
3381
3401
  checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS);
@@ -3396,7 +3416,7 @@ function createSvgContainer$LWS(ownerDoc$LWS) {
3396
3416
  }
3397
3417
 
3398
3418
  function sanitizeSvgInnerHtml$LWS(stringOrSvg$LWS, dirty$LWS = '') {
3399
- const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ? docRef$LWS : ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, stringOrSvg$LWS, []);
3419
+ const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ? document : ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, stringOrSvg$LWS, []);
3400
3420
  let container$LWS;
3401
3421
 
3402
3422
  if (typeof stringOrSvg$LWS === 'string') {
@@ -3420,25 +3440,27 @@ function sanitizeSvgTextReturnDOM$LWS(dirty$LWS) {
3420
3440
  const sanitizer$LWS = svgSanitizer$LWS();
3421
3441
  return sanitizer$LWS.sanitize(dirty$LWS);
3422
3442
  }
3423
- /*! version: 0.16.18 */
3443
+ /*! version: 0.16.23 */
3424
3444
 
3425
3445
  /*!
3426
3446
  * Copyright (C) 2019 salesforce.com, inc.
3427
3447
  */
3428
3448
  const CustomElementRegistryBlockedProperties$LWS = ObjectFreeze$LWS(['define']);
3429
- const globalObjectToDistortionData$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
3449
+ const documentToSandboxAttributeDistortionRegistry$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
3450
+ const recordToAttributeDistortionFactories$LWS = toSafeMap$LWS(new MapCtor$LWS());
3430
3451
 
3431
- function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attributeName$LWS, attributeNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
3432
- const distortionData$LWS = globalObjectToDistortionData$LWS.get(globalObject$LWS); // istanbul ignore if: currently unreachable via tests
3452
+ function getAttributeDistortion$LWS(record$LWS, element$LWS, attributeName$LWS, attributeNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
3453
+ const {
3454
+ document: document$LWS,
3455
+ key: key$LWS
3456
+ } = record$LWS;
3457
+ const sandboxAttributeDistortionRegistry$LWS = documentToSandboxAttributeDistortionRegistry$LWS.get(document$LWS); // istanbul ignore if: currently unreachable via tests
3433
3458
 
3434
- if (distortionData$LWS === undefined) {
3459
+ if (sandboxAttributeDistortionRegistry$LWS === undefined) {
3435
3460
  return undefined;
3436
3461
  }
3437
3462
 
3438
- const {
3439
- registry: attributeDistortionRegistryBySandboxKeyRegistry$LWS
3440
- } = distortionData$LWS;
3441
- const attributeDistortionRegistry$LWS = attributeDistortionRegistryBySandboxKeyRegistry$LWS[key$LWS]; // istanbul ignore if: currently unreachable via tests
3463
+ const attributeDistortionRegistry$LWS = sandboxAttributeDistortionRegistry$LWS[key$LWS]; // istanbul ignore if: currently unreachable via tests
3442
3464
 
3443
3465
  if (attributeDistortionRegistry$LWS === undefined) {
3444
3466
  return undefined;
@@ -3456,8 +3478,7 @@ function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attr
3456
3478
  return undefined;
3457
3479
  }
3458
3480
 
3459
- const mapIterator$LWS = elementCtorMap$LWS.entries(); // Using a restricted syntax to avoid accessing .next on iterator.
3460
- // eslint-disable-next-line no-restricted-syntax
3481
+ const mapIterator$LWS = elementCtorMap$LWS.entries();
3461
3482
 
3462
3483
  for (const {
3463
3484
  0: Ctor$LWS,
@@ -3473,31 +3494,43 @@ function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attr
3473
3494
  return undefined;
3474
3495
  }
3475
3496
 
3476
- function createAttributeDistortionsForSandboxKey$LWS(globalObject$LWS, key$LWS, entries$LWS = []) {
3477
- const distortionData$LWS = globalObjectToDistortionData$LWS.get(globalObject$LWS); // istanbul ignore else: currently unreachable via tests
3497
+ function createAttributeDistortions$LWS(record$LWS, entries$LWS = []) {
3498
+ const factories$LWS = recordToAttributeDistortionFactories$LWS.get(record$LWS); // istanbul ignore else: currently unreachable via tests
3478
3499
 
3479
- if (distortionData$LWS) {
3480
- const {
3481
- factories: factories$LWS,
3482
- registry: attributeDistortionRegistryBySandboxKeyRegistry$LWS
3483
- } = distortionData$LWS;
3484
- const attributeDistortionRegistry$LWS = {
3500
+ if (factories$LWS === undefined) {
3501
+ return entries$LWS;
3502
+ }
3503
+
3504
+ recordToAttributeDistortionFactories$LWS.delete(record$LWS);
3505
+ const {
3506
+ document: document$LWS,
3507
+ key: key$LWS
3508
+ } = record$LWS;
3509
+ let sandboxAttributeDistortionRegistry$LWS = documentToSandboxAttributeDistortionRegistry$LWS.get(document$LWS);
3510
+
3511
+ if (sandboxAttributeDistortionRegistry$LWS === undefined) {
3512
+ sandboxAttributeDistortionRegistry$LWS = {
3485
3513
  __proto__: null
3486
3514
  };
3487
- attributeDistortionRegistryBySandboxKeyRegistry$LWS[key$LWS] = attributeDistortionRegistry$LWS;
3488
- let {
3489
- length: entriesOffset$LWS
3490
- } = entries$LWS;
3515
+ documentToSandboxAttributeDistortionRegistry$LWS.set(document$LWS, sandboxAttributeDistortionRegistry$LWS);
3516
+ }
3491
3517
 
3492
- for (let i$LWS = 0, {
3493
- length: length$LWS
3494
- } = factories$LWS; i$LWS < length$LWS; i$LWS += 1) {
3495
- const factory$LWS = factories$LWS[i$LWS];
3496
- const entry$LWS = factory$LWS(attributeDistortionRegistry$LWS); // istanbul ignore if: currently unreachable via tests
3518
+ const attributeDistortionRegistry$LWS = {
3519
+ __proto__: null
3520
+ };
3521
+ sandboxAttributeDistortionRegistry$LWS[key$LWS] = attributeDistortionRegistry$LWS;
3522
+ let {
3523
+ length: entriesOffset$LWS
3524
+ } = entries$LWS;
3497
3525
 
3498
- if (entry$LWS) {
3499
- entries$LWS[entriesOffset$LWS++] = entry$LWS;
3500
- }
3526
+ for (let i$LWS = 0, {
3527
+ length: length$LWS
3528
+ } = factories$LWS; i$LWS < length$LWS; i$LWS += 1) {
3529
+ const factory$LWS = factories$LWS[i$LWS];
3530
+ const entry$LWS = factory$LWS(attributeDistortionRegistry$LWS); // istanbul ignore if: currently unreachable via tests
3531
+
3532
+ if (entry$LWS) {
3533
+ entries$LWS[entriesOffset$LWS++] = entry$LWS;
3501
3534
  }
3502
3535
  }
3503
3536
 
@@ -3511,23 +3544,15 @@ function normalizeNamespace$LWS(ns$LWS) {
3511
3544
  return ns$LWS === null || ns$LWS === undefined || ns$LWS === '' ? NAMESPACE_DEFAULT$LWS : ns$LWS;
3512
3545
  }
3513
3546
 
3514
- function registerElementSetDistortion$LWS(globalObject$LWS, ElementCtor$LWS, attributeName$LWS, attributeNamespace$LWS, distortion$LWS) {
3515
- let distortionData$LWS = globalObjectToDistortionData$LWS.get(globalObject$LWS);
3547
+ function registerElementSetDistortion$LWS(record$LWS, ElementCtor$LWS, attributeName$LWS, attributeNamespace$LWS, distortion$LWS) {
3548
+ let factories$LWS = recordToAttributeDistortionFactories$LWS.get(record$LWS);
3516
3549
 
3517
- if (distortionData$LWS === undefined) {
3518
- distortionData$LWS = {
3519
- factories: [],
3520
- registry: {
3521
- __proto__: null
3522
- }
3523
- };
3524
- globalObjectToDistortionData$LWS.set(globalObject$LWS, distortionData$LWS);
3550
+ if (factories$LWS === undefined) {
3551
+ factories$LWS = [];
3552
+ recordToAttributeDistortionFactories$LWS.set(record$LWS, factories$LWS);
3525
3553
  }
3526
3554
 
3527
3555
  const loweredAttributeName$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, attributeName$LWS, []);
3528
- const {
3529
- factories: factories$LWS
3530
- } = distortionData$LWS;
3531
3556
 
3532
3557
  factories$LWS[factories$LWS.length] = attributeDistortionRegistry$LWS => {
3533
3558
  let elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[loweredAttributeName$LWS];
@@ -3551,13 +3576,12 @@ function registerElementSetDistortion$LWS(globalObject$LWS, ElementCtor$LWS, att
3551
3576
  };
3552
3577
  }
3553
3578
 
3554
- function distortionAttrValueSetter$LWS(globalObject$LWS, options$LWS) {
3555
- const {
3556
- key: key$LWS
3557
- } = options$LWS;
3579
+ function distortionAttrValueSetter$LWS(record$LWS) {
3558
3580
  const {
3559
- Attr: Attr$LWS
3560
- } = globalObject$LWS;
3581
+ globalObject: {
3582
+ Attr: Attr$LWS
3583
+ }
3584
+ } = record$LWS;
3561
3585
  const originalAttrValueSetter$LWS = ObjectLookupOwnSetter$LWS(Attr$LWS.prototype, 'value');
3562
3586
 
3563
3587
  function value$LWS(val$LWS) {
@@ -3567,7 +3591,7 @@ function distortionAttrValueSetter$LWS(globalObject$LWS, options$LWS) {
3567
3591
  const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, this, []);
3568
3592
  const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, this, []);
3569
3593
  const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
3570
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, ownerElement$LWS, attrName$LWS, normalizedNamespace$LWS);
3594
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerElement$LWS, attrName$LWS, normalizedNamespace$LWS);
3571
3595
  /* istanbul ignore if: coverage missing, needs investigation */
3572
3596
 
3573
3597
  if (distortion$LWS) {
@@ -3582,24 +3606,26 @@ function distortionAttrValueSetter$LWS(globalObject$LWS, options$LWS) {
3582
3606
  return [originalAttrValueSetter$LWS, value$LWS];
3583
3607
  }
3584
3608
 
3585
- function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
3609
+ function distortionAuraUtilGlobalEval$LWS(record$LWS) {
3586
3610
  var _globalObject$aura$LWS, _globalObject$aura$ut$LWS;
3587
3611
 
3588
- // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
3612
+ // istanbul ignore next: external is the default sandbox type for coverage runs and this distortion is internal only
3613
+ const {
3614
+ UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
3615
+ globalObject: globalObject$LWS,
3616
+ sandboxEvaluator: sandboxEvaluator$LWS
3617
+ } = record$LWS; // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
3618
+
3589
3619
  const originalGlobalEval$LWS = (_globalObject$aura$LWS = globalObject$LWS.aura) == null ? void 0 : (_globalObject$aura$ut$LWS = _globalObject$aura$LWS.util) == null ? void 0 : _globalObject$aura$ut$LWS.globalEval; // istanbul ignore else: external is the default sandbox type for coverage runs
3590
3620
 
3591
3621
  if (typeof originalGlobalEval$LWS !== 'function') {
3592
3622
  return null;
3593
- } // istanbul ignore next: external is the default sandbox type for coverage runs and this distortion is internal only
3594
-
3595
-
3596
- const {
3597
- evaluator: evaluator$LWS
3598
- } = options$LWS; // Based on Aura.Utils.Util.prototype.globalEval from the aura/aura repository.
3623
+ } // Based on Aura.Utils.Util.prototype.globalEval from the aura/aura repository.
3599
3624
  // istanbul ignore next: external is the default sandbox type for coverage runs and this distortion is internal only
3600
3625
 
3601
- const globalEval$LWS = function globalEval$LWS(src$LWS, descriptor$LWS, type$LWS) {
3602
- let compiled$LWS = `(function s(){return(${src$LWS})})()`;
3626
+
3627
+ const globalEval$LWS = function globalEval$LWS(sourceText$LWS, descriptor$LWS, type$LWS) {
3628
+ let wrappedSourceText$LWS = `(function s(){return(${sourceText$LWS})})()`;
3603
3629
 
3604
3630
  if (typeof descriptor$LWS === 'string') {
3605
3631
  const split$LWS = ReflectApply$LWS(StringProtoSplit$LWS, descriptor$LWS, ['://']);
@@ -3607,10 +3633,10 @@ function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
3607
3633
  length: length$LWS
3608
3634
  } = split$LWS;
3609
3635
  const name$LWS = length$LWS ? split$LWS[split$LWS.length - 1] : '';
3610
- compiled$LWS += this.sourceComment + (type$LWS === 'lib' ? `/libraries/${ReflectApply$LWS(StringProtoReplace$LWS, name$LWS, ['.', '/'])}` : `/components/${ReflectApply$LWS(StringProtoReplace$LWS, name$LWS, [':', '/'])}.js`);
3636
+ wrappedSourceText$LWS += this.sourceComment + (type$LWS === 'lib' ? `/libraries/${ReflectApply$LWS(StringProtoReplace$LWS, name$LWS, ['.', '/'])}` : `/components/${ReflectApply$LWS(StringProtoReplace$LWS, name$LWS, [':', '/'])}.js`);
3611
3637
  }
3612
3638
 
3613
- return evaluator$LWS(compiled$LWS);
3639
+ return sandboxEvaluator$LWS(transformUncompiledSourceText$LWS(wrappedSourceText$LWS), UNCOMPILED_CONTEXT$LWS);
3614
3640
  }; // istanbul ignore next: external is the default sandbox type for coverage runs and this distortion is internal only
3615
3641
 
3616
3642
 
@@ -3619,12 +3645,15 @@ function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
3619
3645
  /* istanbul ignore next: only available in secure context */
3620
3646
 
3621
3647
 
3622
- function distortionCacheStorageDelete$LWS(globalObject$LWS, options$LWS) {
3648
+ function distortionCacheStorageDelete$LWS(record$LWS) {
3623
3649
  var _CacheStorage$prototy$LWS;
3624
3650
 
3625
3651
  const {
3626
- CacheStorage: CacheStorage$LWS
3627
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3652
+ globalObject: {
3653
+ CacheStorage: CacheStorage$LWS
3654
+ },
3655
+ key: key$LWS
3656
+ } = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3628
3657
 
3629
3658
  const originalDelete$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy$LWS.delete;
3630
3659
 
@@ -3632,10 +3661,6 @@ function distortionCacheStorageDelete$LWS(globalObject$LWS, options$LWS) {
3632
3661
  return null;
3633
3662
  }
3634
3663
 
3635
- const {
3636
- key: key$LWS
3637
- } = options$LWS;
3638
-
3639
3664
  const patchedDelete$LWS = function patchedDelete$LWS(...args$LWS) {
3640
3665
  if (args$LWS.length) {
3641
3666
  const {
@@ -3655,12 +3680,15 @@ function distortionCacheStorageDelete$LWS(globalObject$LWS, options$LWS) {
3655
3680
  /* istanbul ignore next: only available in secure context */
3656
3681
 
3657
3682
 
3658
- function distortionCacheStorageHas$LWS(globalObject$LWS, options$LWS) {
3683
+ function distortionCacheStorageHas$LWS(record$LWS) {
3659
3684
  var _CacheStorage$prototy2$LWS;
3660
3685
 
3661
3686
  const {
3662
- CacheStorage: CacheStorage$LWS
3663
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3687
+ globalObject: {
3688
+ CacheStorage: CacheStorage$LWS
3689
+ },
3690
+ key: key$LWS
3691
+ } = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3664
3692
 
3665
3693
  const originalHas$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy2$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy2$LWS.has;
3666
3694
 
@@ -3668,10 +3696,6 @@ function distortionCacheStorageHas$LWS(globalObject$LWS, options$LWS) {
3668
3696
  return null;
3669
3697
  }
3670
3698
 
3671
- const {
3672
- key: key$LWS
3673
- } = options$LWS;
3674
-
3675
3699
  const has$LWS = function has$LWS(...args$LWS) {
3676
3700
  if (args$LWS.length) {
3677
3701
  const {
@@ -3691,12 +3715,15 @@ function distortionCacheStorageHas$LWS(globalObject$LWS, options$LWS) {
3691
3715
  /* istanbul ignore next: only available in secure context */
3692
3716
 
3693
3717
 
3694
- function distortionCacheStorageKeys$LWS(globalObject$LWS, options$LWS) {
3718
+ function distortionCacheStorageKeys$LWS(record$LWS) {
3695
3719
  var _CacheStorage$prototy3$LWS;
3696
3720
 
3697
3721
  const {
3698
- CacheStorage: CacheStorage$LWS
3699
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3722
+ globalObject: {
3723
+ CacheStorage: CacheStorage$LWS
3724
+ },
3725
+ key: key$LWS
3726
+ } = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3700
3727
 
3701
3728
  const originalKeys$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy3$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy3$LWS.keys;
3702
3729
 
@@ -3704,10 +3731,6 @@ function distortionCacheStorageKeys$LWS(globalObject$LWS, options$LWS) {
3704
3731
  return null;
3705
3732
  }
3706
3733
 
3707
- const {
3708
- key: key$LWS
3709
- } = options$LWS;
3710
-
3711
3734
  const keys$LWS = function keys$LWS() {
3712
3735
  const keysResultPromise$LWS = ReflectApply$LWS(originalKeys$LWS, this, []);
3713
3736
  return ReflectApply$LWS(PromiseProtoThen$LWS, keysResultPromise$LWS, [result$LWS => {
@@ -3732,12 +3755,15 @@ function distortionCacheStorageKeys$LWS(globalObject$LWS, options$LWS) {
3732
3755
  /* istanbul ignore next: only available in secure context */
3733
3756
 
3734
3757
 
3735
- function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
3758
+ function distortionCacheStorageMatch$LWS(record$LWS) {
3736
3759
  var _CacheStorage$prototy4$LWS;
3737
3760
 
3738
3761
  const {
3739
- CacheStorage: CacheStorage$LWS
3740
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3762
+ globalObject: {
3763
+ CacheStorage: CacheStorage$LWS
3764
+ },
3765
+ key: key$LWS
3766
+ } = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3741
3767
 
3742
3768
  const originalMatch$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy4$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy4$LWS.match;
3743
3769
 
@@ -3745,10 +3771,6 @@ function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
3745
3771
  return null;
3746
3772
  }
3747
3773
 
3748
- const {
3749
- key: key$LWS
3750
- } = options$LWS;
3751
-
3752
3774
  const match$LWS = function match$LWS( // @ts-ignore: Prevent 'TS1003: Identifier expected' error.
3753
3775
  ...args$LWS) {
3754
3776
  const {
@@ -3770,7 +3792,7 @@ function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
3770
3792
  } = matchOptions$LWS;
3771
3793
 
3772
3794
  if (isConvertibleToString$LWS(cacheName$LWS)) {
3773
- const clonedOptions$LWS = shallowCloneOptions$LWS(options$LWS);
3795
+ const clonedOptions$LWS = shallowCloneOptions$LWS(matchOptions$LWS);
3774
3796
  clonedOptions$LWS.cacheName = prefixNamespace$LWS(cacheName$LWS, key$LWS);
3775
3797
  args$LWS[1] = clonedOptions$LWS;
3776
3798
  return ReflectApply$LWS(originalMatch$LWS, this, args$LWS);
@@ -3785,12 +3807,15 @@ function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
3785
3807
  /* istanbul ignore next: only available in secure context */
3786
3808
 
3787
3809
 
3788
- function distortionCacheStorageOpen$LWS(globalObject$LWS, options$LWS) {
3810
+ function distortionCacheStorageOpen$LWS(record$LWS) {
3789
3811
  var _CacheStorage$prototy5$LWS;
3790
3812
 
3791
3813
  const {
3792
- CacheStorage: CacheStorage$LWS
3793
- } = globalObject$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3814
+ globalObject: {
3815
+ CacheStorage: CacheStorage$LWS
3816
+ },
3817
+ key: key$LWS
3818
+ } = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
3794
3819
 
3795
3820
  const originalOpen$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy5$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy5$LWS.open;
3796
3821
 
@@ -3798,10 +3823,6 @@ function distortionCacheStorageOpen$LWS(globalObject$LWS, options$LWS) {
3798
3823
  return null;
3799
3824
  }
3800
3825
 
3801
- const {
3802
- key: key$LWS
3803
- } = options$LWS;
3804
-
3805
3826
  const open$LWS = function open$LWS(...args$LWS) {
3806
3827
  if (args$LWS.length) {
3807
3828
  const {
@@ -3852,22 +3873,21 @@ function unprefixCookie$LWS(cookieEntry$LWS, key$LWS) {
3852
3873
  /* istanbul ignore next: only available in secure context */
3853
3874
 
3854
3875
 
3855
- function distortionCookieStoreDelete$LWS(globalObject$LWS, options$LWS) {
3876
+ function distortionCookieStoreDelete$LWS(record$LWS) {
3856
3877
  var _CookieStore$prototyp$LWS;
3857
3878
 
3858
3879
  const {
3859
- CookieStore: CookieStore$LWS
3860
- } = globalObject$LWS;
3880
+ globalObject: {
3881
+ CookieStore: CookieStore$LWS
3882
+ },
3883
+ key: key$LWS
3884
+ } = record$LWS;
3861
3885
  const originalDelete$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp$LWS.delete;
3862
3886
 
3863
3887
  if (typeof originalDelete$LWS !== 'function') {
3864
3888
  return null;
3865
3889
  }
3866
3890
 
3867
- const {
3868
- key: key$LWS
3869
- } = options$LWS;
3870
-
3871
3891
  const deleteValue$LWS = function deleteValue$LWS(...args$LWS) {
3872
3892
  const detailsOrName$LWS = args$LWS.length ? args$LWS[0] : undefined;
3873
3893
 
@@ -3883,22 +3903,21 @@ function distortionCookieStoreDelete$LWS(globalObject$LWS, options$LWS) {
3883
3903
  /* istanbul ignore next: only available in secure context */
3884
3904
 
3885
3905
 
3886
- function distortionCookieStoreGet$LWS(globalObject$LWS, options$LWS) {
3906
+ function distortionCookieStoreGet$LWS(record$LWS) {
3887
3907
  var _CookieStore$prototyp2$LWS;
3888
3908
 
3889
3909
  const {
3890
- CookieStore: CookieStore$LWS
3891
- } = globalObject$LWS;
3910
+ globalObject: {
3911
+ CookieStore: CookieStore$LWS
3912
+ },
3913
+ key: key$LWS
3914
+ } = record$LWS;
3892
3915
  const originalGet$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp2$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp2$LWS.get;
3893
3916
 
3894
3917
  if (typeof originalGet$LWS !== 'function') {
3895
3918
  return null;
3896
3919
  }
3897
3920
 
3898
- const {
3899
- key: key$LWS
3900
- } = options$LWS;
3901
-
3902
3921
  const get$LWS = function get$LWS(...args$LWS) {
3903
3922
  const detailsOrName$LWS = args$LWS.length ? args$LWS[0] : undefined;
3904
3923
 
@@ -3928,22 +3947,21 @@ function distortionCookieStoreGet$LWS(globalObject$LWS, options$LWS) {
3928
3947
  /* istanbul ignore next: only available in secure context */
3929
3948
 
3930
3949
 
3931
- function distortionCookieStoreGetAll$LWS(globalObject$LWS, options$LWS) {
3950
+ function distortionCookieStoreGetAll$LWS(record$LWS) {
3932
3951
  var _CookieStore$prototyp3$LWS;
3933
3952
 
3934
3953
  const {
3935
- CookieStore: CookieStore$LWS
3936
- } = globalObject$LWS;
3954
+ globalObject: {
3955
+ CookieStore: CookieStore$LWS
3956
+ },
3957
+ key: key$LWS
3958
+ } = record$LWS;
3937
3959
  const originalGetAll$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp3$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp3$LWS.getAll;
3938
3960
 
3939
3961
  if (typeof originalGetAll$LWS !== 'function') {
3940
3962
  return null;
3941
3963
  }
3942
3964
 
3943
- const {
3944
- key: key$LWS
3945
- } = options$LWS;
3946
-
3947
3965
  const getAll$LWS = function getAll$LWS(...args$LWS) {
3948
3966
  const detailsOrName$LWS = args$LWS.length ? args$LWS[0] : undefined;
3949
3967
 
@@ -3984,7 +4002,10 @@ const restrictedEventTargetRegistryBySandboxKeyRegistry$LWS = {
3984
4002
  __proto__: null
3985
4003
  };
3986
4004
 
3987
- function isEventTargetRestricted$LWS(eventTarget$LWS, eventName$LWS, key$LWS) {
4005
+ function isEventTargetRestricted$LWS(record$LWS, eventTarget$LWS, eventName$LWS) {
4006
+ const {
4007
+ key: key$LWS
4008
+ } = record$LWS;
3988
4009
  const {
3989
4010
  [key$LWS]: restrictedEventTargetRegistry$LWS
3990
4011
  } = restrictedEventTargetRegistryBySandboxKeyRegistry$LWS;
@@ -3996,18 +4017,21 @@ function isEventTargetRestricted$LWS(eventTarget$LWS, eventName$LWS, key$LWS) {
3996
4017
  return restrictedEventTargetRegistry$LWS[eventName$LWS].has(eventTarget$LWS.constructor);
3997
4018
  }
3998
4019
 
3999
- function registerEventTargetRestriction$LWS(EventTargetCtor$LWS, eventName$LWS, key$LWS) {
4000
- if (isEventTargetRestricted$LWS(EventTargetCtor$LWS.prototype, eventName$LWS, key$LWS)) {
4020
+ function registerEventTargetRestriction$LWS(record$LWS, EventTargetCtor$LWS, eventName$LWS) {
4021
+ if (isEventTargetRestricted$LWS(record$LWS, EventTargetCtor$LWS.prototype, eventName$LWS)) {
4001
4022
  return;
4002
4023
  }
4003
4024
 
4025
+ const {
4026
+ key: key$LWS
4027
+ } = record$LWS;
4004
4028
  const {
4005
4029
  [key$LWS]: restrictedEventTargetRegistry$LWS = {
4006
4030
  __proto__: null
4007
4031
  }
4008
4032
  } = restrictedEventTargetRegistryBySandboxKeyRegistry$LWS;
4009
4033
  const {
4010
- [eventName$LWS]: restrictedEventTargetCtors$LWS = toSafeSet$LWS(new SetCtor$LWS())
4034
+ [eventName$LWS]: restrictedEventTargetCtors$LWS = toSafeWeakSet$LWS(new WeakSetCtor$LWS())
4011
4035
  } = restrictedEventTargetRegistry$LWS;
4012
4036
  restrictedEventTargetCtors$LWS.add(EventTargetCtor$LWS);
4013
4037
  restrictedEventTargetRegistry$LWS[eventName$LWS] = restrictedEventTargetCtors$LWS;
@@ -4016,13 +4040,12 @@ function registerEventTargetRestriction$LWS(EventTargetCtor$LWS, eventName$LWS,
4016
4040
  /* istanbul ignore next: only available in secure context */
4017
4041
 
4018
4042
 
4019
- function distortionCookieStoreOnChange$LWS(globalObject$LWS, options$LWS) {
4020
- const {
4021
- key: key$LWS
4022
- } = options$LWS;
4043
+ function distortionCookieStoreOnChange$LWS(record$LWS) {
4023
4044
  const {
4024
- CookieStore: CookieStore$LWS
4025
- } = globalObject$LWS;
4045
+ globalObject: {
4046
+ CookieStore: CookieStore$LWS
4047
+ }
4048
+ } = record$LWS;
4026
4049
  const originalOnChangeSetter$LWS = ObjectLookupOwnSetter$LWS(CookieStore$LWS == null ? void 0 : CookieStore$LWS.prototype, 'onchange');
4027
4050
 
4028
4051
  if (typeof originalOnChangeSetter$LWS !== 'function') {
@@ -4033,38 +4056,34 @@ function distortionCookieStoreOnChange$LWS(globalObject$LWS, options$LWS) {
4033
4056
  throw new LockerSecurityError$LWS('Cannot set cookieStore.onchange.');
4034
4057
  };
4035
4058
 
4036
- registerEventTargetRestriction$LWS(CookieStore$LWS, 'change', key$LWS);
4059
+ registerEventTargetRestriction$LWS(record$LWS, CookieStore$LWS, 'change');
4037
4060
  return [originalOnChangeSetter$LWS, onchange$LWS];
4038
4061
  }
4039
4062
  /* istanbul ignore next: only available in secure context */
4040
4063
 
4041
4064
 
4042
- function distortionCookieStoreSet$LWS(globalObject$LWS, options$LWS) {
4065
+ function distortionCookieStoreSet$LWS(record$LWS) {
4043
4066
  var _CookieStore$prototyp4$LWS;
4044
4067
 
4045
4068
  const {
4046
- CookieStore: CookieStore$LWS
4047
- } = globalObject$LWS;
4069
+ globalObject: {
4070
+ CookieStore: CookieStore$LWS
4071
+ },
4072
+ key: key$LWS
4073
+ } = record$LWS;
4048
4074
  const originalSet$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp4$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp4$LWS.set;
4049
4075
 
4050
4076
  if (typeof originalSet$LWS !== 'function') {
4051
4077
  return null;
4052
4078
  }
4053
4079
 
4054
- const {
4055
- key: key$LWS
4056
- } = options$LWS;
4057
-
4058
4080
  const set$LWS = function set$LWS(...args$LWS) {
4059
4081
  const {
4060
4082
  length: length$LWS
4061
4083
  } = args$LWS;
4062
4084
 
4063
4085
  if (length$LWS > 1) {
4064
- const {
4065
- 0: name$LWS
4066
- } = args$LWS;
4067
- args$LWS[0] = prefixNamespace$LWS(name$LWS, key$LWS);
4086
+ args$LWS[0] = prefixNamespace$LWS(args$LWS[0], key$LWS);
4068
4087
  } else if (length$LWS) {
4069
4088
  const {
4070
4089
  0: details$LWS
@@ -4083,10 +4102,12 @@ function distortionCookieStoreSet$LWS(globalObject$LWS, options$LWS) {
4083
4102
  return [originalSet$LWS, set$LWS];
4084
4103
  }
4085
4104
 
4086
- function distortionCSSStyleRuleStyleGetter$LWS(globalObject$LWS) {
4105
+ function distortionCSSStyleRuleStyleGetter$LWS(record$LWS) {
4087
4106
  const {
4088
- CSSStyleRule: CSSStyleRule$LWS
4089
- } = globalObject$LWS;
4107
+ globalObject: {
4108
+ CSSStyleRule: CSSStyleRule$LWS
4109
+ }
4110
+ } = record$LWS;
4090
4111
  const originalStyleGetter$LWS = ObjectLookupOwnGetter$LWS(CSSStyleRule$LWS.prototype, 'style');
4091
4112
 
4092
4113
  function style$LWS() {
@@ -4096,15 +4117,15 @@ function distortionCSSStyleRuleStyleGetter$LWS(globalObject$LWS) {
4096
4117
  return [originalStyleGetter$LWS, style$LWS];
4097
4118
  }
4098
4119
 
4099
- function distortionCustomElementRegistryGet$LWS(globalObject$LWS, options$LWS) {
4120
+ function distortionCustomElementRegistryGet$LWS(record$LWS) {
4100
4121
  var _CustomElementRegistr$LWS;
4101
4122
 
4102
4123
  const {
4124
+ globalObject: {
4125
+ CustomElementRegistry: CustomElementRegistry$LWS
4126
+ },
4103
4127
  key: key$LWS
4104
- } = options$LWS;
4105
- const {
4106
- CustomElementRegistry: CustomElementRegistry$LWS
4107
- } = globalObject$LWS;
4128
+ } = record$LWS;
4108
4129
  const LOWERED_NS$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, key$LWS, []); // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
4109
4130
 
4110
4131
  const originalGet$LWS = CustomElementRegistry$LWS == null ? void 0 : (_CustomElementRegistr$LWS = CustomElementRegistry$LWS.prototype) == null ? void 0 : _CustomElementRegistr$LWS.get; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
@@ -4139,13 +4160,13 @@ function distortionCustomElementRegistryGet$LWS(globalObject$LWS, options$LWS) {
4139
4160
  */
4140
4161
 
4141
4162
 
4142
- function distortionDocumentCookieGetter$LWS(globalObject$LWS, options$LWS) {
4163
+ function distortionDocumentCookieGetter$LWS(record$LWS) {
4143
4164
  const {
4165
+ globalObject: {
4166
+ Document: Document$LWS
4167
+ },
4144
4168
  key: key$LWS
4145
- } = options$LWS;
4146
- const {
4147
- Document: Document$LWS
4148
- } = globalObject$LWS;
4169
+ } = record$LWS;
4149
4170
  const originalCookieGetter$LWS = ObjectLookupOwnGetter$LWS(Document$LWS.prototype, 'cookie');
4150
4171
 
4151
4172
  function get$LWS() {
@@ -4175,13 +4196,13 @@ function distortionDocumentCookieGetter$LWS(globalObject$LWS, options$LWS) {
4175
4196
  */
4176
4197
 
4177
4198
 
4178
- function distortionDocumentCookieSetter$LWS(globalObject$LWS, options$LWS) {
4199
+ function distortionDocumentCookieSetter$LWS(record$LWS) {
4179
4200
  const {
4201
+ globalObject: {
4202
+ Document: Document$LWS
4203
+ },
4180
4204
  key: key$LWS
4181
- } = options$LWS;
4182
- const {
4183
- Document: Document$LWS
4184
- } = globalObject$LWS;
4205
+ } = record$LWS;
4185
4206
  const originalCookieSetter$LWS = ObjectLookupOwnSetter$LWS(Document$LWS.prototype, 'cookie');
4186
4207
 
4187
4208
  function set$LWS(value$LWS) {
@@ -4202,10 +4223,12 @@ function distortionDocumentCookieSetter$LWS(globalObject$LWS, options$LWS) {
4202
4223
  return [originalCookieSetter$LWS, set$LWS];
4203
4224
  }
4204
4225
 
4205
- function distortionDocumentDomainSetter$LWS(globalObject$LWS) {
4226
+ function distortionDocumentDomainSetter$LWS(record$LWS) {
4206
4227
  const {
4207
- Document: Document$LWS
4208
- } = globalObject$LWS;
4228
+ globalObject: {
4229
+ Document: Document$LWS
4230
+ }
4231
+ } = record$LWS;
4209
4232
  const originalDomainSetter$LWS = ObjectLookupOwnSetter$LWS(Document$LWS.prototype, 'domain');
4210
4233
 
4211
4234
  function domain$LWS() {
@@ -4213,23 +4236,16 @@ function distortionDocumentDomainSetter$LWS(globalObject$LWS) {
4213
4236
  }
4214
4237
 
4215
4238
  return [originalDomainSetter$LWS, domain$LWS];
4216
- } // eslint-disable-next-line no-shadow
4217
-
4218
-
4219
- var SandboxType$LWS;
4220
-
4221
- (function (SandboxType$LWS) {
4222
- SandboxType$LWS[SandboxType$LWS["External"] = 0] = "External";
4223
- SandboxType$LWS[SandboxType$LWS["Internal"] = 1] = "Internal";
4224
- })(SandboxType$LWS || (SandboxType$LWS = {}));
4225
-
4226
- ReflectSetPrototypeOf$LWS(SandboxType$LWS, null);
4239
+ }
4227
4240
 
4228
- function distortionDocumentExecCommand$LWS(globalObject$LWS, options$LWS) {
4241
+ function distortionDocumentExecCommand$LWS(record$LWS) {
4229
4242
  const {
4230
- Document: Document$LWS,
4231
- HTMLElement: HTMLElement$LWS
4232
- } = globalObject$LWS;
4243
+ globalObject: {
4244
+ Document: Document$LWS,
4245
+ HTMLElement: HTMLElement$LWS
4246
+ },
4247
+ type: type$LWS
4248
+ } = record$LWS;
4233
4249
  const {
4234
4250
  prototype: DocumentProto$LWS
4235
4251
  } = Document$LWS;
@@ -4246,10 +4262,7 @@ function distortionDocumentExecCommand$LWS(globalObject$LWS, options$LWS) {
4246
4262
 
4247
4263
  const {
4248
4264
  isSharedElement: isSharedElement$LWS
4249
- } = getValidator$LWS(window);
4250
- const {
4251
- sandboxType: sandboxType$LWS
4252
- } = options$LWS;
4265
+ } = getValidator$LWS(record$LWS.top);
4253
4266
 
4254
4267
  function execCommand$LWS(...args$LWS) {
4255
4268
  if (args$LWS.length > 2) {
@@ -4262,7 +4275,9 @@ function distortionDocumentExecCommand$LWS(globalObject$LWS, options$LWS) {
4262
4275
 
4263
4276
  if (ReflectApply$LWS(StringProtoToLowerCase$LWS, command$LWS, []) === 'inserthtml') {
4264
4277
  // istanbul ignore else: external is the default sandbox type for coverage runs
4265
- if (sandboxType$LWS === SandboxType$LWS.External) {
4278
+ if (type$LWS === 0
4279
+ /* External */
4280
+ ) {
4266
4281
  const activeElement$LWS = ReflectApply$LWS(originalActiveElement$LWS, this, []);
4267
4282
 
4268
4283
  if (isSharedElement$LWS(activeElement$LWS) && ReflectApply$LWS(originalIsContentEditable$LWS, activeElement$LWS, [])) {
@@ -4314,10 +4329,12 @@ function sanitizeWindowOpenArguments$LWS(args$LWS) {
4314
4329
  return sanitizedArgs$LWS;
4315
4330
  }
4316
4331
 
4317
- function distortionDocumentOpen$LWS(globalObject$LWS) {
4332
+ function distortionDocumentOpen$LWS(record$LWS) {
4318
4333
  const {
4319
- Document: Document$LWS
4320
- } = globalObject$LWS;
4334
+ globalObject: {
4335
+ Document: Document$LWS
4336
+ }
4337
+ } = record$LWS;
4321
4338
  const {
4322
4339
  open: originalDocumentOpen$LWS
4323
4340
  } = Document$LWS.prototype;
@@ -4338,10 +4355,12 @@ function distortionDocumentOpen$LWS(globalObject$LWS) {
4338
4355
  return [originalDocumentOpen$LWS, open$LWS];
4339
4356
  }
4340
4357
 
4341
- function distortionDocumentReplaceChildren$LWS(globalObject$LWS) {
4358
+ function distortionDocumentReplaceChildren$LWS(record$LWS) {
4342
4359
  const {
4343
- Document: Document$LWS
4344
- } = globalObject$LWS;
4360
+ globalObject: {
4361
+ Document: Document$LWS
4362
+ }
4363
+ } = record$LWS;
4345
4364
  const {
4346
4365
  replaceChildren: originalReplaceChild$LWS
4347
4366
  } = Document$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4353,7 +4372,7 @@ function distortionDocumentReplaceChildren$LWS(globalObject$LWS) {
4353
4372
 
4354
4373
  const {
4355
4374
  isSharedElement: isSharedElement$LWS
4356
- } = getValidator$LWS(window);
4375
+ } = getValidator$LWS(record$LWS.top);
4357
4376
 
4358
4377
  function replaceChildren$LWS(...args$LWS) {
4359
4378
  // To figure out if "this" is the top level document, we can check if
@@ -4371,10 +4390,12 @@ function distortionDocumentReplaceChildren$LWS(globalObject$LWS) {
4371
4390
  return [originalReplaceChild$LWS, replaceChildren$LWS];
4372
4391
  }
4373
4392
 
4374
- function distortionDOMParserParseFromString$LWS(globalObject$LWS) {
4393
+ function distortionDOMParserParseFromString$LWS(record$LWS) {
4375
4394
  const {
4376
- DOMParser: DOMParser$LWS
4377
- } = globalObject$LWS;
4395
+ globalObject: {
4396
+ DOMParser: DOMParser$LWS
4397
+ }
4398
+ } = record$LWS;
4378
4399
  const {
4379
4400
  parseFromString: originalParseFromString$LWS
4380
4401
  } = DOMParser$LWS.prototype;
@@ -4405,11 +4426,13 @@ function distortionDOMParserParseFromString$LWS(globalObject$LWS) {
4405
4426
  return [originalParseFromString$LWS, parseFromString$LWS];
4406
4427
  }
4407
4428
 
4408
- function distortionElementAfter$LWS(globalObject$LWS) {
4429
+ function distortionElementAfter$LWS(record$LWS) {
4409
4430
  const {
4410
- Element: Element$LWS,
4411
- Node: Node$LWS
4412
- } = globalObject$LWS;
4431
+ globalObject: {
4432
+ Element: Element$LWS,
4433
+ Node: Node$LWS
4434
+ }
4435
+ } = record$LWS;
4413
4436
  const {
4414
4437
  after: originalAfter$LWS
4415
4438
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4422,7 +4445,7 @@ function distortionElementAfter$LWS(globalObject$LWS) {
4422
4445
  const {
4423
4446
  isSharedElement: isSharedElement$LWS,
4424
4447
  isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
4425
- } = getValidator$LWS(window);
4448
+ } = getValidator$LWS(record$LWS.top);
4426
4449
 
4427
4450
  function after$LWS(...args$LWS) {
4428
4451
  // istanbul ignore else: needs default platform behavior test
@@ -4447,11 +4470,13 @@ function distortionElementAfter$LWS(globalObject$LWS) {
4447
4470
  return [originalAfter$LWS, after$LWS];
4448
4471
  }
4449
4472
 
4450
- function distortionElementAppend$LWS(globalObject$LWS) {
4473
+ function distortionElementAppend$LWS(record$LWS) {
4451
4474
  const {
4452
- Element: Element$LWS,
4453
- Node: Node$LWS
4454
- } = globalObject$LWS;
4475
+ globalObject: {
4476
+ Element: Element$LWS,
4477
+ Node: Node$LWS
4478
+ }
4479
+ } = record$LWS;
4455
4480
  const {
4456
4481
  append: originalAppend$LWS
4457
4482
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4464,7 +4489,7 @@ function distortionElementAppend$LWS(globalObject$LWS) {
4464
4489
  const {
4465
4490
  isSharedElement: isSharedElement$LWS,
4466
4491
  isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
4467
- } = getValidator$LWS(window);
4492
+ } = getValidator$LWS(record$LWS.top);
4468
4493
 
4469
4494
  function append$LWS(...args$LWS) {
4470
4495
  // istanbul ignore else: needs default platform behavior test
@@ -4492,10 +4517,12 @@ function distortionElementAppend$LWS(globalObject$LWS) {
4492
4517
  return [originalAppend$LWS, append$LWS];
4493
4518
  }
4494
4519
 
4495
- function distortionElementAttachShadow$LWS(globalObject$LWS) {
4520
+ function distortionElementAttachShadow$LWS(record$LWS) {
4496
4521
  const {
4497
- Element: Element$LWS
4498
- } = globalObject$LWS;
4522
+ globalObject: {
4523
+ Element: Element$LWS
4524
+ }
4525
+ } = record$LWS;
4499
4526
  const {
4500
4527
  attachShadow: originalAttachShadow$LWS
4501
4528
  } = Element$LWS.prototype;
@@ -4544,14 +4571,14 @@ function pairElement$LWS(attrInstance$LWS, element$LWS) {
4544
4571
  namedNodeMapToElementRegistry$LWS.set(attrInstance$LWS, element$LWS);
4545
4572
  }
4546
4573
 
4547
- function setNamedItemWithAttr$LWS(globalObject$LWS, key$LWS, originalMethod$LWS, nodeNameMap$LWS, attr$LWS) {
4574
+ function setNamedItemWithAttr$LWS(record$LWS, originalMethod$LWS, nodeNameMap$LWS, attr$LWS) {
4548
4575
  const element$LWS = namedNodeMapToElementRegistry$LWS.get(nodeNameMap$LWS); // istanbul ignore else: nothing to do if there's no element
4549
4576
 
4550
4577
  if (element$LWS) {
4551
4578
  const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, attr$LWS, []);
4552
4579
  const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, attr$LWS, []);
4553
4580
  const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
4554
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: nothing to do if there's no distortion
4581
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, element$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: nothing to do if there's no distortion
4555
4582
 
4556
4583
  if (distortion$LWS) {
4557
4584
  const attrValue$LWS = ReflectApply$LWS(AttrProtoValueGetter$LWS, attr$LWS, []);
@@ -4563,10 +4590,12 @@ function setNamedItemWithAttr$LWS(globalObject$LWS, key$LWS, originalMethod$LWS,
4563
4590
  return ReflectApply$LWS(originalMethod$LWS, nodeNameMap$LWS, [attr$LWS]);
4564
4591
  }
4565
4592
 
4566
- function distortionElementAttributesGetter$LWS(globalObject$LWS) {
4593
+ function distortionElementAttributesGetter$LWS(record$LWS) {
4567
4594
  const {
4568
- Element: Element$LWS
4569
- } = globalObject$LWS;
4595
+ globalObject: {
4596
+ Element: Element$LWS
4597
+ }
4598
+ } = record$LWS;
4570
4599
  const originalAttributesGetter$LWS = ObjectLookupOwnGetter$LWS(Element$LWS.prototype, 'attributes');
4571
4600
 
4572
4601
  function attributes$LWS() {
@@ -4578,11 +4607,13 @@ function distortionElementAttributesGetter$LWS(globalObject$LWS) {
4578
4607
  return [originalAttributesGetter$LWS, attributes$LWS];
4579
4608
  }
4580
4609
 
4581
- function distortionElementBefore$LWS(globalObject$LWS) {
4610
+ function distortionElementBefore$LWS(record$LWS) {
4582
4611
  const {
4583
- Element: Element$LWS,
4584
- Node: Node$LWS
4585
- } = globalObject$LWS;
4612
+ globalObject: {
4613
+ Element: Element$LWS,
4614
+ Node: Node$LWS
4615
+ }
4616
+ } = record$LWS;
4586
4617
  const {
4587
4618
  before: originalBefore$LWS
4588
4619
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4595,7 +4626,7 @@ function distortionElementBefore$LWS(globalObject$LWS) {
4595
4626
  const {
4596
4627
  isSharedElement: isSharedElement$LWS,
4597
4628
  isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
4598
- } = getValidator$LWS(window);
4629
+ } = getValidator$LWS(record$LWS.top);
4599
4630
 
4600
4631
  function before$LWS(...args$LWS) {
4601
4632
  // istanbul ignore else: needs default platform behavior test
@@ -4620,11 +4651,14 @@ function distortionElementBefore$LWS(globalObject$LWS) {
4620
4651
  return [originalBefore$LWS, before$LWS];
4621
4652
  }
4622
4653
 
4623
- function distortionElementInnerHTMLSetter$LWS(globalObject$LWS) {
4654
+ function distortionElementInnerHTMLSetter$LWS(record$LWS) {
4624
4655
  const {
4625
- Element: Element$LWS,
4626
- SVGElement: SVGElement$LWS
4627
- } = globalObject$LWS;
4656
+ globalObject: {
4657
+ Element: Element$LWS,
4658
+ SVGElement: SVGElement$LWS,
4659
+ XMLDocument: XMLDocument$LWS
4660
+ }
4661
+ } = record$LWS;
4628
4662
  const originalInnerHTMLSetter$LWS = ObjectLookupOwnSetter$LWS(Element$LWS.prototype, 'innerHTML'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4629
4663
  // "globalObject" because magenta objects (arbitrary user-code created global objects)
4630
4664
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
@@ -4634,25 +4668,32 @@ function distortionElementInnerHTMLSetter$LWS(globalObject$LWS) {
4634
4668
 
4635
4669
  const {
4636
4670
  isSharedElement: isSharedElement$LWS
4637
- } = getValidator$LWS(window);
4671
+ } = getValidator$LWS(record$LWS.top);
4638
4672
 
4639
4673
  function innerHTML$LWS(value$LWS) {
4640
- // istanbul ignore else: needs default platform behavior test
4641
- if (isSharedElement$LWS(this)) {
4642
- throw new LockerSecurityError$LWS(`Cannot set innerHTML of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, [])}.`);
4674
+ const isOwnerXMLDocument$LWS = ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, this, []) instanceof XMLDocument$LWS;
4675
+
4676
+ if (!isOwnerXMLDocument$LWS) {
4677
+ // istanbul ignore else: needs default platform behavior test
4678
+ if (isSharedElement$LWS(this)) {
4679
+ throw new LockerSecurityError$LWS(`Cannot set innerHTML of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, [])}.`);
4680
+ }
4681
+
4682
+ value$LWS = this instanceof SVGElement$LWS ? sanitizeSvgInnerHtml$LWS(this, value$LWS) : sanitize$LWS(value$LWS);
4643
4683
  }
4644
4684
 
4645
- const sanitizedValue$LWS = this instanceof SVGElement$LWS ? sanitizeSvgInnerHtml$LWS(this, value$LWS) : sanitize$LWS(value$LWS);
4646
- ReflectApply$LWS(originalInnerHTMLSetter$LWS, this, [sanitizedValue$LWS]);
4685
+ ReflectApply$LWS(originalInnerHTMLSetter$LWS, this, [value$LWS]);
4647
4686
  }
4648
4687
 
4649
4688
  return [originalInnerHTMLSetter$LWS, innerHTML$LWS];
4650
4689
  }
4651
4690
 
4652
- function distortionElementInsertAdjacentElement$LWS(globalObject$LWS) {
4691
+ function distortionElementInsertAdjacentElement$LWS(record$LWS) {
4653
4692
  const {
4654
- Element: Element$LWS
4655
- } = globalObject$LWS;
4693
+ globalObject: {
4694
+ Element: Element$LWS
4695
+ }
4696
+ } = record$LWS;
4656
4697
  const {
4657
4698
  insertAdjacentElement: originalInsertAdjacentElement$LWS
4658
4699
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4665,7 +4706,7 @@ function distortionElementInsertAdjacentElement$LWS(globalObject$LWS) {
4665
4706
  const {
4666
4707
  isSharedElement: isSharedElement$LWS,
4667
4708
  isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
4668
- } = getValidator$LWS(window);
4709
+ } = getValidator$LWS(record$LWS.top);
4669
4710
 
4670
4711
  function insertAdjacentElement$LWS(...args$LWS) {
4671
4712
  // istanbul ignore else: needs default platform behavior test
@@ -4685,10 +4726,12 @@ function distortionElementInsertAdjacentElement$LWS(globalObject$LWS) {
4685
4726
  return [originalInsertAdjacentElement$LWS, insertAdjacentElement$LWS];
4686
4727
  }
4687
4728
 
4688
- function distortionElementInsertAdjacentHTML$LWS(globalObject$LWS) {
4729
+ function distortionElementInsertAdjacentHTML$LWS(record$LWS) {
4689
4730
  const {
4690
- Element: Element$LWS
4691
- } = globalObject$LWS;
4731
+ globalObject: {
4732
+ Element: Element$LWS
4733
+ }
4734
+ } = record$LWS;
4692
4735
  const {
4693
4736
  insertAdjacentHTML: originalInsertAdjacentHTML$LWS
4694
4737
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4700,7 +4743,7 @@ function distortionElementInsertAdjacentHTML$LWS(globalObject$LWS) {
4700
4743
 
4701
4744
  const {
4702
4745
  isSharedElement: isSharedElement$LWS
4703
- } = getValidator$LWS(window);
4746
+ } = getValidator$LWS(record$LWS.top);
4704
4747
 
4705
4748
  function insertAdjacentHTML$LWS(...args$LWS) {
4706
4749
  if (isSharedElement$LWS(this)) {
@@ -4718,10 +4761,12 @@ function distortionElementInsertAdjacentHTML$LWS(globalObject$LWS) {
4718
4761
  return [originalInsertAdjacentHTML$LWS, insertAdjacentHTML$LWS];
4719
4762
  }
4720
4763
 
4721
- function distortionElementOuterHTMLSetter$LWS(globalObject$LWS) {
4764
+ function distortionElementOuterHTMLSetter$LWS(record$LWS) {
4722
4765
  const {
4723
- Element: Element$LWS
4724
- } = globalObject$LWS;
4766
+ globalObject: {
4767
+ Element: Element$LWS
4768
+ }
4769
+ } = record$LWS;
4725
4770
  const originalOuterHTMLSetter$LWS = ObjectLookupOwnSetter$LWS(Element$LWS.prototype, 'outerHTML'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
4726
4771
  // "globalObject" because future magenta objects (arbitrary user-code created global objects)
4727
4772
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
@@ -4731,7 +4776,7 @@ function distortionElementOuterHTMLSetter$LWS(globalObject$LWS) {
4731
4776
 
4732
4777
  const {
4733
4778
  isSharedElement: isSharedElement$LWS
4734
- } = getValidator$LWS(window);
4779
+ } = getValidator$LWS(record$LWS.top);
4735
4780
 
4736
4781
  function outerHTML$LWS(value$LWS) {
4737
4782
  // istanbul ignore else: needs default platform behavior test
@@ -4745,11 +4790,13 @@ function distortionElementOuterHTMLSetter$LWS(globalObject$LWS) {
4745
4790
  return [originalOuterHTMLSetter$LWS, outerHTML$LWS];
4746
4791
  }
4747
4792
 
4748
- function distortionElementPrepend$LWS(globalObject$LWS) {
4793
+ function distortionElementPrepend$LWS(record$LWS) {
4749
4794
  const {
4750
- Element: Element$LWS,
4751
- Node: Node$LWS
4752
- } = globalObject$LWS;
4795
+ globalObject: {
4796
+ Element: Element$LWS,
4797
+ Node: Node$LWS
4798
+ }
4799
+ } = record$LWS;
4753
4800
  const {
4754
4801
  prepend: originalPrepend$LWS
4755
4802
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4762,7 +4809,7 @@ function distortionElementPrepend$LWS(globalObject$LWS) {
4762
4809
  const {
4763
4810
  isSharedElement: isSharedElement$LWS,
4764
4811
  isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
4765
- } = getValidator$LWS(window);
4812
+ } = getValidator$LWS(record$LWS.top);
4766
4813
 
4767
4814
  function prepend$LWS(...args$LWS) {
4768
4815
  // istanbul ignore else: needs default platform behavior test
@@ -4790,10 +4837,12 @@ function distortionElementPrepend$LWS(globalObject$LWS) {
4790
4837
  return [originalPrepend$LWS, prepend$LWS];
4791
4838
  }
4792
4839
 
4793
- function distortionElementRemove$LWS(globalObject$LWS) {
4840
+ function distortionElementRemove$LWS(record$LWS) {
4794
4841
  const {
4795
- Element: Element$LWS
4796
- } = globalObject$LWS;
4842
+ globalObject: {
4843
+ Element: Element$LWS
4844
+ }
4845
+ } = record$LWS;
4797
4846
  const {
4798
4847
  remove: originalRemove$LWS
4799
4848
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4805,7 +4854,7 @@ function distortionElementRemove$LWS(globalObject$LWS) {
4805
4854
 
4806
4855
  const {
4807
4856
  isSharedElement: isSharedElement$LWS
4808
- } = getValidator$LWS(window);
4857
+ } = getValidator$LWS(record$LWS.top);
4809
4858
 
4810
4859
  function remove$LWS() {
4811
4860
  // istanbul ignore else: needs default platform behavior test
@@ -4819,10 +4868,12 @@ function distortionElementRemove$LWS(globalObject$LWS) {
4819
4868
  return [originalRemove$LWS, remove$LWS];
4820
4869
  }
4821
4870
 
4822
- function distortionElementReplaceChildren$LWS(globalObject$LWS) {
4871
+ function distortionElementReplaceChildren$LWS(record$LWS) {
4823
4872
  const {
4824
- Element: Element$LWS
4825
- } = globalObject$LWS;
4873
+ globalObject: {
4874
+ Element: Element$LWS
4875
+ }
4876
+ } = record$LWS;
4826
4877
  const {
4827
4878
  replaceChildren: originalReplaceChildren$LWS
4828
4879
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4834,7 +4885,7 @@ function distortionElementReplaceChildren$LWS(globalObject$LWS) {
4834
4885
 
4835
4886
  const {
4836
4887
  isSharedElement: isSharedElement$LWS
4837
- } = getValidator$LWS(window);
4888
+ } = getValidator$LWS(record$LWS.top);
4838
4889
 
4839
4890
  function replaceChildren$LWS(...args$LWS) {
4840
4891
  // istanbul ignore else: needs default platform behavior test
@@ -4848,10 +4899,12 @@ function distortionElementReplaceChildren$LWS(globalObject$LWS) {
4848
4899
  return [originalReplaceChildren$LWS, replaceChildren$LWS];
4849
4900
  }
4850
4901
 
4851
- function distortionElementReplaceWith$LWS(globalObject$LWS) {
4902
+ function distortionElementReplaceWith$LWS(record$LWS) {
4852
4903
  const {
4853
- Element: Element$LWS
4854
- } = globalObject$LWS;
4904
+ globalObject: {
4905
+ Element: Element$LWS
4906
+ }
4907
+ } = record$LWS;
4855
4908
  const {
4856
4909
  replaceWith: originalReplaceWith$LWS
4857
4910
  } = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -4863,7 +4916,7 @@ function distortionElementReplaceWith$LWS(globalObject$LWS) {
4863
4916
 
4864
4917
  const {
4865
4918
  isSharedElement: isSharedElement$LWS
4866
- } = getValidator$LWS(window);
4919
+ } = getValidator$LWS(record$LWS.top);
4867
4920
 
4868
4921
  function replaceWith$LWS(...args$LWS) {
4869
4922
  // istanbul ignore else: needs default platform behavior test
@@ -4882,13 +4935,12 @@ function normalizeAttrName$LWS(name$LWS) {
4882
4935
  return ReflectApply$LWS(StringProtoToLowerCase$LWS, nameAsString$LWS, []);
4883
4936
  }
4884
4937
 
4885
- function distortionElementSetAttribute$LWS(globalObject$LWS, options$LWS) {
4886
- const {
4887
- key: key$LWS
4888
- } = options$LWS;
4938
+ function distortionElementSetAttribute$LWS(record$LWS) {
4889
4939
  const {
4890
- Element: Element$LWS
4891
- } = globalObject$LWS;
4940
+ globalObject: {
4941
+ Element: Element$LWS
4942
+ }
4943
+ } = record$LWS;
4892
4944
  const {
4893
4945
  setAttribute: originalSetAttribute$LWS
4894
4946
  } = Element$LWS.prototype;
@@ -4897,7 +4949,7 @@ function distortionElementSetAttribute$LWS(globalObject$LWS, options$LWS) {
4897
4949
  if (args$LWS.length > 1) {
4898
4950
  const attrName$LWS = normalizeAttrName$LWS(args$LWS[0]);
4899
4951
  const attrValue$LWS = toString$LWS(args$LWS[1]);
4900
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, this, attrName$LWS);
4952
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS);
4901
4953
 
4902
4954
  if (distortion$LWS) {
4903
4955
  ReflectApply$LWS(distortion$LWS, this, [attrValue$LWS]);
@@ -4914,14 +4966,13 @@ function distortionElementSetAttribute$LWS(globalObject$LWS, options$LWS) {
4914
4966
  return [originalSetAttribute$LWS, setAttribute$LWS];
4915
4967
  }
4916
4968
 
4917
- function distortionElementSetAttributeNode$LWS(globalObject$LWS, options$LWS) {
4918
- const {
4919
- key: key$LWS
4920
- } = options$LWS;
4969
+ function distortionElementSetAttributeNode$LWS(record$LWS) {
4921
4970
  const {
4922
- Attr: Attr$LWS,
4923
- Element: Element$LWS
4924
- } = globalObject$LWS;
4971
+ globalObject: {
4972
+ Attr: Attr$LWS,
4973
+ Element: Element$LWS
4974
+ }
4975
+ } = record$LWS;
4925
4976
  const {
4926
4977
  setAttributeNode: originalSetAttributeNode$LWS
4927
4978
  } = Element$LWS.prototype;
@@ -4945,7 +4996,7 @@ function distortionElementSetAttributeNode$LWS(globalObject$LWS, options$LWS) {
4945
4996
  const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, attr$LWS, []);
4946
4997
  const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, attr$LWS, []);
4947
4998
  const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
4948
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, this, attrName$LWS, normalizedNamespace$LWS);
4999
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS);
4949
5000
 
4950
5001
  if (distortion$LWS) {
4951
5002
  const oldAttr$LWS = ReflectApply$LWS(ElementProtoGetAttributeNode$LWS, this, [attrName$LWS]);
@@ -4986,14 +5037,13 @@ function distortionElementSetAttributeNode$LWS(globalObject$LWS, options$LWS) {
4986
5037
  return [originalSetAttributeNode$LWS, setAttributeNode$LWS];
4987
5038
  }
4988
5039
 
4989
- function distortionElementSetAttributeNodeNS$LWS(globalObject$LWS, options$LWS) {
4990
- const {
4991
- key: key$LWS
4992
- } = options$LWS;
5040
+ function distortionElementSetAttributeNodeNS$LWS(record$LWS) {
4993
5041
  const {
4994
- Attr: Attr$LWS,
4995
- Element: Element$LWS
4996
- } = globalObject$LWS;
5042
+ globalObject: {
5043
+ Attr: Attr$LWS,
5044
+ Element: Element$LWS
5045
+ }
5046
+ } = record$LWS;
4997
5047
  const {
4998
5048
  setAttributeNodeNS: originalSetAttributeNodeNS$LWS
4999
5049
  } = Element$LWS.prototype;
@@ -5017,7 +5067,7 @@ function distortionElementSetAttributeNodeNS$LWS(globalObject$LWS, options$LWS)
5017
5067
  const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, attr$LWS, []);
5018
5068
  const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, attr$LWS, []);
5019
5069
  const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
5020
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, this, attrName$LWS, normalizedNamespace$LWS);
5070
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS);
5021
5071
 
5022
5072
  if (distortion$LWS) {
5023
5073
  const oldAttr$LWS = ReflectApply$LWS(ElementProtoGetAttributeNodeNS$LWS, this, [attrNamespace$LWS, attrName$LWS]);
@@ -5058,13 +5108,12 @@ function distortionElementSetAttributeNodeNS$LWS(globalObject$LWS, options$LWS)
5058
5108
  return [originalSetAttributeNodeNS$LWS, setAttributeNodeNS$LWS];
5059
5109
  }
5060
5110
 
5061
- function distortionElementSetAttributeNS$LWS(globalObject$LWS, options$LWS) {
5062
- const {
5063
- key: key$LWS
5064
- } = options$LWS;
5111
+ function distortionElementSetAttributeNS$LWS(record$LWS) {
5065
5112
  const {
5066
- Element: Element$LWS
5067
- } = globalObject$LWS;
5113
+ globalObject: {
5114
+ Element: Element$LWS
5115
+ }
5116
+ } = record$LWS;
5068
5117
  const {
5069
5118
  setAttributeNS: originalSetAttributeNS$LWS
5070
5119
  } = Element$LWS.prototype;
@@ -5087,7 +5136,7 @@ function distortionElementSetAttributeNS$LWS(globalObject$LWS, options$LWS) {
5087
5136
  const attrName$LWS = normalizeAttrName$LWS(args$LWS[1]);
5088
5137
  const attrValue$LWS = toString$LWS(args$LWS[2]);
5089
5138
  const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
5090
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, this, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
5139
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
5091
5140
 
5092
5141
  if (distortion$LWS) {
5093
5142
  ReflectApply$LWS(distortion$LWS, this, [attrValue$LWS]);
@@ -5109,10 +5158,12 @@ function distortionElementSetAttributeNS$LWS(globalObject$LWS, options$LWS) {
5109
5158
  return [originalSetAttributeNS$LWS, setAttributeNS$LWS];
5110
5159
  }
5111
5160
 
5112
- function distortionElementShadowRootGetter$LWS(globalObject$LWS) {
5161
+ function distortionElementShadowRootGetter$LWS(record$LWS) {
5113
5162
  const {
5114
- Element: Element$LWS
5115
- } = globalObject$LWS;
5163
+ globalObject: {
5164
+ Element: Element$LWS
5165
+ }
5166
+ } = record$LWS;
5116
5167
  const originalShadowRootGetter$LWS = ObjectLookupOwnGetter$LWS(Element$LWS.prototype, 'shadowRoot');
5117
5168
 
5118
5169
  function shadowRoot$LWS() {
@@ -5122,13 +5173,12 @@ function distortionElementShadowRootGetter$LWS(globalObject$LWS) {
5122
5173
  return [originalShadowRootGetter$LWS, shadowRoot$LWS];
5123
5174
  }
5124
5175
 
5125
- function distortionElementToggleAttribute$LWS(globalObject$LWS, options$LWS) {
5176
+ function distortionElementToggleAttribute$LWS(record$LWS) {
5126
5177
  const {
5127
- key: key$LWS
5128
- } = options$LWS;
5129
- const {
5130
- Element: Element$LWS
5131
- } = globalObject$LWS;
5178
+ globalObject: {
5179
+ Element: Element$LWS
5180
+ }
5181
+ } = record$LWS;
5132
5182
  const {
5133
5183
  hasAttribute: ElementProtoHasAttribute$LWS,
5134
5184
  toggleAttribute: originalToggleAttribute$LWS
@@ -5141,7 +5191,7 @@ function distortionElementToggleAttribute$LWS(globalObject$LWS, options$LWS) {
5141
5191
 
5142
5192
  if (length$LWS > 0) {
5143
5193
  const attrName$LWS = normalizeAttrName$LWS(args$LWS[0]);
5144
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, this, attrName$LWS); // istanbul ignore else: needs default platform behavior test
5194
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS); // istanbul ignore else: needs default platform behavior test
5145
5195
 
5146
5196
  if (distortion$LWS) {
5147
5197
  const distortionArgs$LWS = length$LWS > 1 ? [args$LWS[1]] : []; // Calling the distortion may end this execution entirely, if the distortion throws.
@@ -5161,6 +5211,22 @@ function distortionElementToggleAttribute$LWS(globalObject$LWS, options$LWS) {
5161
5211
  };
5162
5212
 
5163
5213
  return [originalToggleAttribute$LWS, toggleAttribute$LWS];
5214
+ }
5215
+
5216
+ function distortionEval$LWS(record$LWS) {
5217
+ const {
5218
+ UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
5219
+ globalObject: {
5220
+ eval: originalEval$LWS
5221
+ },
5222
+ sandboxEvaluator: sandboxEvaluator$LWS
5223
+ } = record$LWS;
5224
+
5225
+ function Eval$LWS(sourceText$LWS) {
5226
+ return sandboxEvaluator$LWS(transformUncompiledSourceText$LWS(toString$LWS(sourceText$LWS)), UNCOMPILED_CONTEXT$LWS);
5227
+ }
5228
+
5229
+ return [originalEval$LWS, Eval$LWS];
5164
5230
  } // istanbul ignore next: LWS/Locker currently blocks CustomElementRegistry#define() and disables the composedPath tests
5165
5231
 
5166
5232
 
@@ -5189,10 +5255,12 @@ function createDistortedComposedPath$LWS(event$LWS) {
5189
5255
  } // istanbul ignore next: LWS/Locker currently blocks CustomElementRegistry#define() and disables the composedPath tests
5190
5256
 
5191
5257
 
5192
- function distortionEventComposedPath$LWS(globalObject$LWS) {
5258
+ function distortionEventComposedPath$LWS(record$LWS) {
5193
5259
  const {
5194
- Event: Event$LWS
5195
- } = globalObject$LWS;
5260
+ globalObject: {
5261
+ Event: Event$LWS
5262
+ }
5263
+ } = record$LWS;
5196
5264
  const {
5197
5265
  composedPath: originalComposedPath$LWS
5198
5266
  } = Event$LWS.prototype;
@@ -5205,10 +5273,12 @@ function distortionEventComposedPath$LWS(globalObject$LWS) {
5205
5273
  } // istanbul ignore next: LWS/Locker currently blocks CustomElementRegistry#define() and disables the composedPath tests
5206
5274
 
5207
5275
 
5208
- function distortionEventPathGetter$LWS(globalObject$LWS) {
5276
+ function distortionEventPathGetter$LWS(record$LWS) {
5209
5277
  const {
5210
- Event: Event$LWS
5211
- } = globalObject$LWS;
5278
+ globalObject: {
5279
+ Event: Event$LWS
5280
+ }
5281
+ } = record$LWS;
5212
5282
  const originalPathGetter$LWS = ObjectLookupOwnGetter$LWS(Event$LWS.prototype, 'path');
5213
5283
 
5214
5284
  if (typeof originalPathGetter$LWS !== 'function') {
@@ -5222,13 +5292,12 @@ function distortionEventPathGetter$LWS(globalObject$LWS) {
5222
5292
  return [originalPathGetter$LWS, path$LWS];
5223
5293
  }
5224
5294
 
5225
- function distortionEventTargetAddEventListener$LWS(globalObject$LWS, options$LWS) {
5226
- const {
5227
- key: key$LWS
5228
- } = options$LWS;
5295
+ function distortionEventTargetAddEventListener$LWS(record$LWS) {
5229
5296
  const {
5230
- EventTarget: EventTarget$LWS
5231
- } = globalObject$LWS;
5297
+ globalObject: {
5298
+ EventTarget: EventTarget$LWS
5299
+ }
5300
+ } = record$LWS;
5232
5301
  const {
5233
5302
  addEventListener: originalAddEventListener$LWS
5234
5303
  } = EventTarget$LWS.prototype;
@@ -5241,11 +5310,9 @@ function distortionEventTargetAddEventListener$LWS(globalObject$LWS, options$LWS
5241
5310
  // istanbul ignore else: needs default platform behavior test
5242
5311
 
5243
5312
  if (length$LWS > 1) {
5244
- const {
5245
- 0: eventName$LWS
5246
- } = args$LWS;
5313
+ const eventName$LWS = toString$LWS(args$LWS[0]);
5247
5314
 
5248
- if (isEventTargetRestricted$LWS(this, eventName$LWS, key$LWS)) {
5315
+ if (isEventTargetRestricted$LWS(record$LWS, this, eventName$LWS)) {
5249
5316
  var _safeDesc$LWS;
5250
5317
 
5251
5318
  const unsafeDesc$LWS = ReflectGetOwnPropertyDescriptor$LWS(this.constructor, 'name');
@@ -5264,6 +5331,8 @@ function distortionEventTargetAddEventListener$LWS(globalObject$LWS, options$LWS
5264
5331
 
5265
5332
  throw new LockerSecurityError$LWS(`${exceptionMessage$LWS}.`);
5266
5333
  }
5334
+
5335
+ args$LWS[0] = eventName$LWS;
5267
5336
  }
5268
5337
 
5269
5338
  return ReflectApply$LWS(originalAddEventListener$LWS, this, args$LWS);
@@ -5272,10 +5341,41 @@ function distortionEventTargetAddEventListener$LWS(globalObject$LWS, options$LWS
5272
5341
  return [originalAddEventListener$LWS, addEventListener$LWS];
5273
5342
  }
5274
5343
 
5275
- function distortionHistoryPushState$LWS(globalObject$LWS) {
5344
+ function distortionFunction$LWS(record$LWS) {
5276
5345
  const {
5277
- History: History$LWS
5278
- } = globalObject$LWS;
5346
+ UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
5347
+ globalObject: {
5348
+ Function: originalFunction$LWS
5349
+ },
5350
+ sandboxEvaluator: sandboxEvaluator$LWS
5351
+ } = record$LWS;
5352
+
5353
+ function Function$LWS(...args$LWS) {
5354
+ const {
5355
+ length: length$LWS
5356
+ } = args$LWS;
5357
+
5358
+ if (length$LWS) {
5359
+ const lastIndex$LWS = length$LWS - 1;
5360
+ args$LWS[lastIndex$LWS] = transformUncompiledSourceText$LWS(toString$LWS(args$LWS[lastIndex$LWS]));
5361
+ } // NOTE: Function constructor and eval are controlled by the same CSP rules,
5362
+ // which means we can rely on eval to fulfill the behavior of the Function
5363
+ // constructor.
5364
+
5365
+
5366
+ const fn$LWS = sandboxEvaluator$LWS(`(...args) => Function(...args)`, UNCOMPILED_CONTEXT$LWS);
5367
+ return ReflectApply$LWS(fn$LWS, this, args$LWS);
5368
+ }
5369
+
5370
+ return [originalFunction$LWS, Function$LWS];
5371
+ }
5372
+
5373
+ function distortionHistoryPushState$LWS(record$LWS) {
5374
+ const {
5375
+ globalObject: {
5376
+ History: History$LWS
5377
+ }
5378
+ } = record$LWS;
5279
5379
  const {
5280
5380
  pushState: originalPushState$LWS
5281
5381
  } = History$LWS.prototype;
@@ -5291,10 +5391,12 @@ function distortionHistoryPushState$LWS(globalObject$LWS) {
5291
5391
  return [originalPushState$LWS, pushState$LWS];
5292
5392
  }
5293
5393
 
5294
- function distortionHistoryReplaceState$LWS(globalObject$LWS) {
5394
+ function distortionHistoryReplaceState$LWS(record$LWS) {
5295
5395
  const {
5296
- History: History$LWS
5297
- } = globalObject$LWS;
5396
+ globalObject: {
5397
+ History: History$LWS
5398
+ }
5399
+ } = record$LWS;
5298
5400
  const {
5299
5401
  replaceState: originalReplaceState$LWS
5300
5402
  } = History$LWS.prototype;
@@ -5310,10 +5412,12 @@ function distortionHistoryReplaceState$LWS(globalObject$LWS) {
5310
5412
  return [originalReplaceState$LWS, replaceState$LWS];
5311
5413
  }
5312
5414
 
5313
- function distortionHTMLElementDatasetGetter$LWS(globalObject$LWS) {
5415
+ function distortionHTMLElementDatasetGetter$LWS(record$LWS) {
5314
5416
  const {
5315
- HTMLElement: HTMLElement$LWS
5316
- } = globalObject$LWS;
5417
+ globalObject: {
5418
+ HTMLElement: HTMLElement$LWS
5419
+ }
5420
+ } = record$LWS;
5317
5421
  const originalDatasetGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLElement$LWS.prototype, 'dataset');
5318
5422
 
5319
5423
  function dataset$LWS() {
@@ -5323,10 +5427,12 @@ function distortionHTMLElementDatasetGetter$LWS(globalObject$LWS) {
5323
5427
  return [originalDatasetGetter$LWS, dataset$LWS];
5324
5428
  }
5325
5429
 
5326
- function distortionHTMLElementInnerTextSetter$LWS(globalObject$LWS) {
5430
+ function distortionHTMLElementInnerTextSetter$LWS(record$LWS) {
5327
5431
  const {
5328
- HTMLElement: HTMLElement$LWS
5329
- } = globalObject$LWS;
5432
+ globalObject: {
5433
+ HTMLElement: HTMLElement$LWS
5434
+ }
5435
+ } = record$LWS;
5330
5436
  const originalInnerTextSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLElement$LWS.prototype, 'innerText'); // istanbul ignore if: currently unreachable via tests
5331
5437
 
5332
5438
  if (typeof originalInnerTextSetter$LWS !== 'function') {
@@ -5341,7 +5447,7 @@ function distortionHTMLElementInnerTextSetter$LWS(globalObject$LWS) {
5341
5447
 
5342
5448
  const {
5343
5449
  isSharedElement: isSharedElement$LWS
5344
- } = getValidator$LWS(window);
5450
+ } = getValidator$LWS(record$LWS.top);
5345
5451
 
5346
5452
  const innerText$LWS = function innerText$LWS(value$LWS) {
5347
5453
  // istanbul ignore else: needs default platform behavior test
@@ -5358,10 +5464,12 @@ function distortionHTMLElementInnerTextSetter$LWS(globalObject$LWS) {
5358
5464
  // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/outerText#Browser_compatibility
5359
5465
 
5360
5466
 
5361
- function distortionHTMLElementOuterTextSetter$LWS(globalObject$LWS) {
5467
+ function distortionHTMLElementOuterTextSetter$LWS(record$LWS) {
5362
5468
  const {
5363
- HTMLElement: HTMLElement$LWS
5364
- } = globalObject$LWS;
5469
+ globalObject: {
5470
+ HTMLElement: HTMLElement$LWS
5471
+ }
5472
+ } = record$LWS;
5365
5473
  const originalOuterTextSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLElement$LWS.prototype, 'outerText'); // istanbul ignore if: currently unreachable via tests
5366
5474
 
5367
5475
  if (typeof originalOuterTextSetter$LWS !== 'function') {
@@ -5376,7 +5484,7 @@ function distortionHTMLElementOuterTextSetter$LWS(globalObject$LWS) {
5376
5484
 
5377
5485
  const {
5378
5486
  isSharedElement: isSharedElement$LWS
5379
- } = getValidator$LWS(window);
5487
+ } = getValidator$LWS(record$LWS.top);
5380
5488
 
5381
5489
  const outerText$LWS = function outerText$LWS(value$LWS) {
5382
5490
  // istanbul ignore else: needs default platform behavior test
@@ -5390,10 +5498,12 @@ function distortionHTMLElementOuterTextSetter$LWS(globalObject$LWS) {
5390
5498
  return [originalOuterTextSetter$LWS, outerText$LWS];
5391
5499
  }
5392
5500
 
5393
- function distortionHTMLElementStyleGetter$LWS(globalObject$LWS) {
5501
+ function distortionHTMLElementStyleGetter$LWS(record$LWS) {
5394
5502
  const {
5395
- HTMLElement: HTMLElement$LWS
5396
- } = globalObject$LWS;
5503
+ globalObject: {
5504
+ HTMLElement: HTMLElement$LWS
5505
+ }
5506
+ } = record$LWS;
5397
5507
  const originalStyleGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLElement$LWS.prototype, 'style');
5398
5508
 
5399
5509
  function style$LWS() {
@@ -5403,10 +5513,12 @@ function distortionHTMLElementStyleGetter$LWS(globalObject$LWS) {
5403
5513
  return [originalStyleGetter$LWS, style$LWS];
5404
5514
  }
5405
5515
 
5406
- function distortionHTMLIFrameElementSrcSetter$LWS(globalObject$LWS) {
5516
+ function distortionHTMLIFrameElementSrcSetter$LWS(record$LWS) {
5407
5517
  const {
5408
- HTMLIFrameElement: HTMLIFrameElement$LWS
5409
- } = globalObject$LWS;
5518
+ globalObject: {
5519
+ HTMLIFrameElement: HTMLIFrameElement$LWS
5520
+ }
5521
+ } = record$LWS;
5410
5522
  const originalSrcSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLIFrameElement$LWS.prototype, 'src');
5411
5523
 
5412
5524
  function src$LWS(value$LWS) {
@@ -5419,7 +5531,7 @@ function distortionHTMLIFrameElementSrcSetter$LWS(globalObject$LWS) {
5419
5531
  ReflectApply$LWS(HTMLIFrameElementProtoSrcSetter$LWS, this, [urlString$LWS]);
5420
5532
  }
5421
5533
 
5422
- registerElementSetDistortion$LWS(globalObject$LWS, HTMLIFrameElement$LWS, 'src', NAMESPACE_DEFAULT$LWS, src$LWS);
5534
+ registerElementSetDistortion$LWS(record$LWS, HTMLIFrameElement$LWS, 'src', NAMESPACE_DEFAULT$LWS, src$LWS);
5423
5535
  return [originalSrcSetter$LWS, src$LWS];
5424
5536
  }
5425
5537
 
@@ -5430,10 +5542,12 @@ function isValidRelValue$LWS(value$LWS) {
5430
5542
  return typeof value$LWS !== 'string' || !ReflectApply$LWS(RegExpProtoTest$LWS, importRegExp$LWS, [value$LWS]);
5431
5543
  }
5432
5544
 
5433
- function distortionHTMLLinkElementRelSetter$LWS(globalObject$LWS) {
5545
+ function distortionHTMLLinkElementRelSetter$LWS(record$LWS) {
5434
5546
  const {
5435
- HTMLLinkElement: HTMLLinkElement$LWS
5436
- } = globalObject$LWS;
5547
+ globalObject: {
5548
+ HTMLLinkElement: HTMLLinkElement$LWS
5549
+ }
5550
+ } = record$LWS;
5437
5551
  const originalRelSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLLinkElement$LWS.prototype, 'rel');
5438
5552
 
5439
5553
  function rel$LWS(value$LWS) {
@@ -5447,15 +5561,17 @@ function distortionHTMLLinkElementRelSetter$LWS(globalObject$LWS) {
5447
5561
  consoleWarn$LWS(WARN_MESSAGE$LWS);
5448
5562
  }
5449
5563
 
5450
- registerElementSetDistortion$LWS(globalObject$LWS, HTMLLinkElement$LWS, 'rel', NAMESPACE_DEFAULT$LWS, rel$LWS);
5564
+ registerElementSetDistortion$LWS(record$LWS, HTMLLinkElement$LWS, 'rel', NAMESPACE_DEFAULT$LWS, rel$LWS);
5451
5565
  return [originalRelSetter$LWS, rel$LWS];
5452
5566
  }
5453
5567
 
5454
- function distortionHTMLLinkElementRelListSetter$LWS(globalObject$LWS) {
5568
+ function distortionHTMLLinkElementRelListSetter$LWS(record$LWS) {
5455
5569
  const {
5456
- DOMTokenList: DOMTokenList$LWS,
5457
- HTMLLinkElement: HTMLLinkElement$LWS
5458
- } = globalObject$LWS;
5570
+ globalObject: {
5571
+ DOMTokenList: DOMTokenList$LWS,
5572
+ HTMLLinkElement: HTMLLinkElement$LWS
5573
+ }
5574
+ } = record$LWS;
5459
5575
  const originalRelListSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLLinkElement$LWS.prototype, 'relList');
5460
5576
 
5461
5577
  function relList$LWS(relListValue$LWS) {
@@ -5474,16 +5590,46 @@ function distortionHTMLLinkElementRelListSetter$LWS(globalObject$LWS) {
5474
5590
  return [originalRelListSetter$LWS, relList$LWS];
5475
5591
  }
5476
5592
 
5593
+ function distortionHTMLObjectElementDataSetter$LWS(record$LWS) {
5594
+ const {
5595
+ globalObject: {
5596
+ HTMLObjectElement: HTMLObjectElement$LWS
5597
+ }
5598
+ } = record$LWS;
5599
+ const originalDataSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLObjectElement$LWS.prototype, 'data');
5600
+
5601
+ function data$LWS(value$LWS) {
5602
+ const urlString$LWS = sanitizeURLForElement$LWS(value$LWS);
5603
+
5604
+ if (!isValidURLScheme$LWS(urlString$LWS)) {
5605
+ throw new LockerSecurityError$LWS('HTMLObjectElement.data supports http://, https:// schemes and relative urls.');
5606
+ }
5607
+
5608
+ const parsedURL$LWS = parseURL$LWS(urlString$LWS);
5609
+
5610
+ if (!isValidURL$LWS(parsedURL$LWS)) {
5611
+ throw new LockerSecurityError$LWS(`Cannot request disallowed endpoint: ${parsedURL$LWS.normalizedURL}`);
5612
+ }
5613
+
5614
+ ReflectApply$LWS(originalDataSetter$LWS, this, [urlString$LWS]);
5615
+ }
5616
+
5617
+ registerElementSetDistortion$LWS(record$LWS, HTMLObjectElement$LWS, 'data', NAMESPACE_DEFAULT$LWS, data$LWS);
5618
+ return [originalDataSetter$LWS, data$LWS];
5619
+ }
5620
+
5477
5621
  function getDatasetSrcValue$LWS(el$LWS) {
5478
5622
  const dataset$LWS = ReflectApply$LWS(HTMLElementProtoDatasetGetter$LWS, el$LWS, []);
5479
5623
  const distortedSrc$LWS = ObjectLookupOwnValue$LWS(dataset$LWS, 'distortedSrc');
5480
5624
  return distortedSrc$LWS === undefined ? '' : distortedSrc$LWS;
5481
5625
  }
5482
5626
 
5483
- function distortionHTMLScriptElementSrcGetter$LWS(globalObject$LWS) {
5627
+ function distortionHTMLScriptElementSrcGetter$LWS(record$LWS) {
5484
5628
  const {
5485
- HTMLScriptElement: HTMLScriptElement$LWS
5486
- } = globalObject$LWS;
5629
+ globalObject: {
5630
+ HTMLScriptElement: HTMLScriptElement$LWS
5631
+ }
5632
+ } = record$LWS;
5487
5633
  const originalSrcGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLScriptElement$LWS.prototype, 'src');
5488
5634
 
5489
5635
  function src$LWS() {
@@ -5493,49 +5639,18 @@ function distortionHTMLScriptElementSrcGetter$LWS(globalObject$LWS) {
5493
5639
  return [originalSrcGetter$LWS, src$LWS];
5494
5640
  }
5495
5641
 
5642
+ const SCRIPT_PAYLOAD_NAME$LWS = '$payload$';
5496
5643
  const SCRIPT_EVALUATOR_PROPERTY_NAME$LWS = '$evaluator$';
5497
5644
  const SCRIPT_BLOB_OPTIONS$LWS = {
5498
5645
  __proto__: null,
5499
5646
  type: 'text/javascript'
5500
- }; // istanbul ignore next
5501
-
5502
- const SCRIPT_BLOB_TEMPLATE$LWS = `{${extractFunctionBodySource$LWS(() => {
5503
- /* eslint-disable prefer-object-spread */
5504
- // The SCRIPT_EVALUATOR_PROPERTY_NAME is removed from the current script
5505
- // on first access.
5506
- document.currentScript[2
5507
- /* EvaluatorNameLiteral */
5508
- ]( // source
5509
- decodeURIComponent(1
5510
- /* EvalSourceText */
5511
- ), // context
5512
- 0
5513
- /* EvalContextText */
5514
- );
5515
- /* eslint-enable prefer-object-spread */
5516
- })}}`;
5517
- const scriptBlobTemplateData$LWS = {
5518
- __proto__: null,
5519
- [0
5520
- /* EvalContextText */
5521
- ]: `{${UNCOMPILED_LOCATION_NAME$LWS}:location}`,
5522
- [1
5523
- /* EvalSourceText */
5524
- ]: '',
5525
- [2
5526
- /* EvaluatorNameLiteral */
5527
- ]: enquote$LWS(SCRIPT_EVALUATOR_PROPERTY_NAME$LWS)
5528
- };
5529
- const scriptBlobTemplateRegExp$LWS = /\b(?:[0-9]|[1-9][0-9]+)\b/g;
5530
-
5531
- const scriptBlobTemplateReplacement$LWS = digit$LWS => {
5532
- var _scriptBlobTemplateDa$LWS;
5533
-
5534
- return (_scriptBlobTemplateDa$LWS = scriptBlobTemplateData$LWS[digit$LWS]) != null ? _scriptBlobTemplateDa$LWS : digit$LWS;
5535
5647
  };
5648
+ const SCRIPT_BLOB_TEMPLATE$LWS = `document.currentScript[${enquote$LWS(SCRIPT_EVALUATOR_PROPERTY_NAME$LWS)}](decodeURIComponent(${// Enquote with double quotes because `WindowEncodeURIComponent()` encodes
5649
+ // double quotes (") as (%22).
5650
+ enquote$LWS(SCRIPT_PAYLOAD_NAME$LWS, CHAR_QUOTE_DOUBLE$LWS)}))`;
5536
5651
 
5537
5652
  function abstractFactoryValueThrower$LWS(proto$LWS, propName$LWS) {
5538
- return function valueThrowerDistortionFactory$LWS(_globalObject$LWS) {
5653
+ return function valueThrowerDistortionFactory$LWS(_record$LWS) {
5539
5654
  const {
5540
5655
  [propName$LWS]: originalValue$LWS
5541
5656
  } = proto$LWS;
@@ -5549,7 +5664,7 @@ function abstractFactoryValueThrower$LWS(proto$LWS, propName$LWS) {
5549
5664
  }
5550
5665
 
5551
5666
  function abstractFactoryGetThrower$LWS(proto$LWS, propName$LWS) {
5552
- return function getThrowerDistortionFactory$LWS(_globalObject$LWS) {
5667
+ return function getThrowerDistortionFactory$LWS(_record$LWS) {
5553
5668
  const originalGet$LWS = ObjectLookupOwnGetter$LWS(proto$LWS, propName$LWS);
5554
5669
 
5555
5670
  function get$LWS() {
@@ -5561,7 +5676,7 @@ function abstractFactoryGetThrower$LWS(proto$LWS, propName$LWS) {
5561
5676
  }
5562
5677
 
5563
5678
  function abstractFactorySetThrower$LWS(proto$LWS, propName$LWS) {
5564
- return function setThrowerDistortionFactory$LWS(_globalObject$LWS) {
5679
+ return function setThrowerDistortionFactory$LWS(_record$LWS) {
5565
5680
  const originalSet$LWS = ObjectLookupOwnSetter$LWS(proto$LWS, propName$LWS);
5566
5681
 
5567
5682
  function set$LWS() {
@@ -5578,10 +5693,7 @@ function abstractFactorySetThrower$LWS(proto$LWS, propName$LWS) {
5578
5693
 
5579
5694
 
5580
5695
  function createScriptUrl$LWS(sourceText$LWS) {
5581
- scriptBlobTemplateData$LWS[1
5582
- /* EvalSourceText */
5583
- ] = enquote$LWS(WindowEncodeURIComponent$LWS(transformUncompiledSource$LWS(sourceText$LWS)));
5584
- return URLCreateObjectURL$LWS(new BlobCtor$LWS([ReflectApply$LWS(StringProtoReplace$LWS, SCRIPT_BLOB_TEMPLATE$LWS, [scriptBlobTemplateRegExp$LWS, scriptBlobTemplateReplacement$LWS])], SCRIPT_BLOB_OPTIONS$LWS));
5696
+ return URLCreateObjectURL$LWS(new BlobCtor$LWS([ReflectApply$LWS(StringProtoReplace$LWS, SCRIPT_BLOB_TEMPLATE$LWS, [SCRIPT_PAYLOAD_NAME$LWS, WindowEncodeURIComponent$LWS(sourceText$LWS)])], SCRIPT_BLOB_OPTIONS$LWS));
5585
5697
  }
5586
5698
 
5587
5699
  function createBlockedPropertyDistortionFactories$LWS(proto$LWS, propertyList$LWS, factories$LWS = []) {
@@ -5629,9 +5741,12 @@ function createBlockedPropertyDistortionFactories$LWS(proto$LWS, propertyList$LW
5629
5741
  return factories$LWS;
5630
5742
  }
5631
5743
 
5632
- function createScriptDistortion$LWS(attributeName$LWS, datasetGetter$LWS, evaluator$LWS) {
5633
- const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['a']);
5634
- const distortionName$LWS = `script${capitalizeFirstChar$LWS(attributeName$LWS)}`; // Use a computed property to dynamically set the distortion function name
5744
+ function createScriptDistortion$LWS(record$LWS, attributeName$LWS, datasetGetter$LWS) {
5745
+ const {
5746
+ sandboxEvaluator: sandboxEvaluator$LWS
5747
+ } = record$LWS;
5748
+ const distortionName$LWS = `script${capitalizeFirstChar$LWS(attributeName$LWS)}`;
5749
+ const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['a']); // Use a computed property to dynamically set the distortion function name
5635
5750
  // without using Reflect.defineProperty().
5636
5751
 
5637
5752
  const {
@@ -5674,8 +5789,14 @@ function createScriptDistortion$LWS(attributeName$LWS, datasetGetter$LWS, evalua
5674
5789
  get: ReflectApply$LWS(FunctionProtoBind$LWS, () => {
5675
5790
  ReflectDeleteProperty$LWS(this, SCRIPT_EVALUATOR_PROPERTY_NAME$LWS);
5676
5791
  const ownerDoc$LWS = ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, this, []);
5677
- const globalObject$LWS = ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, ownerDoc$LWS, []);
5678
- return (script$LWS, context$LWS) => evaluator$LWS(script$LWS, globalObject$LWS, context$LWS);
5792
+ const defaultView$LWS = ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, ownerDoc$LWS, []); // We don't need to use something like
5793
+ // `WindowLocationGetter()` because the
5794
+ // 'location' property is non-configurable.
5795
+
5796
+ const context$LWS = {
5797
+ [UNCOMPILED_LOCATION_NAME$LWS]: defaultView$LWS.location
5798
+ };
5799
+ return sourceText$LWS => sandboxEvaluator$LWS(transformUncompiledSourceText$LWS(toString$LWS(sourceText$LWS)), context$LWS, defaultView$LWS, ownerDoc$LWS);
5679
5800
  }, [this])
5680
5801
  });
5681
5802
  ReflectApply$LWS(ElementProtoSetAttributeNS$LWS, this, [attributeNamespaceURI$LWS, attributeName$LWS, createScriptUrl$LWS(responseText$LWS)]);
@@ -5698,7 +5819,7 @@ function createScriptDistortion$LWS(attributeName$LWS, datasetGetter$LWS, evalua
5698
5819
  return distortion$LWS;
5699
5820
  }
5700
5821
 
5701
- function distortBlockedAttributes$LWS(globalObject$LWS, Ctor$LWS, attributes$LWS, elNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
5822
+ function distortBlockedAttributes$LWS(record$LWS, Ctor$LWS, attributes$LWS, elNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
5702
5823
  for (let i$LWS = 0, {
5703
5824
  length: length$LWS
5704
5825
  } = attributes$LWS; i$LWS < length$LWS; i$LWS += 1) {
@@ -5715,27 +5836,28 @@ function distortBlockedAttributes$LWS(globalObject$LWS, Ctor$LWS, attributes$LWS
5715
5836
  throw new LockerSecurityError$LWS(`Attribute ${enquotedAttributeName$LWS} not allowed on ${safeCtorName$LWS}.`);
5716
5837
  }
5717
5838
  };
5718
- registerElementSetDistortion$LWS(globalObject$LWS, Ctor$LWS, attributeName$LWS, elNamespace$LWS, distortion$LWS);
5839
+ registerElementSetDistortion$LWS(record$LWS, Ctor$LWS, attributeName$LWS, elNamespace$LWS, distortion$LWS);
5719
5840
  }
5720
5841
  }
5721
5842
 
5722
- function distortionHTMLScriptElementSrcSetter$LWS(globalObject$LWS, options$LWS) {
5723
- const {
5724
- evaluator: evaluator$LWS
5725
- } = options$LWS;
5843
+ function distortionHTMLScriptElementSrcSetter$LWS(record$LWS) {
5726
5844
  const {
5727
- HTMLScriptElement: HTMLScriptElement$LWS
5728
- } = globalObject$LWS;
5845
+ globalObject: {
5846
+ HTMLScriptElement: HTMLScriptElement$LWS
5847
+ }
5848
+ } = record$LWS;
5729
5849
  const originalSrcSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLScriptElement$LWS.prototype, 'src');
5730
- const src$LWS = createScriptDistortion$LWS('src', HTMLElementProtoDatasetGetter$LWS, evaluator$LWS);
5731
- registerElementSetDistortion$LWS(globalObject$LWS, HTMLScriptElement$LWS, 'src', NAMESPACE_DEFAULT$LWS, src$LWS);
5850
+ const src$LWS = createScriptDistortion$LWS(record$LWS, 'src', HTMLElementProtoDatasetGetter$LWS);
5851
+ registerElementSetDistortion$LWS(record$LWS, HTMLScriptElement$LWS, 'src', NAMESPACE_DEFAULT$LWS, src$LWS);
5732
5852
  return [originalSrcSetter$LWS, src$LWS];
5733
5853
  }
5734
5854
 
5735
- function distortionIDBObjectStoreAdd$LWS(globalObject$LWS) {
5855
+ function distortionIDBObjectStoreAdd$LWS(record$LWS) {
5736
5856
  const {
5737
- IDBObjectStore: IDBObjectStore$LWS
5738
- } = globalObject$LWS;
5857
+ globalObject: {
5858
+ IDBObjectStore: IDBObjectStore$LWS
5859
+ }
5860
+ } = record$LWS;
5739
5861
  const {
5740
5862
  add: originalAdd$LWS
5741
5863
  } = IDBObjectStore$LWS.prototype;
@@ -5752,10 +5874,12 @@ function distortionIDBObjectStoreAdd$LWS(globalObject$LWS) {
5752
5874
  return [originalAdd$LWS, add$LWS];
5753
5875
  }
5754
5876
 
5755
- function distortionIDBObjectStorePut$LWS(globalObject$LWS) {
5877
+ function distortionIDBObjectStorePut$LWS(record$LWS) {
5756
5878
  const {
5757
- IDBObjectStore: IDBObjectStore$LWS
5758
- } = globalObject$LWS;
5879
+ globalObject: {
5880
+ IDBObjectStore: IDBObjectStore$LWS
5881
+ }
5882
+ } = record$LWS;
5759
5883
  const {
5760
5884
  put: originalPut$LWS
5761
5885
  } = IDBObjectStore$LWS.prototype;
@@ -5772,14 +5896,13 @@ function distortionIDBObjectStorePut$LWS(globalObject$LWS) {
5772
5896
  return [originalPut$LWS, put$LWS];
5773
5897
  }
5774
5898
 
5775
- function distortionNamedNodeMapSetNamedItem$LWS(globalObject$LWS, options$LWS) {
5776
- const {
5777
- key: key$LWS
5778
- } = options$LWS;
5899
+ function distortionNamedNodeMapSetNamedItem$LWS(record$LWS) {
5779
5900
  const {
5780
- Attr: Attr$LWS,
5781
- NamedNodeMap: NamedNodeMap$LWS
5782
- } = globalObject$LWS;
5901
+ globalObject: {
5902
+ Attr: Attr$LWS,
5903
+ NamedNodeMap: NamedNodeMap$LWS
5904
+ }
5905
+ } = record$LWS;
5783
5906
  const {
5784
5907
  setNamedItem: originalSetNamedItem$LWS
5785
5908
  } = NamedNodeMap$LWS.prototype;
@@ -5788,7 +5911,7 @@ function distortionNamedNodeMapSetNamedItem$LWS(globalObject$LWS, options$LWS) {
5788
5911
  const attr$LWS = args$LWS.length ? args$LWS[0] : undefined;
5789
5912
 
5790
5913
  if (attr$LWS && attr$LWS instanceof Attr$LWS) {
5791
- return setNamedItemWithAttr$LWS(globalObject$LWS, key$LWS, originalSetNamedItem$LWS, this, attr$LWS);
5914
+ return setNamedItemWithAttr$LWS(record$LWS, originalSetNamedItem$LWS, this, attr$LWS);
5792
5915
  }
5793
5916
 
5794
5917
  return ReflectApply$LWS(originalSetNamedItem$LWS, this, args$LWS);
@@ -5797,14 +5920,13 @@ function distortionNamedNodeMapSetNamedItem$LWS(globalObject$LWS, options$LWS) {
5797
5920
  return [originalSetNamedItem$LWS, setNamedItem$LWS];
5798
5921
  }
5799
5922
 
5800
- function distortionNamedNodeMapSetNamedItemNS$LWS(globalObject$LWS, options$LWS) {
5801
- const {
5802
- key: key$LWS
5803
- } = options$LWS;
5923
+ function distortionNamedNodeMapSetNamedItemNS$LWS(record$LWS) {
5804
5924
  const {
5805
- Attr: Attr$LWS,
5806
- NamedNodeMap: NamedNodeMap$LWS
5807
- } = globalObject$LWS;
5925
+ globalObject: {
5926
+ Attr: Attr$LWS,
5927
+ NamedNodeMap: NamedNodeMap$LWS
5928
+ }
5929
+ } = record$LWS;
5808
5930
  const {
5809
5931
  setNamedItemNS: originalSetNamedItemNS$LWS
5810
5932
  } = NamedNodeMap$LWS.prototype;
@@ -5813,7 +5935,7 @@ function distortionNamedNodeMapSetNamedItemNS$LWS(globalObject$LWS, options$LWS)
5813
5935
  const attr$LWS = args$LWS.length ? args$LWS[0] : undefined;
5814
5936
 
5815
5937
  if (attr$LWS && attr$LWS instanceof Attr$LWS) {
5816
- return setNamedItemWithAttr$LWS(globalObject$LWS, key$LWS, originalSetNamedItemNS$LWS, this, attr$LWS);
5938
+ return setNamedItemWithAttr$LWS(record$LWS, originalSetNamedItemNS$LWS, this, attr$LWS);
5817
5939
  }
5818
5940
 
5819
5941
  return ReflectApply$LWS(originalSetNamedItemNS$LWS, this, args$LWS);
@@ -5822,10 +5944,12 @@ function distortionNamedNodeMapSetNamedItemNS$LWS(globalObject$LWS, options$LWS)
5822
5944
  return [originalSetNamedItemNS$LWS, setNamedItemNS$LWS];
5823
5945
  }
5824
5946
 
5825
- function distortionNavigatorSendBeacon$LWS(globalObject$LWS) {
5947
+ function distortionNavigatorSendBeacon$LWS(record$LWS) {
5826
5948
  const {
5827
- Navigator: Navigator$LWS
5828
- } = globalObject$LWS;
5949
+ globalObject: {
5950
+ Navigator: Navigator$LWS
5951
+ }
5952
+ } = record$LWS;
5829
5953
  const {
5830
5954
  sendBeacon: originalSendBeacon$LWS
5831
5955
  } = Navigator$LWS.prototype;
@@ -5847,10 +5971,12 @@ function distortionNavigatorSendBeacon$LWS(globalObject$LWS) {
5847
5971
  return [originalSendBeacon$LWS, sendBeacon$LWS];
5848
5972
  }
5849
5973
 
5850
- function distortionNavigatorServiceWorkerGetter$LWS(globalObject$LWS) {
5974
+ function distortionNavigatorServiceWorkerGetter$LWS(record$LWS) {
5851
5975
  const {
5852
- Navigator: Navigator$LWS
5853
- } = globalObject$LWS;
5976
+ globalObject: {
5977
+ Navigator: Navigator$LWS
5978
+ }
5979
+ } = record$LWS;
5854
5980
  const originalServiceWorkerGetter$LWS = ObjectLookupOwnGetter$LWS(Navigator$LWS.prototype, 'serviceWorker'); // istanbul ignore if: needs default platform behavior test
5855
5981
 
5856
5982
  if (typeof originalServiceWorkerGetter$LWS !== 'function') {
@@ -5862,10 +5988,12 @@ function distortionNavigatorServiceWorkerGetter$LWS(globalObject$LWS) {
5862
5988
  return [originalServiceWorkerGetter$LWS, get$LWS];
5863
5989
  }
5864
5990
 
5865
- function distortionNodeInsertBefore$LWS(globalObject$LWS) {
5991
+ function distortionNodeInsertBefore$LWS(record$LWS) {
5866
5992
  const {
5867
- Node: Node$LWS
5868
- } = globalObject$LWS;
5993
+ globalObject: {
5994
+ Node: Node$LWS
5995
+ }
5996
+ } = record$LWS;
5869
5997
  const {
5870
5998
  insertBefore: originalInsertBefore$LWS
5871
5999
  } = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -5878,7 +6006,7 @@ function distortionNodeInsertBefore$LWS(globalObject$LWS) {
5878
6006
  const {
5879
6007
  isSharedElement: isSharedElement$LWS,
5880
6008
  isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
5881
- } = getValidator$LWS(window);
6009
+ } = getValidator$LWS(record$LWS.top);
5882
6010
 
5883
6011
  function insertBefore$LWS(...args$LWS) {
5884
6012
  // Node.prototype.insertBefore accepts two arguments. The first is the
@@ -5902,14 +6030,13 @@ function distortionNodeInsertBefore$LWS(globalObject$LWS) {
5902
6030
  return [originalInsertBefore$LWS, insertBefore$LWS];
5903
6031
  }
5904
6032
 
5905
- function distortionNodeValueSetter$LWS(globalObject$LWS, options$LWS) {
6033
+ function distortionNodeValueSetter$LWS(record$LWS) {
5906
6034
  const {
5907
- key: key$LWS
5908
- } = options$LWS;
5909
- const {
5910
- Attr: Attr$LWS,
5911
- Node: Node$LWS
5912
- } = globalObject$LWS;
6035
+ globalObject: {
6036
+ Attr: Attr$LWS,
6037
+ Node: Node$LWS
6038
+ }
6039
+ } = record$LWS;
5913
6040
  const originalNodeValueSetter$LWS = ObjectLookupOwnSetter$LWS(Node$LWS.prototype, 'nodeValue');
5914
6041
 
5915
6042
  function nodeValue$LWS(value$LWS) {
@@ -5927,7 +6054,7 @@ function distortionNodeValueSetter$LWS(globalObject$LWS, options$LWS) {
5927
6054
  const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, this, []);
5928
6055
  const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, this, []);
5929
6056
  const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
5930
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
6057
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
5931
6058
 
5932
6059
  if (distortion$LWS) {
5933
6060
  return ReflectApply$LWS(distortion$LWS, ownerEl$LWS, [value$LWS]);
@@ -5941,10 +6068,12 @@ function distortionNodeValueSetter$LWS(globalObject$LWS, options$LWS) {
5941
6068
  return [originalNodeValueSetter$LWS, nodeValue$LWS];
5942
6069
  }
5943
6070
 
5944
- function distortionNodeRemoveChild$LWS(globalObject$LWS) {
6071
+ function distortionNodeRemoveChild$LWS(record$LWS) {
5945
6072
  const {
5946
- Node: Node$LWS
5947
- } = globalObject$LWS;
6073
+ globalObject: {
6074
+ Node: Node$LWS
6075
+ }
6076
+ } = record$LWS;
5948
6077
  const {
5949
6078
  removeChild: originalRemoveChild$LWS
5950
6079
  } = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -5956,7 +6085,7 @@ function distortionNodeRemoveChild$LWS(globalObject$LWS) {
5956
6085
 
5957
6086
  const {
5958
6087
  isSharedElement: isSharedElement$LWS
5959
- } = getValidator$LWS(window);
6088
+ } = getValidator$LWS(record$LWS.top);
5960
6089
 
5961
6090
  function removeChild$LWS(...args$LWS) {
5962
6091
  // Node.prototype.removeChild only accepts one child argument.
@@ -5979,10 +6108,12 @@ function distortionNodeRemoveChild$LWS(globalObject$LWS) {
5979
6108
  return [originalRemoveChild$LWS, removeChild$LWS];
5980
6109
  }
5981
6110
 
5982
- function distortionNodeReplaceChild$LWS(globalObject$LWS) {
6111
+ function distortionNodeReplaceChild$LWS(record$LWS) {
5983
6112
  const {
5984
- Node: Node$LWS
5985
- } = globalObject$LWS;
6113
+ globalObject: {
6114
+ Node: Node$LWS
6115
+ }
6116
+ } = record$LWS;
5986
6117
  const {
5987
6118
  replaceChild: originalReplaceChild$LWS
5988
6119
  } = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
@@ -5994,7 +6125,7 @@ function distortionNodeReplaceChild$LWS(globalObject$LWS) {
5994
6125
 
5995
6126
  const {
5996
6127
  isSharedElement: isSharedElement$LWS
5997
- } = getValidator$LWS(window);
6128
+ } = getValidator$LWS(record$LWS.top);
5998
6129
 
5999
6130
  function replaceChild$LWS(...args$LWS) {
6000
6131
  // Node.prototype.replaceChild accepts two child element arguments. If the "old element"
@@ -6020,14 +6151,13 @@ function distortionNodeReplaceChild$LWS(globalObject$LWS) {
6020
6151
  return [originalReplaceChild$LWS, replaceChild$LWS];
6021
6152
  }
6022
6153
 
6023
- function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
6154
+ function distortionNodeTextContentSetter$LWS(record$LWS) {
6024
6155
  const {
6025
- key: key$LWS
6026
- } = options$LWS;
6027
- const {
6028
- Attr: Attr$LWS,
6029
- Node: Node$LWS
6030
- } = globalObject$LWS;
6156
+ globalObject: {
6157
+ Attr: Attr$LWS,
6158
+ Node: Node$LWS
6159
+ }
6160
+ } = record$LWS;
6031
6161
  const originalTextContentSetter$LWS = ObjectLookupOwnSetter$LWS(Node$LWS.prototype, 'textContent'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
6032
6162
  // "globalObject" because future magenta objects (arbitrary user-code created global objects)
6033
6163
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
@@ -6037,7 +6167,7 @@ function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
6037
6167
 
6038
6168
  const {
6039
6169
  isSharedElement: isSharedElement$LWS
6040
- } = getValidator$LWS(window);
6170
+ } = getValidator$LWS(record$LWS.top);
6041
6171
 
6042
6172
  function textContent$LWS(value$LWS) {
6043
6173
  const valueAsString$LWS = toString$LWS(value$LWS); // There are two existence of the attribute textContent, one on Attr and one on Node.
@@ -6059,7 +6189,7 @@ function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
6059
6189
  const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, this, []);
6060
6190
  const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, this, []);
6061
6191
  const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
6062
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
6192
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
6063
6193
 
6064
6194
  if (distortion$LWS) {
6065
6195
  return ReflectApply$LWS(distortion$LWS, ownerEl$LWS, [valueAsString$LWS]);
@@ -6077,10 +6207,12 @@ function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
6077
6207
  return [originalTextContentSetter$LWS, textContent$LWS];
6078
6208
  }
6079
6209
 
6080
- function distortionNotificationCtor$LWS(globalObject$LWS) {
6210
+ function distortionNotificationCtor$LWS(record$LWS) {
6081
6211
  const {
6082
- Notification: originalNotificationCtor$LWS
6083
- } = globalObject$LWS; // istanbul ignore if: needs default platform behavior test
6212
+ globalObject: {
6213
+ Notification: originalNotificationCtor$LWS
6214
+ }
6215
+ } = record$LWS; // istanbul ignore if: needs default platform behavior test
6084
6216
 
6085
6217
  if (typeof originalNotificationCtor$LWS !== 'function') {
6086
6218
  return null;
@@ -6097,10 +6229,12 @@ function distortionNotificationCtor$LWS(globalObject$LWS) {
6097
6229
  return [originalNotificationCtor$LWS, Notification$LWS];
6098
6230
  }
6099
6231
 
6100
- function distortionRangeCreateContextualFragment$LWS(globalObject$LWS) {
6232
+ function distortionRangeCreateContextualFragment$LWS(record$LWS) {
6101
6233
  const {
6102
- Range: Range$LWS
6103
- } = globalObject$LWS;
6234
+ globalObject: {
6235
+ Range: Range$LWS
6236
+ }
6237
+ } = record$LWS;
6104
6238
  const {
6105
6239
  createContextualFragment: originalCreateContextualFragment$LWS
6106
6240
  } = Range$LWS.prototype;
@@ -6122,23 +6256,49 @@ function distortionRangeCreateContextualFragment$LWS(globalObject$LWS) {
6122
6256
  return [originalCreateContextualFragment$LWS, createContextualFragment$LWS];
6123
6257
  }
6124
6258
 
6125
- function distortionRangeDeleteContents$LWS(globalObject$LWS) {
6259
+ function distortionRangeDeleteContents$LWS(record$LWS) {
6126
6260
  const {
6127
- Range: Range$LWS
6128
- } = globalObject$LWS;
6261
+ globalObject: {
6262
+ AbstractRange: AbstractRange$LWS,
6263
+ Range: Range$LWS
6264
+ }
6265
+ } = record$LWS;
6129
6266
  const {
6130
- deleteContents: originalDeleteContents$LWS,
6131
- cloneContents: originalCloneContents$LWS
6132
- } = Range$LWS.prototype;
6267
+ deleteContents: originalDeleteContents$LWS
6268
+ } = Range$LWS.prototype; // Chrome <= 89, Edge <= 89, Safari <= 14, Firefox <= 68, Mobile Safari <= 14.4:
6269
+ // endContainer/startContainer are defined on Range.prototype
6270
+ //
6271
+ // Chrome >= 90, Edge >= 90, Safari >= 14.1, Firefox >= 69, Mobile Safari >= 14.5:
6272
+ // endContainer/startContainer are defined on AbstractRange.prototype
6273
+ //
6274
+ // istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
6275
+
6276
+ const {
6277
+ prototype: AbstractRangeProto$LWS
6278
+ } = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
6279
+ const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'endContainer');
6280
+ const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'startContainer'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
6281
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
6282
+ // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
6283
+ // content window). Using the provided "globalObject" here would result in receiving a validator
6284
+ // bound to the magenta global object, which would erroneously prevent code from interacting
6285
+ // with that document's <html>, <head> and <body>.
6286
+
6287
+ const {
6288
+ isSharedElement: isSharedElement$LWS
6289
+ } = getValidator$LWS(record$LWS.top);
6133
6290
 
6134
6291
  function deleteContents$LWS(...args$LWS) {
6135
- // In order to search the selected objects of a Range,
6136
- // we need to convert the nodes in the Range into a DocumentFragment.
6137
- const clonedContentsFragment$LWS = ReflectApply$LWS(originalCloneContents$LWS, this, []);
6138
- const elementFound$LWS = ReflectApply$LWS(DocumentFragmentProtoQuerySelector$LWS, clonedContentsFragment$LWS, ['html,head,body']);
6292
+ const containers$LWS = [ReflectApply$LWS(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS(originalStartContainerGetter$LWS, this, [])];
6139
6293
 
6140
- if (elementFound$LWS) {
6141
- throw new LockerSecurityError$LWS(`Cannot delete contents of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, elementFound$LWS, [])}.`);
6294
+ for (let i$LWS = 0, {
6295
+ length: length$LWS
6296
+ } = containers$LWS; i$LWS < length$LWS; i$LWS += 1) {
6297
+ const container$LWS = containers$LWS[i$LWS];
6298
+
6299
+ if (isSharedElement$LWS(container$LWS)) {
6300
+ throw new LockerSecurityError$LWS(`Cannot delete contents of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, container$LWS, [])}.`);
6301
+ }
6142
6302
  }
6143
6303
 
6144
6304
  return ReflectApply$LWS(originalDeleteContents$LWS, this, args$LWS);
@@ -6147,23 +6307,49 @@ function distortionRangeDeleteContents$LWS(globalObject$LWS) {
6147
6307
  return [originalDeleteContents$LWS, deleteContents$LWS];
6148
6308
  }
6149
6309
 
6150
- function distortionRangeExtractContents$LWS(globalObject$LWS) {
6310
+ function distortionRangeExtractContents$LWS(record$LWS) {
6151
6311
  const {
6152
- Range: Range$LWS
6153
- } = globalObject$LWS;
6312
+ globalObject: {
6313
+ AbstractRange: AbstractRange$LWS,
6314
+ Range: Range$LWS
6315
+ }
6316
+ } = record$LWS;
6154
6317
  const {
6155
- extractContents: originalExtractContents$LWS,
6156
- cloneContents: originalCloneContents$LWS
6157
- } = Range$LWS.prototype;
6318
+ extractContents: originalExtractContents$LWS
6319
+ } = Range$LWS.prototype; // Chrome <= 89, Edge <= 89, Safari <= 14, Firefox <= 68, Mobile Safari <= 14.4:
6320
+ // endContainer/startContainer are defined on Range.prototype
6321
+ //
6322
+ // Chrome >= 90, Edge >= 90, Safari >= 14.1, Firefox >= 69, Mobile Safari >= 14.5:
6323
+ // endContainer/startContainer are defined on AbstractRange.prototype
6324
+ //
6325
+ // istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
6326
+
6327
+ const {
6328
+ prototype: AbstractRangeProto$LWS
6329
+ } = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
6330
+ const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'endContainer');
6331
+ const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'startContainer'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
6332
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
6333
+ // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
6334
+ // content window). Using the provided "globalObject" here would result in receiving a validator
6335
+ // bound to the magenta global object, which would erroneously prevent code from interacting
6336
+ // with that document's <html>, <head> and <body>.
6337
+
6338
+ const {
6339
+ isSharedElement: isSharedElement$LWS
6340
+ } = getValidator$LWS(record$LWS.top);
6158
6341
 
6159
6342
  function extractContents$LWS(...args$LWS) {
6160
- // In order to search the selected objects of a Range,
6161
- // we need to convert the nodes in the Range into a DocumentFragment.
6162
- const clonedContentsFragment$LWS = ReflectApply$LWS(originalCloneContents$LWS, this, []);
6163
- const elementFound$LWS = ReflectApply$LWS(DocumentFragmentProtoQuerySelector$LWS, clonedContentsFragment$LWS, ['html,head,body']);
6343
+ const containers$LWS = [ReflectApply$LWS(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS(originalStartContainerGetter$LWS, this, [])];
6344
+
6345
+ for (let i$LWS = 0, {
6346
+ length: length$LWS
6347
+ } = containers$LWS; i$LWS < length$LWS; i$LWS += 1) {
6348
+ const container$LWS = containers$LWS[i$LWS];
6164
6349
 
6165
- if (elementFound$LWS) {
6166
- throw new LockerSecurityError$LWS(`Cannot extract contents of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, elementFound$LWS, [])}.`);
6350
+ if (isSharedElement$LWS(container$LWS)) {
6351
+ throw new LockerSecurityError$LWS(`Cannot extract contents of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, container$LWS, [])}.`);
6352
+ }
6167
6353
  }
6168
6354
 
6169
6355
  return ReflectApply$LWS(originalExtractContents$LWS, this, args$LWS);
@@ -6172,7 +6358,7 @@ function distortionRangeExtractContents$LWS(globalObject$LWS) {
6172
6358
  return [originalExtractContents$LWS, extractContents$LWS];
6173
6359
  }
6174
6360
 
6175
- function distortionRangeInsertNode$LWS(globalObject$LWS) {
6361
+ function distortionRangeInsertNode$LWS(record$LWS) {
6176
6362
  // IMPORTANT! This validator MUST use the "window" global object, and not the provided
6177
6363
  // "globalObject" because future magenta objects (arbitrary user-code created global objects)
6178
6364
  // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
@@ -6182,10 +6368,12 @@ function distortionRangeInsertNode$LWS(globalObject$LWS) {
6182
6368
  const {
6183
6369
  isSharedElement: isSharedElement$LWS,
6184
6370
  isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
6185
- } = getValidator$LWS(window);
6371
+ } = getValidator$LWS(record$LWS.top);
6186
6372
  const {
6187
- Range: Range$LWS
6188
- } = globalObject$LWS;
6373
+ globalObject: {
6374
+ Range: Range$LWS
6375
+ }
6376
+ } = record$LWS;
6189
6377
  const {
6190
6378
  insertNode: originalInsertNode$LWS
6191
6379
  } = Range$LWS.prototype;
@@ -6212,10 +6400,63 @@ function distortionRangeInsertNode$LWS(globalObject$LWS) {
6212
6400
  return [originalInsertNode$LWS, insertNode$LWS];
6213
6401
  }
6214
6402
 
6215
- function distortionServiceWorkerContainer$LWS(globalObject$LWS) {
6403
+ function createRangeProtoMethodDistortionFactory$LWS(methodName$LWS) {
6404
+ return function distortionContentWindowGetter$LWS(record$LWS) {
6405
+ const {
6406
+ globalObject: {
6407
+ Range: Range$LWS
6408
+ }
6409
+ } = record$LWS;
6410
+ const {
6411
+ prototype: RangeProto$LWS
6412
+ } = Range$LWS;
6413
+ const {
6414
+ [methodName$LWS]: originalMethod$LWS
6415
+ } = RangeProto$LWS; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
6416
+ // "globalObject" because magenta objects (arbitrary user-code created global objects)
6417
+ // must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
6418
+ // content window). Using the provided "globalObject" here would result in receiving a validator
6419
+ // bound to the magenta global object, which would erroneously prevent code from interacting
6420
+ // with that document's <html>, <head> and <body>.
6421
+
6422
+ const {
6423
+ isSharedElement: isSharedElement$LWS
6424
+ } = getValidator$LWS(record$LWS.top);
6425
+
6426
+ function method$LWS(...args$LWS) {
6427
+ if (args$LWS.length) {
6428
+ const {
6429
+ 0: node$LWS
6430
+ } = args$LWS; // istanbul ignore else: needs default platform behavior test
6431
+
6432
+ if (isSharedElement$LWS(node$LWS)) {
6433
+ throw new LockerSecurityError$LWS(`Cannot call ${methodName$LWS} with ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, node$LWS, []))}.`);
6434
+ }
6435
+ }
6436
+
6437
+ return ReflectApply$LWS(originalMethod$LWS, this, args$LWS);
6438
+ }
6439
+
6440
+ return [originalMethod$LWS, method$LWS];
6441
+ };
6442
+ }
6443
+
6444
+ const distortionRangeSetEnd$LWS = createRangeProtoMethodDistortionFactory$LWS('setEnd');
6445
+ const distortionRangeSelectNode$LWS = createRangeProtoMethodDistortionFactory$LWS('selectNode');
6446
+ const distortionRangeSelectNodeContents$LWS = createRangeProtoMethodDistortionFactory$LWS('selectNodeContents');
6447
+ const distortionRangeSetEndAfter$LWS = createRangeProtoMethodDistortionFactory$LWS('setEndAfter');
6448
+ const distortionRangeSetEndBefore$LWS = createRangeProtoMethodDistortionFactory$LWS('setEndBefore');
6449
+ const distortionRangeSetStart$LWS = createRangeProtoMethodDistortionFactory$LWS('setStart');
6450
+ const distortionRangeSetStartAfter$LWS = createRangeProtoMethodDistortionFactory$LWS('setStartAfter');
6451
+ const distortionRangeSetStartBefore$LWS = createRangeProtoMethodDistortionFactory$LWS('setStartBefore');
6452
+ const distortionRangeSurroundContents$LWS = createRangeProtoMethodDistortionFactory$LWS('surroundContents');
6453
+
6454
+ function distortionServiceWorkerContainer$LWS(record$LWS) {
6216
6455
  const {
6217
- ServiceWorkerContainer: ServiceWorkerContainer$LWS
6218
- } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6456
+ globalObject: {
6457
+ ServiceWorkerContainer: ServiceWorkerContainer$LWS
6458
+ }
6459
+ } = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6219
6460
 
6220
6461
  if (typeof ServiceWorkerContainer$LWS !== 'function') {
6221
6462
  return null;
@@ -6227,10 +6468,12 @@ function distortionServiceWorkerContainer$LWS(globalObject$LWS) {
6227
6468
  return [originalPrototype$LWS, createRevokedProxy$LWS(originalPrototype$LWS)];
6228
6469
  }
6229
6470
 
6230
- function distortionShadowRootInnerHTMLSetter$LWS(globalObject$LWS) {
6471
+ function distortionShadowRootInnerHTMLSetter$LWS(record$LWS) {
6231
6472
  const {
6232
- ShadowRoot: ShadowRoot$LWS
6233
- } = globalObject$LWS;
6473
+ globalObject: {
6474
+ ShadowRoot: ShadowRoot$LWS
6475
+ }
6476
+ } = record$LWS;
6234
6477
  const originalInnerHTMLSetter$LWS = ObjectLookupOwnSetter$LWS(ShadowRoot$LWS.prototype, 'innerHTML');
6235
6478
 
6236
6479
  function innerHTML$LWS(value$LWS) {
@@ -6240,10 +6483,12 @@ function distortionShadowRootInnerHTMLSetter$LWS(globalObject$LWS) {
6240
6483
  return [originalInnerHTMLSetter$LWS, innerHTML$LWS];
6241
6484
  }
6242
6485
 
6243
- function distortionShadowRootModeGetter$LWS(globalObject$LWS) {
6486
+ function distortionShadowRootModeGetter$LWS(record$LWS) {
6244
6487
  const {
6245
- ShadowRoot: ShadowRoot$LWS
6246
- } = globalObject$LWS;
6488
+ globalObject: {
6489
+ ShadowRoot: ShadowRoot$LWS
6490
+ }
6491
+ } = record$LWS;
6247
6492
  const originalModeGetter$LWS = ObjectLookupOwnGetter$LWS(ShadowRoot$LWS.prototype, 'mode');
6248
6493
 
6249
6494
  function mode$LWS() {
@@ -6253,10 +6498,12 @@ function distortionShadowRootModeGetter$LWS(globalObject$LWS) {
6253
6498
  return [originalModeGetter$LWS, mode$LWS];
6254
6499
  }
6255
6500
 
6256
- function distortionSharedWorkerCtor$LWS(globalObject$LWS) {
6501
+ function distortionSharedWorkerCtor$LWS(record$LWS) {
6257
6502
  const {
6258
- SharedWorker: originalSharedWorkerCtor$LWS
6259
- } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6503
+ globalObject: {
6504
+ SharedWorker: originalSharedWorkerCtor$LWS
6505
+ }
6506
+ } = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6260
6507
 
6261
6508
  if (typeof originalSharedWorkerCtor$LWS !== 'function') {
6262
6509
  return null;
@@ -6269,10 +6516,12 @@ function distortionSharedWorkerCtor$LWS(globalObject$LWS) {
6269
6516
  return [originalSharedWorkerCtor$LWS, SharedWorker$LWS];
6270
6517
  }
6271
6518
 
6272
- function distortionSharedWorkerProto$LWS(globalObject$LWS) {
6519
+ function distortionSharedWorkerProto$LWS(record$LWS) {
6273
6520
  const {
6274
- SharedWorker: SharedWorker$LWS
6275
- } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6521
+ globalObject: {
6522
+ SharedWorker: SharedWorker$LWS
6523
+ }
6524
+ } = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6276
6525
 
6277
6526
  if (typeof SharedWorker$LWS !== 'function') {
6278
6527
  return null;
@@ -6583,9 +6832,13 @@ const {
6583
6832
  const patchedStorageProtoLengthGetter$LWS = ObjectLookupOwnGetter$LWS(PatchedStorageProto$LWS, 'length');
6584
6833
 
6585
6834
  function createDistortionStorageFactory$LWS(storageName$LWS) {
6586
- return function distortionStorageFactory$LWS(globalObject$LWS, options$LWS) {
6587
- // Depending on browser configuration the storage object may be `null`
6835
+ return function distortionStorageFactory$LWS(record$LWS) {
6836
+ const {
6837
+ globalObject: globalObject$LWS,
6838
+ key: key$LWS
6839
+ } = record$LWS; // Depending on browser configuration the storage object may be `null`
6588
6840
  // or throw an exception when its getter is accessed.
6841
+
6589
6842
  let originalStorageObject$LWS;
6590
6843
 
6591
6844
  try {
@@ -6597,89 +6850,99 @@ function createDistortionStorageFactory$LWS(storageName$LWS) {
6597
6850
  return null;
6598
6851
  }
6599
6852
 
6600
- const {
6601
- key: key$LWS
6602
- } = options$LWS;
6603
6853
  const patchedStorageObject$LWS = createStorage$LWS(originalStorageObject$LWS, getStorageRootKey$LWS(key$LWS));
6604
6854
  return [originalStorageObject$LWS, patchedStorageObject$LWS];
6605
6855
  };
6606
6856
  }
6607
6857
 
6608
- function distortionStorageLength$LWS(globalObject$LWS) {
6858
+ function distortionStorageLength$LWS(record$LWS) {
6609
6859
  const {
6610
- Storage: Storage$LWS
6611
- } = globalObject$LWS;
6860
+ globalObject: {
6861
+ Storage: Storage$LWS
6862
+ }
6863
+ } = record$LWS;
6612
6864
  const originalLengthGetter$LWS = ObjectLookupOwnGetter$LWS(Storage$LWS.prototype, 'length');
6613
6865
  return [originalLengthGetter$LWS, patchedStorageProtoLengthGetter$LWS];
6614
6866
  }
6615
6867
 
6616
- function distortionStorageGetItem$LWS(globalObject$LWS) {
6868
+ function distortionStorageGetItem$LWS(record$LWS) {
6617
6869
  const {
6618
- Storage: Storage$LWS
6619
- } = globalObject$LWS;
6870
+ globalObject: {
6871
+ Storage: Storage$LWS
6872
+ }
6873
+ } = record$LWS;
6620
6874
  const {
6621
6875
  getItem: originalStorageGetItem$LWS
6622
6876
  } = Storage$LWS.prototype;
6623
6877
  return [originalStorageGetItem$LWS, patchedStorageProtoGetItem$LWS];
6624
6878
  }
6625
6879
 
6626
- function distortionStorageSetItem$LWS(globalObject$LWS) {
6880
+ function distortionStorageSetItem$LWS(record$LWS) {
6627
6881
  const {
6628
- Storage: Storage$LWS
6629
- } = globalObject$LWS;
6882
+ globalObject: {
6883
+ Storage: Storage$LWS
6884
+ }
6885
+ } = record$LWS;
6630
6886
  const {
6631
6887
  setItem: originalStorageSetItem$LWS
6632
6888
  } = Storage$LWS.prototype;
6633
6889
  return [originalStorageSetItem$LWS, patchedStorageProtoSetItem$LWS];
6634
6890
  }
6635
6891
 
6636
- function distortionStorageKey$LWS(globalObject$LWS) {
6892
+ function distortionStorageKey$LWS(record$LWS) {
6637
6893
  const {
6638
- Storage: Storage$LWS
6639
- } = globalObject$LWS;
6894
+ globalObject: {
6895
+ Storage: Storage$LWS
6896
+ }
6897
+ } = record$LWS;
6640
6898
  const {
6641
6899
  key: originalStorageKey$LWS
6642
6900
  } = Storage$LWS.prototype;
6643
6901
  return [originalStorageKey$LWS, patchedStorageProtoKey$LWS];
6644
6902
  }
6645
6903
 
6646
- function distortionStorageRemoveItem$LWS(globalObject$LWS) {
6904
+ function distortionStorageRemoveItem$LWS(record$LWS) {
6647
6905
  const {
6648
- Storage: Storage$LWS
6649
- } = globalObject$LWS;
6906
+ globalObject: {
6907
+ Storage: Storage$LWS
6908
+ }
6909
+ } = record$LWS;
6650
6910
  const {
6651
6911
  removeItem: originalStorageRemoveItem$LWS
6652
6912
  } = Storage$LWS.prototype;
6653
6913
  return [originalStorageRemoveItem$LWS, patchedStorageProtoRemoveItem$LWS];
6654
6914
  }
6655
6915
 
6656
- function distortionStorageClear$LWS(globalObject$LWS) {
6916
+ function distortionStorageClear$LWS(record$LWS) {
6657
6917
  const {
6658
- Storage: Storage$LWS
6659
- } = globalObject$LWS;
6918
+ globalObject: {
6919
+ Storage: Storage$LWS
6920
+ }
6921
+ } = record$LWS;
6660
6922
  const {
6661
6923
  clear: originalStorageClear$LWS
6662
6924
  } = Storage$LWS.prototype;
6663
6925
  return [originalStorageClear$LWS, patchedStorageProtoClear$LWS];
6664
6926
  }
6665
6927
 
6666
- function distortionStorage$LWS(globalObject$LWS) {
6928
+ function distortionStorage$LWS(record$LWS) {
6667
6929
  const {
6668
- Storage: Storage$LWS
6669
- } = globalObject$LWS;
6930
+ globalObject: {
6931
+ Storage: Storage$LWS
6932
+ }
6933
+ } = record$LWS;
6670
6934
  return [Storage$LWS, PatchedStorage$LWS];
6671
6935
  }
6672
6936
 
6673
6937
  const distortionLocalStorage$LWS = createDistortionStorageFactory$LWS('localStorage');
6674
6938
  const distortionSessionStorage$LWS = createDistortionStorageFactory$LWS('sessionStorage');
6675
6939
 
6676
- function distortionSVGAnimateElementAttributeNameAttribute$LWS(globalObject$LWS, options$LWS) {
6677
- const {
6678
- key: key$LWS
6679
- } = options$LWS;
6940
+ function distortionSVGAnimateElementAttributeNameAttribute$LWS(record$LWS) {
6680
6941
  const {
6681
- SVGAnimateElement: SVGAnimateElement$LWS
6682
- } = globalObject$LWS;
6942
+ globalObject: {
6943
+ SVGAnimateElement: SVGAnimateElement$LWS
6944
+ }
6945
+ } = record$LWS;
6683
6946
  const {
6684
6947
  setAttribute: originalSetAttribute$LWS
6685
6948
  } = Element.prototype;
@@ -6689,7 +6952,7 @@ function distortionSVGAnimateElementAttributeNameAttribute$LWS(globalObject$LWS,
6689
6952
  const originalAttributeValue$LWS = ReflectApply$LWS(ElementProtoGetAttribute$LWS, el$LWS, [attrName$LWS]);
6690
6953
 
6691
6954
  if (originalAttributeValue$LWS) {
6692
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, el$LWS, attrName$LWS);
6955
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, el$LWS, attrName$LWS);
6693
6956
 
6694
6957
  if (distortion$LWS) {
6695
6958
  ReflectApply$LWS(distortion$LWS, el$LWS, [originalAttributeValue$LWS]);
@@ -6708,14 +6971,16 @@ function distortionSVGAnimateElementAttributeNameAttribute$LWS(globalObject$LWS,
6708
6971
  }
6709
6972
  }
6710
6973
 
6711
- registerElementSetDistortion$LWS(globalObject$LWS, SVGAnimateElement$LWS, 'attributeName', NAMESPACE_DEFAULT$LWS, attributeName$LWS);
6974
+ registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'attributeName', NAMESPACE_DEFAULT$LWS, attributeName$LWS);
6712
6975
  return null;
6713
6976
  }
6714
6977
 
6715
- function distortionSVGAnimateElementFromAttribute$LWS(globalObject$LWS) {
6978
+ function distortionSVGAnimateElementFromAttribute$LWS(record$LWS) {
6716
6979
  const {
6717
- SVGAnimateElement: SVGAnimateElement$LWS
6718
- } = globalObject$LWS;
6980
+ globalObject: {
6981
+ SVGAnimateElement: SVGAnimateElement$LWS
6982
+ }
6983
+ } = record$LWS;
6719
6984
  const {
6720
6985
  setAttribute: originalSetAttribute$LWS
6721
6986
  } = Element.prototype;
@@ -6728,14 +6993,16 @@ function distortionSVGAnimateElementFromAttribute$LWS(globalObject$LWS) {
6728
6993
  ReflectApply$LWS(originalSetAttribute$LWS, this, ['from', value$LWS]);
6729
6994
  }
6730
6995
 
6731
- registerElementSetDistortion$LWS(globalObject$LWS, SVGAnimateElement$LWS, 'from', NAMESPACE_DEFAULT$LWS, from$LWS);
6996
+ registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'from', NAMESPACE_DEFAULT$LWS, from$LWS);
6732
6997
  return null;
6733
6998
  }
6734
6999
 
6735
- function distortionSVGAnimateElementToAttribute$LWS(globalObject$LWS) {
7000
+ function distortionSVGAnimateElementToAttribute$LWS(record$LWS) {
6736
7001
  const {
6737
- SVGAnimateElement: SVGAnimateElement$LWS
6738
- } = globalObject$LWS;
7002
+ globalObject: {
7003
+ SVGAnimateElement: SVGAnimateElement$LWS
7004
+ }
7005
+ } = record$LWS;
6739
7006
  const {
6740
7007
  setAttribute: originalSetAttribute$LWS
6741
7008
  } = Element.prototype;
@@ -6748,14 +7015,16 @@ function distortionSVGAnimateElementToAttribute$LWS(globalObject$LWS) {
6748
7015
  ReflectApply$LWS(originalSetAttribute$LWS, this, ['to', value$LWS]);
6749
7016
  }
6750
7017
 
6751
- registerElementSetDistortion$LWS(globalObject$LWS, SVGAnimateElement$LWS, 'to', NAMESPACE_DEFAULT$LWS, to$LWS);
7018
+ registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'to', NAMESPACE_DEFAULT$LWS, to$LWS);
6752
7019
  return null;
6753
7020
  }
6754
7021
 
6755
- function distortionSVGAnimateElementValuesAttribute$LWS(globalObject$LWS) {
7022
+ function distortionSVGAnimateElementValuesAttribute$LWS(record$LWS) {
6756
7023
  const {
6757
- SVGAnimateElement: SVGAnimateElement$LWS
6758
- } = globalObject$LWS;
7024
+ globalObject: {
7025
+ SVGAnimateElement: SVGAnimateElement$LWS
7026
+ }
7027
+ } = record$LWS;
6759
7028
  const {
6760
7029
  setAttribute: originalSetAttribute$LWS
6761
7030
  } = Element.prototype;
@@ -6779,14 +7048,16 @@ function distortionSVGAnimateElementValuesAttribute$LWS(globalObject$LWS) {
6779
7048
  ReflectApply$LWS(originalSetAttribute$LWS, this, ['values', returnValues$LWS]);
6780
7049
  }
6781
7050
 
6782
- registerElementSetDistortion$LWS(globalObject$LWS, SVGAnimateElement$LWS, 'values', NAMESPACE_DEFAULT$LWS, values$LWS);
7051
+ registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'values', NAMESPACE_DEFAULT$LWS, values$LWS);
6783
7052
  return null;
6784
7053
  }
6785
7054
 
6786
- function distortionSVGElementDatasetGetter$LWS(globalObject$LWS) {
7055
+ function distortionSVGElementDatasetGetter$LWS(record$LWS) {
6787
7056
  const {
6788
- SVGElement: SVGElement$LWS
6789
- } = globalObject$LWS;
7057
+ globalObject: {
7058
+ SVGElement: SVGElement$LWS
7059
+ }
7060
+ } = record$LWS;
6790
7061
  const originalDatasetGetter$LWS = ObjectLookupOwnGetter$LWS(SVGElement$LWS.prototype, 'dataset');
6791
7062
 
6792
7063
  function dataset$LWS() {
@@ -6796,25 +7067,23 @@ function distortionSVGElementDatasetGetter$LWS(globalObject$LWS) {
6796
7067
  return [originalDatasetGetter$LWS, dataset$LWS];
6797
7068
  }
6798
7069
 
6799
- function distortionSVGScriptElementHrefAttribute$LWS(globalObject$LWS, options$LWS) {
6800
- const {
6801
- evaluator: evaluator$LWS
6802
- } = options$LWS;
7070
+ function distortionSVGScriptElementHrefAttribute$LWS(record$LWS) {
6803
7071
  const {
6804
- SVGScriptElement: SVGScriptElement$LWS
6805
- } = globalObject$LWS;
6806
- registerElementSetDistortion$LWS(globalObject$LWS, SVGScriptElement$LWS, 'href', NAMESPACE_XLINK$LWS, createScriptDistortion$LWS('href', SVGElementProtoDatasetGetter$LWS, evaluator$LWS));
6807
- registerElementSetDistortion$LWS(globalObject$LWS, SVGScriptElement$LWS, 'xlink:href', NAMESPACE_XLINK$LWS, createScriptDistortion$LWS('xlink:href', SVGElementProtoDatasetGetter$LWS, evaluator$LWS));
7072
+ globalObject: {
7073
+ SVGScriptElement: SVGScriptElement$LWS
7074
+ }
7075
+ } = record$LWS;
7076
+ registerElementSetDistortion$LWS(record$LWS, SVGScriptElement$LWS, 'href', NAMESPACE_XLINK$LWS, createScriptDistortion$LWS(record$LWS, 'href', SVGElementProtoDatasetGetter$LWS));
7077
+ registerElementSetDistortion$LWS(record$LWS, SVGScriptElement$LWS, 'xlink:href', NAMESPACE_XLINK$LWS, createScriptDistortion$LWS(record$LWS, 'xlink:href', SVGElementProtoDatasetGetter$LWS));
6808
7078
  return null;
6809
7079
  }
6810
7080
 
6811
- function distortionSVGSetElementAttributeNameAttribute$LWS(globalObject$LWS, options$LWS) {
6812
- const {
6813
- key: key$LWS
6814
- } = options$LWS;
7081
+ function distortionSVGSetElementAttributeNameAttribute$LWS(record$LWS) {
6815
7082
  const {
6816
- SVGSetElement: SVGSetElement$LWS
6817
- } = globalObject$LWS;
7083
+ globalObject: {
7084
+ SVGSetElement: SVGSetElement$LWS
7085
+ }
7086
+ } = record$LWS;
6818
7087
  const {
6819
7088
  setAttribute: originalSetAttribute$LWS
6820
7089
  } = Element.prototype;
@@ -6824,7 +7093,7 @@ function distortionSVGSetElementAttributeNameAttribute$LWS(globalObject$LWS, opt
6824
7093
  const originalAttributeValue$LWS = ReflectApply$LWS(ElementProtoGetAttribute$LWS, el$LWS, [attrName$LWS]); // istanbul ignore else: needs default platform behavior test
6825
7094
 
6826
7095
  if (originalAttributeValue$LWS) {
6827
- const distortion$LWS = getAttributeDistortion$LWS(globalObject$LWS, key$LWS, el$LWS, attrName$LWS); // istanbul ignore else: needs default platform behavior test
7096
+ const distortion$LWS = getAttributeDistortion$LWS(record$LWS, el$LWS, attrName$LWS); // istanbul ignore else: needs default platform behavior test
6828
7097
 
6829
7098
  if (distortion$LWS) {
6830
7099
  ReflectApply$LWS(distortion$LWS, el$LWS, [originalAttributeValue$LWS]);
@@ -6841,14 +7110,16 @@ function distortionSVGSetElementAttributeNameAttribute$LWS(globalObject$LWS, opt
6841
7110
  }
6842
7111
  }
6843
7112
 
6844
- registerElementSetDistortion$LWS(globalObject$LWS, SVGSetElement$LWS, 'attributeName', NAMESPACE_DEFAULT$LWS, attributeName$LWS);
7113
+ registerElementSetDistortion$LWS(record$LWS, SVGSetElement$LWS, 'attributeName', NAMESPACE_DEFAULT$LWS, attributeName$LWS);
6845
7114
  return null;
6846
7115
  }
6847
7116
 
6848
- function distortionSVGSetElementToAttribute$LWS(globalObject$LWS) {
7117
+ function distortionSVGSetElementToAttribute$LWS(record$LWS) {
6849
7118
  const {
6850
- SVGSetElement: SVGSetElement$LWS
6851
- } = globalObject$LWS;
7119
+ globalObject: {
7120
+ SVGSetElement: SVGSetElement$LWS
7121
+ }
7122
+ } = record$LWS;
6852
7123
  const {
6853
7124
  setAttribute: originalSetAttribute$LWS
6854
7125
  } = Element.prototype;
@@ -6861,15 +7132,17 @@ function distortionSVGSetElementToAttribute$LWS(globalObject$LWS) {
6861
7132
  ReflectApply$LWS(originalSetAttribute$LWS, this, ['to', value$LWS]);
6862
7133
  }
6863
7134
 
6864
- registerElementSetDistortion$LWS(globalObject$LWS, SVGSetElement$LWS, 'to', NAMESPACE_DEFAULT$LWS, to$LWS);
7135
+ registerElementSetDistortion$LWS(record$LWS, SVGSetElement$LWS, 'to', NAMESPACE_DEFAULT$LWS, to$LWS);
6865
7136
  return null;
6866
7137
  }
6867
7138
 
6868
7139
  function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
6869
- return function distortionHrefAttributeFactory$LWS(globalObject$LWS) {
7140
+ return function distortionHrefAttributeFactory$LWS(record$LWS) {
6870
7141
  const {
6871
- SVGUseElement: SVGUseElement$LWS
6872
- } = globalObject$LWS;
7142
+ globalObject: {
7143
+ SVGUseElement: SVGUseElement$LWS
7144
+ }
7145
+ } = record$LWS;
6873
7146
  const {
6874
7147
  setAttribute: originalSetAttribute$LWS,
6875
7148
  setAttributeNS: originalSetAttributeNS$LWS
@@ -6882,7 +7155,7 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
6882
7155
  ReflectApply$LWS(originalSetAttributeNS$LWS, this, [NAMESPACE_XLINK$LWS, attributeName$LWS, returnValue$LWS]);
6883
7156
  }
6884
7157
 
6885
- registerElementSetDistortion$LWS(globalObject$LWS, SVGUseElement$LWS, attributeName$LWS, NAMESPACE_XLINK$LWS, xlinkNamespaceDistortion$LWS);
7158
+ registerElementSetDistortion$LWS(record$LWS, SVGUseElement$LWS, attributeName$LWS, NAMESPACE_XLINK$LWS, xlinkNamespaceDistortion$LWS);
6886
7159
 
6887
7160
  if (attributeName$LWS === 'href') {
6888
7161
  const defaultNamespaceDistortion$LWS = function defaultNamespaceDistortion$LWS(value$LWS) {
@@ -6892,7 +7165,7 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
6892
7165
  ReflectApply$LWS(originalSetAttribute$LWS, this, [attributeName$LWS, returnValue$LWS]);
6893
7166
  };
6894
7167
 
6895
- registerElementSetDistortion$LWS(globalObject$LWS, SVGUseElement$LWS, attributeName$LWS, NAMESPACE_DEFAULT$LWS, defaultNamespaceDistortion$LWS);
7168
+ registerElementSetDistortion$LWS(record$LWS, SVGUseElement$LWS, attributeName$LWS, NAMESPACE_DEFAULT$LWS, defaultNamespaceDistortion$LWS);
6896
7169
  }
6897
7170
 
6898
7171
  return null;
@@ -6902,10 +7175,12 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
6902
7175
  const distortionSVGUseElementHrefAttribute$LWS = createDistortionHrefAttributeFactory$LWS('href');
6903
7176
  const distortionSVGUseElementXlinkHrefAttribute$LWS = createDistortionHrefAttributeFactory$LWS('xlink:href');
6904
7177
 
6905
- function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(globalObject$LWS) {
7178
+ function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(record$LWS) {
6906
7179
  const {
6907
- TrustedTypePolicyFactory: TrustedTypePolicyFactory$LWS
6908
- } = globalObject$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
7180
+ globalObject: {
7181
+ TrustedTypePolicyFactory: TrustedTypePolicyFactory$LWS
7182
+ }
7183
+ } = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
6909
7184
 
6910
7185
  if (typeof TrustedTypePolicyFactory$LWS !== 'function') {
6911
7186
  return null;
@@ -6933,17 +7208,19 @@ function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(globalObject$LWS) {
6933
7208
 
6934
7209
  const HTML_MIME_TYPES_LIST$LWS = toSafeArray$LWS(['text/html', 'image/svg+xml', 'text/xml']);
6935
7210
 
6936
- function distortionURLCreateObjectURL$LWS(globalObject$LWS) {
7211
+ function distortionURLCreateObjectURL$LWS(record$LWS) {
6937
7212
  const {
6938
- URL: URL$LWS
6939
- } = globalObject$LWS;
7213
+ globalObject: {
7214
+ URL: URL$LWS
7215
+ }
7216
+ } = record$LWS;
6940
7217
  const {
6941
7218
  createObjectURL: originalCreateObjectURL$LWS
6942
7219
  } = URL$LWS;
6943
7220
  const {
6944
7221
  isEqualDomString: isEqualDomString$LWS,
6945
7222
  isMediaSourceObject: isMediaSourceObject$LWS
6946
- } = getValidator$LWS(globalObject$LWS);
7223
+ } = getValidator$LWS(record$LWS);
6947
7224
 
6948
7225
  function createObjectURL$LWS(blobObject$LWS) {
6949
7226
  // Create a URL object first using the native APIs.
@@ -7002,10 +7279,12 @@ function distortionURLCreateObjectURL$LWS(globalObject$LWS) {
7002
7279
  return [originalCreateObjectURL$LWS, createObjectURL$LWS];
7003
7280
  }
7004
7281
 
7005
- function distortionWindowFetch$LWS(globalObject$LWS) {
7282
+ function distortionWindowFetch$LWS(record$LWS) {
7006
7283
  const {
7007
- fetch: originalFetch$LWS
7008
- } = globalObject$LWS;
7284
+ globalObject: {
7285
+ fetch: originalFetch$LWS
7286
+ }
7287
+ } = record$LWS;
7009
7288
 
7010
7289
  function fetch$LWS(...args$LWS) {
7011
7290
  // Let the native method handle missing parameters error or null/undefined URL case.
@@ -7096,7 +7375,10 @@ class ShadowFramesPrototypeHandler$LWS extends BaseFrameHandler$LWS {}
7096
7375
 
7097
7376
  ObjectFreeze$LWS(ShadowFramesPrototypeHandler$LWS.prototype);
7098
7377
 
7099
- function distortionWindowFramesGetter$LWS(globalObject$LWS) {
7378
+ function distortionWindowFramesGetter$LWS(record$LWS) {
7379
+ const {
7380
+ globalObject: globalObject$LWS
7381
+ } = record$LWS;
7100
7382
  const originalWindowFramesGetter$LWS = ObjectLookupOwnGetter$LWS(globalObject$LWS, 'frames'); // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
7101
7383
 
7102
7384
  if (typeof originalWindowFramesGetter$LWS !== 'function') {
@@ -7277,10 +7559,12 @@ function distortionWindowFramesGetter$LWS(globalObject$LWS) {
7277
7559
  return [originalWindowFramesGetter$LWS, frames$LWS];
7278
7560
  }
7279
7561
 
7280
- function distortionWindowGetComputedStyle$LWS(globalObject$LWS) {
7562
+ function distortionWindowGetComputedStyle$LWS(record$LWS) {
7281
7563
  const {
7282
- getComputedStyle: originalGetComputedStyle$LWS
7283
- } = globalObject$LWS;
7564
+ globalObject: {
7565
+ getComputedStyle: originalGetComputedStyle$LWS
7566
+ }
7567
+ } = record$LWS;
7284
7568
 
7285
7569
  function getComputedStyle$LWS(...args$LWS) {
7286
7570
  return toLiveValue$LWS(ReflectApply$LWS(originalGetComputedStyle$LWS, this, args$LWS));
@@ -7289,7 +7573,10 @@ function distortionWindowGetComputedStyle$LWS(globalObject$LWS) {
7289
7573
  return [originalGetComputedStyle$LWS, getComputedStyle$LWS];
7290
7574
  }
7291
7575
 
7292
- function distortionWindowLengthGetter$LWS(globalObject$LWS) {
7576
+ function distortionWindowLengthGetter$LWS(record$LWS) {
7577
+ const {
7578
+ globalObject: globalObject$LWS
7579
+ } = record$LWS;
7293
7580
  const originalLengthGetter$LWS = ObjectLookupOwnGetter$LWS(globalObject$LWS, 'length'); // istanbul ignore if: currently unreachable via tests
7294
7581
 
7295
7582
  if (typeof originalLengthGetter$LWS !== 'function') {
@@ -7303,10 +7590,10 @@ function distortionWindowLengthGetter$LWS(globalObject$LWS) {
7303
7590
  return [originalLengthGetter$LWS, length$LWS];
7304
7591
  }
7305
7592
 
7306
- function distortionWindowOnstorage$LWS(globalObject$LWS, options$LWS) {
7593
+ function distortionWindowOnstorage$LWS(record$LWS) {
7307
7594
  const {
7308
- key: key$LWS
7309
- } = options$LWS;
7595
+ globalObject: globalObject$LWS
7596
+ } = record$LWS;
7310
7597
  const {
7311
7598
  Window: Window$LWS
7312
7599
  } = globalObject$LWS;
@@ -7320,14 +7607,16 @@ function distortionWindowOnstorage$LWS(globalObject$LWS, options$LWS) {
7320
7607
  throw new LockerSecurityError$LWS('Cannot set window.onstorage.');
7321
7608
  };
7322
7609
 
7323
- registerEventTargetRestriction$LWS(Window$LWS, 'storage', key$LWS);
7610
+ registerEventTargetRestriction$LWS(record$LWS, Window$LWS, 'storage');
7324
7611
  return [originalOnstorageSetter$LWS, onstorage$LWS];
7325
7612
  }
7326
7613
 
7327
- function distortionWindowOpen$LWS(globalObject$LWS) {
7614
+ function distortionWindowOpen$LWS(record$LWS) {
7328
7615
  const {
7329
- open: originalWindowOpen$LWS
7330
- } = globalObject$LWS;
7616
+ globalObject: {
7617
+ open: originalWindowOpen$LWS
7618
+ }
7619
+ } = record$LWS;
7331
7620
 
7332
7621
  function open$LWS(...args$LWS) {
7333
7622
  const sanitizedArgs$LWS = sanitizeWindowOpenArguments$LWS(args$LWS);
@@ -7337,10 +7626,12 @@ function distortionWindowOpen$LWS(globalObject$LWS) {
7337
7626
  return [originalWindowOpen$LWS, open$LWS];
7338
7627
  }
7339
7628
 
7340
- function distortionWindowPostMessage$LWS(globalObject$LWS) {
7629
+ function distortionWindowPostMessage$LWS(record$LWS) {
7341
7630
  const {
7342
- postMessage: originalPostMessage$LWS
7343
- } = globalObject$LWS;
7631
+ globalObject: {
7632
+ postMessage: originalPostMessage$LWS
7633
+ }
7634
+ } = record$LWS;
7344
7635
 
7345
7636
  function postMessage$LWS(...args$LWS) {
7346
7637
  // istanbul ignore else: needs default platform behavior test
@@ -7350,19 +7641,20 @@ function distortionWindowPostMessage$LWS(globalObject$LWS) {
7350
7641
  args$LWS = partialStructuredClone$LWS(args$LWS);
7351
7642
  }
7352
7643
 
7353
- return ReflectApply$LWS(originalPostMessage$LWS, globalObject$LWS, args$LWS);
7644
+ return ReflectApply$LWS(originalPostMessage$LWS, this, args$LWS);
7354
7645
  }
7355
7646
 
7356
7647
  return [originalPostMessage$LWS, postMessage$LWS];
7357
7648
  }
7358
7649
 
7359
- function distortionWindowSetInterval$LWS(globalObject$LWS, options$LWS) {
7360
- const {
7361
- evaluator: evaluator$LWS
7362
- } = options$LWS;
7650
+ function distortionWindowSetInterval$LWS(record$LWS) {
7363
7651
  const {
7364
- setInterval: originalSetInterval$LWS
7365
- } = globalObject$LWS;
7652
+ UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
7653
+ globalObject: {
7654
+ setInterval: originalSetInterval$LWS
7655
+ },
7656
+ sandboxEvaluator: sandboxEvaluator$LWS
7657
+ } = record$LWS;
7366
7658
 
7367
7659
  function setInterval$LWS(...args$LWS) {
7368
7660
  if (args$LWS.length) {
@@ -7372,10 +7664,10 @@ function distortionWindowSetInterval$LWS(globalObject$LWS, options$LWS) {
7372
7664
 
7373
7665
  if (callback$LWS !== null && callback$LWS !== undefined && typeof callback$LWS !== 'function') {
7374
7666
  // Snapshot callback source to prevent shapeshifting.
7375
- const code$LWS = toString$LWS(callback$LWS); // Replace callback parameter.
7667
+ const sourceText$LWS = transformUncompiledSourceText$LWS(toString$LWS(callback$LWS)); // Replace callback parameter.
7376
7668
 
7377
7669
  args$LWS[0] = () => {
7378
- evaluator$LWS(code$LWS, globalObject$LWS);
7670
+ sandboxEvaluator$LWS(sourceText$LWS, UNCOMPILED_CONTEXT$LWS);
7379
7671
  };
7380
7672
  }
7381
7673
  }
@@ -7386,13 +7678,14 @@ function distortionWindowSetInterval$LWS(globalObject$LWS, options$LWS) {
7386
7678
  return [originalSetInterval$LWS, setInterval$LWS];
7387
7679
  }
7388
7680
 
7389
- function distortionWindowSetTimeout$LWS(globalObject$LWS, options$LWS) {
7681
+ function distortionWindowSetTimeout$LWS(record$LWS) {
7390
7682
  const {
7391
- evaluator: evaluator$LWS
7392
- } = options$LWS;
7393
- const {
7394
- setTimeout: originalSetTimeout$LWS
7395
- } = globalObject$LWS;
7683
+ UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
7684
+ globalObject: {
7685
+ setTimeout: originalSetTimeout$LWS
7686
+ },
7687
+ sandboxEvaluator: sandboxEvaluator$LWS
7688
+ } = record$LWS;
7396
7689
 
7397
7690
  function setTimeout$LWS(...args$LWS) {
7398
7691
  if (args$LWS.length) {
@@ -7402,10 +7695,10 @@ function distortionWindowSetTimeout$LWS(globalObject$LWS, options$LWS) {
7402
7695
 
7403
7696
  if (callback$LWS !== null && callback$LWS !== undefined && typeof callback$LWS !== 'function') {
7404
7697
  // Snapshot callback source to prevent shapeshifting.
7405
- const code$LWS = toString$LWS(callback$LWS); // Replace callback parameter.
7698
+ const sourceText$LWS = transformUncompiledSourceText$LWS(toString$LWS(callback$LWS)); // Replace callback parameter.
7406
7699
 
7407
7700
  args$LWS[0] = () => {
7408
- evaluator$LWS(code$LWS, globalObject$LWS);
7701
+ sandboxEvaluator$LWS(sourceText$LWS, UNCOMPILED_CONTEXT$LWS);
7409
7702
  };
7410
7703
  }
7411
7704
  }
@@ -7416,10 +7709,12 @@ function distortionWindowSetTimeout$LWS(globalObject$LWS, options$LWS) {
7416
7709
  return [originalSetTimeout$LWS, setTimeout$LWS];
7417
7710
  }
7418
7711
 
7419
- function distortionWindowStructuredClone$LWS(globalObject$LWS) {
7712
+ function distortionWindowStructuredClone$LWS(record$LWS) {
7420
7713
  const {
7421
- structuredClone: originalStructuredClone$LWS
7422
- } = globalObject$LWS; // istanbul ignore if: currently unreachable via tests
7714
+ globalObject: {
7715
+ structuredClone: originalStructuredClone$LWS
7716
+ }
7717
+ } = record$LWS; // istanbul ignore if: currently unreachable via tests
7423
7718
 
7424
7719
  if (typeof originalStructuredClone$LWS !== 'function') {
7425
7720
  return null;
@@ -7439,10 +7734,12 @@ function distortionWindowStructuredClone$LWS(globalObject$LWS) {
7439
7734
  return [originalStructuredClone$LWS, structuredClone$LWS];
7440
7735
  }
7441
7736
 
7442
- function distortionWorkerCtor$LWS(globalObject$LWS) {
7737
+ function distortionWorkerCtor$LWS(record$LWS) {
7443
7738
  const {
7444
- Worker: originalWorkerCtor$LWS
7445
- } = globalObject$LWS;
7739
+ globalObject: {
7740
+ Worker: originalWorkerCtor$LWS
7741
+ }
7742
+ } = record$LWS;
7446
7743
 
7447
7744
  function Worker$LWS(scriptURL$LWS) {
7448
7745
  throw new LockerSecurityError$LWS(`Cannot create Worker with ${toSafeTemplateStringValue$LWS(scriptURL$LWS)}.`);
@@ -7451,19 +7748,23 @@ function distortionWorkerCtor$LWS(globalObject$LWS) {
7451
7748
  return [originalWorkerCtor$LWS, Worker$LWS];
7452
7749
  }
7453
7750
 
7454
- function distortionWorkerProto$LWS(globalObject$LWS) {
7751
+ function distortionWorkerProto$LWS(record$LWS) {
7455
7752
  const {
7456
- Worker: {
7457
- prototype: originalPrototype$LWS
7753
+ globalObject: {
7754
+ Worker: {
7755
+ prototype: originalPrototype$LWS
7756
+ }
7458
7757
  }
7459
- } = globalObject$LWS;
7758
+ } = record$LWS;
7460
7759
  return [originalPrototype$LWS, createRevokedProxy$LWS(originalPrototype$LWS)];
7461
7760
  }
7462
7761
 
7463
- function distortionXMLHttpRequestOpen$LWS(globalObject$LWS) {
7762
+ function distortionXMLHttpRequestOpen$LWS(record$LWS) {
7464
7763
  const {
7465
- XMLHttpRequest: XMLHttpRequest$LWS
7466
- } = globalObject$LWS;
7764
+ globalObject: {
7765
+ XMLHttpRequest: XMLHttpRequest$LWS
7766
+ }
7767
+ } = record$LWS;
7467
7768
  const {
7468
7769
  open: originalOpen$LWS
7469
7770
  } = XMLHttpRequest$LWS.prototype;
@@ -7488,11 +7789,13 @@ function distortionXMLHttpRequestOpen$LWS(globalObject$LWS) {
7488
7789
  return [originalOpen$LWS, open$LWS];
7489
7790
  }
7490
7791
 
7491
- function distortionXMLHttpRequestResponseGetter$LWS(globalObject$LWS) {
7792
+ function distortionXMLHttpRequestResponseGetter$LWS(record$LWS) {
7492
7793
  const {
7493
- Document: Document$LWS,
7494
- XMLHttpRequest: XMLHttpRequest$LWS
7495
- } = globalObject$LWS;
7794
+ globalObject: {
7795
+ Document: Document$LWS,
7796
+ XMLHttpRequest: XMLHttpRequest$LWS
7797
+ }
7798
+ } = record$LWS;
7496
7799
  const originalResponseGetter$LWS = ObjectLookupOwnGetter$LWS(XMLHttpRequest$LWS.prototype, 'response');
7497
7800
 
7498
7801
  function response$LWS() {
@@ -7505,10 +7808,12 @@ function distortionXMLHttpRequestResponseGetter$LWS(globalObject$LWS) {
7505
7808
  return [originalResponseGetter$LWS, response$LWS];
7506
7809
  }
7507
7810
 
7508
- function distortionXMLHttpRequestResponseXMLGetter$LWS(globalObject$LWS) {
7811
+ function distortionXMLHttpRequestResponseXMLGetter$LWS(record$LWS) {
7509
7812
  const {
7510
- XMLHttpRequest: XMLHttpRequest$LWS
7511
- } = globalObject$LWS;
7813
+ globalObject: {
7814
+ XMLHttpRequest: XMLHttpRequest$LWS
7815
+ }
7816
+ } = record$LWS;
7512
7817
  const originalResponseXMLGetter$LWS = ObjectLookupOwnGetter$LWS(XMLHttpRequest$LWS.prototype, 'responseXML');
7513
7818
 
7514
7819
  function responseXML$LWS() {
@@ -7533,17 +7838,19 @@ distortionCSSStyleRuleStyleGetter$LWS, // Document
7533
7838
  distortionDocumentDomainSetter$LWS, distortionDocumentExecCommand$LWS, distortionDocumentOpen$LWS, // DOMParser
7534
7839
  distortionDOMParserParseFromString$LWS, // Element
7535
7840
  distortionElementAttachShadow$LWS, distortionElementAttributesGetter$LWS, distortionElementInnerHTMLSetter$LWS, distortionElementOuterHTMLSetter$LWS, distortionElementInsertAdjacentHTML$LWS, distortionElementRemove$LWS, distortionElementReplaceChildren$LWS, distortionElementReplaceWith$LWS, // Event
7536
- distortionEventComposedPath$LWS, distortionEventPathGetter$LWS, // History
7841
+ distortionEventComposedPath$LWS, distortionEventPathGetter$LWS, // Function
7842
+ distortionFunction$LWS, // History
7537
7843
  distortionHistoryPushState$LWS, distortionHistoryReplaceState$LWS, // HTMLElement
7538
7844
  distortionHTMLElementDatasetGetter$LWS, distortionHTMLElementInnerTextSetter$LWS, distortionHTMLElementOuterTextSetter$LWS, distortionHTMLElementStyleGetter$LWS, // HTMLIFrameElement
7539
7845
  distortionHTMLIFrameElementSrcSetter$LWS, // HTMLLinkElement
7540
- distortionHTMLLinkElementRelSetter$LWS, distortionHTMLLinkElementRelListSetter$LWS, // HTMLScriptElement
7846
+ distortionHTMLLinkElementRelSetter$LWS, distortionHTMLLinkElementRelListSetter$LWS, // HTMLObjectElement
7847
+ distortionHTMLObjectElementDataSetter$LWS, // HTMLScriptElement
7541
7848
  distortionHTMLScriptElementSrcGetter$LWS, // IDBObjectStore
7542
7849
  distortionIDBObjectStoreAdd$LWS, distortionIDBObjectStorePut$LWS, // Navigator
7543
7850
  distortionNavigatorSendBeacon$LWS, distortionNavigatorServiceWorkerGetter$LWS, // Node
7544
7851
  distortionNodeRemoveChild$LWS, distortionNodeReplaceChild$LWS, // Notification
7545
7852
  distortionNotificationCtor$LWS, // Range
7546
- distortionRangeCreateContextualFragment$LWS, distortionRangeDeleteContents$LWS, distortionRangeExtractContents$LWS, distortionRangeInsertNode$LWS, // ServiceWorkerContainer
7853
+ distortionRangeCreateContextualFragment$LWS, distortionRangeDeleteContents$LWS, distortionRangeExtractContents$LWS, distortionRangeInsertNode$LWS, distortionRangeSelectNode$LWS, distortionRangeSelectNodeContents$LWS, distortionRangeSetEnd$LWS, distortionRangeSetEndAfter$LWS, distortionRangeSetEndBefore$LWS, distortionRangeSetStart$LWS, distortionRangeSetStartAfter$LWS, distortionRangeSetStartBefore$LWS, distortionRangeSurroundContents$LWS, // ServiceWorkerContainer
7547
7854
  distortionServiceWorkerContainer$LWS, // ShadowRoot
7548
7855
  distortionShadowRootInnerHTMLSetter$LWS, distortionShadowRootModeGetter$LWS, // SharedWorker
7549
7856
  distortionSharedWorkerCtor$LWS, distortionSharedWorkerProto$LWS, // Storage
@@ -7580,6 +7887,8 @@ distortionElementAfter$LWS, distortionElementAppend$LWS, distortionElementBefore
7580
7887
  // distortionNodeAppendChild,
7581
7888
  distortionNodeInsertBefore$LWS]));
7582
7889
  const externalKeyedDistortionFactories$LWS = internalKeyedDistortionFactories$LWS;
7890
+ const evaluationDistortionFactories$LWS = ObjectFreeze$LWS([// eval
7891
+ distortionEval$LWS]);
7583
7892
  const DocumentBlockedProperties$LWS = ObjectFreeze$LWS(['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', 'mozCancelFullScreen', 'mozFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'onfullscreenchange', 'onfullscreenerror', 'onmozfullscreenchange', 'onmozfullscreenerror', 'onrejectionhandled', 'onsecuritypolicyviolation', 'onunhandledrejection', 'releaseCapture', 'releaseEvents', 'webkitFullScreenKeyboardInputAllowed', 'write', 'writeln']);
7584
7893
  const ElementBlockedProperties$LWS = ObjectFreeze$LWS(['mozRequestFullScreen', 'onfullscreenchange', 'onfullscreenerror', 'requestFullscreen', 'webkitRequestFullScreen', 'webkitRequestFullscreen']);
7585
7894
  const HTMLElementBlockedAttributes$LWS = ObjectFreeze$LWS(['nonce']);
@@ -7594,7 +7903,7 @@ const HTMLScriptElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
7594
7903
  const SVGElementBlockedAttributes$LWS = ObjectFreeze$LWS(['nonce']);
7595
7904
  const SVGElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
7596
7905
  const XSLTProcessorBlockedProperties$LWS = ObjectFreeze$LWS(['transformToDocument', 'transformToFragment']);
7597
- /*! version: 0.16.18 */
7906
+ /*! version: 0.16.23 */
7598
7907
 
7599
7908
  /*!
7600
7909
  * Copyright (C) 2021 salesforce.com, inc.
@@ -7697,11 +8006,11 @@ class DefaultInstrumentation$LWS {
7697
8006
 
7698
8007
 
7699
8008
  const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
7700
- /*! version: 0.16.18 */
8009
+ /*! version: 0.16.23 */
7701
8010
 
7702
- const Lt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const x=100,O=5,_=100,A=_/2,B="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",E={style:"margin-left:11px; margin-bottom: 3px;"},j={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},F={style:"color: #9d288c; font-weight: bold"},M={style:"color: #b17ab0"},H={style:"color: #16239f"},k={style:"color: #236d25"},R={style:"color: #606367"},C={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",R,`${t}`];if("boolean"==typeof t)return ["span",H,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",H,t]:["span",H,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:o}=e;if(o>_){const t=ReflectApply$LWS(StringProtoSlice$LWS,e,[0,A]),r=ReflectApply$LWS(StringProtoSlice$LWS,e,[o-A-1,o]);e=t+CHAR_ELLIPSIS$LWS+r;}return ["span",C,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},`{${CHAR_ELLIPSIS$LWS}}`]:["span",C,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const{t:r}=o,a=[];let b=0;r&&(a[b++]=["span",F,o.o],a[b++]=["span",{},": "]);const P=ReflectApply$LWS(ObjectProtoToString$LWS,t,[]);let T=ObjectKeys$LWS(t);if(P===TO_STRING_BRAND_SYMBOL$LWS)ReflectApply$LWS(ArrayProtoIncludes$LWS,T,["description"])||ReflectApply$LWS(ArrayProtoUnshift$LWS,T,["description"]);else if(P===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;T=ReflectApply$LWS(ArrayProtoFilter$LWS,T,[t=>{const o="string"==typeof t?+t:-1;return o<0||o>=e||!NumberIsInteger$LWS(o)}]);}const{length:w}=T;if(ArrayIsArray$LWS(t)){a[b++]=["span",r?R:{},`(${t.length}) [`];for(let e=0,o=MathMin$LWS(w,x);e<o;e+=1){const o=t[T[e]];a[b++]=["span",{},e?", ":""],a[b++]=formatValue$LWS(o);}return w>x&&(a[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),a[b++]=["span",{},"]"],a}let m,_="{";switch(P){case TO_STRING_BRAND_BIG_INT$LWS:case TO_STRING_BRAND_BOOLEAN$LWS:case TO_STRING_BRAND_NUMBER$LWS:case TO_STRING_BRAND_STRING$LWS:case TO_STRING_BRAND_SYMBOL$LWS:{let e=H;P===TO_STRING_BRAND_BIG_INT$LWS?e=k:P===TO_STRING_BRAND_SYMBOL$LWS&&(e=C),_=`${ReflectApply$LWS(StringProtoSlice$LWS,P,[8,-1])} {`,m=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}a[b++]=["span",{},_],m&&(a[b++]=m,w&&(a[b++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(w,O);e<o;e+=1){const o=T[e],r=t[o];a[b++]=["span",{},e?", ":""],a[b++]=["span",R,o],a[b++]=["span",{},": "],a[b++]=formatValue$LWS(r);}return w>O&&(a[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),a[b++]=["span",{},"}"],a},formatBody$LWS=function(t){const o=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ReflectApply$LWS(ArrayProtoSort$LWS,r,[]);const a=[];let i=0;for(let e=0,{length:s}=r;e<s;e+=1){const s=r[e],l=t[s];if(isObject$LWS(l))a[i++]=["div",{},["object",{object:l,config:{o:StringCtor$LWS(s),t:!0}}]];else {let t=F;"symbol"!=typeof s&&ReflectApply$LWS(ArrayProtoIncludes$LWS,o,[s])||(t=M),a[i++]=["div",E,["span",t,StringCtor$LWS(s)],["span",{},": "],formatValue$LWS(l)];}}return a};let{devtoolsFormatters:I}=window;ArrayIsArray$LWS(I)||(I=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:I,writable:!0})),I[I.length]={header(e,i={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Lt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const s=["div",{style:`${B}${i.t?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,s,formatHeader$LWS(e,i)),["div",{},s]},hasBody:()=>!0,body(t){const e=["div",j];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}const $t=Array,gt=WeakMap,{setPrototypeOf:Wt}=Reflect,{iterator:vt,toStringTag:bt,unscopables:Pt}=Symbol,{prototype:Tt}=$t,{at:wt,concat:mt,copyWithin:xt,entries:Ot,every:_t,fill:At,filter:Bt,find:Et,findIndex:jt,flat:Ft,flatMap:Mt,forEach:Ht,includes:kt,indexOf:Rt,join:Ct,keys:It,lastIndexOf:Dt,map:Nt,pop:Kt,push:Gt,reduce:Vt,reduceRight:Ut,reverse:zt,shift:Xt,slice:Zt,some:Qt,sort:Jt,splice:Yt,toLocaleString:qt,toString:te,unshift:ee,values:oe,[vt]:re}=Tt,ne=Object.freeze(Object.assign({__proto__:null},Tt[Pt])),{prototype:ae}=gt,{delete:ie,get:se,has:le,set:ce,[bt]:ue}=ae;function toSafeWeakMap$LWS(t){return Wt(t,null),t.constructor=gt,t.delete=ie,t.get=se,t.has=le,t.set=ce,t[bt]=ue,Wt(t,ae),t}const fe=toSafeWeakMap$LWS(new WeakMap);function createMembraneMarshall$LWS(t){var e,o,r;const n=Array,a=ArrayBuffer,i=Error,s=Number,l=Object,c=Proxy,u=Reflect,f=RegExp,y=String,d=Symbol,p=TypeError,S=WeakMap,{for:h,toStringTag:L}=d,{apply:$,construct:g,defineProperty:W,deleteProperty:v,get:b,getOwnPropertyDescriptor:P,getPrototypeOf:T,has:w,isExtensible:m,ownKeys:x,preventExtensions:O,set:_,setPrototypeOf:A}=u,{assign:B,defineProperties:E,freeze:j,getOwnPropertyDescriptor:F,getOwnPropertyDescriptors:M,isFrozen:H,isSealed:k,keys:R,prototype:C,seal:I}=l,{hasOwnProperty:D,propertyIsEnumerable:N,toString:K}=C,{hasOwn:G}=l,{__defineGetter__:V,__defineSetter__:U,__lookupGetter__:z,__lookupSetter__:X}=C,Z="function"==typeof G?G:(t,e)=>$(D,t,[e]),Q="object"!=typeof t||null===t,J=Q?void 0:h("@@lockerDebugMode"),Y=Q?void 0:h("@@lockerLiveValue"),q=Q?void 0:h("@@lockerNearMembraneSerializedValue"),tt=Q?void 0:h("@@lockerNearMembrane"),et=h("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
8011
+ const Pt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const O=100,_=5,E=100,x=E/2,A="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",B={style:"margin-left:11px; margin-bottom: 3px;"},M={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},F={style:"color: #9d288c; font-weight: bold"},j={style:"color: #b17ab0"},H={style:"color: #16239f"},k={style:"color: #236d25"},R={style:"color: #606367"},I={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",R,`${t}`];if("boolean"==typeof t)return ["span",H,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",H,t]:["span",H,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:o}=e;if(o>E){const t=ReflectApply$LWS(StringProtoSlice$LWS,e,[0,x]),r=ReflectApply$LWS(StringProtoSlice$LWS,e,[o-x-1,o]);e=t+CHAR_ELLIPSIS$LWS+r;}return ["span",I,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},`{${CHAR_ELLIPSIS$LWS}}`]:["span",I,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const{t:r}=o,i=[];let b=0;r&&(i[b++]=["span",F,o.o],i[b++]=["span",{},": "]);const T=ReflectApply$LWS(ObjectProtoToString$LWS,t,[]);let P=ObjectKeys$LWS(t);if(T===TO_STRING_BRAND_SYMBOL$LWS)ReflectApply$LWS(ArrayProtoIncludes$LWS,P,["description"])||ReflectApply$LWS(ArrayProtoUnshift$LWS,P,["description"]);else if(T===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;P=ReflectApply$LWS(ArrayProtoFilter$LWS,P,[t=>{const o="string"==typeof t?+t:-1;return o<0||o>=e||!NumberIsInteger$LWS(o)}]);}const{length:w}=P;if(ArrayIsArray$LWS(t)){i[b++]=["span",r?R:{},`(${t.length}) [`];for(let e=0,o=MathMin$LWS(w,O);e<o;e+=1){const o=t[P[e]];i[b++]=["span",{},e?", ":""],i[b++]=formatValue$LWS(o);}return w>O&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"]"],i}let m,E="{";switch(T){case TO_STRING_BRAND_BIG_INT$LWS:case TO_STRING_BRAND_BOOLEAN$LWS:case TO_STRING_BRAND_NUMBER$LWS:case TO_STRING_BRAND_STRING$LWS:case TO_STRING_BRAND_SYMBOL$LWS:{let e=H;T===TO_STRING_BRAND_BIG_INT$LWS?e=k:T===TO_STRING_BRAND_SYMBOL$LWS&&(e=I),E=`${ReflectApply$LWS(StringProtoSlice$LWS,T,[8,-1])} {`,m=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}i[b++]=["span",{},E],m&&(i[b++]=m,w&&(i[b++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(w,_);e<o;e+=1){const o=P[e],r=t[o];i[b++]=["span",{},e?", ":""],i[b++]=["span",R,o],i[b++]=["span",{},": "],i[b++]=formatValue$LWS(r);}return w>_&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"}"],i},formatBody$LWS=function(t){const o=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ReflectApply$LWS(ArrayProtoSort$LWS,r,[]);const i=[];let a=0;for(let e=0,{length:s}=r;e<s;e+=1){const s=r[e],l=t[s];if(isObject$LWS(l))i[a++]=["div",{},["object",{object:l,config:{o:StringCtor$LWS(s),t:!0}}]];else {let t=F;"symbol"!=typeof s&&ReflectApply$LWS(ArrayProtoIncludes$LWS,o,[s])||(t=j),i[a++]=["div",B,["span",t,StringCtor$LWS(s)],["span",{},": "],formatValue$LWS(l)];}}return i};let{devtoolsFormatters:C}=window;ArrayIsArray$LWS(C)||(C=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:C,writable:!0})),C[C.length]={header(e,a={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Pt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const s=["div",{style:`${A}${a.t?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,s,formatHeader$LWS(e,a)),["div",{},s]},hasBody:()=>!0,body(t){const e=["div",M];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}const wt=Array,mt=WeakMap,{setPrototypeOf:Ot}=Reflect,{iterator:_t,toStringTag:Et,unscopables:xt}=Symbol,{prototype:At}=wt,{at:Bt,concat:Mt,copyWithin:Ft,entries:jt,every:Ht,fill:kt,filter:Rt,find:It,findIndex:Ct,flat:Nt,flatMap:Dt,forEach:Gt,includes:Kt,indexOf:Ut,join:Vt,keys:zt,lastIndexOf:Xt,map:Qt,pop:Zt,push:Jt,reduce:Yt,reduceRight:qt,reverse:te,shift:ee,slice:oe,some:re,sort:ne,splice:ie,toLocaleString:ae,toString:se,unshift:le,values:ce,[_t]:ue}=At,fe=Object.freeze(Object.assign({__proto__:null},At[xt])),{prototype:de}=mt,{delete:ye,get:pe,has:Se,set:he,[Et]:Le}=de;function toSafeWeakMap$LWS(t){return Ot(t,null),t.constructor=mt,t.delete=ye,t.get=pe,t.has=Se,t.set=he,t[Et]=Le,Ot(t,de),t}const ge=toSafeWeakMap$LWS(new WeakMap);function createMembraneMarshall$LWS(t){var e,o,r;const n=Array,i=ArrayBuffer,a=Error,s=Number,l=Object,c=Proxy,u=Reflect,f=RegExp,d=String,y=Symbol,p=TypeError,S=WeakMap,{for:h,toStringTag:L}=y,{apply:g,construct:$,defineProperty:W,deleteProperty:v,get:b,getOwnPropertyDescriptor:T,getPrototypeOf:P,has:w,isExtensible:m,ownKeys:O,preventExtensions:_,set:E,setPrototypeOf:x}=u,{assign:A,defineProperties:B,freeze:M,getOwnPropertyDescriptor:F,getOwnPropertyDescriptors:j,isFrozen:H,isSealed:k,keys:R,prototype:I,seal:C}=l,{hasOwnProperty:N,propertyIsEnumerable:D,toString:G}=I,{hasOwn:K}=l,{__defineGetter__:U,__defineSetter__:V,__lookupGetter__:z,__lookupSetter__:X}=I,Q="function"==typeof K?K:(t,e)=>g(N,t,[e]),Z="object"!=typeof t||null===t,J=Z?void 0:h("@@lockerDebugMode"),Y=Z?void 0:h("@@lockerLiveValue"),q=Z?void 0:h("@@lockerNearMembraneSerializedValue"),tt=Z?void 0:h("@@lockerNearMembrane"),et=h("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
7703
8012
  /* $LWS */
7704
- 1}`.includes("*"),ot=LOCKER_UNMINIFIED_FLAG$LWS&&!Q,rt="function"==typeof BigInt,nt=Q?/\w*$/:void 0,{isArray:at}=n,{includes:it,indexOf:st,slice:lt}=n.prototype,{isView:ct}=a,ut=Q?void 0:$(z,a.prototype,["byteLength"]),ft=rt?BigInt.prototype.valueOf:void 0,{valueOf:yt}=Boolean.prototype,{toString:dt}=i.prototype,{bind:pt,toString:St}=Function.prototype,{stringify:ht}=JSON,{isInteger:Lt}=s,{valueOf:$t}=s.prototype,{revocable:gt}=c,{prototype:Wt}=f,{exec:vt,test:bt,toString:Pt}=Wt,Tt=Q?null!=(e=$(z,Wt,["flags"]))?e:function(){const t=$(Pt,this,[]);return $(vt,nt,[t])[0]}:void 0,wt=$(z,Wt,["source"]),{replace:mt,slice:xt,valueOf:Ot}=y.prototype,{toString:_t,valueOf:At}=d.prototype,Bt=$(z,Uint8Array.prototype.__proto__,["length"]),{prototype:Et}=S,{delete:jt,has:Ft,set:Mt,[L]:Ht}=Et,kt=Q||"object"!=typeof console||null===console?void 0:console,Rt=null==kt?void 0:kt.info,Ct=Q?eval:void 0,It=null!=(o=null!=(r=null!=t?t:"undefined"!=typeof globalThis?globalThis:void 0)?r:"undefined"!=typeof self?self:void 0)?o:(W(C,"globalThis",{__proto__:null,configurable:!0,get(){return v(C,"globalThis"),null!=this?this:self}}),globalThis);let Dt=!1,Nt=!1;function alwaysFalse$LWS(){return !1}function identity$LWS(t){return t}const Kt=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(Dt)return;Dt=!0;const t=(()=>{try{var t;i.prepareStackTrace=(t,e)=>e;const e=(new i).stack;return v(i,"prepareStackTrace"),at(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0}catch(t){}})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:o,toString:r}=t.prototype,n=new f(`${$(mt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);try{i.prepareStackTrace=function(t,a){return function(t,a){let i="";try{i=$(dt,t,[]);}catch(t){i="<error>";}let s=!1;for(let t=0,{length:l}=a;t<l;t+=1){const l=a[t],c=$(o,l,[]);let u=!1;if("string"==typeof c&&"eval"!==c&&$(bt,n,[c])&&(u=!0),!u){const t=$(e,l,[]);"string"==typeof t&&$(bt,n,[t])&&(u=!0);}if(u)s||(s=!0,i+="\n at LWS");else {s=!1;try{i+=`\n at ${$(r,l,[])}`;}catch(t){}}}return i}(t,a)};}catch(t){}try{const{stackTraceLimit:t}=i;("number"!=typeof t||t<20)&&(i.stackTraceLimit=20);}catch(t){}}:noop$LWS;function noop$LWS(){}const Gt=Q?t=>$(ft,t,[]):noop$LWS,Vt=Q?t=>$(yt,t,[]):noop$LWS,Ut=Q?t=>$($t,t,[]):noop$LWS,zt=Q?t=>{if(t!==Wt){const e=$(wt,t,[]);return ht({__proto__:null,flags:$(Tt,t,[]),source:e})}}:noop$LWS,Xt=Q?t=>$(Ot,t,[]):noop$LWS,Zt=Q?t=>$(At,t,[]):noop$LWS,Qt=Q?t=>{switch($(K,t,[])){case"[object Boolean]":return Vt(t);case"[object Number]":return Ut(t);case"[object RegExp]":return zt(t);case"[object String]":return Xt(t);case"[object Object]":try{return Zt(t)}catch(t){}if(rt)try{return Gt(t)}catch(t){}default:return}}:noop$LWS,Jt=Q?t=>{try{return Zt(t)}catch(t){}if(rt)try{return Gt(t)}catch(t){}try{return Vt(t)}catch(t){}try{return Ut(t)}catch(t){}try{return zt(t)}catch(t){}try{return Xt(t)}catch(t){}}:noop$LWS;function toSafeWeakMap$LWS(t){return A(t,null),t.constructor=S,t.delete=jt,t.has=Ft,t.set=Mt,t[L]=Ht,A(t,Et),t}return function(t,e,o){const{distortionCallback:r=identity$LWS,instrumentation:a}=B({__proto__:null},o),i=!Q&&"object"==typeof a&&null!==a,s={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},f={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},d=toSafeWeakMap$LWS(new S),h=toSafeWeakMap$LWS(new S),D=i?a.startActivity:void 0;let G,rt,nt,ft,yt,dt,ht,$t,vt,bt,Pt,Tt,mt,Ot,At,Et,jt,Ft,Mt,Ht,Dt,Gt,Vt,Ut,zt,Xt,Zt,Yt,qt,te=!1,ee=0;const oe=Q?(t,e,o)=>{o[e]=!1;const r=getTransferablePointer$LWS(t);let n;try{$t(r,e,(t,e,o,r,a,i,s)=>{n=createDescriptorFromMeta$LWS(e,o,r,a,i,s);});}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,e}n?W(t,e,n):v(t,e);}:noop$LWS;let re=ot?()=>{try{Z(It,J)&&(re=()=>!0,Kt(),Dt());}catch(t){re=alwaysFalse$LWS;}return !1}:alwaysFalse$LWS;function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let o,r,n;i&&(o=D("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));try{r=Xt(t,(...t)=>{const o={};for(let e=0,{length:r}=t;e<r;e+=7){o[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}E(e,o);});}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,i&&o.error(e),e}"function"==typeof r?(r(),n=qt,qt=void 0):n=null,A(e,n),i&&o.stop();}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}()`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(0!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(1)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(1!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(2)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(2!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(3)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(3!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForFourOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(4)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(4!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForFiveOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(5)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(5!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r,4:a}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r,"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,o=e?"apply":"construct",r=e?nt:ft;return function(a,s,l){ee=t;const{i:c}=this,u=e?l:s,{length:f}=u;let y;i&&(y=D(`Reflect.${o}(${f})`));const d=e?s:l;let p=2;const S=new n(f+p);let h,L;S[0]=c;try{S[1]="object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d;for(let t=0;t<f;t+=1){const e=u[t];S[p++]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e;}h=$(r,void 0,S);}catch(t){var g;const e=null!=(g=qt)?g:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof h?(h(),L=qt,qt=void 0):L=h,i&&y.stop(),L}}function createDescriptorFromMeta$LWS(t,e,o,r,n,a){const i={__proto__:null};return t!==et&&(i.configurable=t),e!==et&&(i.enumerable=e),o!==et&&(i.writable=o),n!==et&&("function"==typeof n?(n(),i.get=qt,qt=void 0):i.get=void 0),a!==et&&("function"==typeof a?(a(),i.set=qt,qt=void 0):i.set=void 0),r!==et&&("function"==typeof r?(r(),i.value=qt,qt=void 0):i.value=r),i}function createPointer$LWS(t){return ()=>{qt=t;}}const ne=Q?t=>{let e=d.get(t);if(void 0===e){const o=jt(getTransferablePointer$LWS(t));"function"==typeof o&&(o(),e=qt,qt=void 0,e&&d.set(t,e));}return e}:noop$LWS;function getTransferablePointer$LWS(t,e=rt){let o=h.get(t);if(o)return o;const n=Q?t:r(t);if(n!==t&&typeof n!=typeof t)throw new p(`Invalid distortion ${function(t){if("string"==typeof t)return t;try{if("object"==typeof t&&null!==t){const e=$(K,t,[]);return "[object Symbol]"===e?$(_t,t,[]):e}return "function"==typeof t?$(St,t,[]):y(t)}catch(t){}return "[Object Unknown]"}(t)}.`);let a=!0,i=0,s=0,l=16;if("function"==typeof n){a=!1,i=0,l=4;try{"prototype"in n||(l|=8);const e=P(t,"length");if(e){A(e,null);const{value:t}=e;"number"==typeof t&&(i=t);}void 0;}catch(t){a=!0;}}else if(ct(n)){a=!1,l=2;try{s=$(Bt,n,[]),l|=32;}catch(t){a=!0;}}if(a)try{at(n)&&(l=1);}catch(t){l=64;}return o=e(createPointer$LWS(n),l,i,"",s),h.set(t,o),o}const ae=Q?t=>{if(Nt)return;Nt=!0;const e=at(t)&&t.length>0,o=e?{__proto__:null}:void 0,r=e?(e,o)=>$(it,t,[o])?{configurable:!1,enumerable:$(N,e,[o]),get:n(o),set:void 0}:P(e,o):void 0,n=e?t=>{let e=o[t];return void 0===e&&(e=$(pt,s,[]),o[t]=e),e}:void 0,a=e?(e,o)=>$(it,t,[o])?n(o):$(z,e,[o]):void 0,i=e?(e,o)=>$(it,t,[o])?void 0:$(X,e,[o]):void 0,s=e?()=>It:void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,o=2===e;return new c(t,{apply(r,n,a){if(a.length>=e){const t=o?n:a[0];if("object"==typeof t&&null!==t||"function"==typeof t){const e=o?a[0]:a[1],r=ne(t);null!=r&&r[e]&&t[e];}}return $(t,n,a)}})},wrapLookupAccessor$LWS=(t,o)=>new c(t,{apply(r,n,a){if(a.length&&("object"==typeof n&&null!==n||"function"==typeof n)){const{0:t}=a,r=ne(n);if(null!=r&&r[t]&&n[t],e&&n===It)return o(n,t)}return $(t,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new c(t,{apply(o,n,a){if(a.length>1){const{0:t,1:o}=a;if("object"==typeof t&&null!==t||"function"==typeof t){const n=ne(t);if(null!=n&&n[o]&&t[o],e&&t===It)return r(t,o)}}return $(t,n,a)}});try{u.defineProperty=wrapDefineAccessOrProperty$LWS(W);}catch(t){}try{u.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(P);}catch(t){}try{l.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(F);}catch(t){}try{l.getOwnPropertyDescriptors=new c(f=M,{apply(t,o,n){const a=n.length?n[0]:void 0;if(("object"!=typeof a||null===a)&&"function"!=typeof a)return $(f,o,n);const i=ne(a),s=a===It&&e,l=s?{}:$(f,o,n);if(!s&&void 0===i)return l;const c=x(s?a:l);for(let t=0,{length:e}=c;t<e;t+=1){const e=c[t],o=!(null==i||!i[e]);if(o&&a[e],o||s){const t=s?r(a,e):P(a,e);t?l[e]=t:s||v(l,e);}}return l}});}catch(t){}var f;try{C.__defineGetter__=wrapDefineAccessOrProperty$LWS(V);}catch(t){}try{C.__defineSetter__=wrapDefineAccessOrProperty$LWS(U);}catch(t){}try{C.__lookupGetter__=wrapLookupAccessor$LWS(z,a);}catch(t){}try{C.__lookupSetter__=wrapLookupAccessor$LWS(X,i);}catch(t){}}:noop$LWS;function lookupForeignDescriptor$LWS(t,e,o){let r,n,a;i&&(r=D("lookupForeignDescriptor"));try{n=Yt(t,o,(t,r,n,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(r,n,i,s,l,c),!1===r&&W(e,o,a),a.l=!0;});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,i&&r.error(e),e}if(void 0===a){let t=null;for("function"==typeof n&&(n(),t=qt,qt=void 0);t;){if(a=P(t,o),a){A(a,null);break}t=T(t);}if(a){var l;const{get:t,set:e,value:o}=a,r=null!=(l=null!=t?t:e)?l:o;a.l=("object"==typeof r&&null!==r||"function"==typeof r)&&void 0!==h.get(r);}}return i&&r.stop(),a}function pushErrorAcrossBoundary$LWS(t){if(ot&&re(),"object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t,G)();}return t}function pushTarget$LWS(t,e,o,r,n){const{proxy:a}=new BoundaryProxyHandler$LWS(t,e,o,r,n);return h.set(a,t),createPointer$LWS(a)}const ie=Q?(t,e)=>{d.set(t,e),zt(getTransferablePointer$LWS(t),getTransferablePointer$LWS(e));}:noop$LWS;class BoundaryProxyHandler$LWS{constructor(t,e,o,r,n){let a;const i=1&e,l=4&e;a=l?8&e?()=>{}:function(){}:i?[]:{};const{proxy:c,revoke:u}=gt(a,this);var y,d;(this.i=t,this.u=e,this.p=n,this.S=(t,e,o,r,n,a,i)=>{W(this.h,t,createDescriptorFromMeta$LWS(e,o,r,n,a,i));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.h=a,this.L="Object",l)&&(this.apply=this[null!=(y=s[o])?y:s.n],this.construct=this[null!=(d=f[o])?d:f.n]);if(this.defineProperty=BoundaryProxyHandler$LWS.$,this.deleteProperty=BoundaryProxyHandler$LWS.g,this.isExtensible=BoundaryProxyHandler$LWS.W,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.v,this.getPrototypeOf=BoundaryProxyHandler$LWS.P,this.get=32&e?BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray:BoundaryProxyHandler$LWS.T,this.has=BoundaryProxyHandler$LWS.m,this.ownKeys=BoundaryProxyHandler$LWS.O,this.preventExtensions=BoundaryProxyHandler$LWS._,this.setPrototypeOf=BoundaryProxyHandler$LWS.A,this.set=BoundaryProxyHandler$LWS.B,64&e)j(this),this.revoke();else if(Q)(i||2&e)&&this.j();else {if(16&e){let t=et;$(V,this,["serializedValue",()=>(t===et&&(t=Ut(this.i)),t)]);}j(this);}}j(){this.deleteProperty=BoundaryProxyHandler$LWS.F,this.defineProperty=BoundaryProxyHandler$LWS.M,this.preventExtensions=BoundaryProxyHandler$LWS.H,this.set=BoundaryProxyHandler$LWS.k,this.setPrototypeOf=BoundaryProxyHandler$LWS.R,j(this);}C(){this.defineProperty=BoundaryProxyHandler$LWS.I,this.deleteProperty=BoundaryProxyHandler$LWS.D,this.get=BoundaryProxyHandler$LWS.N,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.K,this.getPrototypeOf=BoundaryProxyHandler$LWS.G,this.has=BoundaryProxyHandler$LWS.V,this.isExtensible=BoundaryProxyHandler$LWS.U,this.ownKeys=BoundaryProxyHandler$LWS.X,this.preventExtensions=BoundaryProxyHandler$LWS.Z,this.set=BoundaryProxyHandler$LWS.J,this.setPrototypeOf=BoundaryProxyHandler$LWS.Y;const{i:t,u:e,h:o}=this,r=Ft(t);if(8&r)return j(this),this.revoke(),void 0;try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o);}catch(e){if(Vt(t))return j(this),this.revoke(),void 0}if(16&e&&!w(o,L)){let e="Object";try{e=Mt(t);}catch(t){}this.L=e;}4&r?j(o):(2&r?I(o):1&r&&O(o),LOCKER_UNMINIFIED_FLAG$LWS&&Et("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),j(this);}static M(t,e,o){let r;ee=4,i&&(r=D("Reflect.defineProperty"));const{i:n,S:a}=this,s=o;A(s,null);const{get:l,set:c,value:u}=s,f="value"in s?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):"undefined"==typeof u?void 0:u:et,y="get"in s?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et,d="set"in s?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et;let p=!1;try{p=yt(n,e,"configurable"in s?!!s.configurable:et,"enumerable"in s?!!s.enumerable:et,"writable"in s?!!s.writable:et,f,y,d,a);}catch(t){var S;const e=null!=(S=qt)?S:t;throw qt=void 0,i&&r.error(e),e}return i&&r.stop(),p}static F(t,e){let o;ee=8,i&&(o=D("Reflect.deleteProperty"));let r=!1;try{r=dt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),r}static q(t){let e,o,r;ee=64,i&&(e=D("Reflect.getPrototypeOf"));try{o=vt(this.i);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,i&&e.error(o),o}return "function"==typeof o?(o(),r=qt,qt=void 0):r=null,i&&e.stop(),r}static tt(t){let e;ee=256,i&&(e=D("Reflect.isExtensible"));const{h:o}=this;let r=!1;if(m(o)){const{i:t}=this;try{r=Pt(t);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,i&&e.error(o),o}r||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o),O(o));}return i&&e.stop(),r}static et(t){let e,o;ee=512,i&&(e=D("Reflect.ownKeys"));try{Tt(this.i,(...t)=>{o=t;});}catch(t){var r;const o=null!=(r=qt)?r:t;throw qt=void 0,i&&e.error(o),o}return i&&e.stop(),o||[]}static ot(t,e){let o;ee=32,i&&(o=D("Reflect.getOwnPropertyDescriptor"));const{i:r,h:n}=this;let a;try{$t(r,e,(t,o,r,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(o,r,i,s,l,c),!1===a.configurable&&W(n,e,a);});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),a}static H(t){let e;ee=1024,i&&(e=D("Reflect.preventExtensions"));const{i:o,h:r}=this;let n=!0;if(m(r)){let t=0;try{t=mt(o);}catch(t){var a;const o=null!=(a=qt)?a:t;throw qt=void 0,i&&e.error(o),o}1&t||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(o,r),O(r)),n=!(2&t);}return i&&e.stop(),n}static R(t,e){let o;ee=4096,i&&(o=D("Reflect.setPrototypeOf"));const r=e?getTransferablePointer$LWS(e):e;let n=!1;try{n=At(this.i,r);}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),n}static k(t,e,o,r){ee=2048;const{i:n,proxy:a,h:s}=this;"undefined"==typeof o&&(o=void 0),"undefined"==typeof r&&(r=a);const l=a===r;let c;i&&(c=D(l?"Reflect.set":"passthruForeignTraversedSet"));let u=!1;try{u=l?Ot(n,e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o,et):function(t,e,o,r,n){const a=lookupForeignDescriptor$LWS(t,e,o);if(a){if("get"in a||"set"in a){const{set:t}=a;return !!t&&(a.l?nt(getTransferablePointer$LWS(t),"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):"undefined"==typeof n?void 0:n,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r):$(t,n,[r]),!0)}if(!1===a.writable)return !1}if(("object"!=typeof n||null===n)&&"function"!=typeof n)return !1;const i=P(n,o);return i?(A(i,null),!("get"in i)&&!("set"in i)&&!1!==i.writable&&(W(n,o,{__proto__:null,value:r}),!0)):W(n,o,{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!0})}(n,s,e,o,r);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&c.error(e),e}return i&&c.stop(),u}}BoundaryProxyHandler$LWS.rt=Q?function(t,e,o){let r;i&&(r=D("hybridGetTrap"));const{i:n,u:a,proxy:s,h:l}=this,c=lookupForeignDescriptor$LWS(n,l,e);let u;if(c){const{get:t,value:e}=c;if(t)if(c.l){const e=getTransferablePointer$LWS(t),a=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(e,a);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=$(t,o,[]);else u=e;}else if(e===L&&16&a){let t;try{t=Mt(n);}catch(t){var y;const e=null!=(y=qt)?y:t;throw qt=void 0,i&&r.error(e),e}"Object"!==t&&(u=t);}return i&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray=Q?function(t,e,o){let r;i&&(r=D("hybridGetTrapForTypedArray"));const{i:n,p:a,proxy:s,h:l}=this,c="string"==typeof e?+e:-1;let u;if(c>-1&&c<a&&Lt(c))try{u=Ht(n,e);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}else {const t=lookupForeignDescriptor$LWS(n,l,e);if(t){const{get:e,value:a}=t;if(e)if(t.l){const t=getTransferablePointer$LWS(e),a=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(t,a);}catch(t){var y;const e=null!=(y=qt)?y:t;throw qt=void 0,i&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=$(e,o,[]);else u=a;}}return i&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.nt=Q?function(t,e){let o,r;i&&(o=D("hybridHasTrap"));try{r=Zt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}let a=!1;if(!0===r)a=!0;else {let t=null;for("function"==typeof r&&(r(),t=qt,qt=void 0);t;){if(Z(t,e)){a=!0;break}t=T(t);}}return i&&o.stop(),a}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.it=Q?noop$LWS:function(t,e,o){if(te&&(te=128===ee),ee=16,te){if(e===tt)return !0;if(e===q)return this.serializedValue}let r;i&&(r=D("Reflect.get"));const{i:n,u:a,proxy:s}=this;"undefined"==typeof o&&(o=s);const l=s===o?et:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let c,u;try{c=ht(n,a,e,l);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}return "function"==typeof c?(c(),u=qt,qt=void 0):u=c,i&&r.stop(),u},BoundaryProxyHandler$LWS.st=Q?alwaysFalse$LWS:function(t,e){let o,r;ee=128,i&&(o=D("Reflect.has"));try{r=bt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}return te=!r&&(e===tt||e===q),i&&o.stop(),r},BoundaryProxyHandler$LWS.lt=Q?function(t,e,o){return Gt(this.i)?this.j():this.C(),this.defineProperty(t,e,o)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ct=Q?function(t,e){return Gt(this.i)?this.j():this.C(),this.deleteProperty(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ut=Q?function(t){return Gt(this.i)?this.j():this.C(),this.preventExtensions(t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ft=Q?function(t,e){return Gt(this.i)?this.j():this.C(),this.setPrototypeOf(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.yt=Q?function(t,e,o,r){return Gt(this.i)?this.j():this.C(),this.set(t,e,o,r)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.I=Q?W:alwaysFalse$LWS,BoundaryProxyHandler$LWS.D=Q?v:alwaysFalse$LWS,BoundaryProxyHandler$LWS.K=Q?P:noop$LWS,BoundaryProxyHandler$LWS.G=Q?T:()=>null,BoundaryProxyHandler$LWS.N=Q?function(t,e,o){const{u:r,L:n}=this,a=b(t,e,o);return void 0===a&&e===L&&16&r&&"Object"!==n&&!w(t,e)?n:a}:noop$LWS,BoundaryProxyHandler$LWS.V=Q?w:alwaysFalse$LWS,BoundaryProxyHandler$LWS.U=Q?m:alwaysFalse$LWS,BoundaryProxyHandler$LWS.X=Q?x:()=>[],BoundaryProxyHandler$LWS.Z=Q?O:alwaysFalse$LWS,BoundaryProxyHandler$LWS.Y=Q?A:alwaysFalse$LWS,BoundaryProxyHandler$LWS.J=Q?_:alwaysFalse$LWS,BoundaryProxyHandler$LWS.$=Q?BoundaryProxyHandler$LWS.lt:BoundaryProxyHandler$LWS.M,BoundaryProxyHandler$LWS.g=Q?BoundaryProxyHandler$LWS.ct:BoundaryProxyHandler$LWS.F,BoundaryProxyHandler$LWS.v=BoundaryProxyHandler$LWS.ot,BoundaryProxyHandler$LWS.P=BoundaryProxyHandler$LWS.q,BoundaryProxyHandler$LWS.T=Q?BoundaryProxyHandler$LWS.rt:BoundaryProxyHandler$LWS.it,BoundaryProxyHandler$LWS.m=Q?BoundaryProxyHandler$LWS.nt:BoundaryProxyHandler$LWS.st,BoundaryProxyHandler$LWS.W=BoundaryProxyHandler$LWS.tt,BoundaryProxyHandler$LWS.O=BoundaryProxyHandler$LWS.et,BoundaryProxyHandler$LWS._=Q?BoundaryProxyHandler$LWS.ut:BoundaryProxyHandler$LWS.H,BoundaryProxyHandler$LWS.B=Q?BoundaryProxyHandler$LWS.yt:BoundaryProxyHandler$LWS.k,BoundaryProxyHandler$LWS.A=Q?BoundaryProxyHandler$LWS.ft:BoundaryProxyHandler$LWS.R,e(createPointer$LWS(It),Q?noop$LWS:()=>{const t=qt;return qt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,(t,e)=>{t();const o=qt;qt=void 0;const r=null==o?void 0:o[e];return createPointer$LWS("undefined"==typeof r?void 0:r)},Q?t=>{let e;try{e=Ct(t);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):e}:noop$LWS,(t,e)=>{t();const o=qt;qt=void 0,("object"==typeof o&&null!==o||"function"==typeof o)&&h.set(o,e);},ot?(t,e,o,r,n)=>{const a=pushTarget$LWS(t,e,o,r,n);return ()=>(re(),a())}:pushTarget$LWS,pushTarget$LWS,(t,e,...o)=>{t();const r=qt;let n,a;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{a=$(r,n,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,...o)=>{t();const r=qt;let n,a;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{a=g(r,o,n);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,o,r,n,a,i,s,l)=>{t();const c=qt;qt=void 0;const u=createDescriptorFromMeta$LWS(o,r,n,a,i,s);let f=!1;try{f=W(c,e,u);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(f&&!1===o){let t;try{t=P(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&(A(t,null),!1===t.configurable)){const{get:o,set:r,value:n}=t;l(e,!1,"enumerable"in t?t.enumerable:et,"writable"in t?t.writable:et,"value"in t?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):n:et,"get"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:et,"set"in t?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et);}}return f},(t,e)=>{t();const o=qt;qt=void 0;try{return v(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,o,r)=>{t();const n=qt;let a,i;qt=void 0,"function"==typeof r?(r(),a=qt,qt=void 0):a=r===et?n:r;try{i=b(n,o,a);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof i&&null!==i||"function"==typeof i)return getTransferablePointer$LWS(i);if(void 0===i&&o===L&&16&e)try{if(!w(n,o)){const t=$(K,n,[]);"[object Object]"!==t&&(i=$(xt,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof i?void 0:i},(t,e,o)=>{t();const r=qt;let n;qt=void 0;try{n=P(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:r,value:a}=n;o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et);}},t=>{t();const e=qt;let o;qt=void 0;try{o=T(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof o?null:o?getTransferablePointer$LWS(o):o},(t,e)=>{t();const o=qt;qt=void 0;try{return w(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=qt;qt=void 0;try{return m(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=x(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}$(e,void 0,r);},t=>{t();const e=qt;qt=void 0;let o=2;try{O(e)?o=4:m(e)&&(o|=1);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o},(t,e,o,r)=>{t();const n=qt;let a,i;qt=void 0,"function"==typeof o?(o(),a=qt,qt=void 0):a=o,"function"==typeof r?(r(),i=qt,qt=void 0):i=r===et?n:r;try{return _(n,e,a,i)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e=null)=>{t();const o=qt;let r;qt=void 0,"function"==typeof e?(e(),r=qt,qt=void 0):r=null;try{return A(o,r)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},ot?(...t)=>{if(re()){for(let e=0,{length:o}=t;e<o;e+=1){const o=t[e];"function"==typeof o&&(o(),t[e]=qt,qt=void 0);}try{$(Rt,kt,t);}catch(t){}}}:noop$LWS,Q?(t,...e)=>{t();const o=qt;qt=void 0;for(let t=0,{length:r}=e;t<r;t+=7)W(o,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));}:noop$LWS,Q?noop$LWS:t=>{t();const e=qt;qt=void 0;const o=fe.get(e);return o?getTransferablePointer$LWS(o):o},Q?()=>0:t=>{t();const e=qt;qt=void 0;try{if(!m(e))return H(e)||k(e)?0:1}catch(t){try{at(e);}catch(t){return 8}}return 0},t=>{t();const e=qt;qt=void 0;try{const t=$(K,e,[]);return "[object Object]"===t?"Object":$(xt,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Q?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0;try{return o[e]}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Kt,Q?(t,...e)=>{const o=$(st,e,[et]);let r,n;-1===o?r=e:(r=$(lt,e,[0,o]),n=$(lt,e,[o+1])),t();const a=qt;qt=void 0;let i=ne(a);void 0===i&&(i={__proto__:null},ie(a,i));for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];i[e]=!0,W(a,e,{__proto__:null,configurable:!0,get:()=>(oe(a,e,i),a[e]),set(t){oe(a,e,i),_(a,e,t);}});}ae(n);}:noop$LWS,Q?alwaysFalse$LWS:t=>{t();const e=qt;if(qt=void 0,e===C)return !1;try{if("object"==typeof e){const{constructor:t}=e;if(t===l)return !0;if(null===T(e)&&("function"!=typeof t||t.prototype!==e))return !0;try{return $(ut,e,[]),!0}catch(t){}try{if(e!==Wt)return $(wt,e,[]),!0}catch(t){}}return Z(e,Y)}catch(t){}return !1},Q?alwaysFalse$LWS:t=>{t();const e=qt;qt=void 0;try{return at(e),!1}catch(t){}return !0},Q?t=>{t();const e=qt;qt=void 0;try{return w(e,L)?Jt(e):Qt(e)}catch(t){}}:noop$LWS,Q?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0,e();const r=qt;qt=void 0,fe.set(o,r);},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=M(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const a=x(r),{length:i}=a,s=new n(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const o=a[t],n=r[o];A(n,null);const{get:i,set:l,value:c}=n;s[e]=o,s[e+1]="configurable"in n?n.configurable:et,s[e+2]="enumerable"in n?n.enumerable:et,s[e+3]="writable"in n?n.writable:et,s[e+4]="value"in n?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et,s[e+5]="get"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):i:et,s[e+6]="set"in n?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et;}let l;$(e,void 0,s);try{l=T(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof l?null:l?getTransferablePointer$LWS(l):l},(t,e)=>{t();const o=qt;let r;qt=void 0;try{if(Z(o,e))return !0;r=T(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof r?null:r?getTransferablePointer$LWS(r):r},(t,e,o)=>{t();const r=qt;let n,a;qt=void 0;try{n=P(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:r,value:a}=n;return o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et),void 0}try{a=T(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof a?null:a?getTransferablePointer$LWS(a):a});let se=!1;return (...t)=>{if(se)return;se=!0,({6:G,7:rt,8:nt,9:ft,10:yt,11:dt,12:ht,13:$t,14:vt,15:bt,16:Pt,17:Tt,18:mt,19:Ot,20:At,21:Et,23:jt,24:Ft,25:Mt,26:Ht,27:Dt,29:Gt,30:Vt,31:Ut,32:zt,33:Xt,34:Zt,35:Yt}=t);const e=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),o=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),r=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),n=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1),a=createApplyOrConstructTrapForFourOrMoreArgs$LWS(1),i=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1),l=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),c=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),u=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),y=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),d=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2),p=createApplyOrConstructTrapForFourOrMoreArgs$LWS(2),S=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2),h=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2),L=R({dt:e,St:o,ht:r,Lt:n,$t:a,gt:i,Wt:l,vt:c,bt:u,Pt:y,Tt:d,wt:p,xt:S,Ot:h});s[0]=L[0],s[1]=L[1],s[2]=L[2],s[3]=L[3],s[4]=L[4],s[5]=L[5],s.n=L[6],f[0]=L[7],f[1]=L[8],f[2]=L[9],f[3]=L[10],f[4]=L[11],f[5]=L[12],f.n=L[13];const{prototype:$}=BoundaryProxyHandler$LWS;$[s[0]]=e,$[s[1]]=o,$[s[2]]=r,$[s[3]]=n,$[s[4]]=a,$[s[5]]=i,$[s.n]=l,$[f[0]]=c,$[f[1]]=u,$[f[2]]=y,$[f[3]]=d,$[f[4]]=p,$[f[5]]=S,$[f.n]=h,A($,null),j($);}}}const ye=TypeError,de=WeakMap,pe=toSafeWeakMap$LWS(new de),Se=toSafeWeakMap$LWS(new de),he=`\n'use strict';\n(${createMembraneMarshall$LWS})`;function createBlueConnector$LWS(t){if("object"!=typeof t||null===t)throw new ye("Missing globalObject.");let e=Se.get(t);return void 0===e&&(e=createMembraneMarshall$LWS(t),Se.set(t,e)),e}function createRedConnector$LWS(t){if("function"!=typeof t)throw new ye("Missing evaluator function.");let e=pe.get(t);return void 0===e&&(e=t(he)(),pe.set(t,e)),e}const Le=Symbol.for("@@lockerNearMembraneUndefinedValue"),$e=Array,ge=Error,We=Object,{push:ve}=$e.prototype,{assign:be}=We,{apply:Pe,ownKeys:Te}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new ge("Missing VirtualEnvironmentOptions options bag.");const{_t:e,distortionCallback:o,instrumentation:r,redConnector:n}=be({__proto__:null},t);let a;const i=e("blue",(...t)=>{a=t;},{distortionCallback:o,instrumentation:r}),{0:s,1:l,2:c,3:u,5:f,6:y,7:d,8:p,9:S,10:h,11:L,12:$,13:g,14:W,15:v,16:b,17:P,18:T,19:w,20:m,21:x,23:O,24:_,25:A,26:B,27:E,29:j,30:F,31:M,32:H,33:k,34:R,35:C}=a;let I;const D=n("red",(...t)=>{I=t;}),{0:N,3:K,4:G,5:V,6:U,7:z,8:X,9:Z,10:Q,11:J,12:Y,13:q,14:tt,15:et,16:ot,17:rt,18:nt,19:at,20:it,21:st,22:lt,23:ct,24:ut,25:ft,26:yt,27:dt,28:pt,29:St,30:ht,31:Lt,32:$t,33:gt,34:Wt,35:vt}=I;i(void 0,void 0,void 0,void 0,void 0,void 0,U,z,X,Z,Q,J,Y,q,tt,et,ot,rt,nt,at,it,st,void 0,ct,ut,ft,yt,dt,void 0,St,ht,Lt,$t,gt,Wt,vt),D(void 0,void 0,void 0,void 0,void 0,void 0,y,d,p,S,h,L,$,g,W,v,b,P,T,w,m,x,void 0,O,_,A,B,E,void 0,j,F,M,H,k,R,C),this.At=s,this.Bt=l,this.Et=c,this.jt=u,this.Ft=f,this.redGlobalThisPointer=N,this.Mt=K,this.Ht=G,this.kt=V,this.Rt=it,this.Ct=lt,this.It=pt;}evaluate(t){try{const e=this.Ht(t);return "function"==typeof e?(e(),this.Bt()):e}catch(t){var e;throw null!=(e=this.Bt())?e:t}}Dt(t,e,o){const r=[this.Et(t)];Pe(ve,r,e),null!=o&&o.length&&(r[r.length]=Le,Pe(ve,r,o)),Pe(this.It,void 0,r);}link(...t){let e=this.At,o=this.redGlobalThisPointer;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];e=this.jt(e,n),o=this.Mt(o,n),this.kt(o,e),this.Ft(e,o);}}Nt(t,e){const o=this.Et(t),r=Te(e),{length:n}=r,a=new $e(1+7*n);a[0]=o;for(let t=0,o=1;t<n;t+=1,o+=7){const n=r[t],i=e[n],s=be({__proto__:null},i);a[o]=n,a[o+1]="configurable"in s?!!s.configurable:Le,a[o+2]="enumerable"in s?!!s.enumerable:Le,a[o+3]="writable"in s?!!s.writable:Le,a[o+4]="value"in s?this.Et(s.value):Le,a[o+5]="get"in s?this.Et(s.get):Le,a[o+6]="set"in s?this.Et(s.set):Le;}Pe(this.Ct,this,a);}Kt(t,e){const o=this.Et(t),r=e?this.Et(e):e;this.Rt(o,r);}}const{assign:we}=Object,{ownKeys:me}=Reflect,xe=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],Oe=(_e=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape",...xe],Wt(_e,null),_e.at=wt,_e.concat=mt,_e.constructor=$t,_e.copyWithin=xt,_e.entries=Ot,_e.every=_t,_e.fill=At,_e.filter=Bt,_e.find=Et,_e.findIndex=jt,_e.flat=Ft,_e.flatMap=Mt,_e.forEach=Ht,_e.includes=kt,_e.indexOf=Rt,_e.join=Ct,_e.keys=It,_e.lastIndexOf=Dt,_e.map=Nt,_e.pop=Kt,_e.push=Gt,_e.reduce=Vt,_e.reduceRight=Ut,_e.reverse=zt,_e.shift=Xt,_e.slice=Zt,_e.some=Qt,_e.sort=Jt,_e.splice=Yt,_e.toLocaleString=qt,_e.toString=te,_e.unshift=ee,_e.values=oe,_e[vt]=re,_e[Pt]=ne,Wt(_e,Tt),_e);var _e;function getFilteredGlobalOwnKeys$LWS(t){const e=[];let o=0;const r=me(t);for(let t=0,{length:n}=r;t<n;t+=1){const n=r[t];Oe.includes(n)||(e[o++]=n);}return e}const{deleteProperty:Ae,getPrototypeOf:Be,ownKeys:Ee}=Reflect,je=toSafeWeakMap$LWS(new WeakMap),Fe=(()=>{const{navigator:t,navigator:{userAgentData:e}}=window,o=null==e?void 0:e.brands;if(Array.isArray(o)&&o.length?o.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t.userAgent))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){let e=je.get(t);if(e)return e;const{document:o,window:r}=t,n=Be(r),a=Be(n),i=Be(a);return e={document:o,Gt:Be(o),window:r,Vt:n,Ut:a,zt:i,Xt:Ee(i)},je.set(t,e),e}function filterWindowKeys$LWS(t){const e=[];let o=0;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(e[o++]=n);}return e}getCachedGlobalObjectReferences$LWS(window);const Me=Object,He=TypeError,{prototype:ke}=Document,{prototype:Re}=Node,{remove:Ce,setAttribute:Ie}=Element.prototype,{appendChild:De}=Re,{assign:Ne}=Me,{__lookupGetter__:Ke}=Me.prototype,{apply:Ge}=Reflect,{close:Ve,createElement:Ue,open:ze}=ke,Xe=Ge(Ke,ke,["body"]),Ze=Ge(Ke,HTMLElement.prototype,["style"]),Qe=Ge(Ke,HTMLIFrameElement.prototype,["contentWindow"]),Je=Ge(Ke,Re,["lastChild"]),Ye=document;let qe=null;function createIframeVirtualEnvironment$LWS(t,e){if("object"!=typeof t||null===t)throw new He("Missing global object virtualization target.");const{distortionCallback:o,endowments:r,globalObjectShape:n,instrumentation:a,Zt:i=!1}=Ne({__proto__:null},e),s=function(){var t;const e=Ge(Ue,Ye,["iframe"]),o=null!=(t=Ge(Xe,Ye,[]))?t:Ge(Je,Ye,[]);return Ge(Ze,e,[]).display="none",Ge(Ie,e,["sandbox","allow-same-origin allow-scripts"]),Ge(De,o,[e]),e}(),l=Ge(Qe,s,[]),c="object"!=typeof n||null===n;c&&null===qe&&(qe=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(l)));const u=getCachedGlobalObjectReferences$LWS(t),f=new VirtualEnvironment$LWS({_t:createBlueConnector$LWS(t),distortionCallback:o,instrumentation:a,redConnector:createRedConnector$LWS(l.eval)});if(!function(t,e){for(let o=0,{length:r}=xe;o<r;o+=1){const r=xe[o],n=e[r];n&&(n.prototype?t.link(r,"prototype"):t.link(r));}}(f,t),"undefined"==typeof globalThis?f.link("window","document"):f.link("document"),f.link("__proto__","__proto__","__proto__"),f.Kt(u.document,u.Gt),f.Dt(u.window,c?qe:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(n)),i?void 0:Fe),r){const t={};!function(t,e){const o=me(e);for(let r=0,{length:n}=o;r<n;r+=1){const n=o[r];if(!Oe.includes(n)){const o=e[n];o&&(t[n]=we({__proto__:null},o));}}return t}(t,r),Ae(y=t,"document"),Ae(y,"location"),Ae(y,"top"),Ae(y,"window"),Ae(y,"chrome"),f.Nt(u.window,t);}var y;if(f.Dt(u.zt,u.Xt),i){const{document:t}=l;Ge(ze,t,[]),Ge(Ve,t,[]);}else Ge(Ce,s,[]);return f}const to=`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{Qt:e}=t,o=Array,r=Promise,n=TypeError,{asyncIterator:a,iterator:i}=Symbol,{[i]:s}=o.prototype,l=function*(){}.constructor.prototype.prototype,{next:c,throw:u}=l,{delete:f,get:y,set:d}=Map.prototype,{appendChild:p}=Node.prototype,{defineProperties:S,freeze:h}=Object,{then:L}=r.prototype,$=r.resolve.bind(r),{apply:g,getPrototypeOf:W,setPrototypeOf:v}=Reflect,{replace:b}=String.prototype,{get:P,set:T}=WeakMap.prototype,{createElement:w}=Document.prototype,{querySelector:m,setAttribute:x}=Element.prototype,{stopPropagation:O}=Event.prototype,{addEventListener:_,removeEventListener:A}=EventTarget.prototype,B=document,{head:E}=B,j=new Map,F=/\\?'/g,M="data-locker-id",H=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;class LockerSecurityError$LWS extends Error{constructor(t){super(`Lightning Web Security: ${t}`);}}function escapeSingleQuotes$LWS(t){return g(b,t,[F,"\\'"])}function genStep$LWS(t,e,o,r,n,a,i){let s,l;try{s=g(a,t,[i]),l=s.value;}catch(t){return o(t),void 0}s.done?e(l):$(l).then(r,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{function onerror$LWS(e){g(A,t,["error",onerror$LWS]),g(A,t,["load",onload$LWS]),g(O,e,[]),r(new LockerSecurityError$LWS(`Resource loader error loading '${escapeSingleQuotes$LWS(o)}'.`));}function onload$LWS(){g(A,t,["error",onerror$LWS]),g(A,t,["load",onload$LWS]),e(void 0);}g(_,t,["error",onerror$LWS]),g(_,t,["load",onload$LWS]);});return g(T,e,[t,n]),g(p,E,[t]),n}function spreadable$LWS(t){return v(t,null),t[i]=s,t}function toString$LWS(t){return "string"==typeof t?t:`${t}`}return {asyncToGen:function(t,e,o){return new r((r,n)=>{const a=g(t,e,o);function next$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,c,t);}function thrower$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,u,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,o){if(0===e){let e=!1,{[a]:r}=o;if(null==r&&(e=!0,({[i]:r}=o)),"function"!=typeof r)throw new n("Object is not iterable.");return g(d,j,[t,{iterable:g(r,o,[]),step:void 0,sync:e}]),void 0}const s=g(y,j,[t]);if(1===e){const t=s.iterable.next();return s.sync?new r(e=>{s.step=t,e();}):g(L,t,[t=>{s.step=t;}])}if(2===e)return s.step.value;if(3===e){const e=!!s.step.done;return e&&g(f,j,[t]),e}},loadScript:function(t,o){const r=toString$LWS(o);let n=g(m,E,[`script[data-distorted-src='${escapeSingleQuotes$LWS(r)}'][data-locker-id='${H}']`]);var a;return n?null!=(a=g(P,e,[n]))?a:$():(n=g(w,B,["script"]),g(x,n,[M,H]),n.type="text/javascript",n.src=r,loadPromise$LWS(n,r))},loadStyle:function(t,o){const r=toString$LWS(o);let n=g(m,E,[`link[href='${escapeSingleQuotes$LWS(r)}']`]);var a;return n?null!=(a=g(P,e,[n]))?a:$():(n=g(w,B,["link"]),n.type="text/css",n.rel="stylesheet",n.href=r,loadPromise$LWS(n,r))},makeRedGet:function(...t){const{length:e}=t,r=o(e),n={};for(let o=0;o<e;o+=1)n[o]={__proto__:null,get:t[o]};return S(r,n),r},makeRedResyncImports:function(t){return function(){for(let e=0,{length:o}=t;e<o;e+=1)try{t[e];}catch(t){}return spreadable$LWS(t)}},namespace:function(t){return h(t)},spreadable:spreadable$LWS,super:function(t,e,o,r){const n=W(t.prototype)[e];return g(n,o,r)}}}})`;var eo,oo;!function(t){t[t.External=0]="External",t[t.Internal=1]="Internal";}(eo||(eo={})),ReflectSetPrototypeOf$LWS(eo,null),function(t){t[t.Script=0]="Script",t[t.Module=1]="Module";}(oo||(oo={})),ReflectSetPrototypeOf$LWS(oo,null);const no={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},ao={__proto__:null,"lws-core-sandbox":{sandboxKey:"lws-core-sandbox"}},io=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS),so=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS);let lo,co;function clearEvalContext$LWS(){const t=lo;return lo=void 0,t}function clearEvalHelpers$LWS(){const t=co;return co=void 0,t}function createDistortionEntries$LWS(t){const{globalObject:o,instrumentation:r,key:a,type:i,verboseInstrumentation:s}=t,{error:l}=r,c={context:void 0,endowments:void 0,globalObject:o,instrumentation:r,key:a,source:"",sourceType:oo.Script,type:i,verboseInstrumentation:s},{Document:u,Element:f,HTMLElement:y,HTMLIFrameElement:d,HTMLScriptElement:p,SVGElement:S,XSLTProcessor:h}=o,L=s&&"object"==typeof r&&null!==r,$=L?getBasicInstrumentationData$LWS(a):void 0,evaluator$LWS=(t,e,o)=>{const r=ObjectAssign$LWS({},c);return r.context=o,r.globalObject=e,r.source=t,evaluateInSandbox$LWS(r)},g=L?r.startActivity:void 0,W=i===eo.Internal?ArrayConcat$LWS(internalDistortionFactories$LWS,internalKeyedDistortionFactories$LWS):ArrayConcat$LWS(externalDistortionFactories$LWS,externalKeyedDistortionFactories$LWS);createBlockedPropertyDistortionFactories$LWS(CustomElementRegistry.prototype,CustomElementRegistryBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(u.prototype,DocumentBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(f.prototype,ElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(y.prototype,HTMLElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(d.prototype,HTMLIFrameElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(HTMLEmbedElement.prototype,HTMLEmbedElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(HTMLObjectElement.prototype,HTMLObjectElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(p.prototype,HTMLScriptElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(S.prototype,SVGElementBlockedProperties$LWS,W),"function"==typeof h&&createBlockedPropertyDistortionFactories$LWS(h.prototype,XSLTProcessorBlockedProperties$LWS,W),distortBlockedAttributes$LWS(o,y,HTMLElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,d,HTMLIFrameElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,p,HTMLScriptElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,S,SVGElementBlockedAttributes$LWS);const v=[];let b=0;for(let t=0,{length:s}=W;t<s;t+=1){const s=W[t],c=s(o,{evaluator:evaluator$LWS,key:a,instrumentation:r,sandboxType:i});if(!ArrayIsArray$LWS(c))continue;const{0:u,1:f}=c;if(!isObjectLike$LWS(u))continue;let y=f;if("function"==typeof f){let t;if(L){const{name:e}=s;t=e?ReflectApply$LWS(StringProtoReplace$LWS,e,[LOCKER_IDENTIFIER_MARKER$LWS,""]):"<unknown>";}const e=new ProxyCtor$LWS(u,ObjectFreeze$LWS({apply(o,r,i){let s;r===e&&(r=f),L&&(s=g(t,$));try{return ReflectApply$LWS(f,r,i)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{L&&s.stop();}},construct(o,r,n){let i;n===e&&(n=f),L&&(i=g(t,$));try{return ReflectConstruct$LWS(f,r,n)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{L&&i.stop();}}}));y=e;}v[b++]=[u,y];}return createAttributeDistortionsForSandboxKey$LWS(o,a,v),v}function getBasicInstrumentationData$LWS(t){let e=ao[t];return void 0===e&&(e={sandboxKey:t},ao[t]=e),e}function setEvalContext$LWS(t){lo=t;}function createEvaluateOptionsFromArgs$LWS(t){var e;const{length:o}=t,r=o?t[0]:void 0,n=1===o&&isObjectLike$LWS(r);return ObjectAssign$LWS({__proto__:null,context:o>2?t[2]:void 0,endowments:o>3?t[3]:void 0,globalObject:window,instrumentation:null!=(e=o>4?t[4]:void 0)?e:defaultInstrumentation$LWS,key:n?void 0:r,source:o>1?t[1]:void 0,sourceType:oo.Module,type:eo.External,verboseInstrumentation:o>5&&t[5]||!1},n?r:void 0)}function evaluateInSandbox$LWS(...t){const e=createEvaluateOptionsFromArgs$LWS(t),{context:o,endowments:r,globalObject:a,instrumentation:i,key:s,source:l,sourceType:c,type:u,verboseInstrumentation:f}=e;if("string"!=typeof s)throw new LockerSecurityError$LWS("Invalid sandbox key.");const y="object"==typeof i&&null!==i,d=y?getBasicInstrumentationData$LWS(s):void 0,p=y?i.startActivity:void 0;let S;y&&(S=p("evaluateInSandbox",d));let h=so.get(a);void 0===h&&(h={__proto__:null},so.set(a,h));let L=h[s];if(void 0===L){const t={context:void 0,endowments:void 0,globalObject:a,instrumentation:i,key:s,source:"",sourceType:oo.Script,type:u,verboseInstrumentation:f},e=toSafeMap$LWS(new MapCtor$LWS(createDistortionEntries$LWS(t)));e.set(a,a);const o=createIframeVirtualEnvironment$LWS(a,{distortionCallback(o){const r=e.get(o);if(r)return r;let n;const a=getDocumentDefaultView$LWS(o);if(a?(n=a,e.set(o,o)):isWindow$LWS(o)&&(n=o),n){e.set(n,n);const o=ObjectAssign$LWS({},t);o.globalObject=n;const r=createDistortionEntries$LWS(o);for(let t=0,{length:o}=r;t<o;t+=1){const{0:o,1:n}=r[t];e.set(o,n);}let a;o.context=t=>{a=t;},o.source=`${SANDBOX_EVAL_CONTEXT_NAME$LWS}(this)`,evaluateInSandbox$LWS(o),e.set(a,n);}return o},endowments:ObjectAssign$LWS({},no,r?ObjectGetOwnPropertyDescriptors$LWS(r):void 0),Zt:!1,instrumentation:f?i:void 0});L={evaluate:t=>o.evaluate(t),Jt:{}},setEvalContext$LWS(t=>{ObjectAssign$LWS(L.Jt,t({Qt:io}));}),L.evaluate(to),h[s]=L;}var $;let g;setEvalContext$LWS(o),$=L.Jt,co=$;const W=function(t,e=oo.Module){let o="function"==typeof t?extractFunctionBodySource$LWS(t):toString$LWS(t);return o=ReflectApply$LWS(StringProtoReplace$LWS,o,[/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"]),e===oo.Module&&-1===indexOfPragma$LWS(o,"use strict")?`'use strict';${o}`:o}(l,c);try{g=L.evaluate(W);}catch(t){throw y&&S.error({sandboxKey:s,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS();}return y&&S.stop(),g}
8013
+ 1}`.includes("*"),ot=LOCKER_UNMINIFIED_FLAG$LWS&&!Z,rt="function"==typeof BigInt,nt=Z?/\w*$/:void 0,{isArray:it}=n,{includes:at,indexOf:st,slice:lt}=n.prototype,{isView:ct}=i,ut=Z?void 0:g(z,i.prototype,["byteLength"]),ft=rt?BigInt.prototype.valueOf:void 0,{valueOf:dt}=Boolean.prototype,{toString:yt}=a.prototype,{bind:pt,toString:St}=Function.prototype,{stringify:ht}=JSON,{isInteger:Lt}=s,{valueOf:gt}=s.prototype,{revocable:$t}=c,{prototype:Wt}=f,{exec:vt,test:bt,toString:Tt}=Wt,Pt=Z?null!=(e=g(z,Wt,["flags"]))?e:function(){const t=g(Tt,this,[]);return g(vt,nt,[t])[0]}:void 0,wt=g(z,Wt,["source"]),{replace:mt,slice:Ot,valueOf:_t}=d.prototype,{toString:Et,valueOf:xt}=y.prototype,At=g(z,Uint8Array.prototype.__proto__,["length"]),{prototype:Bt}=S,{delete:Mt,has:Ft,set:jt,[L]:Ht}=Bt,kt=Z||"object"!=typeof console||null===console?void 0:console,Rt=null==kt?void 0:kt.info,It=Z?eval:void 0,Ct=null!=(o=null!=(r=null!=t?t:"undefined"!=typeof globalThis?globalThis:void 0)?r:"undefined"!=typeof self?self:void 0)?o:(W(I,"globalThis",{__proto__:null,configurable:!0,get(){return v(I,"globalThis"),null!=this?this:self}}),globalThis);let Nt=!1,Dt=!1;function alwaysFalse$LWS(){return !1}function identity$LWS(t){return t}const Gt=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(Nt)return;Nt=!0;const t=(()=>{try{var t;a.prepareStackTrace=(t,e)=>e;const e=(new a).stack;return v(a,"prepareStackTrace"),it(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0}catch(t){}})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:o,toString:r}=t.prototype,n=new f(`${g(mt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);try{a.prepareStackTrace=function(t,i){return function(t,i){let a="";try{a=g(yt,t,[]);}catch(t){a="<error>";}let s=!1;for(let t=0,{length:l}=i;t<l;t+=1){const l=i[t],c=g(o,l,[]);let u=!1;if("string"==typeof c&&"eval"!==c&&g(bt,n,[c])&&(u=!0),!u){const t=g(e,l,[]);"string"==typeof t&&g(bt,n,[t])&&(u=!0);}if(u)s||(s=!0,a+="\n at LWS");else {s=!1;try{a+=`\n at ${g(r,l,[])}`;}catch(t){}}}return a}(t,i)};}catch(t){}try{const{stackTraceLimit:t}=a;("number"!=typeof t||t<20)&&(a.stackTraceLimit=20);}catch(t){}}:noop$LWS;function noop$LWS(){}const Kt=Z?t=>g(ft,t,[]):noop$LWS,Ut=Z?t=>g(dt,t,[]):noop$LWS,Vt=Z?t=>g(gt,t,[]):noop$LWS,zt=Z?t=>{if(t!==Wt){const e=g(wt,t,[]);return ht({__proto__:null,flags:g(Pt,t,[]),source:e})}}:noop$LWS,Xt=Z?t=>g(_t,t,[]):noop$LWS,Qt=Z?t=>g(xt,t,[]):noop$LWS,Zt=Z?t=>{switch(g(G,t,[])){case"[object Boolean]":return Ut(t);case"[object Number]":return Vt(t);case"[object RegExp]":return zt(t);case"[object String]":return Xt(t);case"[object Object]":try{return Qt(t)}catch(t){}if(rt)try{return Kt(t)}catch(t){}default:return}}:noop$LWS,Jt=Z?t=>{try{return Qt(t)}catch(t){}if(rt)try{return Kt(t)}catch(t){}try{return Ut(t)}catch(t){}try{return Vt(t)}catch(t){}try{return zt(t)}catch(t){}try{return Xt(t)}catch(t){}}:noop$LWS;function toSafeWeakMap$LWS(t){return x(t,null),t.constructor=S,t.delete=Mt,t.has=Ft,t.set=jt,t[L]=Ht,x(t,Bt),t}return function(t,e,o){const{distortionCallback:r=identity$LWS,instrumentation:i}=A({__proto__:null},o),a=!Z&&"object"==typeof i&&null!==i,s={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},f={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},y=toSafeWeakMap$LWS(new S),h=toSafeWeakMap$LWS(new S),N=a?i.startActivity:void 0;let K,rt,nt,ft,dt,yt,ht,gt,vt,bt,Tt,Pt,mt,_t,xt,Bt,Mt,Ft,jt,Ht,Nt,Kt,Ut,Vt,zt,Xt,Qt,Yt,qt,te=!1,ee=0;const oe=Z?(t,e,o)=>{o[e]=!1;const r=getTransferablePointer$LWS(t);let n;try{gt(r,e,(t,e,o,r,i,a,s)=>{n=createDescriptorFromMeta$LWS(e,o,r,i,a,s);});}catch(t){var i;const e=null!=(i=qt)?i:t;throw qt=void 0,e}n?W(t,e,n):v(t,e);}:noop$LWS;let re=ot?()=>{try{Q(Ct,J)&&(re=()=>!0,Gt(),Nt());}catch(t){re=alwaysFalse$LWS;}return !1}:alwaysFalse$LWS;function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let o,r,n;a&&(o=N("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));try{r=Xt(t,(...t)=>{const o={};for(let e=0,{length:r}=t;e<r;e+=7){o[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}B(e,o);});}catch(t){var i;const e=null!=(i=qt)?i:t;throw qt=void 0,a&&o.error(e),e}"function"==typeof r?(r(),n=qt,qt=void 0):n=null,x(e,n),a&&o.stop();}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}()`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(0!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(1)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(1!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(2)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(2!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(3)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(3!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForFourOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(4)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(4!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForFiveOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(5)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(5!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r,4:i}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r,"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,o=e?"apply":"construct",r=e?nt:ft;return function(i,s,l){ee=t;const{i:c}=this,u=e?l:s,{length:f}=u;let d;a&&(d=N(`Reflect.${o}(${f})`));const y=e?s:l;let p=2;const S=new n(f+p);let h,L;S[0]=c;try{S[1]="object"==typeof y&&null!==y||"function"==typeof y?getTransferablePointer$LWS(y):"undefined"==typeof y?void 0:y;for(let t=0;t<f;t+=1){const e=u[t];S[p++]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e;}h=g(r,void 0,S);}catch(t){var $;const e=null!=($=qt)?$:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof h?(h(),L=qt,qt=void 0):L=h,a&&d.stop(),L}}function createDescriptorFromMeta$LWS(t,e,o,r,n,i){const a={__proto__:null};return t!==et&&(a.configurable=t),e!==et&&(a.enumerable=e),o!==et&&(a.writable=o),n!==et&&("function"==typeof n?(n(),a.get=qt,qt=void 0):a.get=void 0),i!==et&&("function"==typeof i?(i(),a.set=qt,qt=void 0):a.set=void 0),r!==et&&("function"==typeof r?(r(),a.value=qt,qt=void 0):a.value=r),a}function createPointer$LWS(t){return ()=>{qt=t;}}const ne=Z?t=>{let e=y.get(t);if(void 0===e){const o=Mt(getTransferablePointer$LWS(t));"function"==typeof o&&(o(),e=qt,qt=void 0,e&&y.set(t,e));}return e}:noop$LWS;function getTransferablePointer$LWS(t,e=rt){let o=h.get(t);if(o)return o;const n=Z?t:r(t);if(n!==t&&typeof n!=typeof t)throw new p(`Invalid distortion ${function(t){if("string"==typeof t)return t;try{if("object"==typeof t&&null!==t){const e=g(G,t,[]);return "[object Symbol]"===e?g(Et,t,[]):e}return "function"==typeof t?g(St,t,[]):d(t)}catch(t){}return "[Object Unknown]"}(t)}.`);let i=!0,a=0,s=0,l=16;if("function"==typeof n){i=!1,a=0,l=4;try{"prototype"in n||(l|=8);const e=T(t,"length");if(e){x(e,null);const{value:t}=e;"number"==typeof t&&(a=t);}void 0;}catch(t){i=!0;}}else if(ct(n)){i=!1,l=2;try{s=g(At,n,[]),l|=32;}catch(t){i=!0;}}if(i)try{it(n)&&(l=1);}catch(t){l=64;}return o=e(createPointer$LWS(n),l,a,"",s),h.set(t,o),o}const ie=Z?t=>{if(Dt)return;Dt=!0;const e=it(t)&&t.length>0,o=e?{__proto__:null}:void 0,r=e?(e,o)=>g(at,t,[o])?{configurable:!1,enumerable:g(D,e,[o]),get:n(o),set:void 0}:T(e,o):void 0,n=e?t=>{let e=o[t];return void 0===e&&(e=g(pt,s,[]),o[t]=e),e}:void 0,i=e?(e,o)=>g(at,t,[o])?n(o):g(z,e,[o]):void 0,a=e?(e,o)=>g(at,t,[o])?void 0:g(X,e,[o]):void 0,s=e?()=>Ct:void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,o=2===e;return new c(t,{apply(r,n,i){if(i.length>=e){const t=o?n:i[0];if("object"==typeof t&&null!==t||"function"==typeof t){const e=o?i[0]:i[1],r=ne(t);null!=r&&r[e]&&t[e];}}return g(t,n,i)}})},wrapLookupAccessor$LWS=(t,o)=>new c(t,{apply(r,n,i){if(i.length&&("object"==typeof n&&null!==n||"function"==typeof n)){const{0:t}=i,r=ne(n);if(null!=r&&r[t]&&n[t],e&&n===Ct)return o(n,t)}return g(t,n,i)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new c(t,{apply(o,n,i){if(i.length>1){const{0:t,1:o}=i;if("object"==typeof t&&null!==t||"function"==typeof t){const n=ne(t);if(null!=n&&n[o]&&t[o],e&&t===Ct)return r(t,o)}}return g(t,n,i)}});try{u.defineProperty=wrapDefineAccessOrProperty$LWS(W);}catch(t){}try{u.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(T);}catch(t){}try{l.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(F);}catch(t){}try{l.getOwnPropertyDescriptors=new c(f=j,{apply(t,o,n){const i=n.length?n[0]:void 0;if(("object"!=typeof i||null===i)&&"function"!=typeof i)return g(f,o,n);const a=ne(i),s=i===Ct&&e,l=s?{}:g(f,o,n);if(!s&&void 0===a)return l;const c=O(s?i:l);for(let t=0,{length:e}=c;t<e;t+=1){const e=c[t],o=!(null==a||!a[e]);if(o&&i[e],o||s){const t=s?r(i,e):T(i,e);t?l[e]=t:s||v(l,e);}}return l}});}catch(t){}var f;try{I.__defineGetter__=wrapDefineAccessOrProperty$LWS(U);}catch(t){}try{I.__defineSetter__=wrapDefineAccessOrProperty$LWS(V);}catch(t){}try{I.__lookupGetter__=wrapLookupAccessor$LWS(z,i);}catch(t){}try{I.__lookupSetter__=wrapLookupAccessor$LWS(X,a);}catch(t){}}:noop$LWS;function lookupForeignDescriptor$LWS(t,e,o){let r,n,i;a&&(r=N("lookupForeignDescriptor"));try{n=Yt(t,o,(t,r,n,a,s,l,c)=>{i={__proto__:null,l:!0},r!==et&&(i.configurable=r),n!==et&&(i.enumerable=n),a!==et&&(i.writable=a),l!==et&&("function"==typeof l?(l(),i.get=qt,qt=void 0):i.get=void 0),c!==et&&("function"==typeof c?(c(),i.set=qt,qt=void 0):i.set=void 0),s!==et&&("function"==typeof s?(s(),i.value=qt,qt=void 0):i.value=s),!1===r&&W(e,o,i);});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,a&&r.error(e),e}if(void 0===i){let t;for("function"==typeof n?(n(),t=qt,qt=void 0):t=null;t;){if(i=T(t,o),i){x(i,null);break}t=P(t);}if(i){var l;const{get:t,set:e,value:o}=i,r=null!=(l=null!=t?t:e)?l:o;i.l=("object"==typeof r&&null!==r||"function"==typeof r)&&void 0!==h.get(r);}}return a&&r.stop(),i}function pushErrorAcrossBoundary$LWS(t){if(ot&&re(),"object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t,K)();}return t}function pushTarget$LWS(t,e,o,r,n){const{proxy:i}=new BoundaryProxyHandler$LWS(t,e,o,r,n);return h.set(i,t),createPointer$LWS(i)}const ae=Z?(t,e)=>{y.set(t,e),zt(getTransferablePointer$LWS(t),getTransferablePointer$LWS(e));}:noop$LWS;class BoundaryProxyHandler$LWS{constructor(t,e,o,r,n){let i;const a=1&e,l=4&e;i=l?8&e?()=>{}:function(){}:a?[]:{};const{proxy:c,revoke:u}=$t(i,this);var d,y;(this.i=t,this.u=e,this.p=n,this.S=(t,e,o,r,n,i,a)=>{W(this.h,t,createDescriptorFromMeta$LWS(e,o,r,n,i,a));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.h=i,this.L="Object",l)&&(this.apply=this[null!=(d=s[o])?d:s.n],this.construct=this[null!=(y=f[o])?y:f.n]);if(this.defineProperty=BoundaryProxyHandler$LWS.g,this.deleteProperty=BoundaryProxyHandler$LWS.$,this.isExtensible=BoundaryProxyHandler$LWS.W,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.v,this.getPrototypeOf=BoundaryProxyHandler$LWS.T,this.get=32&e?BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray:BoundaryProxyHandler$LWS.P,this.has=BoundaryProxyHandler$LWS.m,this.ownKeys=BoundaryProxyHandler$LWS.O,this.preventExtensions=BoundaryProxyHandler$LWS._,this.setPrototypeOf=BoundaryProxyHandler$LWS.A,this.set=BoundaryProxyHandler$LWS.B,64&e)M(this),this.revoke();else if(Z)(a||2&e)&&this.M();else {if(16&e){let t=et;g(U,this,["serializedValue",()=>(t===et&&(t=Vt(this.i)),t)]);}M(this);}}M(){this.deleteProperty=BoundaryProxyHandler$LWS.F,this.defineProperty=BoundaryProxyHandler$LWS.j,this.preventExtensions=BoundaryProxyHandler$LWS.H,this.set=BoundaryProxyHandler$LWS.k,this.setPrototypeOf=BoundaryProxyHandler$LWS.R,M(this);}I(){this.defineProperty=BoundaryProxyHandler$LWS.C,this.deleteProperty=BoundaryProxyHandler$LWS.N,this.get=BoundaryProxyHandler$LWS.D,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.G,this.getPrototypeOf=BoundaryProxyHandler$LWS.K,this.has=BoundaryProxyHandler$LWS.U,this.isExtensible=BoundaryProxyHandler$LWS.V,this.ownKeys=BoundaryProxyHandler$LWS.X,this.preventExtensions=BoundaryProxyHandler$LWS.Z,this.set=BoundaryProxyHandler$LWS.J,this.setPrototypeOf=BoundaryProxyHandler$LWS.Y;const{i:t,u:e,h:o}=this,r=Ft(t);if(8&r)return M(this),this.revoke(),void 0;try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o);}catch(e){if(Ut(t))return M(this),this.revoke(),void 0}if(16&e&&!(L in o)){let e="Object";try{e=jt(t);}catch(t){}this.L=e;}4&r?M(o):(2&r?C(o):1&r&&_(o),LOCKER_UNMINIFIED_FLAG$LWS&&Bt("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),M(this);}static j(t,e,o){let r;ee=4,a&&(r=N("Reflect.defineProperty"));const{i:n,S:i}=this,s=o;x(s,null);const{get:l,set:c,value:u}=s,f="value"in s?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):"undefined"==typeof u?void 0:u:et,d="get"in s?"function"==typeof l?getTransferablePointer$LWS(l):l:et,y="set"in s?"function"==typeof c?getTransferablePointer$LWS(c):c:et;let p=!1;try{p=dt(n,e,"configurable"in s?!!s.configurable:et,"enumerable"in s?!!s.enumerable:et,"writable"in s?!!s.writable:et,f,d,y,i);}catch(t){var S;const e=null!=(S=qt)?S:t;throw qt=void 0,a&&r.error(e),e}return a&&r.stop(),p}static F(t,e){let o;ee=8,a&&(o=N("Reflect.deleteProperty"));let r=!1;try{r=yt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,a&&o.error(e),e}return a&&o.stop(),r}static q(t){let e,o,r;ee=64,a&&(e=N("Reflect.getPrototypeOf"));try{o=vt(this.i);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,a&&e.error(o),o}return "function"==typeof o?(o(),r=qt,qt=void 0):r=null,a&&e.stop(),r}static tt(t){let e;ee=256,a&&(e=N("Reflect.isExtensible"));const{h:o}=this;let r=!1;if(m(o)){const{i:t}=this;try{r=Tt(t);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,a&&e.error(o),o}r||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o),_(o));}return a&&e.stop(),r}static et(t){let e,o;ee=512,a&&(e=N("Reflect.ownKeys"));try{Pt(this.i,(...t)=>{o=t;});}catch(t){var r;const o=null!=(r=qt)?r:t;throw qt=void 0,a&&e.error(o),o}return a&&e.stop(),o||[]}static ot(t,e){let o;ee=32,a&&(o=N("Reflect.getOwnPropertyDescriptor"));const{i:r,h:n}=this;let i;try{gt(r,e,(t,o,r,a,s,l,c)=>{i=createDescriptorFromMeta$LWS(o,r,a,s,l,c),!1===i.configurable&&W(n,e,i);});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,a&&o.error(e),e}return a&&o.stop(),i}static H(t){let e;ee=1024,a&&(e=N("Reflect.preventExtensions"));const{i:o,h:r}=this;let n=!0;if(m(r)){let t=0;try{t=mt(o);}catch(t){var i;const o=null!=(i=qt)?i:t;throw qt=void 0,a&&e.error(o),o}1&t||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(o,r),_(r)),n=!(2&t);}return a&&e.stop(),n}static R(t,e){let o;ee=4096,a&&(o=N("Reflect.setPrototypeOf"));const r=e?getTransferablePointer$LWS(e):e;let n=!1;try{n=xt(this.i,r);}catch(t){var i;const e=null!=(i=qt)?i:t;throw qt=void 0,a&&o.error(e),e}return a&&o.stop(),n}static k(t,e,o,r){ee=2048;const{i:n,proxy:i,h:s}=this;"undefined"==typeof o&&(o=void 0),"undefined"==typeof r&&(r=i);const l=i===r;let c;a&&(c=N(l?"Reflect.set":"passthruForeignTraversedSet"));let u=!1;try{u=l?_t(n,e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o,et):function(t,e,o,r,n){const i=lookupForeignDescriptor$LWS(t,e,o);if(i){if("get"in i||"set"in i){const{set:t}=i;return !!t&&(i.l?nt(getTransferablePointer$LWS(t),"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):"undefined"==typeof n?void 0:n,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r):g(t,n,[r]),!0)}if(!1===i.writable)return !1}if(("object"!=typeof n||null===n)&&"function"!=typeof n)return !1;const a=T(n,o);return a?(x(a,null),!("get"in a)&&!("set"in a)&&!1!==a.writable&&(W(n,o,{__proto__:null,value:r}),!0)):W(n,o,{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!0})}(n,s,e,o,r);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&c.error(e),e}return a&&c.stop(),u}}BoundaryProxyHandler$LWS.rt=Z?function(t,e,o){let r;a&&(r=N("hybridGetTrap"));const{i:n,u:i,proxy:s,h:l}=this,c=lookupForeignDescriptor$LWS(n,l,e);let u;if(c){const{get:t,value:e}=c;if(t)if(c.l){const e=getTransferablePointer$LWS(t),i=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(e,i);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=g(t,o,[]);else u=e;}else if(e===L&&16&i){let t;try{t=jt(n);}catch(t){var d;const e=null!=(d=qt)?d:t;throw qt=void 0,a&&r.error(e),e}"Object"!==t&&(u=t);}return a&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray=Z?function(t,e,o){let r;a&&(r=N("hybridGetTrapForTypedArray"));const{i:n,p:i,proxy:s,h:l}=this,c="string"==typeof e?+e:-1;let u;if(c>-1&&c<i&&Lt(c))try{u=Ht(n,e);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&r.error(e),e}else {const t=lookupForeignDescriptor$LWS(n,l,e);if(t){const{get:e,value:i}=t;if(e)if(t.l){const t=getTransferablePointer$LWS(e),i=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(t,i);}catch(t){var d;const e=null!=(d=qt)?d:t;throw qt=void 0,a&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=g(e,o,[]);else u=i;}}return a&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.nt=Z?function(t,e){let o,r;a&&(o=N("hybridHasTrap"));try{r=Qt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,a&&o.error(e),e}let i=!1;if(!0===r)i=!0;else {let t;for("function"==typeof r?(r(),t=qt,qt=void 0):t=null;t;){if(Q(t,e)){i=!0;break}t=P(t);}}return a&&o.stop(),i}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.it=Z?noop$LWS:function(t,e,o){if(te&&(te=128===ee),ee=16,te){if(e===tt)return !0;if(e===q)return this.serializedValue}let r;a&&(r=N("Reflect.get"));const{i:n,u:i,proxy:s}=this;"undefined"==typeof o&&(o=s);const l=s===o?et:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let c,u;try{c=ht(n,i,e,l);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&r.error(e),e}return "function"==typeof c?(c(),u=qt,qt=void 0):u=c,a&&r.stop(),u},BoundaryProxyHandler$LWS.st=Z?alwaysFalse$LWS:function(t,e){let o,r;ee=128,a&&(o=N("Reflect.has"));try{r=bt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,a&&o.error(e),e}return te=!r&&(e===tt||e===q),a&&o.stop(),r},BoundaryProxyHandler$LWS.lt=Z?function(t,e,o){return Kt(this.i)?this.M():this.I(),this.defineProperty(t,e,o)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ct=Z?function(t,e){return Kt(this.i)?this.M():this.I(),this.deleteProperty(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ut=Z?function(t){return Kt(this.i)?this.M():this.I(),this.preventExtensions(t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ft=Z?function(t,e){return Kt(this.i)?this.M():this.I(),this.setPrototypeOf(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.dt=Z?function(t,e,o,r){return Kt(this.i)?this.M():this.I(),this.set(t,e,o,r)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.C=Z?W:alwaysFalse$LWS,BoundaryProxyHandler$LWS.N=Z?v:alwaysFalse$LWS,BoundaryProxyHandler$LWS.G=Z?T:noop$LWS,BoundaryProxyHandler$LWS.K=Z?P:()=>null,BoundaryProxyHandler$LWS.D=Z?function(t,e,o){const{u:r,L:n}=this,i=b(t,e,o);return void 0===i&&e===L&&16&r&&"Object"!==n&&!(e in t)?n:i}:noop$LWS,BoundaryProxyHandler$LWS.U=Z?w:alwaysFalse$LWS,BoundaryProxyHandler$LWS.V=Z?m:alwaysFalse$LWS,BoundaryProxyHandler$LWS.X=Z?O:()=>[],BoundaryProxyHandler$LWS.Z=Z?_:alwaysFalse$LWS,BoundaryProxyHandler$LWS.Y=Z?x:alwaysFalse$LWS,BoundaryProxyHandler$LWS.J=Z?E:alwaysFalse$LWS,BoundaryProxyHandler$LWS.g=Z?BoundaryProxyHandler$LWS.lt:BoundaryProxyHandler$LWS.j,BoundaryProxyHandler$LWS.$=Z?BoundaryProxyHandler$LWS.ct:BoundaryProxyHandler$LWS.F,BoundaryProxyHandler$LWS.v=BoundaryProxyHandler$LWS.ot,BoundaryProxyHandler$LWS.T=BoundaryProxyHandler$LWS.q,BoundaryProxyHandler$LWS.P=Z?BoundaryProxyHandler$LWS.rt:BoundaryProxyHandler$LWS.it,BoundaryProxyHandler$LWS.m=Z?BoundaryProxyHandler$LWS.nt:BoundaryProxyHandler$LWS.st,BoundaryProxyHandler$LWS.W=BoundaryProxyHandler$LWS.tt,BoundaryProxyHandler$LWS.O=BoundaryProxyHandler$LWS.et,BoundaryProxyHandler$LWS._=Z?BoundaryProxyHandler$LWS.ut:BoundaryProxyHandler$LWS.H,BoundaryProxyHandler$LWS.B=Z?BoundaryProxyHandler$LWS.dt:BoundaryProxyHandler$LWS.k,BoundaryProxyHandler$LWS.A=Z?BoundaryProxyHandler$LWS.ft:BoundaryProxyHandler$LWS.R,e(createPointer$LWS(Ct),Z?noop$LWS:()=>{const t=qt;return qt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,(t,e)=>{t();const o=qt;qt=void 0;const r=null==o?void 0:o[e];return createPointer$LWS("undefined"==typeof r?void 0:r)},Z?t=>{let e;try{e=It(t);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):e}:noop$LWS,(t,e)=>{t();const o=qt;qt=void 0,("object"==typeof o&&null!==o||"function"==typeof o)&&h.set(o,e);},ot?(t,e,o,r,n)=>{const i=pushTarget$LWS(t,e,o,r,n);return ()=>(re(),i())}:pushTarget$LWS,pushTarget$LWS,(t,e,...o)=>{t();const r=qt;let n,i;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{i=g(r,n,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i},(t,e,...o)=>{t();const r=qt;let n,i;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{i=$(r,o,n);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i},(t,e,o,r,n,i,a,s,l)=>{t();const c=qt;qt=void 0;const u=createDescriptorFromMeta$LWS(o,r,n,i,a,s);let f=!1;try{f=W(c,e,u);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(f&&!1===o){let t;try{t=T(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&(x(t,null),!1===t.configurable)){const{get:o,set:r,value:n}=t;l(e,!1,"enumerable"in t?t.enumerable:et,"writable"in t?t.writable:et,"value"in t?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):n:et,"get"in t?"function"==typeof o?getTransferablePointer$LWS(o):o:et,"set"in t?"function"==typeof r?getTransferablePointer$LWS(r):r:et);}}return f},(t,e)=>{t();const o=qt;qt=void 0;try{return v(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,o,r)=>{t();const n=qt;let i,a;qt=void 0,"function"==typeof r?(r(),i=qt,qt=void 0):i=r===et?n:r;try{a=b(n,o,i);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof a&&null!==a||"function"==typeof a)return getTransferablePointer$LWS(a);if(void 0===a&&o===L&&16&e)try{if(!(o in n)){const t=g(G,n,[]);"[object Object]"!==t&&(a=g(Ot,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof a?void 0:a},(t,e,o)=>{t();const r=qt;let n;qt=void 0;try{n=T(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){x(n,null);const{get:t,set:r,value:i}=n;o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i:et,"get"in n?"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"function"==typeof r?getTransferablePointer$LWS(r):r:et);}},t=>{t();const e=qt;let o;qt=void 0;try{o=P(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof o?null:o?getTransferablePointer$LWS(o):o},(t,e)=>{t();const o=qt;qt=void 0;try{return e in o}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=qt;qt=void 0;try{return m(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=O(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}g(e,void 0,r);},t=>{t();const e=qt;qt=void 0;let o=2;try{_(e)?o=4:m(e)&&(o|=1);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o},(t,e,o,r)=>{t();const n=qt;let i,a;qt=void 0,"function"==typeof o?(o(),i=qt,qt=void 0):i=o,"function"==typeof r?(r(),a=qt,qt=void 0):a=r===et?n:r;try{return E(n,e,i,a)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e=null)=>{t();const o=qt;let r;qt=void 0,"function"==typeof e?(e(),r=qt,qt=void 0):r=null;try{return x(o,r)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},ot?(...t)=>{if(re()){for(let e=0,{length:o}=t;e<o;e+=1){const o=t[e];"function"==typeof o&&(o(),t[e]=qt,qt=void 0);}try{g(Rt,kt,t);}catch(t){}}}:noop$LWS,Z?(t,...e)=>{t();const o=qt;qt=void 0;for(let t=0,{length:r}=e;t<r;t+=7)W(o,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));}:noop$LWS,Z?noop$LWS:t=>{t();const e=qt;qt=void 0;const o=ge.get(e);return o?getTransferablePointer$LWS(o):o},Z?()=>0:t=>{t();const e=qt;qt=void 0;try{if(!m(e))return H(e)||k(e)?0:1}catch(t){try{it(e);}catch(t){return 8}}return 0},t=>{t();const e=qt;qt=void 0;try{const t=g(G,e,[]);return "[object Object]"===t?"Object":g(Ot,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Z?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0;try{return o[e]}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Gt,Z?(t,...e)=>{const o=g(st,e,[et]);let r,n;-1===o?r=e:(r=g(lt,e,[0,o]),n=g(lt,e,[o+1])),t();const i=qt;qt=void 0;let a=ne(i);void 0===a&&(a={__proto__:null},ae(i,a));for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];a[e]=!0,W(i,e,{__proto__:null,configurable:!0,get:()=>(oe(i,e,a),i[e]),set(t){oe(i,e,a),E(i,e,t);}});}ie(n);}:noop$LWS,Z?alwaysFalse$LWS:t=>{t();const e=qt;if(qt=void 0,null==e||e===I||e===Wt)return !1;if("function"==typeof e){try{return Q(e,Y)}catch(t){}return !1}if("object"==typeof e){let t;try{if(({constructor:t}=e),t===l)return !0}catch(t){}try{if(Q(e,Y))return !0}catch(t){}try{if(null===P(e)&&("function"!=typeof t||t.prototype!==e))return !0}catch(t){}try{if(Q(e,"lastIndex"))return g(wt,e,[]),!0}catch(t){}try{if("byteLength"in e)return g(ut,e,[]),!0}catch(t){}}return !1},Z?alwaysFalse$LWS:t=>{t();const e=qt;qt=void 0;try{return it(e),!1}catch(t){}return !0},Z?t=>{t();const e=qt;qt=void 0;try{return L in e?Jt(e):Zt(e)}catch(t){}}:noop$LWS,Z?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0,e();const r=qt;qt=void 0,ge.set(o,r);},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=j(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const i=O(r),{length:a}=i,s=new n(7*a);for(let t=0,e=0;t<a;t+=1,e+=7){const o=i[t],n=r[o];x(n,null);const{get:a,set:l,value:c}=n;s[e]=o,s[e+1]="configurable"in n?n.configurable:et,s[e+2]="enumerable"in n?n.enumerable:et,s[e+3]="writable"in n?n.writable:et,s[e+4]="value"in n?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et,s[e+5]="get"in n?"function"==typeof a?getTransferablePointer$LWS(a):a:et,s[e+6]="set"in n?"function"==typeof l?getTransferablePointer$LWS(l):l:et;}let l;g(e,void 0,s);try{l=P(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof l?null:l?getTransferablePointer$LWS(l):l},(t,e)=>{t();const o=qt;let r;qt=void 0;try{if(Q(o,e))return !0;r=P(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof r?null:r?getTransferablePointer$LWS(r):r},(t,e,o)=>{t();const r=qt;let n,i;qt=void 0;try{n=T(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){x(n,null);const{get:t,set:r,value:i}=n;return o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i:et,"get"in n?"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"function"==typeof r?getTransferablePointer$LWS(r):r:et),void 0}try{i=P(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof i?null:i?getTransferablePointer$LWS(i):i});let se=!1;return (...t)=>{if(se)return;se=!0,({6:K,7:rt,8:nt,9:ft,10:dt,11:yt,12:ht,13:gt,14:vt,15:bt,16:Tt,17:Pt,18:mt,19:_t,20:xt,21:Bt,23:Mt,24:Ft,25:jt,26:Ht,27:Nt,29:Kt,30:Ut,31:Vt,32:zt,33:Xt,34:Qt,35:Yt}=t);const e=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),o=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),r=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),n=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1),i=createApplyOrConstructTrapForFourOrMoreArgs$LWS(1),a=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1),l=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),c=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),u=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),d=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),y=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2),p=createApplyOrConstructTrapForFourOrMoreArgs$LWS(2),S=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2),h=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2),L=R({yt:e,St:o,ht:r,Lt:n,gt:i,$t:a,Wt:l,vt:c,bt:u,Tt:d,Pt:y,wt:p,Ot:S,_t:h});s[0]=L[0],s[1]=L[1],s[2]=L[2],s[3]=L[3],s[4]=L[4],s[5]=L[5],s.n=L[6],f[0]=L[7],f[1]=L[8],f[2]=L[9],f[3]=L[10],f[4]=L[11],f[5]=L[12],f.n=L[13];const{prototype:g}=BoundaryProxyHandler$LWS;g[s[0]]=e,g[s[1]]=o,g[s[2]]=r,g[s[3]]=n,g[s[4]]=i,g[s[5]]=a,g[s.n]=l,g[f[0]]=c,g[f[1]]=u,g[f[2]]=d,g[f[3]]=y,g[f[4]]=p,g[f[5]]=S,g[f.n]=h,x(g,null),M(g);}}}const $e=TypeError,We=`\n'use strict';\n(${createMembraneMarshall$LWS})`;function createRedConnector$LWS(t){if("function"!=typeof t)throw new $e("Missing evaluator function.");return t(We)()}const ve=Symbol.for("@@lockerNearMembraneUndefinedValue"),be=Array,Te=Error,Pe=Object,{push:we}=be.prototype,{assign:me}=Pe,{apply:Oe,ownKeys:_e}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new Te("Missing VirtualEnvironmentOptions options bag.");const{Et:e,distortionCallback:o,instrumentation:r,redConnector:n}=me({__proto__:null},t);let i;const a=e("blue",(...t)=>{i=t;},{distortionCallback:o,instrumentation:r}),{0:s,1:l,2:c,3:u,5:f,6:d,7:y,8:p,9:S,10:h,11:L,12:g,13:$,14:W,15:v,16:b,17:T,18:P,19:w,20:m,21:O,23:_,24:E,25:x,26:A,27:B,29:M,30:F,31:j,32:H,33:k,34:R,35:I}=i;let C;const N=n("red",(...t)=>{C=t;}),{0:D,3:G,4:K,5:U,6:V,7:z,8:X,9:Q,10:Z,11:J,12:Y,13:q,14:tt,15:et,16:ot,17:rt,18:nt,19:it,20:at,21:st,22:lt,23:ct,24:ut,25:ft,26:dt,27:yt,28:pt,29:St,30:ht,31:Lt,32:gt,33:$t,34:Wt,35:vt}=C;a(void 0,void 0,void 0,void 0,void 0,void 0,V,z,X,Q,Z,J,Y,q,tt,et,ot,rt,nt,it,at,st,void 0,ct,ut,ft,dt,yt,void 0,St,ht,Lt,gt,$t,Wt,vt),N(void 0,void 0,void 0,void 0,void 0,void 0,d,y,p,S,h,L,g,$,W,v,b,T,P,w,m,O,void 0,_,E,x,A,B,void 0,M,F,j,H,k,R,I),this.xt=s,this.At=l,this.Bt=c,this.Mt=u,this.Ft=f,this.redGlobalThisPointer=D,this.jt=G,this.Ht=K,this.kt=U,this.Rt=at,this.It=lt,this.Ct=pt;}evaluate(t){try{const e=this.Ht(t);return "function"==typeof e?(e(),this.At()):e}catch(t){var e;throw null!=(e=this.At())?e:t}}Nt(t,e,o){if("object"==typeof t&&null!==t||"function"==typeof t){const r=[this.Bt(t)];Oe(we,r,e),null!=o&&o.length&&(r[r.length]=ve,Oe(we,r,o)),Oe(this.Ct,void 0,r);}}link(...t){let e=this.xt,o=this.redGlobalThisPointer;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];e=this.Mt(e,n),o=this.jt(o,n),this.kt(o,e),this.Ft(e,o);}}Dt(t,e){if("object"==typeof t&&null!==t||"function"==typeof t){const o=this.Bt(t),r=_e(e),{length:n}=r,i=new be(1+7*n);i[0]=o;for(let t=0,o=1;t<n;t+=1,o+=7){const n=r[t],a=e[n],s=me({__proto__:null},a);i[o]=n,i[o+1]="configurable"in s?!!s.configurable:ve,i[o+2]="enumerable"in s?!!s.enumerable:ve,i[o+3]="writable"in s?!!s.writable:ve,i[o+4]="value"in s?this.Bt(s.value):ve,i[o+5]="get"in s?this.Bt(s.get):ve,i[o+6]="set"in s?this.Bt(s.set):ve;}Oe(this.It,this,i);}}Gt(t,e){if("object"==typeof t&&null!==t||"function"==typeof t){const o=this.Bt(t),r=e?this.Bt(e):e;this.Rt(o,r);}}}const{assign:Ee}=Object,{ownKeys:xe}=Reflect,Ae=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],Be=(Me=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape",...Ae],Ot(Me,null),Me.at=Bt,Me.concat=Mt,Me.constructor=wt,Me.copyWithin=Ft,Me.entries=jt,Me.every=Ht,Me.fill=kt,Me.filter=Rt,Me.find=It,Me.findIndex=Ct,Me.flat=Nt,Me.flatMap=Dt,Me.forEach=Gt,Me.includes=Kt,Me.indexOf=Ut,Me.join=Vt,Me.keys=zt,Me.lastIndexOf=Xt,Me.map=Qt,Me.pop=Zt,Me.push=Jt,Me.reduce=Yt,Me.reduceRight=qt,Me.reverse=te,Me.shift=ee,Me.slice=oe,Me.some=re,Me.sort=ne,Me.splice=ie,Me.toLocaleString=ae,Me.toString=se,Me.unshift=le,Me.values=ce,Me[_t]=ue,Me[xt]=fe,Ot(Me,At),Me);var Me;function getFilteredGlobalOwnKeys$LWS(t){const e=[];let o=0;const r=xe(t);for(let t=0,{length:n}=r;t<n;t+=1){const n=r[t];Be.includes(n)||(e[o++]=n);}return e}const{deleteProperty:Fe,getPrototypeOf:je,ownKeys:He}=Reflect,ke=toSafeWeakMap$LWS(new WeakMap),Re=(()=>{const{navigator:t,navigator:{userAgentData:e}}=window,o=null==e?void 0:e.brands;if(Array.isArray(o)&&o.length?o.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t.userAgent))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){const{window:e}=t;let o,r;try{({document:r}=t),o=ke.get(r);}catch(t){return}if(o)return o;const n=je(e),i=je(n),a=je(i);return o={document:r,Kt:je(r),window:e,Ut:je(e),Vt:je(n),zt:a,Xt:He(a)},ke.set(r,o),o}function filterWindowKeys$LWS(t){const e=[];let o=0;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(e[o++]=n);}return e}getCachedGlobalObjectReferences$LWS(window);const Ie=Object,Ce=TypeError,Ne=WeakMap,{prototype:De}=Document,{prototype:Ge}=Node,{remove:Ke,setAttribute:Ue}=Element.prototype,{appendChild:Ve}=Ge,{assign:ze}=Ie,{__lookupGetter__:Xe}=Ie.prototype,{apply:Qe}=Reflect,{close:Ze,createElement:Je,open:Ye}=De,qe=Qe(Xe,De,["body"]),to=Qe(Xe,HTMLElement.prototype,["style"]),eo=Qe(Xe,HTMLIFrameElement.prototype,["contentWindow"]),oo=Qe(Xe,Ge,["lastChild"]),ro=document,no=toSafeWeakMap$LWS(new Ne);let io=null;function createIframeVirtualEnvironment$LWS(t,e){if("object"!=typeof t||null===t)throw new Ce("Missing global object virtualization target.");const{distortionCallback:o,endowments:r,globalObjectShape:n,instrumentation:i,Qt:a=!1}=ze({__proto__:null},e),s=function(){var t;const e=Qe(Je,ro,["iframe"]),o=null!=(t=Qe(qe,ro,[]))?t:Qe(oo,ro,[]);return Qe(to,e,[]).display="none",Qe(Ue,e,["sandbox","allow-same-origin allow-scripts"]),Qe(Ve,o,[e]),e}(),l=Qe(eo,s,[]),c="object"!=typeof n||null===n;c&&null===io&&(io=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(l)));const u=getCachedGlobalObjectReferences$LWS(t);if("object"!=typeof u||null===u)throw new Ce("Invalid virtualization target.");let f=no.get(u.document);void 0===f&&(f=function(t){if("object"!=typeof t||null===t)throw new $e("Missing globalObject.");return createMembraneMarshall$LWS(t)}(t),no.set(u.document,f));const d=new VirtualEnvironment$LWS({Et:f,distortionCallback:o,instrumentation:i,redConnector:createRedConnector$LWS(l.eval)});if(!function(t,e){for(let o=0,{length:r}=Ae;o<r;o+=1){const r=Ae[o],n=e[r];n&&(n.prototype?t.link(r,"prototype"):t.link(r));}}(d,t),"undefined"==typeof globalThis?d.link("window","document"):d.link("document"),d.link("__proto__","__proto__","__proto__"),d.Gt(u.document,u.Kt),d.Nt(u.window,c?io:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(n)),a?void 0:Re),r){const t={};!function(t,e){const o=xe(e);for(let r=0,{length:n}=o;r<n;r+=1){const n=o[r];if(!Be.includes(n)){const o=e[n];o&&(t[n]=Ee({__proto__:null},o));}}return t}(t,r),Fe(y=t,"document"),Fe(y,"location"),Fe(y,"top"),Fe(y,"window"),Fe(y,"chrome"),d.Dt(u.window,t);}var y;if(d.Nt(u.zt,u.Xt),a){const{document:t}=l;Qe(Ye,t,[]),Qe(Ze,t,[]);}else Qe(Ke,s,[]);return d}const ao=`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{Zt:e}=t,o=Array,r=Promise,n=TypeError,{asyncIterator:i,iterator:a}=Symbol,{[a]:s}=o.prototype,l=function*(){}.constructor.prototype.prototype,{next:c,throw:u}=l,{delete:f,get:d,set:y}=Map.prototype,{appendChild:p}=Node.prototype,{defineProperties:S,freeze:h}=Object,{then:L}=r.prototype,g=r.resolve.bind(r),{apply:$,getPrototypeOf:W,setPrototypeOf:v}=Reflect,{replace:b}=String.prototype,{get:T,set:P}=WeakMap.prototype,{createElement:w}=Document.prototype,{querySelector:m,setAttribute:O}=Element.prototype,{stopPropagation:_}=Event.prototype,{addEventListener:E,removeEventListener:x}=EventTarget.prototype,{head:A}=document,B=new Map,M=/\\?'/g,F="data-locker-id",j=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;class LockerSecurityError$LWS extends Error{constructor(t){super(`Lightning Web Security: ${t}`);}}function escapeSingleQuotes$LWS(t){return $(b,t,[M,"\\'"])}function genStep$LWS(t,e,o,r,n,i,a){let s,l;try{s=$(i,t,[a]),l=s.value;}catch(t){return o(t),void 0}s.done?e(l):g(l).then(r,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{function onerror$LWS(e){$(x,t,["error",onerror$LWS]),$(x,t,["load",onload$LWS]),$(_,e,[]),r(new LockerSecurityError$LWS(`Resource loader error loading '${escapeSingleQuotes$LWS(o)}'.`));}function onload$LWS(){$(x,t,["error",onerror$LWS]),$(x,t,["load",onload$LWS]),e(void 0);}$(E,t,["error",onerror$LWS]),$(E,t,["load",onload$LWS]);});return $(P,e,[t,n]),$(p,A,[t]),n}function spreadable$LWS(t){return v(t,null),t[a]=s,t}function toString$LWS(t){return "string"==typeof t?t:`${t}`}return {asyncToGen:function(t,e,o){return new r((r,n)=>{const i=$(t,e,o);function next$LWS(t){genStep$LWS(i,r,n,next$LWS,thrower$LWS,c,t);}function thrower$LWS(t){genStep$LWS(i,r,n,next$LWS,thrower$LWS,u,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,o){if(0===e){let e=!1,{[i]:r}=o;if(null==r&&(e=!0,({[a]:r}=o)),"function"!=typeof r)throw new n("Object is not iterable.");return $(y,B,[t,{iterable:$(r,o,[]),step:void 0,sync:e}]),void 0}const s=$(d,B,[t]);if(1===e){const t=s.iterable.next();return s.sync?new r(e=>{s.step=t,e();}):$(L,t,[t=>{s.step=t;}])}if(2===e)return s.step.value;if(3===e){const e=!!s.step.done;return e&&$(f,B,[t]),e}},loadScript:function(t,o){const r=toString$LWS(o);let n=$(m,A,[`script[data-distorted-src='${escapeSingleQuotes$LWS(r)}'][data-locker-id='${j}']`]);var i;return n?null!=(i=$(T,e,[n]))?i:g():(n=$(w,document,["script"]),$(O,n,[F,j]),n.type="text/javascript",n.src=r,loadPromise$LWS(n,r))},loadStyle:function(t,o){const r=toString$LWS(o);let n=$(m,A,[`link[href='${escapeSingleQuotes$LWS(r)}']`]);var i;return n?null!=(i=$(T,e,[n]))?i:g():(n=$(w,document,["link"]),n.type="text/css",n.rel="stylesheet",n.href=r,loadPromise$LWS(n,r))},makeRedGet:function(...t){const{length:e}=t,r=o(e),n={};for(let o=0;o<e;o+=1)n[o]={__proto__:null,get:t[o]};return S(r,n),r},makeRedResyncImports:function(t){return function(){for(let e=0,{length:o}=t;e<o;e+=1)try{t[e];}catch(t){}return spreadable$LWS(t)}},namespace:function(t){return h(t)},spreadable:spreadable$LWS,super:function(t,e,o,r){const n=W(t.prototype)[e];return $(n,o,r)}}}})`,lo={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},co=(()=>{const{navigator:t,navigator:{userAgentData:o}}=window,r=/WebKit/i,n=null==o?void 0:o.brands;return !(ArrayIsArray$LWS(n)&&n.length?n.find(t=>{const e=null==t?void 0:t.brand;return "string"==typeof e&&r.test(e)}):r.test(t.userAgent))})(),uo=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS),fo=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS),yo=toSafeWeakSet$LWS(new WeakSetCtor$LWS);let po,So;function clearEvalContext$LWS(){const t=po;return po=void 0,t}function clearEvalHelpers$LWS(){const t=So;return So=void 0,t}function createDistortionFactoryEntries$LWS(t,o=function(t){const{globalObject:e,type:o}=t,{Document:r,Element:n,HTMLElement:i,HTMLIFrameElement:a,HTMLScriptElement:s,SVGElement:l,XSLTProcessor:c}=e,u=1===o?ArrayConcat$LWS(internalDistortionFactories$LWS,internalKeyedDistortionFactories$LWS):ArrayConcat$LWS(externalDistortionFactories$LWS,externalKeyedDistortionFactories$LWS);createBlockedPropertyDistortionFactories$LWS(CustomElementRegistry.prototype,CustomElementRegistryBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(r.prototype,DocumentBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(n.prototype,ElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(i.prototype,HTMLElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(a.prototype,HTMLIFrameElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(HTMLEmbedElement.prototype,HTMLEmbedElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(HTMLObjectElement.prototype,HTMLObjectElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(s.prototype,HTMLScriptElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(l.prototype,SVGElementBlockedProperties$LWS,u),"function"==typeof c&&createBlockedPropertyDistortionFactories$LWS(c.prototype,XSLTProcessorBlockedProperties$LWS,u);return u}(t)){const{BASIC_INSTRUMENTATION_DATA:r,LOCKER_VERBOSE_DEBUG_MODE_INSTRUMENTATION_FLAG:i,instrumentation:a,key:s}=t,{error:l}=a,c=i?a.startActivity:void 0,u=[];let f=0;for(let a=0,{length:d}=o;a<d;a+=1){const d=o[a],y=d(t);if(!ArrayIsArray$LWS(y))continue;const{0:p,1:S}=y;if(!isObjectLike$LWS(p))continue;let h=S;if("function"==typeof S){let t;if(i){const{name:e}=d;t=e?ReflectApply$LWS(StringProtoReplace$LWS,e,[LOCKER_IDENTIFIER_MARKER$LWS,""]):"<unknown>";}const e=new ProxyCtor$LWS(p,ObjectFreeze$LWS({apply(o,a,u){let f;a===e&&(a=S),i&&(f=c(t,r));try{return ReflectApply$LWS(S,a,u)}catch(t){throw l({sandboxKey:s,error:t}),t}finally{i&&f.stop();}},construct(o,n,a){let u;a===e&&(a=S),i&&(u=c(t,r));try{return ReflectConstruct$LWS(S,n,a)}catch(t){throw l({sandboxKey:s,error:t}),t}finally{i&&u.stop();}}}));h=e;}u[f++]=[p,h];}return u}function getSandboxRecord$LWS({context:t,document:e,endowments:o,globalObject:r,instrumentation:i,key:a,type:s,verboseInstrumentation:l},c){let u=uo.get(e);void 0===u&&(u={__proto__:null},uo.set(e,u));let f=u[a];if(f)return f;const d="object"==typeof i&&null!==i;let lazyVirtualEnvironmentEvaluator$LWS=t=>{const e=function(t){const{LOCKER_VERBOSE_DEBUG_MODE_INSTRUMENTATION_FLAG:e,Jt:o,endowments:r,globalObject:i,instrumentation:a,key:s,type:l,top:c,top:{Jt:u}}=t,f=t===c,d=createIframeVirtualEnvironment$LWS(i,{distortionCallback(t){const r=u.get(t);if(r)return f?r:o.get(t)||r;if("function"==typeof t||!ObjectHasOwn$LWS(t,"location"))return t;let i,d;if(ObjectHasOwn$LWS(t,"window")&&t.window===t)try{i=ReflectApply$LWS(WindowDocumentGetter$LWS,t,[]),d=t;}catch(t){}else if("defaultView"in t){let e;try{e=ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS,t,[]);}catch(t){}e&&(i=t,d=e);}return d&&getSandboxRecord$LWS({context:void 0,document:i,endowments:void 0,globalObject:d,instrumentation:a,key:s,type:l,verboseInstrumentation:e},c),t},endowments:ObjectAssign$LWS({},lo,r?ObjectGetOwnPropertyDescriptors$LWS(r):void 0),Qt:!1,instrumentation:e?a:void 0});return t=>d.evaluate(t)}(f);lazyVirtualEnvironmentEvaluator$LWS=e;const o=clearEvalContext$LWS();return setEvalContext$LWS(t=>{ObjectAssign$LWS(f.Yt,t({Zt:fo}));}),e(ao),setEvalContext$LWS(o),e(t)};f={BASIC_INSTRUMENTATION_DATA:d?{sandboxKey:a}:void 0,LOCKER_DEBUG_MODE_INSTRUMENTATION_FLAG:d,LOCKER_VERBOSE_DEBUG_MODE_INSTRUMENTATION_FLAG:l&&d,UNCOMPILED_CONTEXT:{[UNCOMPILED_LOCATION_NAME$LWS]:r.location},context:t,document:e,Jt:co?toSafeWeakMap$LWS$1(new WeakMapCtor$LWS):toSafeMap$LWS(new MapCtor$LWS),endowments:o,globalObject:r,Yt:{},instrumentation:i,key:a,sandboxEvaluator:(t,o,n=r,c=e)=>internalEvaluateInSandbox$LWS({context:o,document:c,endowments:void 0,globalObject:n,instrumentation:i,key:a,source:t,sourceType:0,type:s,verboseInstrumentation:l}),top:c,type:s,virtualEnvironmentEvaluator:t=>lazyVirtualEnvironmentEvaluator$LWS(t)},u[a]=f,void 0===c&&(c=f,f.top=f);const{Jt:y}=c;y.set(e,e),y.set(r,r);const p=function(t){distortBlockedAttributes$LWS(t,HTMLElement,HTMLElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(t,HTMLIFrameElement,HTMLIFrameElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(t,HTMLScriptElement,HTMLScriptElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(t,SVGElement,SVGElementBlockedAttributes$LWS);const e=createDistortionFactoryEntries$LWS(t);return createAttributeDistortions$LWS(t,e),e}(f);for(let t=0,{length:e}=p;t<e;t+=1){const{0:e,1:o}=p[t];y.set(e,o);}if(f===c)return f;const{Jt:S}=f,h=createDistortionFactoryEntries$LWS(f,evaluationDistortionFactories$LWS);for(let t=0,{length:e}=h;t<e;t+=1){const{0:e,1:o}=h[t];y.set(e,o),S.set(e,e);}if(yo.has(r))return f;yo.add(r);const onDOMContentLoadedOrWindowLoad$LWS=()=>{try{getSandboxRecord$LWS({context:void 0,document:r.document,endowments:void 0,globalObject:r,instrumentation:i,key:a,type:s,verboseInstrumentation:l},c);}catch(t){}},L=ReflectApply$LWS(WindowFrameElementGetter$LWS,r,[]);return L?(ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,L,["load",onDOMContentLoadedOrWindowLoad$LWS,!0]),f):(ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,r,["unload",function onWindowUnload$LWS(){WindowQueueMicrotask$LWS(()=>{try{ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,r,["DOMContentLoaded",onDOMContentLoadedOrWindowLoad$LWS,!0]),ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,r,["unload",onWindowUnload$LWS,!0]);}catch(t){}});},!0]),f)}function internalEvaluateInSandbox$LWS(t){const{context:e,instrumentation:o,key:r,source:i,sourceType:a}=t;if("string"!=typeof r)throw new LockerSecurityError$LWS("Invalid sandbox key.");const s=getSandboxRecord$LWS(t);var l;let c;setEvalContext$LWS(e),l=s.Yt,So=l;const u=function(t,e=1){let o="function"==typeof t?extractFunctionBodySource$LWS(t):toString$LWS(t);return o=ReflectApply$LWS(StringProtoReplace$LWS,o,[/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"]),1===e&&-1===indexOfPragma$LWS(o,"use strict")?`'use strict';${o}`:o}(i,a),{BASIC_INSTRUMENTATION_DATA:f,LOCKER_DEBUG_MODE_INSTRUMENTATION_FLAG:d}=s,y=d?o.startActivity:void 0;let p;d&&(p=y("evaluateInSandbox",f));try{c=s.virtualEnvironmentEvaluator(u);}catch(t){throw d&&p.error({sandboxKey:r,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS();}return d&&p.stop(),c}function setEvalContext$LWS(t){po=t;}function evaluateInSandbox$LWS(t,e,o,r,n=defaultInstrumentation$LWS,i=!1){return internalEvaluateInSandbox$LWS({context:o,document:document,endowments:r,globalObject:window,instrumentation:n,key:t,source:e,sourceType:1,type:0,verboseInstrumentation:i})}
7705
8014
 
7706
8015
  const loaderDefine = globalThis.LWR.define;
7707
8016
  /**