lwc 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine-dom/esm/es2017/engine-dom.js +578 -384
- package/dist/engine-dom/iife/es2017/engine-dom.js +578 -384
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -9
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +552 -360
- package/dist/engine-dom/iife/es5/engine-dom.js +630 -335
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -9
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +598 -311
- package/dist/engine-dom/umd/es2017/engine-dom.js +578 -384
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -9
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +552 -360
- package/dist/engine-dom/umd/es5/engine-dom.js +630 -335
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -9
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +598 -311
- package/dist/engine-server/commonjs/es2017/engine-server.js +647 -454
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -9
- package/dist/engine-server/esm/es2017/engine-server.js +647 -454
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +115 -13
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +115 -13
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +115 -13
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +119 -13
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +119 -13
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +115 -13
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +115 -13
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +119 -13
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +119 -13
- 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 +3 -3
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
- 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 +3 -3
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +3 -3
- package/package.json +8 -8
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
var hasNativeSymbolSupport = /*@__PURE__*/function () {
|
|
200
200
|
return Symbol('x').toString() === 'Symbol(x)';
|
|
201
201
|
}();
|
|
202
|
-
/** version: 2.6.
|
|
202
|
+
/** version: 2.6.3 */
|
|
203
203
|
|
|
204
204
|
/*
|
|
205
205
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -299,6 +299,9 @@
|
|
|
299
299
|
var shadowRootGetter = hasOwnProperty.call(Element.prototype, 'shadowRoot') ? getOwnPropertyDescriptor(Element.prototype, 'shadowRoot').get : function () {
|
|
300
300
|
return null;
|
|
301
301
|
};
|
|
302
|
+
var assignedSlotGetter$1 = hasOwnProperty.call(Element.prototype, 'assignedSlot') ? getOwnPropertyDescriptor(Element.prototype, 'assignedSlot').get : function () {
|
|
303
|
+
return null;
|
|
304
|
+
};
|
|
302
305
|
/*
|
|
303
306
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
304
307
|
* All rights reserved.
|
|
@@ -909,6 +912,15 @@
|
|
|
909
912
|
function isNodeShadowed(node) {
|
|
910
913
|
return !isUndefined(getNodeOwnerKey(node));
|
|
911
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
* Returns true if this node is a shadow host, is in a shadow host, or contains a shadow host
|
|
917
|
+
* anywhere in its tree.
|
|
918
|
+
*/
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
function isNodeOrDescendantsShadowed(node) {
|
|
922
|
+
return isNodeShadowed(node) || isSyntheticShadowHost(node) || containsHost(node);
|
|
923
|
+
}
|
|
912
924
|
/*
|
|
913
925
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
914
926
|
* All rights reserved.
|
|
@@ -1522,7 +1534,7 @@
|
|
|
1522
1534
|
}
|
|
1523
1535
|
|
|
1524
1536
|
var runtimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1525
|
-
/** version: 2.6.
|
|
1537
|
+
/** version: 2.6.3 */
|
|
1526
1538
|
|
|
1527
1539
|
/*
|
|
1528
1540
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1616,7 +1628,9 @@
|
|
|
1616
1628
|
}
|
|
1617
1629
|
|
|
1618
1630
|
function compareDocumentPositionPatched(otherNode) {
|
|
1619
|
-
if (this
|
|
1631
|
+
if (this === otherNode) {
|
|
1632
|
+
return 0;
|
|
1633
|
+
} else if (this.getRootNode() === otherNode) {
|
|
1620
1634
|
// "this" is in a shadow tree where the shadow root is the "otherNode".
|
|
1621
1635
|
return 10; // Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING
|
|
1622
1636
|
} else if (getNodeOwnerKey(this) !== getNodeOwnerKey(otherNode)) {
|
|
@@ -1662,7 +1676,7 @@
|
|
|
1662
1676
|
function childNodesGetterPatched() {
|
|
1663
1677
|
if (isSyntheticShadowHost(this)) {
|
|
1664
1678
|
var owner = getNodeOwner(this);
|
|
1665
|
-
var childNodes = isNull(owner) ?
|
|
1679
|
+
var childNodes = isNull(owner) ? getFilteredChildNodes(this) : getAllMatches(owner, getFilteredChildNodes(this));
|
|
1666
1680
|
|
|
1667
1681
|
if (process.env.NODE_ENV !== 'production' && isFalse(hasNativeSymbolSupport) && isExternalChildNodeAccessorFlagOn()) {
|
|
1668
1682
|
// inserting a comment node as the first childNode to trick the IE11
|
|
@@ -1771,7 +1785,8 @@
|
|
|
1771
1785
|
textContent: {
|
|
1772
1786
|
get: function get() {
|
|
1773
1787
|
if (!runtimeFlags.ENABLE_NODE_PATCH) {
|
|
1774
|
-
|
|
1788
|
+
// See note on get innerHTML in faux-shadow/element.ts
|
|
1789
|
+
if (isNodeOrDescendantsShadowed(this)) {
|
|
1775
1790
|
return textContentGetterPatched.call(this);
|
|
1776
1791
|
}
|
|
1777
1792
|
|
|
@@ -1996,7 +2011,22 @@
|
|
|
1996
2011
|
}
|
|
1997
2012
|
|
|
1998
2013
|
return rootNodes;
|
|
1999
|
-
}
|
|
2014
|
+
} // Keep searching up the host tree until we find an element that is within the immediate shadow root
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
var findAncestorHostInImmediateShadowRoot = function findAncestorHostInImmediateShadowRoot(rootNode, targetRootNode) {
|
|
2018
|
+
var host;
|
|
2019
|
+
|
|
2020
|
+
while (!isUndefined(host = rootNode.host)) {
|
|
2021
|
+
var thisRootNode = host.getRootNode();
|
|
2022
|
+
|
|
2023
|
+
if (thisRootNode === targetRootNode) {
|
|
2024
|
+
return host;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
rootNode = thisRootNode;
|
|
2028
|
+
}
|
|
2029
|
+
};
|
|
2000
2030
|
|
|
2001
2031
|
function fauxElementsFromPoint(context, doc, left, top) {
|
|
2002
2032
|
var elements = elementsFromPoint.call(doc, left, top);
|
|
@@ -2010,8 +2040,28 @@
|
|
|
2010
2040
|
for (var i = 0; i < elements.length; i++) {
|
|
2011
2041
|
var element = elements[i];
|
|
2012
2042
|
|
|
2013
|
-
if (
|
|
2014
|
-
|
|
2043
|
+
if (isSyntheticSlotElement(element)) {
|
|
2044
|
+
continue;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
var elementRootNode = element.getRootNode();
|
|
2048
|
+
|
|
2049
|
+
if (ArrayIndexOf.call(rootNodes, elementRootNode) !== -1) {
|
|
2050
|
+
ArrayPush.call(result, element);
|
|
2051
|
+
continue;
|
|
2052
|
+
} // In cases where the host element is not visible but its shadow descendants are, then
|
|
2053
|
+
// we may get the shadow descendant instead of the host element here. (The
|
|
2054
|
+
// browser doesn't know the difference in synthetic shadow DOM.)
|
|
2055
|
+
// In native shadow DOM, however, elementsFromPoint would return the host but not
|
|
2056
|
+
// the child. So we need to detect if this shadow element's host is accessible from
|
|
2057
|
+
// the context's shadow root. Note we also need to be careful not to add the host
|
|
2058
|
+
// multiple times.
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
var ancestorHost = findAncestorHostInImmediateShadowRoot(elementRootNode, rootNodes[0]);
|
|
2062
|
+
|
|
2063
|
+
if (!isUndefined(ancestorHost) && ArrayIndexOf.call(elements, ancestorHost) === -1 && ArrayIndexOf.call(result, ancestorHost) === -1) {
|
|
2064
|
+
ArrayPush.call(result, ancestorHost);
|
|
2015
2065
|
}
|
|
2016
2066
|
}
|
|
2017
2067
|
}
|
|
@@ -2091,6 +2141,29 @@
|
|
|
2091
2141
|
function isSyntheticShadowRoot(node) {
|
|
2092
2142
|
var shadowRootRecord = InternalSlot.get(node);
|
|
2093
2143
|
return !isUndefined(shadowRootRecord) && node === shadowRootRecord.shadowRoot;
|
|
2144
|
+
} // Return true if any descendant is a host element
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
function containsHost(node) {
|
|
2148
|
+
// IE11 complains with "Unexpected call to method or property access." when calling walker.nextNode().
|
|
2149
|
+
// The fix for this is to only walk trees for nodes that are Node.ELEMENT_NODE.
|
|
2150
|
+
if (node.nodeType !== _Node.ELEMENT_NODE) {
|
|
2151
|
+
return false;
|
|
2152
|
+
} // IE requires all four arguments, even though the fourth is deprecated
|
|
2153
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker#browser_compatibility
|
|
2154
|
+
// @ts-ignore
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
var walker = document.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, null, false);
|
|
2158
|
+
var descendant;
|
|
2159
|
+
|
|
2160
|
+
while (!isNull(descendant = walker.nextNode())) {
|
|
2161
|
+
if (isSyntheticShadowHost(descendant)) {
|
|
2162
|
+
return true;
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
return false;
|
|
2094
2167
|
}
|
|
2095
2168
|
|
|
2096
2169
|
var uid = 0;
|
|
@@ -2139,6 +2212,12 @@
|
|
|
2139
2212
|
value: function value() {
|
|
2140
2213
|
return "[object ShadowRoot]";
|
|
2141
2214
|
}
|
|
2215
|
+
},
|
|
2216
|
+
synthetic: {
|
|
2217
|
+
writable: false,
|
|
2218
|
+
enumerable: false,
|
|
2219
|
+
configurable: false,
|
|
2220
|
+
value: true
|
|
2142
2221
|
}
|
|
2143
2222
|
};
|
|
2144
2223
|
var ShadowRootDescriptors = {
|
|
@@ -3870,6 +3949,16 @@
|
|
|
3870
3949
|
*/
|
|
3871
3950
|
|
|
3872
3951
|
retargetRelatedTarget(MouseEvent);
|
|
3952
|
+
/*
|
|
3953
|
+
* Copyright (c) 2021, salesforce.com, inc.
|
|
3954
|
+
* All rights reserved.
|
|
3955
|
+
* SPDX-License-Identifier: MIT
|
|
3956
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3957
|
+
*/
|
|
3958
|
+
|
|
3959
|
+
var assignedSlotGetter = hasOwnProperty.call(Text.prototype, 'assignedSlot') ? getOwnPropertyDescriptor(Text.prototype, 'assignedSlot').get : function () {
|
|
3960
|
+
return null;
|
|
3961
|
+
};
|
|
3873
3962
|
/*
|
|
3874
3963
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
3875
3964
|
* All rights reserved.
|
|
@@ -3921,10 +4010,22 @@
|
|
|
3921
4010
|
}
|
|
3922
4011
|
|
|
3923
4012
|
function assignedSlotGetterPatched() {
|
|
3924
|
-
var parentNode = parentNodeGetter.call(this);
|
|
4013
|
+
var parentNode = parentNodeGetter.call(this); // use original assignedSlot if parent has a native shdow root
|
|
4014
|
+
|
|
4015
|
+
if (parentNode instanceof Element) {
|
|
4016
|
+
var sr = shadowRootGetter.call(parentNode);
|
|
4017
|
+
|
|
4018
|
+
if (isInstanceOfNativeShadowRoot(sr)) {
|
|
4019
|
+
if (this instanceof Text) {
|
|
4020
|
+
return assignedSlotGetter.call(this);
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
return assignedSlotGetter$1.call(this);
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
3925
4026
|
/**
|
|
3926
4027
|
* The node is assigned to a slot if:
|
|
3927
|
-
* - it has a parent and
|
|
4028
|
+
* - it has a parent and its parent is a slot element
|
|
3928
4029
|
* - and if the slot owner key is different than the node owner key.
|
|
3929
4030
|
*
|
|
3930
4031
|
* When the slot and the slotted node are 2 different shadow trees, the owner keys will be
|
|
@@ -3933,6 +4034,7 @@
|
|
|
3933
4034
|
* different than the node owner key (always `undefined`).
|
|
3934
4035
|
*/
|
|
3935
4036
|
|
|
4037
|
+
|
|
3936
4038
|
if (!isNull(parentNode) && isSlotElement(parentNode) && getNodeOwnerKey(parentNode) !== getNodeOwnerKey(this)) {
|
|
3937
4039
|
return parentNode;
|
|
3938
4040
|
}
|
|
@@ -4149,7 +4251,10 @@
|
|
|
4149
4251
|
innerHTML: {
|
|
4150
4252
|
get: function get() {
|
|
4151
4253
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4152
|
-
|
|
4254
|
+
// If this element is in synthetic shadow, if it's a synthetic shadow host,
|
|
4255
|
+
// or if any of its descendants are synthetic shadow hosts, then we can't
|
|
4256
|
+
// use the native innerHTML because it would expose private node internals.
|
|
4257
|
+
if (isNodeOrDescendantsShadowed(this)) {
|
|
4153
4258
|
return innerHTMLGetterPatched.call(this);
|
|
4154
4259
|
}
|
|
4155
4260
|
|
|
@@ -4172,7 +4277,8 @@
|
|
|
4172
4277
|
outerHTML: {
|
|
4173
4278
|
get: function get() {
|
|
4174
4279
|
if (!runtimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4175
|
-
|
|
4280
|
+
// See notes above on get innerHTML
|
|
4281
|
+
if (isNodeOrDescendantsShadowed(this)) {
|
|
4176
4282
|
return outerHTMLGetterPatched.call(this);
|
|
4177
4283
|
}
|
|
4178
4284
|
|
|
@@ -5536,6 +5642,6 @@
|
|
|
5536
5642
|
},
|
|
5537
5643
|
configurable: true
|
|
5538
5644
|
});
|
|
5539
|
-
/** version: 2.6.
|
|
5645
|
+
/** version: 2.6.3 */
|
|
5540
5646
|
|
|
5541
5647
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=Object.assign,i=Object.create,u=Object.defineProperties,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.hasOwnProperty,p=Object.setPrototypeOf,g=Array.prototype,m=g.filter,v=g.find,b=g.indexOf,d=g.map,y=g.push,E=g.reduce,w=g.reverse,T=g.slice,N=g.splice,L=g.forEach,M=String.prototype.charCodeAt;function C(e){return void 0===e}function S(e){return null===e}function O(e){return!0===e}function H(e){return!1===e}function A(e){return"function"==typeof e}function R(e){return"object"===o(e)}var _,P,D=function(){if("object"===("undefined"==typeof globalThis?"undefined":o(globalThis)))return globalThis;var 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}(),$="$shadowResolver$",B="$shadowToken$",I=Node,k=I.prototype,x=I.DOCUMENT_POSITION_CONTAINED_BY,F=I.DOCUMENT_POSITION_PRECEDING,j=I.DOCUMENT_POSITION_FOLLOWING,W=I.ELEMENT_NODE,U=I.TEXT_NODE,K=I.CDATA_SECTION_NODE,G=I.PROCESSING_INSTRUCTION_NODE,q=I.COMMENT_NODE,X=k.appendChild,Y=k.cloneNode,V=k.compareDocumentPosition,z=k.insertBefore,J=k.removeChild,Q=k.replaceChild,Z=k.hasChildNodes,ee=HTMLElement.prototype.contains,te=s(k,"firstChild").get,ne=s(k,"lastChild").get,re=s(k,"textContent").get,le=s(k,"parentNode").get,oe=s(k,"ownerDocument").get,ae=h.call(k,"parentElement")?s(k,"parentElement").get:s(HTMLElement.prototype,"parentElement").get,ie=s(k,"textContent").set,ue=h.call(k,"childNodes")?s(k,"childNodes").get:s(HTMLElement.prototype,"childNodes").get,ce=h.call(k,"isConnected")?s(k,"isConnected").get:function(){var e=oe.call(this);return null===e||0!=(V.call(e,this)&x)},se=Element.prototype,fe=se.getAttribute,he=se.getBoundingClientRect,pe=se.getElementsByTagName,ge=se.getElementsByTagNameNS,me=se.hasAttribute,ve=se.querySelector,be=se.querySelectorAll,de=se.removeAttribute,ye=se.setAttribute,Ee=h.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:function(){throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},we=s(Element.prototype,"childElementCount").get,Te=s(Element.prototype,"firstElementChild").get,Ne=s(Element.prototype,"lastElementChild").get,Le=s(HTMLElement.prototype,"innerText"),Me=Le?Le.get:null,Ce=Le?Le.set:null,Se=s(HTMLElement.prototype,"outerText"),Oe=Se?Se.get:null,He=Se?Se.set:null,Ae=h.call(Element.prototype,"innerHTML")?s(Element.prototype,"innerHTML"):s(HTMLElement.prototype,"innerHTML"),Re=Ae.get,_e=Ae.set,Pe=h.call(Element.prototype,"outerHTML")?s(Element.prototype,"outerHTML"):s(HTMLElement.prototype,"outerHTML"),De=Pe.get,$e=Pe.set,Be=s(Element.prototype,"tagName").get,Ie=s(HTMLElement.prototype,"tabIndex"),ke=Ie.get,xe=Ie.set,Fe=h.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,je=h.call(Element.prototype,"children")?s(Element.prototype,"children").get:s(HTMLElement.prototype,"children").get,We=HTMLElement.prototype.getElementsByClassName,Ue=h.call(Element.prototype,"shadowRoot")?s(Element.prototype,"shadowRoot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(_=HTMLSlotElement.prototype.assignedNodes,P=HTMLSlotElement.prototype.assignedElements):(_=function(){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")},P=function(){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")});var Ke=s(Event.prototype,"target").get,Ge=s(Event.prototype,"currentTarget").get,qe=s(FocusEvent.prototype,"relatedTarget").get,Xe=h.call(Event.prototype,"composedPath")?Event.prototype.composedPath:function(){return[]},Ye=s(Document.prototype,"activeElement").get,Ve=h.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,ze=h.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,Je=s(Document.prototype,"defaultView").get,Qe=Document.prototype,Ze=Qe.querySelectorAll,et=Qe.getElementById,tt=Qe.getElementsByClassName,nt=Qe.getElementsByTagName,rt=Qe.getElementsByTagNameNS,lt=HTMLDocument.prototype.getElementsByName,ot=window,at=ot.addEventListener,it=ot.removeEventListener,ut=ot.getComputedStyle,ct=ot.getSelection,st=MutationObserver,ft=st.prototype.observe,ht=null;"undefined"!=typeof ShadowRoot&&(ht=ShadowRoot);var pt=!S(ht),gt=S(ht)?function(){return!1}:function(e){return e instanceof ht};var mt,vt=Document.prototype.createElement;function bt(e){var t=oe.call(e);return null===t?e:t}function dt(e){var t=bt(e),n=Je.call(t);if(null===n)throw new TypeError;return n}function yt(e){if(C(mt)){var t=bt(e);mt=t.body&&"temporary-bypass"===fe.call(t.body,"data-global-patching-bypass")}return O(mt)}function Et(e){var t=e.length,n=[];if(t>0)for(var r=0;r<t;r++)n[r]=e[r];return n}"undefined"==typeof HTMLSlotElement&&function(){var e=l((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,c(Document.prototype,"createElement",{value:function(t,n){var r=vt.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)&&p(r,e.prototype),r}})}();var wt="undefined"!=typeof EventTarget?EventTarget.prototype:I.prototype,Tt=wt.addEventListener,Nt=wt.dispatchEvent,Lt=wt.removeEventListener,Mt=new WeakMap,Ct=new WeakMap;function St(e,t,n){if(t===n)return!0;var r=Ct.get(e);return C(r)&&(r=e.composedPath(),Ct.set(e,r)),r.includes(n)}function Ot(e){if(!function(e){return A(e)||R(e)&&!S(e)&&A(e.handleEvent)}(e))return e;var t=Mt.get(e);return C(t)&&(t=function(t){var n=Ge.call(t);if(St(t,_t(t),n))return A(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Mt.set(e,t)),t}var Ht=new WeakMap,At=new WeakMap;function Rt(e){var t=At.get(e);return C(t)&&(t=i(null),At.set(e,t)),t}function _t(e){var t;return null!==(t=rr.get(e))&&void 0!==t?t:Ke.call(e)}var Pt=new WeakMap;function Dt(e){if(!A(e))throw new TypeError;var t=Pt.get(e);return C(t)&&((t=function(t){var n=Ge.call(t);gt(n)||(n=zn(n)),St(t,_t(t),n)&&e.call(n,t)}).placement=1,Pt.set(e,t)),t}var $t=new WeakMap;function Bt(e){if(!A(e))throw new TypeError;var t=$t.get(e);return C(t)&&((t=function(t){var n=Ge.call(t);St(t,_t(t),n)&&e.call(n,t)}).placement=0,$t.set(e,t)),t}function It(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=Rt(Ge.call(e))[r];c(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var i=T.call(a);function u(n){L.call(i,(function(r){H(t)&&r.placement===n&&-1!==b.call(a,r)&&r.call(void 0,e)}))}Ht.set(e,1),u(1),H(t)&&H(n)&&(Ht.set(e,0),u(0)),Ht.set(e,2)}function kt(e,t,n){var r=Rt(e),l=r[t];C(l)&&(l=r[t]=[]),-1===b.call(l,n)&&(0===l.length&&Tt.call(e,t,It),y.call(l,n))}function xt(e,t,n){var r,l;C(l=Rt(e)[t])||-1===(r=b.call(l,n))||(N.call(l,r,1),0===l.length&&Lt.call(e,t,It))}function Ft(e,t,n){A(t)&&kt(this,e,Bt(t))}function jt(e,t,n){A(t)&&xt(this,e,Bt(t))}var Wt="$$HostElementKey$$",Ut="$$ShadowedNodeKey$$";function Kt(e,t,n){var r=e,l=n.value;r[t]=l}function Gt(e){return e[Wt]}function qt(e){for(var t,n=e;!S(n);){if(!C(t=Gt(n)))return t;n=le.call(n)}}function Xt(e){return e[Ut]}function Yt(e){return!C(Gt(e))}function Vt(e){for(var t=ae.call(e);!S(t)&&Zt(t);)e=t,t=ae.call(e);return e}function zt(e,t){for(var n=Xt(e),r=t instanceof Element?t:ae.call(t);!S(r)&&r!==e;){var l=qt(r),o=ae.call(r);if(l===n)return Zt(r);if(o===e)return!1;if(S(o)||qt(o)===l)r=o;else{if(!Zt(o))return!1;if(!S(r=Jt(Vt(o)))){if(r===e)return!0;if(qt(r)===n)return!0}}}return!1}function Jt(e){if(!(e instanceof I))return null;var t=qt(e);if(C(t))return null;for(var n=e;!S(n)&&Xt(n)!==t;)n=le.call(n);return S(n)?null:n}function Qt(e){return Zt(e)&&Yt(e)}function Zt(e){return e instanceof HTMLSlotElement}function en(e,t){var n=qt(t);return C(n)||Xt(e)===n}function tn(e){var t=Vn(e);return ln(t,Et(ue.call(t)))}function nn(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!en(e,o)&&zt(e,o)&&y.call(n,o)}return n}function rn(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!en(e,l)&&zt(e,l))return l}return null}function ln(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];en(e,o)&&y.call(n,o)}return n}function on(e,t){for(var n=0,r=t.length;n<r;n+=1)if(en(e,t[n]))return t[n];return null}function an(e){if(!Jn(e)&&!Zt(e))return Et(ue.call(e));if(Jn(e)){var t=Et(be.call(e,"slot")),n=qn(zn(e));return E.call(t,(function(e,t){return n===qn(t)&&y.apply(e,un(t)),e}),[])}var r=Et(ue.call(e)),l=qn(e);return m.call(r,(function(e){return l===qn(e)}))}function un(e){var t=Jt(e);if(S(t))return[];var n=Et(ue.call(e));return m.call(n,(function(e){return!Yt(e)||!en(t,e)}))}function cn(e){if(e.nodeType===W){for(var t=an(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==q&&(n+=cn(o))}return n}return e.nodeValue}var sn=new WeakMap;function fn(){throw new TypeError("Illegal constructor")}function hn(e){var t=i(fn.prototype);return sn.set(t,e),L.call(e,(function(e,n){c(t,n,{value:e,enumerable:!0,configurable:!0})})),t}fn.prototype=i(NodeList.prototype,(n(e={constructor:{writable:!0,configurable:!0,value:fn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return sn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){L.call(sn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return d.call(sn.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return d.call(sn.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return sn.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=sn.get(e);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}}),n(e,Symbol.toStringTag,{configurable:!0,get:function(){return"NodeList"}}),n(e,"toString",{writable:!0,configurable:!0,value:function(){return"[object NodeList]"}}),e)),p(fn,NodeList);var pn=new WeakMap;function gn(){throw new TypeError("Illegal constructor")}function mn(e){var t=i(gn.prototype);return pn.set(t,e),L.call(e,(function(e,n){c(t,n,{value:e,enumerable:!0,configurable:!0})})),t}gn.prototype=i(HTMLCollection.prototype,(n(t={constructor:{writable:!0,configurable:!0,value:gn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return pn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=pn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===fe.call(l,"id")||e===fe.call(l,"name"))return l}return null}}},Symbol.toStringTag,{configurable:!0,get:function(){return"HTMLCollection"}}),n(t,"toString",{writable:!0,configurable:!0,value:function(){return"[object HTMLCollection]"}}),t)),p(gn,HTMLCollection);var vn=/[&\u00A0"]/g,bn=/[&\u00A0<>]/g,dn=String.prototype,yn=dn.replace,En=dn.toLowerCase;function wn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function Tn(e){return yn.call(e,vn,wn)}var Nn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Ln=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Mn(e){switch(e.nodeType){case W:for(var t,n=e.attributes,r=Be.call(e),l="<"+En.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+Tn(t.value)+'"';return l+=">",Nn.has(r)?l:l+function(e){for(var t="",n=an(e),r=0,l=n.length;r<l;r+=1)t+=Mn(n[r]);return t}(e)+"</"+En.call(r)+">";case U:var a=e.data,i=e.parentNode;return i instanceof Element&&Ln.has(Be.call(i))?a:function(e){return yn.call(e,bn,wn)}(a);case K:return"<!CDATA[[".concat(e.data,"]]>");case G:return"<?".concat(e.target," ").concat(e.data,"?>");case q:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}D.lwcRuntimeFlags||Object.defineProperty(D,"lwcRuntimeFlags",{value:i(null)});var Cn=D.lwcRuntimeFlags;function Sn(e){return Qt(e)||Jn(e)}function On(e,t){var n=Jt(e);if(t===n)return zn(n);if(t instanceof Element){if(qt(e)===qt(t))return t;if(!S(n)&&Zt(t)){var r=Jt(t);if(!S(r)&&en(n,r))return r}}return null}function Hn(){return jn(this).length>0}function An(){return jn(this)[0]||null}function Rn(){var e=jn(this);return e[e.length-1]||null}function _n(){return cn(this)}function Pn(){var e=le.call(this);return S(e)?e:On(this,e)}function Dn(){var e=le.call(this);if(S(e))return null;var t=On(this,e);return t instanceof Element?t:null}function $n(e){return this.getRootNode()===e?10:Gt(this)!==Gt(e)?35:V.call(this,e)}function Bn(e){return null!=e&&Gt(this)===Gt(e)&&0!=(V.call(this,e)&x)}function In(e){var t=Y.call(this,!1);if(!e)return t;for(var n=jn(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function kn(){if(Jn(this)){var e=Jt(this);return hn(S(e)?[]:ln(e,an(this)))}return ue.call(this)}var xn=I.prototype.getRootNode,Fn=C(xn)?function(){for(var e,t=this;!S(e=le.call(t));)t=e;return t}:xn;u(I.prototype,{firstChild:{get:function(){return Sn(this)?An.call(this):te.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return Sn(this)?Rn.call(this):ne.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return Cn.ENABLE_NODE_PATCH?yt(this)?re.call(this):_n.call(this):Yt(this)||Jn(this)?_n.call(this):re.call(this)},set:function(e){ie.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(Yt(this))return Pn.call(this);var e=le.call(this);return!S(e)&&Qt(e)?Jt(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(Yt(this))return Dn.call(this);var e=ae.call(this);return!S(e)&&Qt(e)?Jt(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return Sn(this)?kn.call(this):ue.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return Sn(this)?Hn.call(this):Z.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return yt(this)?V.call(this,e):$n.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||(Cn.ENABLE_NODE_PATCH?yt(this)?ee.call(this,e):Bn.call(this,e):null!=e&&(Yt(this)||Jn(this)?Bn.call(this,e):ee.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return Cn.ENABLE_NODE_PATCH?O(e)?yt(this)?Y.call(this,e):In.call(this,e):Y.call(this,e):Yt(this)||Jn(this)?In.call(this,e):Y.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return O(!C(e)&&!!e.composed)?Fn.call(this,e):S(n=Jt(t=this))?Fn.call(t):zn(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return ce.call(this)}}});var jn=function(e){return e.childNodes};function Wn(e,t,n,r){var l=ze.call(t,n,r),o=[],a=function(e){for(var t,n=[],r=e.getRootNode();!C(r);)n.push(r),r=null===(t=r.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!S(l))for(var i=0;i<l.length;i++){var u=l[i];-1===a.indexOf(u.getRootNode())||Qt(u)||o.push(u)}return o}h.call(HTMLElement.prototype,"contains")&&c(HTMLElement.prototype,"contains",s(I.prototype,"contains")),h.call(HTMLElement.prototype,"parentElement")&&c(HTMLElement.prototype,"parentElement",s(I.prototype,"parentElement"));var Un=new WeakMap,Kn=document.createDocumentFragment;function Gn(e){var t=Un.get(e);if(C(t))throw new TypeError;return t}function qn(e){return e.$shadowResolver$}function Xn(e,t){e.$shadowResolver$=t}function Yn(e){return Gn(e).delegatesFocus}function Vn(e){return Gn(e).host}function zn(e){return Gn(e).shadowRoot}function Jn(e){var t=Un.get(e);return!C(t)&&e===t.host}function Qn(e){var t=Un.get(e);return!C(t)&&e===t.shadowRoot}c(I.prototype,$,{set:function(e){var t,n;C(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Kt(t,Wt,{value:n,configurable:!0}))},get:function(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),c(D,"$isNativeShadowRootDefined$",{value:pt});var Zn=0;function er(e,t){if(Un.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.");var n=t.mode,r=t.delegatesFocus,l=bt(e),o=Kn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};Un.set(o,a),Un.set(e,a);var i=function(){return o},u=i.nodeKey=Zn++;return Kt(e,Ut,{value:u}),Xn(o,i),p(o,or.prototype),o}var tr={constructor:{writable:!0,configurable:!0,value:or},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}},nr={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Vn(this),t=bt(e),n=Ye.call(t);if(S(n))return n;if(0==(V.call(e,n)&x))return null;for(var r=n;!en(e,r);)r=ae.call(r);return Zt(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return Gn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return ur(this,bt(Vn(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return Wn(this,bt(Vn(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get:function(){return Vn(this)}},mode:{configurable:!0,get:function(){return Gn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},rr=new WeakMap,lr={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return z.call(Vn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return J.call(Vn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return X.call(Vn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return Q.call(Vn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){A(n)&&kt(Vn(e),t,Dt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return rr.set(e,this),Nt.apply(Vn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){A(n)&&xt(Vn(e),t,Dt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Vn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return hn(tn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Vn(this);return this===e?0:this.contains(e)?20:V.call(t,e)&x?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Vn(this);return 0!=(V.call(t,e)&x)&&en(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return jn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=jn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return jn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return ce.call(Vn(this))}},nextSibling:{enumerable:!0,configurable:!0,get:function(){return null}},previousSibling:{enumerable:!0,configurable:!0,get:function(){return null}},nodeName:{enumerable:!0,configurable:!0,get:function(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get:function(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get:function(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get:function(){return Vn(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==q&&(t+=cn(l))}return t},set:function(e){var t=Vn(this);ie.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!C(e)&&O(e.composed)?Vn(this).getRootNode(e):this}}};function or(){throw new TypeError("Illegal constructor")}function ar(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof I))return r;n=e.getRootNode()}for(var l,o=e;!S(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=S(a)?o.parentNode:a}else o=!Qn(o)&&!gt(o)||!t&&o===n?o instanceof I?o.parentNode:null:o.host;return l=e instanceof Window?e.document:bt(e),r[r.length-1]===l&&r.push(window),r}
|
|
1
|
+
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=Object.assign,i=Object.create,u=Object.defineProperties,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.hasOwnProperty,p=Object.setPrototypeOf,g=Array.prototype,m=g.filter,v=g.find,b=g.indexOf,d=g.map,y=g.push,E=g.reduce,w=g.reverse,T=g.slice,N=g.splice,L=g.forEach,M=String.prototype.charCodeAt;function C(e){return void 0===e}function S(e){return null===e}function O(e){return!0===e}function H(e){return!1===e}function A(e){return"function"==typeof e}function R(e){return"object"===o(e)}var _,P,D=function(){if("object"===("undefined"==typeof globalThis?"undefined":o(globalThis)))return globalThis;var 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}(),$="$shadowResolver$",B="$shadowToken$",I=Node,k=I.prototype,x=I.DOCUMENT_POSITION_CONTAINED_BY,F=I.DOCUMENT_POSITION_PRECEDING,W=I.DOCUMENT_POSITION_FOLLOWING,j=I.ELEMENT_NODE,U=I.TEXT_NODE,K=I.CDATA_SECTION_NODE,G=I.PROCESSING_INSTRUCTION_NODE,q=I.COMMENT_NODE,X=k.appendChild,Y=k.cloneNode,V=k.compareDocumentPosition,z=k.insertBefore,J=k.removeChild,Q=k.replaceChild,Z=k.hasChildNodes,ee=HTMLElement.prototype.contains,te=s(k,"firstChild").get,ne=s(k,"lastChild").get,re=s(k,"textContent").get,le=s(k,"parentNode").get,oe=s(k,"ownerDocument").get,ae=h.call(k,"parentElement")?s(k,"parentElement").get:s(HTMLElement.prototype,"parentElement").get,ie=s(k,"textContent").set,ue=h.call(k,"childNodes")?s(k,"childNodes").get:s(HTMLElement.prototype,"childNodes").get,ce=h.call(k,"isConnected")?s(k,"isConnected").get:function(){var e=oe.call(this);return null===e||0!=(V.call(e,this)&x)},se=Element.prototype,fe=se.getAttribute,he=se.getBoundingClientRect,pe=se.getElementsByTagName,ge=se.getElementsByTagNameNS,me=se.hasAttribute,ve=se.querySelector,be=se.querySelectorAll,de=se.removeAttribute,ye=se.setAttribute,Ee=h.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:function(){throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},we=s(Element.prototype,"childElementCount").get,Te=s(Element.prototype,"firstElementChild").get,Ne=s(Element.prototype,"lastElementChild").get,Le=s(HTMLElement.prototype,"innerText"),Me=Le?Le.get:null,Ce=Le?Le.set:null,Se=s(HTMLElement.prototype,"outerText"),Oe=Se?Se.get:null,He=Se?Se.set:null,Ae=h.call(Element.prototype,"innerHTML")?s(Element.prototype,"innerHTML"):s(HTMLElement.prototype,"innerHTML"),Re=Ae.get,_e=Ae.set,Pe=h.call(Element.prototype,"outerHTML")?s(Element.prototype,"outerHTML"):s(HTMLElement.prototype,"outerHTML"),De=Pe.get,$e=Pe.set,Be=s(Element.prototype,"tagName").get,Ie=s(HTMLElement.prototype,"tabIndex"),ke=Ie.get,xe=Ie.set,Fe=h.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,We=h.call(Element.prototype,"children")?s(Element.prototype,"children").get:s(HTMLElement.prototype,"children").get,je=HTMLElement.prototype.getElementsByClassName,Ue=h.call(Element.prototype,"shadowRoot")?s(Element.prototype,"shadowRoot").get:function(){return null},Ke=h.call(Element.prototype,"assignedSlot")?s(Element.prototype,"assignedSlot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(_=HTMLSlotElement.prototype.assignedNodes,P=HTMLSlotElement.prototype.assignedElements):(_=function(){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")},P=function(){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")});var Ge=s(Event.prototype,"target").get,qe=s(Event.prototype,"currentTarget").get,Xe=s(FocusEvent.prototype,"relatedTarget").get,Ye=h.call(Event.prototype,"composedPath")?Event.prototype.composedPath:function(){return[]},Ve=s(Document.prototype,"activeElement").get,ze=h.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Je=h.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,Qe=s(Document.prototype,"defaultView").get,Ze=Document.prototype,et=Ze.querySelectorAll,tt=Ze.getElementById,nt=Ze.getElementsByClassName,rt=Ze.getElementsByTagName,lt=Ze.getElementsByTagNameNS,ot=HTMLDocument.prototype.getElementsByName,at=window,it=at.addEventListener,ut=at.removeEventListener,ct=at.getComputedStyle,st=at.getSelection,ft=MutationObserver,ht=ft.prototype.observe,pt=null;"undefined"!=typeof ShadowRoot&&(pt=ShadowRoot);var gt=!S(pt),mt=S(pt)?function(){return!1}:function(e){return e instanceof pt};var vt,bt=Document.prototype.createElement;function dt(e){var t=oe.call(e);return null===t?e:t}function yt(e){var t=dt(e),n=Qe.call(t);if(null===n)throw new TypeError;return n}function Et(e){if(C(vt)){var t=dt(e);vt=t.body&&"temporary-bypass"===fe.call(t.body,"data-global-patching-bypass")}return O(vt)}function wt(e){var t=e.length,n=[];if(t>0)for(var r=0;r<t;r++)n[r]=e[r];return n}"undefined"==typeof HTMLSlotElement&&function(){var e=l((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,c(Document.prototype,"createElement",{value:function(t,n){var r=bt.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)&&p(r,e.prototype),r}})}();var Tt="undefined"!=typeof EventTarget?EventTarget.prototype:I.prototype,Nt=Tt.addEventListener,Lt=Tt.dispatchEvent,Mt=Tt.removeEventListener,Ct=new WeakMap,St=new WeakMap;function Ot(e,t,n){if(t===n)return!0;var r=St.get(e);return C(r)&&(r=e.composedPath(),St.set(e,r)),r.includes(n)}function Ht(e){if(!function(e){return A(e)||R(e)&&!S(e)&&A(e.handleEvent)}(e))return e;var t=Ct.get(e);return C(t)&&(t=function(t){var n=qe.call(t);if(Ot(t,Pt(t),n))return A(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Ct.set(e,t)),t}var At=new WeakMap,Rt=new WeakMap;function _t(e){var t=Rt.get(e);return C(t)&&(t=i(null),Rt.set(e,t)),t}function Pt(e){var t;return null!==(t=ar.get(e))&&void 0!==t?t:Ge.call(e)}var Dt=new WeakMap;function $t(e){if(!A(e))throw new TypeError;var t=Dt.get(e);return C(t)&&((t=function(t){var n=qe.call(t);mt(n)||(n=Zn(n)),Ot(t,Pt(t),n)&&e.call(n,t)}).placement=1,Dt.set(e,t)),t}var Bt=new WeakMap;function It(e){if(!A(e))throw new TypeError;var t=Bt.get(e);return C(t)&&((t=function(t){var n=qe.call(t);Ot(t,Pt(t),n)&&e.call(n,t)}).placement=0,Bt.set(e,t)),t}function kt(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=_t(qe.call(e))[r];c(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var i=T.call(a);function u(n){L.call(i,(function(r){H(t)&&r.placement===n&&-1!==b.call(a,r)&&r.call(void 0,e)}))}At.set(e,1),u(1),H(t)&&H(n)&&(At.set(e,0),u(0)),At.set(e,2)}function xt(e,t,n){var r=_t(e),l=r[t];C(l)&&(l=r[t]=[]),-1===b.call(l,n)&&(0===l.length&&Nt.call(e,t,kt),y.call(l,n))}function Ft(e,t,n){var r,l;C(l=_t(e)[t])||-1===(r=b.call(l,n))||(N.call(l,r,1),0===l.length&&Mt.call(e,t,kt))}function Wt(e,t,n){A(t)&&xt(this,e,It(t))}function jt(e,t,n){A(t)&&Ft(this,e,It(t))}var Ut="$$HostElementKey$$",Kt="$$ShadowedNodeKey$$";function Gt(e,t,n){var r=e,l=n.value;r[t]=l}function qt(e){return e[Ut]}function Xt(e){for(var t,n=e;!S(n);){if(!C(t=qt(n)))return t;n=le.call(n)}}function Yt(e){return e[Kt]}function Vt(e){return!C(qt(e))}function zt(e){return Vt(e)||er(e)||function(e){if(e.nodeType!==I.ELEMENT_NODE)return!1;var t,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1);for(;!S(t=n.nextNode());)if(er(t))return!0;return!1}(e)}function Jt(e){for(var t=ae.call(e);!S(t)&&tn(t);)e=t,t=ae.call(e);return e}function Qt(e,t){for(var n=Yt(e),r=t instanceof Element?t:ae.call(t);!S(r)&&r!==e;){var l=Xt(r),o=ae.call(r);if(l===n)return tn(r);if(o===e)return!1;if(S(o)||Xt(o)===l)r=o;else{if(!tn(o))return!1;if(!S(r=Zt(Jt(o)))){if(r===e)return!0;if(Xt(r)===n)return!0}}}return!1}function Zt(e){if(!(e instanceof I))return null;var t=Xt(e);if(C(t))return null;for(var n=e;!S(n)&&Yt(n)!==t;)n=le.call(n);return S(n)?null:n}function en(e){return tn(e)&&Vt(e)}function tn(e){return e instanceof HTMLSlotElement}function nn(e,t){var n=Xt(t);return C(n)||Yt(e)===n}function rn(e){var t=Qn(e);return an(t,wt(ue.call(t)))}function ln(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!nn(e,o)&&Qt(e,o)&&y.call(n,o)}return n}function on(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!nn(e,l)&&Qt(e,l))return l}return null}function an(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];nn(e,o)&&y.call(n,o)}return n}function un(e,t){for(var n=0,r=t.length;n<r;n+=1)if(nn(e,t[n]))return t[n];return null}function cn(e){if(!er(e)&&!tn(e))return wt(ue.call(e));if(er(e)){var t=wt(be.call(e,"slot")),n=Vn(Zn(e));return E.call(t,(function(e,t){return n===Vn(t)&&y.apply(e,sn(t)),e}),[])}var r=wt(ue.call(e)),l=Vn(e);return m.call(r,(function(e){return l===Vn(e)}))}function sn(e){var t=Zt(e);if(S(t))return[];var n=wt(ue.call(e));return m.call(n,(function(e){return!Vt(e)||!nn(t,e)}))}function fn(e){if(e.nodeType===j){for(var t=cn(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==q&&(n+=fn(o))}return n}return e.nodeValue}var hn=new WeakMap;function pn(){throw new TypeError("Illegal constructor")}function gn(e){var t=i(pn.prototype);return hn.set(t,e),L.call(e,(function(e,n){c(t,n,{value:e,enumerable:!0,configurable:!0})})),t}pn.prototype=i(NodeList.prototype,(n(e={constructor:{writable:!0,configurable:!0,value:pn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return hn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){L.call(hn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return d.call(hn.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return d.call(hn.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return hn.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=hn.get(e);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}}),n(e,Symbol.toStringTag,{configurable:!0,get:function(){return"NodeList"}}),n(e,"toString",{writable:!0,configurable:!0,value:function(){return"[object NodeList]"}}),e)),p(pn,NodeList);var mn=new WeakMap;function vn(){throw new TypeError("Illegal constructor")}function bn(e){var t=i(vn.prototype);return mn.set(t,e),L.call(e,(function(e,n){c(t,n,{value:e,enumerable:!0,configurable:!0})})),t}vn.prototype=i(HTMLCollection.prototype,(n(t={constructor:{writable:!0,configurable:!0,value:vn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return mn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=mn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===fe.call(l,"id")||e===fe.call(l,"name"))return l}return null}}},Symbol.toStringTag,{configurable:!0,get:function(){return"HTMLCollection"}}),n(t,"toString",{writable:!0,configurable:!0,value:function(){return"[object HTMLCollection]"}}),t)),p(vn,HTMLCollection);var dn=/[&\u00A0"]/g,yn=/[&\u00A0<>]/g,En=String.prototype,wn=En.replace,Tn=En.toLowerCase;function Nn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function Ln(e){return wn.call(e,dn,Nn)}var Mn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Cn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Sn(e){switch(e.nodeType){case j:for(var t,n=e.attributes,r=Be.call(e),l="<"+Tn.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+Ln(t.value)+'"';return l+=">",Mn.has(r)?l:l+function(e){for(var t="",n=cn(e),r=0,l=n.length;r<l;r+=1)t+=Sn(n[r]);return t}(e)+"</"+Tn.call(r)+">";case U:var a=e.data,i=e.parentNode;return i instanceof Element&&Cn.has(Be.call(i))?a:function(e){return wn.call(e,yn,Nn)}(a);case K:return"<!CDATA[[".concat(e.data,"]]>");case G:return"<?".concat(e.target," ").concat(e.data,"?>");case q:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}D.lwcRuntimeFlags||Object.defineProperty(D,"lwcRuntimeFlags",{value:i(null)});var On=D.lwcRuntimeFlags;function Hn(e){return en(e)||er(e)}function An(e,t){var n=Zt(e);if(t===n)return Zn(n);if(t instanceof Element){if(Xt(e)===Xt(t))return t;if(!S(n)&&tn(t)){var r=Zt(t);if(!S(r)&&nn(n,r))return r}}return null}function Rn(){return Un(this).length>0}function _n(){return Un(this)[0]||null}function Pn(){var e=Un(this);return e[e.length-1]||null}function Dn(){return fn(this)}function $n(){var e=le.call(this);return S(e)?e:An(this,e)}function Bn(){var e=le.call(this);if(S(e))return null;var t=An(this,e);return t instanceof Element?t:null}function In(e){return this===e?0:this.getRootNode()===e?10:qt(this)!==qt(e)?35:V.call(this,e)}function kn(e){return null!=e&&qt(this)===qt(e)&&0!=(V.call(this,e)&x)}function xn(e){var t=Y.call(this,!1);if(!e)return t;for(var n=Un(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function Fn(){if(er(this)){var e=Zt(this);return gn(S(e)?cn(this):an(e,cn(this)))}return ue.call(this)}var Wn=I.prototype.getRootNode,jn=C(Wn)?function(){for(var e,t=this;!S(e=le.call(t));)t=e;return t}:Wn;u(I.prototype,{firstChild:{get:function(){return Hn(this)?_n.call(this):te.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return Hn(this)?Pn.call(this):ne.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return On.ENABLE_NODE_PATCH?Et(this)?re.call(this):Dn.call(this):zt(this)?Dn.call(this):re.call(this)},set:function(e){ie.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(Vt(this))return $n.call(this);var e=le.call(this);return!S(e)&&en(e)?Zt(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(Vt(this))return Bn.call(this);var e=ae.call(this);return!S(e)&&en(e)?Zt(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return Hn(this)?Fn.call(this):ue.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return Hn(this)?Rn.call(this):Z.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return Et(this)?V.call(this,e):In.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||(On.ENABLE_NODE_PATCH?Et(this)?ee.call(this,e):kn.call(this,e):null!=e&&(Vt(this)||er(this)?kn.call(this,e):ee.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return On.ENABLE_NODE_PATCH?O(e)?Et(this)?Y.call(this,e):xn.call(this,e):Y.call(this,e):Vt(this)||er(this)?xn.call(this,e):Y.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return O(!C(e)&&!!e.composed)?jn.call(this,e):S(n=Zt(t=this))?jn.call(t):Zn(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return ce.call(this)}}});var Un=function(e){return e.childNodes};h.call(HTMLElement.prototype,"contains")&&c(HTMLElement.prototype,"contains",s(I.prototype,"contains")),h.call(HTMLElement.prototype,"parentElement")&&c(HTMLElement.prototype,"parentElement",s(I.prototype,"parentElement"));var Kn=function(e,t){for(var n;!C(n=e.host);){var r=n.getRootNode();if(r===t)return n;e=r}};function Gn(e,t,n,r){var l=Je.call(t,n,r),o=[],a=function(e){for(var t,n=[],r=e.getRootNode();!C(r);)n.push(r),r=null===(t=r.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!S(l))for(var i=0;i<l.length;i++){var u=l[i];if(!en(u)){var c=u.getRootNode();if(-1===b.call(a,c)){var s=Kn(c,a[0]);C(s)||-1!==b.call(l,s)||-1!==b.call(o,s)||y.call(o,s)}else y.call(o,u)}}return o}var qn=new WeakMap,Xn=document.createDocumentFragment;function Yn(e){var t=qn.get(e);if(C(t))throw new TypeError;return t}function Vn(e){return e.$shadowResolver$}function zn(e,t){e.$shadowResolver$=t}function Jn(e){return Yn(e).delegatesFocus}function Qn(e){return Yn(e).host}function Zn(e){return Yn(e).shadowRoot}function er(e){var t=qn.get(e);return!C(t)&&e===t.host}function tr(e){var t=qn.get(e);return!C(t)&&e===t.shadowRoot}c(I.prototype,$,{set:function(e){var t,n;C(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Gt(t,Ut,{value:n,configurable:!0}))},get:function(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),c(D,"$isNativeShadowRootDefined$",{value:gt});var nr=0;function rr(e,t){if(qn.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.");var n=t.mode,r=t.delegatesFocus,l=dt(e),o=Xn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};qn.set(o,a),qn.set(e,a);var i=function(){return o},u=i.nodeKey=nr++;return Gt(e,Kt,{value:u}),zn(o,i),p(o,ur.prototype),o}var lr={constructor:{writable:!0,configurable:!0,value:ur},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},or={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Qn(this),t=dt(e),n=Ve.call(t);if(S(n))return n;if(0==(V.call(e,n)&x))return null;for(var r=n;!nn(e,r);)r=ae.call(r);return tn(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return Yn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return fr(this,dt(Qn(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return Gn(this,dt(Qn(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get:function(){return Qn(this)}},mode:{configurable:!0,get:function(){return Yn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},ar=new WeakMap,ir={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return z.call(Qn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return J.call(Qn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return X.call(Qn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return Q.call(Qn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){A(n)&&xt(Qn(e),t,$t(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return ar.set(e,this),Lt.apply(Qn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){A(n)&&Ft(Qn(e),t,$t(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Qn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return gn(rn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Qn(this);return this===e?0:this.contains(e)?20:V.call(t,e)&x?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Qn(this);return 0!=(V.call(t,e)&x)&&nn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return Un(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=Un(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Un(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return ce.call(Qn(this))}},nextSibling:{enumerable:!0,configurable:!0,get:function(){return null}},previousSibling:{enumerable:!0,configurable:!0,get:function(){return null}},nodeName:{enumerable:!0,configurable:!0,get:function(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get:function(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get:function(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get:function(){return Qn(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=Un(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==q&&(t+=fn(l))}return t},set:function(e){var t=Qn(this);ie.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!C(e)&&O(e.composed)?Qn(this).getRootNode(e):this}}};function ur(){throw new TypeError("Illegal constructor")}function cr(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof I))return r;n=e.getRootNode()}for(var l,o=e;!S(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=S(a)?o.parentNode:a}else o=!tr(o)&&!mt(o)||!t&&o===n?o instanceof I?o.parentNode:null:o.host;return l=e instanceof Window?e.document:dt(e),r[r.length-1]===l&&r.push(window),r}
|
|
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 ir(e,t){if(S(e))return null;for(var n,r,l,o,a=ar(e,!0),i=t,u=0;u<i.length;u++)if((l=(n=i[u])instanceof Window?n:n.getRootNode())!==r&&(o=a.indexOf(l),r=l),!Qn(l)||!C(o)&&o>-1)return n;return null}function ur(e,t,n,r){var l=Ve.call(t,n,r);return S(l)?l:ir(e,ar(l,!0))}a(tr,lr,{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return mn(m.call(tn(this),(function(e){return e instanceof Element})))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,on(n=Vn(this),Et(be.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return hn((t=e,ln(n=Vn(this),Et(be.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Mn(e[n]);return t},set:function(e){var t=Vn(this);_e.call(t,e)}}},nr),or.prototype=i(DocumentFragment.prototype,tr),c(or,Symbol.hasInstance,{value:function(e){return R(e)&&!S(e)&&(gt(e)||f(e)===or.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return ur(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Wn(this,this,e,t)},c(Document.prototype,"activeElement",{get:function(){var e=Ye.call(this);if(S(e))return e;for(;!C(Gt(e));)if(S(e=ae.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),c(Document.prototype,"getElementById",{value:function(){var e=et.apply(this,T.call(arguments));return S(e)?null:C(Gt(e))||yt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelector",{value:function(){var e=Et(Ze.apply(this,T.call(arguments))),t=v.call(e,(function(e){return C(Gt(e))||yt(e)}));return C(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelectorAll",{value:function(){var e=Et(Ze.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(Gt(e))||yt(e)}));return hn(t)},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByClassName",{value:function(){var e=Et(tt.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(Gt(e))||yt(e)}));return mn(t)},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagName",{value:function(){var e=Et(nt.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(Gt(e))||yt(e)}));return mn(t)},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=Et(rt.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(Gt(e))||yt(e)}));return mn(t)},writable:!0,enumerable:!0,configurable:!0}),c(s(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=Et(lt.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(Gt(e))||yt(e)}));return hn(t)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:or,configurable:!0,writable:!0});var cr=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var sr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function fr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!cr)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!cr.get.call(e)})()&&(HTMLElement.prototype.click=function(){Tt.call(this,"click",fr);try{sr.value.call(this)}finally{Lt.call(this,"click",fr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=a(i(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}),t=Event;function n(e,n){var r=new t(e,n),l=!(!n||!n.composed);return Object.defineProperties(r,{composed:{get:function(){return l},configurable:!0,enumerable:!0}}),r}n.prototype=t.prototype,n.AT_TARGET=t.AT_TARGET,n.BUBBLING_PHASE=t.BUBBLING_PHASE,n.CAPTURING_PHASE=t.CAPTURING_PHASE,n.NONE=t.NONE,window.Event=n,Object.defineProperties(Event.prototype,{composed:{get:function(){var t=this.type;return 1===e[t]},configurable:!0,enumerable:!0}})}();var hr,pr,gr=CustomEvent;function mr(e,t){var n=new gr(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(mr.prototype=gr.prototype,window.CustomEvent=mr,"undefined"!=typeof ClipboardEvent){var vr=a(i(null),{copy:1,cut:1,paste:1});u(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===vr[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&(hr=s(HTMLIFrameElement.prototype,"contentWindow"),pr=hr.get,hr.get=function(){var e,t=pr.call(this);return S(t)||C(Gt(this))?t:(e=t,{addEventListener:function(){return e.addEventListener.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},postMessage:function(){return e.postMessage.apply(e,arguments)},removeEventListener:function(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}})},c(HTMLIFrameElement.prototype,"contentWindow",hr));var br,dr=MutationObserver,yr=dr.prototype,Er=yr.disconnect,wr=yr.observe,Tr=yr.takeRecords,Nr="$$lwcObserverCallbackWrapper$$",Lr=new WeakMap;function Mr(e){return e.$$lwcNodeObservers$$}function Cr(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,o=i(MutationRecord.prototype);return u(o,{addedNodes:{get:function(){return t},enumerable:!0,configurable:!0},removedNodes:{get:function(){return n},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return r.shadowRoot},enumerable:!0,configurable:!0}}),o}function Sr(e,t){for(var n=t;!S(n);){var r=Mr(n);if(!C(r)&&(r[0]===e||-1!==b.call(r,e)))return!0;n=n.parentNode}return!1}function Or(e,t){return E.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||C(Xt(r)))Sr(t,r)&&y.call(e,n);else if(l.length>0){var a=l[0];if(Sr(t,a)){var i=Mr(r);!i||i[0]!==t&&-1===b.call(i,t)?y.call(e,Cr(n)):y.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if(qt(r)===qt(c)&&Sr(t,r))y.call(e,n);else if(u){var s=Mr(u);!s||s[0]!==t&&-1===b.call(s,t)||y.call(e,Cr(n))}}return e}),[])}function Hr(e){var t=function(e){var t=e[Nr];return C(t)&&(t=e[Nr]=function(t,n){var r=Or(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new dr(t)}function Ar(e,t,n){if(arguments.length>1){var r=T.call(arguments);return r[1]=Ot(r[1]),at.apply(this,r)}return at.apply(this,arguments)}function Rr(e,t,n){if(arguments.length>1){var r=T.call(arguments);r[1]=Ot(r[1]),it.apply(this,r)}it.apply(this,arguments)}function _r(){var e=Ke.call(this);if(!(e instanceof I))return e;var t=bt(e),n=ar(e,this.composed),r=Ge.call(this);if(!(r instanceof I))return S(r)&&C(Gt(e))?e:ir(t,n);if(r===t||r===t.body)return C(Gt(e))?e:ir(t,n);var l=r,o=n;Jn(r)&&(1===Ht.get(this)&&(l=zn(r)));return Jn(e)&&rr.has(this)&&(o=ar(zn(e),this.composed)),ir(l,o)}function Pr(){var e=Ke.call(this);if(!(e instanceof I))return[];var t,n=Boolean(e.shadowRoot),r=(t=e,Un.has(t));if(n&&!r)return Xe.call(this);if(S(Ge.call(this)))return[];var l=e;return Jn(e)&&rr.has(this)&&(l=zn(e)),ar(l,this.composed)}function Dr(e){var t=s(e.prototype,"relatedTarget").get;c(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(S(e))return null;if(!(e instanceof I&&Yt(e)))return e;var n=Ge.call(this);return S(n)&&(n=bt(e)),ir(n,ar(e,!0))},enumerable:!0,configurable:!0})}Hr.prototype=dr.prototype,Hr.prototype.disconnect=function(){var e=this;Er.call(this);var t=Lr.get(this);C(t)||(L.call(t,(function(t){var n=t.$$lwcNodeObservers$$;if(!C(n)){var r=b.call(n,e);-1!==r&&N.call(n,r,1)}})),t.length=0)},Hr.prototype.observe=function(e,t){var n,r=Mr(e);if(C(r)&&(n=r=[],e.$$lwcNodeObservers$$=n),-1===b.call(r,this)&&y.call(r,this),Qn(e)&&(e=e.host),Lr.has(this)){var l=Lr.get(this);-1===b.call(l,e)&&y.call(l,e)}else Lr.set(this,[e]);return wr.call(this,e,t)},Hr.prototype.takeRecords=function(){return Or(Tr.call(this),this)},c(window,"MutationObserver",{value:Hr,configurable:!0,writable:!0}),u(wt,{addEventListener:{value:function(e,t,n){if(Jn(this))return Ft.apply(this,arguments);if(arguments.length<2){var r=T.call(arguments);return r.length>1&&(r[1]=Ot(r[1])),Tt.apply(this,r)}var l=Ot(t);return Tt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(Jn(this))return jt.apply(this,arguments);var r=T.call(arguments);arguments.length>1&&(r[1]=Ot(r[1])),Lt.apply(this,r),Lt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&u(Window.prototype,{addEventListener:{value:Ar,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Rr,enumerable:!0,writable:!0,configurable:!0}}),u(Event.prototype,{target:{get:_r,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=Ge.call(this);return S(e)?null:1===Ht.get(this)?zn(e):e},enumerable:!0,configurable:!0},composedPath:{value:Pr,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:_r,enumerable:!0,configurable:!0},path:{get:Pr,enumerable:!0,configurable:!0}}),Dr(FocusEvent),Dr(MouseEvent);var $r={childList:!0},Br=new WeakMap;function Ir(e){var t=Et(ue.call(e));return E.call(t,(function(e,t){return t instanceof Element&&Zt(t)?y.apply(e,Ir(t)):y.call(e,t),e}),[])}function kr(){var e=le.call(this);return!S(e)&&Zt(e)&&Gt(e)!==Gt(this)?e:null}function xr(e,t){var n,r=Gt(e);if(C(r))n=e instanceof HTMLBodyElement?m.call(t,(function(t){return C(Gt(t))||yt(e)})):T.call(t);else if(Jn(e)){var l=Jt(e);n=S(l)?[]:Xt(e)?nn(e,t):ln(l,t)}else n=m.call(t,(function(e){return qt(e)===r}));return n}function Fr(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Mn(e[n]);return t}function jr(){return Mn(this)}function Wr(){var e=Jt(this),t=S(e)?[]:ln(e,an(this));return mn(m.call(t,(function(e){return e instanceof Element})))}function Ur(){return this.children.length}function Kr(){return this.children[0]||null}function Gr(){var e=this.children;return e.item(e.length-1)||null}function qr(e,t,n){var r;if(Jn(e)){var l=Jt(e);r=S(l)?[]:Xt(e)?nn(e,t):ln(l,t)}else if(Yt(e)){var o=Gt(e);if(C(o))if(1===n){var a=qt(e);r=m.call(t,(function(e){return qt(e)===a}))}else r=T.call(t);else r=m.call(t,(function(e){return qt(e)===o}))}else r=e instanceof HTMLBodyElement||1===n?m.call(t,(function(t){return C(Gt(t))||yt(e)})):T.call(t);return r}u(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Br.get(this)||(Br.set(this,!0),br||(br=new st((function(e){var t=[];L.call(e,(function(e){var n=e.target;-1===b.call(t,n)&&(y.call(t,n),Nt.call(n,new CustomEvent("slotchange")))}))}))),ft.call(br,this,$r))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(Yt(this)){var t=!C(e)&&O(e.flatten),n=t?Ir(this):un(this);return m.call(n,(function(e){return e instanceof Element}))}return P.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){if(Yt(this)){var t=!C(e)&&O(e.flatten);return t?Ir(this):un(this)}return _.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=fe.call(this,"name");return S(e)?"":e},set:function(e){ye.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(Yt(this)){var e=Jt(this);return hn(S(e)?[]:ln(e,an(this)))}return ue.call(this)},enumerable:!0,configurable:!0}}),u(Text.prototype,{assignedSlot:{get:kr,enumerable:!0,configurable:!0}}),u(Element.prototype,{innerHTML:{get:function(){return Cn.ENABLE_ELEMENT_PATCH?yt(this)?Re.call(this):Fr.call(this):Yt(this)||Jn(this)?Fr.call(this):Re.call(this)},set:function(e){_e.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return Cn.ENABLE_ELEMENT_PATCH?yt(this)?De.call(this):jr.call(this):Yt(this)||Jn(this)?jr.call(this):De.call(this)},set:function(e){$e.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?er(this,e):Ee.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(Jn(this)){var e=zn(this);if("open"===e.mode)return e}return Ue.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return Sn(this)?Wr.call(this):je.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return Sn(this)?Ur.call(this):we.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return Sn(this)?Kr.call(this):Te.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return Sn(this)?Gr.call(this):Ne.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:kr,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"innerHTML")&&c(HTMLElement.prototype,"innerHTML",s(Element.prototype,"innerHTML")),h.call(HTMLElement.prototype,"outerHTML")&&c(HTMLElement.prototype,"outerHTML",s(Element.prototype,"outerHTML")),h.call(HTMLElement.prototype,"children")&&c(HTMLElement.prototype,"children",s(Element.prototype,"children")),u(Element.prototype,{querySelector:{value:function(){var e=this,t=Et(be.apply(this,T.call(arguments)));if(Jn(this)){var n=Jt(this);return S(n)?null:Xt(this)?rn(this,t):on(n,t)}if(Yt(this)){var r=Gt(this);if(C(r)){if(!Cn.ENABLE_NODE_LIST_PATCH)return 0===t.length?null:t[0];var l=qt(this),o=v.call(t,(function(e){return qt(e)===l}));return C(o)?null:o}var a=v.call(t,(function(e){return qt(e)===r}));return C(a)?null:a}if(!(Cn.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){var i=t[0];return C(i)?null:i}var u=v.call(t,(function(t){return C(Gt(t))||yt(e)}));return C(u)?null:u},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){var e=Et(be.apply(this,T.call(arguments)));if(!Cn.ENABLE_NODE_LIST_PATCH){var t=qr(this,e,0);return hn(t)}return hn(qr(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),u(Element.prototype,{getElementsByClassName:{value:function(){var e=Et(We.apply(this,T.call(arguments)));if(!Cn.ENABLE_HTML_COLLECTIONS_PATCH)return mn(xr(this,e));var t=qr(this,e,1);return mn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){var e=Et(pe.apply(this,T.call(arguments)));if(!Cn.ENABLE_HTML_COLLECTIONS_PATCH)return mn(xr(this,e));var t=qr(this,e,1);return mn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){var e=Et(ge.apply(this,T.call(arguments)));if(!Cn.ENABLE_HTML_COLLECTIONS_PATCH)return mn(xr(this,e));var t=qr(this,e,1);return mn(t)},writable:!0,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"getElementsByClassName")&&c(HTMLElement.prototype,"getElementsByClassName",s(Element.prototype,"getElementsByClassName"));var Xr="\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",Yr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Vr(e){return e.filter((function(e){return me.call(e,"tabindex")?"0"===fe.call(e,"tabindex"):!Yr.has(Be.call(e))||!me.call(e,"disabled")}))}var zr=new WeakMap;function Jr(e){return(!Jn(e)||!Yn(e))&&(Fe.call(e,Xr)&&function(e){var t=he.call(e),n=t.width,r=t.height,l=n>0||r>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function Qr(){var e=this.getRootNode();if(e!==this){var t=e;if(t.activeElement!==this)for(var n=Et(be.call(this,Xr)),r=!1;!r&&0!==n.length;){var l=n.shift();l.focus.apply(l,arguments);var o=l.getRootNode();r=o.activeElement===l}}else{var a=ve.call(this,Xr);S(a)||a.focus.apply(a,arguments)}}function Zr(e){var t=bt(e),n=Vr(Et(Ze.call(t,Xr))),r=Vr(Et(be.call(e,Xr))),l=r[0],o=r[r.length-1],a=b.call(n,e),i=a>-1?a:b.call(n,l),u=0===r.length?i+1:b.call(n,o)+1;return{prev:T.call(n,0,i),inner:r,next:T.call(n,u)}}function el(e,t){var n=V.call(e,t);return n&x?0:n&F?1:n&j?2:-1}function tl(e){e.preventDefault(),e.stopPropagation()}function nl(e,t){at.call(e,"focusin",tl,!0),at.call(e,"focusout",tl,!0),t(),it.call(e,"focusin",tl,!0),it.call(e,"focusout",tl,!0)}function rl(e,t,n){var r=dt(n),l=function(e,t){var n=e.length;if(n>0)for(var r=0;r<n;r+=1){var l=e[r];if(sl(t.getRootNode(),l))return l}return null}(e,n);S(l)?nl(r,(function(){t.blur()})):nl(r,(function(){l.focus()}))}var ll=!1;function ol(){ll=!0}function al(){ll=!1}function il(){return!ll}function ul(e){if(!ll){var t=Ge.call(e),n=Ke.call(e);if(t===n){var r=qe.call(e);if(!S(r)){var l=Zr(t);if(1===el(t,r)){var o=sl.bind(null,t.getRootNode()),a=v.call(l.inner,o);if(C(a))rl(l.next,n,r);else nl(dt(a),(function(){a.focus()}))}else t===n&&rl(w.call(l.prev),n,r)}}}}function cl(e){if(!ll){var t=qe.call(e);if(!S(t)){var n=Ge.call(e),r=Zr(n);if(-1===b.call(r.inner,t)){var l=Ke.call(e),o=el(n,t);1===o&&rl(r.next,l,t),2===o&&rl(w.call(r.prev),l,t)}}}}function sl(e,t){if(!Jr(t))return!1;for(var n=bt(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===fe.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function fl(e){Lt.call(e,"focusin",ul,!0)}function hl(e){var t=bt(e);zr.get(t)||(zr.set(t,!0),Tt.call(t,"mousedown",ol,!0),Tt.call(t,"mouseup",(function(){setTimeout(al)}),!0),Tt.call(t,"dragstart",al,!0))}function pl(e){Lt.call(e,"focusin",cl,!0)}function gl(e){var t=dt(e);return ut.call(t,e)}function ml(e){var t=dt(e);return ct.call(t)}function vl(e){return"visible"===e.visibility&&"none"!==e.display}function bl(e){var t=[];if(function(e){return e.nodeType===W}(e)){var n=e.tagName,r=gl(e);if("OPTION"===n)return[1,Me.call(e),1];if("TEXTAREA"===n)return[];for(var l=e.childNodes,o=0,a=l.length;o<a;o++)y.apply(t,bl(l[o]));if(!vl(r))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");var i=r.display;"table-cell"===i&&t.push("\t"),"table-row"===i&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==i&&"table-caption"!==i&&"flex"!==i&&"table"!==i||(t.unshift(1),t.push(1))}else(function(e){return e.nodeType===U})(e)&&t.push(function(e){var t=ml(e);if(null===t)return e.textContent||"";var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect();return r.height<=0||r.width<=0?"":(t.removeAllRanges(),t.addRange(n),t.toString()||e.textContent||"")}(e));return t}function dl(e){if(!vl(gl(e)))return cn(e)||"";for(var t=function(e){var t=dt(e),n=ml(e);if(null===n)return null;for(var r=[],l=0;l<n.rangeCount;l++)r.push(n.getRangeAt(l));var o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:r};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],r=e.childNodes,l=0,o=r.length;l<o;l++)y.apply(n,bl(r[l]));!function(e){if(null!==e){var t=e.element,n=e.onselect,r=e.onselectstart,l=e.onselectionchange,o=e.ranges,a=dt(t),i=ml(t);i.removeAllRanges();for(var u=0;u<o.length;u++)i.addRange(o[u]);a.onselect=n,a.onselectstart=r,a.onselectionchange=l}}(t);for(var a="",i=0,u=0,c=n.length;u<c;u++){var s=n[u];if("string"==typeof s){if(i>0){for(var f=0;f<i;f++)a+="\n";i=0}s.length>0&&(a+=s)}else{if(0==a.length)continue;s>i&&(i=s)}}return a}var yl=HTMLElement.prototype,El=yl.blur,wl=yl.focus;function Tl(){return Yn(this)&&H(me.call(this,"tabindex"))?0:ke.call(this)}function Nl(e){var t=Yn(this),n=ke.call(this),r=me.call(this,"tabindex");xe.call(this,e);var l,o=ke.call(this),a=me.call(this,"tabindex"),i=n!==o;(r&&(i||H(a))&&(-1===n&&pl(this),0===n&&t&&fl(this)),H(a))||(r&&a&&H(i)||(-1===o&&(hl(l=this),fl(l),Tt.call(l,"focusin",cl,!0)),0===o&&t&&function(e){hl(e),pl(e),Tt.call(e,"focusin",ul,!0)}(this)))}function Ll(){if(Yn(this)){var e=(n=bt(t=this),S(r=Ye.call(n))||0!=(V.call(t,r)&x)?r:null);if(!S(e))return void e.blur()}var t,n,r;return El.call(this)}function Ml(){var e=il();e&&ol(),Jn(this)&&Yn(this)?Qr.call(this):(wl.apply(this,arguments),e&&al())}u(HTMLElement.prototype,{tabIndex:{get:function(){return Jn(this)?Tl.call(this):ke.call(this)},set:function(e){return Jn(this)?Nl.call(this,e):xe.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(Jn(this))return Ll.call(this);El.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Ml.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Me&&null!==Ce&&c(HTMLElement.prototype,"innerText",{get:function(){return Cn.ENABLE_INNER_OUTER_TEXT_PATCH?Cn.ENABLE_ELEMENT_PATCH?yt(this)?Me.call(this):dl(this):Yt(this)||Jn(this)?dl(this):Me.call(this):Me.call(this)},set:function(e){Ce.call(this,e)},enumerable:!0,configurable:!0}),null!==Oe&&null!==He&&c(HTMLElement.prototype,"outerText",{get:function(){return Cn.ENABLE_INNER_OUTER_TEXT_PATCH?Cn.ENABLE_ELEMENT_PATCH?yt(this)?Oe.call(this):dl(this):Yt(this)||Jn(this)?dl(this):Oe.call(this):Oe.call(this)},set:function(e){He.call(this,e)},enumerable:!0,configurable:!0}),c(Element.prototype,B,{set:function(e){var t=this.$$ShadowTokenKey$$;C(t)||t===e||de.call(this,t),C(e)||ye.call(this,e,""),this.$$ShadowTokenKey$$=e},get:function(){return this.$$ShadowTokenKey$$},configurable:!0});var Cl,Sl=function(){},Ol={childList:!0};function Hl(e,t,n){var r=qn(e);if(r!==t&&(Xn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),Jn(e))return;C(r)&&ft.call(Cl,e,Ol);for(var l=ue.call(e),o=0,a=l.length;o<a;o+=1)Hl(l[o],t,n)}}function Al(e){if(C(Cl)&&(Cl=new st((function(e){L.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=qn(t),o=function(e){return e.$shadowToken$}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];V.call(t,u)&I.DOCUMENT_POSITION_CONTAINED_BY||Hl(u,Sl,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];V.call(t,f)&I.DOCUMENT_POSITION_CONTAINED_BY&&Hl(f,l,o)}}))}))),C(qn(e)))throw new Error("Invalid Element");ft.call(Cl,e,Ol)}c(Element.prototype,"$domManual$",{set:function(e){this.$$DomManualKey$$=e,O(e)&&Al(this)},get:function(){return this.$$DomManualKey$$},configurable:!0})}));
|
|
10
|
+
*/function sr(e,t){if(S(e))return null;for(var n,r,l,o,a=cr(e,!0),i=t,u=0;u<i.length;u++)if((l=(n=i[u])instanceof Window?n:n.getRootNode())!==r&&(o=a.indexOf(l),r=l),!tr(l)||!C(o)&&o>-1)return n;return null}function fr(e,t,n,r){var l=ze.call(t,n,r);return S(l)?l:sr(e,cr(l,!0))}a(lr,ir,{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return bn(m.call(rn(this),(function(e){return e instanceof Element})))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,un(n=Qn(this),wt(be.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return gn((t=e,an(n=Qn(this),wt(be.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=Un(this),t="",n=0,r=e.length;n<r;n+=1)t+=Sn(e[n]);return t},set:function(e){var t=Qn(this);_e.call(t,e)}}},or),ur.prototype=i(DocumentFragment.prototype,lr),c(ur,Symbol.hasInstance,{value:function(e){return R(e)&&!S(e)&&(mt(e)||f(e)===ur.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return fr(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Gn(this,this,e,t)},c(Document.prototype,"activeElement",{get:function(){var e=Ve.call(this);if(S(e))return e;for(;!C(qt(e));)if(S(e=ae.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),c(Document.prototype,"getElementById",{value:function(){var e=tt.apply(this,T.call(arguments));return S(e)?null:C(qt(e))||Et(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelector",{value:function(){var e=wt(et.apply(this,T.call(arguments))),t=v.call(e,(function(e){return C(qt(e))||Et(e)}));return C(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelectorAll",{value:function(){var e=wt(et.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(qt(e))||Et(e)}));return gn(t)},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByClassName",{value:function(){var e=wt(nt.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(qt(e))||Et(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagName",{value:function(){var e=wt(rt.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(qt(e))||Et(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=wt(lt.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(qt(e))||Et(e)}));return bn(t)},writable:!0,enumerable:!0,configurable:!0}),c(s(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=wt(ot.apply(this,T.call(arguments))),t=m.call(e,(function(e){return C(qt(e))||Et(e)}));return gn(t)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:ur,configurable:!0,writable:!0});var hr=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var pr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function gr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!hr)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!hr.get.call(e)})()&&(HTMLElement.prototype.click=function(){Nt.call(this,"click",gr);try{pr.value.call(this)}finally{Mt.call(this,"click",gr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=a(i(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}),t=Event;function n(e,n){var r=new t(e,n),l=!(!n||!n.composed);return Object.defineProperties(r,{composed:{get:function(){return l},configurable:!0,enumerable:!0}}),r}n.prototype=t.prototype,n.AT_TARGET=t.AT_TARGET,n.BUBBLING_PHASE=t.BUBBLING_PHASE,n.CAPTURING_PHASE=t.CAPTURING_PHASE,n.NONE=t.NONE,window.Event=n,Object.defineProperties(Event.prototype,{composed:{get:function(){var t=this.type;return 1===e[t]},configurable:!0,enumerable:!0}})}();var mr,vr,br=CustomEvent;function dr(e,t){var n=new br(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(dr.prototype=br.prototype,window.CustomEvent=dr,"undefined"!=typeof ClipboardEvent){var yr=a(i(null),{copy:1,cut:1,paste:1});u(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===yr[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&(mr=s(HTMLIFrameElement.prototype,"contentWindow"),vr=mr.get,mr.get=function(){var e,t=vr.call(this);return S(t)||C(qt(this))?t:(e=t,{addEventListener:function(){return e.addEventListener.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},postMessage:function(){return e.postMessage.apply(e,arguments)},removeEventListener:function(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}})},c(HTMLIFrameElement.prototype,"contentWindow",mr));var Er=MutationObserver,wr=Er.prototype,Tr=wr.disconnect,Nr=wr.observe,Lr=wr.takeRecords,Mr="$$lwcObserverCallbackWrapper$$",Cr=new WeakMap;function Sr(e){return e.$$lwcNodeObservers$$}function Or(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,o=i(MutationRecord.prototype);return u(o,{addedNodes:{get:function(){return t},enumerable:!0,configurable:!0},removedNodes:{get:function(){return n},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return r.shadowRoot},enumerable:!0,configurable:!0}}),o}function Hr(e,t){for(var n=t;!S(n);){var r=Sr(n);if(!C(r)&&(r[0]===e||-1!==b.call(r,e)))return!0;n=n.parentNode}return!1}function Ar(e,t){return E.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||C(Yt(r)))Hr(t,r)&&y.call(e,n);else if(l.length>0){var a=l[0];if(Hr(t,a)){var i=Sr(r);!i||i[0]!==t&&-1===b.call(i,t)?y.call(e,Or(n)):y.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if(Xt(r)===Xt(c)&&Hr(t,r))y.call(e,n);else if(u){var s=Sr(u);!s||s[0]!==t&&-1===b.call(s,t)||y.call(e,Or(n))}}return e}),[])}function Rr(e){var t=function(e){var t=e[Mr];return C(t)&&(t=e[Mr]=function(t,n){var r=Ar(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Er(t)}function _r(e,t,n){if(arguments.length>1){var r=T.call(arguments);return r[1]=Ht(r[1]),it.apply(this,r)}return it.apply(this,arguments)}function Pr(e,t,n){if(arguments.length>1){var r=T.call(arguments);r[1]=Ht(r[1]),ut.apply(this,r)}ut.apply(this,arguments)}function Dr(){var e=Ge.call(this);if(!(e instanceof I))return e;var t=dt(e),n=cr(e,this.composed),r=qe.call(this);if(!(r instanceof I))return S(r)&&C(qt(e))?e:sr(t,n);if(r===t||r===t.body)return C(qt(e))?e:sr(t,n);var l=r,o=n;er(r)&&(1===At.get(this)&&(l=Zn(r)));return er(e)&&ar.has(this)&&(o=cr(Zn(e),this.composed)),sr(l,o)}function $r(){var e=Ge.call(this);if(!(e instanceof I))return[];var t,n=Boolean(e.shadowRoot),r=(t=e,qn.has(t));if(n&&!r)return Ye.call(this);if(S(qe.call(this)))return[];var l=e;return er(e)&&ar.has(this)&&(l=Zn(e)),cr(l,this.composed)}function Br(e){var t=s(e.prototype,"relatedTarget").get;c(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(S(e))return null;if(!(e instanceof I&&Vt(e)))return e;var n=qe.call(this);return S(n)&&(n=dt(e)),sr(n,cr(e,!0))},enumerable:!0,configurable:!0})}Rr.prototype=Er.prototype,Rr.prototype.disconnect=function(){var e=this;Tr.call(this);var t=Cr.get(this);C(t)||(L.call(t,(function(t){var n=t.$$lwcNodeObservers$$;if(!C(n)){var r=b.call(n,e);-1!==r&&N.call(n,r,1)}})),t.length=0)},Rr.prototype.observe=function(e,t){var n,r=Sr(e);if(C(r)&&(n=r=[],e.$$lwcNodeObservers$$=n),-1===b.call(r,this)&&y.call(r,this),tr(e)&&(e=e.host),Cr.has(this)){var l=Cr.get(this);-1===b.call(l,e)&&y.call(l,e)}else Cr.set(this,[e]);return Nr.call(this,e,t)},Rr.prototype.takeRecords=function(){return Ar(Lr.call(this),this)},c(window,"MutationObserver",{value:Rr,configurable:!0,writable:!0}),u(Tt,{addEventListener:{value:function(e,t,n){if(er(this))return Wt.apply(this,arguments);if(arguments.length<2){var r=T.call(arguments);return r.length>1&&(r[1]=Ht(r[1])),Nt.apply(this,r)}var l=Ht(t);return Nt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(er(this))return jt.apply(this,arguments);var r=T.call(arguments);arguments.length>1&&(r[1]=Ht(r[1])),Mt.apply(this,r),Mt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&u(Window.prototype,{addEventListener:{value:_r,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Pr,enumerable:!0,writable:!0,configurable:!0}}),u(Event.prototype,{target:{get:Dr,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=qe.call(this);return S(e)?null:1===At.get(this)?Zn(e):e},enumerable:!0,configurable:!0},composedPath:{value:$r,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Dr,enumerable:!0,configurable:!0},path:{get:$r,enumerable:!0,configurable:!0}}),Br(FocusEvent),Br(MouseEvent);var Ir,kr=h.call(Text.prototype,"assignedSlot")?s(Text.prototype,"assignedSlot").get:function(){return null},xr={childList:!0},Fr=new WeakMap;function Wr(e){var t=wt(ue.call(e));return E.call(t,(function(e,t){return t instanceof Element&&tn(t)?y.apply(e,Wr(t)):y.call(e,t),e}),[])}function jr(){var e=le.call(this);if(e instanceof Element){var t=Ue.call(e);if(mt(t))return this instanceof Text?kr.call(this):Ke.call(this)}return!S(e)&&tn(e)&&qt(e)!==qt(this)?e:null}function Ur(e,t){var n,r=qt(e);if(C(r))n=e instanceof HTMLBodyElement?m.call(t,(function(t){return C(qt(t))||Et(e)})):T.call(t);else if(er(e)){var l=Zt(e);n=S(l)?[]:Yt(e)?ln(e,t):an(l,t)}else n=m.call(t,(function(e){return Xt(e)===r}));return n}function Kr(){for(var e=Un(this),t="",n=0,r=e.length;n<r;n+=1)t+=Sn(e[n]);return t}function Gr(){return Sn(this)}function qr(){var e=Zt(this),t=S(e)?[]:an(e,cn(this));return bn(m.call(t,(function(e){return e instanceof Element})))}function Xr(){return this.children.length}function Yr(){return this.children[0]||null}function Vr(){var e=this.children;return e.item(e.length-1)||null}function zr(e,t,n){var r;if(er(e)){var l=Zt(e);r=S(l)?[]:Yt(e)?ln(e,t):an(l,t)}else if(Vt(e)){var o=qt(e);if(C(o))if(1===n){var a=Xt(e);r=m.call(t,(function(e){return Xt(e)===a}))}else r=T.call(t);else r=m.call(t,(function(e){return Xt(e)===o}))}else r=e instanceof HTMLBodyElement||1===n?m.call(t,(function(t){return C(qt(t))||Et(e)})):T.call(t);return r}u(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Fr.get(this)||(Fr.set(this,!0),Ir||(Ir=new ft((function(e){var t=[];L.call(e,(function(e){var n=e.target;-1===b.call(t,n)&&(y.call(t,n),Lt.call(n,new CustomEvent("slotchange")))}))}))),ht.call(Ir,this,xr))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(Vt(this)){var t=!C(e)&&O(e.flatten),n=t?Wr(this):sn(this);return m.call(n,(function(e){return e instanceof Element}))}return P.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){if(Vt(this)){var t=!C(e)&&O(e.flatten);return t?Wr(this):sn(this)}return _.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=fe.call(this,"name");return S(e)?"":e},set:function(e){ye.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(Vt(this)){var e=Zt(this);return gn(S(e)?[]:an(e,cn(this)))}return ue.call(this)},enumerable:!0,configurable:!0}}),u(Text.prototype,{assignedSlot:{get:jr,enumerable:!0,configurable:!0}}),u(Element.prototype,{innerHTML:{get:function(){return On.ENABLE_ELEMENT_PATCH?Et(this)?Re.call(this):Kr.call(this):zt(this)?Kr.call(this):Re.call(this)},set:function(e){_e.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return On.ENABLE_ELEMENT_PATCH?Et(this)?De.call(this):Gr.call(this):zt(this)?Gr.call(this):De.call(this)},set:function(e){$e.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?rr(this,e):Ee.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(er(this)){var e=Zn(this);if("open"===e.mode)return e}return Ue.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return Hn(this)?qr.call(this):We.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return Hn(this)?Xr.call(this):we.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return Hn(this)?Yr.call(this):Te.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return Hn(this)?Vr.call(this):Ne.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:jr,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"innerHTML")&&c(HTMLElement.prototype,"innerHTML",s(Element.prototype,"innerHTML")),h.call(HTMLElement.prototype,"outerHTML")&&c(HTMLElement.prototype,"outerHTML",s(Element.prototype,"outerHTML")),h.call(HTMLElement.prototype,"children")&&c(HTMLElement.prototype,"children",s(Element.prototype,"children")),u(Element.prototype,{querySelector:{value:function(){var e=this,t=wt(be.apply(this,T.call(arguments)));if(er(this)){var n=Zt(this);return S(n)?null:Yt(this)?on(this,t):un(n,t)}if(Vt(this)){var r=qt(this);if(C(r)){if(!On.ENABLE_NODE_LIST_PATCH)return 0===t.length?null:t[0];var l=Xt(this),o=v.call(t,(function(e){return Xt(e)===l}));return C(o)?null:o}var a=v.call(t,(function(e){return Xt(e)===r}));return C(a)?null:a}if(!(On.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){var i=t[0];return C(i)?null:i}var u=v.call(t,(function(t){return C(qt(t))||Et(e)}));return C(u)?null:u},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){var e=wt(be.apply(this,T.call(arguments)));if(!On.ENABLE_NODE_LIST_PATCH){var t=zr(this,e,0);return gn(t)}return gn(zr(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),u(Element.prototype,{getElementsByClassName:{value:function(){var e=wt(je.apply(this,T.call(arguments)));if(!On.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Ur(this,e));var t=zr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){var e=wt(pe.apply(this,T.call(arguments)));if(!On.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Ur(this,e));var t=zr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){var e=wt(ge.apply(this,T.call(arguments)));if(!On.ENABLE_HTML_COLLECTIONS_PATCH)return bn(Ur(this,e));var t=zr(this,e,1);return bn(t)},writable:!0,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"getElementsByClassName")&&c(HTMLElement.prototype,"getElementsByClassName",s(Element.prototype,"getElementsByClassName"));var Jr="\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",Qr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Zr(e){return e.filter((function(e){return me.call(e,"tabindex")?"0"===fe.call(e,"tabindex"):!Qr.has(Be.call(e))||!me.call(e,"disabled")}))}var el=new WeakMap;function tl(e){return(!er(e)||!Jn(e))&&(Fe.call(e,Jr)&&function(e){var t=he.call(e),n=t.width,r=t.height,l=n>0||r>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function nl(){var e=this.getRootNode();if(e!==this){var t=e;if(t.activeElement!==this)for(var n=wt(be.call(this,Jr)),r=!1;!r&&0!==n.length;){var l=n.shift();l.focus.apply(l,arguments);var o=l.getRootNode();r=o.activeElement===l}}else{var a=ve.call(this,Jr);S(a)||a.focus.apply(a,arguments)}}function rl(e){var t=dt(e),n=Zr(wt(et.call(t,Jr))),r=Zr(wt(be.call(e,Jr))),l=r[0],o=r[r.length-1],a=b.call(n,e),i=a>-1?a:b.call(n,l),u=0===r.length?i+1:b.call(n,o)+1;return{prev:T.call(n,0,i),inner:r,next:T.call(n,u)}}function ll(e,t){var n=V.call(e,t);return n&x?0:n&F?1:n&W?2:-1}function ol(e){e.preventDefault(),e.stopPropagation()}function al(e,t){it.call(e,"focusin",ol,!0),it.call(e,"focusout",ol,!0),t(),ut.call(e,"focusin",ol,!0),ut.call(e,"focusout",ol,!0)}function il(e,t,n){var r=yt(n),l=function(e,t){var n=e.length;if(n>0)for(var r=0;r<n;r+=1){var l=e[r];if(gl(t.getRootNode(),l))return l}return null}(e,n);S(l)?al(r,(function(){t.blur()})):al(r,(function(){l.focus()}))}var ul=!1;function cl(){ul=!0}function sl(){ul=!1}function fl(){return!ul}function hl(e){if(!ul){var t=qe.call(e),n=Ge.call(e);if(t===n){var r=Xe.call(e);if(!S(r)){var l=rl(t);if(1===ll(t,r)){var o=gl.bind(null,t.getRootNode()),a=v.call(l.inner,o);if(C(a))il(l.next,n,r);else al(yt(a),(function(){a.focus()}))}else t===n&&il(w.call(l.prev),n,r)}}}}function pl(e){if(!ul){var t=Xe.call(e);if(!S(t)){var n=qe.call(e),r=rl(n);if(-1===b.call(r.inner,t)){var l=Ge.call(e),o=ll(n,t);1===o&&il(r.next,l,t),2===o&&il(w.call(r.prev),l,t)}}}}function gl(e,t){if(!tl(t))return!1;for(var n=dt(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===fe.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function ml(e){Mt.call(e,"focusin",hl,!0)}function vl(e){var t=dt(e);el.get(t)||(el.set(t,!0),Nt.call(t,"mousedown",cl,!0),Nt.call(t,"mouseup",(function(){setTimeout(sl)}),!0),Nt.call(t,"dragstart",sl,!0))}function bl(e){Mt.call(e,"focusin",pl,!0)}function dl(e){var t=yt(e);return ct.call(t,e)}function yl(e){var t=yt(e);return st.call(t)}function El(e){return"visible"===e.visibility&&"none"!==e.display}function wl(e){var t=[];if(function(e){return e.nodeType===j}(e)){var n=e.tagName,r=dl(e);if("OPTION"===n)return[1,Me.call(e),1];if("TEXTAREA"===n)return[];for(var l=e.childNodes,o=0,a=l.length;o<a;o++)y.apply(t,wl(l[o]));if(!El(r))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");var i=r.display;"table-cell"===i&&t.push("\t"),"table-row"===i&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==i&&"table-caption"!==i&&"flex"!==i&&"table"!==i||(t.unshift(1),t.push(1))}else(function(e){return e.nodeType===U})(e)&&t.push(function(e){var t=yl(e);if(null===t)return e.textContent||"";var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect();return r.height<=0||r.width<=0?"":(t.removeAllRanges(),t.addRange(n),t.toString()||e.textContent||"")}(e));return t}function Tl(e){if(!El(dl(e)))return fn(e)||"";for(var t=function(e){var t=yt(e),n=yl(e);if(null===n)return null;for(var r=[],l=0;l<n.rangeCount;l++)r.push(n.getRangeAt(l));var o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:r};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],r=e.childNodes,l=0,o=r.length;l<o;l++)y.apply(n,wl(r[l]));!function(e){if(null!==e){var t=e.element,n=e.onselect,r=e.onselectstart,l=e.onselectionchange,o=e.ranges,a=yt(t),i=yl(t);i.removeAllRanges();for(var u=0;u<o.length;u++)i.addRange(o[u]);a.onselect=n,a.onselectstart=r,a.onselectionchange=l}}(t);for(var a="",i=0,u=0,c=n.length;u<c;u++){var s=n[u];if("string"==typeof s){if(i>0){for(var f=0;f<i;f++)a+="\n";i=0}s.length>0&&(a+=s)}else{if(0==a.length)continue;s>i&&(i=s)}}return a}var Nl=HTMLElement.prototype,Ll=Nl.blur,Ml=Nl.focus;function Cl(){return Jn(this)&&H(me.call(this,"tabindex"))?0:ke.call(this)}function Sl(e){var t=Jn(this),n=ke.call(this),r=me.call(this,"tabindex");xe.call(this,e);var l,o=ke.call(this),a=me.call(this,"tabindex"),i=n!==o;(r&&(i||H(a))&&(-1===n&&bl(this),0===n&&t&&ml(this)),H(a))||(r&&a&&H(i)||(-1===o&&(vl(l=this),ml(l),Nt.call(l,"focusin",pl,!0)),0===o&&t&&function(e){vl(e),bl(e),Nt.call(e,"focusin",hl,!0)}(this)))}function Ol(){if(Jn(this)){var e=(n=dt(t=this),S(r=Ve.call(n))||0!=(V.call(t,r)&x)?r:null);if(!S(e))return void e.blur()}var t,n,r;return Ll.call(this)}function Hl(){var e=fl();e&&cl(),er(this)&&Jn(this)?nl.call(this):(Ml.apply(this,arguments),e&&sl())}u(HTMLElement.prototype,{tabIndex:{get:function(){return er(this)?Cl.call(this):ke.call(this)},set:function(e){return er(this)?Sl.call(this,e):xe.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(er(this))return Ol.call(this);Ll.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Hl.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Me&&null!==Ce&&c(HTMLElement.prototype,"innerText",{get:function(){return On.ENABLE_INNER_OUTER_TEXT_PATCH?On.ENABLE_ELEMENT_PATCH?Et(this)?Me.call(this):Tl(this):Vt(this)||er(this)?Tl(this):Me.call(this):Me.call(this)},set:function(e){Ce.call(this,e)},enumerable:!0,configurable:!0}),null!==Oe&&null!==He&&c(HTMLElement.prototype,"outerText",{get:function(){return On.ENABLE_INNER_OUTER_TEXT_PATCH?On.ENABLE_ELEMENT_PATCH?Et(this)?Oe.call(this):Tl(this):Vt(this)||er(this)?Tl(this):Oe.call(this):Oe.call(this)},set:function(e){He.call(this,e)},enumerable:!0,configurable:!0}),c(Element.prototype,B,{set:function(e){var t=this.$$ShadowTokenKey$$;C(t)||t===e||de.call(this,t),C(e)||ye.call(this,e,""),this.$$ShadowTokenKey$$=e},get:function(){return this.$$ShadowTokenKey$$},configurable:!0});var Al,Rl=function(){},_l={childList:!0};function Pl(e,t,n){var r=Vn(e);if(r!==t&&(zn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),er(e))return;C(r)&&ht.call(Al,e,_l);for(var l=ue.call(e),o=0,a=l.length;o<a;o+=1)Pl(l[o],t,n)}}function Dl(e){if(C(Al)&&(Al=new ft((function(e){L.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=Vn(t),o=function(e){return e.$shadowToken$}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];V.call(t,u)&I.DOCUMENT_POSITION_CONTAINED_BY||Pl(u,Rl,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];V.call(t,f)&I.DOCUMENT_POSITION_CONTAINED_BY&&Pl(f,l,o)}}))}))),C(Vn(e)))throw new Error("Invalid Element");ht.call(Al,e,_l)}c(Element.prototype,"$domManual$",{set:function(e){this.$$DomManualKey$$=e,O(e)&&Dl(this)},get:function(){return this.$$DomManualKey$$},configurable:!0})}));
|