@lwrjs/client-modules 0.7.0-alpha.1 → 0.7.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,10 +73,6 @@ function ArrayPop$LWS(array$LWS) {
73
73
  return ReflectApply$LWS(ArrayProtoPop$LWS, array$LWS, []);
74
74
  }
75
75
 
76
- function ArrayPush$LWS(array$LWS, ...args$LWS) {
77
- return ReflectApply$LWS(ArrayProtoPush$LWS, array$LWS, args$LWS);
78
- }
79
-
80
76
  function ArrayShift$LWS(array$LWS) {
81
77
  return ReflectApply$LWS(ArrayProtoShift$LWS, array$LWS, []);
82
78
  }
@@ -102,7 +98,6 @@ const {
102
98
  assign: ObjectAssign$LWS,
103
99
  getOwnPropertyDescriptors: ObjectGetOwnPropertyDescriptors$LWS,
104
100
  freeze: ObjectFreeze$LWS,
105
- getOwnPropertyNames: ObjectGetOwnPropertyNames$LWS,
106
101
  getOwnPropertySymbols: ObjectGetOwnPropertySymbols$LWS,
107
102
  keys: ObjectKeys$LWS,
108
103
  preventExtensions: ObjectPreventExtensions$LWS,
@@ -282,7 +277,6 @@ const {
282
277
  const {
283
278
  clear: MapProtoClear$LWS,
284
279
  entries: MapProtoEntries$LWS,
285
- forEach: MapProtoForEach$LWS,
286
280
  get: MapProtoGet$LWS,
287
281
  set: MapProtoSet$LWS
288
282
  } = MapProto$LWS;
@@ -308,10 +302,6 @@ function MapEntries$LWS(map$LWS) {
308
302
  return ReflectApply$LWS(MapProtoEntries$LWS, map$LWS, []);
309
303
  }
310
304
 
311
- function MapForEach$LWS(map$LWS, iteratee$LWS) {
312
- return ReflectApply$LWS(MapProtoForEach$LWS, map$LWS, [iteratee$LWS]);
313
- }
314
-
315
305
  function MapGet$LWS(map$LWS, key$LWS) {
316
306
  return ReflectApply$LWS(MapProtoGet$LWS, map$LWS, [key$LWS]);
317
307
  }
@@ -350,7 +340,6 @@ const {
350
340
  prototype: StringProto$LWS
351
341
  } = StringCtor$LWS;
352
342
  const {
353
- charCodeAt: StringProtoCharCodeAt$LWS,
354
343
  includes: StringProtoIncludes$LWS,
355
344
  match: StringProtoMatch$LWS,
356
345
  replace: StringProtoReplace$LWS,
@@ -391,10 +380,6 @@ function isStringObject$LWS(value$LWS) {
391
380
  return false;
392
381
  }
393
382
 
394
- function StringCharCodeAt$LWS(string$LWS, index$LWS) {
395
- return ReflectApply$LWS(StringProtoCharCodeAt$LWS, string$LWS, [index$LWS]);
396
- }
397
-
398
383
  function StringIncludes$LWS(string$LWS, ...args$LWS) {
399
384
  return ReflectApply$LWS(StringProtoIncludes$LWS, string$LWS, args$LWS);
400
385
  }
@@ -444,6 +429,7 @@ const {
444
429
  prototype: RegExpProto$LWS
445
430
  } = RegExpCtor$LWS;
446
431
  const {
432
+ exec: RegExpProtoExec$LWS,
447
433
  test: RegExpProtoTest$LWS
448
434
  } = RegExpProto$LWS;
449
435
  const RegExpProtoSourceGetter$LWS = ObjectLookupOwnGetter$LWS(RegExpProto$LWS, 'source');
@@ -470,6 +456,10 @@ function isRegExp$LWS(value$LWS) {
470
456
  return false;
471
457
  }
472
458
 
459
+ function RegExpExec$LWS(regexp$LWS, content$LWS) {
460
+ return ReflectApply$LWS(RegExpProtoExec$LWS, regexp$LWS, [toString$LWS(content$LWS)]);
461
+ }
462
+
473
463
  function RegExpTest$LWS(regexp$LWS, content$LWS) {
474
464
  return ReflectApply$LWS(RegExpProtoTest$LWS, regexp$LWS, [toString$LWS(content$LWS)]);
475
465
  }
@@ -519,8 +509,7 @@ const {
519
509
  valueOf: SymbolProtoValueOf$LWS
520
510
  } = SymbolCtor$LWS.prototype;
521
511
  const {
522
- for: SymbolFor$LWS,
523
- iterator: SymbolIterator$LWS
512
+ for: SymbolFor$LWS
524
513
  } = SymbolCtor$LWS;
525
514
 
526
515
  function isSymbolObject$LWS(value$LWS) {
@@ -588,7 +577,14 @@ function isWeakSet$LWS(value$LWS) {
588
577
 
589
578
  const {
590
579
  toStringTag: TO_STRING_TAG_SYMBOL$LWS
591
- } = Symbol;
580
+ } = Symbol; // Regular expressions from Acorn:
581
+ // acorn/src/parseutil.js
582
+ // acorn/src/whitespace.js
583
+
584
+ const expressionCharRegExp$LWS = /[(`.[+\-/*%<>=,?^&]/;
585
+ const lineBreakRegExp$LWS = /\r\n?|\n|\u2028|\u2029/;
586
+ const skipWhiteSpacesRegExp$LWS = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
587
+ const stringLiteralRegExp$LWS = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
592
588
 
593
589
  function getBrandByTrailAndError$LWS(value$LWS) {
594
590
  // Internally these brand checks rely on native methods that throw and catch
@@ -683,7 +679,49 @@ function getBrand$LWS(value$LWS) {
683
679
 
684
680
  const getTimestamp$LWS = typeof performance === 'undefined' ?
685
681
  /* istanbul ignore next: unreachable in test env */
686
- DateNow$LWS : FunctionBind$LWS(performance.now, performance);
682
+ DateNow$LWS : FunctionBind$LWS(performance.now, performance); // Based on Acorn strictDirective() parser utility.
683
+ // Copyright 2012-2022. Released under MIT License.
684
+ // https://github.com/acornjs/acorn/blob/master/acorn/src/parseutil.js
685
+
686
+ function indexOfPragma$LWS(source$LWS, pragma$LWS) {
687
+ let pos$LWS = 0; // eslint-disable-next-line no-constant-condition
688
+
689
+ while (true) {
690
+ skipWhiteSpacesRegExp$LWS.lastIndex = pos$LWS;
691
+ pos$LWS += RegExpExec$LWS(skipWhiteSpacesRegExp$LWS, source$LWS)[0].length;
692
+ const stringLiteralMatch$LWS = RegExpExec$LWS(stringLiteralRegExp$LWS, StringSlice$LWS(source$LWS, pos$LWS));
693
+
694
+ if (stringLiteralMatch$LWS === null) {
695
+ return -1;
696
+ }
697
+
698
+ if ((stringLiteralMatch$LWS[1] || stringLiteralMatch$LWS[2]) === pragma$LWS) {
699
+ skipWhiteSpacesRegExp$LWS.lastIndex = pos$LWS + stringLiteralMatch$LWS[0].length;
700
+ const spaceAfterMatch$LWS = RegExpExec$LWS(skipWhiteSpacesRegExp$LWS, source$LWS);
701
+ const end$LWS = spaceAfterMatch$LWS.index + spaceAfterMatch$LWS[0].length;
702
+ const nextChar$LWS = source$LWS[end$LWS];
703
+
704
+ if (nextChar$LWS === ';' || nextChar$LWS === '}') {
705
+ return pos$LWS;
706
+ }
707
+
708
+ const indexAfterNext$LWS = end$LWS + 1;
709
+
710
+ if (RegExpTest$LWS(lineBreakRegExp$LWS, spaceAfterMatch$LWS[0]) && !(nextChar$LWS === '!' && indexAfterNext$LWS < source$LWS.length && source$LWS[indexAfterNext$LWS] === '=' || RegExpTest$LWS(expressionCharRegExp$LWS, nextChar$LWS))) {
711
+ return pos$LWS;
712
+ }
713
+ }
714
+
715
+ pos$LWS += stringLiteralMatch$LWS[0].length; // Skip semicolon, if any.
716
+
717
+ skipWhiteSpacesRegExp$LWS.lastIndex = pos$LWS;
718
+ pos$LWS += RegExpExec$LWS(skipWhiteSpacesRegExp$LWS, source$LWS)[0].length;
719
+
720
+ if (source$LWS[pos$LWS] === ';') {
721
+ pos$LWS += 1;
722
+ }
723
+ }
724
+ }
687
725
 
688
726
  function toSafeDescriptor$LWS(desc$LWS) {
689
727
  ReflectSetPrototypeOf$LWS(desc$LWS, null);
@@ -838,7 +876,110 @@ const PromiseReject$LWS = Promise.reject.bind(Promise);
838
876
  function PromiseThen$LWS(promise$LWS, ...args$LWS) {
839
877
  return ReflectApply$LWS(PromiseProtoThen$LWS, promise$LWS, args$LWS);
840
878
  }
841
- /*! version: 0.15.15 */
879
+ /*! version: 0.16.1 */
880
+
881
+ /*!
882
+ * Copyright (C) 2021 salesforce.com, inc.
883
+ */
884
+ /* eslint-disable class-methods-use-this, max-classes-per-file */
885
+
886
+ let ticketSequence$LWS = 0;
887
+
888
+ function getActivityId$LWS() {
889
+ ticketSequence$LWS += 1;
890
+ return DateNow$LWS() + ticketSequence$LWS;
891
+ } // Locker Instrumentation Activity class
892
+
893
+ /* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
894
+
895
+
896
+ class LockerActivity$LWS {
897
+ constructor(activityName$LWS, startCallback$LWS, stopCallback$LWS, captureTimestamps$LWS = false) {
898
+ this._activityStart = 0;
899
+ this._activityStop = 0;
900
+ this._captureTimestamps = captureTimestamps$LWS;
901
+ this._startCallback = startCallback$LWS;
902
+ this._started = false;
903
+ this._stopCallback = stopCallback$LWS;
904
+ this._stopped = false;
905
+ this.activityId = `${activityName$LWS}-${getActivityId$LWS()}`;
906
+ this.activityName = activityName$LWS;
907
+ }
908
+ /*
909
+ * starts an activity
910
+ */
911
+
912
+
913
+ start(data$LWS) {
914
+ if (!this._started) {
915
+ this._started = true;
916
+
917
+ if (this._captureTimestamps) {
918
+ this._activityStart = getTimestamp$LWS();
919
+ }
920
+
921
+ if (typeof this._startCallback === 'function') {
922
+ this._startCallback(this, data$LWS);
923
+ }
924
+ }
925
+ }
926
+ /*
927
+ * stops the current activity
928
+ */
929
+
930
+
931
+ stop(data$LWS) {
932
+ if (!this._stopped) {
933
+ this._stopped = true;
934
+
935
+ if (this._captureTimestamps) {
936
+ this._activityStop = getTimestamp$LWS();
937
+ }
938
+
939
+ if (typeof this._stopCallback === 'function') {
940
+ this._stopCallback(this, data$LWS);
941
+ }
942
+ }
943
+ }
944
+ /*
945
+ * stop the current activity with error state.
946
+ */
947
+
948
+
949
+ error(data$LWS) {
950
+ // @TODO:
951
+ // Aura's metrics service ($A.metricsService) is the current
952
+ // instrumentation service used by Locker. The metrics service does not
953
+ // have an `error` API for perf activities. But O11y provides this
954
+ // feature. When Locker is able to integrate O11y, the following line
955
+ // should be calling O11y's error API instead of `stop()`.
956
+ this.stop(data$LWS);
957
+ }
958
+
959
+ get duration() {
960
+ return this._activityStop > this._activityStart ? this._activityStop - this._activityStart : 0;
961
+ }
962
+
963
+ } // Creates a new no-op Instrumentation instance.
964
+
965
+
966
+ class DefaultInstrumentation$LWS {
967
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
968
+ startActivity(activityName$LWS, _data$LWS) {
969
+ return new LockerActivity$LWS(activityName$LWS, undefined, undefined);
970
+ } // eslint-disable-next-line @typescript-eslint/no-unused-vars
971
+
972
+
973
+ log(_data$LWS) {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
974
+
975
+
976
+ error(_data$LWS) {}
977
+
978
+ } // Export the default instrumentation instance with no-op operations.
979
+
980
+
981
+ const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
982
+ /*! version: 0.16.1 */
842
983
 
843
984
  /*!
844
985
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1170,15 +1311,30 @@ function transformUncompiledSource$LWS(source$LWS) {
1170
1311
  });
1171
1312
 
1172
1313
  if (locationTransformed$LWS) {
1173
- destructuredBlueHelpers$LWS.push(UNCOMPILED_LOCATION_NAME$LWS);
1314
+ destructuredBlueHelpers$LWS[destructuredBlueHelpers$LWS.length] = UNCOMPILED_LOCATION_NAME$LWS;
1174
1315
  }
1175
1316
 
1176
- if (destructuredBlueHelpers$LWS.length) {
1177
- source$LWS = `const {
1178
- ${destructuredBlueHelpers$LWS.join(',')}} = ${SANDBOX_EVAL_CONTEXT_NAME$LWS};${source$LWS}`;
1317
+ if (!destructuredBlueHelpers$LWS.length) {
1318
+ return source$LWS;
1179
1319
  }
1180
1320
 
1181
- return source$LWS;
1321
+ const destructureSandboxEvalContextSnippet$LWS = `const {
1322
+ ${ArrayJoin$LWS(destructuredBlueHelpers$LWS, ',')}} = ${SANDBOX_EVAL_CONTEXT_NAME$LWS};`;
1323
+ const pragmaIndex$LWS = indexOfPragma$LWS(source$LWS, 'use strict');
1324
+
1325
+ if (pragmaIndex$LWS === -1) {
1326
+ return destructureSandboxEvalContextSnippet$LWS + source$LWS;
1327
+ } // The "use strict" pragma, including quotes, is 12 characters long.
1328
+
1329
+
1330
+ let afterPragmaIndex$LWS = pragmaIndex$LWS + 12;
1331
+
1332
+ if (afterPragmaIndex$LWS < source$LWS.length && source$LWS[afterPragmaIndex$LWS] === ';') {
1333
+ // Move index after the semicolon.
1334
+ afterPragmaIndex$LWS += 1;
1335
+ }
1336
+
1337
+ return StringSlice$LWS(source$LWS, 0, afterPragmaIndex$LWS) + destructureSandboxEvalContextSnippet$LWS + StringSlice$LWS(source$LWS, afterPragmaIndex$LWS);
1182
1338
  }
1183
1339
 
1184
1340
  const BlobProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(Blob.prototype, 'size');
@@ -1213,7 +1369,10 @@ function cloneMap$LWS(map$LWS, queue$LWS) {
1213
1369
  const clone$LWS = new MapCtor$LWS(); // Step 26.1.2: For each Record { [[Key]], [[Value]] } entry of value.[[MapData]]...
1214
1370
 
1215
1371
  const entriesIterable$LWS = MapEntries$LWS(map$LWS); // Step 26.1.3 For each Record { [[Key]], [[Value]] } entry of copiedList:
1216
- // eslint-disable-next-line no-constant-condition
1372
+
1373
+ let {
1374
+ length: queueOffset$LWS
1375
+ } = queue$LWS; // eslint-disable-next-line no-constant-condition
1217
1376
 
1218
1377
  while (true) {
1219
1378
  const {
@@ -1229,14 +1388,15 @@ function cloneMap$LWS(map$LWS, queue$LWS) {
1229
1388
  0: subKey$LWS,
1230
1389
  1: subValue$LWS
1231
1390
  } = subKeyValuePair$LWS;
1232
- let subCloneKey$LWS;
1233
- ArrayPush$LWS(queue$LWS, // Step 26.1.3.1: Let serializedKey be ? StructuredSerializeInternal(entry.[[Key]], forStorage, memory).
1234
- [subClone$LWS => {
1391
+ let subCloneKey$LWS; // Step 26.1.3.1: Let serializedKey be ? StructuredSerializeInternal(entry.[[Key]], forStorage, memory).
1392
+
1393
+ queue$LWS[queueOffset$LWS++] = [subClone$LWS => {
1235
1394
  subCloneKey$LWS = subClone$LWS;
1236
- }, subKey$LWS], // Step 26.1.3.2: Let serializedValue be ? StructuredSerializeInternal(entry.[[Value]], forStorage, memory).
1237
- [subCloneValue$LWS => {
1395
+ }, subKey$LWS]; // Step 26.1.3.2: Let serializedValue be ? StructuredSerializeInternal(entry.[[Value]], forStorage, memory).
1396
+
1397
+ queue$LWS[queueOffset$LWS++] = [subCloneValue$LWS => {
1238
1398
  MapSet$LWS(clone$LWS, subCloneKey$LWS, subCloneValue$LWS);
1239
- }, subValue$LWS]);
1399
+ }, subValue$LWS];
1240
1400
  }
1241
1401
 
1242
1402
  return clone$LWS;
@@ -1257,7 +1417,10 @@ function cloneSet$LWS(set$LWS, queue$LWS) {
1257
1417
  const clone$LWS = new SetCtor$LWS(); // Step 26.2.2: For each entry of value.[[SetData]]...
1258
1418
 
1259
1419
  const valuesIterable$LWS = SetValues$LWS(set$LWS); // Step 26.2.3: For each entry of copiedList:
1260
- // eslint-disable-next-line no-constant-condition
1420
+
1421
+ let {
1422
+ length: queueOffset$LWS
1423
+ } = queue$LWS; // eslint-disable-next-line no-constant-condition
1261
1424
 
1262
1425
  while (true) {
1263
1426
  const {
@@ -1267,12 +1430,12 @@ function cloneSet$LWS(set$LWS, queue$LWS) {
1267
1430
 
1268
1431
  if (done$LWS) {
1269
1432
  break;
1270
- }
1433
+ } // Step 26.2.3.1: Let serializedEntry be ? StructuredSerializeInternal(entry, forStorage, memory).
1271
1434
 
1272
- ArrayPush$LWS(queue$LWS, // Step 26.2.3.1: Let serializedEntry be ? StructuredSerializeInternal(entry, forStorage, memory).
1273
- [subCloneValue$LWS => {
1435
+
1436
+ queue$LWS[queueOffset$LWS++] = [subCloneValue$LWS => {
1274
1437
  SetAdd$LWS(clone$LWS, subCloneValue$LWS);
1275
- }, subValue$LWS]);
1438
+ }, subValue$LWS];
1276
1439
  }
1277
1440
 
1278
1441
  return clone$LWS;
@@ -1286,6 +1449,9 @@ function enqueue$LWS(queue$LWS, originalValue$LWS, cloneValue$LWS) {
1286
1449
  // defined in ECMA262:
1287
1450
  // https://tc39.es/ecma262/#sec-object.keys
1288
1451
  const keys$LWS = ObjectKeys$LWS(originalValue$LWS);
1452
+ let {
1453
+ length: queueOffset$LWS
1454
+ } = queue$LWS;
1289
1455
 
1290
1456
  for (let i$LWS = 0, {
1291
1457
  length: length$LWS
@@ -1297,12 +1463,12 @@ function enqueue$LWS(queue$LWS, originalValue$LWS, cloneValue$LWS) {
1297
1463
  // https://tc39.es/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots-get-p-receiver
1298
1464
  const key$LWS = keys$LWS[i$LWS];
1299
1465
  const subValue$LWS = originalValue$LWS[key$LWS];
1300
- ArrayPush$LWS(queue$LWS, [subCloneValue$LWS => {
1466
+ queue$LWS[queueOffset$LWS++] = [subCloneValue$LWS => {
1301
1467
  // Step 26.4.1.3: Property descriptor attributes are not
1302
1468
  // preserved during deserialization because only keys and
1303
1469
  // values are captured in serialized.[[Properties]].
1304
1470
  cloneValue$LWS[key$LWS] = subCloneValue$LWS;
1305
- }, subValue$LWS]);
1471
+ }, subValue$LWS];
1306
1472
  }
1307
1473
  } // This function is the unguarded internal variant of `partialStructuredClone()`.
1308
1474
  // Any error thrown that is captured by `partialStructuredClone()` is treated as
@@ -1835,9 +2001,9 @@ function XhrStatusGetter$LWS(xhr$LWS) {
1835
2001
  function XhrWithCredentialsSetter$LWS(xhr$LWS, bool$LWS) {
1836
2002
  ReflectApply$LWS(XhrProtoWithCredentialsSetter$LWS, xhr$LWS, [bool$LWS]);
1837
2003
  }
1838
- /*! version: 0.15.15 */
2004
+ /*! version: 0.16.1 */
1839
2005
 
1840
- /*! @license DOMPurify 2.3.4 | (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.4/LICENSE */
2006
+ /*! @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 */
1841
2007
 
1842
2008
  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
1843
2009
 
@@ -2007,7 +2173,7 @@ var text = freeze(['#text']);
2007
2173
 
2008
2174
  var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);
2009
2175
 
2010
- var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
2176
+ var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
2011
2177
 
2012
2178
  var mathMl$1 = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
2013
2179
 
@@ -2023,6 +2189,7 @@ var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-
2023
2189
  var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
2024
2190
  var ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
2025
2191
  );
2192
+ var DOCTYPE_NAME = seal(/^html$/i);
2026
2193
 
2027
2194
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2028
2195
 
@@ -2082,7 +2249,7 @@ function createDOMPurify() {
2082
2249
  * Version label, exposed for easier checks
2083
2250
  * if DOMPurify is up to date or not
2084
2251
  */
2085
- DOMPurify.version = '2.3.4';
2252
+ DOMPurify.version = '2.3.6';
2086
2253
 
2087
2254
  /**
2088
2255
  * Array of elements that DOMPurify removed during sanitation.
@@ -2134,7 +2301,7 @@ function createDOMPurify() {
2134
2301
  }
2135
2302
 
2136
2303
  var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);
2137
- var emptyHTML = trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML('') : '';
2304
+ var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';
2138
2305
 
2139
2306
  var _document = document,
2140
2307
  implementation = _document.implementation,
@@ -2677,7 +2844,9 @@ function createDOMPurify() {
2677
2844
  * @return {Iterator} iterator instance
2678
2845
  */
2679
2846
  var _createIterator = function _createIterator(root) {
2680
- return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);
2847
+ return createNodeIterator.call(root.ownerDocument || root, root,
2848
+ // eslint-disable-next-line no-bitwise
2849
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);
2681
2850
  };
2682
2851
 
2683
2852
  /**
@@ -2769,6 +2938,12 @@ function createDOMPurify() {
2769
2938
 
2770
2939
  /* Remove element if anything forbids its presence */
2771
2940
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
2941
+ /* Check if we have a custom element to handle */
2942
+ if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {
2943
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
2944
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
2945
+ }
2946
+
2772
2947
  /* Keep content except for bad-listed elements */
2773
2948
  if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
2774
2949
  var parentNode = getParentNode(currentNode) || currentNode.parentNode;
@@ -2783,11 +2958,6 @@ function createDOMPurify() {
2783
2958
  }
2784
2959
  }
2785
2960
 
2786
- if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {
2787
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
2788
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
2789
- }
2790
-
2791
2961
  _forceRemove(currentNode);
2792
2962
  return true;
2793
2963
  }
@@ -3065,7 +3235,15 @@ function createDOMPurify() {
3065
3235
  IN_PLACE = false;
3066
3236
  }
3067
3237
 
3068
- if (IN_PLACE) ; else if (dirty instanceof Node) {
3238
+ if (IN_PLACE) {
3239
+ /* Do some early pre-sanitization to avoid unsafe root nodes */
3240
+ if (dirty.nodeName) {
3241
+ var tagName = transformCaseFunc(dirty.nodeName);
3242
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
3243
+ throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
3244
+ }
3245
+ }
3246
+ } else if (dirty instanceof Node) {
3069
3247
  /* If dirty is a DOM element, append to an empty document to avoid
3070
3248
  elements being stripped by the parser */
3071
3249
  body = _initDocument('<!---->');
@@ -3092,7 +3270,7 @@ function createDOMPurify() {
3092
3270
 
3093
3271
  /* Check we have a DOM node from the data */
3094
3272
  if (!body) {
3095
- return RETURN_DOM ? null : emptyHTML;
3273
+ return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
3096
3274
  }
3097
3275
  }
3098
3276
 
@@ -3163,6 +3341,11 @@ function createDOMPurify() {
3163
3341
 
3164
3342
  var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
3165
3343
 
3344
+ /* Serialize doctype if allowed */
3345
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
3346
+ serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
3347
+ }
3348
+
3166
3349
  /* Sanitize final string template-safe */
3167
3350
  if (SAFE_FOR_TEMPLATES) {
3168
3351
  serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');
@@ -3275,62 +3458,75 @@ var purify = createDOMPurify();
3275
3458
  const ariaAttributes$LWS = ['aria-activedescendant', 'aria-atomic', 'aria-autocomplete', 'aria-busy', 'aria-checked', 'aria-controls', 'aria-describedby', 'aria-disabled', 'aria-readonly', 'aria-dropeffect', 'aria-expanded', 'aria-flowto', 'aria-grabbed', 'aria-haspopup', 'aria-hidden', 'aria-disabled', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-level', 'aria-live', 'aria-multiline', 'aria-multiselectable', 'aria-orientation', 'aria-owns', 'aria-posinset', 'aria-pressed', 'aria-readonly', 'aria-relevant', 'aria-required', 'aria-selected', 'aria-setsize', 'aria-sort', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'role', 'target'];
3276
3459
  const htmlTags$LWS = ['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'caption', 'canvas', 'center', 'cite', 'code', 'col', 'colgroup', 'command', 'datalist', 'dd', 'del', 'details', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'fieldset', 'figure', 'figcaption', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'i', 'iframe', 'img', 'input', 'ins', 'keygen', 'kbd', 'label', 'legend', 'li', 'map', 'mark', 'menu', 'meter', 'nav', 'ol', 'optgroup', 'option', 'output', 'p', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'small', 'source', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr'];
3277
3460
  const svgTags$LWS = ['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'audio', 'canvas', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'video', 'view', 'vkern', 'use'];
3278
- const allTags$LWS = ArrayConcat$LWS(svgTags$LWS, htmlTags$LWS); // generic, sanitizer attempts in place sanitization and returns node
3461
+ const allTags$LWS = ArrayConcat$LWS(htmlTags$LWS, svgTags$LWS);
3462
+ const CUSTOM_ELEMENT_HANDLING$LWS = {
3463
+ attributeNameCheck: /.+/,
3464
+ allowCustomizedBuiltInElements: false,
3465
+ // The regexp is based on the WHATWG spec:
3466
+ // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
3467
+ // However, DOMPurify sanitizes unicode characters (\u0000-\uFFFF) in tag name.
3468
+ tagNameCheck: /^[a-z][-_.\w]*-[-.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u37D0\u37F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u10000-\uEFFFF]*$/
3469
+ }; // A generic config in which the sanitizer attempts in place sanitization and
3470
+ // returns node.
3279
3471
 
3280
3472
  const NODE_ALL_IN_PLACE$LWS = {
3281
- ADD_ATTR: ariaAttributes$LWS,
3473
+ ADD_ATTR: shallowCloneArray$LWS(ariaAttributes$LWS),
3474
+ // Add '#document-fragment' to ALLOWED_TAGS to avoid a forbidden root node
3475
+ // exception.
3476
+ // https://github.com/cure53/DOMPurify/issues/664
3282
3477
  ALLOWED_TAGS: ArrayConcat$LWS(allTags$LWS, '#document-fragment'),
3478
+ CUSTOM_ELEMENT_HANDLING: ObjectAssign$LWS({}, CUSTOM_ELEMENT_HANDLING$LWS),
3283
3479
  IN_PLACE: true
3284
- }; // use only svg tags, sanitizer returns a document fragment
3480
+ }; // A config to use only svg tags in which the sanitizer returns a document
3481
+ // fragment.
3285
3482
 
3286
3483
  const NODE_SVG$LWS = {
3287
- ADD_ATTR: ariaAttributes$LWS,
3288
- ALLOWED_TAGS: svgTags$LWS,
3484
+ ADD_ATTR: shallowCloneArray$LWS(ariaAttributes$LWS),
3485
+ ALLOWED_TAGS: shallowCloneArray$LWS(svgTags$LWS),
3486
+ CUSTOM_ELEMENT_HANDLING: ObjectAssign$LWS({}, CUSTOM_ELEMENT_HANDLING$LWS),
3289
3487
  RETURN_DOM_FRAGMENT: true,
3290
3488
  SANITIZE_DOM: false
3291
- }; // generic, sanitizer returns string
3489
+ }; // A config to use only tags allowed for blob and file.
3292
3490
 
3293
3491
  const STRING_BLOB_HTML$LWS = {
3294
- ADD_ATTR: ariaAttributes$LWS,
3295
- ALLOWED_TAGS: ArrayFilter$LWS(allTags$LWS, t$LWS => !ArrayIncludes$LWS(['iframe'], t$LWS)),
3492
+ ADD_ATTR: shallowCloneArray$LWS(ariaAttributes$LWS),
3493
+ ALLOWED_TAGS: ArrayFilter$LWS(allTags$LWS, tag$LWS => tag$LWS !== 'iframe'),
3494
+ CUSTOM_ELEMENT_HANDLING: ObjectAssign$LWS({}, CUSTOM_ELEMENT_HANDLING$LWS),
3296
3495
  SANITIZE_DOM: false
3297
3496
  };
3298
3497
  const instances$LWS = new WeakMapCtor$LWS();
3299
3498
 
3300
- function sanitizer$LWS(config$LWS, hooks$LWS) {
3499
+ function sanitizer$LWS(config$LWS, hooksRegistry$LWS) {
3301
3500
  let dompurify$LWS = WeakMapGet$LWS(instances$LWS, config$LWS);
3302
3501
 
3303
- if (dompurify$LWS) {
3304
- return dompurify$LWS;
3305
- }
3502
+ if (dompurify$LWS === undefined) {
3503
+ dompurify$LWS = purify();
3504
+ dompurify$LWS.setConfig(config$LWS);
3306
3505
 
3307
- dompurify$LWS = purify();
3308
- dompurify$LWS.setConfig(config$LWS);
3506
+ for (const hookName$LWS in hooksRegistry$LWS) {
3507
+ if (hooksRegistry$LWS) {
3508
+ dompurify$LWS.addHook(hookName$LWS, hooksRegistry$LWS[hookName$LWS]);
3509
+ }
3510
+ }
3309
3511
 
3310
- if (hooks$LWS) {
3311
- MapForEach$LWS(hooks$LWS, (cb$LWS, hookName$LWS) => {
3312
- dompurify$LWS.addHook(hookName$LWS, cb$LWS);
3313
- });
3512
+ WeakMapSet$LWS(instances$LWS, config$LWS, dompurify$LWS);
3314
3513
  }
3315
3514
 
3316
- WeakMapSet$LWS(instances$LWS, config$LWS, dompurify$LWS);
3317
3515
  return dompurify$LWS;
3318
3516
  }
3319
3517
 
3320
3518
  const ATTRIBUTES$LWS = ['href', 'xlink:href'];
3321
- const SANITIZER_HOOKS$LWS = new MapCtor$LWS([['uponSanitizeAttribute', sanitizeHrefAttributeHook$LWS], ['uponSanitizeElement', allowCustomTagHook$LWS]]);
3519
+ const SANITIZER_HOOKS$LWS = {
3520
+ __proto__: null,
3521
+ uponSanitizeAttribute: sanitizeHrefAttributeHook$LWS
3522
+ };
3322
3523
  const URL_SCHEMES$LWS = ['http:', 'https:'];
3323
- const {
3324
- document: document$LWS
3325
- } = window;
3326
- const htmlTemplate$LWS = DocumentCreateElement$LWS(document$LWS, 'template');
3327
- const normalizerAnchor$LWS$1 = DocumentCreateElement$LWS(document$LWS, 'a'); // Queue for managing pending xhr requests.
3524
+ const docRef$LWS = document;
3525
+ const winRef$LWS = window;
3526
+ const htmlTemplate$LWS = DocumentCreateElement$LWS(docRef$LWS, 'template');
3527
+ const normalizerAnchor$LWS$1 = DocumentCreateElement$LWS(docRef$LWS, 'a'); // Queue for managing pending xhr requests.
3328
3528
 
3329
- const queue$LWS = new SetCtor$LWS(); // The regexp is based on the WHATWG spec:
3330
- // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
3331
- // However, DOMPurify sanitizes unicode characters (\u0000-\uFFFF) in tag name.
3332
-
3333
- const customTagRegExp$LWS = /^[a-z]([-_.\w])*-([-.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u37D0\u37F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u10000-\uEFFFF])*/; // A regexp to find all non lowercase alphanumeric.
3529
+ const queue$LWS = new SetCtor$LWS(); // A regexp to find all non lowercase alphanumeric.
3334
3530
 
3335
3531
  const urlReplacerRegExp$LWS = /[^a-z0-9]+/gi;
3336
3532
 
@@ -3339,22 +3535,22 @@ function checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS) {
3339
3535
  const checkFn$LWS = () => {
3340
3536
  if (!SetHas$LWS(queue$LWS, normalizedHref$LWS.normalizedUrl)) {
3341
3537
  updater$LWS(container$LWS, normalizedHref$LWS);
3342
- WindowClearInterval$LWS(window, interval$LWS);
3538
+ WindowClearInterval$LWS(winRef$LWS, interval$LWS);
3343
3539
  }
3344
3540
  }; // Wait for request to finish, then update content.
3345
3541
 
3346
3542
 
3347
- const interval$LWS = WindowSetInterval$LWS(window, checkFn$LWS, 50);
3543
+ const interval$LWS = WindowSetInterval$LWS(winRef$LWS, checkFn$LWS, 50);
3348
3544
  } else {
3349
3545
  updater$LWS(container$LWS, normalizedHref$LWS);
3350
3546
  }
3351
3547
  }
3352
3548
 
3353
3549
  function createUrlContainer$LWS(url$LWS) {
3354
- const container$LWS = DocumentCreateElement$LWS(document$LWS, 'div');
3550
+ const container$LWS = DocumentCreateElement$LWS(docRef$LWS, 'div');
3355
3551
  ElementSetAttribute$LWS(container$LWS, 'style', 'display:none');
3356
3552
  ElementSetAttribute$LWS(container$LWS, 'id', url$LWS);
3357
- const body$LWS = DocumentBodyGetter$LWS(document$LWS);
3553
+ const body$LWS = DocumentBodyGetter$LWS(docRef$LWS);
3358
3554
  NodeAppendChild$LWS(body$LWS, container$LWS);
3359
3555
  return container$LWS;
3360
3556
  }
@@ -3397,7 +3593,9 @@ function parseHref$LWS(url$LWS) {
3397
3593
  const {
3398
3594
  0: requestedUrl$LWS,
3399
3595
  1: requestedFragment$LWS
3400
- } = StringSplit$LWS(href$LWS, '#');
3596
+ } = StringSplit$LWS(href$LWS, '#'); // RegExp.prototype[Symbol.replace] resets the lastIndex of global regexp to 0.
3597
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
3598
+
3401
3599
  const normalizedUrl$LWS = StringReplace$LWS(StringToLowerCase$LWS(requestedUrl$LWS), urlReplacerRegExp$LWS, '');
3402
3600
  const normalizedFragment$LWS = requestedFragment$LWS ? `${normalizedUrl$LWS}_${StringReplace$LWS(requestedFragment$LWS, urlReplacerRegExp$LWS, '')}` : '';
3403
3601
  return {
@@ -3475,7 +3673,7 @@ function sanitizeSvgHref$LWS(url$LWS) {
3475
3673
  const normalizedHref$LWS = parseHref$LWS(url$LWS); // Sanitize only for supported URL_SCHEMES.
3476
3674
 
3477
3675
  if (ArrayIncludes$LWS(URL_SCHEMES$LWS, normalizedHref$LWS.protocol)) {
3478
- const container$LWS = DocumentGetElementById$LWS(document$LWS, normalizedHref$LWS.normalizedUrl); // Have we sanitized this URL already?
3676
+ const container$LWS = DocumentGetElementById$LWS(docRef$LWS, normalizedHref$LWS.normalizedUrl); // Have we sanitized this URL already?
3479
3677
 
3480
3678
  if (container$LWS && normalizedHref$LWS.normalizedFragment) {
3481
3679
  checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS);
@@ -3497,7 +3695,7 @@ function createSvgContainer$LWS(ownerDoc$LWS) {
3497
3695
 
3498
3696
  function sanitizeSvgInnerHtml$LWS(stringOrSvg$LWS, dirty$LWS = '') {
3499
3697
  let container$LWS;
3500
- const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ? document$LWS : NodeOwnerDocumentGetter$LWS(stringOrSvg$LWS);
3698
+ const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ? docRef$LWS : NodeOwnerDocumentGetter$LWS(stringOrSvg$LWS);
3501
3699
  const comment$LWS = DocumentCreateComment$LWS(ownerDoc$LWS, '');
3502
3700
 
3503
3701
  if (typeof stringOrSvg$LWS === 'string') {
@@ -3520,18 +3718,7 @@ function sanitizeSvgTextReturnDOM$LWS(dirty$LWS) {
3520
3718
  const sanitizer$LWS = svgSanitizer$LWS();
3521
3719
  return sanitizer$LWS.sanitize(dirty$LWS);
3522
3720
  }
3523
-
3524
- function allowCustomTagHook$LWS(node$LWS, data$LWS, _config$LWS) {
3525
- const {
3526
- allowedTags: allowedTags$LWS,
3527
- tagName: tagName$LWS
3528
- } = data$LWS;
3529
-
3530
- if (!allowedTags$LWS[tagName$LWS] && customTagRegExp$LWS.test(tagName$LWS)) {
3531
- allowedTags$LWS[tagName$LWS] = true;
3532
- }
3533
- }
3534
- /*! version: 0.15.15 */
3721
+ /*! version: 0.16.1 */
3535
3722
 
3536
3723
  /*!
3537
3724
  * Copyright (C) 2019 salesforce.com, inc.
@@ -3589,7 +3776,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
3589
3776
  HTMLAnchorElementHrefSetter$LWS(normalizerAnchor$LWS, url$LWS);
3590
3777
  return sanitizeURLString$LWS(HTMLAnchorElementHrefGetter$LWS(normalizerAnchor$LWS));
3591
3778
  }
3592
- /*! version: 0.15.15 */
3779
+ /*! version: 0.16.1 */
3593
3780
 
3594
3781
  /*!
3595
3782
  * Copyright (C) 2019 salesforce.com, inc.
@@ -3601,9 +3788,8 @@ const CustomElementRegistryBlockedProperties$LWS = ['define'];
3601
3788
 
3602
3789
  const distortionsBySandboxKeyRegistry$LWS = {
3603
3790
  __proto__: null
3604
- }; // we hold an array of factories
3605
- // this array will be traversed when we create a new sandbox
3606
- // the result of parsing this registry will be a new registry with initialized distortions
3791
+ }; // An array of factories traversed when we create a new sandbox. The result of
3792
+ // parsing this registry will be a new registry with initialized distortions.
3607
3793
 
3608
3794
  const factories$LWS = [];
3609
3795
 
@@ -3663,16 +3849,16 @@ function makeElementDistortionsForSandboxKey$LWS(key$LWS) {
3663
3849
  __proto__: null
3664
3850
  };
3665
3851
  const entries$LWS = [];
3666
- const {
3667
- length: length$LWS
3668
- } = factories$LWS;
3852
+ let entriesOffset$LWS = 0;
3669
3853
 
3670
- for (let i$LWS = 0; i$LWS < length$LWS; i$LWS += 1) {
3854
+ for (let i$LWS = 0, {
3855
+ length: length$LWS
3856
+ } = factories$LWS; i$LWS < length$LWS; i$LWS += 1) {
3671
3857
  const factory$LWS = factories$LWS[i$LWS];
3672
3858
  const entry$LWS = factory$LWS(registry$LWS);
3673
3859
 
3674
3860
  if (entry$LWS) {
3675
- ArrayPush$LWS(entries$LWS, entry$LWS);
3861
+ entries$LWS[entriesOffset$LWS++] = entry$LWS;
3676
3862
  }
3677
3863
  }
3678
3864
 
@@ -3688,7 +3874,7 @@ function normalizeNamespace$LWS(ns$LWS) {
3688
3874
  }
3689
3875
 
3690
3876
  function registerElementSetDistortion$LWS(ElementCtor$LWS, options$LWS) {
3691
- const elementFactoryDistortion$LWS = registry$LWS => {
3877
+ factories$LWS[factories$LWS.length] = registry$LWS => {
3692
3878
  const {
3693
3879
  attributeNamespace: attributeNamespace$LWS,
3694
3880
  distortion: distortion$LWS
@@ -3697,8 +3883,6 @@ function registerElementSetDistortion$LWS(ElementCtor$LWS, options$LWS) {
3697
3883
  storeDistortionInRegistry$LWS(registry$LWS, ElementCtor$LWS, attributeName$LWS, attributeNamespace$LWS, distortion$LWS);
3698
3884
  return null;
3699
3885
  };
3700
-
3701
- ArrayPush$LWS(factories$LWS, elementFactoryDistortion$LWS);
3702
3886
  }
3703
3887
 
3704
3888
  function distortionAttrValueSetter$LWS(globalObject$LWS, options$LWS) {
@@ -3759,7 +3943,6 @@ function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
3759
3943
  return [originalGlobalEval$LWS, globalEval$LWS];
3760
3944
  }
3761
3945
 
3762
- const CHAR_CODE_EQUALS$LWS = 61;
3763
3946
  const COOKIE_DELIMITER$LWS = '; ';
3764
3947
 
3765
3948
  function prefixCookieName$LWS(detailsOrName$LWS, key$LWS) {
@@ -3786,8 +3969,8 @@ function unprefixCookieName$LWS(name$LWS, key$LWS) {
3786
3969
  const {
3787
3970
  length: rootKeyLength$LWS
3788
3971
  } = rootKey$LWS;
3789
- const rootKeySubstringLength$LWS = StringCharCodeAt$LWS(name$LWS, rootKeyLength$LWS) === CHAR_CODE_EQUALS$LWS ? rootKeyLength$LWS + 1 : rootKeyLength$LWS;
3790
- return StringSlice$LWS(name$LWS, rootKeySubstringLength$LWS);
3972
+ const pos$LWS = name$LWS.length > rootKeyLength$LWS && name$LWS[rootKeyLength$LWS] === '=' ? rootKeyLength$LWS + 1 : rootKeyLength$LWS;
3973
+ return StringSlice$LWS(name$LWS, pos$LWS);
3791
3974
  }
3792
3975
 
3793
3976
  function normalizeCookieListItem$LWS(cookie$LWS, key$LWS) {
@@ -3894,6 +4077,7 @@ function distortionCookieStoreGetAll$LWS(globalObject$LWS, options$LWS) {
3894
4077
 
3895
4078
  return PromiseThen$LWS(ReflectApply$LWS(originalGetAll$LWS, this, args$LWS), result$LWS => {
3896
4079
  const sandboxedCookies$LWS = [];
4080
+ let sandboxedCookiesOffset$LWS = 0;
3897
4081
 
3898
4082
  for (let i$LWS = 0, {
3899
4083
  length: length$LWS
@@ -3901,7 +4085,7 @@ function distortionCookieStoreGetAll$LWS(globalObject$LWS, options$LWS) {
3901
4085
  const cookie$LWS = normalizeCookieListItem$LWS(result$LWS[i$LWS], key$LWS);
3902
4086
 
3903
4087
  if (cookie$LWS) {
3904
- ArrayPush$LWS(sandboxedCookies$LWS, cookie$LWS);
4088
+ sandboxedCookies$LWS[sandboxedCookiesOffset$LWS++] = cookie$LWS;
3905
4089
  }
3906
4090
  }
3907
4091
 
@@ -4090,6 +4274,7 @@ function distortionDocumentCookieGetter$LWS(globalObject$LWS, options$LWS) {
4090
4274
  const documentCookieValue$LWS = DocumentCookieGetter$LWS(this);
4091
4275
  const cookies$LWS = StringSplit$LWS(documentCookieValue$LWS, COOKIE_DELIMITER$LWS);
4092
4276
  const sandboxedCookies$LWS = [];
4277
+ let sandboxedCookiesOffset$LWS = 0;
4093
4278
 
4094
4279
  for (let i$LWS = 0, {
4095
4280
  length: length$LWS
@@ -4097,7 +4282,7 @@ function distortionDocumentCookieGetter$LWS(globalObject$LWS, options$LWS) {
4097
4282
  const cookie$LWS = unprefixCookieName$LWS(cookies$LWS[i$LWS], key$LWS);
4098
4283
 
4099
4284
  if (cookie$LWS) {
4100
- ArrayPush$LWS(sandboxedCookies$LWS, cookie$LWS);
4285
+ sandboxedCookies$LWS[sandboxedCookiesOffset$LWS++] = cookie$LWS;
4101
4286
  }
4102
4287
  }
4103
4288
 
@@ -4109,8 +4294,6 @@ function distortionDocumentCookieGetter$LWS(globalObject$LWS, options$LWS) {
4109
4294
  /**
4110
4295
  * Factory patched cookie setter. Must be invoked with namespace argument.
4111
4296
  * Returns a distortion function bound to the namespace.
4112
- * @param ns
4113
- * @returns Distortion
4114
4297
  */
4115
4298
 
4116
4299
 
@@ -4129,7 +4312,7 @@ function distortionDocumentCookieSetter$LWS(globalObject$LWS, options$LWS) {
4129
4312
  0: newCookieEntry$LWS
4130
4313
  } = cookieEntries$LWS;
4131
4314
 
4132
- if (StringCharCodeAt$LWS(newCookieEntry$LWS, 0) === CHAR_CODE_EQUALS$LWS) {
4315
+ if (newCookieEntry$LWS.length && newCookieEntry$LWS[0] === '=') {
4133
4316
  newCookieEntry$LWS = StringSlice$LWS(newCookieEntry$LWS, 1);
4134
4317
  }
4135
4318
 
@@ -4237,7 +4420,9 @@ function sanitizeWindowOpenArguments$LWS(args$LWS) {
4237
4420
  if (sanitizedArgs$LWS.length > 2) {
4238
4421
  // Lowercase the features string because it is case insensitive.
4239
4422
  // https://html.spec.whatwg.org/multipage/window-object.html#normalizing-the-feature-name
4240
- let windowFeatures$LWS = StringToLowerCase$LWS(toString$LWS(sanitizedArgs$LWS[2]));
4423
+ let windowFeatures$LWS = StringToLowerCase$LWS(toString$LWS(sanitizedArgs$LWS[2])); // RegExp.prototype[Symbol.replace] resets the lastIndex of global
4424
+ // regexp to 0.
4425
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
4241
4426
 
4242
4427
  if (RegExpTest$LWS(noopenerRegExp$LWS, windowFeatures$LWS)) {
4243
4428
  // Replacing noopener with an enabled state that is supported
@@ -5537,22 +5722,13 @@ function abstractFactorySetThrower$LWS(proto$LWS, propName$LWS) {
5537
5722
  /**
5538
5723
  * Wraps the source content of a script tag in the evaluator
5539
5724
  * Creates a blob: url with the wrapped content
5540
- * @param text String
5541
- * @param key String
5542
- * @returns String
5543
5725
  */
5544
5726
 
5545
5727
 
5546
- function createScriptUrl$LWS(text$LWS, key$LWS) {
5547
- const transformedText$LWS = transformUncompiledSource$LWS(text$LWS);
5728
+ function createScriptUrl$LWS(sourceText$LWS, key$LWS) {
5729
+ const transformedText$LWS = transformUncompiledSource$LWS(sourceText$LWS);
5548
5730
  const payload$LWS = WindowEncodeURIComponent$LWS(transformedText$LWS);
5549
- const blobScript$LWS = `
5550
- {
5551
- const { $evaluator$ } = document.currentScript;
5552
- const text = decodeURIComponent(\`${payload$LWS}\`);
5553
- delete document.currentScript.$evaluator$;
5554
- $evaluator$('${key$LWS}', text, { ${UNCOMPILED_LOCATION_NAME$LWS}: location });
5555
- }`;
5731
+ const blobScript$LWS = '{' + 'const{$evaluator$}=document.currentScript;' + 'delete document.currentScript.$evaluator$;' + '$evaluator$({' + `key:${JSONStringify$LWS(key$LWS)},` + `source:decodeURIComponent(\`${payload$LWS}\`),` + "sourceType:'script'," + `context:{${UNCOMPILED_LOCATION_NAME$LWS}:location},` + '})' + '}';
5556
5732
  return URLCreateObjectURL$LWS(new BlobCtor$LWS([blobScript$LWS], {
5557
5733
  type: 'text/javascript'
5558
5734
  }));
@@ -5610,6 +5786,7 @@ function scriptDistortion$LWS(attributeName$LWS, options$LWS, datasetGetter$LWS)
5610
5786
 
5611
5787
  function distortBlockedProperties$LWS(proto$LWS, propertyList$LWS) {
5612
5788
  const entries$LWS = [];
5789
+ let entriesOffset$LWS = 0;
5613
5790
 
5614
5791
  for (let i$LWS = 0, {
5615
5792
  length: length$LWS
@@ -5630,14 +5807,14 @@ function distortBlockedProperties$LWS(proto$LWS, propertyList$LWS) {
5630
5807
  } = safeDesc$LWS;
5631
5808
 
5632
5809
  if (getter$LWS) {
5633
- ArrayPush$LWS(entries$LWS, abstractFactoryGetThrower$LWS(proto$LWS, prop$LWS));
5810
+ entries$LWS[entriesOffset$LWS++] = abstractFactoryGetThrower$LWS(proto$LWS, prop$LWS);
5634
5811
  }
5635
5812
 
5636
5813
  if (setter$LWS) {
5637
- ArrayPush$LWS(entries$LWS, abstractFactorySetThrower$LWS(proto$LWS, prop$LWS));
5814
+ entries$LWS[entriesOffset$LWS++] = abstractFactorySetThrower$LWS(proto$LWS, prop$LWS);
5638
5815
  }
5639
5816
  } else if (typeof value$LWS === 'function') {
5640
- ArrayPush$LWS(entries$LWS, abstractFactoryValueThrower$LWS(proto$LWS, prop$LWS));
5817
+ entries$LWS[entriesOffset$LWS++] = abstractFactoryValueThrower$LWS(proto$LWS, prop$LWS);
5641
5818
  }
5642
5819
  }
5643
5820
  }
@@ -6255,6 +6432,7 @@ function getStorageKeyForNamespace$LWS(storageRootKey$LWS, key$LWS) {
6255
6432
  function getStorageKeysForNamespace$LWS(storage$LWS, storageRootKey$LWS) {
6256
6433
  const storageKeys$LWS = ObjectKeys$LWS(storage$LWS);
6257
6434
  const keys$LWS = [];
6435
+ let keysOffset$LWS = 0;
6258
6436
 
6259
6437
  for (let i$LWS = 0, {
6260
6438
  length: length$LWS
@@ -6262,7 +6440,7 @@ function getStorageKeysForNamespace$LWS(storage$LWS, storageRootKey$LWS) {
6262
6440
  const key$LWS = storageKeys$LWS[i$LWS];
6263
6441
 
6264
6442
  if (StringStartsWith$LWS(key$LWS, storageRootKey$LWS)) {
6265
- ArrayPush$LWS(keys$LWS, key$LWS);
6443
+ keys$LWS[keysOffset$LWS++] = key$LWS;
6266
6444
  }
6267
6445
  }
6268
6446
 
@@ -7214,6 +7392,7 @@ function distortionWindowFramesGetter$LWS(globalObject$LWS) {
7214
7392
 
7215
7393
  ownKeys() {
7216
7394
  const keys$LWS = [];
7395
+ let keysOffset$LWS = 0;
7217
7396
  const descMap$LWS = ObjectGetOwnPropertyDescriptors$LWS(WindowProperties$LWS);
7218
7397
  ReflectSetPrototypeOf$LWS(descMap$LWS, null);
7219
7398
 
@@ -7222,7 +7401,7 @@ function distortionWindowFramesGetter$LWS(globalObject$LWS) {
7222
7401
  const unsafeDesc$LWS = descMap$LWS[key$LWS];
7223
7402
 
7224
7403
  if (ObjectHasOwnProperty$LWS(unsafeDesc$LWS, 'value') && isFrame$LWS(unsafeDesc$LWS.value)) {
7225
- ArrayPush$LWS(keys$LWS, key$LWS);
7404
+ keys$LWS[keysOffset$LWS++] = key$LWS;
7226
7405
  }
7227
7406
  }
7228
7407
  }
@@ -7690,10 +7869,10 @@ function addDistortionEntry$LWS(globalObject$LWS, key$LWS, evaluator$LWS, config
7690
7869
  maybeInstrumentedDistortedValue$LWS = instrumentDistortionForSandbox$LWS(key$LWS, distortedValue$LWS, instrumentation$LWS, !!verboseInstrumentation$LWS, factory$LWS.name || '<unknown>');
7691
7870
  }
7692
7871
 
7693
- ArrayPush$LWS(entries$LWS, [rawValue$LWS, maybeMaskDistortion$LWS(maybeInstrumentedDistortedValue$LWS, rawValue$LWS)]);
7872
+ entries$LWS[entries$LWS.length] = [rawValue$LWS, maybeMaskDistortion$LWS(maybeInstrumentedDistortedValue$LWS, rawValue$LWS)];
7694
7873
  }
7695
7874
  }
7696
- } // @TODO: [Issue #373] Abstract common code in sandbox and distortion packages
7875
+ } // @TODO: #373 Abstract common code in sandbox and distortion packages.
7697
7876
 
7698
7877
 
7699
7878
  function createExternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluator$LWS, config$LWS) {
@@ -7731,7 +7910,7 @@ function createExternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluato
7731
7910
 
7732
7911
  ReflectApply$LWS(ArrayProtoPush$LWS, entries$LWS, makeElementDistortionsForSandboxKey$LWS(key$LWS));
7733
7912
  return entries$LWS;
7734
- } // @TODO: [Issue #373] Abstract common code in sandbox and distortion packages
7913
+ } // @TODO: #373 Abstract common code in sandbox and distortion packages.
7735
7914
 
7736
7915
 
7737
7916
  function createInternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluator$LWS, config$LWS) {
@@ -7770,113 +7949,10 @@ function createInternalDistortionEntries$LWS(globalObject$LWS, key$LWS, evaluato
7770
7949
  ReflectApply$LWS(ArrayProtoPush$LWS, entries$LWS, makeElementDistortionsForSandboxKey$LWS(key$LWS));
7771
7950
  return entries$LWS;
7772
7951
  }
7773
- /*! version: 0.15.15 */
7774
-
7775
- /*!
7776
- * Copyright (C) 2021 salesforce.com, inc.
7777
- */
7778
- /* eslint-disable class-methods-use-this, max-classes-per-file */
7779
-
7780
- let ticketSequence$LWS = 0;
7781
-
7782
- function getActivityId$LWS() {
7783
- ticketSequence$LWS += 1;
7784
- return DateNow$LWS() + ticketSequence$LWS;
7785
- } // Locker Instrumentation Activity class
7786
-
7787
- /* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
7788
-
7789
-
7790
- class LockerActivity$LWS {
7791
- constructor(activityName$LWS, startCallback$LWS, stopCallback$LWS, captureTimestamps$LWS = false) {
7792
- this._activityStart = 0;
7793
- this._activityStop = 0;
7794
- this._captureTimestamps = captureTimestamps$LWS;
7795
- this._startCallback = startCallback$LWS;
7796
- this._started = false;
7797
- this._stopCallback = stopCallback$LWS;
7798
- this._stopped = false;
7799
- this.activityId = `${activityName$LWS}-${getActivityId$LWS()}`;
7800
- this.activityName = activityName$LWS;
7801
- }
7802
- /*
7803
- * starts an activity
7804
- */
7805
-
7806
-
7807
- start(data$LWS) {
7808
- if (!this._started) {
7809
- this._started = true;
7810
-
7811
- if (this._captureTimestamps) {
7812
- this._activityStart = getTimestamp$LWS();
7813
- }
7814
-
7815
- if (typeof this._startCallback === 'function') {
7816
- this._startCallback(this, data$LWS);
7817
- }
7818
- }
7819
- }
7820
- /*
7821
- * stops the current activity
7822
- */
7823
-
7824
-
7825
- stop(data$LWS) {
7826
- if (!this._stopped) {
7827
- this._stopped = true;
7828
-
7829
- if (this._captureTimestamps) {
7830
- this._activityStop = getTimestamp$LWS();
7831
- }
7832
-
7833
- if (typeof this._stopCallback === 'function') {
7834
- this._stopCallback(this, data$LWS);
7835
- }
7836
- }
7837
- }
7838
- /*
7839
- * stop the current activity with error state.
7840
- */
7841
-
7842
-
7843
- error(data$LWS) {
7844
- // @TODO:
7845
- // Aura's metrics service ($A.metricsService) is the current
7846
- // instrumentation service used by Locker. The metrics service does not
7847
- // have an `error` API for perf activities. But O11y provides this
7848
- // feature. When Locker is able to integrate O11y, the following line
7849
- // should be calling O11y's error API instead of `stop()`.
7850
- this.stop(data$LWS);
7851
- }
7852
-
7853
- get duration() {
7854
- return this._activityStop > this._activityStart ? this._activityStop - this._activityStart : 0;
7855
- }
7856
-
7857
- } // Creates a new no-op Instrumentation instance.
7858
-
7859
-
7860
- class DefaultInstrumentation$LWS {
7861
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
7862
- startActivity(activityName$LWS, _data$LWS) {
7863
- return new LockerActivity$LWS(activityName$LWS, undefined, undefined);
7864
- } // eslint-disable-next-line @typescript-eslint/no-unused-vars
7865
-
7866
-
7867
- log(_data$LWS) {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
7868
-
7869
-
7870
- error(_data$LWS) {}
7871
-
7872
- } // Export the default instrumentation instance with no-op operations.
7873
-
7874
-
7875
- const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
7876
- /*! version: 0.15.15 */
7952
+ /*! version: 0.16.1 */
7877
7953
 
7878
- const K=new WeakMap;function createMembraneMarshall$LWS(t){const e=Array,r=ArrayBuffer,o=Error,n=Object,a=Proxy,i=Reflect,s=RegExp,l=Symbol,c=TypeError,u=WeakMap,{for:p,toStringTag:y}=l,f=/\w*$/,d=Symbol.for("@@lockerDebugMode"),h=p("@@lockerLiveValue"),b=p("@@lockerNearMembraneSerializedValue"),S=p("@@lockerNearMembrane"),g=p("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
7954
+ const V=new WeakMap;function createMembraneMarshall$LWS(t){const e=Array,r=ArrayBuffer,o=Error,n=Object,a=Proxy,i=Reflect,l=RegExp,s=Symbol,c=TypeError,u=WeakMap,{for:p,toStringTag:y}=s,f=/\w*$/,d=Symbol.for("@@lockerDebugMode"),h=p("@@lockerLiveValue"),b=p("@@lockerNearMembraneSerializedValue"),g=p("@@lockerNearMembrane"),S=p("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
7879
7955
  /* $LWS */
7880
- 1}`.includes("*");let v=LOCKER_UNMINIFIED_FLAG$LWS&&void 0;const L="function"==typeof BigInt,{assign:$,defineProperties:P,freeze:W,getOwnPropertyDescriptor:T,getOwnPropertyDescriptors:w,isFrozen:x,isSealed:O,prototype:_,seal:m}=n,{__defineGetter__:E,__defineSetter__:B,__lookupGetter__:A,__lookupSetter__:D,hasOwnProperty:H,propertyIsEnumerable:k,toString:j}=_,{apply:C,construct:G,defineProperty:M,deleteProperty:I,get:R,getOwnPropertyDescriptor:N,getPrototypeOf:F,has:z,isExtensible:V,ownKeys:U,preventExtensions:Z,set:X,setPrototypeOf:J}=i,{isArray:Y}=e,{includes:q,indexOf:Q,slice:tt}=e.prototype,{isView:et}=r,rt=C(A,r.prototype,["byteLength"]),ot=L?BigInt.prototype.valueOf:void 0,{valueOf:nt}=Boolean.prototype,{toString:at}=o.prototype,{bind:it}=Function.prototype,{stringify:st}=JSON,{valueOf:lt}=Number.prototype,{revocable:ct}=a,{prototype:ut}=s,{exec:pt,test:yt,toString:ft}=ut,dt=C(A,ut,["flags"])||function(){const t=C(ft,this,[]);return C(pt,f,[t])[0]},ht=C(A,ut,["source"]),{replace:bt,slice:St,valueOf:gt}=String.prototype,{valueOf:vt}=l.prototype,{get:Lt,set:$t}=u.prototype,Pt=console,{info:Wt}=Pt,Tt=eval,wt="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||(M(_,"globalThis",{__proto__:null,configurable:!0,get(){return I(_,"globalThis"),this||self}}),globalThis);let xt=!1,Ot=!1;const _t=new s(`${C(bt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`),mt={__proto__:null};function getUnforgeableGlobalThisGetter$LWS(t){let e=mt[t];return void 0===e&&(e=C(it,()=>wt,[]),mt[t]=e),e}function identity$LWS(t){return t}const Et=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(xt)return;xt=!0;const t=(()=>{var t;o.prepareStackTrace=(t,e)=>e;const e=(new o).stack;return delete o.prepareStackTrace,Y(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:r,toString:n}=t.prototype;o.prepareStackTrace=function(t,o){return function(t,o){let a="";try{a=C(at,t,[]);}catch(t){a="<error>";}let i=!1;for(let t=0,{length:s}=o;t<s;t+=1){const s=o[t],l=C(r,s,[]);let c=!1;if("string"==typeof l&&"eval"!==l&&C(yt,_t,[l])&&(c=!0),!c){const t=C(e,s,[]);"string"==typeof t&&C(yt,_t,[t])&&(c=!0);}if(c)i||(i=!0,a+="\n at LWS");else {i=!1;try{a+=`\n at ${C(n,s,[])}`;}catch(t){}}}return a}(t,o)};const{stackTraceLimit:a}=o;("number"!=typeof a||a<20)&&(o.stackTraceLimit=20);}:()=>{};function serializeBigIntObject$LWS(t){return C(ot,t,[])}function serializeBooleanObject$LWS(t){return C(nt,t,[])}function serializeNumberObject$LWS(t){return C(lt,t,[])}function serializeRegExp$LWS(t){if(t!==ut){const e=C(ht,t,[]);return st({__proto__:null,flags:C(dt,t,[]),source:e})}}function serializeStringObject$LWS(t){return C(gt,t,[])}function serializeSymbolObject$LWS(t){return C(vt,t,[])}function serializeTarget$LWS(t){try{return z(t,y)?function(t){try{return serializeSymbolObject$LWS(t)}catch(t){}if(L)try{return serializeBigIntObject$LWS(t)}catch(t){}try{return serializeBooleanObject$LWS(t)}catch(t){}try{return serializeNumberObject$LWS(t)}catch(t){}try{return serializeRegExp$LWS(t)}catch(t){}try{return serializeStringObject$LWS(t)}catch(t){}return}(t):function(t){switch(C(j,t,[])){case"[object Boolean]":return serializeBooleanObject$LWS(t);case"[object Number]":return serializeNumberObject$LWS(t);case"[object RegExp]":return serializeRegExp$LWS(t);case"[object String]":return serializeStringObject$LWS(t);case"[object Object]":try{return serializeSymbolObject$LWS(t)}catch(t){}if(L)try{return serializeBigIntObject$LWS(t)}catch(t){}default:return}}(t)}catch(t){}}return function(r,o,s,l){const{distortionCallback:p=identity$LWS,instrumentation:f}=$({__proto__:null},l),L="object"==typeof f&&null!==f,ot={__proto__:null,0:void 0,1:void 0,2:void 0,n:void 0},nt={__proto__:null,0:void 0,1:void 0,2:void 0,n:void 0},at=new u,it=L&&f.startActivity;let st,lt,pt,yt,ft,dt,bt,gt,vt,xt,_t,mt,Bt,At,Dt,Ht,kt,jt,Ct,Gt,Mt,It,Rt,Nt,Ft,zt,Kt,Vt=0,Ut=!1;function activateLazyOwnPropertyDefinition$LWS(t,e,r){let o;delete r[e],L&&(o=it("callableGetOwnPropertyDescriptor"));const n=getTransferablePointer$LWS(t);let a;try{bt(n,e,(t,e,r,o,n,i,s)=>{a=createDescriptorFromMeta$LWS(e,r,o,n,i,s);});}catch(t){var i;const e=null!=(i=Kt)?i:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}a?M(t,e,a):delete t[e];}function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let r,o;L&&(r=it("callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors"));try{o=Nt(t,(...t)=>{const r={};for(let e=0,{length:o}=t;e<o;e+=7){r[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}P(e,r);});}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}let a=o;"function"==typeof o&&(o(),a=Kt,Kt=void 0),J(e,a);}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithZeroOrMoreArgs":"callableConstructWithZeroOrMoreArgs",o=e?ot:nt,n=e?lt:pt;return function(a,i,s){Vt=t;const l=e?s:i,{length:c}=l;var u;if(0!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,s]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:s;try{const t=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f);let e=t;return "function"==typeof t&&(t(),e=Kt,Kt=void 0),e}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithOneOrMoreArgs":"callableConstructWithOneOrMoreArgs",o=e?ot:nt,n=e?lt:pt;return function(a,i,s){Vt=t;const l=e?s:i,{length:c}=l;var u;if(1!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,s]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:s;try{const{0:t}=l,e=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t);let r=e;return "function"==typeof e&&(e(),r=Kt,Kt=void 0),r}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithTwoOrMoreArgs":"callableConstructWithTwoOrMoreArgs",o=e?ot:nt,n=e?lt:pt;return function(a,i,s){Vt=t;const l=e?s:i,{length:c}=l;var u;if(2!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,s]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:s;try{const{0:t,1:e}=l,r=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e);let o=r;return "function"==typeof r&&(r(),o=Kt,Kt=void 0),o}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,r=e?"callableApplyWithAnyNumberOfArgs":"callableConstructWithAnyNumberOfArgs",o=e?lt:pt;return function(n,a,i){let s;Vt=t,L&&(s=it(r));const{foreignTargetPointer:l}=this,c=e?i:a,u=e?a:i;try{const t=[l,"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):void 0===u?void 0:u],{length:e}=c,{length:r}=t;t.length+=e;for(let o=0;o<e;o+=1){const e=c[o];t[r+o]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e;}const n=C(o,void 0,t);let a=n;return "function"==typeof n&&(n(),a=Kt,Kt=void 0),a}catch(t){var p;const e=null!=(p=Kt)?p:t;throw Kt=void 0,L&&s.error(e),e}finally{L&&s.stop();}}}function createDescriptorFromMeta$LWS(t,e,r,o,n,a){const i={__proto__:null};if(t!==g&&(i.configurable=!!t),e!==g&&(i.enumerable=!!e),r!==g&&(i.writable=!!r),n!==g){let t=n;"function"==typeof n&&(n(),t=Kt,Kt=void 0),i.get=t;}if(a!==g){let t=a;"function"==typeof a&&(a(),t=Kt,Kt=void 0),i.set=t;}if(o!==g){let t=o;"function"==typeof o&&(o(),t=Kt,Kt=void 0),i.value=t;}return i}function createLazyPropertyDescriptor$LWS(t,e,r){return {__proto__:null,configurable:!0,get:()=>(activateLazyOwnPropertyDefinition$LWS(t,e,r),R(t,e)),set(o){activateLazyOwnPropertyDefinition$LWS(t,e,r),X(t,e,o);}}}function createPointer$LWS(t){return ()=>{Kt=t;}}const Zt=LOCKER_UNMINIFIED_FLAG$LWS?(...e)=>{if(!t&&void 0===v&&(v=C(H,wt,[d]),v))try{Et(),Ct();}catch(t){}if(v){for(let t=0,{length:r}=e;t<r;t+=1){const r=e[t];"function"==typeof r&&(r(),e[t]=Kt,Kt=void 0);}try{C(Wt,Pt,e);}catch(t){}return !0}return !1}:()=>!1;function getDescriptorMeta$LWS(t){const e=$({__proto__:null},t),{configurable:r,enumerable:o,writable:n,value:a,get:i,set:s}=e;return ["configurable"in e?!!r:g,"enumerable"in e?!!o:g,"writable"in e?!!n:g,"value"in e?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:g,"get"in e?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):void 0===i?void 0:i:g,"set"in e?"object"==typeof s&&null!==s||"function"==typeof s?getTransferablePointer$LWS(s):void 0===s?void 0:s:g]}function getTransferablePointer$LWS(t){let e=C(Lt,at,[t]);if(e)return e;const r=p(t);if(r!==t&&typeof r!=typeof t)throw new c(`Invalid distortion ${t}.`);let o,n=8;try{Y(r)&&(n=1);}catch(t){n=16;}if("function"==typeof r){n=2;try{"prototype"in r||(n|=4);const e=N(t,"length");if(e){const t=e;J(t,null);const{value:r}=t;"number"==typeof r&&(o=r);}}catch(t){}}return e=st(createPointer$LWS(r),n,o,undefined),C($t,at,[t,e]),e}function lockShadowTarget$LWS(t,e){copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(e,t),Z(t);}function lookupForeignDescriptor$LWS(t,e,r){let o,n,a;L&&(o=it("callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor"));try{n=zt(t,r,(t,o,n,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(o,n,i,s,l,c),!1===a.configurable&&M(e,r,a);});}catch(t){var i;const e=null!=(i=Kt)?i:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}if(a)return a;let s=n;for("function"==typeof n&&(n(),s=Kt,Kt=void 0);s;){const t=N(s,r);if(t)return a=t,J(a,null),a;s=F(s);}}function pushErrorAcrossBoundary$LWS(t){if("object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t)();}return t}class BoundaryProxyHandler$LWS{constructor(t,e,n,a){let i;this.color=r,this.foreignTargetTraits=0;const s=1&e,l=2&e;i=l?4&e?()=>{}:function(){}:s?[]:{};const{proxy:c,revoke:u}=ct(i,this);var p,y;(this.foreignTargetPointer=t,this.foreignTargetTraits=e,this.nonConfigurableDescriptorCallback=(t,e,r,o,n,a,i)=>{M(this.shadowTarget,t,createDescriptorFromMeta$LWS(e,r,o,n,a,i));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.shadowTarget=i,this.staticToStringTag=void 0,l)&&(this.apply=null!=(p=ot[n])?p:ot.n,this.construct=null!=(y=nt[n])?y:nt.n);if(this.defineProperty=BoundaryProxyHandler$LWS.defaultDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.defaultDeletePropertyTrap,this.isExtensible=BoundaryProxyHandler$LWS.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap,this.get=BoundaryProxyHandler$LWS.defaultGetTrap,this.has=BoundaryProxyHandler$LWS.defaultHasTrap,this.ownKeys=BoundaryProxyHandler$LWS.defaultOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap,this.set=BoundaryProxyHandler$LWS.defaultSetTrap,16&e&&u(),o)s&&this.makeProxyLive();else {if(8&e){let t=g;C(E,this,["serializedValue",()=>(t===g&&(t=It(this.foreignTargetPointer)),t)]);}W(this);}}makeProxyLive(){this.deleteProperty=BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,this.defineProperty=BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,this.preventExtensions=BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.passthruSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,W(this);}makeProxyStatic(){this.defineProperty=BoundaryProxyHandler$LWS.staticDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.staticDeletePropertyTrap,this.get=BoundaryProxyHandler$LWS.staticGetTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap,this.has=BoundaryProxyHandler$LWS.staticHasTrap,this.isExtensible=BoundaryProxyHandler$LWS.staticIsExtensibleTrap,this.ownKeys=BoundaryProxyHandler$LWS.staticOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.staticPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.staticSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap;const{foreignTargetPointer:t,shadowTarget:e}=this;let r;{let e;if(L&&(e=it("callableGetTargetIntegrityTraits")),r=kt(t),L&&e.stop(),8&r)return W(this),void this.revoke()}try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e);}catch(e){let r;L&&(r=it("callableIsTargetRevoked"));const o=Mt(t);if(L&&r.stop(),o)return W(this),void this.revoke()}if(8&this.foreignTargetTraits&&!z(e,y)){let e;L&&(e=it("callableGetToStringTagOfTarget"));let r="Object";try{r=jt(t);}catch(t){}L&&e.stop(),"Object"!==r&&(this.staticToStringTag=r);}4&r?W(e):2&r?m(e):1&r?Z(e):!1!==v&&(v=Dt("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),W(this);}makeProxyUnambiguous(){let t;L&&(t=it("callableIsTargetLive"));const e=Gt(this.foreignTargetPointer);L&&t.stop(),e?this.makeProxyLive():this.makeProxyStatic();}static hybridGetTrap(t,e,r){const{foreignTargetPointer:o,shadowTarget:n}=this,a=lookupForeignDescriptor$LWS(o,n,e);if(a){const{get:t,value:e}=a;return t?C(t,r,[]):e}if(e===y&&8&this.foreignTargetTraits){let t,e;L&&(t=it("callableGetToStringTagOfTarget"));try{e=jt(o);}catch(e){var i;const r=null!=(i=Kt)?i:e;throw Kt=void 0,L&&t.error(r),r}finally{L&&t.stop();}if("Object"!==e)return e}}static hybridHasTrap(t,e){let r,o;L&&(r=it("callableBatchGetPrototypeOfWhenHasNoOwnProperty"));try{o=Ft(this.foreignTargetPointer,e);}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}if(!0===o)return !0;let a=o;for("function"==typeof o&&(o(),a=Kt,Kt=void 0);a;){if(C(H,a,[e]))return !0;a=F(a);}return !1}static passthruDefinePropertyTrap(t,e,r){let o;Vt=4,L&&(o=it("callableDefineProperty"));const{foreignTargetPointer:n}=this,a=getDescriptorMeta$LWS(r);try{return yt(n,e,a[0],a[1],a[2],a[3],a[4],a[5],this.nonConfigurableDescriptorCallback)}catch(t){var i;const e=null!=(i=Kt)?i:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}}static passthruDeletePropertyTrap(t,e){let r;Vt=8,L&&(r=it("callableDeleteProperty"));try{return ft(this.foreignTargetPointer,e)}catch(t){var o;const e=null!=(o=Kt)?o:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}}static passthruGetTrap(t,e,r){if(Ut&&(Ut=128===Vt),Vt=16,Ut){if(e===S)return !0;if(e===b)return this.serializedValue}let o;L&&(o=it("callableGet"));const n="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):void 0===r?void 0:r;try{const t=dt(this.foreignTargetPointer,this.foreignTargetTraits,e,n);let r=t;return "function"==typeof t&&(t(),r=Kt,Kt=void 0),r}catch(t){var a;const e=null!=(a=Kt)?a:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}}static passthruGetPrototypeOfTrap(t){let e,r;Vt=64,L&&(e=it("callableGetPrototypeOf"));try{r=gt(this.foreignTargetPointer);}catch(t){var o;const r=null!=(o=Kt)?o:t;throw Kt=void 0,L&&e.error(r),r}finally{L&&e.stop();}let n=r;return "function"==typeof r&&(r(),n=Kt,Kt=void 0),n}static passthruHasTrap(t,e){let r,o;Vt=128,L&&(r=it("callableHas"));try{o=vt(this.foreignTargetPointer,e);}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}return Ut=!o&&(e===S||e===b),o}static passthruIsExtensibleTrap(t){Vt=256;const{shadowTarget:e}=this;if(V(e)){let t;L&&(t=it("callableIsExtensible"));const{foreignTargetPointer:o}=this;try{if(xt(o))return !0}catch(e){var r;const o=null!=(r=Kt)?r:e;throw Kt=void 0,L&&t.error(o),o}finally{L&&t.stop();}lockShadowTarget$LWS(e,o);}return !1}static passthruOwnKeysTrap(t){let e,r;Vt=512,L&&(e=it("callableOwnKeys"));try{_t(this.foreignTargetPointer,(...t)=>{r=t;});}catch(t){var o;const r=null!=(o=Kt)?o:t;throw Kt=void 0,L&&e.error(r),r}finally{L&&e.stop();}return r||[]}static passthruGetOwnPropertyDescriptorTrap(t,e){let r,o;Vt=32,L&&(r=it("callableGetOwnPropertyDescriptor"));try{bt(this.foreignTargetPointer,e,(t,r,n,a,i,s,l)=>{o=createDescriptorFromMeta$LWS(r,n,a,i,s,l),!1===o.configurable&&M(this.shadowTarget,e,o);});}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}return o}static passthruPreventExtensionsTrap(t){Vt=1024;const{shadowTarget:e}=this;if(V(e)){let t;L&&(t=it("callablePreventExtensions"));const{foreignTargetPointer:o}=this;let n;try{n=mt(o);}catch(e){var r;const o=null!=(r=Kt)?r:e;throw Kt=void 0,L&&t.error(o),o}finally{L&&t.stop();}if(2&n)return 1&n||lockShadowTarget$LWS(e,o),!1;lockShadowTarget$LWS(e,o);}return !0}static passthruSetPrototypeOfTrap(t,e){let r;Vt=4096,L&&(r=it("callableSetPrototypeOf"));const o=e?getTransferablePointer$LWS(e):e;try{return At(this.foreignTargetPointer,o)}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}}static passthruSetTrap(t,e,r,o){Vt=2048;const{foreignTargetPointer:n}=this;return this.proxy===o?function(t,e,r,o){let n;L&&(n=it("callableSet"));const a="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):void 0===r?void 0:r,i=getTransferablePointer$LWS(o);try{return Bt(t,e,a,i)}catch(t){var s;const e=null!=(s=Kt)?s:t;throw Kt=void 0,L&&n.error(e),e}finally{L&&n.stop();}}(n,e,r,o):function(t,e,r,o,n){const a=lookupForeignDescriptor$LWS(t,e,r);if(a){if("get"in a||"set"in a){const{set:t}=a;return !!t&&(C(t,n,[o]),!0)}if(!1===a.writable)return !1}let i;if(null===n||"function"!=typeof n&&"object"!=typeof n)return !1;const s=N(n,r);return s&&(i=s,J(i,null)),i?!("get"in i)&&!("set"in i)&&!1!==i.writable&&(M(n,r,{__proto__:null,value:o}),!0):M(n,r,{__proto__:null,configurable:!0,enumerable:!0,value:o,writable:!0})}(n,this.shadowTarget,e,r,o)}static pendingDefinePropertyTrap(t,e,r){return this.makeProxyUnambiguous(),this.defineProperty(t,e,r)}static pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(),this.deleteProperty(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(),this.preventExtensions(t)}static pendingSetPrototypeOfTrap(t,e){return this.makeProxyUnambiguous(),this.setPrototypeOf(t,e)}static pendingSetTrap(t,e,r,o){return this.makeProxyUnambiguous(),this.set(t,e,r,o)}static staticGetTrap(t,e,r){const{shadowTarget:o}=this,n=R(o,e,r);return void 0===n&&e===y&&8&this.foreignTargetTraits&&!z(o,e)?this.staticToStringTag:n}}return BoundaryProxyHandler$LWS.defaultDefinePropertyTrap=o?BoundaryProxyHandler$LWS.pendingDefinePropertyTrap:BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,BoundaryProxyHandler$LWS.defaultDeletePropertyTrap=o?BoundaryProxyHandler$LWS.pendingDeletePropertyTrap:BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap=BoundaryProxyHandler$LWS.passthruGetOwnPropertyDescriptorTrap,BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap=BoundaryProxyHandler$LWS.passthruGetPrototypeOfTrap,BoundaryProxyHandler$LWS.defaultGetTrap=o?BoundaryProxyHandler$LWS.hybridGetTrap:BoundaryProxyHandler$LWS.passthruGetTrap,BoundaryProxyHandler$LWS.defaultHasTrap=o?BoundaryProxyHandler$LWS.hybridHasTrap:BoundaryProxyHandler$LWS.passthruHasTrap,BoundaryProxyHandler$LWS.defaultIsExtensibleTrap=BoundaryProxyHandler$LWS.passthruIsExtensibleTrap,BoundaryProxyHandler$LWS.defaultOwnKeysTrap=BoundaryProxyHandler$LWS.passthruOwnKeysTrap,BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap=o?BoundaryProxyHandler$LWS.pendingPreventExtensionsTrap:BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,BoundaryProxyHandler$LWS.defaultSetTrap=o?BoundaryProxyHandler$LWS.pendingSetTrap:BoundaryProxyHandler$LWS.passthruSetTrap,BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap=o?BoundaryProxyHandler$LWS.pendingSetPrototypeOfTrap:BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,BoundaryProxyHandler$LWS.staticDefinePropertyTrap=M,BoundaryProxyHandler$LWS.staticDeletePropertyTrap=I,BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap=N,BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap=F,BoundaryProxyHandler$LWS.staticHasTrap=z,BoundaryProxyHandler$LWS.staticIsExtensibleTrap=V,BoundaryProxyHandler$LWS.staticOwnKeysTrap=U,BoundaryProxyHandler$LWS.staticPreventExtensionsTrap=Z,BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap=J,BoundaryProxyHandler$LWS.staticSetTrap=X,J(BoundaryProxyHandler$LWS.prototype,null),W(BoundaryProxyHandler$LWS.prototype),s(createPointer$LWS(wt),()=>{const t=Kt;return Kt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t,(t,e)=>{t();const r=Kt;return Kt=void 0,createPointer$LWS(null==r?void 0:r[e])},t=>{try{const e=Tt(t);return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;Kt=void 0,("object"==typeof r&&null!==r||"function"==typeof r)&&C($t,at,[r,e]);},(t,e,r,o)=>{const{proxy:n}=new BoundaryProxyHandler$LWS(t,e,r,o);return C($t,at,[n,t]),createPointer$LWS(n)},(t,e,...r)=>{t();const o=Kt;Kt=void 0;let n,a=e;"function"==typeof e&&(e(),a=Kt,Kt=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Kt,Kt=void 0);}try{n=C(o,a,r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n},(t,e,...r)=>{t();const o=Kt;Kt=void 0;let n,a=e;"function"==typeof e&&(e(),a=Kt,Kt=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Kt,Kt=void 0);}try{n=G(o,r,a);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n},(t,e,r,o,n,a,i,s,l)=>{t();const c=Kt;Kt=void 0;let u=!1;try{u=M(c,e,createDescriptorFromMeta$LWS(r,o,n,a,i,s));}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(u&&!1===r){let t;try{t=N(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&C(H,t,["configurable"])&&!1===t.configurable){const r=getDescriptorMeta$LWS(t);l(e,r[0],r[1],r[2],r[3],r[4],r[5]);}}return u},(t,e)=>{t();const r=Kt;Kt=void 0;try{return I(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,r,o)=>{t();const n=Kt;Kt=void 0;let a,i=o;"function"==typeof o&&(o(),i=Kt,Kt=void 0);try{a=R(n,r,i);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof a&&null!==a||"function"==typeof a)return getTransferablePointer$LWS(a);if(a=void 0===a?void 0:a,void 0===a&&r===y&&8&e)try{if(!z(n,r)){const t=C(j,n,[]);"[object Object]"!==t&&(a=C(St,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return a},(t,e,r)=>{t();const o=Kt;let n;Kt=void 0;try{n=N(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){const t=getDescriptorMeta$LWS(n);r(e,t[0],t[1],t[2],t[3],t[4],t[5]);}},t=>{t();const e=Kt;let r;Kt=void 0;try{r=F(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return r?getTransferablePointer$LWS(r):r},(t,e)=>{t();const r=Kt;Kt=void 0;try{return z(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=Kt;Kt=void 0;try{return V(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;let o;Kt=void 0;try{o=U(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}C(e,void 0,o);},t=>{t();const e=Kt;Kt=void 0;let r=2;try{Z(e)&&(r=4);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return 2&r&&V(e)&&(r|=1),r},(t,e,r,o)=>{t();const n=Kt;Kt=void 0;let a=r;"function"==typeof r&&(r(),a=Kt,Kt=void 0);let i=o;"function"==typeof o&&(o(),i=Kt,Kt=void 0);try{return X(n,e,a,i)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;Kt=void 0;let o=e;"function"==typeof e&&(e(),o=Kt,Kt=void 0);try{return J(r,o)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Zt,(t,...e)=>{t();const r=Kt;Kt=void 0;for(let t=0,{length:o}=e;t<o;t+=7)M(r,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));},t=>{t();const e=Kt;let r;Kt=void 0;try{r=function(t){return K.get(t)}(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return r?getTransferablePointer$LWS(r):r},t=>{t();const e=Kt;Kt=void 0;try{if(!V(e))return x(e)||O(e)?0:1}catch(t){try{Y(e);}catch(t){return 8}}return 0},t=>{t();const e=Kt;Kt=void 0;try{const t=C(j,e,[]);return "[object Object]"===t?"Object":C(St,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Et,(e,...r)=>{if(!t)return;const o=C(Q,r,[g]);let s,l;-1===o?s=r:(s=C(tt,r,[0,o]),l=C(tt,r,[o+1])),e();const c=Kt;Kt=void 0;const u=getTransferablePointer$LWS(c),p=Ht(u);let y=p;"function"==typeof p&&(p(),y=Kt,Kt=void 0),void 0===y&&(y={__proto__:null},Rt(u,getTransferablePointer$LWS(y)));for(let t=0,{length:e}=s;t<e;t+=1){const e=s[t];y[e]=!0,M(c,e,createLazyPropertyDescriptor$LWS(c,e,y));}!function(t){if(Ot)return;Ot=!0;const e=Y(t)&&t.length>0,r=e?(e,r)=>C(q,t,[r])?{configurable:!1,enumerable:C(k,e,[r]),get:getUnforgeableGlobalThisGetter$LWS(r),set:void 0}:N(e,r):void 0,o=e?(e,r)=>C(q,t,[r])?getUnforgeableGlobalThisGetter$LWS(r):C(A,e,[r]):void 0,s=e?(e,r)=>C(q,t,[r])?void 0:C(D,e,[r]):void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,r=2===e;return new a(t,{apply(o,n,a){if(a.length>=e){var i;const t=r?n:a[0],e=r?a[0]:a[1],o=Ht(getTransferablePointer$LWS(t));let s=o;"function"==typeof o&&(o(),s=Kt,Kt=void 0),null!=(i=s)&&i[e]&&R(t,e);}return C(t,n,a)}})},wrapLookupAccessor$LWS=(t,r)=>new a(t,{apply(o,n,a){if(a.length){var i;const{0:t}=a,o=Ht(getTransferablePointer$LWS(n));let s=o;if("function"==typeof o&&(o(),s=Kt,Kt=void 0),null!=(i=s)&&i[t]&&R(n,t),e&&n===wt)return r(n,t)}return C(t,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new a(t,{apply(o,n,a){if(a.length>1){var i;const{0:t,1:o}=a,n=Ht(getTransferablePointer$LWS(t));let s=n;if("function"==typeof n&&(n(),s=Kt,Kt=void 0),null!=(i=s)&&i[o]&&R(t,o),e&&t===wt)return r(t,o)}return C(t,n,a)}});var l;i.defineProperty=wrapDefineAccessOrProperty$LWS(M),i.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(N),n.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(T),n.getOwnPropertyDescriptors=new a(l=w,{apply(t,o,n){if(!n.length)return C(l,o,n);const{0:a}=n,i=Ht(getTransferablePointer$LWS(a));let s=i;"function"==typeof i&&(i(),s=Kt,Kt=void 0);const c=a===wt&&e,u=c?{}:C(l,o,n);if(!c&&void 0===s)return u;const p=U(c?a:u);for(let t=0,{length:e}=p;t<e;t+=1){var y;const e=p[t],o=!(null==(y=s)||!y[e]);if(o&&R(a,e),o||c){const t=c?r(a,e):N(a,e);t?u[e]=t:c||delete u[e];}}return u}}),_.__defineGetter__=wrapDefineAccessOrProperty$LWS(E),_.__defineSetter__=wrapDefineAccessOrProperty$LWS(B),_.__lookupGetter__=wrapLookupAccessor$LWS(A,o),_.__lookupSetter__=wrapLookupAccessor$LWS(D,s);}(l);},t=>{t();const e=Kt;if(Kt=void 0,e===_)return !1;try{if("object"==typeof e){const{constructor:t}=e;if(t===n)return !0;if(null===F(e)&&("function"!=typeof t||t.prototype!==e))return !0;if(et(e))return !0;try{return C(rt,e,[]),!0}catch(t){}try{if(e!==ut)return C(ht,e,[]),!0}catch(t){}}return C(H,e,[h])}catch(t){}return !1},t=>{t();const e=Kt;Kt=void 0;try{return Y(e),!1}catch(t){}return !0},t=>{t();const e=Kt;return Kt=void 0,serializeTarget$LWS(e)},(t,e)=>{t();const r=Kt;Kt=void 0,e();const o=Kt;Kt=void 0;try{!function(t,e){K.set(t,e);}(r,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,r)=>{t();const o=Kt;let n;Kt=void 0;try{n=w(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const a=U(n),{length:i}=a,s=new e(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const r=a[t],o=n[r];J(o,null);const{configurable:i,enumerable:l,writable:c,value:u,get:p,set:y}=o;s[e]=r,s[e+1]="configurable"in o?!!i:g,s[e+2]="enumerable"in o?!!l:g,s[e+3]="writable"in o?!!c:g,s[e+4]="value"in o?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):void 0===u?void 0:u:g,s[e+5]="get"in o?"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):void 0===p?void 0:p:g,s[e+6]="set"in o?"object"==typeof y&&null!==y||"function"==typeof y?getTransferablePointer$LWS(y):void 0===y?void 0:y:g;}let l;C(r,void 0,s);try{l=F(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return l?getTransferablePointer$LWS(l):l},(t,e)=>{t();const r=Kt;let o;Kt=void 0;try{if(C(H,r,[e]))return !0;o=F(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o?getTransferablePointer$LWS(o):o},(t,e,r)=>{t();const o=Kt;let n,a;Kt=void 0;try{n=N(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(!n){try{a=F(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return a?getTransferablePointer$LWS(a):a}{const t=getDescriptorMeta$LWS(n);r(e,t[0],t[1],t[2],t[3],t[4],t[5]);}}),(...t)=>{const{6:e,7:r,8:o,9:n,10:a,11:i,12:s,13:l,14:c,15:u,16:p,17:y,18:f,19:d,20:h,22:b,23:S,24:g,25:v,27:L,28:$,29:P,30:W,31:T,32:w,33:x}=t;st=e,lt=r,pt=o,yt=n,ft=a,dt=i,bt=s,gt=l,vt=c,xt=u,_t=p,mt=y,Bt=f,At=d,Dt=h,Ht=b,kt=S,jt=g,Ct=v,Gt=L,Mt=$,It=P,Rt=W,Nt=T,Ft=w,zt=x,ot[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),ot[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),ot[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),ot.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),nt[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),nt[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),nt[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),nt.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2);}}}const V=TypeError,U=WeakMap,{apply:Z}=Reflect,{get:X,set:J}=U.prototype,Y=`\n'use strict';\n(${createMembraneMarshall$LWS.toString()})`,q=new U;function createConnector$LWS(t){if("function"!=typeof t)throw new V("Missing evaluator function.");let e=Z(X,q,[t]);return void 0===e&&(e=t(Y)(!0),Z(J,q,[t,e])),e}const Q=Symbol.for("@@lockerNearMembraneUndefinedValue"),tt=Array,et=Error,rt=Object,{push:ot}=tt.prototype,{assign:nt}=rt,{apply:at,ownKeys:it}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new et("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:e,redConnector:r,distortionCallback:o,instrumentation:n}=nt({__proto__:null},t);let a,i;const s=e("blue",false,(...t)=>{a=t;},{distortionCallback:o,instrumentation:n}),l=r("red",true,(...t)=>{i=t;}),{0:c,1:u,2:p,3:y,4:f,5:d,6:h,7:b,8:S,9:g,10:v,11:L,12:$,13:P,14:W,15:T,16:w,17:x,18:O,19:_,20:m,21:E,22:B,23:A,24:D,25:H,26:k,27:j,28:C,29:G,30:M,31:I,32:R,33:N}=a,{0:F,1:z,2:K,3:V,4:U,5:Z,6:X,7:J,8:Y,9:q,10:Q,11:tt,12:rt,13:ot,14:at,15:it,16:st,17:lt,18:ct,19:ut,20:pt,21:yt,22:ft,23:dt,24:ht,25:bt,26:St,27:gt,28:vt,29:Lt,30:$t,31:Pt,32:Wt,33:Tt}=i;s(F,z,K,V,U,Z,X,J,Y,q,Q,tt,rt,ot,at,it,st,lt,ct,ut,pt,yt,ft,dt,ht,bt,St,gt,vt,Lt,$t,Pt,Wt,Tt),l(c,u,p,y,f,d,h,b,S,g,v,L,$,P,W,T,w,x,O,_,m,E,B,A,D,H,k,j,C,G,M,I,R,N),this.blueConnector=e,this.blueGlobalThisPointer=c,this.blueGetSelectedTarget=u,this.blueGetTransferableValue=p,this.blueCallableGetPropertyValuePointer=y,this.blueCallableLinkPointers=d,this.redConnector=r,this.redGlobalThisPointer=F,this.redCallableGetPropertyValuePointer=V,this.redCallableEvaluate=U,this.redCallableLinkPointers=Z,this.redCallableSetPrototypeOf=ut,this.redCallableDefineProperties=yt,this.redCallableInstallLazyPropertyDescriptors=St;}evaluate(t){try{const e=this.redCallableEvaluate(t);return "function"==typeof e?(e(),this.blueGetSelectedTarget()):e}catch(t){var e;throw null!=(e=this.blueGetSelectedTarget())?e:t}}lazyRemap(t,e,r){const o=[this.blueGetTransferableValue(t)];at(ot,o,e),null!=r&&r.length&&(o[o.length]=Q,at(ot,o,r)),at(this.redCallableInstallLazyPropertyDescriptors,void 0,o);}link(...t){let e=this.blueGlobalThisPointer,r=this.redGlobalThisPointer;for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];e=this.blueCallableGetPropertyValuePointer(e,n),r=this.redCallableGetPropertyValuePointer(r,n),this.redCallableLinkPointers(r,e),this.blueCallableLinkPointers(e,r);}}remap(t,e){const r=this.blueGetTransferableValue(t),o=it(e),{length:n}=o,a=new tt(1+7*n);a[0]=r;for(let t=0,r=1;t<n;t+=1,r+=7){const n=o[t],i=e[n],s=nt({__proto__:null},i);a[r]=n,a[r+1]="configurable"in s?!!s.configurable:Q,a[r+2]="enumerable"in s?!!s.enumerable:Q,a[r+3]="writable"in s?!!s.writable:Q,a[r+4]="value"in s?this.blueGetTransferableValue(s.value):Q,a[r+5]="get"in s?this.blueGetTransferableValue(s.get):Q,a[r+6]="set"in s?this.blueGetTransferableValue(s.set):Q;}at(this.redCallableDefineProperties,this,a);}remapProto(t,e){const r=this.blueGetTransferableValue(t),o=e?this.blueGetTransferableValue(e):e;this.redCallableSetPrototypeOf(r,o);}}const{includes:st}=Array.prototype,{assign:lt}=Object,{apply:ct,ownKeys:ut}=Reflect,pt=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],yt=["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",...pt];function getFilteredGlobalOwnKeys$LWS(t){const e=[],r=ut(t);for(let t=0,{length:o}=r;t<o;t+=1){const o=r[t];ct(st,yt,[o])||(e[e.length]=o);}return e}const ft=WeakMap,{push:dt}=Array.prototype,{apply:ht,getPrototypeOf:bt,ownKeys:St}=Reflect,{get:gt,set:vt}=ft.prototype,Lt=new ft,$t=(()=>{const{navigator:{userAgent:t,userAgentData:e}}=window,r=null==e?void 0:e.brands;if(Array.isArray(r)&&r.length?r.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){let e=ht(gt,Lt,[t]);if(e)return e;const{document:r,window:o}=t,n=bt(o),a=bt(n),i=bt(a);return e={document:r,DocumentProto:bt(r),window:o,WindowProto:n,WindowPropertiesProto:a,EventTargetProto:i,EventTargetProtoOwnKeys:St(i)},ht(vt,Lt,[t,e]),e}function filterWindowKeys$LWS(t){const e=[];for(let r=0,{length:o}=t;r<o;r+=1){const o=t[r];"document"!==o&&"location "!==o&&"top"!==o&&"window"!==o&&"chrome"!==o&&ht(dt,e,[o]);}return e}getCachedGlobalObjectReferences$LWS(window);const Pt=Object,Wt=TypeError,{prototype:Tt}=Document,{prototype:wt}=Node,{remove:xt,setAttribute:Ot}=Element.prototype,{appendChild:_t}=wt,{assign:mt}=Pt,{__lookupGetter__:Et}=Pt.prototype,{apply:Bt}=Reflect,{close:At,createElement:Dt,open:Ht}=Tt,kt=Bt(Et,Tt,["body"]),jt=Bt(Et,HTMLElement.prototype,["style"]),Ct=Bt(Et,HTMLIFrameElement.prototype,["contentWindow"]),Gt=Bt(Et,wt,["lastChild"]),Mt=document,It=createMembraneMarshall$LWS();let Rt=null;function createIframeVirtualEnvironment$LWS(t,e,r){if("object"!=typeof t)throw new Wt("Missing global object shape.");if("object"!=typeof e||null===e)throw new Wt("Missing global object virtualization target.");const{distortionCallback:o,endowments:n,instrumentation:a,keepAlive:i=!1}=mt({__proto__:null},r),s=function(){const t=Bt(Dt,Mt,["iframe"]),e=Bt(kt,Mt,[])||Bt(Gt,Mt,[]);return Bt(jt,t,[]).display="none",Bt(Ot,t,["sandbox","allow-same-origin allow-scripts"]),Bt(_t,e,[t]),t}(),l=Bt(Ct,s,[]),c=null===t;c&&null===Rt&&(Rt=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(l)));const u=getCachedGlobalObjectReferences$LWS(e),p=new VirtualEnvironment$LWS({blueConnector:It,distortionCallback:o,redConnector:createConnector$LWS(l.eval),instrumentation:a});if(function(t,e){for(let r=0,{length:o}=pt;r<o;r+=1){const o=pt[r],n=e[o];n&&(n.prototype?t.link(o,"prototype"):t.link(o));}}(p,e),"undefined"==typeof globalThis?p.link("window","document"):p.link("document"),p.link("__proto__","__proto__","__proto__"),p.remapProto(u.document,u.DocumentProto),p.lazyRemap(u.window,c?Rt:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(t)),i?void 0:$t),n){const t={};!function(t,e,r=e){if(e){const o=ut(e);for(let e=0,{length:n}=o;e<n;e+=1){const n=o[e];if(!ct(st,yt,[n])){const e=r[n];e&&(t[n]=lt({__proto__:null},e));}}}}(t,n),delete(y=t).document,delete y.location,delete y.top,delete y.window,delete y.chrome,p.remap(u.window,t);}var y;if(p.lazyRemap(u.EventTargetProto,u.EventTargetProtoOwnKeys),i){const{document:t}=l;Bt(Ht,t,[]),Bt(At,t,[]);}else Bt(xt,s,[]);return p}const Nt={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},Ft=new RegExp(`\\breturn\\s*\\[\\s*(["'])${LOCKER_IDENTIFIER_MARKER$LWS}\\1\\s*,\\s*([^,\\s]+)\\s*,\\s*(["'])=\\3\\s*,\\s*([^\\]\\s]+)\\s*\\]`,"g"),zt=new WeakMapCtor$LWS,Kt={__proto__:null};let Vt,Ut;function clearEvalContext$LWS(){const t=Vt;return Vt=void 0,t}function clearEvalHelpers$LWS(){const t=Ut;return Ut=void 0,t}function createSandbox$LWS(i,s,l,c){const u=new WeakMapCtor$LWS(s(window)),p=createIframeVirtualEnvironment$LWS(null,window,{distortionCallback(t){const o=WeakMapGet$LWS(u,t);if(o)return o;if(isWindowLike$LWS(t)&&isWindow$LWS(t)){const e=s(t);for(let t=0,{length:o}=e;t<o;t+=1){const{0:o,1:n}=e[t];WeakMapSet$LWS(u,o,n);}WeakMapSet$LWS(u,t,t);}return t},endowments:ObjectAssign$LWS({},Nt,l?ObjectGetOwnPropertyDescriptors$LWS(l):void 0),keepAlive:!1,instrumentation:c}),y={};setEvalContext$LWS(t=>{ObjectAssign$LWS(y,t({elementToLoadingPromiseMap:zt}));});const f={distortionFactory:s,distortions:u,env:p,helpers:y};return p.evaluate(`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{elementToLoadingPromiseMap:e}=t,r=Promise,o=TypeError,{asyncIterator:n,iterator:a}=Symbol,{[a]:i}=Array.prototype,s=function*(){}.constructor.prototype.prototype,{next:l,throw:c}=s,{delete:u,get:p,set:y}=Map.prototype,{appendChild:f}=Node.prototype,{freeze:d}=Object,{then:h}=r.prototype,b=r.resolve.bind(r),{apply:S,getPrototypeOf:g,setPrototypeOf:v}=Reflect,{get:L,set:$}=WeakMap.prototype,{createElement:P}=Document.prototype,{querySelector:W,setAttribute:T}=Element.prototype,{stopPropagation:w}=Event.prototype,{addEventListener:x}=EventTarget.prototype,O=document,{head:_}=O,m=new Map,E="data-locker-id",B=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;function genStep$LWS(t,e,r,o,n,a,i){let s,l;try{s=S(a,t,[i]),l=s.value;}catch(t){return void r(t)}s.done?e(l):b(l).then(o,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{S(x,t,["load",()=>{e(void 0);}]),S(x,t,["error",t=>{S(w,t,[]),r(`[Locker] resource loader error loading "${o}"`);}]);});return S($,e,[t,n]),S(f,_,[t]),n}return {asyncToGen:function(t,e,o){return new r((r,n)=>{const a=S(t,e,o);function next$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,l,t);}function thrower$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,c,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,i){if(0===e){let e=!1,{[n]:r}=i;if(null==r&&(e=!0,({[a]:r}=i)),"function"!=typeof r)throw new o("Object is not iterable.");return void S(y,m,[t,{iterable:S(r,i,[]),step:void 0,sync:e}])}const s=S(p,m,[t]);if(1===e){const t=s.iterable.next();return s.sync?new r(e=>{s.step=t,e();}):S(h,t,[t=>{s.step=t;}])}if(2===e)return s.step.value;if(3===e){const e=!!s.step.done;return e&&S(u,m,[t]),e}},loadScript:function(t,r){let o=S(W,_,[`script[data-distorted-src='${r}'][data-locker-id='${B}']`]);var n;return o?null!=(n=S(L,e,[o]))?n:b():(o=S(P,O,["script"]),S(T,o,[E,B]),o.type="text/javascript",o.src=r,loadPromise$LWS(o,r))},loadStyle:function(t,r){let o=S(W,_,[`link[href='${r}']`]);var n;return o?null!=(n=S(L,e,[o]))?n:b():(o=S(P,O,["link"]),o.type="text/css",o.rel="stylesheet",o.href=r,loadPromise$LWS(o,r))},namespace:function(t){return d(t)},spreadable:function(t){return v(t,null),t[a]=i,t},super:function(t,e,r,o){const n=g(t.prototype)[e];return S(n,r,o)}}}})`),Kt[i]=f,f}function getSandbox$LWS(t){return Kt[t]}function setEvalContext$LWS(t){Vt=t;}function setEvalHelpers$LWS(t){Ut=t;}function toSource$LWS(t){let e=toString$LWS(t);return "function"==typeof t&&(e=StringMatch$LWS(e,/^[\s\S]+?\{(?:[\t ]*\r?\n)?([\s\S]*?)(?:\r?\n[\t ]*)?\}$/)[1]),e=StringReplace$LWS(e,/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"),e=StringReplace$LWS(e,Ft,(t,e,r,o,n)=>`${r}=${n}`),`'use strict';${e}`}function evaluateInSandbox$LWS(t,e,r,o,n=defaultInstrumentation$LWS,a=!1){const i={sandboxKey:t},s="object"==typeof n&&null!==n&&n.startActivity,l=s("EvaluateInSandboxDuration",i);let c,u=getSandbox$LWS(t);if(void 0===u){isObjectLike$LWS(o)||(o=void 0);const e={__proto__:null,instrumentation:n,sandboxType:SandboxType$LWS.External,verboseInstrumentation:a},distortionFactory$LWS=r=>{const o=s("createExternalDistortionEntries",i),n=createExternalDistortionEntries$LWS(r,t,evaluateInSandbox$LWS,e);return o.stop(),n},r=s("createSandbox",i);u=createSandbox$LWS(t,distortionFactory$LWS,o,a?n:void 0),r.stop();}setEvalContext$LWS(r),setEvalHelpers$LWS(u.helpers);const y=toSource$LWS(e),f=s("externalEvaluatorDuration",i);try{c=u.env.evaluate(y);}catch(e){throw f.error({sandboxKey:t,error:e}),e}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),f.stop();}return l.stop(),c}const Zt="lws-core-sandbox";function evaluateInCoreSandbox$LWS(t,e,r,o,n=defaultInstrumentation$LWS,a=!1){const i={sandboxKey:"lws-core-sandbox"},s="object"==typeof n&&null!==n&&n.startActivity,l=s("EvaluateInCoreSandboxDuration",i);let c,u=getSandbox$LWS("lws-core-sandbox");if(void 0===u){isObjectLike$LWS(o)||(o=void 0);const t={__proto__:null,instrumentation:n,sandboxType:SandboxType$LWS.Internal,verboseInstrumentation:a},distortionFactory$LWS=e=>{const r=s("createInternalDistortionEntries",i),o=createInternalDistortionEntries$LWS(e,"lws-core-sandbox",evaluateInCoreSandbox$LWS,t);return r.stop(),o},e=s("createSandbox",i);u=createSandbox$LWS("lws-core-sandbox",distortionFactory$LWS,o,a?n:void 0),e.stop();}setEvalContext$LWS(r),setEvalHelpers$LWS(u.helpers);const y=toSource$LWS(e),f=s("internalEvaluatorDuration",i);try{c=u.env.evaluate(y);}catch(t){throw f.error({sandboxKey:"lws-core-sandbox",error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),f.stop();}return l.stop(),c}const Xt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const e=100,r=5,o=100,n=o/2,a=/^[0-9]$|^[1-9][0-9]+$/,i="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",s={style:"margin-left:11px; margin-bottom: 3px;"},l={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},c={style:"color: #9d288c; font-weight: bold"},u={style:"color: #b17ab0"},p={style:"color: #16239f"},y={style:"color: #236d25"},M={style:"color: #606367"},I={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",M,`${t}`];if("boolean"==typeof t)return ["span",p,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",p,t]:["span",p,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:r}=e;if(r>o){e=`${StringSlice$LWS(e,0,n)}…${StringSlice$LWS(e,r-n-1,r)}`;}return ["span",I,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},"{…}"]:["span",I,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const n=[],{isChildElement:i}=o;i&&(ArrayPush$LWS(n,["span",c,o.childKey]),ArrayPush$LWS(n,["span",{},": "]));const s=ObjectToString$LWS(t);let l=ObjectKeys$LWS(t);if(s===TO_STRING_BRAND_SYMBOL$LWS)ArrayIncludes$LWS(l,"description")||ArrayUnshift$LWS(l,"description");else if(s===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;l=ArrayFilter$LWS(l,t=>!RegExpTest$LWS(a,t)||+t>=e);}const{length:u}=l;if(ArrayIsArray$LWS(t)){ArrayPush$LWS(n,["span",i?M:{},`(${t.length}) [`]);for(let r=0,o=MathMin$LWS(u,e);r<o;r+=1){const e=t[l[r]];ArrayPush$LWS(n,["span",{},r?", ":""],formatValue$LWS(e));}return u>e&&ArrayPush$LWS(n,["span",null,["span",{},", …"]]),ArrayPush$LWS(n,["span",{},"]"]),n}let d,b="{";switch(s){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=p;s===TO_STRING_BRAND_BIG_INT$LWS?e=y:s===TO_STRING_BRAND_SYMBOL$LWS&&(e=I),b=`${StringSlice$LWS(s,8,-1)} {`,d=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}ArrayPush$LWS(n,["span",{},b]),d&&(ArrayPush$LWS(n,d),u&&ArrayPush$LWS(n,["span",{},", "]));for(let e=0,o=MathMin$LWS(u,r);e<o;e+=1){const r=l[e],o=t[r];ArrayPush$LWS(n,["span",{},e?", ":""],["span",M,r],["span",{},": "],formatValue$LWS(o));}return u>r&&ArrayPush$LWS(n,["span",null,["span",{},", …"]]),ArrayPush$LWS(n,["span",{},"}"]),n},formatBody$LWS=function(t){const e=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ArraySort$LWS(r);const o=[];for(let n=0,{length:a}=r;n<a;n+=1){const a=r[n],i=t[a];if(isObject$LWS(i))ArrayPush$LWS(o,["div",{},["object",{object:i,config:{childKey:StringCtor$LWS(a),isChildElement:!0}}]]);else {let t=c;"symbol"!=typeof a&&ArrayIncludes$LWS(e,a)||(t=u),ArrayPush$LWS(o,["div",s,["span",t,StringCtor$LWS(a)],["span",{},": "],formatValue$LWS(i)]);}}return o};ArrayIsArray$LWS(window.devtoolsFormatters)||ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:[],writable:!0}),ArrayPush$LWS(window.devtoolsFormatters,{header(e,r={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Xt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const o=["div",{style:`${i}${r.isChildElement?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,o,formatHeader$LWS(e,r)),["div",{},o]},hasBody:()=>!0,body(t){const e=["div",l];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}});}
7956
+ 1}`.includes("*");let v=LOCKER_UNMINIFIED_FLAG$LWS&&void 0;const L="function"==typeof BigInt,{assign:P,defineProperties:$,freeze:W,getOwnPropertyDescriptor:T,getOwnPropertyDescriptors:w,isFrozen:_,isSealed:m,prototype:x,seal:O}=n,{__defineGetter__:E,__defineSetter__:B,__lookupGetter__:A,__lookupSetter__:k,hasOwnProperty:H,propertyIsEnumerable:j,toString:D}=x,{apply:C,construct:G,defineProperty:I,deleteProperty:M,get:R,getOwnPropertyDescriptor:N,getPrototypeOf:F,has:z,isExtensible:K,ownKeys:U,preventExtensions:Z,set:X,setPrototypeOf:J}=i,{isArray:Y}=e,{includes:q,indexOf:Q,slice:tt}=e.prototype,{isView:et}=r,rt=C(A,r.prototype,["byteLength"]),ot=L?BigInt.prototype.valueOf:void 0,{valueOf:nt}=Boolean.prototype,{toString:at}=o.prototype,{bind:it}=Function.prototype,{stringify:lt}=JSON,{valueOf:st}=Number.prototype,{revocable:ct}=a,{prototype:ut}=l,{exec:pt,test:yt,toString:ft}=ut,dt=C(A,ut,["flags"])||function(){const t=C(ft,this,[]);return C(pt,f,[t])[0]},ht=C(A,ut,["source"]),{replace:bt,slice:gt,valueOf:St}=String.prototype,{valueOf:vt}=s.prototype,{get:Lt,set:Pt}=u.prototype,$t=console,{info:Wt}=$t,Tt=eval,wt="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||(I(x,"globalThis",{__proto__:null,configurable:!0,get(){return M(x,"globalThis"),this||self}}),globalThis);let _t=!1,mt=!1;const xt=new l(`${C(bt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`),Ot={__proto__:null};function getUnforgeableGlobalThisGetter$LWS(t){let e=Ot[t];return void 0===e&&(e=C(it,()=>wt,[]),Ot[t]=e),e}function identity$LWS(t){return t}const Et=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(_t)return;_t=!0;const t=(()=>{var t;o.prepareStackTrace=(t,e)=>e;const e=(new o).stack;return delete o.prepareStackTrace,Y(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:r,toString:n}=t.prototype;o.prepareStackTrace=function(t,o){return function(t,o){let a="";try{a=C(at,t,[]);}catch(t){a="<error>";}let i=!1;for(let t=0,{length:l}=o;t<l;t+=1){const l=o[t],s=C(r,l,[]);let c=!1;if("string"==typeof s&&"eval"!==s&&C(yt,xt,[s])&&(c=!0),!c){const t=C(e,l,[]);"string"==typeof t&&C(yt,xt,[t])&&(c=!0);}if(c)i||(i=!0,a+="\n at LWS");else {i=!1;try{a+=`\n at ${C(n,l,[])}`;}catch(t){}}}return a}(t,o)};const{stackTraceLimit:a}=o;("number"!=typeof a||a<20)&&(o.stackTraceLimit=20);}:()=>{};function serializeBigIntObject$LWS(t){return C(ot,t,[])}function serializeBooleanObject$LWS(t){return C(nt,t,[])}function serializeNumberObject$LWS(t){return C(st,t,[])}function serializeRegExp$LWS(t){if(t!==ut){const e=C(ht,t,[]);return lt({__proto__:null,flags:C(dt,t,[]),source:e})}}function serializeStringObject$LWS(t){return C(St,t,[])}function serializeSymbolObject$LWS(t){return C(vt,t,[])}function serializeTarget$LWS(t){try{return z(t,y)?function(t){try{return serializeSymbolObject$LWS(t)}catch(t){}if(L)try{return serializeBigIntObject$LWS(t)}catch(t){}try{return serializeBooleanObject$LWS(t)}catch(t){}try{return serializeNumberObject$LWS(t)}catch(t){}try{return serializeRegExp$LWS(t)}catch(t){}try{return serializeStringObject$LWS(t)}catch(t){}return}(t):function(t){switch(C(D,t,[])){case"[object Boolean]":return serializeBooleanObject$LWS(t);case"[object Number]":return serializeNumberObject$LWS(t);case"[object RegExp]":return serializeRegExp$LWS(t);case"[object String]":return serializeStringObject$LWS(t);case"[object Object]":try{return serializeSymbolObject$LWS(t)}catch(t){}if(L)try{return serializeBigIntObject$LWS(t)}catch(t){}default:return}}(t)}catch(t){}}return function(r,o,l,s){const{distortionCallback:p=identity$LWS,instrumentation:f}=P({__proto__:null},s),L="object"==typeof f&&null!==f,ot={__proto__:null,0:void 0,1:void 0,2:void 0,n:void 0},nt={__proto__:null,0:void 0,1:void 0,2:void 0,n:void 0},at=new u,it=L?f.startActivity:void 0;let lt,st,pt,yt,ft,dt,bt,St,vt,_t,xt,Ot,Bt,At,kt,Ht,jt,Dt,Ct,Gt,It,Mt,Rt,Nt,Ft,zt,Kt,Vt=0,Ut=!1;function activateLazyOwnPropertyDefinition$LWS(t,e,r){let o;delete r[e],L&&(o=it("callableGetOwnPropertyDescriptor"));const n=getTransferablePointer$LWS(t);let a;try{bt(n,e,(t,e,r,o,n,i,l)=>{a=createDescriptorFromMeta$LWS(e,r,o,n,i,l);});}catch(t){var i;const e=null!=(i=Kt)?i:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}a?I(t,e,a):delete t[e];}function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let r,o;L&&(r=it("callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors"));try{o=Nt(t,(...t)=>{const r={};for(let e=0,{length:o}=t;e<o;e+=7){r[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}$(e,r);});}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}let a=o;"function"==typeof o&&(o(),a=Kt,Kt=void 0),J(e,a);}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithZeroOrMoreArgs":"callableConstructWithZeroOrMoreArgs",o=e?ot:nt,n=e?st:pt;return function(a,i,l){Vt=t;const s=e?l:i,{length:c}=s;var u;if(0!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,l]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:l;try{const t=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f);let e=t;return "function"==typeof t&&(t(),e=Kt,Kt=void 0),e}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithOneOrMoreArgs":"callableConstructWithOneOrMoreArgs",o=e?ot:nt,n=e?st:pt;return function(a,i,l){Vt=t;const s=e?l:i,{length:c}=s;var u;if(1!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,l]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:l;try{const{0:t}=s,e=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t);let r=e;return "function"==typeof e&&(e(),r=Kt,Kt=void 0),r}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,r=e?"callableApplyWithTwoOrMoreArgs":"callableConstructWithTwoOrMoreArgs",o=e?ot:nt,n=e?st:pt;return function(a,i,l){Vt=t;const s=e?l:i,{length:c}=s;var u;if(2!==c)return C(null!=(u=o[c])?u:o.n,this,[a,i,l]);let p;L&&(p=it(r));const{foreignTargetPointer:y}=this,f=e?i:l;try{const{0:t,1:e}=s,r=n(y,"object"==typeof f&&null!==f||"function"==typeof f?getTransferablePointer$LWS(f):void 0===f?void 0:f,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e);let o=r;return "function"==typeof r&&(r(),o=Kt,Kt=void 0),o}catch(t){var d;const e=null!=(d=Kt)?d:t;throw Kt=void 0,L&&p.error(e),e}finally{L&&p.stop();}}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,r=e?"callableApplyWithAnyNumberOfArgs":"callableConstructWithAnyNumberOfArgs",o=e?st:pt;return function(n,a,i){let l;Vt=t,L&&(l=it(r));const{foreignTargetPointer:s}=this,c=e?i:a,u=e?a:i;try{const t=[s,"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):void 0===u?void 0:u],{length:e}=c,{length:r}=t;t.length+=e;for(let o=0;o<e;o+=1){const e=c[o];t[r+o]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e;}const n=C(o,void 0,t);let a=n;return "function"==typeof n&&(n(),a=Kt,Kt=void 0),a}catch(t){var p;const e=null!=(p=Kt)?p:t;throw Kt=void 0,L&&l.error(e),e}finally{L&&l.stop();}}}function createDescriptorFromMeta$LWS(t,e,r,o,n,a){const i={__proto__:null};if(t!==S&&(i.configurable=t),e!==S&&(i.enumerable=e),r!==S&&(i.writable=r),n!==S){let t=n;"function"==typeof n&&(n(),t=Kt,Kt=void 0),i.get=t;}if(a!==S){let t=a;"function"==typeof a&&(a(),t=Kt,Kt=void 0),i.set=t;}if(o!==S){let t=o;"function"==typeof o&&(o(),t=Kt,Kt=void 0),i.value=t;}return i}function createLazyPropertyDescriptor$LWS(t,e,r){return {__proto__:null,configurable:!0,get:()=>(activateLazyOwnPropertyDefinition$LWS(t,e,r),R(t,e)),set(o){activateLazyOwnPropertyDefinition$LWS(t,e,r),X(t,e,o);}}}function createPointer$LWS(t){return ()=>{Kt=t;}}const Zt=LOCKER_UNMINIFIED_FLAG$LWS?(...e)=>{if(!t&&void 0===v&&(v=C(H,wt,[d]),v))try{Et(),Ct();}catch(t){}if(v){for(let t=0,{length:r}=e;t<r;t+=1){const r=e[t];"function"==typeof r&&(r(),e[t]=Kt,Kt=void 0);}try{C(Wt,$t,e);}catch(t){}return !0}return !1}:()=>!1;function getTransferablePointer$LWS(t){let e=C(Lt,at,[t]);if(e)return e;const r=p(t);if(r!==t&&typeof r!=typeof t)throw new c(`Invalid distortion ${t}.`);let o,n=8;try{Y(r)&&(n=1);}catch(t){n=16;}if("function"==typeof r){n=2;try{"prototype"in r||(n|=4);const e=N(t,"length");if(e){const t=e;J(t,null);const{value:r}=t;"number"==typeof r&&(o=r);}}catch(t){}}return e=lt(createPointer$LWS(r),n,o,undefined),C(Pt,at,[t,e]),e}function lockShadowTarget$LWS(t,e){copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(e,t),Z(t);}function lookupForeignDescriptor$LWS(t,e,r){let o,n,a;L&&(o=it("callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor"));try{n=zt(t,r,(t,o,n,i,l,s,c)=>{a=createDescriptorFromMeta$LWS(o,n,i,l,s,c),!1===a.configurable&&I(e,r,a);});}catch(t){var i;const e=null!=(i=Kt)?i:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}if(a)return a;let l=n;for("function"==typeof n&&(n(),l=Kt,Kt=void 0);l;){const t=N(l,r);if(t)return a=t,J(a,null),a;l=F(l);}}function pushErrorAcrossBoundary$LWS(t){if("object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t)();}return t}class BoundaryProxyHandler$LWS{constructor(t,e,n,a){let i;this.color=r,this.foreignTargetTraits=0;const l=1&e,s=2&e;i=s?4&e?()=>{}:function(){}:l?[]:{};const{proxy:c,revoke:u}=ct(i,this);var p,y;(this.foreignTargetPointer=t,this.foreignTargetTraits=e,this.nonConfigurableDescriptorCallback=(t,e,r,o,n,a,i)=>{I(this.shadowTarget,t,createDescriptorFromMeta$LWS(e,r,o,n,a,i));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.shadowTarget=i,this.staticToStringTag=void 0,s)&&(this.apply=null!=(p=ot[n])?p:ot.n,this.construct=null!=(y=nt[n])?y:nt.n);if(this.defineProperty=BoundaryProxyHandler$LWS.defaultDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.defaultDeletePropertyTrap,this.isExtensible=BoundaryProxyHandler$LWS.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap,this.get=BoundaryProxyHandler$LWS.defaultGetTrap,this.has=BoundaryProxyHandler$LWS.defaultHasTrap,this.ownKeys=BoundaryProxyHandler$LWS.defaultOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap,this.set=BoundaryProxyHandler$LWS.defaultSetTrap,16&e&&u(),o)l&&this.makeProxyLive();else {if(8&e){let t=S;C(E,this,["serializedValue",()=>(t===S&&(t=Mt(this.foreignTargetPointer)),t)]);}W(this);}}makeProxyLive(){this.deleteProperty=BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,this.defineProperty=BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,this.preventExtensions=BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.passthruSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,W(this);}makeProxyStatic(){this.defineProperty=BoundaryProxyHandler$LWS.staticDefinePropertyTrap,this.deleteProperty=BoundaryProxyHandler$LWS.staticDeletePropertyTrap,this.get=BoundaryProxyHandler$LWS.staticGetTrap,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap,this.has=BoundaryProxyHandler$LWS.staticHasTrap,this.isExtensible=BoundaryProxyHandler$LWS.staticIsExtensibleTrap,this.ownKeys=BoundaryProxyHandler$LWS.staticOwnKeysTrap,this.preventExtensions=BoundaryProxyHandler$LWS.staticPreventExtensionsTrap,this.set=BoundaryProxyHandler$LWS.staticSetTrap,this.setPrototypeOf=BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap;const{foreignTargetPointer:t,shadowTarget:e}=this;let r;{let e;if(L&&(e=it("callableGetTargetIntegrityTraits")),r=jt(t),L&&e.stop(),8&r)return W(this),void this.revoke()}try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e);}catch(e){let r;L&&(r=it("callableIsTargetRevoked"));const o=It(t);if(L&&r.stop(),o)return W(this),void this.revoke()}if(8&this.foreignTargetTraits&&!z(e,y)){let e;L&&(e=it("callableGetToStringTagOfTarget"));let r="Object";try{r=Dt(t);}catch(t){}L&&e.stop(),"Object"!==r&&(this.staticToStringTag=r);}4&r?W(e):2&r?O(e):1&r?Z(e):!1!==v&&(v=kt("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),W(this);}makeProxyUnambiguous(){let t;L&&(t=it("callableIsTargetLive"));const e=Gt(this.foreignTargetPointer);L&&t.stop(),e?this.makeProxyLive():this.makeProxyStatic();}static hybridGetTrap(t,e,r){const{foreignTargetPointer:o,shadowTarget:n}=this,a=lookupForeignDescriptor$LWS(o,n,e);if(a){const{get:t,value:e}=a;return t?C(t,r,[]):e}if(e===y&&8&this.foreignTargetTraits){let t,e;L&&(t=it("callableGetToStringTagOfTarget"));try{e=Dt(o);}catch(e){var i;const r=null!=(i=Kt)?i:e;throw Kt=void 0,L&&t.error(r),r}finally{L&&t.stop();}if("Object"!==e)return e}}static hybridHasTrap(t,e){let r,o;L&&(r=it("callableBatchGetPrototypeOfWhenHasNoOwnProperty"));try{o=Ft(this.foreignTargetPointer,e);}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}if(!0===o)return !0;let a=o;for("function"==typeof o&&(o(),a=Kt,Kt=void 0);a;){if(C(H,a,[e]))return !0;a=F(a);}return !1}static passthruDefinePropertyTrap(t,e,r){let o;Vt=4,L&&(o=it("callableDefineProperty"));const n=P({__proto__:null},r),{value:a,get:i,set:l}=n,s="value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S,c="get"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):void 0===i?void 0:i:S,u="set"in n?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):void 0===l?void 0:l:S;try{return yt(this.foreignTargetPointer,e,"configurable"in n?!!n.configurable:S,"enumerable"in n?!!n.enumerable:S,"writable"in n?!!n.writable:S,s,c,u,this.nonConfigurableDescriptorCallback)}catch(t){var p;const e=null!=(p=Kt)?p:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}}static passthruDeletePropertyTrap(t,e){let r;Vt=8,L&&(r=it("callableDeleteProperty"));try{return ft(this.foreignTargetPointer,e)}catch(t){var o;const e=null!=(o=Kt)?o:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}}static passthruGetTrap(t,e,r){if(Ut&&(Ut=128===Vt),Vt=16,Ut){if(e===g)return !0;if(e===b)return this.serializedValue}let o;L&&(o=it("callableGet"));const n="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):void 0===r?void 0:r;try{const t=dt(this.foreignTargetPointer,this.foreignTargetTraits,e,n);let r=t;return "function"==typeof t&&(t(),r=Kt,Kt=void 0),r}catch(t){var a;const e=null!=(a=Kt)?a:t;throw Kt=void 0,L&&o.error(e),e}finally{L&&o.stop();}}static passthruGetPrototypeOfTrap(t){let e,r;Vt=64,L&&(e=it("callableGetPrototypeOf"));try{r=St(this.foreignTargetPointer);}catch(t){var o;const r=null!=(o=Kt)?o:t;throw Kt=void 0,L&&e.error(r),r}finally{L&&e.stop();}let n=r;return "function"==typeof r&&(r(),n=Kt,Kt=void 0),n}static passthruHasTrap(t,e){let r,o;Vt=128,L&&(r=it("callableHas"));try{o=vt(this.foreignTargetPointer,e);}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}return Ut=!o&&(e===g||e===b),o}static passthruIsExtensibleTrap(t){Vt=256;const{shadowTarget:e}=this;if(K(e)){let t;L&&(t=it("callableIsExtensible"));const{foreignTargetPointer:o}=this;try{if(_t(o))return !0}catch(e){var r;const o=null!=(r=Kt)?r:e;throw Kt=void 0,L&&t.error(o),o}finally{L&&t.stop();}lockShadowTarget$LWS(e,o);}return !1}static passthruOwnKeysTrap(t){let e,r;Vt=512,L&&(e=it("callableOwnKeys"));try{xt(this.foreignTargetPointer,(...t)=>{r=t;});}catch(t){var o;const r=null!=(o=Kt)?o:t;throw Kt=void 0,L&&e.error(r),r}finally{L&&e.stop();}return r||[]}static passthruGetOwnPropertyDescriptorTrap(t,e){let r,o;Vt=32,L&&(r=it("callableGetOwnPropertyDescriptor"));try{bt(this.foreignTargetPointer,e,(t,r,n,a,i,l,s)=>{o=createDescriptorFromMeta$LWS(r,n,a,i,l,s),!1===o.configurable&&I(this.shadowTarget,e,o);});}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}return o}static passthruPreventExtensionsTrap(t){Vt=1024;const{shadowTarget:e}=this;if(K(e)){let t;L&&(t=it("callablePreventExtensions"));const{foreignTargetPointer:o}=this;let n;try{n=Ot(o);}catch(e){var r;const o=null!=(r=Kt)?r:e;throw Kt=void 0,L&&t.error(o),o}finally{L&&t.stop();}if(2&n)return 1&n||lockShadowTarget$LWS(e,o),!1;lockShadowTarget$LWS(e,o);}return !0}static passthruSetPrototypeOfTrap(t,e){let r;Vt=4096,L&&(r=it("callableSetPrototypeOf"));const o=e?getTransferablePointer$LWS(e):e;try{return At(this.foreignTargetPointer,o)}catch(t){var n;const e=null!=(n=Kt)?n:t;throw Kt=void 0,L&&r.error(e),e}finally{L&&r.stop();}}static passthruSetTrap(t,e,r,o){Vt=2048;const{foreignTargetPointer:n}=this;return this.proxy===o?function(t,e,r,o){let n;L&&(n=it("callableSet"));const a="object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):void 0===r?void 0:r,i=getTransferablePointer$LWS(o);try{return Bt(t,e,a,i)}catch(t){var l;const e=null!=(l=Kt)?l:t;throw Kt=void 0,L&&n.error(e),e}finally{L&&n.stop();}}(n,e,r,o):function(t,e,r,o,n){const a=lookupForeignDescriptor$LWS(t,e,r);if(a){if("get"in a||"set"in a){const{set:t}=a;return !!t&&(C(t,n,[o]),!0)}if(!1===a.writable)return !1}let i;if(null===n||"function"!=typeof n&&"object"!=typeof n)return !1;const l=N(n,r);return l&&(i=l,J(i,null)),i?!("get"in i)&&!("set"in i)&&!1!==i.writable&&(I(n,r,{__proto__:null,value:o}),!0):I(n,r,{__proto__:null,configurable:!0,enumerable:!0,value:o,writable:!0})}(n,this.shadowTarget,e,r,o)}static pendingDefinePropertyTrap(t,e,r){return this.makeProxyUnambiguous(),this.defineProperty(t,e,r)}static pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(),this.deleteProperty(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(),this.preventExtensions(t)}static pendingSetPrototypeOfTrap(t,e){return this.makeProxyUnambiguous(),this.setPrototypeOf(t,e)}static pendingSetTrap(t,e,r,o){return this.makeProxyUnambiguous(),this.set(t,e,r,o)}static staticGetTrap(t,e,r){const{shadowTarget:o}=this,n=R(o,e,r);return void 0===n&&e===y&&8&this.foreignTargetTraits&&!z(o,e)?this.staticToStringTag:n}}return BoundaryProxyHandler$LWS.defaultDefinePropertyTrap=o?BoundaryProxyHandler$LWS.pendingDefinePropertyTrap:BoundaryProxyHandler$LWS.passthruDefinePropertyTrap,BoundaryProxyHandler$LWS.defaultDeletePropertyTrap=o?BoundaryProxyHandler$LWS.pendingDeletePropertyTrap:BoundaryProxyHandler$LWS.passthruDeletePropertyTrap,BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap=BoundaryProxyHandler$LWS.passthruGetOwnPropertyDescriptorTrap,BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap=BoundaryProxyHandler$LWS.passthruGetPrototypeOfTrap,BoundaryProxyHandler$LWS.defaultGetTrap=o?BoundaryProxyHandler$LWS.hybridGetTrap:BoundaryProxyHandler$LWS.passthruGetTrap,BoundaryProxyHandler$LWS.defaultHasTrap=o?BoundaryProxyHandler$LWS.hybridHasTrap:BoundaryProxyHandler$LWS.passthruHasTrap,BoundaryProxyHandler$LWS.defaultIsExtensibleTrap=BoundaryProxyHandler$LWS.passthruIsExtensibleTrap,BoundaryProxyHandler$LWS.defaultOwnKeysTrap=BoundaryProxyHandler$LWS.passthruOwnKeysTrap,BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap=o?BoundaryProxyHandler$LWS.pendingPreventExtensionsTrap:BoundaryProxyHandler$LWS.passthruPreventExtensionsTrap,BoundaryProxyHandler$LWS.defaultSetTrap=o?BoundaryProxyHandler$LWS.pendingSetTrap:BoundaryProxyHandler$LWS.passthruSetTrap,BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap=o?BoundaryProxyHandler$LWS.pendingSetPrototypeOfTrap:BoundaryProxyHandler$LWS.passthruSetPrototypeOfTrap,BoundaryProxyHandler$LWS.staticDefinePropertyTrap=I,BoundaryProxyHandler$LWS.staticDeletePropertyTrap=M,BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap=N,BoundaryProxyHandler$LWS.staticGetPrototypeOfTrap=F,BoundaryProxyHandler$LWS.staticHasTrap=z,BoundaryProxyHandler$LWS.staticIsExtensibleTrap=K,BoundaryProxyHandler$LWS.staticOwnKeysTrap=U,BoundaryProxyHandler$LWS.staticPreventExtensionsTrap=Z,BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap=J,BoundaryProxyHandler$LWS.staticSetTrap=X,J(BoundaryProxyHandler$LWS.prototype,null),W(BoundaryProxyHandler$LWS.prototype),l(createPointer$LWS(wt),()=>{const t=Kt;return Kt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):void 0===t?void 0:t,(t,e)=>{t();const r=Kt;return Kt=void 0,createPointer$LWS(null==r?void 0:r[e])},t=>{try{const e=Tt(t);return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):void 0===e?void 0:e}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;Kt=void 0,("object"==typeof r&&null!==r||"function"==typeof r)&&C(Pt,at,[r,e]);},(t,e,r,o)=>{const{proxy:n}=new BoundaryProxyHandler$LWS(t,e,r,o);return C(Pt,at,[n,t]),createPointer$LWS(n)},(t,e,...r)=>{t();const o=Kt;Kt=void 0;let n,a=e;"function"==typeof e&&(e(),a=Kt,Kt=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Kt,Kt=void 0);}try{n=C(o,a,r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n},(t,e,...r)=>{t();const o=Kt;Kt=void 0;let n,a=e;"function"==typeof e&&(e(),a=Kt,Kt=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Kt,Kt=void 0);}try{n=G(o,r,a);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n},(t,e,r,o,n,a,i,l,s)=>{t();const c=Kt;Kt=void 0;let u=!1;try{u=I(c,e,createDescriptorFromMeta$LWS(r,o,n,a,i,l));}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(u&&!1===r){let t;try{t=N(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&C(H,t,["configurable"])&&!1===t.configurable){const r=P({__proto__:null},t),{value:o,get:n,set:a}=r;s(e,"configurable"in r?r.configurable:S,"enumerable"in r?r.enumerable:S,"writable"in r?r.writable:S,"value"in r?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):void 0===o?void 0:o:S,"get"in r?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):void 0===n?void 0:n:S,"set"in r?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S);}}return u},(t,e)=>{t();const r=Kt;Kt=void 0;try{return M(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,r,o)=>{t();const n=Kt;Kt=void 0;let a,i=o;"function"==typeof o&&(o(),i=Kt,Kt=void 0);try{a=R(n,r,i);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof a&&null!==a||"function"==typeof a)return getTransferablePointer$LWS(a);if(a=void 0===a?void 0:a,void 0===a&&r===y&&8&e)try{if(!z(n,r)){const t=C(D,n,[]);"[object Object]"!==t&&(a=C(gt,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return a},(t,e,r)=>{t();const o=Kt;let n;Kt=void 0;try{n=N(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){const t=P({__proto__:null},n),{value:o,get:a,set:i}=t;r(e,"configurable"in t?t.configurable:S,"enumerable"in t?t.enumerable:S,"writable"in t?t.writable:S,"value"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):void 0===o?void 0:o:S,"get"in t?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S,"set"in t?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):void 0===i?void 0:i:S);}},t=>{t();const e=Kt;let r;Kt=void 0;try{r=F(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return r?getTransferablePointer$LWS(r):r},(t,e)=>{t();const r=Kt;Kt=void 0;try{return z(r,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=Kt;Kt=void 0;try{return K(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;let o;Kt=void 0;try{o=U(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}C(e,void 0,o);},t=>{t();const e=Kt;Kt=void 0;let r=2;try{Z(e)&&(r=4);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return 2&r&&K(e)&&(r|=1),r},(t,e,r,o)=>{t();const n=Kt;Kt=void 0;let a=r;"function"==typeof r&&(r(),a=Kt,Kt=void 0);let i=o;"function"==typeof o&&(o(),i=Kt,Kt=void 0);try{return X(n,e,a,i)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const r=Kt;Kt=void 0;let o=e;"function"==typeof e&&(e(),o=Kt,Kt=void 0);try{return J(r,o)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Zt,(t,...e)=>{t();const r=Kt;Kt=void 0;for(let t=0,{length:o}=e;t<o;t+=7)I(r,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));},t=>{t();const e=Kt;let r;Kt=void 0;try{r=function(t){return V.get(t)}(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return r?getTransferablePointer$LWS(r):r},t=>{t();const e=Kt;Kt=void 0;try{if(!K(e))return _(e)||m(e)?0:1}catch(t){try{Y(e);}catch(t){return 8}}return 0},t=>{t();const e=Kt;Kt=void 0;try{const t=C(D,e,[]);return "[object Object]"===t?"Object":C(gt,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Et,(e,...r)=>{if(!t)return;const o=C(Q,r,[S]);let l,s;-1===o?l=r:(l=C(tt,r,[0,o]),s=C(tt,r,[o+1])),e();const c=Kt;Kt=void 0;const u=getTransferablePointer$LWS(c),p=Ht(u);let y=p;"function"==typeof p&&(p(),y=Kt,Kt=void 0),void 0===y&&(y={__proto__:null},Rt(u,getTransferablePointer$LWS(y)));for(let t=0,{length:e}=l;t<e;t+=1){const e=l[t];y[e]=!0,I(c,e,createLazyPropertyDescriptor$LWS(c,e,y));}!function(t){if(mt)return;mt=!0;const e=Y(t)&&t.length>0,r=e?(e,r)=>C(q,t,[r])?{configurable:!1,enumerable:C(j,e,[r]),get:getUnforgeableGlobalThisGetter$LWS(r),set:void 0}:N(e,r):void 0,o=e?(e,r)=>C(q,t,[r])?getUnforgeableGlobalThisGetter$LWS(r):C(A,e,[r]):void 0,l=e?(e,r)=>C(q,t,[r])?void 0:C(k,e,[r]):void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,r=2===e;return new a(t,{apply(o,n,a){if(a.length>=e){var i;const t=r?n:a[0],e=r?a[0]:a[1],o=Ht(getTransferablePointer$LWS(t));let l=o;"function"==typeof o&&(o(),l=Kt,Kt=void 0),null!=(i=l)&&i[e]&&R(t,e);}return C(t,n,a)}})},wrapLookupAccessor$LWS=(t,r)=>new a(t,{apply(o,n,a){if(a.length){var i;const{0:t}=a,o=Ht(getTransferablePointer$LWS(n));let l=o;if("function"==typeof o&&(o(),l=Kt,Kt=void 0),null!=(i=l)&&i[t]&&R(n,t),e&&n===wt)return r(n,t)}return C(t,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new a(t,{apply(o,n,a){if(a.length>1){var i;const{0:t,1:o}=a,n=Ht(getTransferablePointer$LWS(t));let l=n;if("function"==typeof n&&(n(),l=Kt,Kt=void 0),null!=(i=l)&&i[o]&&R(t,o),e&&t===wt)return r(t,o)}return C(t,n,a)}});var s;i.defineProperty=wrapDefineAccessOrProperty$LWS(I),i.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(N),n.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(T),n.getOwnPropertyDescriptors=new a(s=w,{apply(t,o,n){if(!n.length)return C(s,o,n);const{0:a}=n,i=Ht(getTransferablePointer$LWS(a));let l=i;"function"==typeof i&&(i(),l=Kt,Kt=void 0);const c=a===wt&&e,u=c?{}:C(s,o,n);if(!c&&void 0===l)return u;const p=U(c?a:u);for(let t=0,{length:e}=p;t<e;t+=1){var y;const e=p[t],o=!(null==(y=l)||!y[e]);if(o&&R(a,e),o||c){const t=c?r(a,e):N(a,e);t?u[e]=t:c||delete u[e];}}return u}}),x.__defineGetter__=wrapDefineAccessOrProperty$LWS(E),x.__defineSetter__=wrapDefineAccessOrProperty$LWS(B),x.__lookupGetter__=wrapLookupAccessor$LWS(A,o),x.__lookupSetter__=wrapLookupAccessor$LWS(k,l);}(s);},t=>{t();const e=Kt;if(Kt=void 0,e===x)return !1;try{if("object"==typeof e){const{constructor:t}=e;if(t===n)return !0;if(null===F(e)&&("function"!=typeof t||t.prototype!==e))return !0;if(et(e))return !0;try{return C(rt,e,[]),!0}catch(t){}try{if(e!==ut)return C(ht,e,[]),!0}catch(t){}}return C(H,e,[h])}catch(t){}return !1},t=>{t();const e=Kt;Kt=void 0;try{return Y(e),!1}catch(t){}return !0},t=>{t();const e=Kt;return Kt=void 0,serializeTarget$LWS(e)},(t,e)=>{t();const r=Kt;Kt=void 0,e();const o=Kt;Kt=void 0;try{!function(t,e){V.set(t,e);}(r,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,r)=>{t();const o=Kt;let n;Kt=void 0;try{n=w(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const a=U(n),{length:i}=a,l=new e(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const r=a[t],o=n[r],i=P({__proto__:null},o),{value:s,get:c,set:u}=i;l[e]=r,l[e+1]="configurable"in i?i.configurable:S,l[e+2]="enumerable"in i?i.enumerable:S,l[e+3]="writable"in i?i.writable:S,l[e+4]="value"in i?"object"==typeof s&&null!==s||"function"==typeof s?getTransferablePointer$LWS(s):void 0===s?void 0:s:S,l[e+5]="get"in i?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):void 0===c?void 0:c:S,l[e+6]="set"in i?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):void 0===u?void 0:u:S;}let s;C(r,void 0,l);try{s=F(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return s?getTransferablePointer$LWS(s):s},(t,e)=>{t();const r=Kt;let o;Kt=void 0;try{if(C(H,r,[e]))return !0;o=F(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o?getTransferablePointer$LWS(o):o},(t,e,r)=>{t();const o=Kt;let n,a;Kt=void 0;try{n=N(o,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(!n){try{a=F(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return a?getTransferablePointer$LWS(a):a}{const t=P({__proto__:null},n),{value:o,get:a,set:i}=t;r(e,"configurable"in t?t.configurable:S,"enumerable"in t?t.enumerable:S,"writable"in t?t.writable:S,"value"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):void 0===o?void 0:o:S,"get"in t?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):void 0===a?void 0:a:S,"set"in t?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):void 0===i?void 0:i:S);}}),(...t)=>{const{6:e,7:r,8:o,9:n,10:a,11:i,12:l,13:s,14:c,15:u,16:p,17:y,18:f,19:d,20:h,22:b,23:g,24:S,25:v,27:L,28:P,29:$,30:W,31:T,32:w,33:_}=t;lt=e,st=r,pt=o,yt=n,ft=a,dt=i,bt=l,St=s,vt=c,_t=u,xt=p,Ot=y,Bt=f,At=d,kt=h,Ht=b,jt=g,Dt=S,Ct=v,Gt=L,It=P,Mt=$,Rt=W,Nt=T,Ft=w,zt=_,ot[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),ot[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),ot[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),ot.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),nt[0]=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),nt[1]=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),nt[2]=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),nt.n=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2);}}}const U=TypeError,Z=WeakMap,{apply:X}=Reflect,{get:J,set:Y}=Z.prototype,q=`\n'use strict';\n(${createMembraneMarshall$LWS.toString()})`,Q=new Z;function createConnector$LWS(t){if("function"!=typeof t)throw new U("Missing evaluator function.");let e=X(J,Q,[t]);return void 0===e&&(e=t(q)(!0),X(Y,Q,[t,e])),e}const tt=Symbol.for("@@lockerNearMembraneUndefinedValue"),et=Array,rt=Error,ot=Object,{push:nt}=et.prototype,{assign:at}=ot,{apply:it,ownKeys:lt}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new rt("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:e,redConnector:r,distortionCallback:o,instrumentation:n}=at({__proto__:null},t);let a,i;const l=e("blue",false,(...t)=>{a=t;},{distortionCallback:o,instrumentation:n}),s=r("red",true,(...t)=>{i=t;}),{0:c,1:u,2:p,3:y,4:f,5:d,6:h,7:b,8:g,9:S,10:v,11:L,12:P,13:$,14:W,15:T,16:w,17:_,18:m,19:x,20:O,21:E,22:B,23:A,24:k,25:H,26:j,27:D,28:C,29:G,30:I,31:M,32:R,33:N}=a,{0:F,1:z,2:K,3:V,4:U,5:Z,6:X,7:J,8:Y,9:q,10:Q,11:tt,12:et,13:ot,14:nt,15:it,16:lt,17:st,18:ct,19:ut,20:pt,21:yt,22:ft,23:dt,24:ht,25:bt,26:gt,27:St,28:vt,29:Lt,30:Pt,31:$t,32:Wt,33:Tt}=i;l(F,z,K,V,U,Z,X,J,Y,q,Q,tt,et,ot,nt,it,lt,st,ct,ut,pt,yt,ft,dt,ht,bt,gt,St,vt,Lt,Pt,$t,Wt,Tt),s(c,u,p,y,f,d,h,b,g,S,v,L,P,$,W,T,w,_,m,x,O,E,B,A,k,H,j,D,C,G,I,M,R,N),this.blueConnector=e,this.blueGlobalThisPointer=c,this.blueGetSelectedTarget=u,this.blueGetTransferableValue=p,this.blueCallableGetPropertyValuePointer=y,this.blueCallableLinkPointers=d,this.redConnector=r,this.redGlobalThisPointer=F,this.redCallableGetPropertyValuePointer=V,this.redCallableEvaluate=U,this.redCallableLinkPointers=Z,this.redCallableSetPrototypeOf=ut,this.redCallableDefineProperties=yt,this.redCallableInstallLazyPropertyDescriptors=gt;}evaluate(t){try{const e=this.redCallableEvaluate(t);return "function"==typeof e?(e(),this.blueGetSelectedTarget()):e}catch(t){var e;throw null!=(e=this.blueGetSelectedTarget())?e:t}}lazyRemap(t,e,r){const o=[this.blueGetTransferableValue(t)];it(nt,o,e),null!=r&&r.length&&(o[o.length]=tt,it(nt,o,r)),it(this.redCallableInstallLazyPropertyDescriptors,void 0,o);}link(...t){let e=this.blueGlobalThisPointer,r=this.redGlobalThisPointer;for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];e=this.blueCallableGetPropertyValuePointer(e,n),r=this.redCallableGetPropertyValuePointer(r,n),this.redCallableLinkPointers(r,e),this.blueCallableLinkPointers(e,r);}}remap(t,e){const r=this.blueGetTransferableValue(t),o=lt(e),{length:n}=o,a=new et(1+7*n);a[0]=r;for(let t=0,r=1;t<n;t+=1,r+=7){const n=o[t],i=e[n],l=at({__proto__:null},i);a[r]=n,a[r+1]="configurable"in l?!!l.configurable:tt,a[r+2]="enumerable"in l?!!l.enumerable:tt,a[r+3]="writable"in l?!!l.writable:tt,a[r+4]="value"in l?this.blueGetTransferableValue(l.value):tt,a[r+5]="get"in l?this.blueGetTransferableValue(l.get):tt,a[r+6]="set"in l?this.blueGetTransferableValue(l.set):tt;}it(this.redCallableDefineProperties,this,a);}remapProto(t,e){const r=this.blueGetTransferableValue(t),o=e?this.blueGetTransferableValue(e):e;this.redCallableSetPrototypeOf(r,o);}}const{includes:st}=Array.prototype,{assign:ct}=Object,{apply:ut,ownKeys:pt}=Reflect,yt=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],ft=["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",...yt];function getFilteredGlobalOwnKeys$LWS(t){const e=[];let r=0;const o=pt(t);for(let t=0,{length:n}=o;t<n;t+=1){const n=o[t];ut(st,ft,[n])||(e[r++]=n);}return e}const dt=WeakMap,{apply:ht,getPrototypeOf:bt,ownKeys:gt}=Reflect,{get:St,set:vt}=dt.prototype,Lt=new dt,Pt=(()=>{const{navigator:{userAgent:t,userAgentData:e}}=window,r=null==e?void 0:e.brands;if(Array.isArray(r)&&r.length?r.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){let e=ht(St,Lt,[t]);if(e)return e;const{document:r,window:o}=t,n=bt(o),a=bt(n),i=bt(a);return e={document:r,DocumentProto:bt(r),window:o,WindowProto:n,WindowPropertiesProto:a,EventTargetProto:i,EventTargetProtoOwnKeys:gt(i)},ht(vt,Lt,[t,e]),e}function filterWindowKeys$LWS(t){const e=[];let r=0;for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(e[r++]=n);}return e}getCachedGlobalObjectReferences$LWS(window);const $t=Object,Wt=TypeError,{prototype:Tt}=Document,{prototype:wt}=Node,{remove:_t,setAttribute:mt}=Element.prototype,{appendChild:xt}=wt,{assign:Ot}=$t,{__lookupGetter__:Et}=$t.prototype,{apply:Bt}=Reflect,{close:At,createElement:kt,open:Ht}=Tt,jt=Bt(Et,Tt,["body"]),Dt=Bt(Et,HTMLElement.prototype,["style"]),Ct=Bt(Et,HTMLIFrameElement.prototype,["contentWindow"]),Gt=Bt(Et,wt,["lastChild"]),It=document,Mt=createMembraneMarshall$LWS();let Rt=null;function createIframeVirtualEnvironment$LWS(t,e,r){if("object"!=typeof t)throw new Wt("Missing global object shape.");if("object"!=typeof e||null===e)throw new Wt("Missing global object virtualization target.");const{distortionCallback:o,endowments:n,instrumentation:a,keepAlive:i=!1}=Ot({__proto__:null},r),l=function(){const t=Bt(kt,It,["iframe"]),e=Bt(jt,It,[])||Bt(Gt,It,[]);return Bt(Dt,t,[]).display="none",Bt(mt,t,["sandbox","allow-same-origin allow-scripts"]),Bt(xt,e,[t]),t}(),s=Bt(Ct,l,[]),c=null===t;c&&null===Rt&&(Rt=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(s)));const u=getCachedGlobalObjectReferences$LWS(e),p=new VirtualEnvironment$LWS({blueConnector:Mt,distortionCallback:o,redConnector:createConnector$LWS(s.eval),instrumentation:a});if(function(t,e){for(let r=0,{length:o}=yt;r<o;r+=1){const o=yt[r],n=e[o];n&&(n.prototype?t.link(o,"prototype"):t.link(o));}}(p,e),"undefined"==typeof globalThis?p.link("window","document"):p.link("document"),p.link("__proto__","__proto__","__proto__"),p.remapProto(u.document,u.DocumentProto),p.lazyRemap(u.window,c?Rt:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(t)),i?void 0:Pt),n){const t={};!function(t,e,r=e){if(e){const o=pt(e);for(let e=0,{length:n}=o;e<n;e+=1){const n=o[e];if(!ut(st,ft,[n])){const e=r[n];e&&(t[n]=ct({__proto__:null},e));}}}}(t,n),delete(y=t).document,delete y.location,delete y.top,delete y.window,delete y.chrome,p.remap(u.window,t);}var y;if(p.lazyRemap(u.EventTargetProto,u.EventTargetProtoOwnKeys),i){const{document:t}=s;Bt(Ht,t,[]),Bt(At,t,[]);}else Bt(_t,l,[]);return p}const Nt={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},Ft=new RegExp(`\\breturn\\s*\\[\\s*(["'])${LOCKER_IDENTIFIER_MARKER$LWS}\\1\\s*,\\s*([^,\\s]+)\\s*,\\s*(["'])=\\3\\s*,\\s*([^\\]\\s]+)\\s*\\]`,"g"),zt=new WeakMapCtor$LWS,Kt={__proto__:null};let Vt,Ut;function clearEvalContext$LWS(){const t=Vt;return Vt=void 0,t}function clearEvalHelpers$LWS(){const t=Ut;return Ut=void 0,t}function createEvaluateOptionsFromArgs$LWS(t){var o;const{length:n}=t,a=n?t[0]:void 0,i=1===n&&isObjectLike$LWS(a);return ObjectAssign$LWS({__proto__:null,context:n>2?t[2]:void 0,endowments:n>3?t[3]:void 0,instrumentation:null!=(o=n>4?t[4]:void 0)?o:defaultInstrumentation$LWS,key:i?void 0:a,source:n>1?t[1]:void 0,sourceType:"module",verboseInstrumentation:n>5&&t[5]||!1},i?a:void 0)}function createSandbox$LWS(e,l,s,c){const u=new WeakMapCtor$LWS(l(window)),p=createIframeVirtualEnvironment$LWS(null,window,{distortionCallback(t){const e=WeakMapGet$LWS(u,t);if(e)return e;if(isWindowLike$LWS(t)&&isWindow$LWS(t)){const e=l(t);for(let t=0,{length:r}=e;t<r;t+=1){const{0:r,1:o}=e[t];WeakMapSet$LWS(u,r,o);}WeakMapSet$LWS(u,t,t);}return t},endowments:ObjectAssign$LWS({},Nt,s?ObjectGetOwnPropertyDescriptors$LWS(s):void 0),keepAlive:!1,instrumentation:c}),y={};setEvalContext$LWS(t=>{ObjectAssign$LWS(y,t({elementToLoadingPromiseMap:zt}));});const f={distortionFactory:l,distortions:u,env:p,helpers:y};return p.evaluate(`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{elementToLoadingPromiseMap:e}=t,r=Promise,o=TypeError,{asyncIterator:n,iterator:a}=Symbol,{[a]:i}=Array.prototype,l=function*(){}.constructor.prototype.prototype,{next:s,throw:c}=l,{delete:u,get:p,set:y}=Map.prototype,{appendChild:f}=Node.prototype,{freeze:d}=Object,{then:h}=r.prototype,b=r.resolve.bind(r),{apply:g,getPrototypeOf:S,setPrototypeOf:v}=Reflect,{get:L,set:P}=WeakMap.prototype,{createElement:$}=Document.prototype,{querySelector:W,setAttribute:T}=Element.prototype,{stopPropagation:w}=Event.prototype,{addEventListener:_}=EventTarget.prototype,m=document,{head:x}=m,O=new Map,E="data-locker-id",B=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;function genStep$LWS(t,e,r,o,n,a,i){let l,s;try{l=g(a,t,[i]),s=l.value;}catch(t){return void r(t)}l.done?e(s):b(s).then(o,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{g(_,t,["load",()=>{e(void 0);}]),g(_,t,["error",t=>{g(w,t,[]),r(`[Locker] resource loader error loading "${o}"`);}]);});return g(P,e,[t,n]),g(f,x,[t]),n}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,s,t);}function thrower$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,c,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,i){if(0===e){let e=!1,{[n]:r}=i;if(null==r&&(e=!0,({[a]:r}=i)),"function"!=typeof r)throw new o("Object is not iterable.");return void g(y,O,[t,{iterable:g(r,i,[]),step:void 0,sync:e}])}const l=g(p,O,[t]);if(1===e){const t=l.iterable.next();return l.sync?new r(e=>{l.step=t,e();}):g(h,t,[t=>{l.step=t;}])}if(2===e)return l.step.value;if(3===e){const e=!!l.step.done;return e&&g(u,O,[t]),e}},loadScript:function(t,r){let o=g(W,x,[`script[data-distorted-src='${r}'][data-locker-id='${B}']`]);var n;return o?null!=(n=g(L,e,[o]))?n:b():(o=g($,m,["script"]),g(T,o,[E,B]),o.type="text/javascript",o.src=r,loadPromise$LWS(o,r))},loadStyle:function(t,r){let o=g(W,x,[`link[href='${r}']`]);var n;return o?null!=(n=g(L,e,[o]))?n:b():(o=g($,m,["link"]),o.type="text/css",o.rel="stylesheet",o.href=r,loadPromise$LWS(o,r))},namespace:function(t){return d(t)},spreadable:function(t){return v(t,null),t[a]=i,t},super:function(t,e,r,o){const n=S(t.prototype)[e];return g(n,r,o)}}}})`),Kt[e]=f,f}function getSandbox$LWS(t){return Kt[t]}function setEvalContext$LWS(t){Vt=t;}function setEvalHelpers$LWS(t){Ut=t;}function toSource$LWS(t,e){const{sourceType:o="module"}=ObjectAssign$LWS({__proto__:null},e);let n=toString$LWS(t);return "function"==typeof t&&(n=StringMatch$LWS(n,/^[\s\S]+?\{(?:[\t ]*\r?\n)?([\s\S]*?)(?:\r?\n[\t ]*)?\}$/)[1]),n=StringReplace$LWS(n,/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"),n=StringReplace$LWS(n,Ft,(t,e,r,o,n)=>`${r}=${n}`),"module"===o&&-1===indexOfPragma$LWS(n,"use strict")?`'use strict';${n}`:n}function evaluateInSandbox$LWS(...t){const{context:e,endowments:r,instrumentation:o,key:n,source:a,sourceType:i,verboseInstrumentation:l}=createEvaluateOptionsFromArgs$LWS(t);if("string"!=typeof n)throw new LockerSecurityError$LWS("Invalid sandbox key.");const s={sandboxKey:n},c="object"==typeof o&&null!==o&&o.startActivity,u=c("EvaluateInSandboxDuration",s);let p,y=getSandbox$LWS(n);if(void 0===y){const t={__proto__:null,instrumentation:o,sandboxType:SandboxType$LWS.External,verboseInstrumentation:l},distortionFactory$LWS=e=>{const r=c("createExternalDistortionEntries",s),o=createExternalDistortionEntries$LWS(e,n,evaluateInSandbox$LWS,t);return r.stop(),o},e=c("createSandbox",s);y=createSandbox$LWS(n,distortionFactory$LWS,r,l?o:void 0),e.stop();}setEvalContext$LWS(e),setEvalHelpers$LWS(y.helpers);const d=toSource$LWS(a,{sourceType:i}),h=c("externalEvaluatorDuration",s);try{p=y.env.evaluate(d);}catch(t){throw h.error({sandboxKey:n,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),h.stop();}return u.stop(),p}const Zt="lws-core-sandbox";function evaluateInCoreSandbox$LWS(...t){const{context:e,endowments:r,instrumentation:o,source:n,sourceType:a,verboseInstrumentation:i}=createEvaluateOptionsFromArgs$LWS(t),l={sandboxKey:"lws-core-sandbox"},s="object"==typeof o&&null!==o&&o.startActivity,c=s("EvaluateInCoreSandboxDuration",l);let u,p=getSandbox$LWS("lws-core-sandbox");if(void 0===p){const t={__proto__:null,instrumentation:o,sandboxType:SandboxType$LWS.Internal,verboseInstrumentation:i},distortionFactory$LWS=e=>{const r=s("createInternalDistortionEntries",l),o=createInternalDistortionEntries$LWS(e,"lws-core-sandbox",evaluateInCoreSandbox$LWS,t);return r.stop(),o},e=s("createSandbox",l);p=createSandbox$LWS("lws-core-sandbox",distortionFactory$LWS,r,i?o:void 0),e.stop();}setEvalContext$LWS(e),setEvalHelpers$LWS(p.helpers);const y=toSource$LWS(n,{sourceType:a}),f=s("internalEvaluatorDuration",l);try{u=p.env.evaluate(y);}catch(t){throw f.error({sandboxKey:"lws-core-sandbox",error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS(),f.stop();}return c.stop(),u}const Xt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const e=100,r=5,o=100,n=o/2,a=/^[0-9]$|^[1-9][0-9]+$/,i="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",l={style:"margin-left:11px; margin-bottom: 3px;"},s={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},c={style:"color: #9d288c; font-weight: bold"},u={style:"color: #b17ab0"},p={style:"color: #16239f"},y={style:"color: #236d25"},f={style:"color: #606367"},d={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",f,`${t}`];if("boolean"==typeof t)return ["span",p,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",p,t]:["span",p,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:r}=e;if(r>o){e=`${StringSlice$LWS(e,0,n)}…${StringSlice$LWS(e,r-n-1,r)}`;}return ["span",d,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},"{…}"]:["span",d,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const n=[],{isChildElement:i}=o;let l=0;i&&(n[l++]=["span",c,o.childKey],n[l++]=["span",{},": "]);const s=ObjectToString$LWS(t);let u=ObjectKeys$LWS(t);if(s===TO_STRING_BRAND_SYMBOL$LWS)ArrayIncludes$LWS(u,"description")||ArrayUnshift$LWS(u,"description");else if(s===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;u=ArrayFilter$LWS(u,t=>!RegExpTest$LWS(a,t)||+t>=e);}const{length:b}=u;if(ArrayIsArray$LWS(t)){n[l++]=["span",i?f:{},`(${t.length}) [`];for(let r=0,o=MathMin$LWS(b,e);r<o;r+=1){const e=t[u[r]];n[l++]=["span",{},r?", ":""],n[l++]=formatValue$LWS(e);}return b>e&&(n[l++]=["span",null,["span",{},", …"]]),n[l++]=["span",{},"]"],n}let g,S="{";switch(s){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=p;s===TO_STRING_BRAND_BIG_INT$LWS?e=y:s===TO_STRING_BRAND_SYMBOL$LWS&&(e=d),S=`${StringSlice$LWS(s,8,-1)} {`,g=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}n[l++]=["span",{},S],g&&(n[l++]=g,b&&(n[l++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(b,r);e<o;e+=1){const r=u[e],o=t[r];n[l++]=["span",{},e?", ":""],n[l++]=["span",f,r],n[l++]=["span",{},": "],n[l++]=formatValue$LWS(o);}return b>r&&(n[l++]=["span",null,["span",{},", …"]]),n[l++]=["span",{},"}"],n},formatBody$LWS=function(t){const e=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ArraySort$LWS(r);const o=[];let n=0;for(let a=0,{length:i}=r;a<i;a+=1){const i=r[a],s=t[i];if(isObject$LWS(s))o[n++]=["div",{},["object",{object:s,config:{childKey:StringCtor$LWS(i),isChildElement:!0}}]];else {let t=c;"symbol"!=typeof i&&ArrayIncludes$LWS(e,i)||(t=u),o[n++]=["div",l,["span",t,StringCtor$LWS(i)],["span",{},": "],formatValue$LWS(s)];}}return o};let{devtoolsFormatters:M}=window;ArrayIsArray$LWS(M)||(M=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:M,writable:!0})),M[M.length]={header(e,r={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Xt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const o=["div",{style:`${i}${r.isChildElement?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,o,formatHeader$LWS(e,r)),["div",{},o]},hasBody:()=>!0,body(t){const e=["div",s];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}
7881
7957
 
7882
- export { Zt as CORE_SANDBOX_KEY, evaluateInCoreSandbox$LWS as evaluateInCoreSandbox, evaluateInSandbox$LWS as evaluateInSandbox };
7958
+ export { Zt as CORE_SANDBOX_KEY, createEvaluateOptionsFromArgs$LWS as createEvaluateOptionsFromArgs, evaluateInCoreSandbox$LWS as evaluateInCoreSandbox, evaluateInSandbox$LWS as evaluateInSandbox };