lwc 2.43.0 → 2.44.0
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 +51 -208
- package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.js +51 -208
- package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +8 -9
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.js +50 -209
- package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +7 -8
- package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.js +51 -208
- package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +8 -9
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.js +50 -209
- package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +7 -8
- package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.js +121 -174
- package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +102 -174
- package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +89 -74
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +89 -74
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +85 -70
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +88 -71
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +84 -67
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +89 -74
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +85 -70
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +88 -71
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +84 -67
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";var e,t;function n(e,t,n){return(t=o(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,o(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){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function a(e){return a="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},a(e)}var i=Object.assign,u=Object.create,c=Object.defineProperties,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.hasOwnProperty,g=Object.setPrototypeOf,m=Array.prototype,b=m.filter,v=m.find,d=m.indexOf,y=m.map,E=m.push,w=m.reduce,T=m.reverse,N=m.slice,M=m.splice,L=m.forEach,S=String.prototype.charCodeAt;function C(e){return void 0===e}function O(e){return null===e}function H(e){return!0===e}function R(e){return!1===e}function D(e){return"function"==typeof e}function P(e){return"object"===a(e)}var I="object"===("undefined"==typeof globalThis?"undefined":a(globalThis))?globalThis:window,A="$shadowResolver$",$="$$ShadowResolverKey$$",B="$shadowStaticNodeKey$",x="$shadowToken$",k="$$ShadowTokenKey$$",F="$$lwc-synthetic-mode",j="$nativeGetElementById$",W="$nativeQuerySelectorAll$";I.lwcRuntimeFlags||Object.defineProperty(I,"lwcRuntimeFlags",{value:u(null)});var _,U,G=Node,K=G.prototype,q=G.DOCUMENT_POSITION_CONTAINED_BY,Y=G.DOCUMENT_POSITION_PRECEDING,X=G.DOCUMENT_POSITION_FOLLOWING,V=G.ELEMENT_NODE,Q=G.TEXT_NODE,z=G.CDATA_SECTION_NODE,J=G.PROCESSING_INSTRUCTION_NODE,Z=G.COMMENT_NODE,ee=K.appendChild,te=K.cloneNode,ne=K.compareDocumentPosition,re=K.insertBefore,le=K.removeChild,oe=K.replaceChild,ae=K.hasChildNodes,ie=HTMLElement.prototype.contains,ue=f(K,"firstChild").get,ce=f(K,"lastChild").get,se=f(K,"textContent").get,fe=f(K,"parentNode").get,pe=f(K,"ownerDocument").get,he=h.call(K,"parentElement")?f(K,"parentElement").get:f(HTMLElement.prototype,"parentElement").get,ge=f(K,"textContent").set,me=h.call(K,"childNodes")?f(K,"childNodes").get:f(HTMLElement.prototype,"childNodes").get,be=h.call(K,"isConnected")?f(K,"isConnected").get:function(){var e=pe.call(this);return null===e||0!=(ne.call(e,this)&q)},ve=Element.prototype,de=ve.getAttribute,ye=ve.getBoundingClientRect,Ee=ve.getElementsByTagName,we=ve.getElementsByTagNameNS,Te=ve.hasAttribute,Ne=ve.querySelector,Me=ve.querySelectorAll,Le=ve.removeAttribute,Se=ve.setAttribute,Ce=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")},Oe=f(Element.prototype,"childElementCount").get,He=f(Element.prototype,"firstElementChild").get,Re=f(Element.prototype,"lastElementChild").get,De=f(HTMLElement.prototype,"innerText"),Pe=De?De.get:null,Ie=De?De.set:null,Ae=f(HTMLElement.prototype,"outerText"),$e=Ae?Ae.get:null,Be=Ae?Ae.set:null,xe=h.call(Element.prototype,"innerHTML")?f(Element.prototype,"innerHTML"):f(HTMLElement.prototype,"innerHTML"),ke=xe.get,Fe=xe.set,je=h.call(Element.prototype,"outerHTML")?f(Element.prototype,"outerHTML"):f(HTMLElement.prototype,"outerHTML"),We=je.get,_e=je.set,Ue=f(Element.prototype,"tagName").get,Ge=f(HTMLElement.prototype,"tabIndex"),Ke=Ge.get,qe=Ge.set,Ye=h.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Xe=h.call(Element.prototype,"children")?f(Element.prototype,"children").get:f(HTMLElement.prototype,"children").get,Ve=HTMLElement.prototype.getElementsByClassName,Qe=h.call(Element.prototype,"shadowRoot")?f(Element.prototype,"shadowRoot").get:function(){return null},ze=h.call(Element.prototype,"assignedSlot")?f(Element.prototype,"assignedSlot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(_=HTMLSlotElement.prototype.assignedNodes,U=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")},U=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 Je=f(Event.prototype,"target").get,Ze=f(Event.prototype,"currentTarget").get,et=f(FocusEvent.prototype,"relatedTarget").get,tt=h.call(Event.prototype,"composedPath")?Event.prototype.composedPath:function(){return[]},nt=f(Document.prototype,"activeElement").get,rt=h.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,lt=h.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,ot=f(Document.prototype,"defaultView").get,at=Document.prototype,it=at.querySelectorAll,ut=at.getElementById,ct=at.getElementsByClassName,st=at.getElementsByTagName,ft=at.getElementsByTagNameNS,pt=HTMLDocument.prototype.getElementsByName,ht=window,gt=ht.addEventListener,mt=ht.removeEventListener,bt=MutationObserver,vt=bt.prototype.observe,dt=null;"undefined"!=typeof ShadowRoot&&(dt=ShadowRoot);var yt=!O(dt),Et=O(dt)?function(){return!1}:function(e){return e instanceof dt};var wt,Tt=Document.prototype.createElement,Nt=115,Mt=108,Lt=111,St=116;function Ct(e){var t=pe.call(e);return null===t?e:t}function Ot(e){var t=Ct(e),n=ot.call(t);if(null===n)throw new TypeError;return n}function Ht(e){if(C(wt)){var t=Ct(e);wt=t.body&&"temporary-bypass"===de.call(t.body,"data-global-patching-bypass")}return H(wt)}function Rt(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)}));g(e,HTMLElement.constructor),g(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,s(Document.prototype,"createElement",{value:function(t,n){var r=Tt.apply(this,N.call(arguments));return 4===t.length&&S.call(t,0)===Nt&&S.call(t,1)===Mt&&S.call(t,2)===Lt&&S.call(t,3)===St&&g(r,e.prototype),r}})}();var Dt="undefined"!=typeof EventTarget?EventTarget.prototype:G.prototype,Pt=Dt.addEventListener,It=Dt.dispatchEvent,At=Dt.removeEventListener,$t="$$HostElementKey$$",Bt="$$ShadowedNodeKey$$";function xt(e,t,n){var r=e,l=n.value;r[t]=l}function kt(e){return e[$t]}function Ft(e){for(var t,n=e;!O(n);){if(!C(t=kt(n)))return t;if(!O(n=fe.call(n))&&Kt(n))return}}function jt(e){return e[Bt]}function Wt(e){return!C(kt(e))}function _t(e){for(var t=he.call(e);!O(t)&&qt(t);)e=t,t=he.call(e);return e}function Ut(e,t){for(var n=jt(e),r=t instanceof Element?t:he.call(t);!O(r)&&r!==e;){var l=Ft(r),o=he.call(r);if(l===n)return qt(r);if(o===e)return!1;if(O(o)||Ft(o)===l)r=o;else{if(!qt(o))return!1;if(!O(r=Gt(_t(o)))){if(r===e)return!0;if(Ft(r)===n)return!0}}}return!1}function Gt(e){if(!(e instanceof G))return null;var t=Ft(e);if(C(t))return null;for(var n=e;!O(n)&&jt(n)!==t;)n=fe.call(n);return O(n)?null:n}function Kt(e){return qt(e)&&Wt(e)}function qt(e){return e instanceof HTMLSlotElement}function Yt(e,t){var n=Ft(t);if(C(n)){var r=fe.call(t);return!(!O(r)&&Kt(r))}return jt(e)===n}function Xt(e){var t=lr(e);return Qt(t,Rt(me.call(t)))}function Vt(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!Yt(e,o)&&Ut(e,o)&&E.call(n,o)}return n}function Qt(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];Yt(e,o)&&E.call(n,o)}return n}function zt(e,t){for(var n=0,r=t.length;n<r;n+=1)if(Yt(e,t[n]))return t[n];return null}function Jt(e){if(!ar(e)&&!qt(e))return Rt(me.call(e));if(ar(e)){var t=Rt(Me.call(e,"slot")),n=tr(or(e));return w.call(t,(function(e,t){return n===tr(t)&&E.apply(e,Zt(t)),e}),[])}var r=Rt(me.call(e)),l=tr(e);return b.call(r,(function(e){return l===tr(e)}))}function Zt(e){var t=Gt(e);if(O(t))return[];var n=Rt(me.call(e));return b.call(n,(function(e){return!Wt(e)||!Yt(t,e)}))}var en=/[&\u00A0"]/g,tn=/[&\u00A0<>]/g,nn=String.prototype,rn=nn.replace,ln=nn.toLowerCase;function on(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function an(e){return rn.call(e,en,on)}var un=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 V:for(var t,n=e.attributes,r=Ue.call(e),l="<"+ln.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+an(t.value)+'"';return l+=">",un.has(r)?l:l+function(e){for(var t="",n=Jt(e),r=0,l=n.length;r<l;r+=1)t+=sn(n[r]);return t}(e)+"</"+ln.call(r)+">";case Q:var a=e.data,i=e.parentNode;return i instanceof Element&&cn.has(Ue.call(i))?a:function(e){return rn.call(e,tn,on)}(a);case z:return"<!CDATA[[".concat(e.data,"]]>");case J:return"<?".concat(e.target," ").concat(e.data,"?>");case Z:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}function fn(e){if(e.nodeType===V){for(var t=Jt(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==Z&&(n+=fn(o))}return n}return e.nodeValue}var pn=new WeakMap;function hn(){throw new TypeError("Illegal constructor")}function gn(e){var t=u(hn.prototype);return pn.set(t,e),L.call(e,(function(e,n){s(t,n,{value:e,enumerable:!0,configurable:!0})})),t}hn.prototype=u(NodeList.prototype,(n(e={constructor:{writable:!0,configurable:!0,value:hn},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}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){L.call(pn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.call(pn.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.call(pn.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return pn.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=pn.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)),g(hn,NodeList);var mn=function(e,t){for(var n;!C(n=e.host);){var r=n.getRootNode();if(r===t)return n;e=r}};function bn(e,t,n,r){var l=lt.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(!O(l))for(var i=0;i<l.length;i++){var u=l[i];if(!Kt(u)){var c=u.getRootNode();if(-1===d.call(a,c)){var s=mn(c,a[0]);C(s)||-1!==d.call(l,s)||-1!==d.call(o,s)||E.call(o,s)}else E.call(o,u)}}return o}var vn=new WeakMap;function dn(){throw new TypeError("Illegal constructor")}function yn(e){var t=u(dn.prototype);return vn.set(t,e),L.call(e,(function(e,n){s(t,n,{value:e,enumerable:!0,configurable:!0})})),t}function En(e){return Kt(e)||ar(e)}function wn(e,t){var n=Gt(e);if(t===n)return or(n);if(t instanceof Element){if(Ft(e)===Ft(t))return t;if(!O(n)&&qt(t)){var r=Gt(t);if(!O(r)&&Yt(n,r))return r}}return null}function Tn(){return An(this).length>0}function Nn(){return An(this)[0]||null}function Mn(){var e=An(this);return e[e.length-1]||null}function Ln(){return fn(this)}function Sn(){var e=fe.call(this);return O(e)?e:wn(this,e)}function Cn(){var e=fe.call(this);if(O(e))return null;var t=wn(this,e);return t instanceof Element?t:null}function On(e){return this===e?0:this.getRootNode()===e?10:kt(this)!==kt(e)?35:ne.call(this,e)}function Hn(e){return null!=e&&kt(this)===kt(e)&&0!=(ne.call(this,e)&q)}function Rn(e){var t=te.call(this,!1);if(!e)return t;for(var n=An(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function Dn(){if(ar(this)){var e=Gt(this);return gn(O(e)?[]:Qt(e,Jt(this)))}return me.call(this)}dn.prototype=u(HTMLCollection.prototype,(n(t={constructor:{writable:!0,configurable:!0,value:dn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return vn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=vn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===de.call(l,"id")||e===de.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)),g(dn,HTMLCollection);var Pn=G.prototype.getRootNode,In=C(Pn)?function(){for(var e,t=this;!O(e=fe.call(t));)t=e;return t}:Pn;c(G.prototype,{firstChild:{get:function(){return En(this)?Nn.call(this):ue.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return En(this)?Mn.call(this):ce.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return Wt(this)||ar(this)?Ln.call(this):se.call(this)},set:function(e){ge.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(Wt(this))return Sn.call(this);var e=fe.call(this);return!O(e)&&Kt(e)?Gt(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(Wt(this))return Cn.call(this);var e=he.call(this);return!O(e)&&Kt(e)?Gt(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return En(this)?Dn.call(this):me.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return En(this)?Tn.call(this):ae.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return Ht(this)?ne.call(this,e):On.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||null!=e&&(Wt(this)||ar(this)?Hn.call(this,e):ie.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return Wt(this)||ar(this)?Rn.call(this,e):te.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return H(!C(e)&&!!e.composed)?In.call(this,e):O(n=Gt(t=this))?In.call(t):or(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return be.call(this)}}});var An=function(e){return e.childNodes};h.call(HTMLElement.prototype,"contains")&&s(HTMLElement.prototype,"contains",f(G.prototype,"contains")),h.call(HTMLElement.prototype,"parentElement")&&s(HTMLElement.prototype,"parentElement",f(G.prototype,"parentElement"));var $n=new WeakMap,Bn=new WeakMap;function xn(e,t,n){if(t===n)return!0;var r=Bn.get(e);return C(r)&&(r=e.composedPath(),Bn.set(e,r)),r.includes(n)}function kn(e){if(!function(e){return D(e)||P(e)&&!O(e)&&D(e.handleEvent)}(e))return e;var t=$n.get(e);return C(t)&&(t=function(t){var n=Ze.call(t);if(xn(t,_n(t),n))return D(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},$n.set(e,t)),t}var Fn=new WeakMap,jn=new WeakMap;function Wn(e){var t=jn.get(e);return C(t)&&(t=u(null),jn.set(e,t)),t}function _n(e){var t;return null!==(t=pr.get(e))&&void 0!==t?t:Je.call(e)}var Un=new WeakMap;function Gn(e){if(!D(e))throw new TypeError;var t=Un.get(e);return C(t)&&((t=function(t){var n=Ze.call(t);Et(n)||(n=or(n)),xn(t,_n(t),n)&&e.call(n,t)}).placement=1,Un.set(e,t)),t}var Kn=new WeakMap;function qn(e){if(!D(e))throw new TypeError;var t=Kn.get(e);return C(t)&&((t=function(t){var n=Ze.call(t);xn(t,_n(t),n)&&e.call(n,t)}).placement=0,Kn.set(e,t)),t}function Yn(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=Wn(Ze.call(e))[r];s(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),s(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var i=N.call(a);function u(n){L.call(i,(function(r){R(t)&&r.placement===n&&-1!==d.call(a,r)&&r.call(void 0,e)}))}Fn.set(e,1),u(1),R(t)&&R(n)&&(Fn.set(e,0),u(0)),Fn.set(e,2)}function Xn(e,t,n){var r=Wn(e),l=r[t];C(l)&&(l=r[t]=[]),-1===d.call(l,n)&&(0===l.length&&Pt.call(e,t,Yn),E.call(l,n))}function Vn(e,t,n){var r,l;C(l=Wn(e)[t])||-1===(r=d.call(l,n))||(M.call(l,r,1),0===l.length&&At.call(e,t,Yn))}function Qn(e,t,n){D(t)&&Xn(this,e,qn(t))}function zn(e,t,n){D(t)&&Vn(this,e,qn(t))}var Jn=new WeakMap,Zn=document.createDocumentFragment;function er(e){var t=Jn.get(e);if(C(t))throw new TypeError;return t}function tr(e){return e[A]}function nr(e,t){e[A]=t}function rr(e){return er(e).delegatesFocus}function lr(e){return er(e).host}function or(e){return er(e).shadowRoot}function ar(e){var t=Jn.get(e);return!C(t)&&e===t.host}function ir(e){var t=Jn.get(e);return!C(t)&&e===t.shadowRoot}s(G.prototype,A,{set:function(e){var t,n;C(e)||(this[$]=e,t=this,n=e.nodeKey,xt(t,$t,{value:n,configurable:!0}))},get:function(){return this[$]},configurable:!0,enumerable:!0}),s(I,"$isNativeShadowRootDefined$",{value:yt}),C(I[j])&&s(I,j,{value:ut,configurable:!0}),C(I[W])&&s(I,W,{value:it,configurable:!0});var ur=0;function cr(e,t){if(Jn.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=Ct(e),o=Zn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};Jn.set(o,a),Jn.set(e,a);var i=function(){return o},u=i.nodeKey=ur++;return xt(e,Bt,{value:u}),nr(o,i),g(o,gr.prototype),o}var sr={constructor:{writable:!0,configurable:!0,value:gr},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},fr={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=lr(this),t=Ct(e),n=nt.call(t);if(O(n))return n;if(0==(ne.call(e,n)&q))return null;for(var r=n;!Yt(e,r);)r=he.call(r);return qt(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return er(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return vr(this,Ct(lr(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return bn(this,Ct(lr(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 lr(this)}},mode:{configurable:!0,get:function(){return er(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},pr=new WeakMap,hr={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return re.call(lr(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return le.call(lr(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return ee.call(lr(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return oe.call(lr(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){D(n)&&Xn(lr(e),t,Gn(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return pr.set(e,this),It.apply(lr(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){D(n)&&Vn(lr(e),t,Gn(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return lr(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return gn(Xt(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=lr(this);return this===e?0:this.contains(e)?20:ne.call(t,e)&q?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=lr(this);return 0!=(ne.call(t,e)&q)&&Yt(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return An(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=An(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return An(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return be.call(lr(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 lr(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=An(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==Z&&(t+=fn(l))}return t},set:function(e){var t=lr(this);ge.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!C(e)&&H(e.composed)?lr(this).getRootNode(e):this}}};function gr(){throw new TypeError("Illegal constructor")}function mr(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof G))return r;n=e.getRootNode()}for(var l,o=e;!O(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=O(a)?o.parentNode:a}else o=!ir(o)&&!Et(o)||!t&&o===n?o instanceof G?o.parentNode:null:o.host;return l=e instanceof Window?e.document:Ct(e),r[r.length-1]===l&&r.push(window),r}
|
|
1
|
+
!function(){"use strict";var e,t;function n(e,t,n){return(t=o(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,o(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){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function a(e){return a="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},a(e)}var i=Object.assign,u=Object.create,c=Object.defineProperties,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.hasOwnProperty,g=Object.setPrototypeOf,m=Array.prototype,v=m.filter,b=m.find,d=m.findIndex,y=m.indexOf,E=m.map,w=m.push,T=m.reduce,N=m.reverse,M=m.slice,L=m.splice,S=m.forEach,C=String.prototype.charCodeAt;function O(e){return void 0===e}function H(e){return null===e}function R(e){return!0===e}function D(e){return!1===e}function P(e){return"function"==typeof e}function I(e){return"object"===a(e)}var A="object"===("undefined"==typeof globalThis?"undefined":a(globalThis))?globalThis:window,$="$shadowResolver$",B="$$ShadowResolverKey$$",x="$shadowStaticNodeKey$",k="$shadowToken$",F="$$ShadowTokenKey$$",j="$nativeGetElementById$",W="$nativeQuerySelectorAll$";A.lwcRuntimeFlags||Object.defineProperty(A,"lwcRuntimeFlags",{value:u(null)});var _,U,G=Node,K=G.prototype,q=G.DOCUMENT_POSITION_CONTAINED_BY,Y=G.DOCUMENT_POSITION_PRECEDING,X=G.DOCUMENT_POSITION_FOLLOWING,V=G.ELEMENT_NODE,Q=G.TEXT_NODE,z=G.CDATA_SECTION_NODE,J=G.PROCESSING_INSTRUCTION_NODE,Z=G.COMMENT_NODE,ee=K.appendChild,te=K.cloneNode,ne=K.compareDocumentPosition,re=K.insertBefore,le=K.removeChild,oe=K.replaceChild,ae=K.hasChildNodes,ie=HTMLElement.prototype.contains,ue=f(K,"firstChild").get,ce=f(K,"lastChild").get,se=f(K,"textContent").get,fe=f(K,"parentNode").get,pe=f(K,"ownerDocument").get,he=h.call(K,"parentElement")?f(K,"parentElement").get:f(HTMLElement.prototype,"parentElement").get,ge=f(K,"textContent").set,me=h.call(K,"childNodes")?f(K,"childNodes").get:f(HTMLElement.prototype,"childNodes").get,ve=h.call(K,"isConnected")?f(K,"isConnected").get:function(){var e=pe.call(this);return null===e||0!=(ne.call(e,this)&q)},be=Element.prototype,de=be.getAttribute,ye=be.getBoundingClientRect,Ee=be.getElementsByTagName,we=be.getElementsByTagNameNS,Te=be.hasAttribute,Ne=be.querySelector,Me=be.querySelectorAll,Le=be.removeAttribute,Se=be.setAttribute,Ce=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")},Oe=f(Element.prototype,"childElementCount").get,He=f(Element.prototype,"firstElementChild").get,Re=f(Element.prototype,"lastElementChild").get,De=f(HTMLElement.prototype,"innerText"),Pe=De?De.get:null,Ie=De?De.set:null,Ae=f(HTMLElement.prototype,"outerText"),$e=Ae?Ae.get:null,Be=Ae?Ae.set:null,xe=h.call(Element.prototype,"innerHTML")?f(Element.prototype,"innerHTML"):f(HTMLElement.prototype,"innerHTML"),ke=xe.get,Fe=xe.set,je=h.call(Element.prototype,"outerHTML")?f(Element.prototype,"outerHTML"):f(HTMLElement.prototype,"outerHTML"),We=je.get,_e=je.set,Ue=f(Element.prototype,"tagName").get,Ge=f(HTMLElement.prototype,"tabIndex"),Ke=Ge.get,qe=Ge.set,Ye=h.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Xe=h.call(Element.prototype,"children")?f(Element.prototype,"children").get:f(HTMLElement.prototype,"children").get,Ve=HTMLElement.prototype.getElementsByClassName,Qe=h.call(Element.prototype,"shadowRoot")?f(Element.prototype,"shadowRoot").get:function(){return null},ze=h.call(Element.prototype,"assignedSlot")?f(Element.prototype,"assignedSlot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(_=HTMLSlotElement.prototype.assignedNodes,U=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")},U=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 Je=f(Event.prototype,"target").get,Ze=f(Event.prototype,"currentTarget").get,et=f(FocusEvent.prototype,"relatedTarget").get,tt=h.call(Event.prototype,"composedPath")?Event.prototype.composedPath:function(){return[]},nt=f(Document.prototype,"activeElement").get,rt=h.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,lt=h.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,ot=f(Document.prototype,"defaultView").get,at=Document.prototype,it=at.querySelectorAll,ut=at.getElementById,ct=at.getElementsByClassName,st=at.getElementsByTagName,ft=at.getElementsByTagNameNS,pt=HTMLDocument.prototype.getElementsByName,ht=window,gt=ht.addEventListener,mt=ht.removeEventListener,vt=MutationObserver,bt=vt.prototype.observe,dt=null;"undefined"!=typeof ShadowRoot&&(dt=ShadowRoot);var yt=!H(dt),Et=H(dt)?function(){return!1}:function(e){return e instanceof dt};var wt,Tt=Document.prototype.createElement;function Nt(e){var t=pe.call(e);return null===t?e:t}function Mt(e){var t=Nt(e),n=ot.call(t);if(null===n)throw new TypeError;return n}function Lt(e){if(O(wt)){var t=Nt(e);wt=t.body&&"temporary-bypass"===de.call(t.body,"data-global-patching-bypass")}return R(wt)}function St(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)}));g(e,HTMLElement.constructor),g(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,s(Document.prototype,"createElement",{value:function(t,n){var r=Tt.apply(this,M.call(arguments));return 4===t.length&&115===C.call(t,0)&&108===C.call(t,1)&&111===C.call(t,2)&&116===C.call(t,3)&&g(r,e.prototype),r}})}();var Ct="undefined"!=typeof EventTarget?EventTarget.prototype:G.prototype,Ot=Ct.addEventListener,Ht=Ct.dispatchEvent,Rt=Ct.removeEventListener,Dt="$$HostElementKey$$",Pt="$$ShadowedNodeKey$$";function It(e,t,n){var r=e,l=n.value;r[t]=l}function At(e){return e[Dt]}function $t(e){for(var t,n=e;!H(n);){if(!O(t=At(n)))return t;if(!H(n=fe.call(n))&&Wt(n))return}}function Bt(e){return e[Pt]}function xt(e){return!O(At(e))}function kt(e){for(var t=he.call(e);!H(t)&&_t(t);)e=t,t=he.call(e);return e}function Ft(e,t){for(var n=Bt(e),r=t instanceof Element?t:he.call(t);!H(r)&&r!==e;){var l=$t(r),o=he.call(r);if(l===n)return _t(r);if(o===e)return!1;if(H(o)||$t(o)===l)r=o;else{if(!_t(o))return!1;if(!H(r=jt(kt(o)))){if(r===e)return!0;if($t(r)===n)return!0}}}return!1}function jt(e){if(!(e instanceof G))return null;var t=$t(e);if(O(t))return null;for(var n=e;!H(n)&&Bt(n)!==t;)n=fe.call(n);return H(n)?null:n}function Wt(e){return _t(e)&&xt(e)}function _t(e){return e instanceof HTMLSlotElement}function Ut(e,t){var n=$t(t);if(O(n)){var r=fe.call(t);return!(!H(r)&&Wt(r))}return Bt(e)===n}function Gt(e){var t=rr(e);return qt(t,St(me.call(t)))}function Kt(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!Ut(e,o)&&Ft(e,o)&&w.call(n,o)}return n}function qt(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];Ut(e,o)&&w.call(n,o)}return n}function Yt(e,t){for(var n=0,r=t.length;n<r;n+=1)if(Ut(e,t[n]))return t[n];return null}function Xt(e){if(!or(e)&&!_t(e))return St(me.call(e));if(or(e)){var t=St(Me.call(e,"slot")),n=er(lr(e));return T.call(t,(function(e,t){return n===er(t)&&w.apply(e,Vt(t)),e}),[])}var r=St(me.call(e)),l=er(e);return v.call(r,(function(e){return l===er(e)}))}function Vt(e){var t=jt(e);if(H(t))return[];var n=St(me.call(e));return v.call(n,(function(e){return!xt(e)||!Ut(t,e)}))}var Qt=/[&\u00A0"]/g,zt=/[&\u00A0<>]/g,Jt=String.prototype,Zt=Jt.replace,en=Jt.toLowerCase;function tn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function nn(e){return Zt.call(e,Qt,tn)}var rn=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 on(e){switch(e.nodeType){case V:for(var t,n=e.attributes,r=Ue.call(e),l="<"+en.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+nn(t.value)+'"';return l+=">",rn.has(r)?l:l+function(e){for(var t="",n=Xt(e),r=0,l=n.length;r<l;r+=1)t+=on(n[r]);return t}(e)+"</"+en.call(r)+">";case Q:var a=e.data,i=e.parentNode;return i instanceof Element&&ln.has(Ue.call(i))?a:function(e){return Zt.call(e,zt,tn)}(a);case z:return"<!CDATA[[".concat(e.data,"]]>");case J:return"<?".concat(e.target," ").concat(e.data,"?>");case Z:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}function an(e){if(e.nodeType===V){for(var t=Xt(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==Z&&(n+=an(o))}return n}return e.nodeValue}var un=new WeakMap;function cn(){throw new TypeError("Illegal constructor")}function sn(e){var t=u(cn.prototype);return un.set(t,e),S.call(e,(function(e,n){s(t,n,{value:e,enumerable:!0,configurable:!0})})),t}cn.prototype=u(NodeList.prototype,(n(e={constructor:{writable:!0,configurable:!0,value:cn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return un.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){S.call(un.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return E.call(un.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return E.call(un.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return un.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=un.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)),g(cn,NodeList);var fn=function(e,t){for(var n;!O(n=e.host);){var r=n.getRootNode();if(r===t)return n;e=r}};function pn(e,t,n,r){var l=lt.call(t,n,r),o=[],a=function(e){for(var t,n=[],r=e.getRootNode();!O(r);)n.push(r),r=null===(t=r.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!H(l))for(var i=0;i<l.length;i++){var u=l[i];if(!Wt(u)){var c=u.getRootNode();if(-1===y.call(a,c)){var s=fn(c,a[0]);O(s)||-1!==y.call(l,s)||-1!==y.call(o,s)||w.call(o,s)}else w.call(o,u)}}return o}var hn=new WeakMap;function gn(){throw new TypeError("Illegal constructor")}function mn(e){var t=u(gn.prototype);return hn.set(t,e),S.call(e,(function(e,n){s(t,n,{value:e,enumerable:!0,configurable:!0})})),t}function vn(e){return Wt(e)||or(e)}function bn(e,t){var n=jt(e);if(t===n)return lr(n);if(t instanceof Element){if($t(e)===$t(t))return t;if(!H(n)&&_t(t)){var r=jt(t);if(!H(r)&&Ut(n,r))return r}}return null}function dn(){return Rn(this).length>0}function yn(){return Rn(this)[0]||null}function En(){var e=Rn(this);return e[e.length-1]||null}function wn(){return an(this)}function Tn(){var e=fe.call(this);return H(e)?e:bn(this,e)}function Nn(){var e=fe.call(this);if(H(e))return null;var t=bn(this,e);return t instanceof Element?t:null}function Mn(e){return this===e?0:this.getRootNode()===e?10:At(this)!==At(e)?35:ne.call(this,e)}function Ln(e){return null!=e&&At(this)===At(e)&&0!=(ne.call(this,e)&q)}function Sn(e){var t=te.call(this,!1);if(!e)return t;for(var n=Rn(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function Cn(){if(or(this)){var e=jt(this);return sn(H(e)?[]:qt(e,Xt(this)))}return me.call(this)}gn.prototype=u(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 hn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=hn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===de.call(l,"id")||e===de.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)),g(gn,HTMLCollection);var On=G.prototype.getRootNode,Hn=O(On)?function(){for(var e,t=this;!H(e=fe.call(t));)t=e;return t}:On;c(G.prototype,{firstChild:{get:function(){return vn(this)?yn.call(this):ue.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return vn(this)?En.call(this):ce.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return xt(this)||or(this)?wn.call(this):se.call(this)},set:function(e){ge.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(xt(this))return Tn.call(this);var e=fe.call(this);return!H(e)&&Wt(e)?jt(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(xt(this))return Nn.call(this);var e=he.call(this);return!H(e)&&Wt(e)?jt(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return vn(this)?Cn.call(this):me.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return vn(this)?dn.call(this):ae.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return Lt(this)?ne.call(this,e):Mn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||null!=e&&(xt(this)||or(this)?Ln.call(this,e):ie.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return xt(this)||or(this)?Sn.call(this,e):te.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return R(!O(e)&&!!e.composed)?Hn.call(this,e):H(n=jt(t=this))?Hn.call(t):lr(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return ve.call(this)}}});var Rn=function(e){return e.childNodes};h.call(HTMLElement.prototype,"contains")&&s(HTMLElement.prototype,"contains",f(G.prototype,"contains")),h.call(HTMLElement.prototype,"parentElement")&&s(HTMLElement.prototype,"parentElement",f(G.prototype,"parentElement"));var Dn=new WeakMap,Pn=new WeakMap;function In(e,t,n){if(t===n)return!0;var r=Pn.get(e);return O(r)&&(r=e.composedPath(),Pn.set(e,r)),r.includes(n)}function An(e){if(!function(e){return P(e)||I(e)&&!H(e)&&P(e.handleEvent)}(e))return e;var t=Dn.get(e);return O(t)&&(t=function(t){var n=Ze.call(t);if(In(t,jn(t),n))return P(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Dn.set(e,t)),t}var $n=new WeakMap;function Bn(e){return P(e)?e:e.handleEvent}function xn(e){return P(e)||P(null==e?void 0:e.handleEvent)}var kn=new WeakMap;function Fn(e){var t=kn.get(e);return O(t)&&(t=u(null),kn.set(e,t)),t}function jn(e){var t;return null!==(t=fr.get(e))&&void 0!==t?t:Je.call(e)}var Wn=new WeakMap;function _n(e){if(!xn(e))throw new TypeError;var t=Wn.get(e);return O(t)&&(t={identity:e,placement:1,handleEvent:function(t){var n=Ze.call(t);Et(n)||(n=lr(n)),In(t,jn(t),n)&&Bn(e).call(n,t)}},Wn.set(e,t)),t}var Un=new WeakMap;function Gn(e){if(!xn(e))throw new TypeError;var t=Un.get(e);return O(t)&&(t={identity:e,placement:0,handleEvent:function(t){var n=Ze.call(t);In(t,jn(t),n)&&Bn(e).call(n,t)}},Un.set(e,t)),t}function Kn(e,t){return d.call(e,(function(e){return e.identity===t.identity}))}function qn(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=Fn(Ze.call(e))[r];s(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),s(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var i=M.call(a);function u(n){S.call(i,(function(r){D(t)&&r.placement===n&&-1!==Kn(a,r)&&r.handleEvent.call(void 0,e)}))}$n.set(e,1),u(1),D(t)&&D(n)&&($n.set(e,0),u(0)),$n.set(e,2)}function Yn(e,t,n){var r=Fn(e),l=r[t];O(l)&&(l=r[t]=[]),-1===Kn(l,n)&&(0===l.length&&Ot.call(e,t,qn),w.call(l,n))}function Xn(e,t,n){var r,l;O(l=Fn(e)[t])||-1===(r=Kn(l,n))||(L.call(l,r,1),0===l.length&&Rt.call(e,t,qn))}function Vn(e,t,n){xn(t)&&Yn(this,e,Gn(t))}function Qn(e,t,n){xn(t)&&Xn(this,e,Gn(t))}var zn=new WeakMap,Jn=document.createDocumentFragment;function Zn(e){var t=zn.get(e);if(O(t))throw new TypeError;return t}function er(e){return e[$]}function tr(e,t){e[$]=t}function nr(e){return Zn(e).delegatesFocus}function rr(e){return Zn(e).host}function lr(e){return Zn(e).shadowRoot}function or(e){var t=zn.get(e);return!O(t)&&e===t.host}function ar(e){var t=zn.get(e);return!O(t)&&e===t.shadowRoot}s(G.prototype,$,{set:function(e){var t,n;O(e)||(this[B]=e,t=this,n=e.nodeKey,It(t,Dt,{value:n,configurable:!0}))},get:function(){return this[B]},configurable:!0,enumerable:!0}),s(A,"$isNativeShadowRootDefined$",{value:yt}),O(A[j])&&s(A,j,{value:ut,configurable:!0}),O(A[W])&&s(A,W,{value:it,configurable:!0});var ir=0;function ur(e,t){if(zn.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=Nt(e),o=Jn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};zn.set(o,a),zn.set(e,a);var i=function(){return o},u=i.nodeKey=ir++;return It(e,Pt,{value:u}),tr(o,i),g(o,hr.prototype),o}var cr={constructor:{writable:!0,configurable:!0,value:hr},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},sr={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=rr(this),t=Nt(e),n=nt.call(t);if(H(n))return n;if(0==(ne.call(e,n)&q))return null;for(var r=n;!Ut(e,r);)r=he.call(r);return _t(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return Zn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return vr(this,Nt(rr(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return pn(this,Nt(rr(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 rr(this)}},mode:{configurable:!0,get:function(){return Zn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},fr=new WeakMap,pr={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return re.call(rr(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return le.call(rr(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return ee.call(rr(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return oe.call(rr(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){xn(n)&&Yn(rr(e),t,_n(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return fr.set(e,this),Ht.apply(rr(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){xn(n)&&Xn(rr(e),t,_n(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return rr(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return sn(Gt(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=rr(this);return this===e?0:this.contains(e)?20:ne.call(t,e)&q?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=rr(this);return 0!=(ne.call(t,e)&q)&&Ut(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return Rn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=Rn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Rn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return ve.call(rr(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 rr(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=Rn(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==Z&&(t+=an(l))}return t},set:function(e){var t=rr(this);ge.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!O(e)&&R(e.composed)?rr(this).getRootNode(e):this}}};function hr(){throw new TypeError("Illegal constructor")}function gr(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof G))return r;n=e.getRootNode()}for(var l,o=e;!H(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=H(a)?o.parentNode:a}else o=!ar(o)&&!Et(o)||!t&&o===n?o instanceof G?o.parentNode:null:o.host;return l=e instanceof Window?e.document:Nt(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,5 +7,5 @@
|
|
|
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 br(e,t){if(O(e))return null;for(var n,r,l,o,a=mr(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),!ir(l)||!C(o)&&o>-1)return n;return null}function vr(e,t,n,r){var l=rt.call(t,n,r);return O(l)?l:br(e,mr(l,!0))}i(sr,hr,{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return yn(b.call(Xt(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,zt(n=lr(this),Rt(Me.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return gn((t=e,Qt(n=lr(this),Rt(Me.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=An(this),t="",n=0,r=e.length;n<r;n+=1)t+=sn(e[n]);return t},set:function(e){var t=lr(this);Fe.call(t,e)}}},fr),gr.prototype=u(DocumentFragment.prototype,sr),s(gr,Symbol.hasInstance,{value:function(e){return P(e)&&!O(e)&&(Et(e)||p(e)===gr.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return vr(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return bn(this,this,e,t)},s(Document.prototype,"activeElement",{get:function(){var e=nt.call(this);if(O(e))return e;for(;!C(kt(e));)if(O(e=he.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),s(Document.prototype,"getElementById",{value:function(){var e=ut.apply(this,N.call(arguments));return O(e)?null:C(kt(e))||Ht(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"querySelector",{value:function(){var e=Rt(it.apply(this,N.call(arguments))),t=v.call(e,(function(e){return C(kt(e))||Ht(e)}));return C(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"querySelectorAll",{value:function(){var e=Rt(it.apply(this,N.call(arguments)));return gn(b.call(e,(function(e){return C(kt(e))||Ht(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"getElementsByClassName",{value:function(){var e=Rt(ct.apply(this,N.call(arguments)));return yn(b.call(e,(function(e){return C(kt(e))||Ht(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"getElementsByTagName",{value:function(){var e=Rt(st.apply(this,N.call(arguments)));return yn(b.call(e,(function(e){return C(kt(e))||Ht(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=Rt(ft.apply(this,N.call(arguments)));return yn(b.call(e,(function(e){return C(kt(e))||Ht(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(f(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=Rt(pt.apply(this,N.call(arguments)));return gn(b.call(e,(function(e){return C(kt(e))||Ht(e)})))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:gr,configurable:!0,writable:!0});var dr=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var yr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Er(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!dr)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!dr.get.call(e)})()&&(HTMLElement.prototype.click=function(){Pt.call(this,"click",Er);try{yr.value.call(this)}finally{At.call(this,"click",Er)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=i(u(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 wr,Tr,Nr,Mr,Lr=CustomEvent;function Sr(e,t){var n=new Lr(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(Sr.prototype=Lr.prototype,window.CustomEvent=Sr,"undefined"!=typeof ClipboardEvent){var Cr=i(u(null),{copy:1,cut:1,paste:1});c(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===Cr[e]},configurable:!0,enumerable:!0}})}Nr="undefined"!=typeof HTMLIFrameElement,Mr="undefined"!=typeof Proxy&&H(Proxy.isCompat),Nr&&Mr&&(wr=f(HTMLIFrameElement.prototype,"contentWindow"),Tr=wr.get,wr.get=function(){var e,t=Tr.call(this);return O(t)||C(kt(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}})},s(HTMLIFrameElement.prototype,"contentWindow",wr));var Or=MutationObserver,Hr=Or.prototype,Rr=Hr.disconnect,Dr=Hr.observe,Pr=Hr.takeRecords,Ir="$$lwcObserverCallbackWrapper$$",Ar="$$lwcNodeObservers$$",$r=new WeakMap;function Br(e){return e[Ar]}function xr(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,o=u(MutationRecord.prototype);return c(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 kr(e,t){for(var n=t;!O(n);){var r=Br(n);if(!C(r)&&(r[0]===e||-1!==d.call(r,e)))return!0;n=n.parentNode}return!1}function Fr(e,t){return w.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||C(jt(r)))kr(t,r)&&E.call(e,n);else if(l.length>0){var a=l[0];if(kr(t,a)){var i=Br(r);!i||i[0]!==t&&-1===d.call(i,t)?E.call(e,xr(n)):E.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if(Ft(r)===Ft(c)&&kr(t,r))E.call(e,n);else if(u){var s=Br(u);!s||s[0]!==t&&-1===d.call(s,t)||E.call(e,xr(n))}}return e}),[])}function jr(e){var t=function(e){var t=e[Ir];return C(t)&&(t=e[Ir]=function(t,n){var r=Fr(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Or(t)}function Wr(e,t,n){if(arguments.length>1){var r=N.call(arguments);return r[1]=kn(r[1]),gt.apply(this,r)}return gt.apply(this,arguments)}function _r(e,t,n){if(arguments.length>1){var r=N.call(arguments);r[1]=kn(r[1]),mt.apply(this,r)}mt.apply(this,arguments)}function Ur(){var e=Je.call(this);if(!(e instanceof G))return e;var t=Ct(e),n=mr(e,this.composed),r=Ze.call(this);if(!(r instanceof G))return O(r)&&C(kt(e))?e:br(t,n);if(r===t||r===t.body)return C(kt(e))?e:br(t,n);var l=r,o=n;ar(r)&&(1===Fn.get(this)&&(l=or(r)));return ar(e)&&pr.has(this)&&(o=mr(or(e),this.composed)),br(l,o)}function Gr(){var e=Je.call(this);if(!(e instanceof G))return[];var t,n=Boolean(e.shadowRoot),r=(t=e,Jn.has(t));if(n&&!r)return tt.call(this);if(O(Ze.call(this)))return[];var l=e;return ar(e)&&pr.has(this)&&(l=or(e)),mr(l,this.composed)}function Kr(e){var t=f(e.prototype,"relatedTarget").get;s(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(O(e))return null;if(!(e instanceof G&&Wt(e)))return e;var n=Ze.call(this);return O(n)&&(n=Ct(e)),br(n,mr(e,!0))},enumerable:!0,configurable:!0})}jr.prototype=Or.prototype,jr.prototype.disconnect=function(){var e=this;Rr.call(this);var t=$r.get(this);C(t)||(L.call(t,(function(t){var n=t[Ar];if(!C(n)){var r=d.call(n,e);-1!==r&&M.call(n,r,1)}})),t.length=0)},jr.prototype.observe=function(e,t){var n,r=Br(e);if(C(r)&&(n=r=[],e[Ar]=n),-1===d.call(r,this)&&E.call(r,this),ir(e)&&(e=e.host),$r.has(this)){var l=$r.get(this);-1===d.call(l,e)&&E.call(l,e)}else $r.set(this,[e]);return Dr.call(this,e,t)},jr.prototype.takeRecords=function(){return Fr(Pr.call(this),this)},s(window,"MutationObserver",{value:jr,configurable:!0,writable:!0}),c(Dt,{addEventListener:{value:function(e,t,n){if(ar(this))return Qn.apply(this,arguments);if(arguments.length<2){var r=N.call(arguments);return r.length>1&&(r[1]=kn(r[1])),Pt.apply(this,r)}var l=kn(t);return Pt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(ar(this))return zn.apply(this,arguments);var r=N.call(arguments);arguments.length>1&&(r[1]=kn(r[1])),At.apply(this,r),At.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&c(Window.prototype,{addEventListener:{value:Wr,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:_r,enumerable:!0,writable:!0,configurable:!0}}),c(Event.prototype,{target:{get:Ur,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=Ze.call(this);return O(e)?null:1===Fn.get(this)?or(e):e},enumerable:!0,configurable:!0},composedPath:{value:Gr,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Ur,enumerable:!0,configurable:!0},path:{get:Gr,enumerable:!0,configurable:!0}}),Kr(FocusEvent),Kr(MouseEvent);var qr,Yr=h.call(Text.prototype,"assignedSlot")?f(Text.prototype,"assignedSlot").get:function(){return null},Xr={childList:!0},Vr=new WeakMap;function Qr(e){var t=Rt(me.call(e));return w.call(t,(function(e,t){return t instanceof Element&&qt(t)?E.apply(e,Qr(t)):E.call(e,t),e}),[])}function zr(){var e=fe.call(this);if(e instanceof Element){var t=Qe.call(e);if(Et(t))return this instanceof Text?Yr.call(this):ze.call(this)}return!O(e)&&qt(e)&&kt(e)!==kt(this)?e:null}function Jr(e,t){var n,r=kt(e);if(C(r))n=e instanceof HTMLBodyElement?b.call(t,(function(t){return C(kt(t))||Ht(e)})):N.call(t);else if(ar(e)){var l=Gt(e);n=O(l)?[]:jt(e)?Vt(e,t):Qt(l,t)}else n=b.call(t,(function(e){return Ft(e)===r}));return n}function Zr(){for(var e=An(this),t="",n=0,r=e.length;n<r;n+=1)t+=sn(e[n]);return t}function el(){return sn(this)}function tl(){var e=Gt(this),t=O(e)?[]:Qt(e,Jt(this));return yn(b.call(t,(function(e){return e instanceof Element})))}function nl(){return this.children.length}function rl(){return this.children[0]||null}function ll(){var e=this.children;return e.item(e.length-1)||null}c(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Vr.get(this)||(Vr.set(this,!0),qr||(qr=new bt((function(e){var t=[];L.call(e,(function(e){var n=e.target;-1===d.call(t,n)&&(E.call(t,n),It.call(n,new CustomEvent("slotchange")))}))}))),vt.call(qr,this,Xr))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(Wt(this)){var t=!C(e)&&H(e.flatten)?Qr(this):Zt(this);return b.call(t,(function(e){return e instanceof Element}))}return U.apply(this,N.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){return Wt(this)?!C(e)&&H(e.flatten)?Qr(this):Zt(this):_.apply(this,N.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=de.call(this,"name");return O(e)?"":e},set:function(e){Se.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(Wt(this)){var e=Gt(this);return gn(O(e)?[]:Qt(e,Jt(this)))}return me.call(this)},enumerable:!0,configurable:!0}}),c(Text.prototype,{assignedSlot:{get:zr,enumerable:!0,configurable:!0}}),c(Element.prototype,{innerHTML:{get:function(){return Wt(this)||ar(this)?Zr.call(this):ke.call(this)},set:function(e){Fe.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return Wt(this)||ar(this)?el.call(this):We.call(this)},set:function(e){_e.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e[F]?cr(this,e):Ce.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(ar(this)){var e=or(this);if("open"===e.mode)return e}return Qe.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return En(this)?tl.call(this):Xe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return En(this)?nl.call(this):Oe.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return En(this)?rl.call(this):He.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return En(this)?ll.call(this):Re.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:zr,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"innerHTML")&&s(HTMLElement.prototype,"innerHTML",f(Element.prototype,"innerHTML")),h.call(HTMLElement.prototype,"outerHTML")&&s(HTMLElement.prototype,"outerHTML",f(Element.prototype,"outerHTML")),h.call(HTMLElement.prototype,"children")&&s(HTMLElement.prototype,"children",f(Element.prototype,"children")),c(Element.prototype,{querySelector:{value:function(){var e=this,t=Rt(Me.apply(this,N.call(arguments)));if(ar(this)){var n=Gt(this);return C(jt(this))?O(n)?null:zt(n,t):function(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!Yt(e,l)&&Ut(e,l))return l}return null}(this,t)}if(Wt(this)){var r=kt(this);if(C(r))return 0===t.length?null:t[0];var l=v.call(t,(function(e){return Ft(e)===r}));return C(l)?null:l}if(!(this instanceof HTMLBodyElement)){var o=t[0];return C(o)?null:o}var a=v.call(t,(function(t){return C(kt(t))||Ht(e)}));return C(a)?null:a},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){return gn(function(e,t){var n;if(ar(e)){var r=Gt(e);n=C(jt(e))?O(r)?[]:Qt(r,t):Vt(e,t)}else if(Wt(e)){var l=kt(e);n=C(l)?N.call(t):b.call(t,(function(e){return Ft(e)===l}))}else n=e instanceof HTMLBodyElement?b.call(t,(function(t){return C(kt(t))||Ht(e)})):N.call(t);return n}(this,Rt(Me.apply(this,N.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c(Element.prototype,{getElementsByClassName:{value:function(){return yn(Jr(this,Rt(Ve.apply(this,N.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){return yn(Jr(this,Rt(Ee.apply(this,N.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){return yn(Jr(this,Rt(we.apply(this,N.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"getElementsByClassName")&&s(HTMLElement.prototype,"getElementsByClassName",f(Element.prototype,"getElementsByClassName"));var ol="\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",al=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function il(e){return e.filter((function(e){return Te.call(e,"tabindex")?"0"===de.call(e,"tabindex"):!al.has(Ue.call(e))||!Te.call(e,"disabled")}))}var ul=new WeakMap;function cl(e){return(!ar(e)||!rr(e))&&(Ye.call(e,ol)&&function(e){var t=ye.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 sl(){var e=this.getRootNode();if(e!==this){if(e.activeElement!==this)for(var t=Rt(Me.call(this,ol)),n=!1;!n&&0!==t.length;){var r=t.shift();r.focus.apply(r,arguments),n=r.getRootNode().activeElement===r}}else{var l=Ne.call(this,ol);O(l)||l.focus.apply(l,arguments)}}function fl(e){var t=Ct(e),n=il(Rt(it.call(t,ol))),r=il(Rt(Me.call(e,ol))),l=r[0],o=r[r.length-1],a=d.call(n,e),i=a>-1?a:d.call(n,l),u=0===r.length?i+1:d.call(n,o)+1;return{prev:N.call(n,0,i),inner:r,next:N.call(n,u)}}function pl(e,t){var n=ne.call(e,t);return n&q?0:n&Y?1:n&X?2:-1}function hl(e){e.preventDefault(),e.stopPropagation()}function gl(e,t){gt.call(e,"focusin",hl,!0),gt.call(e,"focusout",hl,!0),t(),mt.call(e,"focusin",hl,!0),mt.call(e,"focusout",hl,!0)}function ml(e,t,n){var r=Ot(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(wl(t.getRootNode(),l))return l}return null}(e,n);O(l)?gl(r,(function(){t.blur()})):gl(r,(function(){l.focus()}))}var bl=!1;function vl(){bl=!0}function dl(){bl=!1}function yl(e){if(!bl){var t=Ze.call(e),n=Je.call(e);if(t===n){var r=et.call(e);if(!O(r)){var l=fl(t);if(1===pl(t,r)){var o=wl.bind(null,t.getRootNode()),a=v.call(l.inner,o);if(C(a))ml(l.next,n,r);else gl(Ot(a),(function(){a.focus()}))}else t===n&&ml(T.call(l.prev),n,r)}}}}function El(e){if(!bl){var t=et.call(e);if(!O(t)){var n=Ze.call(e),r=fl(n);if(-1===d.call(r.inner,t)){var l=Je.call(e),o=pl(n,t);1===o&&ml(r.next,l,t),2===o&&ml(T.call(r.prev),l,t)}}}}function wl(e,t){if(!cl(t))return!1;for(var n=Ct(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===de.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function Tl(e){At.call(e,"focusin",yl,!0)}function Nl(e){var t=Ct(e);ul.get(t)||(ul.set(t,!0),Pt.call(t,"mousedown",vl,!0),Pt.call(t,"mouseup",(function(){setTimeout(dl)}),!0),Pt.call(t,"dragstart",dl,!0))}function Ml(e){At.call(e,"focusin",El,!0)}var Ll=HTMLElement.prototype,Sl=Ll.blur,Cl=Ll.focus;function Ol(){return rr(this)&&R(Te.call(this,"tabindex"))?0:Ke.call(this)}function Hl(e){var t=rr(this),n=Ke.call(this),r=Te.call(this,"tabindex");qe.call(this,e);var l,o=Ke.call(this),a=Te.call(this,"tabindex"),i=n!==o;(r&&(i||R(a))&&(-1===n&&Ml(this),0===n&&t&&Tl(this)),R(a))||(r&&a&&R(i)||(-1===o&&(Nl(l=this),Tl(l),Pt.call(l,"focusin",El,!0)),0===o&&t&&function(e){Nl(e),Ml(e),Pt.call(e,"focusin",yl,!0)}(this)))}function Rl(){if(rr(this)){var e=(n=Ct(t=this),O(r=nt.call(n))||0!=(ne.call(t,r)&q)?r:null);if(!O(e))return void e.blur()}var t,n,r;return Sl.call(this)}function Dl(){var e=!bl;e&&vl(),ar(this)&&rr(this)?sl.call(this):(Cl.apply(this,arguments),e&&dl())}function Pl(e,t){e[A]=t;for(var n=me.call(e),r=0,l=n.length;r<l;r++)Pl(n[r],t)}c(HTMLElement.prototype,{tabIndex:{get:function(){return ar(this)?Ol.call(this):Ke.call(this)},set:function(e){return ar(this)?Hl.call(this,e):qe.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(ar(this))return Rl.call(this);Sl.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Dl.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Pe&&null!==Ie&&s(HTMLElement.prototype,"innerText",{get:function(){return Pe.call(this)},set:function(e){Ie.call(this,e)},enumerable:!0,configurable:!0}),null!==$e&&null!==Be&&s(HTMLElement.prototype,"outerText",{get:function(){return $e.call(this)},set:function(e){Be.call(this,e)},enumerable:!0,configurable:!0}),s(Element.prototype,x,{set:function(e){var t=this[k];C(t)||t===e||Le.call(this,t),C(e)||Se.call(this,e,""),this[k]=e},get:function(){return this[k]},configurable:!0}),s(Element.prototype,"$shadowStaticNode$",{set:function(e){e&&Pl(this,this[A]);this[B]=e},get:function(){return this[B]},configurable:!0});var Il,Al="$$DomManualKey$$",$l=function(){},Bl={childList:!0};function xl(e,t,n){var r=tr(e);if(r!==t&&(nr(e,t),e instanceof Element)){if(function(e,t){e[x]=t}(e,n),ar(e))return;C(r)&&vt.call(Il,e,Bl);for(var l=me.call(e),o=0,a=l.length;o<a;o+=1)xl(l[o],t,n)}}function kl(){return new bt((function(e){L.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=tr(t),o=function(e){return e[x]}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];ne.call(t,u)&G.DOCUMENT_POSITION_CONTAINED_BY||xl(u,$l,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];ne.call(t,f)&G.DOCUMENT_POSITION_CONTAINED_BY&&xl(f,l,o)}}))}))}s(Element.prototype,"$domManual$",{set:function(e){this[Al]=e,H(e)&&function(e){if(C(Il)&&(Il=kl()),C(tr(e)))throw new Error("Invalid Element");vt.call(Il,e,Bl)}(this)},get:function(){return this[Al]},configurable:!0})}();
|
|
10
|
+
*/function mr(e,t){if(H(e))return null;for(var n,r,l,o,a=gr(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),!ar(l)||!O(o)&&o>-1)return n;return null}function vr(e,t,n,r){var l=rt.call(t,n,r);return H(l)?l:mr(e,gr(l,!0))}i(cr,pr,{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return mn(v.call(Gt(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,Yt(n=rr(this),St(Me.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return sn((t=e,qt(n=rr(this),St(Me.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=Rn(this),t="",n=0,r=e.length;n<r;n+=1)t+=on(e[n]);return t},set:function(e){var t=rr(this);Fe.call(t,e)}}},sr),hr.prototype=u(DocumentFragment.prototype,cr),s(hr,Symbol.hasInstance,{value:function(e){return I(e)&&!H(e)&&(Et(e)||p(e)===hr.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return vr(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return pn(this,this,e,t)},s(Document.prototype,"activeElement",{get:function(){var e=nt.call(this);if(H(e))return e;for(;!O(At(e));)if(H(e=he.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),s(Document.prototype,"getElementById",{value:function(){var e=ut.apply(this,M.call(arguments));return H(e)?null:O(At(e))||Lt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"querySelector",{value:function(){var e=St(it.apply(this,M.call(arguments))),t=b.call(e,(function(e){return O(At(e))||Lt(e)}));return O(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"querySelectorAll",{value:function(){var e=St(it.apply(this,M.call(arguments)));return sn(v.call(e,(function(e){return O(At(e))||Lt(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"getElementsByClassName",{value:function(){var e=St(ct.apply(this,M.call(arguments)));return mn(v.call(e,(function(e){return O(At(e))||Lt(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"getElementsByTagName",{value:function(){var e=St(st.apply(this,M.call(arguments)));return mn(v.call(e,(function(e){return O(At(e))||Lt(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=St(ft.apply(this,M.call(arguments)));return mn(v.call(e,(function(e){return O(At(e))||Lt(e)})))},writable:!0,enumerable:!0,configurable:!0}),s(f(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=St(pt.apply(this,M.call(arguments)));return sn(v.call(e,(function(e){return O(At(e))||Lt(e)})))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:hr,configurable:!0,writable:!0});var br=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var dr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function yr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!br)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!br.get.call(e)})()&&(HTMLElement.prototype.click=function(){Ot.call(this,"click",yr);try{dr.value.call(this)}finally{Rt.call(this,"click",yr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=i(u(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 Er,wr,Tr,Nr,Mr=CustomEvent;function Lr(e,t){var n=new Mr(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(Lr.prototype=Mr.prototype,window.CustomEvent=Lr,"undefined"!=typeof ClipboardEvent){var Sr=i(u(null),{copy:1,cut:1,paste:1});c(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===Sr[e]},configurable:!0,enumerable:!0}})}Tr="undefined"!=typeof HTMLIFrameElement,Nr="undefined"!=typeof Proxy&&R(Proxy.isCompat),Tr&&Nr&&(Er=f(HTMLIFrameElement.prototype,"contentWindow"),wr=Er.get,Er.get=function(){var e,t=wr.call(this);return H(t)||O(At(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}})},s(HTMLIFrameElement.prototype,"contentWindow",Er));var Cr=MutationObserver,Or=Cr.prototype,Hr=Or.disconnect,Rr=Or.observe,Dr=Or.takeRecords,Pr="$$lwcObserverCallbackWrapper$$",Ir="$$lwcNodeObservers$$",Ar=new WeakMap;function $r(e){return e[Ir]}function Br(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,o=u(MutationRecord.prototype);return c(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 xr(e,t){for(var n=t;!H(n);){var r=$r(n);if(!O(r)&&(r[0]===e||-1!==y.call(r,e)))return!0;n=n.parentNode}return!1}function kr(e,t){return T.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||O(Bt(r)))xr(t,r)&&w.call(e,n);else if(l.length>0){var a=l[0];if(xr(t,a)){var i=$r(r);!i||i[0]!==t&&-1===y.call(i,t)?w.call(e,Br(n)):w.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if($t(r)===$t(c)&&xr(t,r))w.call(e,n);else if(u){var s=$r(u);!s||s[0]!==t&&-1===y.call(s,t)||w.call(e,Br(n))}}return e}),[])}function Fr(e){var t=function(e){var t=e[Pr];return O(t)&&(t=e[Pr]=function(t,n){var r=kr(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Cr(t)}function jr(e,t,n){if(arguments.length>1){var r=M.call(arguments);return r[1]=An(r[1]),gt.apply(this,r)}return gt.apply(this,arguments)}function Wr(e,t,n){if(arguments.length>1){var r=M.call(arguments);r[1]=An(r[1]),mt.apply(this,r)}mt.apply(this,arguments)}function _r(){var e=Je.call(this);if(!(e instanceof G))return e;var t=Nt(e),n=gr(e,this.composed),r=Ze.call(this);if(!(r instanceof G))return H(r)&&O(At(e))?e:mr(t,n);if(r===t||r===t.body)return O(At(e))?e:mr(t,n);var l=r,o=n;or(r)&&(1===$n.get(this)&&(l=lr(r)));return or(e)&&fr.has(this)&&(o=gr(lr(e),this.composed)),mr(l,o)}function Ur(){var e=Je.call(this);if(!(e instanceof G))return[];var t,n=Boolean(e.shadowRoot),r=(t=e,zn.has(t));if(n&&!r)return tt.call(this);if(H(Ze.call(this)))return[];var l=e;return or(e)&&fr.has(this)&&(l=lr(e)),gr(l,this.composed)}function Gr(e){var t=f(e.prototype,"relatedTarget").get;s(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(H(e))return null;if(!(e instanceof G&&xt(e)))return e;var n=Ze.call(this);return H(n)&&(n=Nt(e)),mr(n,gr(e,!0))},enumerable:!0,configurable:!0})}Fr.prototype=Cr.prototype,Fr.prototype.disconnect=function(){var e=this;Hr.call(this);var t=Ar.get(this);O(t)||(S.call(t,(function(t){var n=t[Ir];if(!O(n)){var r=y.call(n,e);-1!==r&&L.call(n,r,1)}})),t.length=0)},Fr.prototype.observe=function(e,t){var n,r=$r(e);if(O(r)&&(n=r=[],e[Ir]=n),-1===y.call(r,this)&&w.call(r,this),ar(e)&&(e=e.host),Ar.has(this)){var l=Ar.get(this);-1===y.call(l,e)&&w.call(l,e)}else Ar.set(this,[e]);return Rr.call(this,e,t)},Fr.prototype.takeRecords=function(){return kr(Dr.call(this),this)},s(window,"MutationObserver",{value:Fr,configurable:!0,writable:!0}),c(Ct,{addEventListener:{value:function(e,t,n){if(or(this))return Vn.apply(this,arguments);if(arguments.length<2){var r=M.call(arguments);return r.length>1&&(r[1]=An(r[1])),Ot.apply(this,r)}var l=An(t);return Ot.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(or(this))return Qn.apply(this,arguments);var r=M.call(arguments);arguments.length>1&&(r[1]=An(r[1])),Rt.apply(this,r),Rt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&c(Window.prototype,{addEventListener:{value:jr,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Wr,enumerable:!0,writable:!0,configurable:!0}}),c(Event.prototype,{target:{get:_r,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=Ze.call(this);return H(e)?null:1===$n.get(this)?lr(e):e},enumerable:!0,configurable:!0},composedPath:{value:Ur,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:_r,enumerable:!0,configurable:!0},path:{get:Ur,enumerable:!0,configurable:!0}}),Gr(FocusEvent),Gr(MouseEvent);var Kr,qr=h.call(Text.prototype,"assignedSlot")?f(Text.prototype,"assignedSlot").get:function(){return null},Yr={childList:!0},Xr=new WeakMap;function Vr(e){var t=St(me.call(e));return T.call(t,(function(e,t){return t instanceof Element&&_t(t)?w.apply(e,Vr(t)):w.call(e,t),e}),[])}function Qr(){var e=fe.call(this);if(e instanceof Element){var t=Qe.call(e);if(Et(t))return this instanceof Text?qr.call(this):ze.call(this)}return!H(e)&&_t(e)&&At(e)!==At(this)?e:null}function zr(e,t){var n,r=At(e);if(O(r))n=e instanceof HTMLBodyElement?v.call(t,(function(t){return O(At(t))||Lt(e)})):M.call(t);else if(or(e)){var l=jt(e);n=H(l)?[]:Bt(e)?Kt(e,t):qt(l,t)}else n=v.call(t,(function(e){return $t(e)===r}));return n}function Jr(){for(var e=Rn(this),t="",n=0,r=e.length;n<r;n+=1)t+=on(e[n]);return t}function Zr(){return on(this)}function el(){var e=jt(this),t=H(e)?[]:qt(e,Xt(this));return mn(v.call(t,(function(e){return e instanceof Element})))}function tl(){return this.children.length}function nl(){return this.children[0]||null}function rl(){var e=this.children;return e.item(e.length-1)||null}c(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Xr.get(this)||(Xr.set(this,!0),Kr||(Kr=new vt((function(e){var t=[];S.call(e,(function(e){var n=e.target;-1===y.call(t,n)&&(w.call(t,n),Ht.call(n,new CustomEvent("slotchange")))}))}))),bt.call(Kr,this,Yr))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(xt(this)){var t=!O(e)&&R(e.flatten)?Vr(this):Vt(this);return v.call(t,(function(e){return e instanceof Element}))}return U.apply(this,M.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){return xt(this)?!O(e)&&R(e.flatten)?Vr(this):Vt(this):_.apply(this,M.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=de.call(this,"name");return H(e)?"":e},set:function(e){Se.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(xt(this)){var e=jt(this);return sn(H(e)?[]:qt(e,Xt(this)))}return me.call(this)},enumerable:!0,configurable:!0}}),c(Text.prototype,{assignedSlot:{get:Qr,enumerable:!0,configurable:!0}}),c(Element.prototype,{innerHTML:{get:function(){return xt(this)||or(this)?Jr.call(this):ke.call(this)},set:function(e){Fe.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return xt(this)||or(this)?Zr.call(this):We.call(this)},set:function(e){_e.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?ur(this,e):Ce.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(or(this)){var e=lr(this);if("open"===e.mode)return e}return Qe.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return vn(this)?el.call(this):Xe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return vn(this)?tl.call(this):Oe.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return vn(this)?nl.call(this):He.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return vn(this)?rl.call(this):Re.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Qr,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"innerHTML")&&s(HTMLElement.prototype,"innerHTML",f(Element.prototype,"innerHTML")),h.call(HTMLElement.prototype,"outerHTML")&&s(HTMLElement.prototype,"outerHTML",f(Element.prototype,"outerHTML")),h.call(HTMLElement.prototype,"children")&&s(HTMLElement.prototype,"children",f(Element.prototype,"children")),c(Element.prototype,{querySelector:{value:function(){var e=this,t=St(Me.apply(this,M.call(arguments)));if(or(this)){var n=jt(this);return O(Bt(this))?H(n)?null:Yt(n,t):function(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!Ut(e,l)&&Ft(e,l))return l}return null}(this,t)}if(xt(this)){var r=At(this);if(O(r))return 0===t.length?null:t[0];var l=b.call(t,(function(e){return $t(e)===r}));return O(l)?null:l}if(!(this instanceof HTMLBodyElement)){var o=t[0];return O(o)?null:o}var a=b.call(t,(function(t){return O(At(t))||Lt(e)}));return O(a)?null:a},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){return sn(function(e,t){var n;if(or(e)){var r=jt(e);n=O(Bt(e))?H(r)?[]:qt(r,t):Kt(e,t)}else if(xt(e)){var l=At(e);n=O(l)?M.call(t):v.call(t,(function(e){return $t(e)===l}))}else n=e instanceof HTMLBodyElement?v.call(t,(function(t){return O(At(t))||Lt(e)})):M.call(t);return n}(this,St(Me.apply(this,M.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c(Element.prototype,{getElementsByClassName:{value:function(){return mn(zr(this,St(Ve.apply(this,M.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){return mn(zr(this,St(Ee.apply(this,M.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){return mn(zr(this,St(we.apply(this,M.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),h.call(HTMLElement.prototype,"getElementsByClassName")&&s(HTMLElement.prototype,"getElementsByClassName",f(Element.prototype,"getElementsByClassName"));var ll="\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",ol=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function al(e){return e.filter((function(e){return Te.call(e,"tabindex")?"0"===de.call(e,"tabindex"):!ol.has(Ue.call(e))||!Te.call(e,"disabled")}))}var il=new WeakMap;function ul(e){return(!or(e)||!nr(e))&&(Ye.call(e,ll)&&function(e){var t=ye.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 cl(){var e=this.getRootNode();if(e!==this){if(e.activeElement!==this)for(var t=St(Me.call(this,ll)),n=!1;!n&&0!==t.length;){var r=t.shift();r.focus.apply(r,arguments),n=r.getRootNode().activeElement===r}}else{var l=Ne.call(this,ll);H(l)||l.focus.apply(l,arguments)}}function sl(e){var t=Nt(e),n=al(St(it.call(t,ll))),r=al(St(Me.call(e,ll))),l=r[0],o=r[r.length-1],a=y.call(n,e),i=a>-1?a:y.call(n,l),u=0===r.length?i+1:y.call(n,o)+1;return{prev:M.call(n,0,i),inner:r,next:M.call(n,u)}}function fl(e,t){var n=ne.call(e,t);return n&q?0:n&Y?1:n&X?2:-1}function pl(e){e.preventDefault(),e.stopPropagation()}function hl(e,t){gt.call(e,"focusin",pl,!0),gt.call(e,"focusout",pl,!0),t(),mt.call(e,"focusin",pl,!0),mt.call(e,"focusout",pl,!0)}function gl(e,t,n){var r=Mt(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(El(t.getRootNode(),l))return l}return null}(e,n);H(l)?hl(r,(function(){t.blur()})):hl(r,(function(){l.focus()}))}var ml=!1;function vl(){ml=!0}function bl(){ml=!1}function dl(e){if(!ml){var t=Ze.call(e),n=Je.call(e);if(t===n){var r=et.call(e);if(!H(r)){var l=sl(t);if(1===fl(t,r)){var o=El.bind(null,t.getRootNode()),a=b.call(l.inner,o);if(O(a))gl(l.next,n,r);else hl(Mt(a),(function(){a.focus()}))}else t===n&&gl(N.call(l.prev),n,r)}}}}function yl(e){if(!ml){var t=et.call(e);if(!H(t)){var n=Ze.call(e),r=sl(n);if(-1===y.call(r.inner,t)){var l=Je.call(e),o=fl(n,t);1===o&&gl(r.next,l,t),2===o&&gl(N.call(r.prev),l,t)}}}}function El(e,t){if(!ul(t))return!1;for(var n=Nt(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===de.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function wl(e){Rt.call(e,"focusin",dl,!0)}function Tl(e){var t=Nt(e);il.get(t)||(il.set(t,!0),Ot.call(t,"mousedown",vl,!0),Ot.call(t,"mouseup",(function(){setTimeout(bl)}),!0),Ot.call(t,"dragstart",bl,!0))}function Nl(e){Rt.call(e,"focusin",yl,!0)}var Ml=HTMLElement.prototype,Ll=Ml.blur,Sl=Ml.focus;function Cl(){return nr(this)&&D(Te.call(this,"tabindex"))?0:Ke.call(this)}function Ol(e){var t=nr(this),n=Ke.call(this),r=Te.call(this,"tabindex");qe.call(this,e);var l,o=Ke.call(this),a=Te.call(this,"tabindex"),i=n!==o;(r&&(i||D(a))&&(-1===n&&Nl(this),0===n&&t&&wl(this)),D(a))||(r&&a&&D(i)||(-1===o&&(Tl(l=this),wl(l),Ot.call(l,"focusin",yl,!0)),0===o&&t&&function(e){Tl(e),Nl(e),Ot.call(e,"focusin",dl,!0)}(this)))}function Hl(){if(nr(this)){var e=(n=Nt(t=this),H(r=nt.call(n))||0!=(ne.call(t,r)&q)?r:null);if(!H(e))return void e.blur()}var t,n,r;return Ll.call(this)}function Rl(){var e=!ml;e&&vl(),or(this)&&nr(this)?cl.call(this):(Sl.apply(this,arguments),e&&bl())}function Dl(e,t){e[$]=t;for(var n=me.call(e),r=0,l=n.length;r<l;r++)Dl(n[r],t)}c(HTMLElement.prototype,{tabIndex:{get:function(){return or(this)?Cl.call(this):Ke.call(this)},set:function(e){return or(this)?Ol.call(this,e):qe.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(or(this))return Hl.call(this);Ll.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Rl.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Pe&&null!==Ie&&s(HTMLElement.prototype,"innerText",{get:function(){return Pe.call(this)},set:function(e){Ie.call(this,e)},enumerable:!0,configurable:!0}),null!==$e&&null!==Be&&s(HTMLElement.prototype,"outerText",{get:function(){return $e.call(this)},set:function(e){Be.call(this,e)},enumerable:!0,configurable:!0}),s(Element.prototype,k,{set:function(e){var t=this[F];O(t)||t===e||Le.call(this,t),O(e)||Se.call(this,e,""),this[F]=e},get:function(){return this[F]},configurable:!0}),s(Element.prototype,"$shadowStaticNode$",{set:function(e){e&&Dl(this,this[$]);this[x]=e},get:function(){return this[x]},configurable:!0});var Pl,Il="$$DomManualKey$$",Al=function(){},$l={childList:!0};function Bl(e,t,n){var r=er(e);if(r!==t&&(tr(e,t),e instanceof Element)){if(function(e,t){e[k]=t}(e,n),or(e))return;O(r)&&bt.call(Pl,e,$l);for(var l=me.call(e),o=0,a=l.length;o<a;o+=1)Bl(l[o],t,n)}}function xl(){return new vt((function(e){S.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=er(t),o=function(e){return e[k]}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];ne.call(t,u)&G.DOCUMENT_POSITION_CONTAINED_BY||Bl(u,Al,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];ne.call(t,f)&G.DOCUMENT_POSITION_CONTAINED_BY&&Bl(f,l,o)}}))}))}s(Element.prototype,"$domManual$",{set:function(e){this[Il]=e,R(e)&&function(e){if(O(Pl)&&(Pl=xl()),O(er(e)))throw new Error("Invalid Element");bt.call(Pl,e,$l)}(this)},get:function(){return this[Il]},configurable:!0})}();
|
|
11
11
|
//# sourceMappingURL=synthetic-shadow.min.js.map
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
var _Array$prototype = Array.prototype,
|
|
28
28
|
ArrayFilter = _Array$prototype.filter,
|
|
29
29
|
ArrayFind = _Array$prototype.find,
|
|
30
|
+
ArrayFindIndex = _Array$prototype.findIndex,
|
|
30
31
|
ArrayIndexOf = _Array$prototype.indexOf,
|
|
31
32
|
ArrayMap = _Array$prototype.map,
|
|
32
33
|
ArrayPush = _Array$prototype.push,
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
85
86
|
var KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
|
|
86
87
|
var KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
87
|
-
/** version: 2.
|
|
88
|
+
/** version: 2.44.0 */
|
|
88
89
|
|
|
89
90
|
/**
|
|
90
91
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
value: create(null)
|
|
96
97
|
});
|
|
97
98
|
}
|
|
98
|
-
/** version: 2.
|
|
99
|
+
/** version: 2.44.0 */
|
|
99
100
|
|
|
100
101
|
/*
|
|
101
102
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1383,7 +1384,7 @@
|
|
|
1383
1384
|
*/
|
|
1384
1385
|
var EventListenerMap = new WeakMap();
|
|
1385
1386
|
var ComposedPathMap = new WeakMap();
|
|
1386
|
-
function isEventListenerOrEventListenerObject(fnOrObj) {
|
|
1387
|
+
function isEventListenerOrEventListenerObject$1(fnOrObj) {
|
|
1387
1388
|
return isFunction(fnOrObj) || isObject(fnOrObj) && !isNull(fnOrObj) && isFunction(fnOrObj.handleEvent);
|
|
1388
1389
|
}
|
|
1389
1390
|
function shouldInvokeListener(event, target, currentTarget) {
|
|
@@ -1401,7 +1402,7 @@
|
|
|
1401
1402
|
return composedPath.includes(currentTarget);
|
|
1402
1403
|
}
|
|
1403
1404
|
function getEventListenerWrapper(fnOrObj) {
|
|
1404
|
-
if (!isEventListenerOrEventListenerObject(fnOrObj)) {
|
|
1405
|
+
if (!isEventListenerOrEventListenerObject$1(fnOrObj)) {
|
|
1405
1406
|
return fnOrObj;
|
|
1406
1407
|
}
|
|
1407
1408
|
var wrapperFn = EventListenerMap.get(fnOrObj);
|
|
@@ -1427,6 +1428,16 @@
|
|
|
1427
1428
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1428
1429
|
*/
|
|
1429
1430
|
var eventToContextMap = new WeakMap();
|
|
1431
|
+
function getEventHandler(listener) {
|
|
1432
|
+
if (isFunction(listener)) {
|
|
1433
|
+
return listener;
|
|
1434
|
+
} else {
|
|
1435
|
+
return listener.handleEvent;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
function isEventListenerOrEventListenerObject(listener) {
|
|
1439
|
+
return isFunction(listener) || isFunction(listener === null || listener === void 0 ? void 0 : listener.handleEvent);
|
|
1440
|
+
}
|
|
1430
1441
|
var customElementToWrappedListeners = new WeakMap();
|
|
1431
1442
|
function getEventMap(elm) {
|
|
1432
1443
|
var listenerInfo = customElementToWrappedListeners.get(elm);
|
|
@@ -1446,51 +1457,62 @@
|
|
|
1446
1457
|
return (_a = eventToShadowRootMap.get(event)) !== null && _a !== void 0 ? _a : eventTargetGetter.call(event);
|
|
1447
1458
|
}
|
|
1448
1459
|
var shadowRootEventListenerMap = new WeakMap();
|
|
1449
|
-
function
|
|
1450
|
-
if (!
|
|
1460
|
+
function getManagedShadowRootListener(listener) {
|
|
1461
|
+
if (!isEventListenerOrEventListenerObject(listener)) {
|
|
1451
1462
|
throw new TypeError(); // avoiding problems with non-valid listeners
|
|
1452
1463
|
}
|
|
1453
1464
|
|
|
1454
|
-
var
|
|
1455
|
-
if (isUndefined(
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
currentTarget
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1465
|
+
var managedListener = shadowRootEventListenerMap.get(listener);
|
|
1466
|
+
if (isUndefined(managedListener)) {
|
|
1467
|
+
managedListener = {
|
|
1468
|
+
identity: listener,
|
|
1469
|
+
placement: 1 /* EventListenerContext.SHADOW_ROOT_LISTENER */,
|
|
1470
|
+
handleEvent: function handleEvent(event) {
|
|
1471
|
+
// currentTarget is always defined inside an event listener
|
|
1472
|
+
var currentTarget = eventCurrentTargetGetter.call(event);
|
|
1473
|
+
// If currentTarget is not an instance of a native shadow root then we're dealing with a
|
|
1474
|
+
// host element whose synthetic shadow root must be accessed via getShadowRoot().
|
|
1475
|
+
if (!isInstanceOfNativeShadowRoot(currentTarget)) {
|
|
1476
|
+
currentTarget = getShadowRoot(currentTarget);
|
|
1477
|
+
}
|
|
1478
|
+
var actualTarget = getActualTarget(event);
|
|
1479
|
+
if (shouldInvokeListener(event, actualTarget, currentTarget)) {
|
|
1480
|
+
getEventHandler(listener).call(currentTarget, event);
|
|
1481
|
+
}
|
|
1467
1482
|
}
|
|
1468
1483
|
};
|
|
1469
|
-
|
|
1470
|
-
shadowRootEventListenerMap.set(listener, shadowRootWrappedListener);
|
|
1484
|
+
shadowRootEventListenerMap.set(listener, managedListener);
|
|
1471
1485
|
}
|
|
1472
|
-
return
|
|
1486
|
+
return managedListener;
|
|
1473
1487
|
}
|
|
1474
1488
|
var customElementEventListenerMap = new WeakMap();
|
|
1475
|
-
function
|
|
1476
|
-
if (!
|
|
1489
|
+
function getManagedCustomElementListener(listener) {
|
|
1490
|
+
if (!isEventListenerOrEventListenerObject(listener)) {
|
|
1477
1491
|
throw new TypeError(); // avoiding problems with non-valid listeners
|
|
1478
1492
|
}
|
|
1479
1493
|
|
|
1480
|
-
var
|
|
1481
|
-
if (isUndefined(
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1494
|
+
var managedListener = customElementEventListenerMap.get(listener);
|
|
1495
|
+
if (isUndefined(managedListener)) {
|
|
1496
|
+
managedListener = {
|
|
1497
|
+
identity: listener,
|
|
1498
|
+
placement: 0 /* EventListenerContext.CUSTOM_ELEMENT_LISTENER */,
|
|
1499
|
+
handleEvent: function handleEvent(event) {
|
|
1500
|
+
// currentTarget is always defined inside an event listener
|
|
1501
|
+
var currentTarget = eventCurrentTargetGetter.call(event);
|
|
1502
|
+
var actualTarget = getActualTarget(event);
|
|
1503
|
+
if (shouldInvokeListener(event, actualTarget, currentTarget)) {
|
|
1504
|
+
getEventHandler(listener).call(currentTarget, event);
|
|
1505
|
+
}
|
|
1488
1506
|
}
|
|
1489
1507
|
};
|
|
1490
|
-
|
|
1491
|
-
customElementEventListenerMap.set(listener, customElementWrappedListener);
|
|
1508
|
+
customElementEventListenerMap.set(listener, managedListener);
|
|
1492
1509
|
}
|
|
1493
|
-
return
|
|
1510
|
+
return managedListener;
|
|
1511
|
+
}
|
|
1512
|
+
function indexOfManagedListener(listeners, listener) {
|
|
1513
|
+
return ArrayFindIndex.call(listeners, function (l) {
|
|
1514
|
+
return l.identity === listener.identity;
|
|
1515
|
+
});
|
|
1494
1516
|
}
|
|
1495
1517
|
function domListener(evt) {
|
|
1496
1518
|
var immediatePropagationStopped = false;
|
|
@@ -1526,9 +1548,9 @@
|
|
|
1526
1548
|
forEach.call(bookkeeping, function (listener) {
|
|
1527
1549
|
if (isFalse(immediatePropagationStopped) && listener.placement === placement) {
|
|
1528
1550
|
// making sure that the listener was not removed from the original listener queue
|
|
1529
|
-
if (
|
|
1551
|
+
if (indexOfManagedListener(listeners, listener) !== -1) {
|
|
1530
1552
|
// all handlers on the custom element should be called with undefined 'this'
|
|
1531
|
-
listener.call(undefined, evt);
|
|
1553
|
+
listener.handleEvent.call(undefined, evt);
|
|
1532
1554
|
}
|
|
1533
1555
|
}
|
|
1534
1556
|
});
|
|
@@ -1544,30 +1566,29 @@
|
|
|
1544
1566
|
eventToContextMap.set(evt, 2 /* EventListenerContext.UNKNOWN_LISTENER */);
|
|
1545
1567
|
}
|
|
1546
1568
|
|
|
1547
|
-
function attachDOMListener(elm, type,
|
|
1569
|
+
function attachDOMListener(elm, type, managedListener) {
|
|
1548
1570
|
var listenerMap = getEventMap(elm);
|
|
1549
|
-
var
|
|
1550
|
-
if (isUndefined(
|
|
1551
|
-
|
|
1571
|
+
var listeners = listenerMap[type];
|
|
1572
|
+
if (isUndefined(listeners)) {
|
|
1573
|
+
listeners = listenerMap[type] = [];
|
|
1552
1574
|
}
|
|
1553
1575
|
// Prevent identical listeners from subscribing to the same event type.
|
|
1554
|
-
// TODO [#1824]: Options will also play a factor
|
|
1555
|
-
if (
|
|
1576
|
+
// TODO [#1824]: Options will also play a factor in deduping if we introduce options support
|
|
1577
|
+
if (indexOfManagedListener(listeners, managedListener) !== -1) {
|
|
1556
1578
|
return;
|
|
1557
1579
|
}
|
|
1558
1580
|
// only add to DOM if there is no other listener on the same placement yet
|
|
1559
|
-
if (
|
|
1560
|
-
// super.addEventListener() - this will not work on
|
|
1581
|
+
if (listeners.length === 0) {
|
|
1561
1582
|
addEventListener.call(elm, type, domListener);
|
|
1562
1583
|
}
|
|
1563
|
-
ArrayPush.call(
|
|
1584
|
+
ArrayPush.call(listeners, managedListener);
|
|
1564
1585
|
}
|
|
1565
|
-
function detachDOMListener(elm, type,
|
|
1586
|
+
function detachDOMListener(elm, type, managedListener) {
|
|
1566
1587
|
var listenerMap = getEventMap(elm);
|
|
1567
|
-
var
|
|
1588
|
+
var index;
|
|
1568
1589
|
var listeners;
|
|
1569
|
-
if (!isUndefined(listeners = listenerMap[type]) && (
|
|
1570
|
-
ArraySplice.call(listeners,
|
|
1590
|
+
if (!isUndefined(listeners = listenerMap[type]) && (index = indexOfManagedListener(listeners, managedListener)) !== -1) {
|
|
1591
|
+
ArraySplice.call(listeners, index, 1);
|
|
1571
1592
|
// only remove from DOM if there is no other listener on the same placement
|
|
1572
1593
|
if (listeners.length === 0) {
|
|
1573
1594
|
removeEventListener.call(elm, type, domListener);
|
|
@@ -1575,33 +1596,29 @@
|
|
|
1575
1596
|
}
|
|
1576
1597
|
}
|
|
1577
1598
|
function addCustomElementEventListener(type, listener, _options) {
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
attachDOMListener(this, type, wrappedListener);
|
|
1599
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1600
|
+
var managedListener = getManagedCustomElementListener(listener);
|
|
1601
|
+
attachDOMListener(this, type, managedListener);
|
|
1582
1602
|
}
|
|
1583
1603
|
}
|
|
1584
1604
|
function removeCustomElementEventListener(type, listener, _options) {
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
detachDOMListener(this, type, wrappedListener);
|
|
1605
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1606
|
+
var managedListener = getManagedCustomElementListener(listener);
|
|
1607
|
+
detachDOMListener(this, type, managedListener);
|
|
1589
1608
|
}
|
|
1590
1609
|
}
|
|
1591
1610
|
function addShadowRootEventListener(sr, type, listener, _options) {
|
|
1592
|
-
|
|
1593
|
-
if (isFunction(listener)) {
|
|
1611
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1594
1612
|
var elm = getHost(sr);
|
|
1595
|
-
var
|
|
1596
|
-
attachDOMListener(elm, type,
|
|
1613
|
+
var managedListener = getManagedShadowRootListener(listener);
|
|
1614
|
+
attachDOMListener(elm, type, managedListener);
|
|
1597
1615
|
}
|
|
1598
1616
|
}
|
|
1599
1617
|
function removeShadowRootEventListener(sr, type, listener, _options) {
|
|
1600
|
-
|
|
1601
|
-
if (isFunction(listener)) {
|
|
1618
|
+
if (isEventListenerOrEventListenerObject(listener)) {
|
|
1602
1619
|
var elm = getHost(sr);
|
|
1603
|
-
var
|
|
1604
|
-
detachDOMListener(elm, type,
|
|
1620
|
+
var managedListener = getManagedShadowRootListener(listener);
|
|
1621
|
+
detachDOMListener(elm, type, managedListener);
|
|
1605
1622
|
}
|
|
1606
1623
|
}
|
|
1607
1624
|
|
|
@@ -4475,7 +4492,7 @@
|
|
|
4475
4492
|
},
|
|
4476
4493
|
configurable: true
|
|
4477
4494
|
});
|
|
4478
|
-
/** version: 2.
|
|
4495
|
+
/** version: 2.44.0 */
|
|
4479
4496
|
|
|
4480
4497
|
})();
|
|
4481
4498
|
//# sourceMappingURL=synthetic-shadow_debug.js.map
|