lwc 2.37.0 → 2.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine-dom/esm/es2017/engine-dom.js +2228 -2519
- package/dist/engine-dom/iife/es2017/engine-dom.js +8217 -8508
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +6603 -6857
- package/dist/engine-dom/iife/es5/engine-dom.js +8142 -8179
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +6730 -6721
- package/dist/engine-dom/umd/es2017/engine-dom.js +8218 -8509
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +6604 -6858
- package/dist/engine-dom/umd/es5/engine-dom.js +8143 -8180
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +6731 -6722
- package/dist/engine-server/commonjs/es2017/engine-server.js +1966 -2235
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +1966 -2235
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +211 -233
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +4598 -4620
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +4422 -4423
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +4328 -4352
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +4170 -4172
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +4599 -4621
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +4423 -4424
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +4329 -4353
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +4171 -4173
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getPrototypeOf:i,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:p}=Object,{concat:h,copyWithin:g,fill:m,filter:b,find:d,indexOf:y,join:E,map:w,pop:v,push:T,reduce:N,reverse:M,shift:L,slice:S,some:C,sort:H,splice:O,unshift:D,forEach:R}=Array.prototype,{charCodeAt:P,replace:I,split:A,slice:$,toLowerCase:B}=String.prototype;function _(e){return void 0===e}function x(e){return null===e}function F(e){return!0===e}function k(e){return!1===e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e}const G="object"==typeof globalThis?globalThis:window,j="$shadowResolver$",K="$$ShadowResolverKey$$",q="$shadowStaticNodeKey$",Y="$shadowToken$",X="$$ShadowTokenKey$$",V="$nativeGetElementById$",z="$nativeQuerySelectorAll$",Q=Node,J=Q.prototype,{DOCUMENT_POSITION_CONTAINED_BY:Z,DOCUMENT_POSITION_CONTAINS:ee,DOCUMENT_POSITION_PRECEDING:te,DOCUMENT_POSITION_FOLLOWING:ne,ELEMENT_NODE:le,TEXT_NODE:oe,CDATA_SECTION_NODE:re,PROCESSING_INSTRUCTION_NODE:ae,COMMENT_NODE:ie,DOCUMENT_FRAGMENT_NODE:ce}=Q,{appendChild:ue,cloneNode:se,compareDocumentPosition:fe,insertBefore:pe,removeChild:he,replaceChild:ge,hasChildNodes:me}=J,{contains:be}=HTMLElement.prototype,de=r(J,"firstChild").get,ye=r(J,"lastChild").get,Ee=r(J,"textContent").get,we=r(J,"parentNode").get,ve=r(J,"ownerDocument").get,Te=c.call(J,"parentElement")?r(J,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,Ne=r(J,"textContent").set,Me=c.call(J,"childNodes")?r(J,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,Le=c.call(J,"isConnected")?r(J,"isConnected").get:function(){const e=ve.call(this);return null===e||0!=(fe.call(e,this)&Z)},{getAttribute:Se,getBoundingClientRect:Ce,getElementsByTagName:He,getElementsByTagNameNS:Oe,hasAttribute:De,querySelector:Re,querySelectorAll:Pe,removeAttribute:Ie,setAttribute:Ae}=Element.prototype,$e=c.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Be=r(Element.prototype,"childElementCount").get,_e=r(Element.prototype,"firstElementChild").get,xe=r(Element.prototype,"lastElementChild").get,Fe=r(HTMLElement.prototype,"innerText"),ke=Fe?Fe.get:null,We=Fe?Fe.set:null,Ue=r(HTMLElement.prototype,"outerText"),Ge=Ue?Ue.get:null,je=Ue?Ue.set:null,Ke=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),qe=Ke.get,Ye=Ke.set,Xe=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Ve=Xe.get,ze=Xe.set,Qe=r(Element.prototype,"tagName").get,Je=r(HTMLElement.prototype,"tabIndex"),Ze=Je.get,et=Je.set,tt=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,nt=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:lt}=HTMLElement.prototype,ot=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null,rt=c.call(Element.prototype,"assignedSlot")?r(Element.prototype,"assignedSlot").get:()=>null;let at,it;"undefined"!=typeof HTMLSlotElement?(at=HTMLSlotElement.prototype.assignedNodes,it=HTMLSlotElement.prototype.assignedElements):(at=()=>{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")},it=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const ct=r(Event.prototype,"target").get,ut=r(Event.prototype,"currentTarget").get,st=r(FocusEvent.prototype,"relatedTarget").get,ft=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],pt=r(Document.prototype,"activeElement").get,ht=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,gt=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,mt=r(Document.prototype,"defaultView").get,{createComment:bt,querySelectorAll:dt,getElementById:yt,getElementsByClassName:Et,getElementsByTagName:wt,getElementsByTagNameNS:vt}=Document.prototype,{getElementsByName:Tt}=HTMLDocument.prototype,{addEventListener:Nt,removeEventListener:Mt,getComputedStyle:Lt,getSelection:St}=window,Ct=MutationObserver,Ht=Ct.prototype.observe;let Ot=null;"undefined"!=typeof ShadowRoot&&(Ot=ShadowRoot);const Dt=!x(Ot),Rt=x(Ot)?()=>!1:e=>e instanceof Ot;const{createElement:Pt}=Document.prototype;function It(e){const t=ve.call(e);return null===t?e:t}function At(e){const t=It(e),n=mt.call(t);if(null===n)throw new TypeError;return n}let $t;function Bt(e){if(_($t)){const t=It(e);$t=t.body&&"temporary-bypass"===Se.call(t.body,"data-global-patching-bypass")}return F($t)}function _t(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=Pt.apply(this,S.call(arguments));return 4===t.length&&115===P.call(t,0)&&108===P.call(t,1)&&111===P.call(t,2)&&116===P.call(t,3)&&p(l,e.prototype),l}})}();const xt="undefined"!=typeof EventTarget?EventTarget.prototype:Q.prototype,{addEventListener:Ft,dispatchEvent:kt,removeEventListener:Wt}=xt;G.lwcRuntimeFlags||Object.defineProperty(G,"lwcRuntimeFlags",{value:t(null)});const Ut=G.lwcRuntimeFlags,Gt="$$HostElementKey$$",jt="$$ShadowedNodeKey$$";function Kt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function qt(e){return e[Gt]}function Yt(e){let t,n=e;for(;!x(n);){if(t=qt(n),!_(t))return t;if(n=we.call(n),Ut.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!x(n)&&Zt(n))return}}function Xt(e){return e[jt]}function Vt(e){return!_(qt(e))}function zt(e){let t=Te.call(e);for(;!x(t)&&en(t);)e=t,t=Te.call(e);return e}function Qt(e,t){const n=Xt(e);let l=t instanceof Element?t:Te.call(t);for(;!x(l)&&l!==e;){const t=Yt(l),o=Te.call(l);if(t===n)return en(l);if(o===e)return!1;if(x(o)||Yt(o)===t)l=o;else{if(!en(o))return!1;if(l=Jt(zt(o)),!x(l)){if(l===e)return!0;if(Yt(l)===n)return!0}}}return!1}function Jt(e){if(!(e instanceof Q))return null;const t=Yt(e);if(_(t))return null;let n=e;for(;!x(n)&&Xt(n)!==t;)n=we.call(n);return x(n)?null:n}function Zt(e){return en(e)&&Vt(e)}function en(e){return e instanceof HTMLSlotElement}function tn(e,t){const n=Yt(t);if(_(n)){if(Ut.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const e=we.call(t);if(!x(e)&&Zt(e))return!1}return!0}return Xt(e)===n}function nn(e){const t=pl(e);return rn(t,_t(Me.call(t)))}function ln(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!tn(e,o)&&Qt(e,o)&&T.call(n,o)}return n}function on(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!tn(e,l)&&Qt(e,l))return l}return null}function rn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];tn(e,o)&&T.call(n,o)}return n}function an(e,t){for(let n=0,l=t.length;n<l;n+=1)if(tn(e,t[n]))return t[n];return null}function cn(e){if(!gl(e)&&!en(e)){return _t(Me.call(e))}if(gl(e)){const t=_t(Pe.call(e,"slot")),n=ul(hl(e));return N.call(t,((e,t)=>(n===ul(t)&&T.apply(e,un(t)),e)),[])}{const t=_t(Me.call(e)),n=ul(e);return b.call(t,(e=>n===ul(e)))}}function un(e){const t=Jt(e);if(x(t))return[];const n=_t(Me.call(e));return b.call(n,(e=>!Vt(e)||!tn(t,e)))}const sn=/[&\u00A0"]/g,fn=/[&\u00A0<>]/g,{replace:pn,toLowerCase:hn}=String.prototype;function gn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function mn(e){return pn.call(e,sn,gn)}const bn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),dn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function yn(e){switch(e.nodeType){case le:{const{attributes:t}=e,n=Qe.call(e);let l="<"+hn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+mn(e.value)+'"';return l+=">",bn.has(n)?l:l+function(e){let t="";const n=cn(e);for(let e=0,l=n.length;e<l;e+=1)t+=yn(n[e]);return t}(e)+"</"+hn.call(n)+">"}case oe:{const{data:n,parentNode:l}=e;return l instanceof Element&&dn.has(Qe.call(l))?n:(t=n,pn.call(t,fn,gn))}case re:return`<!CDATA[[${e.data}]]>`;case ae:return`<?${e.target} ${e.data}?>`;case ie:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function En(e){if(e.nodeType===le){const t=cn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==ie&&(n+=En(l))}return n}return e.nodeValue}const wn=new WeakMap;function vn(){throw new TypeError("Illegal constructor")}function Tn(e){const n=t(vn.prototype);return wn.set(n,e),R.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}vn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:vn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return wn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){R.call(wn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(wn.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(wn.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return wn.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=wn.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),p(vn,NodeList);const Nn=(e,t)=>{let n;for(;!_(n=e.host);){const l=n.getRootNode();if(l===t)return n;e=l}};function Mn(e,t,n,l){const o=gt.call(t,n,l),r=[],a=function(e){var t;const n=[];let l=e.getRootNode();for(;!_(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!x(o))for(let e=0;e<o.length;e++){const t=o[e];if(Zt(t))continue;const n=t.getRootNode();if(-1!==y.call(a,n)){T.call(r,t);continue}const l=Nn(n,a[0]);_(l)||-1!==y.call(o,l)||-1!==y.call(r,l)||T.call(r,l)}return r}const Ln=new WeakMap;function Sn(){throw new TypeError("Illegal constructor")}function Cn(e){const n=t(Sn.prototype);return Ln.set(n,e),R.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Hn(e){return Zt(e)||gl(e)}function On(e,t){const n=Jt(e);if(t===n)return hl(n);if(t instanceof Element){if(Yt(e)===Yt(t))return t;if(!x(n)&&en(t)){const e=Jt(t);if(!x(e)&&tn(n,e))return e}}return null}function Dn(){return Un(this).length>0}function Rn(){return Un(this)[0]||null}function Pn(){const e=Un(this);return e[e.length-1]||null}function In(){return En(this)}function An(){const e=we.call(this);return x(e)?e:On(this,e)}function $n(){const e=we.call(this);if(x(e))return null;const t=On(this,e);return t instanceof Element?t:null}function Bn(e){return this===e?0:this.getRootNode()===e?10:qt(this)!==qt(e)?35:fe.call(this,e)}function _n(e){return null!=e&&qt(this)===qt(e)&&0!=(fe.call(this,e)&Z)}function xn(e){const t=se.call(this,!1);if(!e)return t;const n=Un(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Fn(){if(gl(this)){const e=Jt(this);return Tn(x(e)?[]:rn(e,cn(this)))}return Me.call(this)}Sn.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Sn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Ln.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=Ln.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===Se.call(n,"id")||e===Se.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),p(Sn,HTMLCollection);const kn=Q.prototype.getRootNode,Wn=_(kn)?function(){let e,t=this;for(;!x(e=we.call(t));)t=e;return t}:kn;n(Q.prototype,{firstChild:{get(){return Hn(this)?Rn.call(this):de.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Hn(this)?Pn.call(this):ye.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Vt(this)||gl(this)?In.call(this):Ee.call(this)},set:function(e){Ne.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Vt(this))return An.call(this);const e=we.call(this);return!x(e)&&Zt(e)?Jt(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Vt(this))return $n.call(this);const e=Te.call(this);return!x(e)&&Zt(e)?Jt(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Hn(this)?Fn.call(this):Me.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Hn(this)?Dn.call(this):me.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return Bt(this)?fe.call(this,e):Bn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||null!=e&&(Vt(this)||gl(this)?_n.call(this,e):be.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Vt(this)||gl(this)?xn.call(this,e):se.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return F(!_(e)&&!!e.composed)?Wn.call(this,e):function(e){const t=Jt(e);return x(t)?Wn.call(e):hl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return Le.call(this)}}});const Un=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(Q.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(Q.prototype,"parentElement"));const Gn=new WeakMap,jn=new WeakMap;function Kn(e,t,n){if(t===n)return!0;let l=jn.get(e);return _(l)&&(l=e.composedPath(),jn.set(e,l)),l.includes(n)}function qn(e){if(!function(e){return W(e)||U(e)&&!x(e)&&W(e.handleEvent)}(e))return e;let t=Gn.get(e);return _(t)&&(t=function(t){const n=ut.call(t);if(Kn(t,zn(t),n))return W(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Gn.set(e,t)),t}const Yn=new WeakMap,Xn=new WeakMap;function Vn(e){let n=Xn.get(e);return _(n)&&(n=t(null),Xn.set(e,n)),n}function zn(e){var t;return null!==(t=wl.get(e))&&void 0!==t?t:ct.call(e)}const Qn=new WeakMap;function Jn(e){if(!W(e))throw new TypeError;let t=Qn.get(e);return _(t)&&(t=function(t){let n=ut.call(t);Rt(n)||(n=hl(n));Kn(t,zn(t),n)&&e.call(n,t)},t.placement=1,Qn.set(e,t)),t}const Zn=new WeakMap;function el(e){if(!W(e))throw new TypeError;let t=Zn.get(e);return _(t)&&(t=function(t){const n=ut.call(t);Kn(t,zn(t),n)&&e.call(n,t)},t.placement=0,Zn.set(e,t)),t}function tl(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:a}=e,i=Vn(ut.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=S.call(i);function u(n){R.call(c,(l=>{k(t)&&l.placement===n&&-1!==y.call(i,l)&&l.call(void 0,e)}))}Yn.set(e,1),u(1),k(t)&&k(n)&&(Yn.set(e,0),u(0)),Yn.set(e,2)}function nl(e,t,n){const l=Vn(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===y.call(o,n)&&(0===o.length&&Ft.call(e,t,tl),T.call(o,n))}function ll(e,t,n){let l,o;_(o=Vn(e)[t])||-1===(l=y.call(o,n))||(O.call(o,l,1),0===o.length&&Wt.call(e,t,tl))}function ol(e,t,n){if(W(t)){nl(this,e,el(t))}}function rl(e,t,n){if(W(t)){ll(this,e,el(t))}}const al=new WeakMap,{createDocumentFragment:il}=document;function cl(e){const t=al.get(e);if(_(t))throw new TypeError;return t}function ul(e){return e[j]}function sl(e,t){e[j]=t}function fl(e){return cl(e).delegatesFocus}function pl(e){return cl(e).host}function hl(e){return cl(e).shadowRoot}function gl(e){const t=al.get(e);return!_(t)&&e===t.host}function ml(e){const t=al.get(e);return!_(t)&&e===t.shadowRoot}l(Q.prototype,j,{set(e){var t,n;_(e)||(this[K]=e,t=this,n=e.nodeKey,Kt(t,Gt,{value:n,configurable:!0}))},get(){return this[K]},configurable:!0,enumerable:!0}),l(G,"$isNativeShadowRootDefined$",{value:Dt}),_(G[V])&&l(G,V,{value:yt}),_(G[z])&&l(G,z,{value:dt});let bl=0;function dl(e,t){if(al.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:l}=t,o=It(e),r=il.call(o),a={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};al.set(r,a),al.set(e,a);const i=()=>r,c=i.nodeKey=bl++;return Kt(e,jt,{value:c}),sl(r,i),p(r,Tl.prototype),r}const yl={constructor:{writable:!0,configurable:!0,value:Tl},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},El={activeElement:{enumerable:!0,configurable:!0,get(){const e=pl(this),t=It(e),n=pt.call(t);if(x(n))return n;if(0==(fe.call(e,n)&Z))return null;let l=n;for(;!tn(e,l);)l=Te.call(l);return en(l)?null:l}},delegatesFocus:{configurable:!0,get(){return cl(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Ll(this,It(pl(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Mn(this,It(pl(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return pl(this)}},mode:{configurable:!0,get(){return cl(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},wl=new WeakMap,vl={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return pe.call(pl(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return he.call(pl(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ue.call(pl(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ge.call(pl(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&nl(pl(e),t,Jn(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return wl.set(e,this),kt.apply(pl(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&ll(pl(e),t,Jn(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return pl(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return Tn(nn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=pl(this);return this===e?0:this.contains(e)?20:fe.call(t,e)&Z?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=pl(this);return 0!=(fe.call(t,e)&Z)&&tn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Un(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Un(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Un(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return Le.call(pl(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return pl(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Un(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==ie&&(t+=En(l))}return t},set(e){const t=pl(this);Ne.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!_(e)&&F(e.composed)?pl(this).getRootNode(e):this}}};function Tl(){throw new TypeError("Illegal constructor")}function Nl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof Q))return n;l=e.getRootNode()}let o,r=e;for(;!x(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=x(e)?r.parentNode:e}else r=!ml(r)&&!Rt(r)||!t&&r===l?r instanceof Q?r.parentNode:null:r.host;return o=e instanceof Window?e.document:It(e),n[n.length-1]===o&&n.push(window),n}
|
|
1
|
+
!function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getPrototypeOf:i,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:p}=Object,{concat:h,copyWithin:g,fill:m,filter:b,find:d,indexOf:y,join:E,map:w,pop:v,push:T,reduce:N,reverse:M,shift:L,slice:S,some:C,sort:H,splice:O,unshift:R,forEach:D}=Array.prototype,{charCodeAt:P,replace:I,split:A,slice:$,toLowerCase:B}=String.prototype;function _(e){return void 0===e}function x(e){return null===e}function F(e){return!0===e}function k(e){return!1===e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e}const G="object"==typeof globalThis?globalThis:window,j="$shadowResolver$",K="$$ShadowResolverKey$$",q="$shadowStaticNodeKey$",Y="$shadowToken$",X="$$ShadowTokenKey$$",V="$$lwc-synthetic-mode",z="$nativeGetElementById$",Q="$nativeQuerySelectorAll$";G.lwcRuntimeFlags||Object.defineProperty(G,"lwcRuntimeFlags",{value:t(null)});const J=Node,Z=J.prototype,{DOCUMENT_POSITION_CONTAINED_BY:ee,DOCUMENT_POSITION_CONTAINS:te,DOCUMENT_POSITION_PRECEDING:ne,DOCUMENT_POSITION_FOLLOWING:le,ELEMENT_NODE:oe,TEXT_NODE:re,CDATA_SECTION_NODE:ae,PROCESSING_INSTRUCTION_NODE:ie,COMMENT_NODE:ce,DOCUMENT_FRAGMENT_NODE:ue}=J,{appendChild:se,cloneNode:fe,compareDocumentPosition:pe,insertBefore:he,removeChild:ge,replaceChild:me,hasChildNodes:be}=Z,{contains:de}=HTMLElement.prototype,ye=r(Z,"firstChild").get,Ee=r(Z,"lastChild").get,we=r(Z,"textContent").get,ve=r(Z,"parentNode").get,Te=r(Z,"ownerDocument").get,Ne=c.call(Z,"parentElement")?r(Z,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,Me=r(Z,"textContent").set,Le=c.call(Z,"childNodes")?r(Z,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,Se=c.call(Z,"isConnected")?r(Z,"isConnected").get:function(){const e=Te.call(this);return null===e||0!=(pe.call(e,this)&ee)},{getAttribute:Ce,getBoundingClientRect:He,getElementsByTagName:Oe,getElementsByTagNameNS:Re,hasAttribute:De,querySelector:Pe,querySelectorAll:Ie,removeAttribute:Ae,setAttribute:$e}=Element.prototype,Be=c.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},_e=r(Element.prototype,"childElementCount").get,xe=r(Element.prototype,"firstElementChild").get,Fe=r(Element.prototype,"lastElementChild").get,ke=r(HTMLElement.prototype,"innerText"),We=ke?ke.get:null,Ue=ke?ke.set:null,Ge=r(HTMLElement.prototype,"outerText"),je=Ge?Ge.get:null,Ke=Ge?Ge.set:null,qe=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),Ye=qe.get,Xe=qe.set,Ve=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),ze=Ve.get,Qe=Ve.set,Je=r(Element.prototype,"tagName").get,Ze=r(HTMLElement.prototype,"tabIndex"),et=Ze.get,tt=Ze.set,nt=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,lt=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:ot}=HTMLElement.prototype,rt=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null,at=c.call(Element.prototype,"assignedSlot")?r(Element.prototype,"assignedSlot").get:()=>null;let it,ct;"undefined"!=typeof HTMLSlotElement?(it=HTMLSlotElement.prototype.assignedNodes,ct=HTMLSlotElement.prototype.assignedElements):(it=()=>{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")},ct=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const ut=r(Event.prototype,"target").get,st=r(Event.prototype,"currentTarget").get,ft=r(FocusEvent.prototype,"relatedTarget").get,pt=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],ht=r(Document.prototype,"activeElement").get,gt=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,mt=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,bt=r(Document.prototype,"defaultView").get,{createComment:dt,querySelectorAll:yt,getElementById:Et,getElementsByClassName:wt,getElementsByTagName:vt,getElementsByTagNameNS:Tt}=Document.prototype,{getElementsByName:Nt}=HTMLDocument.prototype,{addEventListener:Mt,removeEventListener:Lt,getComputedStyle:St,getSelection:Ct}=window,Ht=MutationObserver,Ot=Ht.prototype.observe;let Rt=null;"undefined"!=typeof ShadowRoot&&(Rt=ShadowRoot);const Dt=!x(Rt),Pt=x(Rt)?()=>!1:e=>e instanceof Rt;const{createElement:It}=Document.prototype,At=115,$t=108,Bt=111,_t=116;function xt(e){const t=Te.call(e);return null===t?e:t}function Ft(e){const t=xt(e),n=bt.call(t);if(null===n)throw new TypeError;return n}let kt;function Wt(e){if(_(kt)){const t=xt(e);kt=t.body&&"temporary-bypass"===Ce.call(t.body,"data-global-patching-bypass")}return F(kt)}function Ut(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=It.apply(this,S.call(arguments));return 4===t.length&&P.call(t,0)===At&&P.call(t,1)===$t&&P.call(t,2)===Bt&&P.call(t,3)===_t&&p(l,e.prototype),l}})}();const Gt="undefined"!=typeof EventTarget?EventTarget.prototype:J.prototype,{addEventListener:jt,dispatchEvent:Kt,removeEventListener:qt}=Gt,Yt="$$HostElementKey$$",Xt="$$ShadowedNodeKey$$";function Vt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function zt(e){return e[Yt]}function Qt(e){let t,n=e;for(;!x(n);){if(t=zt(n),!_(t))return t;if(n=ve.call(n),lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!x(n)&&ln(n))return}}function Jt(e){return e[Xt]}function Zt(e){return!_(zt(e))}function en(e){let t=Ne.call(e);for(;!x(t)&&on(t);)e=t,t=Ne.call(e);return e}function tn(e,t){const n=Jt(e);let l=t instanceof Element?t:Ne.call(t);for(;!x(l)&&l!==e;){const t=Qt(l),o=Ne.call(l);if(t===n)return on(l);if(o===e)return!1;if(x(o)||Qt(o)===t)l=o;else{if(!on(o))return!1;if(l=nn(en(o)),!x(l)){if(l===e)return!0;if(Qt(l)===n)return!0}}}return!1}function nn(e){if(!(e instanceof J))return null;const t=Qt(e);if(_(t))return null;let n=e;for(;!x(n)&&Jt(n)!==t;)n=ve.call(n);return x(n)?null:n}function ln(e){return on(e)&&Zt(e)}function on(e){return e instanceof HTMLSlotElement}function rn(e,t){const n=Qt(t);if(_(n)){if(lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const e=ve.call(t);if(!x(e)&&ln(e))return!1}return!0}return Jt(e)===n}function an(e){const t=ml(e);return un(t,Ut(Le.call(t)))}function cn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!rn(e,o)&&tn(e,o)&&T.call(n,o)}return n}function un(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];rn(e,o)&&T.call(n,o)}return n}function sn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(rn(e,t[n]))return t[n];return null}function fn(e){if(!dl(e)&&!on(e)){return Ut(Le.call(e))}if(dl(e)){const t=Ut(Ie.call(e,"slot")),n=pl(bl(e));return N.call(t,((e,t)=>(n===pl(t)&&T.apply(e,pn(t)),e)),[])}{const t=Ut(Le.call(e)),n=pl(e);return b.call(t,(e=>n===pl(e)))}}function pn(e){const t=nn(e);if(x(t))return[];const n=Ut(Le.call(e));return b.call(n,(e=>!Zt(e)||!rn(t,e)))}const hn=/[&\u00A0"]/g,gn=/[&\u00A0<>]/g,{replace:mn,toLowerCase:bn}=String.prototype;function dn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function yn(e){return mn.call(e,hn,dn)}const En=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),wn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function vn(e){switch(e.nodeType){case oe:{const{attributes:t}=e,n=Je.call(e);let l="<"+bn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+yn(e.value)+'"';return l+=">",En.has(n)?l:l+function(e){let t="";const n=fn(e);for(let e=0,l=n.length;e<l;e+=1)t+=vn(n[e]);return t}(e)+"</"+bn.call(n)+">"}case re:{const{data:n,parentNode:l}=e;return l instanceof Element&&wn.has(Je.call(l))?n:(t=n,mn.call(t,gn,dn))}case ae:return`<!CDATA[[${e.data}]]>`;case ie:return`<?${e.target} ${e.data}?>`;case ce:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function Tn(e){if(e.nodeType===oe){const t=fn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==ce&&(n+=Tn(l))}return n}return e.nodeValue}const Nn=new WeakMap;function Mn(){throw new TypeError("Illegal constructor")}function Ln(e){const n=t(Mn.prototype);return Nn.set(n,e),D.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}Mn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:Mn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Nn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){D.call(Nn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(Nn.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(Nn.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return Nn.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=Nn.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),p(Mn,NodeList);const Sn=(e,t)=>{let n;for(;!_(n=e.host);){const l=n.getRootNode();if(l===t)return n;e=l}};function Cn(e,t,n,l){const o=mt.call(t,n,l),r=[],a=function(e){var t;const n=[];let l=e.getRootNode();for(;!_(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!x(o))for(let e=0;e<o.length;e++){const t=o[e];if(ln(t))continue;const n=t.getRootNode();if(-1!==y.call(a,n)){T.call(r,t);continue}const l=Sn(n,a[0]);_(l)||-1!==y.call(o,l)||-1!==y.call(r,l)||T.call(r,l)}return r}const Hn=new WeakMap;function On(){throw new TypeError("Illegal constructor")}function Rn(e){const n=t(On.prototype);return Hn.set(n,e),D.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Dn(e){return ln(e)||dl(e)}function Pn(e,t){const n=nn(e);if(t===n)return bl(n);if(t instanceof Element){if(Qt(e)===Qt(t))return t;if(!x(n)&&on(t)){const e=nn(t);if(!x(e)&&rn(n,e))return e}}return null}function In(){return Kn(this).length>0}function An(){return Kn(this)[0]||null}function $n(){const e=Kn(this);return e[e.length-1]||null}function Bn(){return Tn(this)}function _n(){const e=ve.call(this);return x(e)?e:Pn(this,e)}function xn(){const e=ve.call(this);if(x(e))return null;const t=Pn(this,e);return t instanceof Element?t:null}function Fn(e){return this===e?0:this.getRootNode()===e?10:zt(this)!==zt(e)?35:pe.call(this,e)}function kn(e){return null!=e&&zt(this)===zt(e)&&0!=(pe.call(this,e)&ee)}function Wn(e){const t=fe.call(this,!1);if(!e)return t;const n=Kn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Un(){if(dl(this)){const e=nn(this);return Ln(x(e)?[]:un(e,fn(this)))}return Le.call(this)}On.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:On},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Hn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=Hn.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===Ce.call(n,"id")||e===Ce.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),p(On,HTMLCollection);const Gn=J.prototype.getRootNode,jn=_(Gn)?function(){let e,t=this;for(;!x(e=ve.call(t));)t=e;return t}:Gn;n(J.prototype,{firstChild:{get(){return Dn(this)?An.call(this):ye.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Dn(this)?$n.call(this):Ee.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Zt(this)||dl(this)?Bn.call(this):we.call(this)},set:function(e){Me.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Zt(this))return _n.call(this);const e=ve.call(this);return!x(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Zt(this))return xn.call(this);const e=Ne.call(this);return!x(e)&&ln(e)?nn(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Dn(this)?Un.call(this):Le.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Dn(this)?In.call(this):be.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return Wt(this)?pe.call(this,e):Fn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||null!=e&&(Zt(this)||dl(this)?kn.call(this,e):de.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Zt(this)||dl(this)?Wn.call(this,e):fe.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return F(!_(e)&&!!e.composed)?jn.call(this,e):function(e){const t=nn(e);return x(t)?jn.call(e):bl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return Se.call(this)}}});const Kn=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(J.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(J.prototype,"parentElement"));const qn=new WeakMap,Yn=new WeakMap;function Xn(e,t,n){if(t===n)return!0;let l=Yn.get(e);return _(l)&&(l=e.composedPath(),Yn.set(e,l)),l.includes(n)}function Vn(e){if(!function(e){return W(e)||U(e)&&!x(e)&&W(e.handleEvent)}(e))return e;let t=qn.get(e);return _(t)&&(t=function(t){const n=st.call(t);if(Xn(t,Zn(t),n))return W(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},qn.set(e,t)),t}const zn=new WeakMap,Qn=new WeakMap;function Jn(e){let n=Qn.get(e);return _(n)&&(n=t(null),Qn.set(e,n)),n}function Zn(e){var t;return null!==(t=Nl.get(e))&&void 0!==t?t:ut.call(e)}const el=new WeakMap;function tl(e){if(!W(e))throw new TypeError;let t=el.get(e);return _(t)&&(t=function(t){let n=st.call(t);Pt(n)||(n=bl(n));Xn(t,Zn(t),n)&&e.call(n,t)},t.placement=1,el.set(e,t)),t}const nl=new WeakMap;function ll(e){if(!W(e))throw new TypeError;let t=nl.get(e);return _(t)&&(t=function(t){const n=st.call(t);Xn(t,Zn(t),n)&&e.call(n,t)},t.placement=0,nl.set(e,t)),t}function ol(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:a}=e,i=Jn(st.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=S.call(i);function u(n){D.call(c,(l=>{k(t)&&l.placement===n&&-1!==y.call(i,l)&&l.call(void 0,e)}))}zn.set(e,1),u(1),k(t)&&k(n)&&(zn.set(e,0),u(0)),zn.set(e,2)}function rl(e,t,n){const l=Jn(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===y.call(o,n)&&(0===o.length&&jt.call(e,t,ol),T.call(o,n))}function al(e,t,n){let l,o;_(o=Jn(e)[t])||-1===(l=y.call(o,n))||(O.call(o,l,1),0===o.length&&qt.call(e,t,ol))}function il(e,t,n){if(W(t)){rl(this,e,ll(t))}}function cl(e,t,n){if(W(t)){al(this,e,ll(t))}}const ul=new WeakMap,{createDocumentFragment:sl}=document;function fl(e){const t=ul.get(e);if(_(t))throw new TypeError;return t}function pl(e){return e[j]}function hl(e,t){e[j]=t}function gl(e){return fl(e).delegatesFocus}function ml(e){return fl(e).host}function bl(e){return fl(e).shadowRoot}function dl(e){const t=ul.get(e);return!_(t)&&e===t.host}function yl(e){const t=ul.get(e);return!_(t)&&e===t.shadowRoot}l(J.prototype,j,{set(e){var t,n;_(e)||(this[K]=e,t=this,n=e.nodeKey,Vt(t,Yt,{value:n,configurable:!0}))},get(){return this[K]},configurable:!0,enumerable:!0}),l(G,"$isNativeShadowRootDefined$",{value:Dt}),_(G[z])&&l(G,z,{value:Et}),_(G[Q])&&l(G,Q,{value:yt});let El=0;function wl(e,t){if(ul.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:l}=t,o=xt(e),r=sl.call(o),a={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};ul.set(r,a),ul.set(e,a);const i=()=>r,c=i.nodeKey=El++;return Vt(e,Xt,{value:c}),hl(r,i),p(r,Ll.prototype),r}const vl={constructor:{writable:!0,configurable:!0,value:Ll},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},Tl={activeElement:{enumerable:!0,configurable:!0,get(){const e=ml(this),t=xt(e),n=ht.call(t);if(x(n))return n;if(0==(pe.call(e,n)&ee))return null;let l=n;for(;!rn(e,l);)l=Ne.call(l);return on(l)?null:l}},delegatesFocus:{configurable:!0,get(){return fl(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Hl(this,xt(ml(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Cn(this,xt(ml(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return ml(this)}},mode:{configurable:!0,get(){return fl(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},Nl=new WeakMap,Ml={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return he.call(ml(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ge.call(ml(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return se.call(ml(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return me.call(ml(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&rl(ml(e),t,tl(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return Nl.set(e,this),Kt.apply(ml(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&al(ml(e),t,tl(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return ml(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return Ln(an(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=ml(this);return this===e?0:this.contains(e)?20:pe.call(t,e)&ee?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=ml(this);return 0!=(pe.call(t,e)&ee)&&rn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Kn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Kn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Kn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return Se.call(ml(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return ml(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==ce&&(t+=Tn(l))}return t},set(e){const t=ml(this);Me.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!_(e)&&F(e.composed)?ml(this).getRootNode(e):this}}};function Ll(){throw new TypeError("Illegal constructor")}function Sl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof J))return n;l=e.getRootNode()}let o,r=e;for(;!x(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=x(e)?r.parentNode:e}else r=!yl(r)&&!Pt(r)||!t&&r===l?r instanceof J?r.parentNode:null:r.host;return o=e instanceof Window?e.document:xt(e),n[n.length-1]===o&&n.push(window),n}
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/function Ml(e,t){if(x(e))return null;const n=Nl(e,!0),l=t;for(let e,t,o,r,a=0;a<l.length;a++)if(e=l[a],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!ml(o)||!_(r)&&r>-1)return e;return null}function Ll(e,t,n,l){const o=ht.call(t,n,l);return x(o)?o:Ml(e,Nl(o,!0))}e(yl,vl,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Cn(b.call(nn(this),(e=>e instanceof Element)))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=pl(e);return an(n,_t(Pe.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return Tn(function(e,t){const n=pl(e);return rn(n,_t(Pe.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Un(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=yn(e[n]);return t},set(e){const t=pl(this);Ye.call(t,e)}}},El),Tl.prototype=t(DocumentFragment.prototype,yl),l(Tl,Symbol.hasInstance,{value:function(e){return U(e)&&!x(e)&&(Rt(e)||i(e)===Tl.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return Ll(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Mn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=pt.call(this);if(x(e))return e;for(;!_(qt(e));)if(e=Te.call(e),x(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=yt.apply(this,S.call(arguments));return x(e)?null:_(qt(e))||Bt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=_t(dt.apply(this,S.call(arguments))),t=d.call(e,(e=>_(qt(e))||Bt(e)));return _(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=_t(dt.apply(this,S.call(arguments)));return Tn(b.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=_t(Et.apply(this,S.call(arguments)));return Cn(b.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=_t(wt.apply(this,S.call(arguments)));return Cn(b.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=_t(vt.apply(this,S.call(arguments)));return Cn(b.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=_t(Tt.apply(this,S.call(arguments)));return Tn(b.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:Tl,configurable:!0,writable:!0});const Sl=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Cl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Hl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Sl)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!Sl.get.call(e)})()&&(HTMLElement.prototype.click=function(){Ft.call(this,"click",Hl);try{Cl.value.call(this)}finally{Wt.call(this,"click",Hl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const Ol=CustomEvent;function Dl(e,t){const n=new Ol(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(Dl.prototype=Ol.prototype,window.CustomEvent=Dl,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}(function(){const e="undefined"!=typeof HTMLIFrameElement,t="undefined"!=typeof Proxy&&F(Proxy.isCompat);return e&&t})()&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return x(e)||_(qt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const Rl=MutationObserver,{disconnect:Pl,observe:Il,takeRecords:Al}=Rl.prototype,$l="$$lwcObserverCallbackWrapper$$",Bl="$$lwcNodeObservers$$",_l=new WeakMap;function xl(e){return e[Bl]}function Fl(e){const{addedNodes:l,removedNodes:o,target:r,type:a}=e,i=t(MutationRecord.prototype);return n(i,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>a,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),i}function kl(e,t){let n=t;for(;!x(n);){const t=xl(n);if(!_(t)&&(t[0]===e||-1!==y.call(t,e)))return!0;n=n.parentNode}return!1}function Wl(e,t){return N.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||_(Xt(l)))kl(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];if(kl(t,r)){const o=xl(l);!o||o[0]!==t&&-1===y.call(o,t)?T.call(e,Fl(n)):T.call(e,n)}}else{const o=l.shadowRoot,a=r[0];if(Yt(l)===Yt(a)&&kl(t,l))T.call(e,n);else if(o){const l=xl(o);!l||l[0]!==t&&-1===y.call(l,t)||T.call(e,Fl(n))}}return e}),[])}function Ul(e){const t=function(e){let t=e[$l];return _(t)&&(t=e[$l]=(t,n)=>{const l=Wl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Rl(t)}function Gl(e,t,n){if(arguments.length>1){const e=S.call(arguments);return e[1]=qn(e[1]),Nt.apply(this,e)}return Nt.apply(this,arguments)}function jl(e,t,n){if(arguments.length>1){const e=S.call(arguments);e[1]=qn(e[1]),Mt.apply(this,e)}Mt.apply(this,arguments)}function Kl(){const e=ct.call(this);if(!(e instanceof Q))return e;const t=It(e),n=Nl(e,this.composed),l=ut.call(this);if(!(l instanceof Q))return x(l)&&_(qt(e))?e:Ml(t,n);if(l===t||l===t.body)return _(qt(e))?e:Ml(t,n);let o=l,r=n;if(gl(l)){1===Yn.get(this)&&(o=hl(l))}return gl(e)&&wl.has(this)&&(r=Nl(hl(e),this.composed)),Ml(o,r)}function ql(){const e=ct.call(this);if(!(e instanceof Q))return[];const t=Boolean(e.shadowRoot),n=(l=e,al.has(l));var l;if(t&&!n)return ft.call(this);if(x(ut.call(this)))return[];let o=e;return gl(e)&&wl.has(this)&&(o=hl(e)),Nl(o,this.composed)}function Yl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(x(e))return null;if(!(e instanceof Q&&Vt(e)))return e;let n=ut.call(this);return x(n)&&(n=It(e)),Ml(n,Nl(e,!0))},enumerable:!0,configurable:!0})}Ul.prototype=Rl.prototype,Ul.prototype.disconnect=function(){Pl.call(this);const e=_l.get(this);_(e)||(R.call(e,(e=>{const t=e[Bl];if(!_(t)){const e=y.call(t,this);-1!==e&&O.call(t,e,1)}})),e.length=0)},Ul.prototype.observe=function(e,t){let n=xl(e);var l;if(_(n)&&(n=[],l=n,e[Bl]=l),-1===y.call(n,this)&&T.call(n,this),ml(e)&&(e=e.host),_l.has(this)){const t=_l.get(this);-1===y.call(t,e)&&T.call(t,e)}else _l.set(this,[e]);return Il.call(this,e,t)},Ul.prototype.takeRecords=function(){return Wl(Al.call(this),this)},l(window,"MutationObserver",{value:Ul,configurable:!0,writable:!0}),n(xt,{addEventListener:{value:function(e,t,n){if(gl(this))return ol.apply(this,arguments);if(arguments.length<2){const e=S.call(arguments);return e.length>1&&(e[1]=qn(e[1])),Ft.apply(this,e)}const l=qn(t);return Ft.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(gl(this))return rl.apply(this,arguments);const l=S.call(arguments);arguments.length>1&&(l[1]=qn(l[1])),Wt.apply(this,l),Wt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Gl,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:jl,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Kl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=ut.call(this);return x(e)?null:1===Yn.get(this)?hl(e):e},enumerable:!0,configurable:!0},composedPath:{value:ql,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Kl,enumerable:!0,configurable:!0},path:{get:ql,enumerable:!0,configurable:!0}}),Yl(FocusEvent),Yl(MouseEvent);const Xl=c.call(Text.prototype,"assignedSlot")?r(Text.prototype,"assignedSlot").get:()=>null;let Vl;const zl={childList:!0},Ql=new WeakMap;function Jl(e){const t=_t(Me.call(e));return N.call(t,((e,t)=>(t instanceof Element&&en(t)?T.apply(e,Jl(t)):T.call(e,t),e)),[])}function Zl(){const e=we.call(this);if(e instanceof Element){const t=ot.call(e);if(Rt(t))return this instanceof Text?Xl.call(this):rt.call(this)}return!x(e)&&en(e)&&qt(e)!==qt(this)?e:null}function eo(e,t){let n;const l=qt(e);if(_(l))n=e instanceof HTMLBodyElement?b.call(t,(t=>_(qt(t))||Bt(e))):S.call(t);else if(gl(e)){const l=Jt(e);n=x(l)?[]:Xt(e)?ln(e,t):rn(l,t)}else n=b.call(t,(e=>Yt(e)===l));return n}function to(){const e=Un(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=yn(e[n]);return t}function no(){return yn(this)}function lo(){const e=Jt(this),t=x(e)?[]:rn(e,cn(this));return Cn(b.call(t,(e=>e instanceof Element)))}function oo(){return this.children.length}function ro(){return this.children[0]||null}function ao(){const{children:e}=this;return e.item(e.length-1)||null}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Ql.get(this)||(Ql.set(this,!0),Vl||(Vl=new Ct((e=>{const t=[];R.call(e,(e=>{const{target:n}=e;-1===y.call(t,n)&&(T.call(t,n),kt.call(n,new CustomEvent("slotchange")))}))}))),Ht.call(Vl,this,zl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Vt(this)){const t=!_(e)&&F(e.flatten)?Jl(this):un(this);return b.call(t,(e=>e instanceof Element))}return it.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Vt(this)){return!_(e)&&F(e.flatten)?Jl(this):un(this)}return at.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Se.call(this,"name");return x(e)?"":e},set(e){Ae.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Vt(this)){const e=Jt(this);return Tn(x(e)?[]:rn(e,cn(this)))}return Me.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:Zl,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Vt(this)||gl(this)?to.call(this):qe.call(this)},set(e){Ye.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Vt(this)||gl(this)?no.call(this):Ve.call(this)},set(e){ze.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?dl(this,e):$e.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(gl(this)){const e=hl(this);if("open"===e.mode)return e}return ot.call(this)},enumerable:!0,configurable:!0},children:{get(){return Hn(this)?lo.call(this):nt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Hn(this)?oo.call(this):Be.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Hn(this)?ro.call(this):_e.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Hn(this)?ao.call(this):xe.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Zl,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),c.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),c.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=_t(Pe.apply(this,S.call(arguments)));if(gl(this)){const t=Jt(this);return _(Xt(this))?x(t)?null:an(t,e):on(this,e)}if(Vt(this)){const t=qt(this);if(_(t))return 0===e.length?null:e[0];{const n=d.call(e,(e=>Yt(e)===t));return _(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=d.call(e,(e=>_(qt(e))||Bt(this)));return _(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){return Tn(function(e,t){let n;if(gl(e)){const l=Jt(e);n=_(Xt(e))?x(l)?[]:rn(l,t):ln(e,t)}else if(Vt(e)){const l=qt(e);n=_(l)?S.call(t):b.call(t,(e=>Yt(e)===l))}else n=e instanceof HTMLBodyElement?b.call(t,(t=>_(qt(t))||Bt(e))):S.call(t);return n}(this,_t(Pe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){return Cn(eo(this,_t(lt.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Cn(eo(this,_t(He.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Cn(eo(this,_t(Oe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const io="\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",co=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function uo(e){return e.filter((e=>De.call(e,"tabindex")?"0"===Se.call(e,"tabindex"):!co.has(Qe.call(e))||!De.call(e,"disabled")))}const so=new WeakMap;function fo(e){return(!gl(e)||!fl(e))&&(tt.call(e,io)&&function(e){const{width:t,height:n}=Ce.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function po(){const e=this.getRootNode();if(e===this){const e=Re.call(this,io);return void(x(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=_t(Pe.call(this,io));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function ho(e){const t=It(e),n=uo(_t(dt.call(t,io))),l=uo(_t(Pe.call(e,io))),o=l[0],r=l[l.length-1],a=y.call(n,e),i=a>-1?a:y.call(n,o),c=0===l.length?i+1:y.call(n,r)+1;return{prev:S.call(n,0,i),inner:l,next:S.call(n,c)}}function go(e,t){const n=fe.call(e,t);return n&Z?0:n&te?1:n&ne?2:-1}function mo(e){e.preventDefault(),e.stopPropagation()}function bo(e,t){Nt.call(e,"focusin",mo,!0),Nt.call(e,"focusout",mo,!0),t(),Mt.call(e,"focusin",mo,!0),Mt.call(e,"focusout",mo,!0)}function yo(e,t,n){const l=At(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(Lo(t.getRootNode(),n))return n}return null}(e,n);x(o)?bo(l,(()=>{t.blur()})):bo(l,(()=>{o.focus()}))}let Eo=!1;function wo(){Eo=!0}function vo(){Eo=!1}function To(){return!Eo}function No(e){if(Eo)return;const t=ut.call(e),n=ct.call(e);if(t!==n)return;const l=st.call(e);if(x(l))return;const o=ho(t);if(1===go(t,l)){const e=Lo.bind(null,t.getRootNode()),r=d.call(o.inner,e);if(_(r))yo(o.next,n,l);else{bo(At(r),(()=>{r.focus()}))}}else t===n&&yo(M.call(o.prev),n,l)}function Mo(e){if(Eo)return;const t=st.call(e);if(x(t))return;const n=ut.call(e),l=ho(n);if(-1!==y.call(l.inner,t))return;const o=ct.call(e),r=go(n,t);1===r&&yo(l.next,o,t),2===r&&yo(M.call(l.prev),o,t)}function Lo(e,t){if(!fo(t))return!1;const n=It(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===Se.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function So(e){Wt.call(e,"focusin",No,!0)}function Co(e){const t=It(e);so.get(t)||(so.set(t,!0),Ft.call(t,"mousedown",wo,!0),Ft.call(t,"mouseup",(()=>{setTimeout(vo)}),!0),Ft.call(t,"dragstart",vo,!0))}function Ho(e){Wt.call(e,"focusin",Mo,!0)}const{blur:Oo,focus:Do}=HTMLElement.prototype;function Ro(){return fl(this)&&k(De.call(this,"tabindex"))?0:Ze.call(this)}function Po(e){const t=fl(this),n=Ze.call(this),l=De.call(this,"tabindex");et.call(this,e);const o=Ze.call(this),r=De.call(this,"tabindex"),a=n!==o;var i;(l&&(a||k(r))&&(-1===n&&Ho(this),0===n&&t&&So(this)),k(r))||(l&&r&&k(a)||(-1===o&&(Co(i=this),So(i),Ft.call(i,"focusin",Mo,!0)),0===o&&t&&function(e){Co(e),Ho(e),Ft.call(e,"focusin",No,!0)}(this)))}function Io(){if(fl(this)){const e=function(e){const t=It(e),n=pt.call(t);return x(n)||0!=(fe.call(e,n)&Z)?n:null}(this);if(!x(e))return void e.blur()}return Oo.call(this)}function Ao(){const e=To();e&&wo(),gl(this)&&fl(this)?po.call(this):(Do.apply(this,arguments),e&&vo())}function $o(e,t){e[j]=t;const n=Me.call(e);for(let e=0,l=n.length;e<l;e++)$o(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return gl(this)?Ro.call(this):Ze.call(this)},set(e){return gl(this)?Po.call(this,e):et.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(gl(this))return Io.call(this);Oo.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Ao.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==ke&&null!==We&&l(HTMLElement.prototype,"innerText",{get(){return ke.call(this)},set(e){We.call(this,e)},enumerable:!0,configurable:!0}),null!==Ge&&null!==je&&l(HTMLElement.prototype,"outerText",{get(){return Ge.call(this)},set(e){je.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,Y,{set(e){const t=this[X];_(t)||t===e||Ie.call(this,t),_(e)||Ae.call(this,e,""),this[X]=e},get(){return this[X]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){$o(this,this[j])}this[q]=e},get(){return this[q]},configurable:!0});const Bo="$$DomManualKey$$",_o=function(){};let xo;const Fo={childList:!0};function ko(e,t,n){const l=ul(e);if(l!==t&&(sl(e,t),e instanceof Element)){if(function(e,t){e[Y]=t}(e,n),gl(e))return;_(l)&&Ht.call(xo,e,Fo);const o=Me.call(e);for(let e=0,l=o.length;e<l;e+=1)ko(o[e],t,n)}}function Wo(){return new Ct((e=>{R.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=ul(t),r=t[Y];for(let e=0,n=l.length;e<n;e+=1){const n=l[e];fe.call(t,n)&Q.DOCUMENT_POSITION_CONTAINED_BY||ko(n,_o,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];fe.call(t,l)&Q.DOCUMENT_POSITION_CONTAINED_BY&&ko(l,o,r)}}))}))}l(Element.prototype,"$domManual$",{set(e){this[Bo]=e,F(e)&&function(e){if(_(xo)&&(xo=Wo()),_(ul(e)))throw new Error("Invalid Element");Ht.call(xo,e,Fo)}(this)},get(){return this[Bo]},configurable:!0})}();
|
|
3
|
+
@license
|
|
4
|
+
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
+
*/function Cl(e,t){if(x(e))return null;const n=Sl(e,!0),l=t;for(let e,t,o,r,a=0;a<l.length;a++)if(e=l[a],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!yl(o)||!_(r)&&r>-1)return e;return null}function Hl(e,t,n,l){const o=gt.call(t,n,l);return x(o)?o:Cl(e,Sl(o,!0))}e(vl,Ml,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Rn(b.call(an(this),(e=>e instanceof Element)))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=ml(e);return sn(n,Ut(Ie.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return Ln(function(e,t){const n=ml(e);return un(n,Ut(Ie.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=vn(e[n]);return t},set(e){const t=ml(this);Xe.call(t,e)}}},Tl),Ll.prototype=t(DocumentFragment.prototype,vl),l(Ll,Symbol.hasInstance,{value:function(e){return U(e)&&!x(e)&&(Pt(e)||i(e)===Ll.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return Hl(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Cn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=ht.call(this);if(x(e))return e;for(;!_(zt(e));)if(e=Ne.call(e),x(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=Et.apply(this,S.call(arguments));return x(e)?null:_(zt(e))||Wt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=Ut(yt.apply(this,S.call(arguments))),t=d.call(e,(e=>_(zt(e))||Wt(e)));return _(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=Ut(yt.apply(this,S.call(arguments)));return Ln(b.call(e,(e=>_(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=Ut(wt.apply(this,S.call(arguments)));return Rn(b.call(e,(e=>_(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=Ut(vt.apply(this,S.call(arguments)));return Rn(b.call(e,(e=>_(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=Ut(Tt.apply(this,S.call(arguments)));return Rn(b.call(e,(e=>_(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Ut(Nt.apply(this,S.call(arguments)));return Ln(b.call(e,(e=>_(zt(e))||Wt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:Ll,configurable:!0,writable:!0});const Ol=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Rl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Dl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Ol)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!Ol.get.call(e)})()&&(HTMLElement.prototype.click=function(){jt.call(this,"click",Dl);try{Rl.value.call(this)}finally{qt.call(this,"click",Dl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const Pl=CustomEvent;function Il(e,t){const n=new Pl(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(Il.prototype=Pl.prototype,window.CustomEvent=Il,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}(function(){const e="undefined"!=typeof HTMLIFrameElement,t="undefined"!=typeof Proxy&&F(Proxy.isCompat);return e&&t})()&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return x(e)||_(zt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const Al=MutationObserver,{disconnect:$l,observe:Bl,takeRecords:_l}=Al.prototype,xl="$$lwcObserverCallbackWrapper$$",Fl="$$lwcNodeObservers$$",kl=new WeakMap;function Wl(e){return e[Fl]}function Ul(e){const{addedNodes:l,removedNodes:o,target:r,type:a}=e,i=t(MutationRecord.prototype);return n(i,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>a,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),i}function Gl(e,t){let n=t;for(;!x(n);){const t=Wl(n);if(!_(t)&&(t[0]===e||-1!==y.call(t,e)))return!0;n=n.parentNode}return!1}function jl(e,t){return N.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||_(Jt(l)))Gl(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];if(Gl(t,r)){const o=Wl(l);!o||o[0]!==t&&-1===y.call(o,t)?T.call(e,Ul(n)):T.call(e,n)}}else{const o=l.shadowRoot,a=r[0];if(Qt(l)===Qt(a)&&Gl(t,l))T.call(e,n);else if(o){const l=Wl(o);!l||l[0]!==t&&-1===y.call(l,t)||T.call(e,Ul(n))}}return e}),[])}function Kl(e){const t=function(e){let t=e[xl];return _(t)&&(t=e[xl]=(t,n)=>{const l=jl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Al(t)}function ql(e,t,n){if(arguments.length>1){const e=S.call(arguments);return e[1]=Vn(e[1]),Mt.apply(this,e)}return Mt.apply(this,arguments)}function Yl(e,t,n){if(arguments.length>1){const e=S.call(arguments);e[1]=Vn(e[1]),Lt.apply(this,e)}Lt.apply(this,arguments)}function Xl(){const e=ut.call(this);if(!(e instanceof J))return e;const t=xt(e),n=Sl(e,this.composed),l=st.call(this);if(!(l instanceof J))return x(l)&&_(zt(e))?e:Cl(t,n);if(l===t||l===t.body)return _(zt(e))?e:Cl(t,n);let o=l,r=n;if(dl(l)){1===zn.get(this)&&(o=bl(l))}return dl(e)&&Nl.has(this)&&(r=Sl(bl(e),this.composed)),Cl(o,r)}function Vl(){const e=ut.call(this);if(!(e instanceof J))return[];const t=Boolean(e.shadowRoot),n=(l=e,ul.has(l));var l;if(t&&!n)return pt.call(this);if(x(st.call(this)))return[];let o=e;return dl(e)&&Nl.has(this)&&(o=bl(e)),Sl(o,this.composed)}function zl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(x(e))return null;if(!(e instanceof J&&Zt(e)))return e;let n=st.call(this);return x(n)&&(n=xt(e)),Cl(n,Sl(e,!0))},enumerable:!0,configurable:!0})}Kl.prototype=Al.prototype,Kl.prototype.disconnect=function(){$l.call(this);const e=kl.get(this);_(e)||(D.call(e,(e=>{const t=e[Fl];if(!_(t)){const e=y.call(t,this);-1!==e&&O.call(t,e,1)}})),e.length=0)},Kl.prototype.observe=function(e,t){let n=Wl(e);var l;if(_(n)&&(n=[],l=n,e[Fl]=l),-1===y.call(n,this)&&T.call(n,this),yl(e)&&(e=e.host),kl.has(this)){const t=kl.get(this);-1===y.call(t,e)&&T.call(t,e)}else kl.set(this,[e]);return Bl.call(this,e,t)},Kl.prototype.takeRecords=function(){return jl(_l.call(this),this)},l(window,"MutationObserver",{value:Kl,configurable:!0,writable:!0}),n(Gt,{addEventListener:{value:function(e,t,n){if(dl(this))return il.apply(this,arguments);if(arguments.length<2){const e=S.call(arguments);return e.length>1&&(e[1]=Vn(e[1])),jt.apply(this,e)}const l=Vn(t);return jt.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(dl(this))return cl.apply(this,arguments);const l=S.call(arguments);arguments.length>1&&(l[1]=Vn(l[1])),qt.apply(this,l),qt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:ql,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Yl,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Xl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=st.call(this);return x(e)?null:1===zn.get(this)?bl(e):e},enumerable:!0,configurable:!0},composedPath:{value:Vl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Xl,enumerable:!0,configurable:!0},path:{get:Vl,enumerable:!0,configurable:!0}}),zl(FocusEvent),zl(MouseEvent);const Ql=c.call(Text.prototype,"assignedSlot")?r(Text.prototype,"assignedSlot").get:()=>null;let Jl;const Zl={childList:!0},eo=new WeakMap;function to(e){const t=Ut(Le.call(e));return N.call(t,((e,t)=>(t instanceof Element&&on(t)?T.apply(e,to(t)):T.call(e,t),e)),[])}function no(){const e=ve.call(this);if(e instanceof Element){const t=rt.call(e);if(Pt(t))return this instanceof Text?Ql.call(this):at.call(this)}return!x(e)&&on(e)&&zt(e)!==zt(this)?e:null}function lo(e,t){let n;const l=zt(e);if(_(l))n=e instanceof HTMLBodyElement?b.call(t,(t=>_(zt(t))||Wt(e))):S.call(t);else if(dl(e)){const l=nn(e);n=x(l)?[]:Jt(e)?cn(e,t):un(l,t)}else n=b.call(t,(e=>Qt(e)===l));return n}function oo(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=vn(e[n]);return t}function ro(){return vn(this)}function ao(){const e=nn(this),t=x(e)?[]:un(e,fn(this));return Rn(b.call(t,(e=>e instanceof Element)))}function io(){return this.children.length}function co(){return this.children[0]||null}function uo(){const{children:e}=this;return e.item(e.length-1)||null}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||eo.get(this)||(eo.set(this,!0),Jl||(Jl=new Ht((e=>{const t=[];D.call(e,(e=>{const{target:n}=e;-1===y.call(t,n)&&(T.call(t,n),Kt.call(n,new CustomEvent("slotchange")))}))}))),Ot.call(Jl,this,Zl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Zt(this)){const t=!_(e)&&F(e.flatten)?to(this):pn(this);return b.call(t,(e=>e instanceof Element))}return ct.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Zt(this)){return!_(e)&&F(e.flatten)?to(this):pn(this)}return it.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Ce.call(this,"name");return x(e)?"":e},set(e){$e.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Zt(this)){const e=nn(this);return Ln(x(e)?[]:un(e,fn(this)))}return Le.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:no,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Zt(this)||dl(this)?oo.call(this):Ye.call(this)},set(e){Xe.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Zt(this)||dl(this)?ro.call(this):ze.call(this)},set(e){Qe.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e[V]?wl(this,e):Be.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(dl(this)){const e=bl(this);if("open"===e.mode)return e}return rt.call(this)},enumerable:!0,configurable:!0},children:{get(){return Dn(this)?ao.call(this):lt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Dn(this)?io.call(this):_e.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Dn(this)?co.call(this):xe.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Dn(this)?uo.call(this):Fe.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:no,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),c.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),c.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=Ut(Ie.apply(this,S.call(arguments)));if(dl(this)){const t=nn(this);return _(Jt(this))?x(t)?null:sn(t,e):function(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!rn(e,l)&&tn(e,l))return l}return null}(this,e)}if(Zt(this)){const t=zt(this);if(_(t))return 0===e.length?null:e[0];{const n=d.call(e,(e=>Qt(e)===t));return _(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=d.call(e,(e=>_(zt(e))||Wt(this)));return _(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){return Ln(function(e,t){let n;if(dl(e)){const l=nn(e);n=_(Jt(e))?x(l)?[]:un(l,t):cn(e,t)}else if(Zt(e)){const l=zt(e);n=_(l)?S.call(t):b.call(t,(e=>Qt(e)===l))}else n=e instanceof HTMLBodyElement?b.call(t,(t=>_(zt(t))||Wt(e))):S.call(t);return n}(this,Ut(Ie.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){return Rn(lo(this,Ut(ot.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Rn(lo(this,Ut(Oe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Rn(lo(this,Ut(Re.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const so="\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",fo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function po(e){return e.filter((e=>De.call(e,"tabindex")?"0"===Ce.call(e,"tabindex"):!fo.has(Je.call(e))||!De.call(e,"disabled")))}const ho=new WeakMap;function go(e){return(!dl(e)||!gl(e))&&(nt.call(e,so)&&function(e){const{width:t,height:n}=He.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function mo(){const e=this.getRootNode();if(e===this){const e=Pe.call(this,so);return void(x(e)||e.focus.apply(e,arguments))}if(e.activeElement===this)return;const t=Ut(Ie.call(this,so));let n=!1;for(;!n&&0!==t.length;){const e=t.shift();e.focus.apply(e,arguments);n=e.getRootNode().activeElement===e}}function bo(e){const t=xt(e),n=po(Ut(yt.call(t,so))),l=po(Ut(Ie.call(e,so))),o=l[0],r=l[l.length-1],a=y.call(n,e),i=a>-1?a:y.call(n,o),c=0===l.length?i+1:y.call(n,r)+1;return{prev:S.call(n,0,i),inner:l,next:S.call(n,c)}}function yo(e,t){const n=pe.call(e,t);return n&ee?0:n&ne?1:n&le?2:-1}function Eo(e){e.preventDefault(),e.stopPropagation()}function wo(e,t){Mt.call(e,"focusin",Eo,!0),Mt.call(e,"focusout",Eo,!0),t(),Lt.call(e,"focusin",Eo,!0),Lt.call(e,"focusout",Eo,!0)}function vo(e,t,n){const l=Ft(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(Co(t.getRootNode(),n))return n}return null}(e,n);x(o)?wo(l,(()=>{t.blur()})):wo(l,(()=>{o.focus()}))}let To=!1;function No(){To=!0}function Mo(){To=!1}function Lo(e){if(To)return;const t=st.call(e),n=ut.call(e);if(t!==n)return;const l=ft.call(e);if(x(l))return;const o=bo(t);if(1===yo(t,l)){const e=Co.bind(null,t.getRootNode()),r=d.call(o.inner,e);if(_(r))vo(o.next,n,l);else{wo(Ft(r),(()=>{r.focus()}))}}else t===n&&vo(M.call(o.prev),n,l)}function So(e){if(To)return;const t=ft.call(e);if(x(t))return;const n=st.call(e),l=bo(n);if(-1!==y.call(l.inner,t))return;const o=ut.call(e),r=yo(n,t);1===r&&vo(l.next,o,t),2===r&&vo(M.call(l.prev),o,t)}function Co(e,t){if(!go(t))return!1;const n=xt(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===Ce.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function Ho(e){qt.call(e,"focusin",Lo,!0)}function Oo(e){const t=xt(e);ho.get(t)||(ho.set(t,!0),jt.call(t,"mousedown",No,!0),jt.call(t,"mouseup",(()=>{setTimeout(Mo)}),!0),jt.call(t,"dragstart",Mo,!0))}function Ro(e){qt.call(e,"focusin",So,!0)}const{blur:Do,focus:Po}=HTMLElement.prototype;function Io(){return gl(this)&&k(De.call(this,"tabindex"))?0:et.call(this)}function Ao(e){const t=gl(this),n=et.call(this),l=De.call(this,"tabindex");tt.call(this,e);const o=et.call(this),r=De.call(this,"tabindex"),a=n!==o;var i;(l&&(a||k(r))&&(-1===n&&Ro(this),0===n&&t&&Ho(this)),k(r))||(l&&r&&k(a)||(-1===o&&(Oo(i=this),Ho(i),jt.call(i,"focusin",So,!0)),0===o&&t&&function(e){Oo(e),Ro(e),jt.call(e,"focusin",Lo,!0)}(this)))}function $o(){if(gl(this)){const e=function(e){const t=xt(e),n=ht.call(t);return x(n)||0!=(pe.call(e,n)&ee)?n:null}(this);if(!x(e))return void e.blur()}return Do.call(this)}function Bo(){const e=!To;e&&No(),dl(this)&&gl(this)?mo.call(this):(Po.apply(this,arguments),e&&Mo())}function _o(e,t){e[j]=t;const n=Le.call(e);for(let e=0,l=n.length;e<l;e++)_o(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return dl(this)?Io.call(this):et.call(this)},set(e){return dl(this)?Ao.call(this,e):tt.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(dl(this))return $o.call(this);Do.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Bo.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==We&&null!==Ue&&l(HTMLElement.prototype,"innerText",{get(){return We.call(this)},set(e){Ue.call(this,e)},enumerable:!0,configurable:!0}),null!==je&&null!==Ke&&l(HTMLElement.prototype,"outerText",{get(){return je.call(this)},set(e){Ke.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,Y,{set(e){const t=this[X];_(t)||t===e||Ae.call(this,t),_(e)||$e.call(this,e,""),this[X]=e},get(){return this[X]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){_o(this,this[j])}this[q]=e},get(){return this[q]},configurable:!0});const xo="$$DomManualKey$$",Fo=function(){};let ko;const Wo={childList:!0};function Uo(e,t,n){const l=pl(e);if(l!==t&&(hl(e,t),e instanceof Element)){if(function(e,t){e[Y]=t}(e,n),dl(e))return;_(l)&&Ot.call(ko,e,Wo);const o=Le.call(e);for(let e=0,l=o.length;e<l;e+=1)Uo(o[e],t,n)}}function Go(){return new Ht((e=>{D.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=pl(t),r=t[Y];for(let e=0,n=l.length;e<n;e+=1){const n=l[e];pe.call(t,n)&J.DOCUMENT_POSITION_CONTAINED_BY||Uo(n,Fo,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];pe.call(t,l)&J.DOCUMENT_POSITION_CONTAINED_BY&&Uo(l,o,r)}}))}))}l(Element.prototype,"$domManual$",{set(e){this[xo]=e,F(e)&&function(e){if(_(ko)&&(ko=Go()),_(pl(e)))throw new Error("Invalid Element");Ot.call(ko,e,Wo)}(this)},get(){return this[xo]},configurable:!0})}();
|