lwc 2.3.3 → 2.5.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.
Files changed (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +360 -198
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +360 -198
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +361 -168
  5. package/dist/engine-dom/iife/es5/engine-dom.js +371 -218
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +370 -186
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +360 -198
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +361 -168
  11. package/dist/engine-dom/umd/es5/engine-dom.js +371 -218
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +370 -186
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +304 -205
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +304 -205
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +29 -16
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +29 -16
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +29 -16
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +31 -16
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +31 -16
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +29 -16
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +29 -16
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +31 -16
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +31 -16
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +3 -3
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +3 -3
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +3 -3
  41. package/package.json +8 -8
@@ -1,4 +1,4 @@
1
- !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r="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})(e)}var l=Object.assign,o=Object.create,a=Object.defineProperties,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,s=Object.hasOwnProperty,f=Object.setPrototypeOf,h=Array.prototype,p=h.filter,g=h.find,m=h.indexOf,v=h.map,b=h.push,d=h.reduce,E=h.reverse,y=h.slice,w=h.splice,T=h.forEach,N=String.prototype.charCodeAt;function L(e){return void 0===e}function M(e){return null===e}function C(e){return!0===e}function S(e){return!1===e}function O(e){return"function"==typeof e}function A(e){return"object"===r(e)}var H,_,R=function(){if("object"===("undefined"==typeof globalThis?"undefined":r(globalThis)))return globalThis;var e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),P="$shadowResolver$",D="$shadowToken$",$=Node,B=$.prototype,I=$.DOCUMENT_POSITION_CONTAINED_BY,k=$.DOCUMENT_POSITION_PRECEDING,x=$.DOCUMENT_POSITION_FOLLOWING,F=$.ELEMENT_NODE,W=$.TEXT_NODE,j=$.CDATA_SECTION_NODE,U=$.PROCESSING_INSTRUCTION_NODE,K=$.COMMENT_NODE,G=B.appendChild,q=B.cloneNode,X=B.compareDocumentPosition,V=B.insertBefore,Y=B.removeChild,z=B.replaceChild,J=B.hasChildNodes,Q=HTMLElement.prototype.contains,Z=u(B,"firstChild").get,ee=u(B,"lastChild").get,te=u(B,"textContent").get,ne=u(B,"parentNode").get,re=u(B,"ownerDocument").get,le=s.call(B,"parentElement")?u(B,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,oe=u(B,"textContent").set,ae=s.call(B,"childNodes")?u(B,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,ie=s.call(B,"isConnected")?u(B,"isConnected").get:function(){var e=re.call(this);return null===e||0!=(X.call(e,this)&I)},ue=Element.prototype,ce=ue.getAttribute,se=ue.getBoundingClientRect,fe=ue.getElementsByTagName,he=ue.getElementsByTagNameNS,pe=ue.hasAttribute,ge=ue.querySelector,me=ue.querySelectorAll,ve=ue.removeAttribute,be=ue.setAttribute,de=s.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")},Ee=u(Element.prototype,"childElementCount").get,ye=u(Element.prototype,"firstElementChild").get,we=u(Element.prototype,"lastElementChild").get,Te=u(HTMLElement.prototype,"innerText"),Ne=Te?Te.get:null,Le=Te?Te.set:null,Me=u(HTMLElement.prototype,"outerText"),Ce=Me?Me.get:null,Se=Me?Me.set:null,Oe=s.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML"):u(HTMLElement.prototype,"innerHTML"),Ae=Oe.get,He=Oe.set,_e=s.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML"):u(HTMLElement.prototype,"outerHTML"),Re=_e.get,Pe=_e.set,De=u(Element.prototype,"tagName").get,$e=u(HTMLElement.prototype,"tabIndex"),Be=$e.get,Ie=$e.set,ke=s.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,xe=s.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,Fe=HTMLElement.prototype.getElementsByClassName,We=s.call(Element.prototype,"shadowRoot")?u(Element.prototype,"shadowRoot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(H=HTMLSlotElement.prototype.assignedNodes,_=HTMLSlotElement.prototype.assignedElements):(H=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")},_=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=u(Event.prototype,"target").get,Ue=u(Event.prototype,"currentTarget").get,Ke=u(FocusEvent.prototype,"relatedTarget").get,Ge=u(Document.prototype,"activeElement").get,qe=s.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Xe=s.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,Ve=u(Document.prototype,"defaultView").get,Ye=Document.prototype,ze=Ye.querySelectorAll,Je=Ye.getElementById,Qe=Ye.getElementsByClassName,Ze=Ye.getElementsByTagName,et=Ye.getElementsByTagNameNS,tt=HTMLDocument.prototype.getElementsByName,nt=window,rt=nt.addEventListener,lt=nt.removeEventListener,ot=nt.getComputedStyle,at=nt.getSelection,it=MutationObserver,ut=it.prototype.observe,ct=null;"undefined"!=typeof ShadowRoot&&(ct=ShadowRoot);var st=!M(ct),ft=M(ct)?function(){return!1}:function(e){return e instanceof ct};var ht,pt=Document.prototype.createElement;function gt(e){var t=re.call(e);return null===t?e:t}function mt(e){var t=gt(e),n=Ve.call(t);if(null===n)throw new TypeError;return n}function vt(e){if(L(ht)){var t=gt(e);ht=t.body&&"temporary-bypass"===ce.call(t.body,"data-global-patching-bypass")}return C(ht)}function bt(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=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};f(e,HTMLElement.constructor),f(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,i(Document.prototype,"createElement",{value:function(t,n){var r=pt.apply(this,y.call(arguments));return 4===t.length&&115===N.call(t,0)&&108===N.call(t,1)&&111===N.call(t,2)&&116===N.call(t,3)&&f(r,e.prototype),r}})}(),R.lwcRuntimeFlags||Object.defineProperty(R,"lwcRuntimeFlags",{value:o(null)});var dt=R.lwcRuntimeFlags,Et="undefined"!=typeof EventTarget?EventTarget.prototype:$.prototype,yt=Et.addEventListener,wt=Et.dispatchEvent,Tt=Et.removeEventListener,Nt=new WeakMap,Lt=new WeakMap;function Mt(e,t,n){if(t===n)return!0;var r=Lt.get(e);return L(r)&&(r=e.composedPath(),Lt.set(e,r)),r.includes(n)}function Ct(e){if(!function(e){return O(e)||A(e)&&!M(e)&&O(e.handleEvent)}(e))return e;var t=Nt.get(e);return L(t)&&(t=function(t){var n,r=Ue.call(t),l=t.composed;dt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=!(nr.has(t)&&S(l)):n=Mt(t,Pt(t),r);if(n)return O(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Nt.set(e,t)),t}var St=new WeakMap;function Ot(e,t){return!!(X.call(e,t)&I)}var At={composed:!1};function Ht(e,t){var n=e.getRootNode(t);return"mode"in n&&"delegatesFocus"in n&&(n=Yn(n)),n}var _t=new WeakMap;function Rt(e){var t=_t.get(e);return L(t)&&(t=o(null),_t.set(e,t)),t}function Pt(e){var t;return null!==(t=nr.get(e))&&void 0!==t?t:je.call(e)}var Dt=new WeakMap;function $t(e){if(!O(e))throw new TypeError;var t=Dt.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);(ft(r)||(r=zn(r)),dt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)?n=function(e){var t=e.composed,n=je.call(e),r=Ue.call(e);if(n===r)return nr.get(e)===zn(n);if(C(t))return!0;if(C(nr.has(e)))return!1;var l=Ht(n,At),o=r;return Ot(l,o)||l===o}(t):n=Mt(t,Pt(t),r);n&&e.call(r,t)}).placement=1,Dt.set(e,t)),t}var Bt=new WeakMap;function It(e){if(!O(e))throw new TypeError;var t=Bt.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);dt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=function(e){if(C(e.composed))return!0;if(nr.has(e))return!1;var t=je.call(e),n=Ue.call(e);if(t===n)return!0;return Ot(Ht(t,At),n)}(t):n=Mt(t,Pt(t),r);n&&e.call(r,t)}).placement=0,Bt.set(e,t)),t}function kt(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=Rt(Ue.call(e))[r];i(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),i(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=y.call(a);function c(n){T.call(u,(function(r){S(t)&&r.placement===n&&-1!==m.call(a,r)&&r.call(void 0,e)}))}St.set(e,1),c(1),S(t)&&S(n)&&(St.set(e,0),c(0)),St.set(e,2)}function xt(e,t,n){var r=Rt(e),l=r[t];L(l)&&(l=r[t]=[]),-1===m.call(l,n)&&(0===l.length&&yt.call(e,t,kt),b.call(l,n))}function Ft(e,t,n){var r,l;L(l=Rt(e)[t])||-1===(r=m.call(l,n))||(w.call(l,r,1),0===l.length&&Tt.call(e,t,kt))}function Wt(e,t,n){O(t)&&xt(this,e,It(t))}function jt(e,t,n){O(t)&&Ft(this,e,It(t))}var Ut="$$HostElementKey$$",Kt="$$ShadowedNodeKey$$";function Gt(e,t,n){var r=e,l=n.value;r[t]=l}function qt(e){return e[Ut]}function Xt(e){for(var t,n=e;!M(n);){if(!L(t=qt(n)))return t;n=ne.call(n)}}function Vt(e){return e[Kt]}function Yt(e){return!L(qt(e))}function zt(e){for(var t=le.call(e);!M(t)&&en(t);)e=t,t=le.call(e);return e}function Jt(e,t){for(var n=Vt(e),r=t instanceof Element?t:le.call(t);!M(r)&&r!==e;){var l=Xt(r),o=le.call(r);if(l===n)return en(r);if(o===e)return!1;if(M(o)||Xt(o)===l)r=o;else{if(!en(o))return!1;if(!M(r=Qt(zt(o)))){if(r===e)return!0;if(Xt(r)===n)return!0}}}return!1}function Qt(e){if(!(e instanceof $))return null;var t=Xt(e);if(L(t))return null;for(var n=e;!M(n)&&Vt(n)!==t;)n=ne.call(n);return M(n)?null:n}function Zt(e){return en(e)&&Yt(e)}function en(e){return e instanceof HTMLSlotElement}function tn(e,t){var n=Xt(t);return L(n)||Vt(e)===n}function nn(e){var t=Yn(e);return on(t,bt(ae.call(t)))}function rn(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!tn(e,o)&&Jt(e,o)&&b.call(n,o)}return n}function ln(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!tn(e,l)&&Jt(e,l))return l}return null}function on(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];tn(e,o)&&b.call(n,o)}return n}function an(e,t){for(var n=0,r=t.length;n<r;n+=1)if(tn(e,t[n]))return t[n];return null}function un(e){if(!Jn(e)&&!en(e))return bt(ae.call(e));if(Jn(e)){var t=bt(me.call(e,"slot")),n=qn(zn(e));return d.call(t,(function(e,t){return n===qn(t)&&b.apply(e,cn(t)),e}),[])}var r=bt(ae.call(e)),l=qn(e);return p.call(r,(function(e){return l===qn(e)}))}function cn(e){var t=Qt(e);if(M(t))return[];var n=bt(ae.call(e));return p.call(n,(function(e){return!Yt(e)||!tn(t,e)}))}function sn(e){switch(e.nodeType){case F:for(var t=un(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==K&&(n+=sn(o))}return n;default:return e.nodeValue}}var fn=new WeakMap;function hn(){throw new TypeError("Illegal constructor")}function pn(e){var t=o(hn.prototype);return fn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}hn.prototype=o(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 fn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){T.call(fn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(fn.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(fn.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return fn.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=fn.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)),f(hn,NodeList);var gn=new WeakMap;function mn(){throw new TypeError("Illegal constructor")}function vn(e){var t=o(mn.prototype);return gn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}mn.prototype=o(HTMLCollection.prototype,(n(t={constructor:{writable:!0,configurable:!0,value:mn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return gn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=gn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===ce.call(l,"id")||e===ce.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)),f(mn,HTMLCollection);var bn=/[&\u00A0"]/g,dn=/[&\u00A0<>]/g,En=String.prototype,yn=En.replace,wn=En.toLowerCase;function Tn(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Nn(e){return yn.call(e,bn,Tn)}var Ln=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Mn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Cn(e){switch(e.nodeType){case F:for(var t,n=e.attributes,r=De.call(e),l="<"+wn.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+Nn(t.value)+'"';return l+=">",Ln.has(r)?l:l+function(e){for(var t="",n=un(e),r=0,l=n.length;r<l;r+=1)t+=Cn(n[r]);return t}(e)+"</"+wn.call(r)+">";case W:var a=e.data,i=e.parentNode;return i instanceof Element&&Mn.has(De.call(i))?a:function(e){return yn.call(e,dn,Tn)}(a);case j:return"<!CDATA[[".concat(e.data,"]]>");case U:return"<?".concat(e.target," ").concat(e.data,"?>");case K:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}function Sn(e){return Zt(e)||Jn(e)}function On(e,t){var n=Qt(e);if(t===n)return zn(n);if(t instanceof Element){if(Xt(e)===Xt(t))return t;if(!M(n)&&en(t)){var r=Qt(t);if(!M(r)&&tn(n,r))return r}}return null}function An(){return Wn(this).length>0}function Hn(){return Wn(this)[0]||null}function _n(){var e=Wn(this);return e[e.length-1]||null}function Rn(){return sn(this)}function Pn(){var e=ne.call(this);return M(e)?e:On(this,e)}function Dn(){var e=ne.call(this);if(M(e))return null;var t=On(this,e);return t instanceof Element?t:null}function $n(e){return this.getRootNode()===e?10:qt(this)!==qt(e)?35:X.call(this,e)}function Bn(e){return null!=e&&qt(this)===qt(e)&&0!=(X.call(this,e)&I)}function In(e){var t=q.call(this,!1);if(!e)return t;for(var n=Wn(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function kn(){if(Jn(this)){var e=Qt(this);return pn(M(e)?[]:on(e,un(this)))}return ae.call(this)}var xn=$.prototype.getRootNode,Fn=L(xn)?function(){for(var e,t=this;!M(e=ne.call(t));)t=e;return t}:xn;a($.prototype,{firstChild:{get:function(){return Sn(this)?Hn.call(this):Z.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return Sn(this)?_n.call(this):ee.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return dt.ENABLE_NODE_PATCH?vt(this)?te.call(this):Rn.call(this):Yt(this)||Jn(this)?Rn.call(this):te.call(this)},set:function(e){oe.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(Yt(this))return Pn.call(this);var e=ne.call(this);return!M(e)&&Zt(e)?Qt(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(Yt(this))return Dn.call(this);var e=le.call(this);return!M(e)&&Zt(e)?Qt(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return Sn(this)?kn.call(this):ae.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return Sn(this)?An.call(this):J.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return vt(this)?X.call(this,e):$n.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||(dt.ENABLE_NODE_PATCH?vt(this)?Q.call(this,e):Bn.call(this,e):null!=e&&(Yt(this)||Jn(this)?Bn.call(this,e):Q.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return dt.ENABLE_NODE_PATCH?C(e)?vt(this)?q.call(this,e):In.call(this,e):q.call(this,e):Yt(this)||Jn(this)?In.call(this,e):q.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return C(!L(e)&&!!e.composed)?Fn.call(this,e):M(n=Qt(t=this))?Fn.call(t):zn(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(this)}}});var Wn=function(e){return e.childNodes};function jn(e,t,n,r){var l=Xe.call(t,n,r),o=[],a=function(e){for(var t,n=[],r=e.getRootNode();!L(r);)n.push(r),r=null===(t=r.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!M(l))for(var i=0;i<l.length;i++){var u=l[i];-1===a.indexOf(u.getRootNode())||Zt(u)||o.push(u)}return o}s.call(HTMLElement.prototype,"contains")&&i(HTMLElement.prototype,"contains",u($.prototype,"contains")),s.call(HTMLElement.prototype,"parentElement")&&i(HTMLElement.prototype,"parentElement",u($.prototype,"parentElement"));var Un=new WeakMap,Kn=document.createDocumentFragment;function Gn(e){var t=Un.get(e);if(L(t))throw new TypeError;return t}function qn(e){return e.$shadowResolver$}function Xn(e,t){e.$shadowResolver$=t}function Vn(e){return Gn(e).delegatesFocus}function Yn(e){return Gn(e).host}function zn(e){return Gn(e).shadowRoot}function Jn(e){return!L(Un.get(e))}i($.prototype,P,{set:function(e){var t,n;L(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,Gt(t,Ut,{value:n,configurable:!0}))},get:function(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),i(R,"$isNativeShadowRootDefined$",{value:st});var Qn=0;function Zn(e,t){if(!L(Un.get(e)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");var n=t.mode,r=t.delegatesFocus,l=gt(e),o=Kn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};Un.set(o,a),Un.set(e,a);var i=function(){return o},u=i.nodeKey=Qn++;return Gt(e,Kt,{value:u}),Xn(o,i),f(o,rr.prototype),o}var er={constructor:{writable:!0,configurable:!0,value:rr},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}},tr={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Yn(this),t=gt(e),n=Ge.call(t);if(M(n))return n;if(0==(X.call(e,n)&I))return null;for(var r=n;!tn(e,r);)r=le.call(r);return en(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return Gn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return ar(this,gt(Yn(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return jn(this,gt(Yn(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 Yn(this)}},mode:{configurable:!0,get:function(){return Gn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},nr=new WeakMap;function rr(){throw new TypeError("Illegal constructor")}function lr(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof $))return r;n=e.getRootNode()}for(var l,o=e;!M(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=M(a)?o.parentNode:a}else o=(o instanceof rr||ft(o))&&(t||o!==n)?o.host:o instanceof $?o.parentNode:null;return l=e instanceof Window?e.document:gt(e),r[r.length-1]===l&&r.push(window),r}
1
+ !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r="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})(e)}var l=Object.assign,o=Object.create,a=Object.defineProperties,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,s=Object.hasOwnProperty,f=Object.setPrototypeOf,h=Array.prototype,p=h.filter,g=h.find,m=h.indexOf,v=h.map,d=h.push,b=h.reduce,E=h.reverse,y=h.slice,w=h.splice,T=h.forEach,N=String.prototype.charCodeAt;function L(e){return void 0===e}function M(e){return null===e}function C(e){return!0===e}function S(e){return!1===e}function O(e){return"function"==typeof e}function A(e){return"object"===r(e)}var H,_,R=function(){if("object"===("undefined"==typeof globalThis?"undefined":r(globalThis)))return globalThis;var e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),P="$shadowResolver$",D="$shadowToken$",$=Node,B=$.prototype,I=$.DOCUMENT_POSITION_CONTAINED_BY,k=$.DOCUMENT_POSITION_PRECEDING,x=$.DOCUMENT_POSITION_FOLLOWING,F=$.ELEMENT_NODE,W=$.TEXT_NODE,j=$.CDATA_SECTION_NODE,U=$.PROCESSING_INSTRUCTION_NODE,K=$.COMMENT_NODE,G=B.appendChild,q=B.cloneNode,X=B.compareDocumentPosition,V=B.insertBefore,Y=B.removeChild,z=B.replaceChild,J=B.hasChildNodes,Q=HTMLElement.prototype.contains,Z=u(B,"firstChild").get,ee=u(B,"lastChild").get,te=u(B,"textContent").get,ne=u(B,"parentNode").get,re=u(B,"ownerDocument").get,le=s.call(B,"parentElement")?u(B,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,oe=u(B,"textContent").set,ae=s.call(B,"childNodes")?u(B,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,ie=s.call(B,"isConnected")?u(B,"isConnected").get:function(){var e=re.call(this);return null===e||0!=(X.call(e,this)&I)},ue=Element.prototype,ce=ue.getAttribute,se=ue.getBoundingClientRect,fe=ue.getElementsByTagName,he=ue.getElementsByTagNameNS,pe=ue.hasAttribute,ge=ue.querySelector,me=ue.querySelectorAll,ve=ue.removeAttribute,de=ue.setAttribute,be=s.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")},Ee=u(Element.prototype,"childElementCount").get,ye=u(Element.prototype,"firstElementChild").get,we=u(Element.prototype,"lastElementChild").get,Te=u(HTMLElement.prototype,"innerText"),Ne=Te?Te.get:null,Le=Te?Te.set:null,Me=u(HTMLElement.prototype,"outerText"),Ce=Me?Me.get:null,Se=Me?Me.set:null,Oe=s.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML"):u(HTMLElement.prototype,"innerHTML"),Ae=Oe.get,He=Oe.set,_e=s.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML"):u(HTMLElement.prototype,"outerHTML"),Re=_e.get,Pe=_e.set,De=u(Element.prototype,"tagName").get,$e=u(HTMLElement.prototype,"tabIndex"),Be=$e.get,Ie=$e.set,ke=s.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,xe=s.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,Fe=HTMLElement.prototype.getElementsByClassName,We=s.call(Element.prototype,"shadowRoot")?u(Element.prototype,"shadowRoot").get:function(){return null};"undefined"!=typeof HTMLSlotElement?(H=HTMLSlotElement.prototype.assignedNodes,_=HTMLSlotElement.prototype.assignedElements):(H=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")},_=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=u(Event.prototype,"target").get,Ue=u(Event.prototype,"currentTarget").get,Ke=u(FocusEvent.prototype,"relatedTarget").get,Ge=s.call(Event.prototype,"composedPath")?Event.prototype.composedPath:function(){return[]},qe=u(Document.prototype,"activeElement").get,Xe=s.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Ve=s.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,Ye=u(Document.prototype,"defaultView").get,ze=Document.prototype,Je=ze.querySelectorAll,Qe=ze.getElementById,Ze=ze.getElementsByClassName,et=ze.getElementsByTagName,tt=ze.getElementsByTagNameNS,nt=HTMLDocument.prototype.getElementsByName,rt=window,lt=rt.addEventListener,ot=rt.removeEventListener,at=rt.getComputedStyle,it=rt.getSelection,ut=MutationObserver,ct=ut.prototype.observe,st=null;"undefined"!=typeof ShadowRoot&&(st=ShadowRoot);var ft=!M(st),ht=M(st)?function(){return!1}:function(e){return e instanceof st};var pt,gt=Document.prototype.createElement;function mt(e){var t=re.call(e);return null===t?e:t}function vt(e){var t=mt(e),n=Ye.call(t);if(null===n)throw new TypeError;return n}function dt(e){if(L(pt)){var t=mt(e);pt=t.body&&"temporary-bypass"===ce.call(t.body,"data-global-patching-bypass")}return C(pt)}function bt(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=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};f(e,HTMLElement.constructor),f(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,i(Document.prototype,"createElement",{value:function(t,n){var r=gt.apply(this,y.call(arguments));return 4===t.length&&115===N.call(t,0)&&108===N.call(t,1)&&111===N.call(t,2)&&116===N.call(t,3)&&f(r,e.prototype),r}})}(),R.lwcRuntimeFlags||Object.defineProperty(R,"lwcRuntimeFlags",{value:o(null)});var Et=R.lwcRuntimeFlags,yt="undefined"!=typeof EventTarget?EventTarget.prototype:$.prototype,wt=yt.addEventListener,Tt=yt.dispatchEvent,Nt=yt.removeEventListener,Lt=new WeakMap,Mt=new WeakMap;function Ct(e,t,n){if(t===n)return!0;var r=Mt.get(e);return L(r)&&(r=e.composedPath(),Mt.set(e,r)),r.includes(n)}function St(e){if(!function(e){return O(e)||A(e)&&!M(e)&&O(e.handleEvent)}(e))return e;var t=Lt.get(e);return L(t)&&(t=function(t){var n,r=Ue.call(t),l=t.composed;Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=!(rr.has(t)&&S(l)):n=Ct(t,Dt(t),r);if(n)return O(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Lt.set(e,t)),t}var Ot=new WeakMap;function At(e,t){return!!(X.call(e,t)&I)}var Ht={composed:!1};function _t(e,t){var n=e.getRootNode(t);return"mode"in n&&"delegatesFocus"in n&&(n=zn(n)),n}var Rt=new WeakMap;function Pt(e){var t=Rt.get(e);return L(t)&&(t=o(null),Rt.set(e,t)),t}function Dt(e){var t;return null!==(t=rr.get(e))&&void 0!==t?t:je.call(e)}var $t=new WeakMap;function Bt(e){if(!O(e))throw new TypeError;var t=$t.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);(ht(r)||(r=Jn(r)),Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)?n=function(e){var t=e.composed,n=je.call(e),r=Ue.call(e);if(n===r)return rr.get(e)===Jn(n);if(C(t))return!0;if(C(rr.has(e)))return!1;var l=_t(n,Ht),o=r;return At(l,o)||l===o}(t):n=Ct(t,Dt(t),r);n&&e.call(r,t)}).placement=1,$t.set(e,t)),t}var It=new WeakMap;function kt(e){if(!O(e))throw new TypeError;var t=It.get(e);return L(t)&&((t=function(t){var n,r=Ue.call(t);Et.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE?n=function(e){if(C(e.composed))return!0;if(rr.has(e))return!1;var t=je.call(e),n=Ue.call(e);if(t===n)return!0;return At(_t(t,Ht),n)}(t):n=Ct(t,Dt(t),r);n&&e.call(r,t)}).placement=0,It.set(e,t)),t}function xt(e){var t=!1,n=!1,r=e.type,l=e.stopImmediatePropagation,o=e.stopPropagation,a=Pt(Ue.call(e))[r];i(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),i(e,"stopPropagation",{value:function(){n=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=y.call(a);function c(n){T.call(u,(function(r){S(t)&&r.placement===n&&-1!==m.call(a,r)&&r.call(void 0,e)}))}Ot.set(e,1),c(1),S(t)&&S(n)&&(Ot.set(e,0),c(0)),Ot.set(e,2)}function Ft(e,t,n){var r=Pt(e),l=r[t];L(l)&&(l=r[t]=[]),-1===m.call(l,n)&&(0===l.length&&wt.call(e,t,xt),d.call(l,n))}function Wt(e,t,n){var r,l;L(l=Pt(e)[t])||-1===(r=m.call(l,n))||(w.call(l,r,1),0===l.length&&Nt.call(e,t,xt))}function jt(e,t,n){O(t)&&Ft(this,e,kt(t))}function Ut(e,t,n){O(t)&&Wt(this,e,kt(t))}var Kt="$$HostElementKey$$",Gt="$$ShadowedNodeKey$$";function qt(e,t,n){var r=e,l=n.value;r[t]=l}function Xt(e){return e[Kt]}function Vt(e){for(var t,n=e;!M(n);){if(!L(t=Xt(n)))return t;n=ne.call(n)}}function Yt(e){return e[Gt]}function zt(e){return!L(Xt(e))}function Jt(e){for(var t=le.call(e);!M(t)&&tn(t);)e=t,t=le.call(e);return e}function Qt(e,t){for(var n=Yt(e),r=t instanceof Element?t:le.call(t);!M(r)&&r!==e;){var l=Vt(r),o=le.call(r);if(l===n)return tn(r);if(o===e)return!1;if(M(o)||Vt(o)===l)r=o;else{if(!tn(o))return!1;if(!M(r=Zt(Jt(o)))){if(r===e)return!0;if(Vt(r)===n)return!0}}}return!1}function Zt(e){if(!(e instanceof $))return null;var t=Vt(e);if(L(t))return null;for(var n=e;!M(n)&&Yt(n)!==t;)n=ne.call(n);return M(n)?null:n}function en(e){return tn(e)&&zt(e)}function tn(e){return e instanceof HTMLSlotElement}function nn(e,t){var n=Vt(t);return L(n)||Yt(e)===n}function rn(e){var t=zn(e);return an(t,bt(ae.call(t)))}function ln(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];!nn(e,o)&&Qt(e,o)&&d.call(n,o)}return n}function on(e,t){for(var n=0,r=t.length;n<r;n+=1){var l=t[n];if(!nn(e,l)&&Qt(e,l))return l}return null}function an(e,t){for(var n=[],r=0,l=t.length;r<l;r+=1){var o=t[r];nn(e,o)&&d.call(n,o)}return n}function un(e,t){for(var n=0,r=t.length;n<r;n+=1)if(nn(e,t[n]))return t[n];return null}function cn(e){if(!Qn(e)&&!tn(e))return bt(ae.call(e));if(Qn(e)){var t=bt(me.call(e,"slot")),n=Xn(Jn(e));return b.call(t,(function(e,t){return n===Xn(t)&&d.apply(e,sn(t)),e}),[])}var r=bt(ae.call(e)),l=Xn(e);return p.call(r,(function(e){return l===Xn(e)}))}function sn(e){var t=Zt(e);if(M(t))return[];var n=bt(ae.call(e));return p.call(n,(function(e){return!zt(e)||!nn(t,e)}))}function fn(e){switch(e.nodeType){case F:for(var t=cn(e),n="",r=0,l=t.length;r<l;r+=1){var o=t[r];o.nodeType!==K&&(n+=fn(o))}return n;default:return e.nodeValue}}var hn=new WeakMap;function pn(){throw new TypeError("Illegal constructor")}function gn(e){var t=o(pn.prototype);return hn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}pn.prototype=o(NodeList.prototype,(n(e={constructor:{writable:!0,configurable:!0,value:pn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return hn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){T.call(hn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(hn.get(this),(function(e,t){return[t,e]}))}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(hn.get(this),(function(e,t){return t}))}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return hn.get(this)}}},Symbol.iterator,{writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=hn.get(e);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}}),n(e,Symbol.toStringTag,{configurable:!0,get:function(){return"NodeList"}}),n(e,"toString",{writable:!0,configurable:!0,value:function(){return"[object NodeList]"}}),e)),f(pn,NodeList);var mn=new WeakMap;function vn(){throw new TypeError("Illegal constructor")}function dn(e){var t=o(vn.prototype);return mn.set(t,e),T.call(e,(function(e,n){i(t,n,{value:e,enumerable:!0,configurable:!0})})),t}vn.prototype=o(HTMLCollection.prototype,(n(t={constructor:{writable:!0,configurable:!0,value:vn},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return mn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(""===e)return null;for(var t=mn.get(this),n=0,r=t.length;n<r;n++){var l=t[r];if(e===ce.call(l,"id")||e===ce.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)),f(vn,HTMLCollection);var bn=/[&\u00A0"]/g,En=/[&\u00A0<>]/g,yn=String.prototype,wn=yn.replace,Tn=yn.toLowerCase;function Nn(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Ln(e){return wn.call(e,bn,Nn)}var Mn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Cn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Sn(e){switch(e.nodeType){case F:for(var t,n=e.attributes,r=De.call(e),l="<"+Tn.call(r),o=0;t=n[o];o++)l+=" "+t.name+'="'+Ln(t.value)+'"';return l+=">",Mn.has(r)?l:l+function(e){for(var t="",n=cn(e),r=0,l=n.length;r<l;r+=1)t+=Sn(n[r]);return t}(e)+"</"+Tn.call(r)+">";case W:var a=e.data,i=e.parentNode;return i instanceof Element&&Cn.has(De.call(i))?a:function(e){return wn.call(e,En,Nn)}(a);case j:return"<!CDATA[[".concat(e.data,"]]>");case U:return"<?".concat(e.target," ").concat(e.data,"?>");case K:return"\x3c!--".concat(e.data,"--\x3e");default:return""}}function On(e){return en(e)||Qn(e)}function An(e,t){var n=Zt(e);if(t===n)return Jn(n);if(t instanceof Element){if(Vt(e)===Vt(t))return t;if(!M(n)&&tn(t)){var r=Zt(t);if(!M(r)&&nn(n,r))return r}}return null}function Hn(){return jn(this).length>0}function _n(){return jn(this)[0]||null}function Rn(){var e=jn(this);return e[e.length-1]||null}function Pn(){return fn(this)}function Dn(){var e=ne.call(this);return M(e)?e:An(this,e)}function $n(){var e=ne.call(this);if(M(e))return null;var t=An(this,e);return t instanceof Element?t:null}function Bn(e){return this.getRootNode()===e?10:Xt(this)!==Xt(e)?35:X.call(this,e)}function In(e){return null!=e&&Xt(this)===Xt(e)&&0!=(X.call(this,e)&I)}function kn(e){var t=q.call(this,!1);if(!e)return t;for(var n=jn(this),r=0,l=n.length;r<l;r+=1)t.appendChild(n[r].cloneNode(!0));return t}function xn(){if(Qn(this)){var e=Zt(this);return gn(M(e)?[]:an(e,cn(this)))}return ae.call(this)}var Fn=$.prototype.getRootNode,Wn=L(Fn)?function(){for(var e,t=this;!M(e=ne.call(t));)t=e;return t}:Fn;a($.prototype,{firstChild:{get:function(){return On(this)?_n.call(this):Z.call(this)},enumerable:!0,configurable:!0},lastChild:{get:function(){return On(this)?Rn.call(this):ee.call(this)},enumerable:!0,configurable:!0},textContent:{get:function(){return Et.ENABLE_NODE_PATCH?dt(this)?te.call(this):Pn.call(this):zt(this)||Qn(this)?Pn.call(this):te.call(this)},set:function(e){oe.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get:function(){if(zt(this))return Dn.call(this);var e=ne.call(this);return!M(e)&&en(e)?Zt(e):e},enumerable:!0,configurable:!0},parentElement:{get:function(){if(zt(this))return $n.call(this);var e=le.call(this);return!M(e)&&en(e)?Zt(e):e},enumerable:!0,configurable:!0},childNodes:{get:function(){return On(this)?xn.call(this):ae.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value:function(){return On(this)?Hn.call(this):J.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value:function(e){return dt(this)?X.call(this,e):Bn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value:function(e){return this===e||(Et.ENABLE_NODE_PATCH?dt(this)?Q.call(this,e):In.call(this,e):null!=e&&(zt(this)||Qn(this)?In.call(this,e):Q.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value:function(e){return Et.ENABLE_NODE_PATCH?C(e)?dt(this)?q.call(this,e):kn.call(this,e):q.call(this,e):zt(this)||Qn(this)?kn.call(this,e):q.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){var t,n;return C(!L(e)&&!!e.composed)?Wn.call(this,e):M(n=Zt(t=this))?Wn.call(t):Jn(n)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(this)}}});var jn=function(e){return e.childNodes};function Un(e,t,n,r){var l=Ve.call(t,n,r),o=[],a=function(e){for(var t,n=[],r=e.getRootNode();!L(r);)n.push(r),r=null===(t=r.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!M(l))for(var i=0;i<l.length;i++){var u=l[i];-1===a.indexOf(u.getRootNode())||en(u)||o.push(u)}return o}s.call(HTMLElement.prototype,"contains")&&i(HTMLElement.prototype,"contains",u($.prototype,"contains")),s.call(HTMLElement.prototype,"parentElement")&&i(HTMLElement.prototype,"parentElement",u($.prototype,"parentElement"));var Kn=new WeakMap,Gn=document.createDocumentFragment;function qn(e){var t=Kn.get(e);if(L(t))throw new TypeError;return t}function Xn(e){return e.$shadowResolver$}function Vn(e,t){e.$shadowResolver$=t}function Yn(e){return qn(e).delegatesFocus}function zn(e){return qn(e).host}function Jn(e){return qn(e).shadowRoot}function Qn(e){return!L(Kn.get(e))}i($.prototype,P,{set:function(e){var t,n;L(e)||(this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,qt(t,Kt,{value:n,configurable:!0}))},get:function(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0}),i(R,"$isNativeShadowRootDefined$",{value:ft});var Zn=0;function er(e,t){if(!L(Kn.get(e)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");var n=t.mode,r=t.delegatesFocus,l=mt(e),o=Gn.call(l),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};Kn.set(o,a),Kn.set(e,a);var i=function(){return o},u=i.nodeKey=Zn++;return qt(e,Gt,{value:u}),Vn(o,i),f(o,lr.prototype),o}var tr={constructor:{writable:!0,configurable:!0,value:lr},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}},nr={activeElement:{enumerable:!0,configurable:!0,get:function(){var e=zn(this),t=mt(e),n=qe.call(t);if(M(n))return n;if(0==(X.call(e,n)&I))return null;for(var r=n;!nn(e,r);)r=le.call(r);return tn(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return qn(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return ir(this,mt(zn(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return Un(this,mt(zn(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 zn(this)}},mode:{configurable:!0,get:function(){return qn(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}},rr=new WeakMap;function lr(){throw new TypeError("Illegal constructor")}function or(e,t){var n,r=[];if(e instanceof Window)n=e;else{if(!(e instanceof $))return r;n=e.getRootNode()}for(var l,o=e;!M(o);)if(r.push(o),o instanceof Element||o instanceof Text){var a=o.assignedSlot;o=M(a)?o.parentNode:a}else o=(o instanceof lr||ht(o))&&(t||o!==n)?o.host:o instanceof $?o.parentNode:null;return l=e instanceof Window?e.document:mt(e),r[r.length-1]===l&&r.push(window),r}
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
@@ -7,4 +7,4 @@
7
7
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
8
  Code distributed by Google as part of the polymer project is also
9
9
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10
- */function or(e,t){if(M(e))return null;for(var n,r,l,o,a=lr(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),!(l instanceof rr)||!L(o)&&o>-1)return n;return null}function ar(e,t,n,r){var l=qe.call(t,n,r);return M(l)?l:or(e,lr(l,!0))}l(er,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return V.call(Yn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return Y.call(Yn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return G.call(Yn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return z.call(Yn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&xt(Yn(e),t,$t(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return nr.set(e,this),wt.apply(Yn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&Ft(Yn(e),t,$t(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Yn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return pn(nn(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=Yn(this);return this===e?0:this.contains(e)?20:X.call(t,e)&I?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Yn(this);return 0!=(X.call(t,e)&I)&&tn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return Wn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=Wn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Wn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(Yn(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 Yn(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=Wn(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==K&&(t+=sn(l))}return t},set:function(e){var t=Yn(this);oe.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!L(e)&&C(e.composed)?Yn(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return vn(p.call(nn(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,an(n=Yn(this),bt(me.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return pn((t=e,on(n=Yn(this),bt(me.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=Wn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Cn(e[n]);return t},set:function(e){var t=Yn(this);He.call(t,e)}}},tr),rr.prototype=o(DocumentFragment.prototype,er),i(rr,Symbol.hasInstance,{value:function(e){return A(e)&&!M(e)&&(ft(e)||c(e)===rr.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return ar(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return jn(this,this,e,t)},i(Document.prototype,"activeElement",{get:function(){var e=Ge.call(this);if(M(e))return e;for(;!L(qt(e));)if(M(e=le.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),i(Document.prototype,"getElementById",{value:function(){var e=Je.apply(this,y.call(arguments));return M(e)?null:L(qt(e))||vt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelector",{value:function(){var e=bt(ze.apply(this,y.call(arguments))),t=g.call(e,(function(e){return L(qt(e))||vt(e)}));return L(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelectorAll",{value:function(){var e=bt(ze.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(qt(e))||vt(e)}));return pn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByClassName",{value:function(){var e=bt(Qe.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(qt(e))||vt(e)}));return vn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagName",{value:function(){var e=bt(Ze.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(qt(e))||vt(e)}));return vn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=bt(et.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(qt(e))||vt(e)}));return vn(t)},writable:!0,enumerable:!0,configurable:!0}),i(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=bt(tt.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(qt(e))||vt(e)}));return pn(t)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:rr,configurable:!0,writable:!0});var ir=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var ur=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function cr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!ir)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!ir.get.call(e)})()&&(HTMLElement.prototype.click=function(){yt.call(this,"click",cr);try{ur.value.call(this)}finally{Tt.call(this,"click",cr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=l(o(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 sr,fr,hr=CustomEvent;function pr(e,t){var n=new hr(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(pr.prototype=hr.prototype,window.CustomEvent=pr,"undefined"!=typeof ClipboardEvent){var gr=l(o(null),{copy:1,cut:1,paste:1});a(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===gr[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&(sr=u(HTMLIFrameElement.prototype,"contentWindow"),fr=sr.get,sr.get=function(){var e,t=fr.call(this);return M(t)||L(qt(this))?t:(e=t,{addEventListener:function(){return e.addEventListener.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},postMessage:function(){return e.postMessage.apply(e,arguments)},removeEventListener:function(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}})},i(HTMLIFrameElement.prototype,"contentWindow",sr));var mr,vr=MutationObserver,br=vr.prototype,dr=br.disconnect,Er=br.observe,yr=br.takeRecords,wr="$$lwcObserverCallbackWrapper$$",Tr=new WeakMap;function Nr(e){return e.$$lwcNodeObservers$$}function Lr(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,i=o(MutationRecord.prototype);return a(i,{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}}),i}function Mr(e,t){for(var n=t;!M(n);){var r=Nr(n);if(!L(r)&&(r[0]===e||-1!==m.call(r,e)))return!0;n=n.parentNode}return!1}function Cr(e,t){return d.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||L(Vt(r)))Mr(t,r)&&b.call(e,n);else if(l.length>0){var a=l[0];if(Mr(t,a)){var i=Nr(r);!i||i[0]!==t&&-1===m.call(i,t)?b.call(e,Lr(n)):b.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if(Xt(r)===Xt(c)&&Mr(t,r))b.call(e,n);else if(u){var s=Nr(u);!s||s[0]!==t&&-1===m.call(s,t)||b.call(e,Lr(n))}}return e}),[])}function Sr(e){var t=function(e){var t=e[wr];return L(t)&&(t=e[wr]=function(t,n){var r=Cr(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new vr(t)}function Or(e,t,n){if(arguments.length>1){var r=y.call(arguments);return r[1]=Ct(r[1]),rt.apply(this,r)}return rt.apply(this,arguments)}function Ar(e,t,n){if(arguments.length>1){var r=y.call(arguments);r[1]=Ct(r[1]),lt.apply(this,r)}lt.apply(this,arguments)}function Hr(){var e=je.call(this);if(!(e instanceof $))return e;var t=gt(e),n=lr(e,this.composed),r=Ue.call(this);if(!(r instanceof $))return M(r)&&L(qt(e))?e:or(t,n);if(r===t||r===t.body)return L(qt(e))?e:or(t,n);var l=r,o=n;Jn(r)&&(1===St.get(this)&&(l=zn(r)));return Jn(e)&&nr.has(this)&&(o=lr(zn(e),this.composed)),or(l,o)}function _r(){var e=je.call(this),t=Ue.call(this);if(!(e instanceof $))return[];if(M(t))return[];var n=e;return Jn(e)&&nr.has(this)&&(n=zn(e)),lr(n,this.composed)}function Rr(e){var t=u(e.prototype,"relatedTarget").get;i(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(M(e))return null;if(!(e instanceof $&&Yt(e)))return e;var n=Ue.call(this);return M(n)&&(n=gt(e)),or(n,lr(e,!0))},enumerable:!0,configurable:!0})}Sr.prototype=vr.prototype,Sr.prototype.disconnect=function(){var e=this;dr.call(this);var t=Tr.get(this);L(t)||(T.call(t,(function(t){var n=t.$$lwcNodeObservers$$;if(!L(n)){var r=m.call(n,e);-1!==r&&w.call(n,r,1)}})),t.length=0)},Sr.prototype.observe=function(e,t){var n,r=Nr(e);if(L(r)&&(n=r=[],e.$$lwcNodeObservers$$=n),-1===m.call(r,this)&&b.call(r,this),e instanceof rr&&(e=e.host),Tr.has(this)){var l=Tr.get(this);-1===m.call(l,e)&&b.call(l,e)}else Tr.set(this,[e]);return Er.call(this,e,t)},Sr.prototype.takeRecords=function(){return Cr(yr.call(this),this)},i(window,"MutationObserver",{value:Sr,configurable:!0,writable:!0}),a(Et,{addEventListener:{value:function(e,t,n){if(Jn(this))return Wt.apply(this,arguments);if(arguments.length<2){var r=y.call(arguments);return r.length>1&&(r[1]=Ct(r[1])),yt.apply(this,r)}var l=Ct(t);return yt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(Jn(this))return jt.apply(this,arguments);var r=y.call(arguments);arguments.length>1&&(r[1]=Ct(r[1])),Tt.apply(this,r),Tt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&a(Window.prototype,{addEventListener:{value:Or,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Ar,enumerable:!0,writable:!0,configurable:!0}}),a(Event.prototype,{target:{get:Hr,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=Ue.call(this);return M(e)?null:1===St.get(this)?zn(e):e},enumerable:!0,configurable:!0},composedPath:{value:_r,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Hr,enumerable:!0,configurable:!0},path:{get:_r,enumerable:!0,configurable:!0}}),Rr(FocusEvent),Rr(MouseEvent);var Pr={childList:!0},Dr=new WeakMap;function $r(e){var t=bt(ae.call(e));return d.call(t,(function(e,t){return t instanceof Element&&en(t)?b.apply(e,$r(t)):b.call(e,t),e}),[])}function Br(){var e=ne.call(this);return!M(e)&&en(e)&&qt(e)!==qt(this)?e:null}function Ir(e,t){var n,r=qt(e);if(L(r))n=e instanceof HTMLBodyElement?p.call(t,(function(t){return L(qt(t))||vt(e)})):y.call(t);else if(Jn(e)){var l=Qt(e);n=M(l)?[]:Vt(e)?rn(e,t):on(l,t)}else n=p.call(t,(function(e){return Xt(e)===r}));return n}function kr(){for(var e=Wn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Cn(e[n]);return t}function xr(){return Cn(this)}function Fr(){var e=Qt(this),t=M(e)?[]:on(e,un(this));return vn(p.call(t,(function(e){return e instanceof Element})))}function Wr(){return this.children.length}function jr(){return this.children[0]||null}function Ur(){var e=this.children;return e.item(e.length-1)||null}function Kr(e,t,n){var r;if(Jn(e)){var l=Qt(e);r=M(l)?[]:Vt(e)?rn(e,t):on(l,t)}else if(Yt(e)){var o=qt(e);if(L(o))if(1===n){var a=Xt(e);r=p.call(t,(function(e){return Xt(e)===a}))}else r=y.call(t);else r=p.call(t,(function(e){return Xt(e)===o}))}else r=e instanceof HTMLBodyElement||1===n?p.call(t,(function(t){return L(qt(t))||vt(e)})):y.call(t);return r}a(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Dr.get(this)||(Dr.set(this,!0),mr||(mr=new it((function(e){var t=[];T.call(e,(function(e){var n=e.target;-1===m.call(t,n)&&(b.call(t,n),wt.call(n,new CustomEvent("slotchange")))}))}))),ut.call(mr,this,Pr))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(Yt(this)){var t=!L(e)&&C(e.flatten),n=t?$r(this):cn(this);return p.call(n,(function(e){return e instanceof Element}))}return _.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){if(Yt(this)){var t=!L(e)&&C(e.flatten);return t?$r(this):cn(this)}return H.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=ce.call(this,"name");return M(e)?"":e},set:function(e){be.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(Yt(this)){var e=Qt(this);return pn(M(e)?[]:on(e,un(this)))}return ae.call(this)},enumerable:!0,configurable:!0}}),a(Text.prototype,{assignedSlot:{get:Br,enumerable:!0,configurable:!0}}),a(Element.prototype,{innerHTML:{get:function(){return dt.ENABLE_ELEMENT_PATCH?vt(this)?Ae.call(this):kr.call(this):Yt(this)||Jn(this)?kr.call(this):Ae.call(this)},set:function(e){He.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return dt.ENABLE_ELEMENT_PATCH?vt(this)?Re.call(this):xr.call(this):Yt(this)||Jn(this)?xr.call(this):Re.call(this)},set:function(e){Pe.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?Zn(this,e):de.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(Jn(this)){var e=zn(this);if("open"===e.mode)return e}return We.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return Sn(this)?Fr.call(this):xe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return Sn(this)?Wr.call(this):Ee.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return Sn(this)?jr.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return Sn(this)?Ur.call(this):we.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Br,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"innerHTML")&&i(HTMLElement.prototype,"innerHTML",u(Element.prototype,"innerHTML")),s.call(HTMLElement.prototype,"outerHTML")&&i(HTMLElement.prototype,"outerHTML",u(Element.prototype,"outerHTML")),s.call(HTMLElement.prototype,"children")&&i(HTMLElement.prototype,"children",u(Element.prototype,"children")),a(Element.prototype,{querySelector:{value:function(){var e=this,t=bt(me.apply(this,y.call(arguments)));if(Jn(this)){var n=Qt(this);return M(n)?null:Vt(this)?ln(this,t):an(n,t)}if(Yt(this)){var r=qt(this);if(L(r)){if(!dt.ENABLE_NODE_LIST_PATCH)return 0===t.length?null:t[0];var l=Xt(this),o=g.call(t,(function(e){return Xt(e)===l}));return L(o)?null:o}var a=g.call(t,(function(e){return Xt(e)===r}));return L(a)?null:a}if(!(dt.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){var i=t[0];return L(i)?null:i}var u=g.call(t,(function(t){return L(qt(t))||vt(e)}));return L(u)?null:u},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){var e=bt(me.apply(this,y.call(arguments)));if(!dt.ENABLE_NODE_LIST_PATCH){var t=Kr(this,e,0);return pn(t)}return pn(Kr(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),a(Element.prototype,{getElementsByClassName:{value:function(){var e=bt(Fe.apply(this,y.call(arguments)));if(!dt.ENABLE_HTML_COLLECTIONS_PATCH)return vn(Ir(this,e));var t=Kr(this,e,1);return vn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){var e=bt(fe.apply(this,y.call(arguments)));if(!dt.ENABLE_HTML_COLLECTIONS_PATCH)return vn(Ir(this,e));var t=Kr(this,e,1);return vn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){var e=bt(he.apply(this,y.call(arguments)));if(!dt.ENABLE_HTML_COLLECTIONS_PATCH)return vn(Ir(this,e));var t=Kr(this,e,1);return vn(t)},writable:!0,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"getElementsByClassName")&&i(HTMLElement.prototype,"getElementsByClassName",u(Element.prototype,"getElementsByClassName"));var Gr="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",qr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Xr(e){return e.filter((function(e){return pe.call(e,"tabindex")?"0"===ce.call(e,"tabindex"):!qr.has(De.call(e))||!pe.call(e,"disabled")}))}var Vr=new WeakMap;function Yr(e){return(!Jn(e)||!Vn(e))&&(ke.call(e,Gr)&&function(e){var t=se.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 zr(){var e=this.getRootNode();if(e!==this){var t=e;if(t.activeElement!==this)for(var n=bt(me.call(this,Gr)),r=!1;!r&&0!==n.length;){var l=n.shift();l.focus.apply(l,arguments);var o=l.getRootNode();r=o.activeElement===l}}else{var a=ge.call(this,Gr);M(a)||a.focus.apply(a,arguments)}}function Jr(e){var t=gt(e),n=Xr(bt(ze.call(t,Gr))),r=Xr(bt(me.call(e,Gr))),l=r[0],o=r[r.length-1],a=m.call(n,e),i=a>-1?a:m.call(n,l),u=0===r.length?i+1:m.call(n,o)+1;return{prev:y.call(n,0,i),inner:r,next:y.call(n,u)}}function Qr(e,t){var n=X.call(e,t);return n&I?0:n&k?1:n&x?2:-1}function Zr(e){e.preventDefault(),e.stopPropagation()}function el(e,t){rt.call(e,"focusin",Zr,!0),rt.call(e,"focusout",Zr,!0),t(),lt.call(e,"focusin",Zr,!0),lt.call(e,"focusout",Zr,!0)}function tl(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(ul(t.getRootNode(),l))return l}return null}(e,n);M(l)?el(r,(function(){t.blur()})):el(r,(function(){l.focus()}))}var nl=!1;function rl(){nl=!0}function ll(){nl=!1}function ol(){return!nl}function al(e){if(!nl){var t=Ue.call(e),n=je.call(e);if(t===n){var r=Ke.call(e);if(!M(r)){var l=Jr(t);if(1===Qr(t,r)){var o=ul.bind(null,t.getRootNode()),a=g.call(l.inner,o);if(L(a))tl(l.next,n,r);else el(mt(a),(function(){a.focus()}))}else t===n&&tl(E.call(l.prev),n,r)}}}}function il(e){if(!nl){var t=Ke.call(e);if(!M(t)){var n=Ue.call(e),r=Jr(n);if(-1===m.call(r.inner,t)){var l=je.call(e),o=Qr(n,t);1===o&&tl(r.next,l,t),2===o&&tl(E.call(r.prev),l,t)}}}}function ul(e,t){if(!Yr(t))return!1;for(var n=gt(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===ce.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function cl(e){Tt.call(e,"focusin",al,!0)}function sl(e){var t=gt(e);Vr.get(t)||(Vr.set(t,!0),yt.call(t,"mousedown",rl,!0),yt.call(t,"mouseup",(function(){setTimeout(ll)}),!0),yt.call(t,"dragstart",ll,!0))}function fl(e){Tt.call(e,"focusin",il,!0)}function hl(e){var t=mt(e);return ot.call(t,e)}function pl(e){var t=mt(e);return at.call(t)}function gl(e){return"visible"===e.visibility&&"none"!==e.display}function ml(e){var t=[];if(function(e){return e.nodeType===F}(e)){var n=e.tagName,r=hl(e);if("OPTION"===n)return[1,Ne.call(e),1];if("TEXTAREA"===n)return[];for(var l=e.childNodes,o=0,a=l.length;o<a;o++)b.apply(t,ml(l[o]));if(!gl(r))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");var i=r.display;"table-cell"===i&&t.push("\t"),"table-row"===i&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==i&&"table-caption"!==i&&"flex"!==i&&"table"!==i||(t.unshift(1),t.push(1))}else(function(e){return e.nodeType===W})(e)&&t.push(function(e){var t=pl(e);if(null===t)return e.textContent||"";var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect();return r.height<=0||r.width<=0?"":(t.removeAllRanges(),t.addRange(n),t.toString()||e.textContent||"")}(e));return t}function vl(e){if(!gl(hl(e)))return sn(e)||"";for(var t=function(e){var t=mt(e),n=pl(e);if(null===n)return null;for(var r=[],l=0;l<n.rangeCount;l++)r.push(n.getRangeAt(l));var o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:r};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],r=e.childNodes,l=0,o=r.length;l<o;l++)b.apply(n,ml(r[l]));!function(e){if(null!==e){var t=e.element,n=e.onselect,r=e.onselectstart,l=e.onselectionchange,o=e.ranges,a=mt(t),i=pl(t);i.removeAllRanges();for(var u=0;u<o.length;u++)i.addRange(o[u]);a.onselect=n,a.onselectstart=r,a.onselectionchange=l}}(t);for(var a="",i=0,u=0,c=n.length;u<c;u++){var s=n[u];if("string"==typeof s){if(i>0){for(var f=0;f<i;f++)a+="\n";i=0}s.length>0&&(a+=s)}else{if(0==a.length)continue;s>i&&(i=s)}}return a}var bl=HTMLElement.prototype,dl=bl.blur,El=bl.focus;function yl(){return Vn(this)&&S(pe.call(this,"tabindex"))?0:Be.call(this)}function wl(e){var t=Vn(this),n=Be.call(this),r=pe.call(this,"tabindex");Ie.call(this,e);var l,o=Be.call(this),a=pe.call(this,"tabindex"),i=n!==o;(r&&(i||S(a))&&(-1===n&&fl(this),0===n&&t&&cl(this)),S(a))||(r&&a&&S(i)||(-1===o&&(sl(l=this),cl(l),yt.call(l,"focusin",il,!0)),0===o&&t&&function(e){sl(e),fl(e),yt.call(e,"focusin",al,!0)}(this)))}function Tl(){if(Vn(this)){var e=(n=gt(t=this),M(r=Ge.call(n))||0!=(X.call(t,r)&I)?r:null);if(!M(e))return void e.blur()}var t,n,r;return dl.call(this)}function Nl(){var e=ol();e&&rl(),Jn(this)&&Vn(this)?zr.call(this):(El.apply(this,arguments),e&&ll())}a(HTMLElement.prototype,{tabIndex:{get:function(){return Jn(this)?yl.call(this):Be.call(this)},set:function(e){return Jn(this)?wl.call(this,e):Ie.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(Jn(this))return Tl.call(this);dl.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Nl.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Ne&&null!==Le&&i(HTMLElement.prototype,"innerText",{get:function(){return dt.ENABLE_INNER_OUTER_TEXT_PATCH?dt.ENABLE_ELEMENT_PATCH?vt(this)?Ne.call(this):vl(this):Yt(this)||Jn(this)?vl(this):Ne.call(this):Ne.call(this)},set:function(e){Le.call(this,e)},enumerable:!0,configurable:!0}),null!==Ce&&null!==Se&&i(HTMLElement.prototype,"outerText",{get:function(){return dt.ENABLE_INNER_OUTER_TEXT_PATCH?dt.ENABLE_ELEMENT_PATCH?vt(this)?Ce.call(this):vl(this):Yt(this)||Jn(this)?vl(this):Ce.call(this):Ce.call(this)},set:function(e){Se.call(this,e)},enumerable:!0,configurable:!0}),i(Element.prototype,D,{set:function(e){var t=this.$$ShadowTokenKey$$;L(t)||t===e||ve.call(this,t),L(e)||be.call(this,e,""),this.$$ShadowTokenKey$$=e},get:function(){return this.$$ShadowTokenKey$$},configurable:!0});var Ll,Ml=function(){},Cl={childList:!0};function Sl(e,t,n){var r=qn(e);if(r!==t&&(Xn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),Jn(e))return;L(r)&&ut.call(Ll,e,Cl);for(var l=ae.call(e),o=0,a=l.length;o<a;o+=1)Sl(l[o],t,n)}}function Ol(e){if(L(Ll)&&(Ll=new it((function(e){T.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=qn(t),o=function(e){return e.$shadowToken$}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];X.call(t,u)&$.DOCUMENT_POSITION_CONTAINED_BY||Sl(u,Ml,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];X.call(t,f)&$.DOCUMENT_POSITION_CONTAINED_BY&&Sl(f,l,o)}}))}))),L(qn(e)))throw new Error("Invalid Element");ut.call(Ll,e,Cl)}i(Element.prototype,"$domManual$",{set:function(e){this.$$DomManualKey$$=e,C(e)&&Ol(this)},get:function(){return this.$$DomManualKey$$},configurable:!0})}));
10
+ */function ar(e,t){if(M(e))return null;for(var n,r,l,o,a=or(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),!(l instanceof lr)||!L(o)&&o>-1)return n;return null}function ir(e,t,n,r){var l=Xe.call(t,n,r);return M(l)?l:ar(e,or(l,!0))}l(tr,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return V.call(zn(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return Y.call(zn(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return G.call(zn(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return z.call(zn(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&Ft(zn(e),t,Bt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return rr.set(e,this),Tt.apply(zn(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){O(n)&&Wt(zn(e),t,Bt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return zn(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return gn(rn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=zn(this);return this===e?0:this.contains(e)?20:X.call(t,e)&I?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=zn(this);return 0!=(X.call(t,e)&I)&&nn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return jn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=jn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return jn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return ie.call(zn(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 zn(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1){var l=e[n];l.nodeType!==K&&(t+=fn(l))}return t},set:function(e){var t=zn(this);oe.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return!L(e)&&C(e.composed)?zn(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return dn(p.call(rn(this),(function(e){return e instanceof Element})))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,un(n=zn(this),bt(me.call(n,t)));var t,n}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return gn((t=e,an(n=zn(this),bt(me.call(n,t)))));var t,n}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Sn(e[n]);return t},set:function(e){var t=zn(this);He.call(t,e)}}},nr),lr.prototype=o(DocumentFragment.prototype,tr),i(lr,Symbol.hasInstance,{value:function(e){return A(e)&&!M(e)&&(ht(e)||c(e)===lr.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return ir(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Un(this,this,e,t)},i(Document.prototype,"activeElement",{get:function(){var e=qe.call(this);if(M(e))return e;for(;!L(Xt(e));)if(M(e=le.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),i(Document.prototype,"getElementById",{value:function(){var e=Qe.apply(this,y.call(arguments));return M(e)?null:L(Xt(e))||dt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelector",{value:function(){var e=bt(Je.apply(this,y.call(arguments))),t=g.call(e,(function(e){return L(Xt(e))||dt(e)}));return L(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"querySelectorAll",{value:function(){var e=bt(Je.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return gn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByClassName",{value:function(){var e=bt(Ze.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return dn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagName",{value:function(){var e=bt(et.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return dn(t)},writable:!0,enumerable:!0,configurable:!0}),i(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=bt(tt.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return dn(t)},writable:!0,enumerable:!0,configurable:!0}),i(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=bt(nt.apply(this,y.call(arguments))),t=p.call(e,(function(e){return L(Xt(e))||dt(e)}));return gn(t)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:lr,configurable:!0,writable:!0});var ur=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var cr=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function sr(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!ur)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",(function(t){return e=t})),t.click(),!ur.get.call(e)})()&&(HTMLElement.prototype.click=function(){wt.call(this,"click",sr);try{cr.value.call(this)}finally{Nt.call(this,"click",sr)}}),!0!==new Event("test",{composed:!0}).composed&&function(){var e=l(o(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 fr,hr,pr=CustomEvent;function gr(e,t){var n=new pr(e,t),r=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:function(){return r},configurable:!0,enumerable:!0}}),n}if(gr.prototype=pr.prototype,window.CustomEvent=gr,"undefined"!=typeof ClipboardEvent){var mr=l(o(null),{copy:1,cut:1,paste:1});a(ClipboardEvent.prototype,{composed:{get:function(){var e=this.type;return 1===mr[e]},configurable:!0,enumerable:!0}})}"undefined"!=typeof HTMLIFrameElement&&(fr=u(HTMLIFrameElement.prototype,"contentWindow"),hr=fr.get,fr.get=function(){var e,t=hr.call(this);return M(t)||L(Xt(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}})},i(HTMLIFrameElement.prototype,"contentWindow",fr));var vr,dr=MutationObserver,br=dr.prototype,Er=br.disconnect,yr=br.observe,wr=br.takeRecords,Tr="$$lwcObserverCallbackWrapper$$",Nr=new WeakMap;function Lr(e){return e.$$lwcNodeObservers$$}function Mr(e){var t=e.addedNodes,n=e.removedNodes,r=e.target,l=e.type,i=o(MutationRecord.prototype);return a(i,{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}}),i}function Cr(e,t){for(var n=t;!M(n);){var r=Lr(n);if(!L(r)&&(r[0]===e||-1!==m.call(r,e)))return!0;n=n.parentNode}return!1}function Sr(e,t){return b.call(e,(function(e,n){var r=n.target,l=n.addedNodes,o=n.removedNodes;if("childList"!==n.type||L(Yt(r)))Cr(t,r)&&d.call(e,n);else if(l.length>0){var a=l[0];if(Cr(t,a)){var i=Lr(r);!i||i[0]!==t&&-1===m.call(i,t)?d.call(e,Mr(n)):d.call(e,n)}}else{var u=r.shadowRoot,c=o[0];if(Vt(r)===Vt(c)&&Cr(t,r))d.call(e,n);else if(u){var s=Lr(u);!s||s[0]!==t&&-1===m.call(s,t)||d.call(e,Mr(n))}}return e}),[])}function Or(e){var t=function(e){var t=e[Tr];return L(t)&&(t=e[Tr]=function(t,n){var r=Sr(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new dr(t)}function Ar(e,t,n){if(arguments.length>1){var r=y.call(arguments);return r[1]=St(r[1]),lt.apply(this,r)}return lt.apply(this,arguments)}function Hr(e,t,n){if(arguments.length>1){var r=y.call(arguments);r[1]=St(r[1]),ot.apply(this,r)}ot.apply(this,arguments)}function _r(){var e=je.call(this);if(!(e instanceof $))return e;var t=mt(e),n=or(e,this.composed),r=Ue.call(this);if(!(r instanceof $))return M(r)&&L(Xt(e))?e:ar(t,n);if(r===t||r===t.body)return L(Xt(e))?e:ar(t,n);var l=r,o=n;Qn(r)&&(1===Ot.get(this)&&(l=Jn(r)));return Qn(e)&&rr.has(this)&&(o=or(Jn(e),this.composed)),ar(l,o)}function Rr(){var e=je.call(this);if(!(e instanceof $))return[];var t,n=Boolean(e.shadowRoot),r=(t=e,Boolean(Kn.get(t)));if(n&&!r)return Ge.call(this);if(M(Ue.call(this)))return[];var l=e;return Qn(e)&&rr.has(this)&&(l=Jn(e)),or(l,this.composed)}function Pr(e){var t=u(e.prototype,"relatedTarget").get;i(e.prototype,"relatedTarget",{get:function(){var e=t.call(this);if(M(e))return null;if(!(e instanceof $&&zt(e)))return e;var n=Ue.call(this);return M(n)&&(n=mt(e)),ar(n,or(e,!0))},enumerable:!0,configurable:!0})}Or.prototype=dr.prototype,Or.prototype.disconnect=function(){var e=this;Er.call(this);var t=Nr.get(this);L(t)||(T.call(t,(function(t){var n=t.$$lwcNodeObservers$$;if(!L(n)){var r=m.call(n,e);-1!==r&&w.call(n,r,1)}})),t.length=0)},Or.prototype.observe=function(e,t){var n,r=Lr(e);if(L(r)&&(n=r=[],e.$$lwcNodeObservers$$=n),-1===m.call(r,this)&&d.call(r,this),e instanceof lr&&(e=e.host),Nr.has(this)){var l=Nr.get(this);-1===m.call(l,e)&&d.call(l,e)}else Nr.set(this,[e]);return yr.call(this,e,t)},Or.prototype.takeRecords=function(){return Sr(wr.call(this),this)},i(window,"MutationObserver",{value:Or,configurable:!0,writable:!0}),a(yt,{addEventListener:{value:function(e,t,n){if(Qn(this))return jt.apply(this,arguments);if(arguments.length<2){var r=y.call(arguments);return r.length>1&&(r[1]=St(r[1])),wt.apply(this,r)}var l=St(t);return wt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(Qn(this))return Ut.apply(this,arguments);var r=y.call(arguments);arguments.length>1&&(r[1]=St(r[1])),Nt.apply(this,r),Nt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&a(Window.prototype,{addEventListener:{value:Ar,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Hr,enumerable:!0,writable:!0,configurable:!0}}),a(Event.prototype,{target:{get:_r,enumerable:!0,configurable:!0},currentTarget:{get:function(){var e=Ue.call(this);return M(e)?null:1===Ot.get(this)?Jn(e):e},enumerable:!0,configurable:!0},composedPath:{value:Rr,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:_r,enumerable:!0,configurable:!0},path:{get:Rr,enumerable:!0,configurable:!0}}),Pr(FocusEvent),Pr(MouseEvent);var Dr={childList:!0},$r=new WeakMap;function Br(e){var t=bt(ae.call(e));return b.call(t,(function(e,t){return t instanceof Element&&tn(t)?d.apply(e,Br(t)):d.call(e,t),e}),[])}function Ir(){var e=ne.call(this);return!M(e)&&tn(e)&&Xt(e)!==Xt(this)?e:null}function kr(e,t){var n,r=Xt(e);if(L(r))n=e instanceof HTMLBodyElement?p.call(t,(function(t){return L(Xt(t))||dt(e)})):y.call(t);else if(Qn(e)){var l=Zt(e);n=M(l)?[]:Yt(e)?ln(e,t):an(l,t)}else n=p.call(t,(function(e){return Vt(e)===r}));return n}function xr(){for(var e=jn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Sn(e[n]);return t}function Fr(){return Sn(this)}function Wr(){var e=Zt(this),t=M(e)?[]:an(e,cn(this));return dn(p.call(t,(function(e){return e instanceof Element})))}function jr(){return this.children.length}function Ur(){return this.children[0]||null}function Kr(){var e=this.children;return e.item(e.length-1)||null}function Gr(e,t,n){var r;if(Qn(e)){var l=Zt(e);r=M(l)?[]:Yt(e)?ln(e,t):an(l,t)}else if(zt(e)){var o=Xt(e);if(L(o))if(1===n){var a=Vt(e);r=p.call(t,(function(e){return Vt(e)===a}))}else r=y.call(t);else r=p.call(t,(function(e){return Vt(e)===o}))}else r=e instanceof HTMLBodyElement||1===n?p.call(t,(function(t){return L(Xt(t))||dt(e)})):y.call(t);return r}a(HTMLSlotElement.prototype,{addEventListener:{value:function(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||$r.get(this)||($r.set(this,!0),vr||(vr=new ut((function(e){var t=[];T.call(e,(function(e){var n=e.target;-1===m.call(t,n)&&(d.call(t,n),Tt.call(n,new CustomEvent("slotchange")))}))}))),ct.call(vr,this,Dr))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value:function(e){if(zt(this)){var t=!L(e)&&C(e.flatten),n=t?Br(this):sn(this);return p.call(n,(function(e){return e instanceof Element}))}return _.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value:function(e){if(zt(this)){var t=!L(e)&&C(e.flatten);return t?Br(this):sn(this)}return H.apply(this,y.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get:function(){var e=ce.call(this,"name");return M(e)?"":e},set:function(e){de.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get:function(){if(zt(this)){var e=Zt(this);return gn(M(e)?[]:an(e,cn(this)))}return ae.call(this)},enumerable:!0,configurable:!0}}),a(Text.prototype,{assignedSlot:{get:Ir,enumerable:!0,configurable:!0}}),a(Element.prototype,{innerHTML:{get:function(){return Et.ENABLE_ELEMENT_PATCH?dt(this)?Ae.call(this):xr.call(this):zt(this)||Qn(this)?xr.call(this):Ae.call(this)},set:function(e){He.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get:function(){return Et.ENABLE_ELEMENT_PATCH?dt(this)?Re.call(this):Fr.call(this):zt(this)||Qn(this)?Fr.call(this):Re.call(this)},set:function(e){Pe.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?er(this,e):be.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(Qn(this)){var e=Jn(this);if("open"===e.mode)return e}return We.call(this)},enumerable:!0,configurable:!0},children:{get:function(){return On(this)?Wr.call(this):xe.call(this)},enumerable:!0,configurable:!0},childElementCount:{get:function(){return On(this)?jr.call(this):Ee.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get:function(){return On(this)?Ur.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get:function(){return On(this)?Kr.call(this):we.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Ir,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"innerHTML")&&i(HTMLElement.prototype,"innerHTML",u(Element.prototype,"innerHTML")),s.call(HTMLElement.prototype,"outerHTML")&&i(HTMLElement.prototype,"outerHTML",u(Element.prototype,"outerHTML")),s.call(HTMLElement.prototype,"children")&&i(HTMLElement.prototype,"children",u(Element.prototype,"children")),a(Element.prototype,{querySelector:{value:function(){var e=this,t=bt(me.apply(this,y.call(arguments)));if(Qn(this)){var n=Zt(this);return M(n)?null:Yt(this)?on(this,t):un(n,t)}if(zt(this)){var r=Xt(this);if(L(r)){if(!Et.ENABLE_NODE_LIST_PATCH)return 0===t.length?null:t[0];var l=Vt(this),o=g.call(t,(function(e){return Vt(e)===l}));return L(o)?null:o}var a=g.call(t,(function(e){return Vt(e)===r}));return L(a)?null:a}if(!(Et.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){var i=t[0];return L(i)?null:i}var u=g.call(t,(function(t){return L(Xt(t))||dt(e)}));return L(u)?null:u},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value:function(){var e=bt(me.apply(this,y.call(arguments)));if(!Et.ENABLE_NODE_LIST_PATCH){var t=Gr(this,e,0);return gn(t)}return gn(Gr(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),a(Element.prototype,{getElementsByClassName:{value:function(){var e=bt(Fe.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return dn(kr(this,e));var t=Gr(this,e,1);return dn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value:function(){var e=bt(fe.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return dn(kr(this,e));var t=Gr(this,e,1);return dn(t)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value:function(){var e=bt(he.apply(this,y.call(arguments)));if(!Et.ENABLE_HTML_COLLECTIONS_PATCH)return dn(kr(this,e));var t=Gr(this,e,1);return dn(t)},writable:!0,enumerable:!0,configurable:!0}}),s.call(HTMLElement.prototype,"getElementsByClassName")&&i(HTMLElement.prototype,"getElementsByClassName",u(Element.prototype,"getElementsByClassName"));var qr="\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",Xr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function Vr(e){return e.filter((function(e){return pe.call(e,"tabindex")?"0"===ce.call(e,"tabindex"):!Xr.has(De.call(e))||!pe.call(e,"disabled")}))}var Yr=new WeakMap;function zr(e){return(!Qn(e)||!Yn(e))&&(ke.call(e,qr)&&function(e){var t=se.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 Jr(){var e=this.getRootNode();if(e!==this){var t=e;if(t.activeElement!==this)for(var n=bt(me.call(this,qr)),r=!1;!r&&0!==n.length;){var l=n.shift();l.focus.apply(l,arguments);var o=l.getRootNode();r=o.activeElement===l}}else{var a=ge.call(this,qr);M(a)||a.focus.apply(a,arguments)}}function Qr(e){var t=mt(e),n=Vr(bt(Je.call(t,qr))),r=Vr(bt(me.call(e,qr))),l=r[0],o=r[r.length-1],a=m.call(n,e),i=a>-1?a:m.call(n,l),u=0===r.length?i+1:m.call(n,o)+1;return{prev:y.call(n,0,i),inner:r,next:y.call(n,u)}}function Zr(e,t){var n=X.call(e,t);return n&I?0:n&k?1:n&x?2:-1}function el(e){e.preventDefault(),e.stopPropagation()}function tl(e,t){lt.call(e,"focusin",el,!0),lt.call(e,"focusout",el,!0),t(),ot.call(e,"focusin",el,!0),ot.call(e,"focusout",el,!0)}function nl(e,t,n){var r=vt(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(cl(t.getRootNode(),l))return l}return null}(e,n);M(l)?tl(r,(function(){t.blur()})):tl(r,(function(){l.focus()}))}var rl=!1;function ll(){rl=!0}function ol(){rl=!1}function al(){return!rl}function il(e){if(!rl){var t=Ue.call(e),n=je.call(e);if(t===n){var r=Ke.call(e);if(!M(r)){var l=Qr(t);if(1===Zr(t,r)){var o=cl.bind(null,t.getRootNode()),a=g.call(l.inner,o);if(L(a))nl(l.next,n,r);else tl(vt(a),(function(){a.focus()}))}else t===n&&nl(E.call(l.prev),n,r)}}}}function ul(e){if(!rl){var t=Ke.call(e);if(!M(t)){var n=Ue.call(e),r=Qr(n);if(-1===m.call(r.inner,t)){var l=je.call(e),o=Zr(n,t);1===o&&nl(r.next,l,t),2===o&&nl(E.call(r.prev),l,t)}}}}function cl(e,t){if(!zr(t))return!1;for(var n=mt(t),r=t.getRootNode();r!==n&&r!==e;){var l=r.host;if("-1"===ce.call(l,"tabindex"))return!1;r=l&&l.getRootNode()}return!0}function sl(e){Nt.call(e,"focusin",il,!0)}function fl(e){var t=mt(e);Yr.get(t)||(Yr.set(t,!0),wt.call(t,"mousedown",ll,!0),wt.call(t,"mouseup",(function(){setTimeout(ol)}),!0),wt.call(t,"dragstart",ol,!0))}function hl(e){Nt.call(e,"focusin",ul,!0)}function pl(e){var t=vt(e);return at.call(t,e)}function gl(e){var t=vt(e);return it.call(t)}function ml(e){return"visible"===e.visibility&&"none"!==e.display}function vl(e){var t=[];if(function(e){return e.nodeType===F}(e)){var n=e.tagName,r=pl(e);if("OPTION"===n)return[1,Ne.call(e),1];if("TEXTAREA"===n)return[];for(var l=e.childNodes,o=0,a=l.length;o<a;o++)d.apply(t,vl(l[o]));if(!ml(r))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");var i=r.display;"table-cell"===i&&t.push("\t"),"table-row"===i&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==i&&"table-caption"!==i&&"flex"!==i&&"table"!==i||(t.unshift(1),t.push(1))}else(function(e){return e.nodeType===W})(e)&&t.push(function(e){var t=gl(e);if(null===t)return e.textContent||"";var n=document.createRange();n.selectNodeContents(e);var r=n.getBoundingClientRect();return r.height<=0||r.width<=0?"":(t.removeAllRanges(),t.addRange(n),t.toString()||e.textContent||"")}(e));return t}function dl(e){if(!ml(pl(e)))return fn(e)||"";for(var t=function(e){var t=vt(e),n=gl(e);if(null===n)return null;for(var r=[],l=0;l<n.rangeCount;l++)r.push(n.getRangeAt(l));var o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:r};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],r=e.childNodes,l=0,o=r.length;l<o;l++)d.apply(n,vl(r[l]));!function(e){if(null!==e){var t=e.element,n=e.onselect,r=e.onselectstart,l=e.onselectionchange,o=e.ranges,a=vt(t),i=gl(t);i.removeAllRanges();for(var u=0;u<o.length;u++)i.addRange(o[u]);a.onselect=n,a.onselectstart=r,a.onselectionchange=l}}(t);for(var a="",i=0,u=0,c=n.length;u<c;u++){var s=n[u];if("string"==typeof s){if(i>0){for(var f=0;f<i;f++)a+="\n";i=0}s.length>0&&(a+=s)}else{if(0==a.length)continue;s>i&&(i=s)}}return a}var bl=HTMLElement.prototype,El=bl.blur,yl=bl.focus;function wl(){return Yn(this)&&S(pe.call(this,"tabindex"))?0:Be.call(this)}function Tl(e){var t=Yn(this),n=Be.call(this),r=pe.call(this,"tabindex");Ie.call(this,e);var l,o=Be.call(this),a=pe.call(this,"tabindex"),i=n!==o;(r&&(i||S(a))&&(-1===n&&hl(this),0===n&&t&&sl(this)),S(a))||(r&&a&&S(i)||(-1===o&&(fl(l=this),sl(l),wt.call(l,"focusin",ul,!0)),0===o&&t&&function(e){fl(e),hl(e),wt.call(e,"focusin",il,!0)}(this)))}function Nl(){if(Yn(this)){var e=(n=mt(t=this),M(r=qe.call(n))||0!=(X.call(t,r)&I)?r:null);if(!M(e))return void e.blur()}var t,n,r;return El.call(this)}function Ll(){var e=al();e&&ll(),Qn(this)&&Yn(this)?Jr.call(this):(yl.apply(this,arguments),e&&ol())}a(HTMLElement.prototype,{tabIndex:{get:function(){return Qn(this)?wl.call(this):Be.call(this)},set:function(e){return Qn(this)?Tl.call(this,e):Ie.call(this,e)},enumerable:!0,configurable:!0},blur:{value:function(){if(Qn(this))return Nl.call(this);El.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value:function(){Ll.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Ne&&null!==Le&&i(HTMLElement.prototype,"innerText",{get:function(){return Et.ENABLE_INNER_OUTER_TEXT_PATCH?Et.ENABLE_ELEMENT_PATCH?dt(this)?Ne.call(this):dl(this):zt(this)||Qn(this)?dl(this):Ne.call(this):Ne.call(this)},set:function(e){Le.call(this,e)},enumerable:!0,configurable:!0}),null!==Ce&&null!==Se&&i(HTMLElement.prototype,"outerText",{get:function(){return Et.ENABLE_INNER_OUTER_TEXT_PATCH?Et.ENABLE_ELEMENT_PATCH?dt(this)?Ce.call(this):dl(this):zt(this)||Qn(this)?dl(this):Ce.call(this):Ce.call(this)},set:function(e){Se.call(this,e)},enumerable:!0,configurable:!0}),i(Element.prototype,D,{set:function(e){var t=this.$$ShadowTokenKey$$;L(t)||t===e||ve.call(this,t),L(e)||de.call(this,e,""),this.$$ShadowTokenKey$$=e},get:function(){return this.$$ShadowTokenKey$$},configurable:!0});var Ml,Cl=function(){},Sl={childList:!0};function Ol(e,t,n){var r=Xn(e);if(r!==t&&(Vn(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),Qn(e))return;L(r)&&ct.call(Ml,e,Sl);for(var l=ae.call(e),o=0,a=l.length;o<a;o+=1)Ol(l[o],t,n)}}function Al(e){if(L(Ml)&&(Ml=new ut((function(e){T.call(e,(function(e){for(var t=e.target,n=e.addedNodes,r=e.removedNodes,l=Xn(t),o=function(e){return e.$shadowToken$}(t),a=0,i=r.length;a<i;a+=1){var u=r[a];X.call(t,u)&$.DOCUMENT_POSITION_CONTAINED_BY||Ol(u,Cl,void 0)}for(var c=0,s=n.length;c<s;c+=1){var f=n[c];X.call(t,f)&$.DOCUMENT_POSITION_CONTAINED_BY&&Ol(f,l,o)}}))}))),L(Xn(e)))throw new Error("Invalid Element");ct.call(Ml,e,Sl)}i(Element.prototype,"$domManual$",{set:function(e){this.$$DomManualKey$$=e,C(e)&&Al(this)},get:function(){return this.$$DomManualKey$$},configurable:!0})}));
@@ -119,7 +119,7 @@
119
119
  var KEY__SHADOW_TOKEN = '$shadowToken$';
120
120
  var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
121
121
  var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
122
- /** version: 2.3.3 */
122
+ /** version: 2.5.0 */
123
123
 
124
124
  /*
125
125
  * Copyright (c) 2018, salesforce.com, inc.
@@ -249,7 +249,13 @@
249
249
 
250
250
  var eventTargetGetter = getOwnPropertyDescriptor(Event.prototype, 'target').get;
251
251
  var eventCurrentTargetGetter = getOwnPropertyDescriptor(Event.prototype, 'currentTarget').get;
252
- var focusEventRelatedTargetGetter = getOwnPropertyDescriptor(FocusEvent.prototype, 'relatedTarget').get;
252
+ var focusEventRelatedTargetGetter = getOwnPropertyDescriptor(FocusEvent.prototype, 'relatedTarget').get; // IE does not implement composedPath() but that's ok because we only use this instead of our
253
+ // composedPath() polyfill when dealing with native shadow DOM components in mixed mode. Defaulting
254
+ // to a NOOP just to be safe, even though this is almost guaranteed to be defined such a scenario.
255
+
256
+ var composedPath = hasOwnProperty.call(Event.prototype, 'composedPath') ? Event.prototype.composedPath : function () {
257
+ return [];
258
+ };
253
259
  /*
254
260
  * Copyright (c) 2018, salesforce.com, inc.
255
261
  * All rights reserved.
@@ -436,13 +442,6 @@
436
442
  * Copyright (C) 2018 salesforce.com, inc.
437
443
  */
438
444
 
439
- /*
440
- * Copyright (c) 2018, salesforce.com, inc.
441
- * All rights reserved.
442
- * SPDX-License-Identifier: MIT
443
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
444
- */
445
-
446
445
 
447
446
  if (!_globalThis.lwcRuntimeFlags) {
448
447
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', {
@@ -450,9 +449,8 @@
450
449
  });
451
450
  }
452
451
 
453
- var runtimeFlags = _globalThis.lwcRuntimeFlags; // This function is not supported for use within components and is meant for
454
-
455
- /** version: 2.3.3 */
452
+ var runtimeFlags = _globalThis.lwcRuntimeFlags;
453
+ /** version: 2.5.0 */
456
454
 
457
455
  /*
458
456
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1985,6 +1983,10 @@
1985
1983
  var _document = document,
1986
1984
  createDocumentFragment = _document.createDocumentFragment;
1987
1985
 
1986
+ function hasInternalSlot(root) {
1987
+ return Boolean(InternalSlot.get(root));
1988
+ }
1989
+
1988
1990
  function getInternalSlot(root) {
1989
1991
  var record = InternalSlot.get(root);
1990
1992
 
@@ -3659,14 +3661,27 @@
3659
3661
  }
3660
3662
 
3661
3663
  function patchedComposedPathValue() {
3662
- var originalTarget = eventTargetGetter.call(this);
3663
- var originalCurrentTarget = eventCurrentTargetGetter.call(this); // Account for events with targets that are not instances of Node (e.g., when a readystatechange
3664
+ var originalTarget = eventTargetGetter.call(this); // Account for events with targets that are not instances of Node (e.g., when a readystatechange
3664
3665
  // handler is listening on an instance of XMLHttpRequest).
3665
3666
 
3666
3667
  if (!(originalTarget instanceof _Node)) {
3667
3668
  return [];
3668
- } // If the event has completed propagation, the composedPath should be an empty array.
3669
+ } // If the original target is inside a native shadow root, then just call the native
3670
+ // composePath() method. The event is already retargeted and this causes our composedPath()
3671
+ // polyfill to compute the wrong value. This is only an issue when you have a native web
3672
+ // component inside an LWC component (see test in same commit) but this scenario is unlikely
3673
+ // because we don't yet support that. Workaround specifically for W-9846457. Mixed mode solution
3674
+ // will likely be more involved.
3675
+
3676
+
3677
+ var hasShadowRoot = Boolean(originalTarget.shadowRoot);
3678
+ var hasSyntheticShadowRootAttached = hasInternalSlot(originalTarget);
3679
+
3680
+ if (hasShadowRoot && !hasSyntheticShadowRootAttached) {
3681
+ return composedPath.call(this);
3682
+ }
3669
3683
 
3684
+ var originalCurrentTarget = eventCurrentTargetGetter.call(this); // If the event has completed propagation, the composedPath should be an empty array.
3670
3685
 
3671
3686
  if (isNull(originalCurrentTarget)) {
3672
3687
  return [];
@@ -5416,6 +5431,6 @@
5416
5431
  },
5417
5432
  configurable: true
5418
5433
  });
5419
- /** version: 2.3.3 */
5434
+ /** version: 2.5.0 */
5420
5435
 
5421
5436
  })));
@@ -8,7 +8,7 @@
8
8
  function isUndefined(obj) {
9
9
  return obj === undefined;
10
10
  }
11
- /** version: 2.3.3 */
11
+ /** version: 2.5.0 */
12
12
 
13
13
  /*
14
14
  * Copyright (c) 2018, salesforce.com, inc.
@@ -227,6 +227,6 @@ class LegacyWireAdapterBridge {
227
227
  }
228
228
 
229
229
  }
230
- /** version: 2.3.3 */
230
+ /** version: 2.5.0 */
231
231
 
232
232
  export { ValueChangedEvent, register, registerWireService };
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
11
11
  function isUndefined(obj) {
12
12
  return obj === undefined;
13
13
  }
14
- /** version: 2.3.3 */
14
+ /** version: 2.5.0 */
15
15
 
16
16
  /*
17
17
  * Copyright (c) 2018, salesforce.com, inc.
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
230
230
  }
231
231
 
232
232
  }
233
- /** version: 2.3.3 */
233
+ /** version: 2.5.0 */
234
234
 
235
235
  exports.ValueChangedEvent = ValueChangedEvent;
236
236
  exports.register = register;
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
11
11
  function isUndefined(obj) {
12
12
  return obj === undefined;
13
13
  }
14
- /** version: 2.3.3 */
14
+ /** version: 2.5.0 */
15
15
 
16
16
  /*
17
17
  * Copyright (c) 2018, salesforce.com, inc.
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
230
230
  }
231
231
 
232
232
  }
233
- /** version: 2.3.3 */
233
+ /** version: 2.5.0 */
234
234
 
235
235
  exports.ValueChangedEvent = ValueChangedEvent;
236
236
  exports.register = register;
@@ -13,7 +13,7 @@ var WireService = (function (exports) {
13
13
 
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
15
15
 
16
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
16
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
17
17
 
18
18
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
19
19
 
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.3.3 */
36
+ /** version: 2.5.0 */
37
37
 
38
38
  /*
39
39
  * Copyright (c) 2018, salesforce.com, inc.
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
280
280
 
281
281
  return LegacyWireAdapterBridge;
282
282
  }();
283
- /** version: 2.3.3 */
283
+ /** version: 2.5.0 */
284
284
 
285
285
  exports.ValueChangedEvent = ValueChangedEvent;
286
286
  exports.register = register;
@@ -1 +1 @@
1
- var WireService=function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function o(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t){return void 0===t}var s=function t(e){a(this,t),this.type="ValueChangedEvent",this.value=e},f=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var y=Array.prototype,d=y.forEach,h=y.splice,v=y.indexOf,b="connect",g="disconnect",m="config";function w(t,e){var n=v.call(t,e);n>-1&&h.call(t,n,1)}var E=function(){function t(e){var n=this;a(this,t),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=e,this.wiredElementHost=e.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=e.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(t,e){switch(t){case b:n.connecting.push(e);break;case g:n.disconnecting.push(e);break;case m:n.configuring.push(e),void 0!==n.currentConfig&&e.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(t,"."))}},removeEventListener:function(t,e){switch(t){case b:w(n.connecting,e);break;case g:w(n.disconnecting,e);break;case m:w(n.configuring,e);break;default:throw new Error("Invalid event type ".concat(t,"."))}},dispatchEvent:function(t){if(!(t instanceof s)){if("wirecontextevent"===t.type)return n.wiredElementHost.dispatchEvent(t);throw new Error("Invalid event type ".concat(t.type,"."))}var e=t.value;return n.callback(e),!1}}}var e,r,i;return e=t,(r=[{key:"update",value:function(t){var e,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(t){return 0===Object.keys(t).length}(t)||function(t,e){return 0===e.length||e.some((function(e){return!u(t[e])}))}(t,this.dynamicParamsNames)))&&(u(this.currentConfig)||(e=t,n=this.currentConfig,this.dynamicParamsNames.some((function(t){return e[t]!==n[t]}))))&&(this.currentConfig=t,d.call(this.configuring,(function(e){e.call(void 0,t)})))}},{key:"connect",value:function(){d.call(this.connecting,(function(t){return t.call(void 0)}))}},{key:"disconnect",value:function(){d.call(this.disconnecting,(function(t){return t.call(void 0)}))}}])&&n(e.prototype,r),i&&n(e,i),t}();return t.ValueChangedEvent=s,t.register=function(t,e){if(null==t||!p(t))throw new TypeError("adapter id must be extensible");if("function"!=typeof e)throw new TypeError("adapter factory must be a callable");if("adapter"in t)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(o,t);var n=i(o);function o(t){var r;return a(this,o),r=n.call(this,t),e(r.eventTarget),r}return o}(E);f(n),f(n.prototype),l(t,"adapter",{writable:!1,configurable:!1,value:n})},t.registerWireService=function(){},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
1
+ var WireService=function(e){"use strict";function t(e){return(t="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})(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var y=Array.prototype,d=y.forEach,h=y.splice,v=y.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,d.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){d.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){d.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();return e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
@@ -13,7 +13,7 @@ var WireService = (function (exports) {
13
13
 
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
15
15
 
16
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
16
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
17
17
 
18
18
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
19
19
 
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.3.3 */
36
+ /** version: 2.5.0 */
37
37
 
38
38
  /*
39
39
  * Copyright (c) 2018, salesforce.com, inc.
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
280
280
 
281
281
  return LegacyWireAdapterBridge;
282
282
  }();
283
- /** version: 2.3.3 */
283
+ /** version: 2.5.0 */
284
284
 
285
285
  exports.ValueChangedEvent = ValueChangedEvent;
286
286
  exports.register = register;
@@ -14,7 +14,7 @@
14
14
  function isUndefined(obj) {
15
15
  return obj === undefined;
16
16
  }
17
- /** version: 2.3.3 */
17
+ /** version: 2.5.0 */
18
18
 
19
19
  /*
20
20
  * Copyright (c) 2018, salesforce.com, inc.
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  }
236
- /** version: 2.3.3 */
236
+ /** version: 2.5.0 */
237
237
 
238
238
  exports.ValueChangedEvent = ValueChangedEvent;
239
239
  exports.register = register;
@@ -14,7 +14,7 @@
14
14
  function isUndefined(obj) {
15
15
  return obj === undefined;
16
16
  }
17
- /** version: 2.3.3 */
17
+ /** version: 2.5.0 */
18
18
 
19
19
  /*
20
20
  * Copyright (c) 2018, salesforce.com, inc.
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  }
236
- /** version: 2.3.3 */
236
+ /** version: 2.5.0 */
237
237
 
238
238
  exports.ValueChangedEvent = ValueChangedEvent;
239
239
  exports.register = register;
@@ -16,7 +16,7 @@
16
16
 
17
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
18
18
 
19
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
19
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
20
 
21
21
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
22
 
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.3.3 */
39
+ /** version: 2.5.0 */
40
40
 
41
41
  /*
42
42
  * Copyright (c) 2018, salesforce.com, inc.
@@ -283,7 +283,7 @@
283
283
 
284
284
  return LegacyWireAdapterBridge;
285
285
  }();
286
- /** version: 2.3.3 */
286
+ /** version: 2.5.0 */
287
287
 
288
288
  exports.ValueChangedEvent = ValueChangedEvent;
289
289
  exports.register = register;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return(t="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})(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var d=Array.prototype,y=d.forEach,h=d.splice,v=d.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,y.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){y.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){y.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return(t="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})(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var d=Array.prototype,y=d.forEach,h=d.splice,v=d.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,y.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){y.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){y.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -16,7 +16,7 @@
16
16
 
17
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
18
18
 
19
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
19
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
20
 
21
21
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
22
 
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.3.3 */
39
+ /** version: 2.5.0 */
40
40
 
41
41
  /*
42
42
  * Copyright (c) 2018, salesforce.com, inc.
@@ -283,7 +283,7 @@
283
283
 
284
284
  return LegacyWireAdapterBridge;
285
285
  }();
286
- /** version: 2.3.3 */
286
+ /** version: 2.5.0 */
287
287
 
288
288
  exports.ValueChangedEvent = ValueChangedEvent;
289
289
  exports.register = register;