lwc 2.5.3 → 2.5.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.
- package/dist/engine-dom/esm/es2017/engine-dom.js +75 -71
- package/dist/engine-dom/iife/es2017/engine-dom.js +75 -71
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +64 -52
- package/dist/engine-dom/iife/es5/engine-dom.js +115 -90
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +102 -69
- package/dist/engine-dom/umd/es2017/engine-dom.js +75 -71
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +64 -52
- package/dist/engine-dom/umd/es5/engine-dom.js +115 -90
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +102 -69
- package/dist/engine-server/commonjs/es2017/engine-server.js +57 -71
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
- package/dist/engine-server/esm/es2017/engine-server.js +57 -71
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +75 -39
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +75 -39
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +74 -38
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +75 -39
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +74 -38
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +75 -39
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +74 -38
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +75 -39
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +74 -38
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +8 -8
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
// we can't use typeof since it will fail when transpiling.
|
|
200
200
|
|
|
201
201
|
const hasNativeSymbolSupport = /*@__PURE__*/(() => Symbol('x').toString() === 'Symbol(x)')();
|
|
202
|
-
/** version: 2.5.
|
|
202
|
+
/** version: 2.5.4 */
|
|
203
203
|
|
|
204
204
|
/*
|
|
205
205
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
const runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
541
|
-
/** version: 2.5.
|
|
541
|
+
/** version: 2.5.4 */
|
|
542
542
|
|
|
543
543
|
/*
|
|
544
544
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
const currentTarget = eventCurrentTargetGetter.call(event);
|
|
599
599
|
|
|
600
600
|
if (process.env.NODE_ENV !== 'production') {
|
|
601
|
-
assert.invariant(isFalse(
|
|
601
|
+
assert.invariant(isFalse(isSyntheticShadowHost(currentTarget)), 'This routine should not be used to wrap event listeners for host elements and shadow roots.');
|
|
602
602
|
}
|
|
603
603
|
|
|
604
604
|
const {
|
|
@@ -1043,6 +1043,15 @@
|
|
|
1043
1043
|
function isNodeShadowed(node) {
|
|
1044
1044
|
return !isUndefined(getNodeOwnerKey(node));
|
|
1045
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Returns true if this node is a shadow host, is in a shadow host, or contains a shadow host
|
|
1048
|
+
* anywhere in its tree.
|
|
1049
|
+
*/
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
function isNodeOrDescendantsShadowed(node) {
|
|
1053
|
+
return isNodeShadowed(node) || isSyntheticShadowHost(node) || containsHost(node);
|
|
1054
|
+
}
|
|
1046
1055
|
/*
|
|
1047
1056
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
1048
1057
|
* All rights reserved.
|
|
@@ -1242,13 +1251,13 @@
|
|
|
1242
1251
|
}
|
|
1243
1252
|
|
|
1244
1253
|
function getFilteredChildNodes(node) {
|
|
1245
|
-
if (!
|
|
1254
|
+
if (!isSyntheticShadowHost(node) && !isSlotElement(node)) {
|
|
1246
1255
|
// regular element - fast path
|
|
1247
1256
|
const children = childNodesGetter.call(node);
|
|
1248
1257
|
return arrayFromCollection(children);
|
|
1249
1258
|
}
|
|
1250
1259
|
|
|
1251
|
-
if (
|
|
1260
|
+
if (isSyntheticShadowHost(node)) {
|
|
1252
1261
|
// we need to get only the nodes that were slotted
|
|
1253
1262
|
const slots = arrayFromCollection(querySelectorAll$1.call(node, 'slot'));
|
|
1254
1263
|
const resolver = getShadowRootResolver(getShadowRoot(node)); // Typescript is inferring the wrong function type for this particular
|
|
@@ -1690,7 +1699,7 @@
|
|
|
1690
1699
|
|
|
1691
1700
|
|
|
1692
1701
|
function hasMountedChildren(node) {
|
|
1693
|
-
return isSyntheticSlotElement(node) ||
|
|
1702
|
+
return isSyntheticSlotElement(node) || isSyntheticShadowHost(node);
|
|
1694
1703
|
}
|
|
1695
1704
|
|
|
1696
1705
|
function getShadowParent(node, value) {
|
|
@@ -1811,9 +1820,9 @@
|
|
|
1811
1820
|
|
|
1812
1821
|
|
|
1813
1822
|
function childNodesGetterPatched() {
|
|
1814
|
-
if (
|
|
1823
|
+
if (isSyntheticShadowHost(this)) {
|
|
1815
1824
|
const owner = getNodeOwner(this);
|
|
1816
|
-
const childNodes = isNull(owner) ?
|
|
1825
|
+
const childNodes = isNull(owner) ? getFilteredChildNodes(this) : getAllMatches(owner, getFilteredChildNodes(this));
|
|
1817
1826
|
|
|
1818
1827
|
if (process.env.NODE_ENV !== 'production' && isFalse(hasNativeSymbolSupport) && isExternalChildNodeAccessorFlagOn()) {
|
|
1819
1828
|
// inserting a comment node as the first childNode to trick the IE11
|
|
@@ -1924,7 +1933,8 @@
|
|
|
1924
1933
|
textContent: {
|
|
1925
1934
|
get() {
|
|
1926
1935
|
if (!runtimeFlags.ENABLE_NODE_PATCH) {
|
|
1927
|
-
|
|
1936
|
+
// See note on get innerHTML in faux-shadow/element.ts
|
|
1937
|
+
if (isNodeOrDescendantsShadowed(this)) {
|
|
1928
1938
|
return textContentGetterPatched.call(this);
|
|
1929
1939
|
}
|
|
1930
1940
|
|
|
@@ -2035,7 +2045,7 @@
|
|
|
2035
2045
|
return false;
|
|
2036
2046
|
}
|
|
2037
2047
|
|
|
2038
|
-
if (isNodeShadowed(this) ||
|
|
2048
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
2039
2049
|
return containsPatched.call(this, otherNode);
|
|
2040
2050
|
}
|
|
2041
2051
|
|
|
@@ -2057,7 +2067,7 @@
|
|
|
2057
2067
|
cloneNode: {
|
|
2058
2068
|
value(deep) {
|
|
2059
2069
|
if (!runtimeFlags.ENABLE_NODE_PATCH) {
|
|
2060
|
-
if (isNodeShadowed(this) ||
|
|
2070
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
2061
2071
|
return cloneNodePatched.call(this, deep);
|
|
2062
2072
|
}
|
|
2063
2073
|
|
|
@@ -2195,7 +2205,7 @@
|
|
|
2195
2205
|
} = document;
|
|
2196
2206
|
|
|
2197
2207
|
function hasInternalSlot(root) {
|
|
2198
|
-
return
|
|
2208
|
+
return InternalSlot.has(root);
|
|
2199
2209
|
}
|
|
2200
2210
|
|
|
2201
2211
|
function getInternalSlot(root) {
|
|
@@ -2249,14 +2259,36 @@
|
|
|
2249
2259
|
// and we can avoid having to cast the type before calling this method in a few places.
|
|
2250
2260
|
|
|
2251
2261
|
|
|
2252
|
-
function
|
|
2253
|
-
|
|
2262
|
+
function isSyntheticShadowHost(node) {
|
|
2263
|
+
const shadowRootRecord = InternalSlot.get(node);
|
|
2264
|
+
return !isUndefined(shadowRootRecord) && node === shadowRootRecord.host;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
function isSyntheticShadowRoot(node) {
|
|
2268
|
+
const shadowRootRecord = InternalSlot.get(node);
|
|
2269
|
+
return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
|
|
2270
|
+
} // Return true if any descendant is a host element
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
function containsHost(node) {
|
|
2274
|
+
// IE requires all arguments
|
|
2275
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker#browser_compatibility
|
|
2276
|
+
const walker = document.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, null, false);
|
|
2277
|
+
let descendant;
|
|
2278
|
+
|
|
2279
|
+
while (!isNull(descendant = walker.nextNode())) {
|
|
2280
|
+
if (isSyntheticShadowHost(descendant)) {
|
|
2281
|
+
return true;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
return false;
|
|
2254
2286
|
}
|
|
2255
2287
|
|
|
2256
2288
|
let uid = 0;
|
|
2257
2289
|
|
|
2258
2290
|
function attachShadow(elm, options) {
|
|
2259
|
-
if (
|
|
2291
|
+
if (InternalSlot.has(elm)) {
|
|
2260
2292
|
throw new Error(`Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.`);
|
|
2261
2293
|
}
|
|
2262
2294
|
|
|
@@ -2889,7 +2921,7 @@
|
|
|
2889
2921
|
} else {
|
|
2890
2922
|
current = current.parentNode;
|
|
2891
2923
|
}
|
|
2892
|
-
} else if ((current
|
|
2924
|
+
} else if ((isSyntheticShadowRoot(current) || isInstanceOfNativeShadowRoot(current)) && (composed || current !== startRoot)) {
|
|
2893
2925
|
current = current.host;
|
|
2894
2926
|
} else if (current instanceof _Node) {
|
|
2895
2927
|
current = current.parentNode;
|
|
@@ -2951,7 +2983,7 @@
|
|
|
2951
2983
|
lastRoot = root;
|
|
2952
2984
|
}
|
|
2953
2985
|
|
|
2954
|
-
if (!(root
|
|
2986
|
+
if (!isSyntheticShadowRoot(root) || !isUndefined(rootIdx) && rootIdx > -1) {
|
|
2955
2987
|
return ancestor;
|
|
2956
2988
|
}
|
|
2957
2989
|
}
|
|
@@ -3762,10 +3794,10 @@
|
|
|
3762
3794
|
if (ArrayIndexOf.call(targetObservers, this) === -1) {
|
|
3763
3795
|
ArrayPush.call(targetObservers, this);
|
|
3764
3796
|
} // else There is more bookkeeping to do here https://dom.spec.whatwg.org/#dom-mutationobserver-observe Step #7
|
|
3765
|
-
//
|
|
3797
|
+
// SyntheticShadowRoot instances are not actually a part of the DOM so observe the host instead.
|
|
3766
3798
|
|
|
3767
3799
|
|
|
3768
|
-
if (target
|
|
3800
|
+
if (isSyntheticShadowRoot(target)) {
|
|
3769
3801
|
target = target.host;
|
|
3770
3802
|
} // maintain a list of all nodes observed by this observer
|
|
3771
3803
|
|
|
@@ -3808,7 +3840,7 @@
|
|
|
3808
3840
|
*/
|
|
3809
3841
|
|
|
3810
3842
|
function patchedAddEventListener$1(type, listener, optionsOrCapture) {
|
|
3811
|
-
if (
|
|
3843
|
+
if (isSyntheticShadowHost(this)) {
|
|
3812
3844
|
// Typescript does not like it when you treat the `arguments` object as an array
|
|
3813
3845
|
// @ts-ignore type-mismatch
|
|
3814
3846
|
return addCustomElementEventListener.apply(this, arguments);
|
|
@@ -3836,7 +3868,7 @@
|
|
|
3836
3868
|
}
|
|
3837
3869
|
|
|
3838
3870
|
function patchedRemoveEventListener$1(_type, _listener, _optionsOrCapture) {
|
|
3839
|
-
if (
|
|
3871
|
+
if (isSyntheticShadowHost(this)) {
|
|
3840
3872
|
// Typescript does not like it when you treat the `arguments` object as an array
|
|
3841
3873
|
// @ts-ignore type-mismatch
|
|
3842
3874
|
return removeCustomElementEventListener.apply(this, arguments);
|
|
@@ -4002,7 +4034,7 @@
|
|
|
4002
4034
|
let actualCurrentTarget = originalCurrentTarget;
|
|
4003
4035
|
let actualPath = composedPath; // Address the possibility that `currentTarget` is a shadow root
|
|
4004
4036
|
|
|
4005
|
-
if (
|
|
4037
|
+
if (isSyntheticShadowHost(originalCurrentTarget)) {
|
|
4006
4038
|
const context = eventToContextMap.get(this);
|
|
4007
4039
|
|
|
4008
4040
|
if (context === 1
|
|
@@ -4013,7 +4045,7 @@
|
|
|
4013
4045
|
} // Address the possibility that `target` is a shadow root
|
|
4014
4046
|
|
|
4015
4047
|
|
|
4016
|
-
if (
|
|
4048
|
+
if (isSyntheticShadowHost(originalTarget) && eventToShadowRootMap.has(this)) {
|
|
4017
4049
|
actualPath = pathComposer(getShadowRoot(originalTarget), this.composed);
|
|
4018
4050
|
}
|
|
4019
4051
|
|
|
@@ -4050,7 +4082,7 @@
|
|
|
4050
4082
|
|
|
4051
4083
|
let actualTarget = originalTarget;
|
|
4052
4084
|
|
|
4053
|
-
if (
|
|
4085
|
+
if (isSyntheticShadowHost(originalTarget) && eventToShadowRootMap.has(this)) {
|
|
4054
4086
|
actualTarget = getShadowRoot(originalTarget);
|
|
4055
4087
|
}
|
|
4056
4088
|
|
|
@@ -4321,7 +4353,7 @@
|
|
|
4321
4353
|
const ownerKey = getNodeOwnerKey(context); // a node inside a shadow.
|
|
4322
4354
|
|
|
4323
4355
|
if (!isUndefined(ownerKey)) {
|
|
4324
|
-
if (
|
|
4356
|
+
if (isSyntheticShadowHost(context)) {
|
|
4325
4357
|
// element with shadowRoot attached
|
|
4326
4358
|
const owner = getNodeOwner(context);
|
|
4327
4359
|
|
|
@@ -4382,7 +4414,7 @@
|
|
|
4382
4414
|
}
|
|
4383
4415
|
|
|
4384
4416
|
function shadowRootGetterPatched() {
|
|
4385
|
-
if (
|
|
4417
|
+
if (isSyntheticShadowHost(this)) {
|
|
4386
4418
|
const shadow = getShadowRoot(this);
|
|
4387
4419
|
|
|
4388
4420
|
if (shadow.mode === 'open') {
|
|
@@ -4420,7 +4452,10 @@
|
|
|
4420
4452
|
innerHTML: {
|
|
4421
4453
|
get() {
|
|
4422
4454
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4423
|
-
|
|
4455
|
+
// If this element is in synthetic shadow, if it's a synthetic shadow host,
|
|
4456
|
+
// or if any of its descendants are synthetic shadow hosts, then we can't
|
|
4457
|
+
// use the native innerHTML because it would expose private node internals.
|
|
4458
|
+
if (isNodeOrDescendantsShadowed(this)) {
|
|
4424
4459
|
return innerHTMLGetterPatched.call(this);
|
|
4425
4460
|
}
|
|
4426
4461
|
|
|
@@ -4445,7 +4480,8 @@
|
|
|
4445
4480
|
outerHTML: {
|
|
4446
4481
|
get() {
|
|
4447
4482
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4448
|
-
|
|
4483
|
+
// See notes above on get innerHTML
|
|
4484
|
+
if (isNodeOrDescendantsShadowed(this)) {
|
|
4449
4485
|
return outerHTMLGetterPatched.call(this);
|
|
4450
4486
|
}
|
|
4451
4487
|
|
|
@@ -4550,7 +4586,7 @@
|
|
|
4550
4586
|
function querySelectorPatched() {
|
|
4551
4587
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4552
4588
|
|
|
4553
|
-
if (
|
|
4589
|
+
if (isSyntheticShadowHost(this)) {
|
|
4554
4590
|
// element with shadowRoot attached
|
|
4555
4591
|
const owner = getNodeOwner(this);
|
|
4556
4592
|
|
|
@@ -4601,7 +4637,7 @@
|
|
|
4601
4637
|
function getFilteredArrayOfNodes(context, unfilteredNodes, shadowDomSemantic) {
|
|
4602
4638
|
let filtered;
|
|
4603
4639
|
|
|
4604
|
-
if (
|
|
4640
|
+
if (isSyntheticShadowHost(context)) {
|
|
4605
4641
|
// element with shadowRoot attached
|
|
4606
4642
|
const owner = getNodeOwner(context);
|
|
4607
4643
|
|
|
@@ -4810,7 +4846,7 @@
|
|
|
4810
4846
|
|
|
4811
4847
|
|
|
4812
4848
|
function isTabbable(element) {
|
|
4813
|
-
if (
|
|
4849
|
+
if (isSyntheticShadowHost(element) && isDelegatingFocus(element)) {
|
|
4814
4850
|
return false;
|
|
4815
4851
|
}
|
|
4816
4852
|
|
|
@@ -5509,7 +5545,7 @@
|
|
|
5509
5545
|
disableKeyboardFocusNavigationRoutines();
|
|
5510
5546
|
}
|
|
5511
5547
|
|
|
5512
|
-
if (
|
|
5548
|
+
if (isSyntheticShadowHost(this) && isDelegatingFocus(this)) {
|
|
5513
5549
|
hostElementFocus.call(this);
|
|
5514
5550
|
return;
|
|
5515
5551
|
} // Typescript does not like it when you treat the `arguments` object as an array
|
|
@@ -5528,7 +5564,7 @@
|
|
|
5528
5564
|
defineProperties(HTMLElement.prototype, {
|
|
5529
5565
|
tabIndex: {
|
|
5530
5566
|
get() {
|
|
5531
|
-
if (
|
|
5567
|
+
if (isSyntheticShadowHost(this)) {
|
|
5532
5568
|
return tabIndexGetterPatched.call(this);
|
|
5533
5569
|
}
|
|
5534
5570
|
|
|
@@ -5536,7 +5572,7 @@
|
|
|
5536
5572
|
},
|
|
5537
5573
|
|
|
5538
5574
|
set(v) {
|
|
5539
|
-
if (
|
|
5575
|
+
if (isSyntheticShadowHost(this)) {
|
|
5540
5576
|
return tabIndexSetterPatched.call(this, v);
|
|
5541
5577
|
}
|
|
5542
5578
|
|
|
@@ -5548,7 +5584,7 @@
|
|
|
5548
5584
|
},
|
|
5549
5585
|
blur: {
|
|
5550
5586
|
value() {
|
|
5551
|
-
if (
|
|
5587
|
+
if (isSyntheticShadowHost(this)) {
|
|
5552
5588
|
return blurPatched.call(this);
|
|
5553
5589
|
}
|
|
5554
5590
|
|
|
@@ -5580,7 +5616,7 @@
|
|
|
5580
5616
|
}
|
|
5581
5617
|
|
|
5582
5618
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5583
|
-
if (isNodeShadowed(this) ||
|
|
5619
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5584
5620
|
return getInnerText(this);
|
|
5585
5621
|
}
|
|
5586
5622
|
|
|
@@ -5616,7 +5652,7 @@
|
|
|
5616
5652
|
}
|
|
5617
5653
|
|
|
5618
5654
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5619
|
-
if (isNodeShadowed(this) ||
|
|
5655
|
+
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5620
5656
|
return getInnerText(this);
|
|
5621
5657
|
}
|
|
5622
5658
|
|
|
@@ -5721,7 +5757,7 @@
|
|
|
5721
5757
|
if (node instanceof Element) {
|
|
5722
5758
|
setShadowToken(node, shadowToken);
|
|
5723
5759
|
|
|
5724
|
-
if (
|
|
5760
|
+
if (isSyntheticShadowHost(node)) {
|
|
5725
5761
|
// Root LWC elements can't get content slotted into them, therefore we don't observe their children.
|
|
5726
5762
|
return;
|
|
5727
5763
|
}
|
|
@@ -5828,6 +5864,6 @@
|
|
|
5828
5864
|
|
|
5829
5865
|
configurable: true
|
|
5830
5866
|
});
|
|
5831
|
-
/** version: 2.5.
|
|
5867
|
+
/** version: 2.5.4 */
|
|
5832
5868
|
|
|
5833
5869
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:i,getPrototypeOf:a,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:h}=Object,{filter:p,find:g,indexOf:m,join:d,map:b,push:E,reduce:y,reverse:w,slice:T,splice:v,unshift:N,forEach:L}=Array.prototype,{charCodeAt:M,replace:C,slice:S,toLowerCase:O}=String.prototype;function A(e){return void 0===e}function _(e){return null===e}function H(e){return!0===e}function R(e){return!1===e}function P(e){return"function"==typeof e}function D(e){return"object"==typeof e}const $=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),B="$shadowResolver$",I="$shadowToken$",k=Node,x=k.prototype,{DOCUMENT_POSITION_CONTAINED_BY:F,DOCUMENT_POSITION_CONTAINS:W,DOCUMENT_POSITION_PRECEDING:U,DOCUMENT_POSITION_FOLLOWING:j,ELEMENT_NODE:K,TEXT_NODE:G,CDATA_SECTION_NODE:q,PROCESSING_INSTRUCTION_NODE:X,COMMENT_NODE:V,DOCUMENT_FRAGMENT_NODE:Y}=k,{appendChild:z,cloneNode:J,compareDocumentPosition:Q,insertBefore:Z,removeChild:ee,replaceChild:te,hasChildNodes:ne}=x,{contains:le}=HTMLElement.prototype,oe=r(x,"firstChild").get,re=r(x,"lastChild").get,ie=r(x,"textContent").get,ae=r(x,"parentNode").get,ce=r(x,"ownerDocument").get,ue=c.call(x,"parentElement")?r(x,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,se=r(x,"textContent").set,fe=c.call(x,"childNodes")?r(x,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,he=c.call(x,"isConnected")?r(x,"isConnected").get:function(){const e=ce.call(this);return null===e||0!=(Q.call(e,this)&F)},{getAttribute:pe,getBoundingClientRect:ge,getElementsByTagName:me,getElementsByTagNameNS:de,hasAttribute:be,querySelector:Ee,querySelectorAll:ye,removeAttribute:we,setAttribute:Te}=Element.prototype,ve=c.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Ne=r(Element.prototype,"childElementCount").get,Le=r(Element.prototype,"firstElementChild").get,Me=r(Element.prototype,"lastElementChild").get,Ce=r(HTMLElement.prototype,"innerText"),Se=Ce?Ce.get:null,Oe=Ce?Ce.set:null,Ae=r(HTMLElement.prototype,"outerText"),_e=Ae?Ae.get:null,He=Ae?Ae.set:null,Re=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),Pe=Re.get,De=Re.set,$e=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Be=$e.get,Ie=$e.set,ke=r(Element.prototype,"tagName").get,xe=r(HTMLElement.prototype,"tabIndex"),Fe=xe.get,We=xe.set,Ue=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,je=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:Ke}=HTMLElement.prototype,Ge=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null;let qe,Xe;"undefined"!=typeof HTMLSlotElement?(qe=HTMLSlotElement.prototype.assignedNodes,Xe=HTMLSlotElement.prototype.assignedElements):(qe=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},Xe=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const Ve=r(Event.prototype,"target").get,Ye=r(Event.prototype,"currentTarget").get,ze=r(FocusEvent.prototype,"relatedTarget").get,Je=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],Qe=r(Document.prototype,"activeElement").get,Ze=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,et=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,tt=r(Document.prototype,"defaultView").get,{createComment:nt,querySelectorAll:lt,getElementById:ot,getElementsByClassName:rt,getElementsByTagName:it,getElementsByTagNameNS:at}=Document.prototype,{getElementsByName:ct}=HTMLDocument.prototype,{addEventListener:ut,removeEventListener:st,getComputedStyle:ft,getSelection:ht}=window,pt=MutationObserver,gt=pt.prototype.observe;let mt=null;"undefined"!=typeof ShadowRoot&&(mt=ShadowRoot);const dt=!_(mt),bt=_(mt)?()=>!1:e=>e instanceof mt;const{createElement:Et}=Document.prototype;function yt(e){const t=ce.call(e);return null===t?e:t}function wt(e){const t=yt(e),n=tt.call(t);if(null===n)throw new TypeError;return n}let Tt;function vt(e){if(A(Tt)){const t=yt(e);Tt=t.body&&"temporary-bypass"===pe.call(t.body,"data-global-patching-bypass")}return H(Tt)}function Nt(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}h(e,HTMLElement.constructor),h(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=Et.apply(this,T.call(arguments));return 4===t.length&&115===M.call(t,0)&&108===M.call(t,1)&&111===M.call(t,2)&&116===M.call(t,3)&&h(l,e.prototype),l}})}(),$.lwcRuntimeFlags||Object.defineProperty($,"lwcRuntimeFlags",{value:t(null)});const Lt=$.lwcRuntimeFlags,Mt="undefined"!=typeof EventTarget?EventTarget.prototype:k.prototype,{addEventListener:Ct,dispatchEvent:St,removeEventListener:Ot}=Mt,At=new WeakMap,_t=new WeakMap;function Ht(e,t,n){if(t===n)return!0;let l=_t.get(e);return A(l)&&(l=e.composedPath(),_t.set(e,l)),l.includes(n)}function Rt(e){if(!function(e){return P(e)||D(e)&&!_(e)&&P(e.handleEvent)}(e))return e;let t=At.get(e);return A(t)&&(t=function(t){const n=Ye.call(t),{composed:l}=t;let o;if(Lt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)o=!(al.has(t)&&R(l));else{o=Ht(t,xt(t),n)}if(o)return P(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},At.set(e,t)),t}const Pt=new WeakMap;function Dt(e,t){return!!(Q.call(e,t)&F)}const $t={composed:!1};function Bt(e,t){let n=e.getRootNode(t);return"mode"in n&&"delegatesFocus"in n&&(n=el(n)),n}const It=new WeakMap;function kt(e){let n=It.get(e);return A(n)&&(n=t(null),It.set(e,n)),n}function xt(e){var t;return null!==(t=al.get(e))&&void 0!==t?t:Ve.call(e)}const Ft=new WeakMap;function Wt(e){if(!P(e))throw new TypeError;let t=Ft.get(e);return A(t)&&(t=function(t){let n,l=Ye.call(t);if(bt(l)||(l=tl(l)),Lt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)n=function(e){const{composed:t}=e,n=Ve.call(e),l=Ye.call(e);if(n===l)return al.get(e)===tl(n);if(H(t))return!0;if(H(al.has(e)))return!1;const o=Bt(n,$t),r=l;return Dt(o,r)||o===r}(t);else{n=Ht(t,xt(t),l)}n&&e.call(l,t)},t.placement=1,Ft.set(e,t)),t}const Ut=new WeakMap;function jt(e){if(!P(e))throw new TypeError;let t=Ut.get(e);return A(t)&&(t=function(t){const n=Ye.call(t);let l;if(Lt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)l=function(e){const{composed:t}=e;if(H(t))return!0;if(al.has(e))return!1;const n=Ve.call(e),l=Ye.call(e);if(n===l)return!0;const o=Bt(n,$t);return Dt(o,l)}(t);else{l=Ht(t,xt(t),n)}l&&e.call(n,t)},t.placement=0,Ut.set(e,t)),t}function Kt(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:i}=e,a=kt(Ye.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,i.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=T.call(a);function u(n){L.call(c,(l=>{R(t)&&l.placement===n&&-1!==m.call(a,l)&&l.call(void 0,e)}))}Pt.set(e,1),u(1),R(t)&&R(n)&&(Pt.set(e,0),u(0)),Pt.set(e,2)}function Gt(e,t,n){const l=kt(e);let o=l[t];A(o)&&(o=l[t]=[]),-1===m.call(o,n)&&(0===o.length&&Ct.call(e,t,Kt),E.call(o,n))}function qt(e,t,n){let l,o;A(o=kt(e)[t])||-1===(l=m.call(o,n))||(v.call(o,l,1),0===o.length&&Ot.call(e,t,Kt))}function Xt(e,t,n){if(P(t)){Gt(this,e,jt(t))}}function Vt(e,t,n){if(P(t)){qt(this,e,jt(t))}}const Yt="$$HostElementKey$$",zt="$$ShadowedNodeKey$$";function Jt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function Qt(e){return e[Yt]}function Zt(e){let t,n=e;for(;!_(n);){if(t=Qt(n),!A(t))return t;n=ae.call(n)}}function en(e){return e[zt]}function tn(e){return!A(Qt(e))}function nn(e){let t=ue.call(e);for(;!_(t)&&an(t);)e=t,t=ue.call(e);return e}function ln(e,t){const n=en(e);let l=t instanceof Element?t:ue.call(t);for(;!_(l)&&l!==e;){const t=Zt(l),o=ue.call(l);if(t===n)return an(l);if(o===e)return!1;if(_(o)||Zt(o)===t)l=o;else{if(!an(o))return!1;if(l=on(nn(o)),!_(l)){if(l===e)return!0;if(Zt(l)===n)return!0}}}return!1}function on(e){if(!(e instanceof k))return null;const t=Zt(e);if(A(t))return null;let n=e;for(;!_(n)&&en(n)!==t;)n=ae.call(n);return _(n)?null:n}function rn(e){return an(e)&&tn(e)}function an(e){return e instanceof HTMLSlotElement}function cn(e,t){const n=Zt(t);return A(n)||en(e)===n}function un(e){const t=el(e);return hn(t,Nt(fe.call(t)))}function sn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!cn(e,o)&&ln(e,o)&&E.call(n,o)}return n}function fn(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!cn(e,l)&&ln(e,l))return l}return null}function hn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];cn(e,o)&&E.call(n,o)}return n}function pn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(cn(e,t[n]))return t[n];return null}function gn(e){if(!nl(e)&&!an(e)){return Nt(fe.call(e))}if(nl(e)){const t=Nt(ye.call(e,"slot")),n=Jn(tl(e));return y.call(t,((e,t)=>(n===Jn(t)&&E.apply(e,mn(t)),e)),[])}{const t=Nt(fe.call(e)),n=Jn(e);return p.call(t,(e=>n===Jn(e)))}}function mn(e){const t=on(e);if(_(t))return[];const n=Nt(fe.call(e));return p.call(n,(e=>!tn(e)||!cn(t,e)))}function dn(e){switch(e.nodeType){case K:{const t=gn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==V&&(n+=dn(l))}return n}default:return e.nodeValue}}const bn=new WeakMap;function En(){throw new TypeError("Illegal constructor")}function yn(e){const n=t(En.prototype);return bn.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}En.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:En},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return bn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(bn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(bn.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(bn.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return bn.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=bn.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),h(En,NodeList);const wn=new WeakMap;function Tn(){throw new TypeError("Illegal constructor")}function vn(e){const n=t(Tn.prototype);return wn.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}Tn.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Tn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return wn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=wn.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===pe.call(n,"id")||e===pe.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),h(Tn,HTMLCollection);const Nn=/[&\u00A0"]/g,Ln=/[&\u00A0<>]/g,{replace:Mn,toLowerCase:Cn}=String.prototype;function Sn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function On(e){return Mn.call(e,Nn,Sn)}const An=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),_n=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Hn(e){switch(e.nodeType){case K:{const{attributes:t}=e,n=ke.call(e);let l="<"+Cn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+On(e.value)+'"';return l+=">",An.has(n)?l:l+function(e){let t="";const n=gn(e);for(let e=0,l=n.length;e<l;e+=1)t+=Hn(n[e]);return t}(e)+"</"+Cn.call(n)+">"}case G:{const{data:n,parentNode:l}=e;return l instanceof Element&&_n.has(ke.call(l))?n:(t=n,Mn.call(t,Ln,Sn))}case q:return`<!CDATA[[${e.data}]]>`;case X:return`<?${e.target} ${e.data}?>`;case V:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function Rn(e){return rn(e)||nl(e)}function Pn(e,t){const n=on(e);if(t===n)return tl(n);if(t instanceof Element){if(Zt(e)===Zt(t))return t;if(!_(n)&&an(t)){const e=on(t);if(!_(e)&&cn(n,e))return e}}return null}function Dn(){return qn(this).length>0}function $n(){return qn(this)[0]||null}function Bn(){const e=qn(this);return e[e.length-1]||null}function In(){return dn(this)}function kn(){const e=ae.call(this);return _(e)?e:Pn(this,e)}function xn(){const e=ae.call(this);if(_(e))return null;const t=Pn(this,e);return t instanceof Element?t:null}function Fn(e){return this.getRootNode()===e?10:Qt(this)!==Qt(e)?35:Q.call(this,e)}function Wn(e){return null!=e&&Qt(this)===Qt(e)&&0!=(Q.call(this,e)&F)}function Un(e){const t=J.call(this,!1);if(!e)return t;const n=qn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function jn(){if(nl(this)){const e=on(this);return yn(_(e)?[]:hn(e,gn(this)))}return fe.call(this)}const Kn=k.prototype.getRootNode,Gn=A(Kn)?function(){let e,t=this;for(;!_(e=ae.call(t));)t=e;return t}:Kn;n(k.prototype,{firstChild:{get(){return Rn(this)?$n.call(this):oe.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Rn(this)?Bn.call(this):re.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Lt.ENABLE_NODE_PATCH?vt(this)?ie.call(this):In.call(this):tn(this)||nl(this)?In.call(this):ie.call(this)},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(tn(this))return kn.call(this);const e=ae.call(this);return!_(e)&&rn(e)?on(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(tn(this))return xn.call(this);const e=ue.call(this);return!_(e)&&rn(e)?on(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Rn(this)?jn.call(this):fe.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Rn(this)?Dn.call(this):ne.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return vt(this)?Q.call(this,e):Fn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||(Lt.ENABLE_NODE_PATCH?vt(this)?le.call(this,e):Wn.call(this,e):null!=e&&(tn(this)||nl(this)?Wn.call(this,e):le.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Lt.ENABLE_NODE_PATCH?H(e)?vt(this)?J.call(this,e):Un.call(this,e):J.call(this,e):tn(this)||nl(this)?Un.call(this,e):J.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return H(!A(e)&&!!e.composed)?Gn.call(this,e):function(e){const t=on(e);return _(t)?Gn.call(e):tl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(this)}}});const qn=function(e){return e.childNodes};function Xn(e,t,n,l){const o=et.call(t,n,l),r=[],i=function(e){var t;const n=[];let l=e.getRootNode();for(;!A(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!_(o))for(let e=0;e<o.length;e++){const t=o[e];-1===i.indexOf(t.getRootNode())||rn(t)||r.push(t)}return r}c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(k.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(k.prototype,"parentElement"));const Vn=new WeakMap,{createDocumentFragment:Yn}=document;function zn(e){const t=Vn.get(e);if(A(t))throw new TypeError;return t}function Jn(e){return e.$shadowResolver$}function Qn(e,t){e.$shadowResolver$=t}function Zn(e){return zn(e).delegatesFocus}function el(e){return zn(e).host}function tl(e){return zn(e).shadowRoot}function nl(e){return!A(Vn.get(e))}l(k.prototype,B,{set(e){var t,n;A(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Jt(t,Yt,{value:n,configurable:!0}))},get(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),l($,"$isNativeShadowRootDefined$",{value:dt});let ll=0;function ol(e,t){if(!A(Vn.get(e)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:l}=t,o=yt(e),r=Yn.call(o),i={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};Vn.set(r,i),Vn.set(e,i);const a=()=>r,c=a.nodeKey=ll++;return Jt(e,zt,{value:c}),Qn(r,a),h(r,cl.prototype),r}const rl={constructor:{writable:!0,configurable:!0,value:cl},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}},il={activeElement:{enumerable:!0,configurable:!0,get(){const e=el(this),t=yt(e),n=Qe.call(t);if(_(n))return n;if(0==(Q.call(e,n)&F))return null;let l=n;for(;!cn(e,l);)l=ue.call(l);return an(l)?null:l}},delegatesFocus:{configurable:!0,get(){return zn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return fl(this,yt(el(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Xn(this,yt(el(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return el(this)}},mode:{configurable:!0,get(){return zn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},al=new WeakMap;function cl(){throw new TypeError("Illegal constructor")}function ul(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof k))return n;l=e.getRootNode()}let o,r=e;for(;!_(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=_(e)?r.parentNode:e}else r=(r instanceof cl||bt(r))&&(t||r!==l)?r.host:r instanceof k?r.parentNode:null;return o=e instanceof Window?e.document:yt(e),n[n.length-1]===o&&n.push(window),n}
|
|
1
|
+
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:i,getPrototypeOf:c,hasOwnProperty:a,isFrozen:u,keys:s,seal:f,setPrototypeOf:h}=Object,{filter:p,find:g,indexOf:m,join:d,map:b,push:E,reduce:y,reverse:w,slice:T,splice:v,unshift:N,forEach:L}=Array.prototype,{charCodeAt:M,replace:C,slice:S,toLowerCase:O}=String.prototype;function _(e){return void 0===e}function A(e){return null===e}function H(e){return!0===e}function R(e){return!1===e}function P(e){return"function"==typeof e}function D(e){return"object"==typeof e}const $=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),B="$shadowResolver$",I="$shadowToken$",k=Node,x=k.prototype,{DOCUMENT_POSITION_CONTAINED_BY:F,DOCUMENT_POSITION_CONTAINS:W,DOCUMENT_POSITION_PRECEDING:U,DOCUMENT_POSITION_FOLLOWING:j,ELEMENT_NODE:K,TEXT_NODE:G,CDATA_SECTION_NODE:q,PROCESSING_INSTRUCTION_NODE:X,COMMENT_NODE:V,DOCUMENT_FRAGMENT_NODE:Y}=k,{appendChild:z,cloneNode:J,compareDocumentPosition:Q,insertBefore:Z,removeChild:ee,replaceChild:te,hasChildNodes:ne}=x,{contains:le}=HTMLElement.prototype,oe=r(x,"firstChild").get,re=r(x,"lastChild").get,ie=r(x,"textContent").get,ce=r(x,"parentNode").get,ae=r(x,"ownerDocument").get,ue=a.call(x,"parentElement")?r(x,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,se=r(x,"textContent").set,fe=a.call(x,"childNodes")?r(x,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,he=a.call(x,"isConnected")?r(x,"isConnected").get:function(){const e=ae.call(this);return null===e||0!=(Q.call(e,this)&F)},{getAttribute:pe,getBoundingClientRect:ge,getElementsByTagName:me,getElementsByTagNameNS:de,hasAttribute:be,querySelector:Ee,querySelectorAll:ye,removeAttribute:we,setAttribute:Te}=Element.prototype,ve=a.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Ne=r(Element.prototype,"childElementCount").get,Le=r(Element.prototype,"firstElementChild").get,Me=r(Element.prototype,"lastElementChild").get,Ce=r(HTMLElement.prototype,"innerText"),Se=Ce?Ce.get:null,Oe=Ce?Ce.set:null,_e=r(HTMLElement.prototype,"outerText"),Ae=_e?_e.get:null,He=_e?_e.set:null,Re=a.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),Pe=Re.get,De=Re.set,$e=a.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Be=$e.get,Ie=$e.set,ke=r(Element.prototype,"tagName").get,xe=r(HTMLElement.prototype,"tabIndex"),Fe=xe.get,We=xe.set,Ue=a.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,je=a.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:Ke}=HTMLElement.prototype,Ge=a.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null;let qe,Xe;"undefined"!=typeof HTMLSlotElement?(qe=HTMLSlotElement.prototype.assignedNodes,Xe=HTMLSlotElement.prototype.assignedElements):(qe=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},Xe=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const Ve=r(Event.prototype,"target").get,Ye=r(Event.prototype,"currentTarget").get,ze=r(FocusEvent.prototype,"relatedTarget").get,Je=a.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],Qe=r(Document.prototype,"activeElement").get,Ze=a.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,et=a.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,tt=r(Document.prototype,"defaultView").get,{createComment:nt,querySelectorAll:lt,getElementById:ot,getElementsByClassName:rt,getElementsByTagName:it,getElementsByTagNameNS:ct}=Document.prototype,{getElementsByName:at}=HTMLDocument.prototype,{addEventListener:ut,removeEventListener:st,getComputedStyle:ft,getSelection:ht}=window,pt=MutationObserver,gt=pt.prototype.observe;let mt=null;"undefined"!=typeof ShadowRoot&&(mt=ShadowRoot);const dt=!A(mt),bt=A(mt)?()=>!1:e=>e instanceof mt;const{createElement:Et}=Document.prototype;function yt(e){const t=ae.call(e);return null===t?e:t}function wt(e){const t=yt(e),n=tt.call(t);if(null===n)throw new TypeError;return n}let Tt;function vt(e){if(_(Tt)){const t=yt(e);Tt=t.body&&"temporary-bypass"===pe.call(t.body,"data-global-patching-bypass")}return H(Tt)}function Nt(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}h(e,HTMLElement.constructor),h(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=Et.apply(this,T.call(arguments));return 4===t.length&&115===M.call(t,0)&&108===M.call(t,1)&&111===M.call(t,2)&&116===M.call(t,3)&&h(l,e.prototype),l}})}(),$.lwcRuntimeFlags||Object.defineProperty($,"lwcRuntimeFlags",{value:t(null)});const Lt=$.lwcRuntimeFlags,Mt="undefined"!=typeof EventTarget?EventTarget.prototype:k.prototype,{addEventListener:Ct,dispatchEvent:St,removeEventListener:Ot}=Mt,_t=new WeakMap,At=new WeakMap;function Ht(e,t,n){if(t===n)return!0;let l=At.get(e);return _(l)&&(l=e.composedPath(),At.set(e,l)),l.includes(n)}function Rt(e){if(!function(e){return P(e)||D(e)&&!A(e)&&P(e.handleEvent)}(e))return e;let t=_t.get(e);return _(t)&&(t=function(t){const n=Ye.call(t),{composed:l}=t;let o;if(Lt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)o=!(ul.has(t)&&R(l));else{o=Ht(t,xt(t),n)}if(o)return P(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},_t.set(e,t)),t}const Pt=new WeakMap;function Dt(e,t){return!!(Q.call(e,t)&F)}const $t={composed:!1};function Bt(e,t){let n=e.getRootNode(t);return"mode"in n&&"delegatesFocus"in n&&(n=tl(n)),n}const It=new WeakMap;function kt(e){let n=It.get(e);return _(n)&&(n=t(null),It.set(e,n)),n}function xt(e){var t;return null!==(t=ul.get(e))&&void 0!==t?t:Ve.call(e)}const Ft=new WeakMap;function Wt(e){if(!P(e))throw new TypeError;let t=Ft.get(e);return _(t)&&(t=function(t){let n,l=Ye.call(t);if(bt(l)||(l=nl(l)),Lt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)n=function(e){const{composed:t}=e,n=Ve.call(e),l=Ye.call(e);if(n===l)return ul.get(e)===nl(n);if(H(t))return!0;if(H(ul.has(e)))return!1;const o=Bt(n,$t),r=l;return Dt(o,r)||o===r}(t);else{n=Ht(t,xt(t),l)}n&&e.call(l,t)},t.placement=1,Ft.set(e,t)),t}const Ut=new WeakMap;function jt(e){if(!P(e))throw new TypeError;let t=Ut.get(e);return _(t)&&(t=function(t){const n=Ye.call(t);let l;if(Lt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)l=function(e){const{composed:t}=e;if(H(t))return!0;if(ul.has(e))return!1;const n=Ve.call(e),l=Ye.call(e);if(n===l)return!0;const o=Bt(n,$t);return Dt(o,l)}(t);else{l=Ht(t,xt(t),n)}l&&e.call(n,t)},t.placement=0,Ut.set(e,t)),t}function Kt(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:i}=e,c=kt(Ye.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,i.call(e)},writable:!0,enumerable:!0,configurable:!0});const a=T.call(c);function u(n){L.call(a,(l=>{R(t)&&l.placement===n&&-1!==m.call(c,l)&&l.call(void 0,e)}))}Pt.set(e,1),u(1),R(t)&&R(n)&&(Pt.set(e,0),u(0)),Pt.set(e,2)}function Gt(e,t,n){const l=kt(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===m.call(o,n)&&(0===o.length&&Ct.call(e,t,Kt),E.call(o,n))}function qt(e,t,n){let l,o;_(o=kt(e)[t])||-1===(l=m.call(o,n))||(v.call(o,l,1),0===o.length&&Ot.call(e,t,Kt))}function Xt(e,t,n){if(P(t)){Gt(this,e,jt(t))}}function Vt(e,t,n){if(P(t)){qt(this,e,jt(t))}}const Yt="$$HostElementKey$$",zt="$$ShadowedNodeKey$$";function Jt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function Qt(e){return e[Yt]}function Zt(e){let t,n=e;for(;!A(n);){if(t=Qt(n),!_(t))return t;n=ce.call(n)}}function en(e){return e[zt]}function tn(e){return!_(Qt(e))}function nn(e){return tn(e)||ll(e)||function(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1);let n;for(;!A(n=t.nextNode());)if(ll(n))return!0;return!1}(e)}function ln(e){let t=ue.call(e);for(;!A(t)&&an(t);)e=t,t=ue.call(e);return e}function on(e,t){const n=en(e);let l=t instanceof Element?t:ue.call(t);for(;!A(l)&&l!==e;){const t=Zt(l),o=ue.call(l);if(t===n)return an(l);if(o===e)return!1;if(A(o)||Zt(o)===t)l=o;else{if(!an(o))return!1;if(l=rn(ln(o)),!A(l)){if(l===e)return!0;if(Zt(l)===n)return!0}}}return!1}function rn(e){if(!(e instanceof k))return null;const t=Zt(e);if(_(t))return null;let n=e;for(;!A(n)&&en(n)!==t;)n=ce.call(n);return A(n)?null:n}function cn(e){return an(e)&&tn(e)}function an(e){return e instanceof HTMLSlotElement}function un(e,t){const n=Zt(t);return _(n)||en(e)===n}function sn(e){const t=tl(e);return pn(t,Nt(fe.call(t)))}function fn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!un(e,o)&&on(e,o)&&E.call(n,o)}return n}function hn(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!un(e,l)&&on(e,l))return l}return null}function pn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];un(e,o)&&E.call(n,o)}return n}function gn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(un(e,t[n]))return t[n];return null}function mn(e){if(!ll(e)&&!an(e)){return Nt(fe.call(e))}if(ll(e)){const t=Nt(ye.call(e,"slot")),n=Qn(nl(e));return y.call(t,((e,t)=>(n===Qn(t)&&E.apply(e,dn(t)),e)),[])}{const t=Nt(fe.call(e)),n=Qn(e);return p.call(t,(e=>n===Qn(e)))}}function dn(e){const t=rn(e);if(A(t))return[];const n=Nt(fe.call(e));return p.call(n,(e=>!tn(e)||!un(t,e)))}function bn(e){if(e.nodeType===K){const t=mn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==V&&(n+=bn(l))}return n}return e.nodeValue}const En=new WeakMap;function yn(){throw new TypeError("Illegal constructor")}function wn(e){const n=t(yn.prototype);return En.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}yn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:yn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return En.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(En.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(En.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(En.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return En.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=En.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),h(yn,NodeList);const Tn=new WeakMap;function vn(){throw new TypeError("Illegal constructor")}function Nn(e){const n=t(vn.prototype);return Tn.set(n,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}vn.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:vn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Tn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=Tn.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===pe.call(n,"id")||e===pe.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),h(vn,HTMLCollection);const Ln=/[&\u00A0"]/g,Mn=/[&\u00A0<>]/g,{replace:Cn,toLowerCase:Sn}=String.prototype;function On(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function _n(e){return Cn.call(e,Ln,On)}const An=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Hn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Rn(e){switch(e.nodeType){case K:{const{attributes:t}=e,n=ke.call(e);let l="<"+Sn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+_n(e.value)+'"';return l+=">",An.has(n)?l:l+function(e){let t="";const n=mn(e);for(let e=0,l=n.length;e<l;e+=1)t+=Rn(n[e]);return t}(e)+"</"+Sn.call(n)+">"}case G:{const{data:n,parentNode:l}=e;return l instanceof Element&&Hn.has(ke.call(l))?n:(t=n,Cn.call(t,Mn,On))}case q:return`<!CDATA[[${e.data}]]>`;case X:return`<?${e.target} ${e.data}?>`;case V:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function Pn(e){return cn(e)||ll(e)}function Dn(e,t){const n=rn(e);if(t===n)return nl(n);if(t instanceof Element){if(Zt(e)===Zt(t))return t;if(!A(n)&&an(t)){const e=rn(t);if(!A(e)&&un(n,e))return e}}return null}function $n(){return Xn(this).length>0}function Bn(){return Xn(this)[0]||null}function In(){const e=Xn(this);return e[e.length-1]||null}function kn(){return bn(this)}function xn(){const e=ce.call(this);return A(e)?e:Dn(this,e)}function Fn(){const e=ce.call(this);if(A(e))return null;const t=Dn(this,e);return t instanceof Element?t:null}function Wn(e){return this.getRootNode()===e?10:Qt(this)!==Qt(e)?35:Q.call(this,e)}function Un(e){return null!=e&&Qt(this)===Qt(e)&&0!=(Q.call(this,e)&F)}function jn(e){const t=J.call(this,!1);if(!e)return t;const n=Xn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Kn(){if(ll(this)){const e=rn(this);return wn(A(e)?mn(this):pn(e,mn(this)))}return fe.call(this)}const Gn=k.prototype.getRootNode,qn=_(Gn)?function(){let e,t=this;for(;!A(e=ce.call(t));)t=e;return t}:Gn;n(k.prototype,{firstChild:{get(){return Pn(this)?Bn.call(this):oe.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Pn(this)?In.call(this):re.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Lt.ENABLE_NODE_PATCH?vt(this)?ie.call(this):kn.call(this):nn(this)?kn.call(this):ie.call(this)},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(tn(this))return xn.call(this);const e=ce.call(this);return!A(e)&&cn(e)?rn(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(tn(this))return Fn.call(this);const e=ue.call(this);return!A(e)&&cn(e)?rn(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Pn(this)?Kn.call(this):fe.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Pn(this)?$n.call(this):ne.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return vt(this)?Q.call(this,e):Wn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||(Lt.ENABLE_NODE_PATCH?vt(this)?le.call(this,e):Un.call(this,e):null!=e&&(tn(this)||ll(this)?Un.call(this,e):le.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Lt.ENABLE_NODE_PATCH?H(e)?vt(this)?J.call(this,e):jn.call(this,e):J.call(this,e):tn(this)||ll(this)?jn.call(this,e):J.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return H(!_(e)&&!!e.composed)?qn.call(this,e):function(e){const t=rn(e);return A(t)?qn.call(e):nl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(this)}}});const Xn=function(e){return e.childNodes};function Vn(e,t,n,l){const o=et.call(t,n,l),r=[],i=function(e){var t;const n=[];let l=e.getRootNode();for(;!_(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!A(o))for(let e=0;e<o.length;e++){const t=o[e];-1===i.indexOf(t.getRootNode())||cn(t)||r.push(t)}return r}a.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(k.prototype,"contains")),a.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(k.prototype,"parentElement"));const Yn=new WeakMap,{createDocumentFragment:zn}=document;function Jn(e){const t=Yn.get(e);if(_(t))throw new TypeError;return t}function Qn(e){return e.$shadowResolver$}function Zn(e,t){e.$shadowResolver$=t}function el(e){return Jn(e).delegatesFocus}function tl(e){return Jn(e).host}function nl(e){return Jn(e).shadowRoot}function ll(e){const t=Yn.get(e);return!_(t)&&e===t.host}function ol(e){const t=Yn.get(e);return!_(t)&&e===t.shadowRoot}l(k.prototype,B,{set(e){var t,n;_(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Jt(t,Yt,{value:n,configurable:!0}))},get(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),l($,"$isNativeShadowRootDefined$",{value:dt});let rl=0;function il(e,t){if(Yn.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:l}=t,o=yt(e),r=zn.call(o),i={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};Yn.set(r,i),Yn.set(e,i);const c=()=>r,a=c.nodeKey=rl++;return Jt(e,zt,{value:a}),Zn(r,c),h(r,fl.prototype),r}const cl={constructor:{writable:!0,configurable:!0,value:fl},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}},al={activeElement:{enumerable:!0,configurable:!0,get(){const e=tl(this),t=yt(e),n=Qe.call(t);if(A(n))return n;if(0==(Q.call(e,n)&F))return null;let l=n;for(;!un(e,l);)l=ue.call(l);return an(l)?null:l}},delegatesFocus:{configurable:!0,get(){return Jn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return gl(this,yt(tl(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Vn(this,yt(tl(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return tl(this)}},mode:{configurable:!0,get(){return Jn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},ul=new WeakMap,sl={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Z.call(tl(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ee.call(tl(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return z.call(tl(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return te.call(tl(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&Gt(tl(e),t,Wt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return ul.set(e,this),St.apply(tl(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&qt(tl(e),t,Wt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return tl(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return wn(sn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=tl(this);return this===e?0:this.contains(e)?20:Q.call(t,e)&F?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=tl(this);return 0!=(Q.call(t,e)&F)&&un(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Xn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Xn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Xn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(tl(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return tl(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Xn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==V&&(t+=bn(l))}return t},set(e){const t=tl(this);se.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!_(e)&&H(e.composed)?tl(this).getRootNode(e):this}}};function fl(){throw new TypeError("Illegal constructor")}function hl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof k))return n;l=e.getRootNode()}let o,r=e;for(;!A(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=A(e)?r.parentNode:e}else r=!ol(r)&&!bt(r)||!t&&r===l?r instanceof k?r.parentNode:null:r.host;return o=e instanceof Window?e.document:yt(e),n[n.length-1]===o&&n.push(window),n}
|
|
2
2
|
/**
|
|
3
3
|
@license
|
|
4
4
|
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
8
|
Code distributed by Google as part of the polymer project is also
|
|
9
9
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
-
*/function sl(e,t){if(_(e))return null;const n=ul(e,!0),l=t;for(let e,t,o,r,i=0;i<l.length;i++)if(e=l[i],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!(o instanceof cl)||!A(r)&&r>-1)return e;return null}function fl(e,t,n,l){const o=Ze.call(t,n,l);return _(o)?o:sl(e,ul(o,!0))}e(rl,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Z.call(el(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ee.call(el(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return z.call(el(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return te.call(el(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&Gt(el(e),t,Wt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return al.set(e,this),St.apply(el(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){P(n)&&qt(el(e),t,Wt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return el(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return yn(un(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=el(this);return this===e?0:this.contains(e)?20:Q.call(t,e)&F?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=el(this);return 0!=(Q.call(t,e)&F)&&cn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return qn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=qn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return qn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(el(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return el(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=qn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==V&&(t+=dn(l))}return t},set(e){const t=el(this);se.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!A(e)&&H(e.composed)?el(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return vn(p.call(un(this),(e=>e instanceof Element)))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=el(e);return pn(n,Nt(ye.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return yn(function(e,t){const n=el(e);return hn(n,Nt(ye.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=qn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Hn(e[n]);return t},set(e){const t=el(this);De.call(t,e)}}},il),cl.prototype=t(DocumentFragment.prototype,rl),l(cl,Symbol.hasInstance,{value:function(e){return D(e)&&!_(e)&&(bt(e)||a(e)===cl.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return fl(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Xn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=Qe.call(this);if(_(e))return e;for(;!A(Qt(e));)if(e=ue.call(e),_(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=ot.apply(this,T.call(arguments));return _(e)?null:A(Qt(e))||vt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=Nt(lt.apply(this,T.call(arguments))),t=g.call(e,(e=>A(Qt(e))||vt(e)));return A(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=Nt(lt.apply(this,T.call(arguments)));return yn(p.call(e,(e=>A(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=Nt(rt.apply(this,T.call(arguments)));return vn(p.call(e,(e=>A(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=Nt(it.apply(this,T.call(arguments)));return vn(p.call(e,(e=>A(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=Nt(at.apply(this,T.call(arguments)));return vn(p.call(e,(e=>A(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Nt(ct.apply(this,T.call(arguments)));return yn(p.call(e,(e=>A(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:cl,configurable:!0,writable:!0});const hl=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const pl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function gl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!hl)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!hl.get.call(e)})()&&(HTMLElement.prototype.click=function(){Ct.call(this,"click",gl);try{pl.value.call(this)}finally{Ot.call(this,"click",gl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const ml=CustomEvent;function dl(e,t){const n=new ml(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(dl.prototype=ml.prototype,window.CustomEvent=dl,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return _(e)||A(Qt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const bl=MutationObserver,{disconnect:El,observe:yl,takeRecords:wl}=bl.prototype,Tl="$$lwcObserverCallbackWrapper$$",vl=new WeakMap;function Nl(e){return e.$$lwcNodeObservers$$}function Ll(e){const{addedNodes:l,removedNodes:o,target:r,type:i}=e,a=t(MutationRecord.prototype);return n(a,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>i,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),a}function Ml(e,t){let n=t;for(;!_(n);){const t=Nl(n);if(!A(t)&&(t[0]===e||-1!==m.call(t,e)))return!0;n=n.parentNode}return!1}function Cl(e,t){return y.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:i}=n;if("childList"!==i||A(en(l)))Ml(t,l)&&E.call(e,n);else if(o.length>0){const r=o[0];if(Ml(t,r)){const o=Nl(l);!o||o[0]!==t&&-1===m.call(o,t)?E.call(e,Ll(n)):E.call(e,n)}}else{const o=l.shadowRoot,i=r[0];if(Zt(l)===Zt(i)&&Ml(t,l))E.call(e,n);else if(o){const l=Nl(o);!l||l[0]!==t&&-1===m.call(l,t)||E.call(e,Ll(n))}}return e}),[])}function Sl(e){const t=function(e){let t=e[Tl];return A(t)&&(t=e[Tl]=(t,n)=>{const l=Cl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new bl(t)}function Ol(e,t,n){if(arguments.length>1){const e=T.call(arguments);return e[1]=Rt(e[1]),ut.apply(this,e)}return ut.apply(this,arguments)}function Al(e,t,n){if(arguments.length>1){const e=T.call(arguments);e[1]=Rt(e[1]),st.apply(this,e)}st.apply(this,arguments)}function _l(){const e=Ve.call(this);if(!(e instanceof k))return e;const t=yt(e),n=ul(e,this.composed),l=Ye.call(this);if(!(l instanceof k))return _(l)&&A(Qt(e))?e:sl(t,n);if(l===t||l===t.body)return A(Qt(e))?e:sl(t,n);let o=l,r=n;if(nl(l)){1===Pt.get(this)&&(o=tl(l))}return nl(e)&&al.has(this)&&(r=ul(tl(e),this.composed)),sl(o,r)}function Hl(){const e=Ve.call(this);if(!(e instanceof k))return[];const t=Boolean(e.shadowRoot),n=(l=e,Boolean(Vn.get(l)));var l;if(t&&!n)return Je.call(this);if(_(Ye.call(this)))return[];let o=e;return nl(e)&&al.has(this)&&(o=tl(e)),ul(o,this.composed)}function Rl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(_(e))return null;if(!(e instanceof k&&tn(e)))return e;let n=Ye.call(this);return _(n)&&(n=yt(e)),sl(n,ul(e,!0))},enumerable:!0,configurable:!0})}let Pl;Sl.prototype=bl.prototype,Sl.prototype.disconnect=function(){El.call(this);const e=vl.get(this);A(e)||(L.call(e,(e=>{const t=e.$$lwcNodeObservers$$;if(!A(t)){const e=m.call(t,this);-1!==e&&v.call(t,e,1)}})),e.length=0)},Sl.prototype.observe=function(e,t){let n=Nl(e);var l;if(A(n)&&(n=[],l=n,e.$$lwcNodeObservers$$=l),-1===m.call(n,this)&&E.call(n,this),e instanceof cl&&(e=e.host),vl.has(this)){const t=vl.get(this);-1===m.call(t,e)&&E.call(t,e)}else vl.set(this,[e]);return yl.call(this,e,t)},Sl.prototype.takeRecords=function(){return Cl(wl.call(this),this)},l(window,"MutationObserver",{value:Sl,configurable:!0,writable:!0}),n(Mt,{addEventListener:{value:function(e,t,n){if(nl(this))return Xt.apply(this,arguments);if(arguments.length<2){const e=T.call(arguments);return e.length>1&&(e[1]=Rt(e[1])),Ct.apply(this,e)}const l=Rt(t);return Ct.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(nl(this))return Vt.apply(this,arguments);const l=T.call(arguments);arguments.length>1&&(l[1]=Rt(l[1])),Ot.apply(this,l),Ot.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Ol,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Al,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:_l,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=Ye.call(this);return _(e)?null:1===Pt.get(this)?tl(e):e},enumerable:!0,configurable:!0},composedPath:{value:Hl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:_l,enumerable:!0,configurable:!0},path:{get:Hl,enumerable:!0,configurable:!0}}),Rl(FocusEvent),Rl(MouseEvent);const Dl={childList:!0},$l=new WeakMap;function Bl(e){const t=Nt(fe.call(e));return y.call(t,((e,t)=>(t instanceof Element&&an(t)?E.apply(e,Bl(t)):E.call(e,t),e)),[])}function Il(){const e=ae.call(this);return!_(e)&&an(e)&&Qt(e)!==Qt(this)?e:null}function kl(e,t){let n;const l=Qt(e);if(A(l))n=e instanceof HTMLBodyElement?p.call(t,(t=>A(Qt(t))||vt(e))):T.call(t);else if(nl(e)){const l=on(e);n=_(l)?[]:en(e)?sn(e,t):hn(l,t)}else n=p.call(t,(e=>Zt(e)===l));return n}function xl(){const e=qn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Hn(e[n]);return t}function Fl(){return Hn(this)}function Wl(){const e=on(this),t=_(e)?[]:hn(e,gn(this));return vn(p.call(t,(e=>e instanceof Element)))}function Ul(){return this.children.length}function jl(){return this.children[0]||null}function Kl(){const{children:e}=this;return e.item(e.length-1)||null}function Gl(e,t,n){let l;if(nl(e)){const n=on(e);l=_(n)?[]:en(e)?sn(e,t):hn(n,t)}else if(tn(e)){const o=Qt(e);if(A(o))if(1===n){const n=Zt(e);l=p.call(t,(e=>Zt(e)===n))}else l=T.call(t);else l=p.call(t,(e=>Zt(e)===o))}else l=e instanceof HTMLBodyElement||1===n?p.call(t,(t=>A(Qt(t))||vt(e))):T.call(t);return l}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||$l.get(this)||($l.set(this,!0),Pl||(Pl=new pt((e=>{const t=[];L.call(e,(e=>{const{target:n}=e;-1===m.call(t,n)&&(E.call(t,n),St.call(n,new CustomEvent("slotchange")))}))}))),gt.call(Pl,this,Dl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(tn(this)){const t=!A(e)&&H(e.flatten)?Bl(this):mn(this);return p.call(t,(e=>e instanceof Element))}return Xe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(tn(this)){return!A(e)&&H(e.flatten)?Bl(this):mn(this)}return qe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=pe.call(this,"name");return _(e)?"":e},set(e){Te.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(tn(this)){const e=on(this);return yn(_(e)?[]:hn(e,gn(this)))}return fe.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:Il,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Lt.ENABLE_ELEMENT_PATCH?vt(this)?Pe.call(this):xl.call(this):tn(this)||nl(this)?xl.call(this):Pe.call(this)},set(e){De.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Lt.ENABLE_ELEMENT_PATCH?vt(this)?Be.call(this):Fl.call(this):tn(this)||nl(this)?Fl.call(this):Be.call(this)},set(e){Ie.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?ol(this,e):ve.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(nl(this)){const e=tl(this);if("open"===e.mode)return e}return Ge.call(this)},enumerable:!0,configurable:!0},children:{get(){return Rn(this)?Wl.call(this):je.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Rn(this)?Ul.call(this):Ne.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Rn(this)?jl.call(this):Le.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Rn(this)?Kl.call(this):Me.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Il,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),c.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),c.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=Nt(ye.apply(this,T.call(arguments)));if(nl(this)){const t=on(this);return _(t)?null:en(this)?fn(this,e):pn(t,e)}if(tn(this)){const t=Qt(this);if(A(t)){if(!Lt.ENABLE_NODE_LIST_PATCH)return 0===e.length?null:e[0];const t=Zt(this),n=g.call(e,(e=>Zt(e)===t));return A(n)?null:n}{const n=g.call(e,(e=>Zt(e)===t));return A(n)?null:n}}{if(!(Lt.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){const t=e[0];return A(t)?null:t}const t=g.call(e,(e=>A(Qt(e))||vt(this)));return A(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){const e=Nt(ye.apply(this,T.call(arguments)));if(!Lt.ENABLE_NODE_LIST_PATCH){return yn(Gl(this,e,0))}return yn(Gl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){const e=Nt(Ke.apply(this,T.call(arguments)));if(!Lt.ENABLE_HTML_COLLECTIONS_PATCH)return vn(kl(this,e));return vn(Gl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){const e=Nt(me.apply(this,T.call(arguments)));if(!Lt.ENABLE_HTML_COLLECTIONS_PATCH)return vn(kl(this,e));return vn(Gl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){const e=Nt(de.apply(this,T.call(arguments)));if(!Lt.ENABLE_HTML_COLLECTIONS_PATCH)return vn(kl(this,e));return vn(Gl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const ql="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",Xl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Vl(e){return e.filter((e=>be.call(e,"tabindex")?"0"===pe.call(e,"tabindex"):!Xl.has(ke.call(e))||!be.call(e,"disabled")))}const Yl=new WeakMap;function zl(e){return(!nl(e)||!Zn(e))&&(Ue.call(e,ql)&&function(e){const{width:t,height:n}=ge.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function Jl(){const e=this.getRootNode();if(e===this){const e=Ee.call(this,ql);return void(_(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=Nt(ye.call(this,ql));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function Ql(e){const t=yt(e),n=Vl(Nt(lt.call(t,ql))),l=Vl(Nt(ye.call(e,ql))),o=l[0],r=l[l.length-1],i=m.call(n,e),a=i>-1?i:m.call(n,o),c=0===l.length?a+1:m.call(n,r)+1;return{prev:T.call(n,0,a),inner:l,next:T.call(n,c)}}function Zl(e,t){const n=Q.call(e,t);return n&F?0:n&U?1:n&j?2:-1}function eo(e){e.preventDefault(),e.stopPropagation()}function to(e,t){ut.call(e,"focusin",eo,!0),ut.call(e,"focusout",eo,!0),t(),st.call(e,"focusin",eo,!0),st.call(e,"focusout",eo,!0)}function no(e,t,n){const l=wt(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(uo(t.getRootNode(),n))return n}return null}(e,n);_(o)?to(l,(()=>{t.blur()})):to(l,(()=>{o.focus()}))}let lo=!1;function oo(){lo=!0}function ro(){lo=!1}function io(){return!lo}function ao(e){if(lo)return;const t=Ye.call(e),n=Ve.call(e);if(t!==n)return;const l=ze.call(e);if(_(l))return;const o=Ql(t);if(1===Zl(t,l)){const e=uo.bind(null,t.getRootNode()),r=g.call(o.inner,e);if(A(r))no(o.next,n,l);else{to(wt(r),(()=>{r.focus()}))}}else t===n&&no(w.call(o.prev),n,l)}function co(e){if(lo)return;const t=ze.call(e);if(_(t))return;const n=Ye.call(e),l=Ql(n);if(-1!==m.call(l.inner,t))return;const o=Ve.call(e),r=Zl(n,t);1===r&&no(l.next,o,t),2===r&&no(w.call(l.prev),o,t)}function uo(e,t){if(!zl(t))return!1;const n=yt(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===pe.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function so(e){Ot.call(e,"focusin",ao,!0)}function fo(e){const t=yt(e);Yl.get(t)||(Yl.set(t,!0),Ct.call(t,"mousedown",oo,!0),Ct.call(t,"mouseup",(()=>{setTimeout(ro)}),!0),Ct.call(t,"dragstart",ro,!0))}function ho(e){Ot.call(e,"focusin",co,!0)}function po(e){const t=wt(e);return ft.call(t,e)}function go(e){const t=wt(e);return ht.call(t)}function mo(e){return"visible"===e.visibility&&"none"!==e.display}function bo(e){const t=[];if((e=>e.nodeType===K)(e)){const{tagName:n}=e,l=po(e);if("OPTION"===n)return[1,Se.call(e),1];if("TEXTAREA"===n)return[];{const n=e.childNodes;for(let e=0,l=n.length;e<l;e++)E.apply(t,bo(n[e]))}if(!mo(l))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");const{display:o}=l;"table-cell"===o&&t.push("\t"),"table-row"===o&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==o&&"table-caption"!==o&&"flex"!==o&&"table"!==o||(t.unshift(1),t.push(1))}else(e=>e.nodeType===G)(e)&&t.push(function(e){const t=go(e);if(null===t)return e.textContent||"";const n=document.createRange();n.selectNodeContents(e);const l=n.getBoundingClientRect();if(l.height<=0||l.width<=0)return"";t.removeAllRanges(),t.addRange(n);return t.toString()||e.textContent||""}(e));return t}function Eo(e){if(!mo(po(e)))return dn(e)||"";const t=function(e){const t=wt(e),n=go(e);if(null===n)return null;const l=[];for(let e=0;e<n.rangeCount;e++)l.push(n.getRangeAt(e));const o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:l};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],l=e.childNodes;for(let e=0,t=l.length;e<t;e++)E.apply(n,bo(l[e]));!function(e){if(null===e)return;const{element:t,onselect:n,onselectstart:l,onselectionchange:o,ranges:r}=e,i=wt(t),a=go(t);a.removeAllRanges();for(let e=0;e<r.length;e++)a.addRange(r[e]);i.onselect=n,i.onselectstart=l,i.onselectionchange=o}(t);let o="",r=0;for(let e=0,t=n.length;e<t;e++){const t=n[e];if("string"==typeof t){if(r>0){for(let e=0;e<r;e++)o+="\n";r=0}t.length>0&&(o+=t)}else{if(0==o.length)continue;t>r&&(r=t)}}return o}const{blur:yo,focus:wo}=HTMLElement.prototype;function To(){return Zn(this)&&R(be.call(this,"tabindex"))?0:Fe.call(this)}function vo(e){const t=Zn(this),n=Fe.call(this),l=be.call(this,"tabindex");We.call(this,e);const o=Fe.call(this),r=be.call(this,"tabindex"),i=n!==o;var a;(l&&(i||R(r))&&(-1===n&&ho(this),0===n&&t&&so(this)),R(r))||(l&&r&&R(i)||(-1===o&&(fo(a=this),so(a),Ct.call(a,"focusin",co,!0)),0===o&&t&&function(e){fo(e),ho(e),Ct.call(e,"focusin",ao,!0)}(this)))}function No(){if(Zn(this)){const e=function(e){const t=yt(e),n=Qe.call(t);return _(n)||0!=(Q.call(e,n)&F)?n:null}(this);if(!_(e))return void e.blur()}return yo.call(this)}function Lo(){const e=io();e&&oo(),nl(this)&&Zn(this)?Jl.call(this):(wo.apply(this,arguments),e&&ro())}n(HTMLElement.prototype,{tabIndex:{get(){return nl(this)?To.call(this):Fe.call(this)},set(e){return nl(this)?vo.call(this,e):We.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(nl(this))return No.call(this);yo.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Lo.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Se&&null!==Oe&&l(HTMLElement.prototype,"innerText",{get(){return Lt.ENABLE_INNER_OUTER_TEXT_PATCH?Lt.ENABLE_ELEMENT_PATCH?vt(this)?Se.call(this):Eo(this):tn(this)||nl(this)?Eo(this):Se.call(this):Se.call(this)},set(e){Oe.call(this,e)},enumerable:!0,configurable:!0}),null!==_e&&null!==He&&l(HTMLElement.prototype,"outerText",{get(){return Lt.ENABLE_INNER_OUTER_TEXT_PATCH?Lt.ENABLE_ELEMENT_PATCH?vt(this)?_e.call(this):Eo(this):tn(this)||nl(this)?Eo(this):_e.call(this):_e.call(this)},set(e){He.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,I,{set(e){const t=this.$$ShadowTokenKey$$;A(t)||t===e||we.call(this,t),A(e)||Te.call(this,e,""),this.$$ShadowTokenKey$$=e},get(){return this.$$ShadowTokenKey$$},configurable:!0});const Mo=function(){};let Co;const So={childList:!0};function Oo(e,t,n){const l=Jn(e);if(l!==t&&(Qn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),nl(e))return;A(l)&>.call(Co,e,So);const o=fe.call(e);for(let e=0,l=o.length;e<l;e+=1)Oo(o[e],t,n)}}function Ao(e){if(A(Co)&&(Co=new pt((e=>{L.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=Jn(t),r=t.$shadowToken$;for(let e=0,n=l.length;e<n;e+=1){const n=l[e];Q.call(t,n)&k.DOCUMENT_POSITION_CONTAINED_BY||Oo(n,Mo,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];Q.call(t,l)&k.DOCUMENT_POSITION_CONTAINED_BY&&Oo(l,o,r)}}))}))),A(Jn(e)))throw new Error("Invalid Element");gt.call(Co,e,So)}l(Element.prototype,"$domManual$",{set(e){this.$$DomManualKey$$=e,H(e)&&Ao(this)},get(){return this.$$DomManualKey$$},configurable:!0})}));
|
|
10
|
+
*/function pl(e,t){if(A(e))return null;const n=hl(e,!0),l=t;for(let e,t,o,r,i=0;i<l.length;i++)if(e=l[i],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!ol(o)||!_(r)&&r>-1)return e;return null}function gl(e,t,n,l){const o=Ze.call(t,n,l);return A(o)?o:pl(e,hl(o,!0))}e(cl,sl,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Nn(p.call(sn(this),(e=>e instanceof Element)))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=tl(e);return gn(n,Nt(ye.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return wn(function(e,t){const n=tl(e);return pn(n,Nt(ye.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Xn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Rn(e[n]);return t},set(e){const t=tl(this);De.call(t,e)}}},al),fl.prototype=t(DocumentFragment.prototype,cl),l(fl,Symbol.hasInstance,{value:function(e){return D(e)&&!A(e)&&(bt(e)||c(e)===fl.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return gl(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Vn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=Qe.call(this);if(A(e))return e;for(;!_(Qt(e));)if(e=ue.call(e),A(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=ot.apply(this,T.call(arguments));return A(e)?null:_(Qt(e))||vt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=Nt(lt.apply(this,T.call(arguments))),t=g.call(e,(e=>_(Qt(e))||vt(e)));return _(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=Nt(lt.apply(this,T.call(arguments)));return wn(p.call(e,(e=>_(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=Nt(rt.apply(this,T.call(arguments)));return Nn(p.call(e,(e=>_(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=Nt(it.apply(this,T.call(arguments)));return Nn(p.call(e,(e=>_(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=Nt(ct.apply(this,T.call(arguments)));return Nn(p.call(e,(e=>_(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Nt(at.apply(this,T.call(arguments)));return wn(p.call(e,(e=>_(Qt(e))||vt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:fl,configurable:!0,writable:!0});const ml=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const dl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function bl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!ml)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!ml.get.call(e)})()&&(HTMLElement.prototype.click=function(){Ct.call(this,"click",bl);try{dl.value.call(this)}finally{Ot.call(this,"click",bl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const El=CustomEvent;function yl(e,t){const n=new El(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(yl.prototype=El.prototype,window.CustomEvent=yl,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return A(e)||_(Qt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const wl=MutationObserver,{disconnect:Tl,observe:vl,takeRecords:Nl}=wl.prototype,Ll="$$lwcObserverCallbackWrapper$$",Ml=new WeakMap;function Cl(e){return e.$$lwcNodeObservers$$}function Sl(e){const{addedNodes:l,removedNodes:o,target:r,type:i}=e,c=t(MutationRecord.prototype);return n(c,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>i,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),c}function Ol(e,t){let n=t;for(;!A(n);){const t=Cl(n);if(!_(t)&&(t[0]===e||-1!==m.call(t,e)))return!0;n=n.parentNode}return!1}function _l(e,t){return y.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:i}=n;if("childList"!==i||_(en(l)))Ol(t,l)&&E.call(e,n);else if(o.length>0){const r=o[0];if(Ol(t,r)){const o=Cl(l);!o||o[0]!==t&&-1===m.call(o,t)?E.call(e,Sl(n)):E.call(e,n)}}else{const o=l.shadowRoot,i=r[0];if(Zt(l)===Zt(i)&&Ol(t,l))E.call(e,n);else if(o){const l=Cl(o);!l||l[0]!==t&&-1===m.call(l,t)||E.call(e,Sl(n))}}return e}),[])}function Al(e){const t=function(e){let t=e[Ll];return _(t)&&(t=e[Ll]=(t,n)=>{const l=_l(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new wl(t)}function Hl(e,t,n){if(arguments.length>1){const e=T.call(arguments);return e[1]=Rt(e[1]),ut.apply(this,e)}return ut.apply(this,arguments)}function Rl(e,t,n){if(arguments.length>1){const e=T.call(arguments);e[1]=Rt(e[1]),st.apply(this,e)}st.apply(this,arguments)}function Pl(){const e=Ve.call(this);if(!(e instanceof k))return e;const t=yt(e),n=hl(e,this.composed),l=Ye.call(this);if(!(l instanceof k))return A(l)&&_(Qt(e))?e:pl(t,n);if(l===t||l===t.body)return _(Qt(e))?e:pl(t,n);let o=l,r=n;if(ll(l)){1===Pt.get(this)&&(o=nl(l))}return ll(e)&&ul.has(this)&&(r=hl(nl(e),this.composed)),pl(o,r)}function Dl(){const e=Ve.call(this);if(!(e instanceof k))return[];const t=Boolean(e.shadowRoot),n=(l=e,Yn.has(l));var l;if(t&&!n)return Je.call(this);if(A(Ye.call(this)))return[];let o=e;return ll(e)&&ul.has(this)&&(o=nl(e)),hl(o,this.composed)}function $l(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(A(e))return null;if(!(e instanceof k&&tn(e)))return e;let n=Ye.call(this);return A(n)&&(n=yt(e)),pl(n,hl(e,!0))},enumerable:!0,configurable:!0})}let Bl;Al.prototype=wl.prototype,Al.prototype.disconnect=function(){Tl.call(this);const e=Ml.get(this);_(e)||(L.call(e,(e=>{const t=e.$$lwcNodeObservers$$;if(!_(t)){const e=m.call(t,this);-1!==e&&v.call(t,e,1)}})),e.length=0)},Al.prototype.observe=function(e,t){let n=Cl(e);var l;if(_(n)&&(n=[],l=n,e.$$lwcNodeObservers$$=l),-1===m.call(n,this)&&E.call(n,this),ol(e)&&(e=e.host),Ml.has(this)){const t=Ml.get(this);-1===m.call(t,e)&&E.call(t,e)}else Ml.set(this,[e]);return vl.call(this,e,t)},Al.prototype.takeRecords=function(){return _l(Nl.call(this),this)},l(window,"MutationObserver",{value:Al,configurable:!0,writable:!0}),n(Mt,{addEventListener:{value:function(e,t,n){if(ll(this))return Xt.apply(this,arguments);if(arguments.length<2){const e=T.call(arguments);return e.length>1&&(e[1]=Rt(e[1])),Ct.apply(this,e)}const l=Rt(t);return Ct.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(ll(this))return Vt.apply(this,arguments);const l=T.call(arguments);arguments.length>1&&(l[1]=Rt(l[1])),Ot.apply(this,l),Ot.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Hl,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Rl,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Pl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=Ye.call(this);return A(e)?null:1===Pt.get(this)?nl(e):e},enumerable:!0,configurable:!0},composedPath:{value:Dl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Pl,enumerable:!0,configurable:!0},path:{get:Dl,enumerable:!0,configurable:!0}}),$l(FocusEvent),$l(MouseEvent);const Il={childList:!0},kl=new WeakMap;function xl(e){const t=Nt(fe.call(e));return y.call(t,((e,t)=>(t instanceof Element&&an(t)?E.apply(e,xl(t)):E.call(e,t),e)),[])}function Fl(){const e=ce.call(this);return!A(e)&&an(e)&&Qt(e)!==Qt(this)?e:null}function Wl(e,t){let n;const l=Qt(e);if(_(l))n=e instanceof HTMLBodyElement?p.call(t,(t=>_(Qt(t))||vt(e))):T.call(t);else if(ll(e)){const l=rn(e);n=A(l)?[]:en(e)?fn(e,t):pn(l,t)}else n=p.call(t,(e=>Zt(e)===l));return n}function Ul(){const e=Xn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Rn(e[n]);return t}function jl(){return Rn(this)}function Kl(){const e=rn(this),t=A(e)?[]:pn(e,mn(this));return Nn(p.call(t,(e=>e instanceof Element)))}function Gl(){return this.children.length}function ql(){return this.children[0]||null}function Xl(){const{children:e}=this;return e.item(e.length-1)||null}function Vl(e,t,n){let l;if(ll(e)){const n=rn(e);l=A(n)?[]:en(e)?fn(e,t):pn(n,t)}else if(tn(e)){const o=Qt(e);if(_(o))if(1===n){const n=Zt(e);l=p.call(t,(e=>Zt(e)===n))}else l=T.call(t);else l=p.call(t,(e=>Zt(e)===o))}else l=e instanceof HTMLBodyElement||1===n?p.call(t,(t=>_(Qt(t))||vt(e))):T.call(t);return l}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||kl.get(this)||(kl.set(this,!0),Bl||(Bl=new pt((e=>{const t=[];L.call(e,(e=>{const{target:n}=e;-1===m.call(t,n)&&(E.call(t,n),St.call(n,new CustomEvent("slotchange")))}))}))),gt.call(Bl,this,Il))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(tn(this)){const t=!_(e)&&H(e.flatten)?xl(this):dn(this);return p.call(t,(e=>e instanceof Element))}return Xe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(tn(this)){return!_(e)&&H(e.flatten)?xl(this):dn(this)}return qe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=pe.call(this,"name");return A(e)?"":e},set(e){Te.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(tn(this)){const e=rn(this);return wn(A(e)?[]:pn(e,mn(this)))}return fe.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:Fl,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Lt.ENABLE_ELEMENT_PATCH?vt(this)?Pe.call(this):Ul.call(this):nn(this)?Ul.call(this):Pe.call(this)},set(e){De.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Lt.ENABLE_ELEMENT_PATCH?vt(this)?Be.call(this):jl.call(this):nn(this)?jl.call(this):Be.call(this)},set(e){Ie.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?il(this,e):ve.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(ll(this)){const e=nl(this);if("open"===e.mode)return e}return Ge.call(this)},enumerable:!0,configurable:!0},children:{get(){return Pn(this)?Kl.call(this):je.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Pn(this)?Gl.call(this):Ne.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Pn(this)?ql.call(this):Le.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Pn(this)?Xl.call(this):Me.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Fl,enumerable:!0,configurable:!0}}),a.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),a.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),a.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=Nt(ye.apply(this,T.call(arguments)));if(ll(this)){const t=rn(this);return A(t)?null:en(this)?hn(this,e):gn(t,e)}if(tn(this)){const t=Qt(this);if(_(t)){if(!Lt.ENABLE_NODE_LIST_PATCH)return 0===e.length?null:e[0];const t=Zt(this),n=g.call(e,(e=>Zt(e)===t));return _(n)?null:n}{const n=g.call(e,(e=>Zt(e)===t));return _(n)?null:n}}{if(!(Lt.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=g.call(e,(e=>_(Qt(e))||vt(this)));return _(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){const e=Nt(ye.apply(this,T.call(arguments)));if(!Lt.ENABLE_NODE_LIST_PATCH){return wn(Vl(this,e,0))}return wn(Vl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){const e=Nt(Ke.apply(this,T.call(arguments)));if(!Lt.ENABLE_HTML_COLLECTIONS_PATCH)return Nn(Wl(this,e));return Nn(Vl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){const e=Nt(me.apply(this,T.call(arguments)));if(!Lt.ENABLE_HTML_COLLECTIONS_PATCH)return Nn(Wl(this,e));return Nn(Vl(this,e,1))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){const e=Nt(de.apply(this,T.call(arguments)));if(!Lt.ENABLE_HTML_COLLECTIONS_PATCH)return Nn(Wl(this,e));return Nn(Vl(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),a.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const Yl="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",zl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Jl(e){return e.filter((e=>be.call(e,"tabindex")?"0"===pe.call(e,"tabindex"):!zl.has(ke.call(e))||!be.call(e,"disabled")))}const Ql=new WeakMap;function Zl(e){return(!ll(e)||!el(e))&&(Ue.call(e,Yl)&&function(e){const{width:t,height:n}=ge.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function eo(){const e=this.getRootNode();if(e===this){const e=Ee.call(this,Yl);return void(A(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=Nt(ye.call(this,Yl));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function to(e){const t=yt(e),n=Jl(Nt(lt.call(t,Yl))),l=Jl(Nt(ye.call(e,Yl))),o=l[0],r=l[l.length-1],i=m.call(n,e),c=i>-1?i:m.call(n,o),a=0===l.length?c+1:m.call(n,r)+1;return{prev:T.call(n,0,c),inner:l,next:T.call(n,a)}}function no(e,t){const n=Q.call(e,t);return n&F?0:n&U?1:n&j?2:-1}function lo(e){e.preventDefault(),e.stopPropagation()}function oo(e,t){ut.call(e,"focusin",lo,!0),ut.call(e,"focusout",lo,!0),t(),st.call(e,"focusin",lo,!0),st.call(e,"focusout",lo,!0)}function ro(e,t,n){const l=wt(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(ho(t.getRootNode(),n))return n}return null}(e,n);A(o)?oo(l,(()=>{t.blur()})):oo(l,(()=>{o.focus()}))}let io=!1;function co(){io=!0}function ao(){io=!1}function uo(){return!io}function so(e){if(io)return;const t=Ye.call(e),n=Ve.call(e);if(t!==n)return;const l=ze.call(e);if(A(l))return;const o=to(t);if(1===no(t,l)){const e=ho.bind(null,t.getRootNode()),r=g.call(o.inner,e);if(_(r))ro(o.next,n,l);else{oo(wt(r),(()=>{r.focus()}))}}else t===n&&ro(w.call(o.prev),n,l)}function fo(e){if(io)return;const t=ze.call(e);if(A(t))return;const n=Ye.call(e),l=to(n);if(-1!==m.call(l.inner,t))return;const o=Ve.call(e),r=no(n,t);1===r&&ro(l.next,o,t),2===r&&ro(w.call(l.prev),o,t)}function ho(e,t){if(!Zl(t))return!1;const n=yt(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===pe.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function po(e){Ot.call(e,"focusin",so,!0)}function go(e){const t=yt(e);Ql.get(t)||(Ql.set(t,!0),Ct.call(t,"mousedown",co,!0),Ct.call(t,"mouseup",(()=>{setTimeout(ao)}),!0),Ct.call(t,"dragstart",ao,!0))}function mo(e){Ot.call(e,"focusin",fo,!0)}function bo(e){const t=wt(e);return ft.call(t,e)}function Eo(e){const t=wt(e);return ht.call(t)}function yo(e){return"visible"===e.visibility&&"none"!==e.display}function wo(e){const t=[];if((e=>e.nodeType===K)(e)){const{tagName:n}=e,l=bo(e);if("OPTION"===n)return[1,Se.call(e),1];if("TEXTAREA"===n)return[];{const n=e.childNodes;for(let e=0,l=n.length;e<l;e++)E.apply(t,wo(n[e]))}if(!yo(l))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");const{display:o}=l;"table-cell"===o&&t.push("\t"),"table-row"===o&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==o&&"table-caption"!==o&&"flex"!==o&&"table"!==o||(t.unshift(1),t.push(1))}else(e=>e.nodeType===G)(e)&&t.push(function(e){const t=Eo(e);if(null===t)return e.textContent||"";const n=document.createRange();n.selectNodeContents(e);const l=n.getBoundingClientRect();if(l.height<=0||l.width<=0)return"";t.removeAllRanges(),t.addRange(n);return t.toString()||e.textContent||""}(e));return t}function To(e){if(!yo(bo(e)))return bn(e)||"";const t=function(e){const t=wt(e),n=Eo(e);if(null===n)return null;const l=[];for(let e=0;e<n.rangeCount;e++)l.push(n.getRangeAt(e));const o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:l};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],l=e.childNodes;for(let e=0,t=l.length;e<t;e++)E.apply(n,wo(l[e]));!function(e){if(null===e)return;const{element:t,onselect:n,onselectstart:l,onselectionchange:o,ranges:r}=e,i=wt(t),c=Eo(t);c.removeAllRanges();for(let e=0;e<r.length;e++)c.addRange(r[e]);i.onselect=n,i.onselectstart=l,i.onselectionchange=o}(t);let o="",r=0;for(let e=0,t=n.length;e<t;e++){const t=n[e];if("string"==typeof t){if(r>0){for(let e=0;e<r;e++)o+="\n";r=0}t.length>0&&(o+=t)}else{if(0==o.length)continue;t>r&&(r=t)}}return o}const{blur:vo,focus:No}=HTMLElement.prototype;function Lo(){return el(this)&&R(be.call(this,"tabindex"))?0:Fe.call(this)}function Mo(e){const t=el(this),n=Fe.call(this),l=be.call(this,"tabindex");We.call(this,e);const o=Fe.call(this),r=be.call(this,"tabindex"),i=n!==o;var c;(l&&(i||R(r))&&(-1===n&&mo(this),0===n&&t&&po(this)),R(r))||(l&&r&&R(i)||(-1===o&&(go(c=this),po(c),Ct.call(c,"focusin",fo,!0)),0===o&&t&&function(e){go(e),mo(e),Ct.call(e,"focusin",so,!0)}(this)))}function Co(){if(el(this)){const e=function(e){const t=yt(e),n=Qe.call(t);return A(n)||0!=(Q.call(e,n)&F)?n:null}(this);if(!A(e))return void e.blur()}return vo.call(this)}function So(){const e=uo();e&&co(),ll(this)&&el(this)?eo.call(this):(No.apply(this,arguments),e&&ao())}n(HTMLElement.prototype,{tabIndex:{get(){return ll(this)?Lo.call(this):Fe.call(this)},set(e){return ll(this)?Mo.call(this,e):We.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(ll(this))return Co.call(this);vo.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){So.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Se&&null!==Oe&&l(HTMLElement.prototype,"innerText",{get(){return Lt.ENABLE_INNER_OUTER_TEXT_PATCH?Lt.ENABLE_ELEMENT_PATCH?vt(this)?Se.call(this):To(this):tn(this)||ll(this)?To(this):Se.call(this):Se.call(this)},set(e){Oe.call(this,e)},enumerable:!0,configurable:!0}),null!==Ae&&null!==He&&l(HTMLElement.prototype,"outerText",{get(){return Lt.ENABLE_INNER_OUTER_TEXT_PATCH?Lt.ENABLE_ELEMENT_PATCH?vt(this)?Ae.call(this):To(this):tn(this)||ll(this)?To(this):Ae.call(this):Ae.call(this)},set(e){He.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,I,{set(e){const t=this.$$ShadowTokenKey$$;_(t)||t===e||we.call(this,t),_(e)||Te.call(this,e,""),this.$$ShadowTokenKey$$=e},get(){return this.$$ShadowTokenKey$$},configurable:!0});const Oo=function(){};let _o;const Ao={childList:!0};function Ho(e,t,n){const l=Qn(e);if(l!==t&&(Zn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),ll(e))return;_(l)&>.call(_o,e,Ao);const o=fe.call(e);for(let e=0,l=o.length;e<l;e+=1)Ho(o[e],t,n)}}function Ro(e){if(_(_o)&&(_o=new pt((e=>{L.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=Qn(t),r=t.$shadowToken$;for(let e=0,n=l.length;e<n;e+=1){const n=l[e];Q.call(t,n)&k.DOCUMENT_POSITION_CONTAINED_BY||Ho(n,Oo,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];Q.call(t,l)&k.DOCUMENT_POSITION_CONTAINED_BY&&Ho(l,o,r)}}))}))),_(Qn(e)))throw new Error("Invalid Element");gt.call(_o,e,Ao)}l(Element.prototype,"$domManual$",{set(e){this.$$DomManualKey$$=e,H(e)&&Ro(this)},get(){return this.$$DomManualKey$$},configurable:!0})}));
|