@lwrjs/client-modules 0.7.3 → 0.7.4
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.
|
@@ -149,8 +149,17 @@ function ArrayConcat$LWS(array$LWS, ...args$LWS) {
|
|
|
149
149
|
function toSafeArray$LWS(array$LWS) {
|
|
150
150
|
ReflectSetPrototypeOf$LWS(array$LWS, null);
|
|
151
151
|
array$LWS.at = ArrayProtoAt$LWS;
|
|
152
|
-
array$LWS.concat = ArrayProtoConcat$LWS;
|
|
153
|
-
|
|
152
|
+
array$LWS.concat = ArrayProtoConcat$LWS; // *** DO NOT SET THE ARRAY CONSTRUCTOR PROPERTY ***
|
|
153
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=13202
|
|
154
|
+
// https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/lookup.cc;l=196-215?q=IsArraySpeciesLookupChainIntact
|
|
155
|
+
//
|
|
156
|
+
// In V8 setting the constructor property of an array, promise, regexp, or
|
|
157
|
+
// typed array triggers a de-opt because it could change an instance's
|
|
158
|
+
// @@species. This de-opt affects at least `Array#splice` and occurs even
|
|
159
|
+
// if the prototype of the array is change or nulled beforehand. Further,
|
|
160
|
+
// the de-opt persists after a page refresh. It is not until navigating to
|
|
161
|
+
// a different page that the performance of `Array#splice` is restored.
|
|
162
|
+
|
|
154
163
|
array$LWS.copyWithin = ArrayProtoCopyWithin$LWS;
|
|
155
164
|
array$LWS.entries = ArrayProtoEntries$LWS;
|
|
156
165
|
array$LWS.every = ArrayProtoEvery$LWS;
|
|
@@ -275,7 +284,6 @@ const MapProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(MapProto$LWS, 'size');
|
|
|
275
284
|
function toSafeMap$LWS(map$LWS) {
|
|
276
285
|
ReflectSetPrototypeOf$LWS(map$LWS, null);
|
|
277
286
|
map$LWS.clear = MapProtoClear$LWS;
|
|
278
|
-
map$LWS.constructor = MapCtor$LWS;
|
|
279
287
|
map$LWS.delete = MapProtoDelete$LWS;
|
|
280
288
|
map$LWS.entries = MapProtoEntries$LWS;
|
|
281
289
|
map$LWS.forEach = MapProtoForEach$LWS;
|
|
@@ -468,7 +476,6 @@ function toSafeSet$LWS(set$LWS) {
|
|
|
468
476
|
ReflectSetPrototypeOf$LWS(set$LWS, null);
|
|
469
477
|
set$LWS.add = SetProtoAdd$LWS;
|
|
470
478
|
set$LWS.clear = SetProtoClear$LWS;
|
|
471
|
-
set$LWS.constructor = SetCtor$LWS;
|
|
472
479
|
set$LWS.delete = SetProtoDelete$LWS;
|
|
473
480
|
set$LWS.entries = SetProtoEntries$LWS;
|
|
474
481
|
set$LWS.forEach = SetProtoForEach$LWS;
|
|
@@ -504,7 +511,6 @@ const {
|
|
|
504
511
|
|
|
505
512
|
function toSafeWeakMap$LWS$1(weakMap$LWS) {
|
|
506
513
|
ReflectSetPrototypeOf$LWS(weakMap$LWS, null);
|
|
507
|
-
weakMap$LWS.constructor = WeakMapCtor$LWS;
|
|
508
514
|
weakMap$LWS.delete = WeakMapProtoDelete$LWS;
|
|
509
515
|
weakMap$LWS.get = WeakMapProtoGet$LWS;
|
|
510
516
|
weakMap$LWS.has = WeakMapProtoHas$LWS;
|
|
@@ -530,7 +536,6 @@ const {
|
|
|
530
536
|
function toSafeWeakSet$LWS(weakSet$LWS) {
|
|
531
537
|
ReflectSetPrototypeOf$LWS(weakSet$LWS, null);
|
|
532
538
|
weakSet$LWS.add = WeakSetProtoAdd$LWS;
|
|
533
|
-
weakSet$LWS.constructor = WeakSetCtor$LWS;
|
|
534
539
|
weakSet$LWS.delete = WeakSetProtoDelete$LWS;
|
|
535
540
|
weakSet$LWS.has = WeakSetProtoHas$LWS;
|
|
536
541
|
weakSet$LWS[SymbolToStringTag$LWS] = WeakSetProtoSymbolToStringTag$LWS;
|
|
@@ -996,7 +1001,7 @@ function createRevokedProxy$LWS(object$LWS) {
|
|
|
996
1001
|
revocable$LWS.revoke();
|
|
997
1002
|
return revocable$LWS.proxy;
|
|
998
1003
|
}
|
|
999
|
-
/*! version: 0.16.
|
|
1004
|
+
/*! version: 0.16.25 */
|
|
1000
1005
|
|
|
1001
1006
|
/*!
|
|
1002
1007
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -1654,7 +1659,7 @@ const {
|
|
|
1654
1659
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'responseText');
|
|
1655
1660
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'status');
|
|
1656
1661
|
const XhrProtoWithCredentialsSetter$LWS = ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
1657
|
-
/*! version: 0.16.
|
|
1662
|
+
/*! version: 0.16.25 */
|
|
1658
1663
|
|
|
1659
1664
|
/*!
|
|
1660
1665
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -1721,7 +1726,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
|
|
|
1721
1726
|
function sanitizeURLString$LWS(urlString$LWS) {
|
|
1722
1727
|
return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
|
|
1723
1728
|
}
|
|
1724
|
-
/*! version: 0.16.
|
|
1729
|
+
/*! version: 0.16.25 */
|
|
1725
1730
|
|
|
1726
1731
|
/*! @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 */
|
|
1727
1732
|
|
|
@@ -3440,7 +3445,7 @@ function sanitizeSvgTextReturnDOM$LWS(dirty$LWS) {
|
|
|
3440
3445
|
const sanitizer$LWS = svgSanitizer$LWS();
|
|
3441
3446
|
return sanitizer$LWS.sanitize(dirty$LWS);
|
|
3442
3447
|
}
|
|
3443
|
-
/*! version: 0.16.
|
|
3448
|
+
/*! version: 0.16.25 */
|
|
3444
3449
|
|
|
3445
3450
|
/*!
|
|
3446
3451
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -3449,7 +3454,7 @@ const CustomElementRegistryBlockedProperties$LWS = ObjectFreeze$LWS(['define']);
|
|
|
3449
3454
|
const documentToSandboxAttributeDistortionRegistry$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
|
|
3450
3455
|
const recordToAttributeDistortionFactories$LWS = toSafeMap$LWS(new MapCtor$LWS());
|
|
3451
3456
|
|
|
3452
|
-
function getAttributeDistortion$LWS(record$LWS, element$LWS,
|
|
3457
|
+
function getAttributeDistortion$LWS(record$LWS, element$LWS, attrName$LWS, attributeNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
|
|
3453
3458
|
const {
|
|
3454
3459
|
document: document$LWS,
|
|
3455
3460
|
key: key$LWS
|
|
@@ -3466,7 +3471,7 @@ function getAttributeDistortion$LWS(record$LWS, element$LWS, attributeName$LWS,
|
|
|
3466
3471
|
return undefined;
|
|
3467
3472
|
}
|
|
3468
3473
|
|
|
3469
|
-
const elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[ReflectApply$LWS(StringProtoToLowerCase$LWS,
|
|
3474
|
+
const elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[ReflectApply$LWS(StringProtoToLowerCase$LWS, attrName$LWS, [])];
|
|
3470
3475
|
|
|
3471
3476
|
if (elementCtorMapByAttributeNamespaceRegistry$LWS === undefined) {
|
|
3472
3477
|
return undefined;
|
|
@@ -4930,11 +4935,6 @@ function distortionElementReplaceWith$LWS(record$LWS) {
|
|
|
4930
4935
|
return [originalReplaceWith$LWS, replaceWith$LWS];
|
|
4931
4936
|
}
|
|
4932
4937
|
|
|
4933
|
-
function normalizeAttrName$LWS(name$LWS) {
|
|
4934
|
-
const nameAsString$LWS = toString$LWS(name$LWS);
|
|
4935
|
-
return ReflectApply$LWS(StringProtoToLowerCase$LWS, nameAsString$LWS, []);
|
|
4936
|
-
}
|
|
4937
|
-
|
|
4938
4938
|
function distortionElementSetAttribute$LWS(record$LWS) {
|
|
4939
4939
|
const {
|
|
4940
4940
|
globalObject: {
|
|
@@ -4947,14 +4947,17 @@ function distortionElementSetAttribute$LWS(record$LWS) {
|
|
|
4947
4947
|
|
|
4948
4948
|
function setAttribute$LWS(...args$LWS) {
|
|
4949
4949
|
if (args$LWS.length > 1) {
|
|
4950
|
-
const attrName$LWS =
|
|
4950
|
+
const attrName$LWS = toString$LWS(args$LWS[0]);
|
|
4951
4951
|
const attrValue$LWS = toString$LWS(args$LWS[1]);
|
|
4952
4952
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS);
|
|
4953
4953
|
|
|
4954
4954
|
if (distortion$LWS) {
|
|
4955
4955
|
ReflectApply$LWS(distortion$LWS, this, [attrValue$LWS]);
|
|
4956
4956
|
return;
|
|
4957
|
-
}
|
|
4957
|
+
} // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
4958
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
4959
|
+
// such as svg element's "viewBox"
|
|
4960
|
+
|
|
4958
4961
|
|
|
4959
4962
|
args$LWS[0] = attrName$LWS;
|
|
4960
4963
|
args$LWS[1] = attrValue$LWS;
|
|
@@ -5133,7 +5136,7 @@ function distortionElementSetAttributeNS$LWS(record$LWS) {
|
|
|
5133
5136
|
attrNamespace$LWS = toString$LWS(attrNamespace$LWS);
|
|
5134
5137
|
}
|
|
5135
5138
|
|
|
5136
|
-
const attrName$LWS =
|
|
5139
|
+
const attrName$LWS = toString$LWS(args$LWS[1]);
|
|
5137
5140
|
const attrValue$LWS = toString$LWS(args$LWS[2]);
|
|
5138
5141
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
5139
5142
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
|
|
@@ -5148,7 +5151,10 @@ function distortionElementSetAttributeNS$LWS(record$LWS) {
|
|
|
5148
5151
|
{
|
|
5149
5152
|
// This is in a block to avoid requiring an "instanbul ignore next" for all for lines.
|
|
5150
5153
|
// We could avoid this entirely by testing the default platform behavior.
|
|
5151
|
-
args$LWS[0] = attrNamespace$LWS;
|
|
5154
|
+
args$LWS[0] = attrNamespace$LWS; // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
5155
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
5156
|
+
// such as svg element's "viewBox"
|
|
5157
|
+
|
|
5152
5158
|
args$LWS[1] = attrName$LWS;
|
|
5153
5159
|
args$LWS[2] = attrValue$LWS;
|
|
5154
5160
|
ReflectApply$LWS(originalSetAttributeNS$LWS, this, args$LWS);
|
|
@@ -5190,7 +5196,7 @@ function distortionElementToggleAttribute$LWS(record$LWS) {
|
|
|
5190
5196
|
} = args$LWS; // istanbul ignore else: needs default platform behavior test
|
|
5191
5197
|
|
|
5192
5198
|
if (length$LWS > 0) {
|
|
5193
|
-
const attrName$LWS =
|
|
5199
|
+
const attrName$LWS = toString$LWS(args$LWS[0]);
|
|
5194
5200
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS); // istanbul ignore else: needs default platform behavior test
|
|
5195
5201
|
|
|
5196
5202
|
if (distortion$LWS) {
|
|
@@ -5200,7 +5206,10 @@ function distortionElementToggleAttribute$LWS(record$LWS) {
|
|
|
5200
5206
|
// the presence or absence of this attribute.
|
|
5201
5207
|
|
|
5202
5208
|
return ReflectApply$LWS(ElementProtoHasAttribute$LWS, this, [attrName$LWS]);
|
|
5203
|
-
} //
|
|
5209
|
+
} // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
5210
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
5211
|
+
// such as svg element's "viewBox"
|
|
5212
|
+
// istanbul ignore next: needs default platform behavior test
|
|
5204
5213
|
|
|
5205
5214
|
|
|
5206
5215
|
args$LWS[0] = attrName$LWS;
|
|
@@ -6151,13 +6160,92 @@ function distortionNodeReplaceChild$LWS(record$LWS) {
|
|
|
6151
6160
|
return [originalReplaceChild$LWS, replaceChild$LWS];
|
|
6152
6161
|
}
|
|
6153
6162
|
|
|
6154
|
-
|
|
6163
|
+
const EVALUATOR_PROPERTY_NAME$LWS = '$evaluator$';
|
|
6164
|
+
const RAW_VALUE_PROPERTY_NAME$LWS = '$$raw$$';
|
|
6165
|
+
const SANDBOXED_PROPERTY_NAME$LWS = '$$sandboxed$$';
|
|
6166
|
+
|
|
6167
|
+
const inlineEvaluatorCall$LWS = () => `document.currentScript['${EVALUATOR_PROPERTY_NAME$LWS}']();`;
|
|
6168
|
+
/**
|
|
6169
|
+
*
|
|
6170
|
+
* @param host: Host element for the evaluator
|
|
6171
|
+
* @param src: Raw code to be evaluated
|
|
6172
|
+
* @param evaluator: No argument function to be returned to the caller.
|
|
6173
|
+
* @returns boolean: False if the getter has been accessed previously. True if only redefined
|
|
6174
|
+
*/
|
|
6175
|
+
|
|
6176
|
+
|
|
6177
|
+
function setEvaluatorFn$LWS(host$LWS, src$LWS, evaluator$LWS) {
|
|
6178
|
+
if (ReflectHas$LWS(host$LWS, SANDBOXED_PROPERTY_NAME$LWS)) {
|
|
6179
|
+
return false;
|
|
6180
|
+
}
|
|
6181
|
+
|
|
6182
|
+
ReflectDefineProperty$LWS(host$LWS, RAW_VALUE_PROPERTY_NAME$LWS, {
|
|
6183
|
+
__proto__: null,
|
|
6184
|
+
configurable: true,
|
|
6185
|
+
value: src$LWS
|
|
6186
|
+
});
|
|
6187
|
+
ReflectDefineProperty$LWS(host$LWS, EVALUATOR_PROPERTY_NAME$LWS, {
|
|
6188
|
+
__proto__: null,
|
|
6189
|
+
configurable: true,
|
|
6190
|
+
// Create a bound function to obscure the getter
|
|
6191
|
+
// source as "[native code]".
|
|
6192
|
+
get: ReflectApply$LWS(FunctionProtoBind$LWS, () => {
|
|
6193
|
+
ReflectDeleteProperty$LWS(host$LWS, EVALUATOR_PROPERTY_NAME$LWS);
|
|
6194
|
+
ReflectDefineProperty$LWS(host$LWS, SANDBOXED_PROPERTY_NAME$LWS, {
|
|
6195
|
+
__proto__: null
|
|
6196
|
+
});
|
|
6197
|
+
const ownerDoc$LWS = ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, host$LWS, []);
|
|
6198
|
+
const globalObject$LWS = ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, ownerDoc$LWS, []);
|
|
6199
|
+
return () => evaluator$LWS(globalObject$LWS);
|
|
6200
|
+
}, [host$LWS])
|
|
6201
|
+
});
|
|
6202
|
+
return true;
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
function rawValue$LWS(host$LWS) {
|
|
6206
|
+
// @ts-ignore
|
|
6207
|
+
return host$LWS[RAW_VALUE_PROPERTY_NAME$LWS];
|
|
6208
|
+
}
|
|
6209
|
+
|
|
6210
|
+
function distortionNodeTextContentGetter$LWS(record$LWS) {
|
|
6155
6211
|
const {
|
|
6156
|
-
globalObject:
|
|
6157
|
-
|
|
6158
|
-
|
|
6212
|
+
globalObject: globalObject$LWS
|
|
6213
|
+
} = record$LWS;
|
|
6214
|
+
const {
|
|
6215
|
+
Node: Node$LWS
|
|
6216
|
+
} = globalObject$LWS;
|
|
6217
|
+
const originalTextContentGetter$LWS = ObjectLookupOwnGetter$LWS(Node$LWS.prototype, 'textContent');
|
|
6218
|
+
const {
|
|
6219
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
6220
|
+
SVGScriptElement: SVGScriptElement$LWS
|
|
6221
|
+
} = globalObject$LWS;
|
|
6222
|
+
|
|
6223
|
+
function textContent$LWS() {
|
|
6224
|
+
if (this instanceof HTMLScriptElement$LWS || this instanceof SVGScriptElement$LWS) {
|
|
6225
|
+
const rawSource$LWS = rawValue$LWS(this);
|
|
6226
|
+
|
|
6227
|
+
if (rawSource$LWS !== undefined) {
|
|
6228
|
+
return rawSource$LWS;
|
|
6229
|
+
}
|
|
6159
6230
|
}
|
|
6231
|
+
|
|
6232
|
+
return ReflectApply$LWS(originalTextContentGetter$LWS, this, []);
|
|
6233
|
+
}
|
|
6234
|
+
|
|
6235
|
+
return [originalTextContentGetter$LWS, textContent$LWS];
|
|
6236
|
+
}
|
|
6237
|
+
|
|
6238
|
+
function distortionNodeTextContentSetter$LWS(record$LWS) {
|
|
6239
|
+
const {
|
|
6240
|
+
globalObject: globalObject$LWS,
|
|
6241
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
6160
6242
|
} = record$LWS;
|
|
6243
|
+
const {
|
|
6244
|
+
Attr: Attr$LWS,
|
|
6245
|
+
Node: Node$LWS,
|
|
6246
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
6247
|
+
SVGScriptElement: SVGScriptElement$LWS
|
|
6248
|
+
} = globalObject$LWS;
|
|
6161
6249
|
const originalTextContentSetter$LWS = ObjectLookupOwnSetter$LWS(Node$LWS.prototype, 'textContent'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
6162
6250
|
// "globalObject" because future magenta objects (arbitrary user-code created global objects)
|
|
6163
6251
|
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
@@ -6194,6 +6282,18 @@ function distortionNodeTextContentSetter$LWS(record$LWS) {
|
|
|
6194
6282
|
if (distortion$LWS) {
|
|
6195
6283
|
return ReflectApply$LWS(distortion$LWS, ownerEl$LWS, [valueAsString$LWS]);
|
|
6196
6284
|
}
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
if (this instanceof HTMLScriptElement$LWS || this instanceof SVGScriptElement$LWS) {
|
|
6288
|
+
const didAttach$LWS = setEvaluatorFn$LWS(this, valueAsString$LWS, globalObject$LWS => {
|
|
6289
|
+
sandboxEvaluator$LWS(valueAsString$LWS, globalObject$LWS);
|
|
6290
|
+
ReflectApply$LWS(originalTextContentSetter$LWS, this, [valueAsString$LWS]);
|
|
6291
|
+
});
|
|
6292
|
+
|
|
6293
|
+
if (didAttach$LWS) {
|
|
6294
|
+
const overrideContent$LWS = inlineEvaluatorCall$LWS();
|
|
6295
|
+
return ReflectApply$LWS(originalTextContentSetter$LWS, this, [overrideContent$LWS]);
|
|
6296
|
+
}
|
|
6197
6297
|
} // istanbul ignore else: needs default platform behavior test
|
|
6198
6298
|
|
|
6199
6299
|
|
|
@@ -7875,7 +7975,7 @@ distortionElementSetAttribute$LWS, distortionElementSetAttributeNode$LWS, distor
|
|
|
7875
7975
|
distortionEventTargetAddEventListener$LWS, // HTMLScriptElement,
|
|
7876
7976
|
distortionHTMLScriptElementSrcSetter$LWS, // NamedNodeMap
|
|
7877
7977
|
distortionNamedNodeMapSetNamedItem$LWS, distortionNamedNodeMapSetNamedItemNS$LWS, // Node
|
|
7878
|
-
distortionNodeValueSetter$LWS, distortionNodeTextContentSetter$LWS, // Storage
|
|
7978
|
+
distortionNodeValueSetter$LWS, distortionNodeTextContentGetter$LWS, distortionNodeTextContentSetter$LWS, // Storage
|
|
7879
7979
|
distortionLocalStorage$LWS, distortionSessionStorage$LWS, // SVGAnimationElement
|
|
7880
7980
|
distortionSVGAnimateElementAttributeNameAttribute$LWS, // SVGScriptElement
|
|
7881
7981
|
distortionSVGScriptElementHrefAttribute$LWS, // SVGSetElement
|
|
@@ -7903,7 +8003,7 @@ const HTMLScriptElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
|
|
|
7903
8003
|
const SVGElementBlockedAttributes$LWS = ObjectFreeze$LWS(['nonce']);
|
|
7904
8004
|
const SVGElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
|
|
7905
8005
|
const XSLTProcessorBlockedProperties$LWS = ObjectFreeze$LWS(['transformToDocument', 'transformToFragment']);
|
|
7906
|
-
/*! version: 0.16.
|
|
8006
|
+
/*! version: 0.16.25 */
|
|
7907
8007
|
|
|
7908
8008
|
/*!
|
|
7909
8009
|
* Copyright (C) 2021 salesforce.com, inc.
|
|
@@ -8006,7 +8106,7 @@ class DefaultInstrumentation$LWS {
|
|
|
8006
8106
|
|
|
8007
8107
|
|
|
8008
8108
|
const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
|
|
8009
|
-
/*! version: 0.16.
|
|
8109
|
+
/*! version: 0.16.25 */
|
|
8010
8110
|
|
|
8011
8111
|
const Pt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const O=100,_=5,E=100,x=E/2,A="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",B={style:"margin-left:11px; margin-bottom: 3px;"},M={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},F={style:"color: #9d288c; font-weight: bold"},j={style:"color: #b17ab0"},H={style:"color: #16239f"},k={style:"color: #236d25"},R={style:"color: #606367"},I={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",R,`${t}`];if("boolean"==typeof t)return ["span",H,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",H,t]:["span",H,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:o}=e;if(o>E){const t=ReflectApply$LWS(StringProtoSlice$LWS,e,[0,x]),r=ReflectApply$LWS(StringProtoSlice$LWS,e,[o-x-1,o]);e=t+CHAR_ELLIPSIS$LWS+r;}return ["span",I,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},`{${CHAR_ELLIPSIS$LWS}}`]:["span",I,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const{t:r}=o,i=[];let b=0;r&&(i[b++]=["span",F,o.o],i[b++]=["span",{},": "]);const T=ReflectApply$LWS(ObjectProtoToString$LWS,t,[]);let P=ObjectKeys$LWS(t);if(T===TO_STRING_BRAND_SYMBOL$LWS)ReflectApply$LWS(ArrayProtoIncludes$LWS,P,["description"])||ReflectApply$LWS(ArrayProtoUnshift$LWS,P,["description"]);else if(T===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;P=ReflectApply$LWS(ArrayProtoFilter$LWS,P,[t=>{const o="string"==typeof t?+t:-1;return o<0||o>=e||!NumberIsInteger$LWS(o)}]);}const{length:w}=P;if(ArrayIsArray$LWS(t)){i[b++]=["span",r?R:{},`(${t.length}) [`];for(let e=0,o=MathMin$LWS(w,O);e<o;e+=1){const o=t[P[e]];i[b++]=["span",{},e?", ":""],i[b++]=formatValue$LWS(o);}return w>O&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"]"],i}let m,E="{";switch(T){case TO_STRING_BRAND_BIG_INT$LWS:case TO_STRING_BRAND_BOOLEAN$LWS:case TO_STRING_BRAND_NUMBER$LWS:case TO_STRING_BRAND_STRING$LWS:case TO_STRING_BRAND_SYMBOL$LWS:{let e=H;T===TO_STRING_BRAND_BIG_INT$LWS?e=k:T===TO_STRING_BRAND_SYMBOL$LWS&&(e=I),E=`${ReflectApply$LWS(StringProtoSlice$LWS,T,[8,-1])} {`,m=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}i[b++]=["span",{},E],m&&(i[b++]=m,w&&(i[b++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(w,_);e<o;e+=1){const o=P[e],r=t[o];i[b++]=["span",{},e?", ":""],i[b++]=["span",R,o],i[b++]=["span",{},": "],i[b++]=formatValue$LWS(r);}return w>_&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"}"],i},formatBody$LWS=function(t){const o=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ReflectApply$LWS(ArrayProtoSort$LWS,r,[]);const i=[];let a=0;for(let e=0,{length:s}=r;e<s;e+=1){const s=r[e],l=t[s];if(isObject$LWS(l))i[a++]=["div",{},["object",{object:l,config:{o:StringCtor$LWS(s),t:!0}}]];else {let t=F;"symbol"!=typeof s&&ReflectApply$LWS(ArrayProtoIncludes$LWS,o,[s])||(t=j),i[a++]=["div",B,["span",t,StringCtor$LWS(s)],["span",{},": "],formatValue$LWS(l)];}}return i};let{devtoolsFormatters:C}=window;ArrayIsArray$LWS(C)||(C=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:C,writable:!0})),C[C.length]={header(e,a={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Pt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const s=["div",{style:`${A}${a.t?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,s,formatHeader$LWS(e,a)),["div",{},s]},hasBody:()=>!0,body(t){const e=["div",M];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}const wt=Array,mt=WeakMap,{setPrototypeOf:Ot}=Reflect,{iterator:_t,toStringTag:Et,unscopables:xt}=Symbol,{prototype:At}=wt,{at:Bt,concat:Mt,copyWithin:Ft,entries:jt,every:Ht,fill:kt,filter:Rt,find:It,findIndex:Ct,flat:Nt,flatMap:Dt,forEach:Gt,includes:Kt,indexOf:Ut,join:Vt,keys:zt,lastIndexOf:Xt,map:Qt,pop:Zt,push:Jt,reduce:Yt,reduceRight:qt,reverse:te,shift:ee,slice:oe,some:re,sort:ne,splice:ie,toLocaleString:ae,toString:se,unshift:le,values:ce,[_t]:ue}=At,fe=Object.freeze(Object.assign({__proto__:null},At[xt])),{prototype:de}=mt,{delete:ye,get:pe,has:Se,set:he,[Et]:Le}=de;function toSafeWeakMap$LWS(t){return Ot(t,null),t.constructor=mt,t.delete=ye,t.get=pe,t.has=Se,t.set=he,t[Et]=Le,Ot(t,de),t}const ge=toSafeWeakMap$LWS(new WeakMap);function createMembraneMarshall$LWS(t){var e,o,r;const n=Array,i=ArrayBuffer,a=Error,s=Number,l=Object,c=Proxy,u=Reflect,f=RegExp,d=String,y=Symbol,p=TypeError,S=WeakMap,{for:h,toStringTag:L}=y,{apply:g,construct:$,defineProperty:W,deleteProperty:v,get:b,getOwnPropertyDescriptor:T,getPrototypeOf:P,has:w,isExtensible:m,ownKeys:O,preventExtensions:_,set:E,setPrototypeOf:x}=u,{assign:A,defineProperties:B,freeze:M,getOwnPropertyDescriptor:F,getOwnPropertyDescriptors:j,isFrozen:H,isSealed:k,keys:R,prototype:I,seal:C}=l,{hasOwnProperty:N,propertyIsEnumerable:D,toString:G}=I,{hasOwn:K}=l,{__defineGetter__:U,__defineSetter__:V,__lookupGetter__:z,__lookupSetter__:X}=I,Q="function"==typeof K?K:(t,e)=>g(N,t,[e]),Z="object"!=typeof t||null===t,J=Z?void 0:h("@@lockerDebugMode"),Y=Z?void 0:h("@@lockerLiveValue"),q=Z?void 0:h("@@lockerNearMembraneSerializedValue"),tt=Z?void 0:h("@@lockerNearMembrane"),et=h("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
|
|
8012
8112
|
/* $LWS */
|
|
@@ -149,8 +149,17 @@ function ArrayConcat$LWS(array$LWS, ...args$LWS) {
|
|
|
149
149
|
function toSafeArray$LWS(array$LWS) {
|
|
150
150
|
ReflectSetPrototypeOf$LWS(array$LWS, null);
|
|
151
151
|
array$LWS.at = ArrayProtoAt$LWS;
|
|
152
|
-
array$LWS.concat = ArrayProtoConcat$LWS;
|
|
153
|
-
|
|
152
|
+
array$LWS.concat = ArrayProtoConcat$LWS; // *** DO NOT SET THE ARRAY CONSTRUCTOR PROPERTY ***
|
|
153
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=13202
|
|
154
|
+
// https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/lookup.cc;l=196-215?q=IsArraySpeciesLookupChainIntact
|
|
155
|
+
//
|
|
156
|
+
// In V8 setting the constructor property of an array, promise, regexp, or
|
|
157
|
+
// typed array triggers a de-opt because it could change an instance's
|
|
158
|
+
// @@species. This de-opt affects at least `Array#splice` and occurs even
|
|
159
|
+
// if the prototype of the array is change or nulled beforehand. Further,
|
|
160
|
+
// the de-opt persists after a page refresh. It is not until navigating to
|
|
161
|
+
// a different page that the performance of `Array#splice` is restored.
|
|
162
|
+
|
|
154
163
|
array$LWS.copyWithin = ArrayProtoCopyWithin$LWS;
|
|
155
164
|
array$LWS.entries = ArrayProtoEntries$LWS;
|
|
156
165
|
array$LWS.every = ArrayProtoEvery$LWS;
|
|
@@ -275,7 +284,6 @@ const MapProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(MapProto$LWS, 'size');
|
|
|
275
284
|
function toSafeMap$LWS(map$LWS) {
|
|
276
285
|
ReflectSetPrototypeOf$LWS(map$LWS, null);
|
|
277
286
|
map$LWS.clear = MapProtoClear$LWS;
|
|
278
|
-
map$LWS.constructor = MapCtor$LWS;
|
|
279
287
|
map$LWS.delete = MapProtoDelete$LWS;
|
|
280
288
|
map$LWS.entries = MapProtoEntries$LWS;
|
|
281
289
|
map$LWS.forEach = MapProtoForEach$LWS;
|
|
@@ -468,7 +476,6 @@ function toSafeSet$LWS(set$LWS) {
|
|
|
468
476
|
ReflectSetPrototypeOf$LWS(set$LWS, null);
|
|
469
477
|
set$LWS.add = SetProtoAdd$LWS;
|
|
470
478
|
set$LWS.clear = SetProtoClear$LWS;
|
|
471
|
-
set$LWS.constructor = SetCtor$LWS;
|
|
472
479
|
set$LWS.delete = SetProtoDelete$LWS;
|
|
473
480
|
set$LWS.entries = SetProtoEntries$LWS;
|
|
474
481
|
set$LWS.forEach = SetProtoForEach$LWS;
|
|
@@ -504,7 +511,6 @@ const {
|
|
|
504
511
|
|
|
505
512
|
function toSafeWeakMap$LWS$1(weakMap$LWS) {
|
|
506
513
|
ReflectSetPrototypeOf$LWS(weakMap$LWS, null);
|
|
507
|
-
weakMap$LWS.constructor = WeakMapCtor$LWS;
|
|
508
514
|
weakMap$LWS.delete = WeakMapProtoDelete$LWS;
|
|
509
515
|
weakMap$LWS.get = WeakMapProtoGet$LWS;
|
|
510
516
|
weakMap$LWS.has = WeakMapProtoHas$LWS;
|
|
@@ -530,7 +536,6 @@ const {
|
|
|
530
536
|
function toSafeWeakSet$LWS(weakSet$LWS) {
|
|
531
537
|
ReflectSetPrototypeOf$LWS(weakSet$LWS, null);
|
|
532
538
|
weakSet$LWS.add = WeakSetProtoAdd$LWS;
|
|
533
|
-
weakSet$LWS.constructor = WeakSetCtor$LWS;
|
|
534
539
|
weakSet$LWS.delete = WeakSetProtoDelete$LWS;
|
|
535
540
|
weakSet$LWS.has = WeakSetProtoHas$LWS;
|
|
536
541
|
weakSet$LWS[SymbolToStringTag$LWS] = WeakSetProtoSymbolToStringTag$LWS;
|
|
@@ -996,7 +1001,7 @@ function createRevokedProxy$LWS(object$LWS) {
|
|
|
996
1001
|
revocable$LWS.revoke();
|
|
997
1002
|
return revocable$LWS.proxy;
|
|
998
1003
|
}
|
|
999
|
-
/*! version: 0.16.
|
|
1004
|
+
/*! version: 0.16.25 */
|
|
1000
1005
|
|
|
1001
1006
|
/*!
|
|
1002
1007
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -1654,7 +1659,7 @@ const {
|
|
|
1654
1659
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'responseText');
|
|
1655
1660
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'status');
|
|
1656
1661
|
const XhrProtoWithCredentialsSetter$LWS = ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
1657
|
-
/*! version: 0.16.
|
|
1662
|
+
/*! version: 0.16.25 */
|
|
1658
1663
|
|
|
1659
1664
|
/*!
|
|
1660
1665
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -1721,7 +1726,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
|
|
|
1721
1726
|
function sanitizeURLString$LWS(urlString$LWS) {
|
|
1722
1727
|
return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
|
|
1723
1728
|
}
|
|
1724
|
-
/*! version: 0.16.
|
|
1729
|
+
/*! version: 0.16.25 */
|
|
1725
1730
|
|
|
1726
1731
|
/*! @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 */
|
|
1727
1732
|
|
|
@@ -3440,7 +3445,7 @@ function sanitizeSvgTextReturnDOM$LWS(dirty$LWS) {
|
|
|
3440
3445
|
const sanitizer$LWS = svgSanitizer$LWS();
|
|
3441
3446
|
return sanitizer$LWS.sanitize(dirty$LWS);
|
|
3442
3447
|
}
|
|
3443
|
-
/*! version: 0.16.
|
|
3448
|
+
/*! version: 0.16.25 */
|
|
3444
3449
|
|
|
3445
3450
|
/*!
|
|
3446
3451
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -3449,7 +3454,7 @@ const CustomElementRegistryBlockedProperties$LWS = ObjectFreeze$LWS(['define']);
|
|
|
3449
3454
|
const documentToSandboxAttributeDistortionRegistry$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
|
|
3450
3455
|
const recordToAttributeDistortionFactories$LWS = toSafeMap$LWS(new MapCtor$LWS());
|
|
3451
3456
|
|
|
3452
|
-
function getAttributeDistortion$LWS(record$LWS, element$LWS,
|
|
3457
|
+
function getAttributeDistortion$LWS(record$LWS, element$LWS, attrName$LWS, attributeNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
|
|
3453
3458
|
const {
|
|
3454
3459
|
document: document$LWS,
|
|
3455
3460
|
key: key$LWS
|
|
@@ -3466,7 +3471,7 @@ function getAttributeDistortion$LWS(record$LWS, element$LWS, attributeName$LWS,
|
|
|
3466
3471
|
return undefined;
|
|
3467
3472
|
}
|
|
3468
3473
|
|
|
3469
|
-
const elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[ReflectApply$LWS(StringProtoToLowerCase$LWS,
|
|
3474
|
+
const elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[ReflectApply$LWS(StringProtoToLowerCase$LWS, attrName$LWS, [])];
|
|
3470
3475
|
|
|
3471
3476
|
if (elementCtorMapByAttributeNamespaceRegistry$LWS === undefined) {
|
|
3472
3477
|
return undefined;
|
|
@@ -4930,11 +4935,6 @@ function distortionElementReplaceWith$LWS(record$LWS) {
|
|
|
4930
4935
|
return [originalReplaceWith$LWS, replaceWith$LWS];
|
|
4931
4936
|
}
|
|
4932
4937
|
|
|
4933
|
-
function normalizeAttrName$LWS(name$LWS) {
|
|
4934
|
-
const nameAsString$LWS = toString$LWS(name$LWS);
|
|
4935
|
-
return ReflectApply$LWS(StringProtoToLowerCase$LWS, nameAsString$LWS, []);
|
|
4936
|
-
}
|
|
4937
|
-
|
|
4938
4938
|
function distortionElementSetAttribute$LWS(record$LWS) {
|
|
4939
4939
|
const {
|
|
4940
4940
|
globalObject: {
|
|
@@ -4947,14 +4947,17 @@ function distortionElementSetAttribute$LWS(record$LWS) {
|
|
|
4947
4947
|
|
|
4948
4948
|
function setAttribute$LWS(...args$LWS) {
|
|
4949
4949
|
if (args$LWS.length > 1) {
|
|
4950
|
-
const attrName$LWS =
|
|
4950
|
+
const attrName$LWS = toString$LWS(args$LWS[0]);
|
|
4951
4951
|
const attrValue$LWS = toString$LWS(args$LWS[1]);
|
|
4952
4952
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS);
|
|
4953
4953
|
|
|
4954
4954
|
if (distortion$LWS) {
|
|
4955
4955
|
ReflectApply$LWS(distortion$LWS, this, [attrValue$LWS]);
|
|
4956
4956
|
return;
|
|
4957
|
-
}
|
|
4957
|
+
} // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
4958
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
4959
|
+
// such as svg element's "viewBox"
|
|
4960
|
+
|
|
4958
4961
|
|
|
4959
4962
|
args$LWS[0] = attrName$LWS;
|
|
4960
4963
|
args$LWS[1] = attrValue$LWS;
|
|
@@ -5133,7 +5136,7 @@ function distortionElementSetAttributeNS$LWS(record$LWS) {
|
|
|
5133
5136
|
attrNamespace$LWS = toString$LWS(attrNamespace$LWS);
|
|
5134
5137
|
}
|
|
5135
5138
|
|
|
5136
|
-
const attrName$LWS =
|
|
5139
|
+
const attrName$LWS = toString$LWS(args$LWS[1]);
|
|
5137
5140
|
const attrValue$LWS = toString$LWS(args$LWS[2]);
|
|
5138
5141
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
5139
5142
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
|
|
@@ -5148,7 +5151,10 @@ function distortionElementSetAttributeNS$LWS(record$LWS) {
|
|
|
5148
5151
|
{
|
|
5149
5152
|
// This is in a block to avoid requiring an "instanbul ignore next" for all for lines.
|
|
5150
5153
|
// We could avoid this entirely by testing the default platform behavior.
|
|
5151
|
-
args$LWS[0] = attrNamespace$LWS;
|
|
5154
|
+
args$LWS[0] = attrNamespace$LWS; // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
5155
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
5156
|
+
// such as svg element's "viewBox"
|
|
5157
|
+
|
|
5152
5158
|
args$LWS[1] = attrName$LWS;
|
|
5153
5159
|
args$LWS[2] = attrValue$LWS;
|
|
5154
5160
|
ReflectApply$LWS(originalSetAttributeNS$LWS, this, args$LWS);
|
|
@@ -5190,7 +5196,7 @@ function distortionElementToggleAttribute$LWS(record$LWS) {
|
|
|
5190
5196
|
} = args$LWS; // istanbul ignore else: needs default platform behavior test
|
|
5191
5197
|
|
|
5192
5198
|
if (length$LWS > 0) {
|
|
5193
|
-
const attrName$LWS =
|
|
5199
|
+
const attrName$LWS = toString$LWS(args$LWS[0]);
|
|
5194
5200
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS); // istanbul ignore else: needs default platform behavior test
|
|
5195
5201
|
|
|
5196
5202
|
if (distortion$LWS) {
|
|
@@ -5200,7 +5206,10 @@ function distortionElementToggleAttribute$LWS(record$LWS) {
|
|
|
5200
5206
|
// the presence or absence of this attribute.
|
|
5201
5207
|
|
|
5202
5208
|
return ReflectApply$LWS(ElementProtoHasAttribute$LWS, this, [attrName$LWS]);
|
|
5203
|
-
} //
|
|
5209
|
+
} // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
5210
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
5211
|
+
// such as svg element's "viewBox"
|
|
5212
|
+
// istanbul ignore next: needs default platform behavior test
|
|
5204
5213
|
|
|
5205
5214
|
|
|
5206
5215
|
args$LWS[0] = attrName$LWS;
|
|
@@ -6151,13 +6160,92 @@ function distortionNodeReplaceChild$LWS(record$LWS) {
|
|
|
6151
6160
|
return [originalReplaceChild$LWS, replaceChild$LWS];
|
|
6152
6161
|
}
|
|
6153
6162
|
|
|
6154
|
-
|
|
6163
|
+
const EVALUATOR_PROPERTY_NAME$LWS = '$evaluator$';
|
|
6164
|
+
const RAW_VALUE_PROPERTY_NAME$LWS = '$$raw$$';
|
|
6165
|
+
const SANDBOXED_PROPERTY_NAME$LWS = '$$sandboxed$$';
|
|
6166
|
+
|
|
6167
|
+
const inlineEvaluatorCall$LWS = () => `document.currentScript['${EVALUATOR_PROPERTY_NAME$LWS}']();`;
|
|
6168
|
+
/**
|
|
6169
|
+
*
|
|
6170
|
+
* @param host: Host element for the evaluator
|
|
6171
|
+
* @param src: Raw code to be evaluated
|
|
6172
|
+
* @param evaluator: No argument function to be returned to the caller.
|
|
6173
|
+
* @returns boolean: False if the getter has been accessed previously. True if only redefined
|
|
6174
|
+
*/
|
|
6175
|
+
|
|
6176
|
+
|
|
6177
|
+
function setEvaluatorFn$LWS(host$LWS, src$LWS, evaluator$LWS) {
|
|
6178
|
+
if (ReflectHas$LWS(host$LWS, SANDBOXED_PROPERTY_NAME$LWS)) {
|
|
6179
|
+
return false;
|
|
6180
|
+
}
|
|
6181
|
+
|
|
6182
|
+
ReflectDefineProperty$LWS(host$LWS, RAW_VALUE_PROPERTY_NAME$LWS, {
|
|
6183
|
+
__proto__: null,
|
|
6184
|
+
configurable: true,
|
|
6185
|
+
value: src$LWS
|
|
6186
|
+
});
|
|
6187
|
+
ReflectDefineProperty$LWS(host$LWS, EVALUATOR_PROPERTY_NAME$LWS, {
|
|
6188
|
+
__proto__: null,
|
|
6189
|
+
configurable: true,
|
|
6190
|
+
// Create a bound function to obscure the getter
|
|
6191
|
+
// source as "[native code]".
|
|
6192
|
+
get: ReflectApply$LWS(FunctionProtoBind$LWS, () => {
|
|
6193
|
+
ReflectDeleteProperty$LWS(host$LWS, EVALUATOR_PROPERTY_NAME$LWS);
|
|
6194
|
+
ReflectDefineProperty$LWS(host$LWS, SANDBOXED_PROPERTY_NAME$LWS, {
|
|
6195
|
+
__proto__: null
|
|
6196
|
+
});
|
|
6197
|
+
const ownerDoc$LWS = ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, host$LWS, []);
|
|
6198
|
+
const globalObject$LWS = ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, ownerDoc$LWS, []);
|
|
6199
|
+
return () => evaluator$LWS(globalObject$LWS);
|
|
6200
|
+
}, [host$LWS])
|
|
6201
|
+
});
|
|
6202
|
+
return true;
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
function rawValue$LWS(host$LWS) {
|
|
6206
|
+
// @ts-ignore
|
|
6207
|
+
return host$LWS[RAW_VALUE_PROPERTY_NAME$LWS];
|
|
6208
|
+
}
|
|
6209
|
+
|
|
6210
|
+
function distortionNodeTextContentGetter$LWS(record$LWS) {
|
|
6155
6211
|
const {
|
|
6156
|
-
globalObject:
|
|
6157
|
-
|
|
6158
|
-
|
|
6212
|
+
globalObject: globalObject$LWS
|
|
6213
|
+
} = record$LWS;
|
|
6214
|
+
const {
|
|
6215
|
+
Node: Node$LWS
|
|
6216
|
+
} = globalObject$LWS;
|
|
6217
|
+
const originalTextContentGetter$LWS = ObjectLookupOwnGetter$LWS(Node$LWS.prototype, 'textContent');
|
|
6218
|
+
const {
|
|
6219
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
6220
|
+
SVGScriptElement: SVGScriptElement$LWS
|
|
6221
|
+
} = globalObject$LWS;
|
|
6222
|
+
|
|
6223
|
+
function textContent$LWS() {
|
|
6224
|
+
if (this instanceof HTMLScriptElement$LWS || this instanceof SVGScriptElement$LWS) {
|
|
6225
|
+
const rawSource$LWS = rawValue$LWS(this);
|
|
6226
|
+
|
|
6227
|
+
if (rawSource$LWS !== undefined) {
|
|
6228
|
+
return rawSource$LWS;
|
|
6229
|
+
}
|
|
6159
6230
|
}
|
|
6231
|
+
|
|
6232
|
+
return ReflectApply$LWS(originalTextContentGetter$LWS, this, []);
|
|
6233
|
+
}
|
|
6234
|
+
|
|
6235
|
+
return [originalTextContentGetter$LWS, textContent$LWS];
|
|
6236
|
+
}
|
|
6237
|
+
|
|
6238
|
+
function distortionNodeTextContentSetter$LWS(record$LWS) {
|
|
6239
|
+
const {
|
|
6240
|
+
globalObject: globalObject$LWS,
|
|
6241
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
6160
6242
|
} = record$LWS;
|
|
6243
|
+
const {
|
|
6244
|
+
Attr: Attr$LWS,
|
|
6245
|
+
Node: Node$LWS,
|
|
6246
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
6247
|
+
SVGScriptElement: SVGScriptElement$LWS
|
|
6248
|
+
} = globalObject$LWS;
|
|
6161
6249
|
const originalTextContentSetter$LWS = ObjectLookupOwnSetter$LWS(Node$LWS.prototype, 'textContent'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
6162
6250
|
// "globalObject" because future magenta objects (arbitrary user-code created global objects)
|
|
6163
6251
|
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
@@ -6194,6 +6282,18 @@ function distortionNodeTextContentSetter$LWS(record$LWS) {
|
|
|
6194
6282
|
if (distortion$LWS) {
|
|
6195
6283
|
return ReflectApply$LWS(distortion$LWS, ownerEl$LWS, [valueAsString$LWS]);
|
|
6196
6284
|
}
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
if (this instanceof HTMLScriptElement$LWS || this instanceof SVGScriptElement$LWS) {
|
|
6288
|
+
const didAttach$LWS = setEvaluatorFn$LWS(this, valueAsString$LWS, globalObject$LWS => {
|
|
6289
|
+
sandboxEvaluator$LWS(valueAsString$LWS, globalObject$LWS);
|
|
6290
|
+
ReflectApply$LWS(originalTextContentSetter$LWS, this, [valueAsString$LWS]);
|
|
6291
|
+
});
|
|
6292
|
+
|
|
6293
|
+
if (didAttach$LWS) {
|
|
6294
|
+
const overrideContent$LWS = inlineEvaluatorCall$LWS();
|
|
6295
|
+
return ReflectApply$LWS(originalTextContentSetter$LWS, this, [overrideContent$LWS]);
|
|
6296
|
+
}
|
|
6197
6297
|
} // istanbul ignore else: needs default platform behavior test
|
|
6198
6298
|
|
|
6199
6299
|
|
|
@@ -7875,7 +7975,7 @@ distortionElementSetAttribute$LWS, distortionElementSetAttributeNode$LWS, distor
|
|
|
7875
7975
|
distortionEventTargetAddEventListener$LWS, // HTMLScriptElement,
|
|
7876
7976
|
distortionHTMLScriptElementSrcSetter$LWS, // NamedNodeMap
|
|
7877
7977
|
distortionNamedNodeMapSetNamedItem$LWS, distortionNamedNodeMapSetNamedItemNS$LWS, // Node
|
|
7878
|
-
distortionNodeValueSetter$LWS, distortionNodeTextContentSetter$LWS, // Storage
|
|
7978
|
+
distortionNodeValueSetter$LWS, distortionNodeTextContentGetter$LWS, distortionNodeTextContentSetter$LWS, // Storage
|
|
7879
7979
|
distortionLocalStorage$LWS, distortionSessionStorage$LWS, // SVGAnimationElement
|
|
7880
7980
|
distortionSVGAnimateElementAttributeNameAttribute$LWS, // SVGScriptElement
|
|
7881
7981
|
distortionSVGScriptElementHrefAttribute$LWS, // SVGSetElement
|
|
@@ -7903,7 +8003,7 @@ const HTMLScriptElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
|
|
|
7903
8003
|
const SVGElementBlockedAttributes$LWS = ObjectFreeze$LWS(['nonce']);
|
|
7904
8004
|
const SVGElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
|
|
7905
8005
|
const XSLTProcessorBlockedProperties$LWS = ObjectFreeze$LWS(['transformToDocument', 'transformToFragment']);
|
|
7906
|
-
/*! version: 0.16.
|
|
8006
|
+
/*! version: 0.16.25 */
|
|
7907
8007
|
|
|
7908
8008
|
/*!
|
|
7909
8009
|
* Copyright (C) 2021 salesforce.com, inc.
|
|
@@ -8006,7 +8106,7 @@ class DefaultInstrumentation$LWS {
|
|
|
8006
8106
|
|
|
8007
8107
|
|
|
8008
8108
|
const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
|
|
8009
|
-
/*! version: 0.16.
|
|
8109
|
+
/*! version: 0.16.25 */
|
|
8010
8110
|
|
|
8011
8111
|
const Pt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const O=100,_=5,E=100,x=E/2,A="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",B={style:"margin-left:11px; margin-bottom: 3px;"},M={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},F={style:"color: #9d288c; font-weight: bold"},j={style:"color: #b17ab0"},H={style:"color: #16239f"},k={style:"color: #236d25"},R={style:"color: #606367"},I={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",R,`${t}`];if("boolean"==typeof t)return ["span",H,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",H,t]:["span",H,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:o}=e;if(o>E){const t=ReflectApply$LWS(StringProtoSlice$LWS,e,[0,x]),r=ReflectApply$LWS(StringProtoSlice$LWS,e,[o-x-1,o]);e=t+CHAR_ELLIPSIS$LWS+r;}return ["span",I,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},`{${CHAR_ELLIPSIS$LWS}}`]:["span",I,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const{t:r}=o,i=[];let b=0;r&&(i[b++]=["span",F,o.o],i[b++]=["span",{},": "]);const T=ReflectApply$LWS(ObjectProtoToString$LWS,t,[]);let P=ObjectKeys$LWS(t);if(T===TO_STRING_BRAND_SYMBOL$LWS)ReflectApply$LWS(ArrayProtoIncludes$LWS,P,["description"])||ReflectApply$LWS(ArrayProtoUnshift$LWS,P,["description"]);else if(T===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;P=ReflectApply$LWS(ArrayProtoFilter$LWS,P,[t=>{const o="string"==typeof t?+t:-1;return o<0||o>=e||!NumberIsInteger$LWS(o)}]);}const{length:w}=P;if(ArrayIsArray$LWS(t)){i[b++]=["span",r?R:{},`(${t.length}) [`];for(let e=0,o=MathMin$LWS(w,O);e<o;e+=1){const o=t[P[e]];i[b++]=["span",{},e?", ":""],i[b++]=formatValue$LWS(o);}return w>O&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"]"],i}let m,E="{";switch(T){case TO_STRING_BRAND_BIG_INT$LWS:case TO_STRING_BRAND_BOOLEAN$LWS:case TO_STRING_BRAND_NUMBER$LWS:case TO_STRING_BRAND_STRING$LWS:case TO_STRING_BRAND_SYMBOL$LWS:{let e=H;T===TO_STRING_BRAND_BIG_INT$LWS?e=k:T===TO_STRING_BRAND_SYMBOL$LWS&&(e=I),E=`${ReflectApply$LWS(StringProtoSlice$LWS,T,[8,-1])} {`,m=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}i[b++]=["span",{},E],m&&(i[b++]=m,w&&(i[b++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(w,_);e<o;e+=1){const o=P[e],r=t[o];i[b++]=["span",{},e?", ":""],i[b++]=["span",R,o],i[b++]=["span",{},": "],i[b++]=formatValue$LWS(r);}return w>_&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"}"],i},formatBody$LWS=function(t){const o=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ReflectApply$LWS(ArrayProtoSort$LWS,r,[]);const i=[];let a=0;for(let e=0,{length:s}=r;e<s;e+=1){const s=r[e],l=t[s];if(isObject$LWS(l))i[a++]=["div",{},["object",{object:l,config:{o:StringCtor$LWS(s),t:!0}}]];else {let t=F;"symbol"!=typeof s&&ReflectApply$LWS(ArrayProtoIncludes$LWS,o,[s])||(t=j),i[a++]=["div",B,["span",t,StringCtor$LWS(s)],["span",{},": "],formatValue$LWS(l)];}}return i};let{devtoolsFormatters:C}=window;ArrayIsArray$LWS(C)||(C=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:C,writable:!0})),C[C.length]={header(e,a={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Pt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const s=["div",{style:`${A}${a.t?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,s,formatHeader$LWS(e,a)),["div",{},s]},hasBody:()=>!0,body(t){const e=["div",M];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}const wt=Array,mt=WeakMap,{setPrototypeOf:Ot}=Reflect,{iterator:_t,toStringTag:Et,unscopables:xt}=Symbol,{prototype:At}=wt,{at:Bt,concat:Mt,copyWithin:Ft,entries:jt,every:Ht,fill:kt,filter:Rt,find:It,findIndex:Ct,flat:Nt,flatMap:Dt,forEach:Gt,includes:Kt,indexOf:Ut,join:Vt,keys:zt,lastIndexOf:Xt,map:Qt,pop:Zt,push:Jt,reduce:Yt,reduceRight:qt,reverse:te,shift:ee,slice:oe,some:re,sort:ne,splice:ie,toLocaleString:ae,toString:se,unshift:le,values:ce,[_t]:ue}=At,fe=Object.freeze(Object.assign({__proto__:null},At[xt])),{prototype:de}=mt,{delete:ye,get:pe,has:Se,set:he,[Et]:Le}=de;function toSafeWeakMap$LWS(t){return Ot(t,null),t.constructor=mt,t.delete=ye,t.get=pe,t.has=Se,t.set=he,t[Et]=Le,Ot(t,de),t}const ge=toSafeWeakMap$LWS(new WeakMap);function createMembraneMarshall$LWS(t){var e,o,r;const n=Array,i=ArrayBuffer,a=Error,s=Number,l=Object,c=Proxy,u=Reflect,f=RegExp,d=String,y=Symbol,p=TypeError,S=WeakMap,{for:h,toStringTag:L}=y,{apply:g,construct:$,defineProperty:W,deleteProperty:v,get:b,getOwnPropertyDescriptor:T,getPrototypeOf:P,has:w,isExtensible:m,ownKeys:O,preventExtensions:_,set:E,setPrototypeOf:x}=u,{assign:A,defineProperties:B,freeze:M,getOwnPropertyDescriptor:F,getOwnPropertyDescriptors:j,isFrozen:H,isSealed:k,keys:R,prototype:I,seal:C}=l,{hasOwnProperty:N,propertyIsEnumerable:D,toString:G}=I,{hasOwn:K}=l,{__defineGetter__:U,__defineSetter__:V,__lookupGetter__:z,__lookupSetter__:X}=I,Q="function"==typeof K?K:(t,e)=>g(N,t,[e]),Z="object"!=typeof t||null===t,J=Z?void 0:h("@@lockerDebugMode"),Y=Z?void 0:h("@@lockerLiveValue"),q=Z?void 0:h("@@lockerNearMembraneSerializedValue"),tt=Z?void 0:h("@@lockerNearMembrane"),et=h("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
|
|
8012
8112
|
/* $LWS */
|