@lwc/synthetic-shadow
Advanced tools
Comparing version 0.39.1-222.2 to 0.39.1-222.3
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";const{freeze:t,seal:n,keys:l,create:o,assign:r,defineProperty:c,getPrototypeOf:a,setPrototypeOf:i,getOwnPropertyDescriptor:u,getOwnPropertyNames:s,defineProperties:f,getOwnPropertySymbols:p,hasOwnProperty:d,preventExtensions:h,isExtensible:g}=Object,{concat:m,filter:b,find:y,slice:E,splice:w,unshift:v,indexOf:N,push:T,map:O,join:S,forEach:L,reduce:M,reverse:_}=Array.prototype;function C(e){return void 0===e}function D(e){return null===e}function R(e){return!0===e}function I(e){return!1===e}function P(e){return"function"==typeof e}function x(e,t){do{const n=u(e,t);if(!C(n))return n;e=a(e)}while(null!==e)}const A=u(Document.prototype,"activeElement").get,H=d.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,$=u(Document.prototype,"defaultView").get,{createDocumentFragment:B,createElement:F,createElementNS:k,createTextNode:W,createComment:j,querySelector:U,querySelectorAll:q,getElementById:K,getElementsByClassName:G,getElementsByTagName:V,getElementsByTagNameNS:X}=Document.prototype,{getElementsByName:Y}=HTMLDocument.prototype,{DOCUMENT_POSITION_CONTAINED_BY:z,DOCUMENT_POSITION_CONTAINS:J,DOCUMENT_POSITION_PRECEDING:Q,DOCUMENT_POSITION_FOLLOWING:Z,DOCUMENT_FRAGMENT_NODE:ee}=Node,{appendChild:te,cloneNode:ne,compareDocumentPosition:le,hasChildNodes:oe,insertBefore:re,removeChild:ce,replaceChild:ae}=Node.prototype,ie=u(Node.prototype,"parentNode").get,ue=u(Node.prototype,"ownerDocument").get,se=d.call(Node.prototype,"parentElement")?u(Node.prototype,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,fe=u(Node.prototype,"textContent").set,pe=d.call(Node.prototype,"childNodes")?u(Node.prototype,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,de=u(Node.prototype,"nodeValue"),he=(de.set,de.get,d.call(Node.prototype,"isConnected")?u(Node.prototype,"isConnected").get:function(){const e=ue.call(this);return null===e||0!=(le.call(e,this)&z)}),{hasAttribute:ge,getAttribute:me,getAttributeNS:be,setAttribute:ye,setAttributeNS:Ee,removeAttribute:we,removeAttributeNS:ve,querySelector:Ne,querySelectorAll:Te,getBoundingClientRect:Oe,getElementsByTagName:Se,getElementsByTagNameNS:Le}=Element.prototype;let{addEventListener:Me,removeEventListener:_e}=Element.prototype;Me=Me.__lwcOriginal__||Me,_e=_e.__lwcOriginal__||_e;const Ce=d.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML").set:u(HTMLElement.prototype,"innerHTML").set,De=d.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML").set:u(HTMLElement.prototype,"outerHTML").set,Re=u(Element.prototype,"tagName").get,Ie=u(HTMLElement.prototype,"tabIndex").get,Pe=d.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,xe=d.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,{getElementsByClassName:Ae}=HTMLElement.prototype,He=(void 0!==window.ShadowRoot&&u(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),$e=void 0!==window.ShadowRoot,Be=u(HTMLIFrameElement.prototype,"contentWindow").get,Fe=u(Event.prototype,"target").get,ke=u(Event.prototype,"currentTarget").get,We=u(FocusEvent.prototype,"relatedTarget").get;function je(e){const t=ue.call(e);return null===t?e:t}function Ue(e){const t=je(e),n=$.call(t);if(null===n)throw new TypeError;return n}function qe(e,t){const n=[];let l=e;const o=e instanceof Window?e:_n.call(e);for(;l;)n.push(l),l=l.assignedSlot?l.assignedSlot:l.nodeType===ee&&l.host&&(t||l!==o)?l.host:l.parentNode;let r;return r=e instanceof Window?e.document:je(e),n[n.length-1]===r&&n.push(window),n}function Ke(e,t){if(D(e))return null;const n=qe(e,!0),l=t;for(let e,t,o,r,c=0;c<l.length;c++)if((o=(e=l[c])instanceof Window?e:_n.call(e))!==t&&(r=n.indexOf(o),t=o),!(o instanceof Gt)||r>-1)return e;return null}let{addEventListener:Ge,removeEventListener:Ve}=window;function Xe(e){let t=null;try{if(!(t=e.$$lwcEventWrapper$$)){const n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){const t=Fe.call(e);if(t instanceof Node){const e=je(t);if(0!=(le.call(e,t)&z)&&Bn(t))return!0}return!1}(t)&&it(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Ye(e,t,n){const l=typeof t;if("function"!==l&&"object"!==l)return;if("object"===l&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const o=Xe(t);Ge.call(this,e,o,n)}function ze(e,t,n){const l=Xe(t);Ve.call(this,e,l||t,n)}function Je(e,t,n){const l=typeof t;if("function"!==l&&"object"!==l)return;if("object"===l&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const o=Xe(t);Me.call(this,e,o,n)}function Qe(e,t,n){const l=Xe(t);_e.call(this,e,l||t,n)}Ge=Ge.__lwcOriginal__||Ge,Ve=Ve.__lwcOriginal__||Ve,Je.__lwcOriginal__=Me,Qe.__lwcOriginal__=_e,Ye.__lwcOriginal__=Ge,ze.__lwcOriginal__=Ve,window.addEventListener=Ye,window.removeEventListener=ze,Node.prototype.addEventListener=Je,Node.prototype.removeEventListener=Qe;const{addEventListener:Ze,removeEventListener:et}=Node.prototype;var tt;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(tt||(tt={}));const nt=new WeakMap;function lt(e,t){return!!(le.call(e,t)&z)}const ot={composed:!1};function rt(e,t){let n=_n.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=jt(n)),n}function ct(){const e=ke.call(this),t=Fe.call(this),n=qe(t,this.composed);if(!(e instanceof Node)){return Ke(je(t),n)}return Ke(nt.get(this)===tt.SHADOW_ROOT_LISTENER?Ut(e):e,n)}function at(){return qe(Fe.call(this),this.composed)}function it(e){if(nt.has(e))return;f(e,{target:{get:ct,enumerable:!0,configurable:!0},composedPath:{value:at,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:ct,enumerable:!0,configurable:!0},path:{get:at,enumerable:!0,configurable:!0}});const t=x(e,"relatedTarget");if(!C(t)){const n=t.get;c(e,"relatedTarget",{get(){const e=nt.get(this),t=ke.call(this),l=n.call(this);return D(l)?null:Ke(e===tt.SHADOW_ROOT_LISTENER?Ut(t):t,qe(l,!0))},enumerable:!0,configurable:!0})}nt.set(e,0)}const ut=new WeakMap;function st(e){let t=ut.get(e);return C(t)&&(t=o(null),ut.set(e,t)),t}const ft=new WeakMap;function pt(e,t){if(!P(t))throw new TypeError;let n=ft.get(t);return C(n)&&((n=function(n){const{composed:l}=n,o=Fe.call(n),r=ke.call(n);if(o!==r){const c=rt(o,{composed:l});(lt(c,r)||!1===l&&c===r)&&t.call(e,n)}}).placement=tt.SHADOW_ROOT_LISTENER,ft.set(t,n)),n}const dt=new WeakMap;function ht(e,t){if(!P(t))throw new TypeError;let n=dt.get(t);return C(n)&&((n=function(n){(function(e){const t=Fe.call(e),n=ke.call(e),{composed:l}=e;return!0===l||t===n||lt(rt(t,ot),n)})(n)&&t.call(e,n)}).placement=tt.CUSTOM_ELEMENT_LISTENER,dt.set(t,n)),n}function gt(e){let t=!1,n=!1;const{type:l,stopImmediatePropagation:o,stopPropagation:r}=e,a=st(ke.call(e))[l];c(e,"stopImmediatePropagation",{value(){t=!0,o.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value(){n=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0});const i=E.call(a);function u(n){L.call(i,l=>{I(t)&&l.placement===n&&-1!==N.call(a,l)&&l.call(void 0,e)})}nt.set(e,tt.SHADOW_ROOT_LISTENER),u(tt.SHADOW_ROOT_LISTENER),I(t)&&I(n)&&(nt.set(e,tt.CUSTOM_ELEMENT_LISTENER),u(tt.CUSTOM_ELEMENT_LISTENER)),nt.set(e,0)}function mt(e,t,n){const l=st(e);let o=l[t];C(o)&&(o=l[t]=[]),0===o.length&&Ze.call(e,t,gt),T.call(o,n)}function bt(e,t,n){let l,o;C(o=st(e)[t])||-1===(l=N.call(o,n))||(w.call(o,l,1),0===o.length&&et.call(e,t,gt))}const yt="Symbol(x)"===Symbol("x").toString();function Et(e){return yt?Symbol(e):`$$lwc-${e}$$`}function wt(e,t,n){c(e,t,{value:n})}function vt(e,t){return e[t]}function Nt(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const t=An(e);let n="";for(let e=0,l=t.length;e<l;e+=1)n+=Nt(t[e]);return n}default:return e.nodeValue}}const Tt=Et("items");function Ot(){throw new TypeError("Illegal constructor")}function St(e){const t=o(Ot.prototype);return wt(t,Tt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Ot.prototype=o(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:Ot},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return vt(this,Tt).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(vt(this,Tt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Tt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Tt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return vt(this,Tt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=vt(this,Tt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),i(Ot,NodeList);const Lt=Et("items");function Mt(){throw new TypeError("Illegal constructor")}function _t(e){const t=o(Mt.prototype);return wt(t,Lt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Mt.prototype=o(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Mt},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return vt(this,Lt).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];const t=vt(this,Lt);for(let l=t.length-1;l>=0;l-=1){const o=t[l];if(((n=o).getAttribute("id")||n.getAttribute("name"))===e)return o}var n;return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(vt(this,Lt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Lt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Lt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return vt(this,Lt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=vt(this,Lt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),i(Mt,HTMLCollection);const Ct=/[&\u00A0"]/g,Dt=/[&\u00A0<>]/g,{replace:Rt,toLowerCase:It}=String.prototype;function Pt(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function xt(e){return Rt.call(e,Ct,Pt)}const At=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Ht=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function $t(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const{attributes:t}=e,n=Re.call(e);let l="<"+It.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+xt(e.value)+'"';return l+=">",At.has(n)?l:l+function(e){let t="";const n=An(e);for(let e=0,l=n.length;e<l;e+=1)t+=$t(n[e]);return t}(e)+"</"+It.call(n)+">"}case Node.TEXT_NODE:{const{data:n,parentNode:l}=e;return l instanceof Element&&Ht.has(Re.call(l))?n:(t=n,Rt.call(t,Dt,Pt))}case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}var t}const Bt=Et("shadowRecord"),{createDocumentFragment:Ft}=document;function kt(e){const t=vt(e,Bt);if(C(t))throw new TypeError;return t}function Wt(e){return kt(e).delegatesFocus}function jt(e){return kt(e).host}function Ut(e){return kt(e).shadowRoot}function qt(e){return!C(vt(e,Bt))}const Kt={constructor:{writable:!0,configurable:!0,value:Gt},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}};function Gt(){throw new TypeError("Illegal constructor")}r(Kt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return re.call(jt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ce.call(jt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return te.call(jt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ae.call(jt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){mt(jt(e),t,pt(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){bt(jt(e),t,pt(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return jt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return St(In(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=jt(this);return this===e?0:this.contains(e)?20:le.call(t,e)&z?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=jt(this);return 0!=(le.call(t,e)&z)&&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 he.call(jt(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 jt(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)t+=Nt(e[n]);return t},set(e){const t=jt(this);fe.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=!C(e)&&!!e.composed;return I(t)?this:_n.call(jt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return _t(b.call(In(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}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=jt(e),l=Te.call(n,t);return xn(n,l)}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return St(function(e,t){const n=jt(e),l=Te.call(n,t);return Pn(n,l)}(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+=$t(e[n]);return t},set(e){const t=jt(this);Ce.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get(){const e=jt(this),t=je(e),n=A.call(t);if(D(n))return n;if(0==(le.call(e,n)&z))return null;let l=n;for(;!Rn(e,l);)l=se.call(l);return Dn(l)?null:l}},delegatesFocus:{configurable:!0,get(){return kt(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){const n=je(jt(this)),l=H.call(n,e,t);return D(l)?l:Ke(this,qe(l,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error}},host:{enumerable:!0,configurable:!0,get(){return jt(this)}},mode:{configurable:!0,get(){return kt(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}}),Gt.prototype=o(DocumentFragment.prototype,Kt),$e&&i(Gt.prototype,window.ShadowRoot.prototype);let Vt=window.MutationObserver;if(void 0===Vt){function Xt(){}Xt.prototype={observe(){}},Vt=window.MutationObserver=Xt}const Yt=Vt,zt=Yt.prototype.observe,Jt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Qt(e){const{width:t,height:n}=Oe.call(e);return(t>0||n>0)&&"hidden"!==getComputedStyle(e).visibility}const Zt={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function en(e){const t=Re.call(e);return Qt(e)&&(function(e){if(I(ge.call(e,"tabindex")))return!1;const t=me.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||ge.call(e,"contenteditable")||d.call(Zt,t))}function tn(e){const t=je(e),n=q.call(t,Jt),l=E.call(Te.call(e,Jt)),o=l[0],r=l[l.length-1],c=N.call(n,e),a=c>-1?c:N.call(n,o),i=0===l.length?a+1:N.call(n,r)+1;return{prev:E.call(n,0,a),inner:l,next:E.call(n,i)}}function nn(e,t){const n=le.call(e,t);return n&z?0:n&Q?1:n&Z?2:-1}function ln(e){e.preventDefault(),e.stopPropagation()}function on(e,t){Ge.call(e,"focusin",ln,!0),Ge.call(e,"focusout",ln,!0),t(),Ve.call(e,"focusin",ln,!0),Ve.call(e,"focusout",ln,!0)}function rn(e,t,n){const l=Ue(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(un(_n.call(t),n))return n}return null}(e,n);D(o)?on(l,()=>{t.blur()}):on(l,()=>{o.focus()})}function cn(e){const t=ke.call(e),n=Fe.call(e);if(t!==n)return;const l=We.call(e);if(D(l))return;const o=tn(t);if(1===nn(t,l)){const e=un.bind(null,_n.call(t)),r=y.call(o.inner,e);if(C(r))rn(o.next,n,l);else{on(Ue(r),()=>{r.focus()})}}else t===n&&rn(_.call(o.prev),n,l)}function an(e){const t=We.call(e);if(D(t))return;const n=ke.call(e),l=tn(n);if(-1!==N.call(l.inner,t))return;const o=Fe.call(e),r=nn(n,t);1===r&&rn(l.next,o,t),2===r&&rn(_.call(l.prev),o,t)}function un(e,t){if(n=t,!Pe.call(n,Jt)||!Qt(n))return!1;var n;const l=je(t);let o=_n.call(t);for(;o!==l&&o!==e;){const e=o.host;if("-1"===me.call(e,"tabindex"))return!1;o=e&&_n.call(e)}return!0}function sn(e){const t=ke.call(e);_e.call(t,"focusin",an),setTimeout(()=>{D(t)||-1!==Ie.call(t)||Me.call(t,"focusin",an)},0)}function fn(e){const t=ke.call(e),n=We.call(e);(D(n)||0!==nn(t,n))&&(_e.call(t,"focusin",sn,!0),_e.call(t,"focusout",fn,!0))}function pn(e){if(function(e){const t=je(e);return e!==A.call(t)&&en(e)}(Fe.call(e))){const t=ke.call(e);Me.call(t,"focusin",sn,!0),Me.call(t,"focusout",fn,!0)}}function dn(e){_e.call(e,"focusin",cn,!0)}function hn(e){_e.call(e,"focusin",an),_e.call(e,"mousedown",pn,!0)}const gn=Node.prototype.getRootNode,mn=C(gn)?function(){let e,t=this;for(;!D(e=ie.call(t));)t=e;return t}:gn;function bn(e){return R(!C(e)&&!!e.composed)?mn.call(this,e):function(e){const t=Cn(e);return D(t)?mn.call(e):Ut(t)}(this)}function yn(e){let t=se.call(e);for(;!D(t)&&Dn(t);)e=t,t=se.call(e);return e}function En(e,t){const n=kn(e);let l=t instanceof Element?t:se.call(t);for(;!D(l)&&l!==e;){const t=Fn(l),o=se.call(l);if(t===n)return Dn(l);if(o===e)return!1;if(D(o)||Fn(o)===t)l=o;else{if(!Dn(o))return!1;if(!D(l=Cn(yn(o)))){if(l===e)return!0;if(Fn(l)===n)return!0}}}return!1}function wn(e,t){const n=Cn(e);if(D(n))return[];const l=Te.call(e,t);return kn(e)?function(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!Rn(e,o)&&En(e,o)&&T.call(n,o)}return n}(e,l):Pn(n,l)}function vn(e,t){const n=Cn(e);if(D(n))return null;const l=Te.call(e,t);return kn(e)?function(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!Rn(e,l)&&En(e,l))return l}return null}(e,l):xn(n,l)}function Nn(e){const t=qn(e),{addEventListener:n,removeEventListener:l,blur:o}=e;return class extends t{querySelector(e){return vn(this,e)}querySelectorAll(e){return St(wn(this,e))}get innerHTML(){const e=Kn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=$t(e[n]);return t}set innerHTML(e){Ce.call(this,e)}get outerHTML(){return $t(this)}set outerHTML(e){De.call(this,e)}attachShadow(e){return function(e,t){if(!C(vt(e,Bt)))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=je(e),r=Ft.call(o),c={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};return wt(r,Bt,c),wt(e,Bt,c),i(r,Gt.prototype),r}(this,e)}addEventListener(e,t,l){qt(this)?function(e,t,n,l){mt(e,t,ht(e,n))}(this,e,t):n.call(this,e,t,l)}removeEventListener(e,t,n){qt(this)?function(e,t,n,l){bt(e,t,ht(e,n))}(this,e,t):l.call(this,e,t,n)}get shadowRoot(){if(qt(this)){const e=Ut(this);if("open"===e.mode)return e}return null}get tabIndex(){if(qt(this)&&Wt(this)&&I(ge.call(this,"tabindex")))return 0;return x(t.prototype,"tabIndex").get.call(this)}set tabIndex(e){if(qt(this)){const l=Wt(this),o=Ie.call(this),r=ge.call(this,"tabindex");x(t.prototype,"tabIndex").set.call(this,e);const c=Ie.call(this),a=ge.call(this,"tabindex"),i=o!==c;if(r&&(i||I(a))&&(-1===o&&hn(this),0===o&&l&&dn(this)),I(a))return;if(r&&a&&I(i))return;return-1===c&&(dn(n=this),Me.call(n,"mousedown",pn,!0),Me.call(n,"focusin",an)),void(0===c&&l&&function(e){hn(e),Me.call(e,"focusin",cn,!0)}(this))}var n;x(t.prototype,"tabIndex").set.call(this,e)}blur(){if(qt(this)&&Wt(this)){const e=function(e){const t=je(e),n=A.call(t);return D(n)?n:0!=(le.call(e,n)&z)?n:null}(this);if(!D(e))return void e.blur()}return o.call(this)}get childNodes(){if(qt(this)){const e=Cn(this);return St(D(e)?[]:Pn(e,An(this)))}return pe.call(this)}get children(){if(qt(this)){const e=Cn(this),t=D(e)?[]:Pn(e,An(this));return _t(b.call(t,e=>e instanceof Element))}return xe.call(this)}}}let Tn;c(Node.prototype,"getRootNode",{value:bn,enumerable:!0,configurable:!0,writable:!0});const On={childList:!0},Sn=Et("slotchange");function Ln(e){const t=Cn(e);if(D(t))return[];const n=E.call(pe.call(e));return M.call(n,(e,n)=>(Rn(t,n)||T.call(e,n),e),[])}function Mn(e){const t=E.call(pe.call(e));return M.call(t,(e,t)=>(t instanceof Element&&Dn(t)?T.apply(e,Mn(t)):T.call(e,t),e),[])}const{getRootNode:_n}=Node.prototype;function Cn(e){if(!(e instanceof Node))return null;const t=Fn(e);if(C(t))return null;let n=e;for(;!D(n)&&kn(n)!==t;)n=ie.call(n);return D(n)?null:n}function Dn(e){return"SLOT"===Re.call(e)}function Rn(e,t){const n=Fn(t);return C(n)||kn(e)===n}function In(e){const t=jt(e);return Pn(t,pe.call(t))}function Pn(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 xn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(Rn(e,t[n]))return t[n];return null}function An(e){let t;if(C(kn(e)))t=pe.call(e);else{const n=Te.call(e,"slot");t=M.call(n,(t,n)=>(Rn(e,n)&&T.apply(t,Ln(n)),t),[])}const n=Cn(e);return D(n)?[]:M.call(t,(e,t)=>(Rn(n,t)&&T.call(e,t),e),[])}const Hn="$$OwnerKey$$",$n="$$OwnKey$$";Symbol("x").toString();function Bn(e){return e[Hn]}function Fn(e){let t,n=e;for(;!D(n);){if(!C(t=n[Hn]))return t;n=ie.call(n)}}function kn(e){return e[$n]}const Wn="$$ShadowTokenKey$$";function jn(e,t){C(t)||(ye.call(e,t,""),e[Wn]=t)}function Un(e,t){const n=Cn(e);if(t===n)return Ut(n);if(t instanceof Element){if(Fn(e)===Fn(t))return t;if(!D(n)&&Dn(t)){const e=Cn(t);if(!D(e)&&Rn(n,e))return e}}return null}function qn(e){const t=a(e).constructor;class n{constructor(){throw new TypeError("Illegal constructor")}hasChildNodes(){return Kn(this).length>0}get firstChild(){return Kn(this)[0]||null}get lastChild(){const e=Kn(this);return e[e.length-1]||null}get textContent(){return Nt(this)}set textContent(e){fe.call(this,e)}get childElementCount(){return this.children.length}get firstElementChild(){return this.children[0]||null}get lastElementChild(){const{children:e}=this;return e.item(e.length-1)||null}get assignedSlot(){const e=ie.call(this);return D(e)||!Dn(e)||Fn(e)===Fn(this)?null:e}get parentNode(){const e=ie.call(this);return D(e)?e:Un(this,e)}get parentElement(){const e=ie.call(this);if(D(e))return null;const t=Un(this,e);return t instanceof Element?t:null}compareDocumentPosition(e){return _n.call(this)===e?10:Bn(this)!==Bn(e)?35:le.call(this,e)}contains(e){return Bn(this)===Bn(e)&&0!=(le.call(this,e)&z)}cloneNode(e){const t=ne.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}}return i(n,t),i(n.prototype,t.prototype),n}const Kn=function(e){return e.childNodes};let Gn,Vn;function Xn(){return C(Gn)&&(Gn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),R(Gn)}function Yn(){return C(Vn)&&(Vn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),R(Vn)}Document.prototype.elementFromPoint=function(e,t){const n=H.call(this,e,t);return D(n)?n:Ke(this,qe(n,!0))},c(document,"activeElement",{get(){let e=A.call(this);if(D(e))return e;for(;!C(Bn(e));)if(D(e=se.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),c(Document.prototype,"getElementById",{value(){const e=K.apply(this,E.call(arguments));if(D(e))return null;const t=Bn(this);return Bn(e)===t||Xn()?e:null},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelector",{value(){const e=q.apply(this,E.call(arguments)),t=Bn(this),n=y.call(e,e=>Bn(e)===t||Xn());return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelectorAll",{value(){const e=q.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Xn()))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByClassName",{value(){const e=G.apply(this,E.call(arguments)),t=Bn(this);return _t(b.call(e,e=>Bn(e)===t||Xn()))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagName",{value(){const e=V.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t)||Xn())},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagNameNS",{value(){const e=X.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t)||Xn())},writable:!0,enumerable:!0,configurable:!0}),c(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Y.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Xn()))},writable:!0,enumerable:!0,configurable:!0}),function(){const e=HTMLBodyElement.prototype;c(e,"querySelector",{value(){const e=Te.apply(this,E.call(arguments)),t=Bn(this),n=y.call(e,e=>Bn(e)===t||Yn());return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(e,"querySelectorAll",{value(){const e=Te.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByClassName",{value(){const e=Ae.apply(this,E.call(arguments)),t=Bn(this);return _t(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagName",{value(){const e=Se.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagNameNS",{value(){const e=Le.apply(this,E.call(arguments)),t=Bn(this);return St(b.call(e,e=>Bn(e)===t||Yn()))},writable:!0,enumerable:!0,configurable:!0})}(),void 0===window.ShadowRoot&&Object.defineProperty(window,"ShadowRoot",{value:Gt,configurable:!0,writable:!0});const zn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Jn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Qn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!zn)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",t=>e=t),t.click(),!zn.get.call(e)})()&&(HTMLElement.prototype.click=function(){Me.call(this,"click",Qn);try{Jn.value.call(this)}finally{_e.call(this,"click",Qn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&function(){const e=r(o(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1});Object.defineProperties(Event.prototype,{composed:{get(){const{type:t}=this;return 1===e[t]},configurable:!0,enumerable:!0}})}();const{CustomEvent:Zn}=window;function el(e,t){const n=new Zn(e,t);return Object.defineProperties(n,{composed:{get:()=>!(!t||!t.composed),configurable:!0,enumerable:!0}}),n}window.CustomEvent!==el&&(window.CustomEvent=el,window.CustomEvent.prototype=Zn.prototype),function(){const e=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get;Object.defineProperties(FocusEvent.prototype,{composed:{get(){const{isTrusted:t}=this,n=e.call(this);return!(!t||!1!==n)||n},enumerable:!0,configurable:!0}})}();const tl=window.MutationObserver,{disconnect:nl,observe:ll,takeRecords:ol}=tl.prototype,rl="$$lwcObserverCallbackWrapper$$",cl="$$lwcNodeObservers$$";function al(e){const{addedNodes:t,removedNodes:n,target:l,type:r}=e,c=o(MutationRecord.prototype);return f(c,{addedNodes:{get:()=>t,enumerable:!0,configurable:!0},removedNodes:{get:()=>n,enumerable:!0,configurable:!0},type:{get:()=>r,enumerable:!0,configurable:!0},target:{get:()=>l.shadowRoot,enumerable:!0,configurable:!0}}),c}function il(e,t){let n=t;for(;!D(n);){const t=n[cl];if(!C(t)&&(t[0]===e||-1!==N.call(t,e)))return!0;n=n.parentNode}return!1}function ul(e,t){return M.call(e,(e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:c}=n;if("childList"!==c||C(kn(l)))il(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];il(t,r)&&(!l[cl]||l[cl][0]!==t&&-1===N.call(l[cl],t)?T.call(e,al(n)):T.call(e,n))}else{const o=l.shadowRoot,c=r[0];Fn(l)===Fn(c)&&il(t,l)?T.call(e,n):o&&o[cl]&&(o[cl][0]===t||-1!==N.call(o[cl],t))&&T.call(e,al(n))}return e},[])}function sl(e){const t=function(e){let t=e[rl];return C(t)&&(t=e[rl]=((t,n)=>{const l=ul(t,n);0!==l.length&&e.call(n,l,n)})),t}(e);return new tl(t)}sl.prototype=tl.prototype,sl.prototype.disconnect=function(){nl.call(this)},sl.prototype.observe=function(e,t){return C(e[cl])&&c(e,cl,{value:[]}),T.call(e[cl],this),e instanceof Gt&&(e=e.host),ll.call(this,e,t)},sl.prototype.takeRecords=function(){return ul(ol.call(this),this)},c(window,"MutationObserver",{value:sl,configurable:!0,writable:!0});const fl=window.MutationObserver,pl=fl.prototype.observe;let dl;const hl={childList:!0,subtree:!0};function gl(e,t,n){if(Bn(e)!==t&&(function(e,t){e[Hn]=t}(e,t),e instanceof Element)){jn(e,n);const l=Kn(e);for(let e=0,o=l.length;e<o;e+=1){gl(l[e],t,n)}}}function ml(){return new fl(e=>{L.call(e,e=>{const{target:t,addedNodes:n}=e,l=Bn(t),o=function(e){return e[Wn]}(t);if(!C(l))for(let e=0,t=n.length;e<t;e+=1){gl(n[e],l,o)}})})}e.PatchedElement=Nn,e.PatchedIframeElement=function(e){const t=Nn(e);return class extends t{get contentWindow(){const e=Be.call(this);return e?(t=e,{postMessage(){return t.postMessage.apply(t,arguments)},blur(){return t.blur.apply(t,arguments)},close(){return t.close.apply(t,arguments)},focus(){return t.focus.apply(t,arguments)},get closed(){return t.closed},get frames(){return t.frames},get length(){return t.length},get location(){return t.location},set location(e){t.location=e},get opener(){return t.opener},get parent(){return t.parent},get self(){return t.self},get top(){return t.top},get window(){return t.window}}):e;var t}}},e.PatchedNode=qn,e.PatchedSlotElement=function(e){const t=Nn(e),{addEventListener:n}=e;return class extends t{addEventListener(e,t,l){"slotchange"!==e||vt(this,Sn)||(wt(this,Sn,!0),Tn||(Tn=new Yt(e=>{const t=[];L.call(e,e=>{const{target:n}=e;-1===N.call(t,n)&&(T.call(t,n),He.call(n,new CustomEvent("slotchange")))})})),zt.call(Tn,this,On)),n.call(this,e,t,l)}assignedElements(e){const t=!C(e)&&R(e.flatten)?Mn(this):Ln(this);return b.call(t,e=>e instanceof Element)}assignedNodes(e){return!C(e)&&R(e.flatten)?Mn(this):Ln(this)}get name(){const e=me.call(this,"name");return D(e)?"":e}get childNodes(){const e=Cn(this);return St(D(e)?[]:Pn(e,An(this)))}get children(){const e=Cn(this),t=D(e)?[]:Pn(e,An(this));return _t(b.call(t,e=>e instanceof Element))}}},e.markElementAsPortal=function(e){C(dl)&&(dl=ml()),pl.call(dl,e,hl)},e.patchEvent=it,e.setCSSToken=jn,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";const{freeze:t,seal:n,keys:o,create:l,assign:r,defineProperty:c,getPrototypeOf:a,setPrototypeOf:i,getOwnPropertyDescriptor:u,getOwnPropertyNames:s,defineProperties:f,getOwnPropertySymbols:p,hasOwnProperty:d,preventExtensions:h,isExtensible:g}=Object,{concat:m,filter:b,find:y,slice:E,splice:w,unshift:v,indexOf:N,push:T,map:O,join:S,forEach:L,reduce:M,reverse:_}=Array.prototype;function C(e){return void 0===e}function D(e){return null===e}function R(e){return!0===e}function I(e){return!1===e}function P(e){return"function"==typeof e}function A(e,t){do{const n=u(e,t);if(!C(n))return n;e=a(e)}while(null!==e)}const x=u(Document.prototype,"activeElement").get,H=d.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,$=u(Document.prototype,"defaultView").get,{createDocumentFragment:B,createElement:k,createElementNS:F,createTextNode:W,createComment:j,querySelector:U,querySelectorAll:q,getElementById:K,getElementsByClassName:G,getElementsByTagName:V,getElementsByTagNameNS:X}=Document.prototype,{getElementsByName:Y}=HTMLDocument.prototype,{DOCUMENT_POSITION_CONTAINED_BY:z,DOCUMENT_POSITION_CONTAINS:J,DOCUMENT_POSITION_PRECEDING:Q,DOCUMENT_POSITION_FOLLOWING:Z,DOCUMENT_FRAGMENT_NODE:ee}=Node,{appendChild:te,cloneNode:ne,compareDocumentPosition:oe,hasChildNodes:le,insertBefore:re,removeChild:ce,replaceChild:ae}=Node.prototype,ie=u(Node.prototype,"parentNode").get,ue=u(Node.prototype,"ownerDocument").get,se=d.call(Node.prototype,"parentElement")?u(Node.prototype,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,fe=u(Node.prototype,"textContent").set,pe=d.call(Node.prototype,"childNodes")?u(Node.prototype,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,de=u(Node.prototype,"nodeValue"),he=(de.set,de.get,d.call(Node.prototype,"isConnected")?u(Node.prototype,"isConnected").get:function(){const e=ue.call(this);return null===e||0!=(oe.call(e,this)&z)}),{hasAttribute:ge,getAttribute:me,getAttributeNS:be,setAttribute:ye,setAttributeNS:Ee,removeAttribute:we,removeAttributeNS:ve,querySelector:Ne,querySelectorAll:Te,getBoundingClientRect:Oe,getElementsByTagName:Se,getElementsByTagNameNS:Le}=Element.prototype;let{addEventListener:Me,removeEventListener:_e}=Element.prototype;Me=Me.__lwcOriginal__||Me,_e=_e.__lwcOriginal__||_e;const Ce=d.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML").set:u(HTMLElement.prototype,"innerHTML").set,De=d.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML").set:u(HTMLElement.prototype,"outerHTML").set,Re=u(Element.prototype,"tagName").get,Ie=u(HTMLElement.prototype,"tabIndex").get,Pe=d.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Ae=d.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,{getElementsByClassName:xe}=HTMLElement.prototype,He=(void 0!==window.ShadowRoot&&u(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),$e=void 0!==window.ShadowRoot,Be=u(HTMLIFrameElement.prototype,"contentWindow").get,ke=u(Event.prototype,"target").get,Fe=u(Event.prototype,"currentTarget").get,We=u(FocusEvent.prototype,"relatedTarget").get;function je(e){const t=ue.call(e);return null===t?e:t}function Ue(e){const t=je(e),n=$.call(t);if(null===n)throw new TypeError;return n}function qe(e,t){const n=[];let o=e;const l=e instanceof Window?e:Rn.call(e);for(;o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===ee&&o.host&&(t||o!==l)?o.host:o.parentNode;let r;return r=e instanceof Window?e.document:je(e),n[n.length-1]===r&&n.push(window),n}function Ke(e,t){if(D(e))return null;const n=qe(e,!0),o=t;for(let e,t,l,r,c=0;c<o.length;c++)if((l=(e=o[c])instanceof Window?e:Rn.call(e))!==t&&(r=n.indexOf(l),t=l),!(l instanceof Gt)||r>-1)return e;return null}let{addEventListener:Ge,removeEventListener:Ve}=window;function Xe(e){let t=null;try{if(!(t=e.$$lwcEventWrapper$$)){const n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){const t=ke.call(e);if(t instanceof Node){const e=je(t);if(0!=(oe.call(e,t)&z)&&Wn(t))return!0}return!1}(t)&&it(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Ye(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const l=Xe(t);Ge.call(this,e,l,n)}function ze(e,t,n){const o=Xe(t);Ve.call(this,e,o||t,n)}function Je(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const l=Xe(t);Me.call(this,e,l,n)}function Qe(e,t,n){const o=Xe(t);_e.call(this,e,o||t,n)}Ge=Ge.__lwcOriginal__||Ge,Ve=Ve.__lwcOriginal__||Ve,Je.__lwcOriginal__=Me,Qe.__lwcOriginal__=_e,Ye.__lwcOriginal__=Ge,ze.__lwcOriginal__=Ve,window.addEventListener=Ye,window.removeEventListener=ze,Node.prototype.addEventListener=Je,Node.prototype.removeEventListener=Qe;const{addEventListener:Ze,removeEventListener:et}=Node.prototype;var tt;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(tt||(tt={}));const nt=new WeakMap;function ot(e,t){return!!(oe.call(e,t)&z)}const lt={composed:!1};function rt(e,t){let n=Rn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=jt(n)),n}function ct(){const e=Fe.call(this),t=ke.call(this),n=qe(t,this.composed);if(!(e instanceof Node)){return Ke(je(t),n)}return Ke(nt.get(this)===tt.SHADOW_ROOT_LISTENER?Ut(e):e,n)}function at(){return qe(ke.call(this),this.composed)}function it(e){if(nt.has(e))return;f(e,{target:{get:ct,enumerable:!0,configurable:!0},composedPath:{value:at,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:ct,enumerable:!0,configurable:!0},path:{get:at,enumerable:!0,configurable:!0}});const t=A(e,"relatedTarget");if(!C(t)){const n=t.get;c(e,"relatedTarget",{get(){const e=nt.get(this),t=Fe.call(this),o=n.call(this);return D(o)?null:Ke(e===tt.SHADOW_ROOT_LISTENER?Ut(t):t,qe(o,!0))},enumerable:!0,configurable:!0})}nt.set(e,0)}const ut=new WeakMap;function st(e){let t=ut.get(e);return C(t)&&(t=l(null),ut.set(e,t)),t}const ft=new WeakMap;function pt(e,t){if(!P(t))throw new TypeError;let n=ft.get(t);return C(n)&&((n=function(n){const{composed:o}=n,l=ke.call(n),r=Fe.call(n);if(l!==r){const c=rt(l,{composed:o});(ot(c,r)||!1===o&&c===r)&&t.call(e,n)}}).placement=tt.SHADOW_ROOT_LISTENER,ft.set(t,n)),n}const dt=new WeakMap;function ht(e,t){if(!P(t))throw new TypeError;let n=dt.get(t);return C(n)&&((n=function(n){(function(e){const t=ke.call(e),n=Fe.call(e),{composed:o}=e;return!0===o||t===n||ot(rt(t,lt),n)})(n)&&t.call(e,n)}).placement=tt.CUSTOM_ELEMENT_LISTENER,dt.set(t,n)),n}function gt(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:l,stopPropagation:r}=e,a=st(Fe.call(e))[o];c(e,"stopImmediatePropagation",{value(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value(){n=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0});const i=E.call(a);function u(n){L.call(i,o=>{I(t)&&o.placement===n&&-1!==N.call(a,o)&&o.call(void 0,e)})}nt.set(e,tt.SHADOW_ROOT_LISTENER),u(tt.SHADOW_ROOT_LISTENER),I(t)&&I(n)&&(nt.set(e,tt.CUSTOM_ELEMENT_LISTENER),u(tt.CUSTOM_ELEMENT_LISTENER)),nt.set(e,0)}function mt(e,t,n){const o=st(e);let l=o[t];C(l)&&(l=o[t]=[]),0===l.length&&Ze.call(e,t,gt),T.call(l,n)}function bt(e,t,n){let o,l;C(l=st(e)[t])||-1===(o=N.call(l,n))||(w.call(l,o,1),0===l.length&&et.call(e,t,gt))}const yt="Symbol(x)"===Symbol("x").toString();function Et(e){return yt?Symbol(e):`$$lwc-${e}$$`}function wt(e,t,n){c(e,t,{value:n})}function vt(e,t){return e[t]}function Nt(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const t=Bn(e);let n="";for(let e=0,o=t.length;e<o;e+=1)n+=Nt(t[e]);return n}default:return e.nodeValue}}const Tt=Et("items");function Ot(){throw new TypeError("Illegal constructor")}function St(e){const t=l(Ot.prototype);return wt(t,Tt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Ot.prototype=l(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:Ot},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return vt(this,Tt).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(vt(this,Tt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Tt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Tt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return vt(this,Tt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=vt(this,Tt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),i(Ot,NodeList);const Lt=Et("items");function Mt(){throw new TypeError("Illegal constructor")}function _t(e){const t=l(Mt.prototype);return wt(t,Lt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Mt.prototype=l(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Mt},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return vt(this,Lt).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];const t=vt(this,Lt);for(let o=t.length-1;o>=0;o-=1){const l=t[o];if(((n=l).getAttribute("id")||n.getAttribute("name"))===e)return l}var n;return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(vt(this,Lt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Lt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(vt(this,Lt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return vt(this,Lt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=vt(this,Lt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),i(Mt,HTMLCollection);const Ct=/[&\u00A0"]/g,Dt=/[&\u00A0<>]/g,{replace:Rt,toLowerCase:It}=String.prototype;function Pt(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function At(e){return Rt.call(e,Ct,Pt)}const xt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Ht=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function $t(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const{attributes:t}=e,n=Re.call(e);let o="<"+It.call(n);for(let e,n=0;e=t[n];n++)o+=" "+e.name+'="'+At(e.value)+'"';return o+=">",xt.has(n)?o:o+function(e){let t="";const n=Bn(e);for(let e=0,o=n.length;e<o;e+=1)t+=$t(n[e]);return t}(e)+"</"+It.call(n)+">"}case Node.TEXT_NODE:{const{data:n,parentNode:o}=e;return o instanceof Element&&Ht.has(Re.call(o))?n:(t=n,Rt.call(t,Dt,Pt))}case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}var t}const Bt=Et("shadowRecord"),{createDocumentFragment:kt}=document;function Ft(e){const t=vt(e,Bt);if(C(t))throw new TypeError;return t}function Wt(e){return Ft(e).delegatesFocus}function jt(e){return Ft(e).host}function Ut(e){return Ft(e).shadowRoot}function qt(e){return!C(vt(e,Bt))}const Kt={constructor:{writable:!0,configurable:!0,value:Gt},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}};function Gt(){throw new TypeError("Illegal constructor")}r(Kt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return re.call(jt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ce.call(jt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return te.call(jt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ae.call(jt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){mt(jt(e),t,pt(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){bt(jt(e),t,pt(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return jt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return St(xn(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=jt(this);return this===e?0:this.contains(e)?20:oe.call(t,e)&z?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=jt(this);return 0!=(oe.call(t,e)&z)&&An(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Xn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Xn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Xn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return he.call(jt(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 jt(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Xn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Nt(e[n]);return t},set(e){const t=jt(this);fe.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=!C(e)&&!!e.composed;return I(t)?this:Rn.call(jt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return _t(b.call(xn(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}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=jt(e),o=Te.call(n,t);return $n(n,o)}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return St(function(e,t){const n=jt(e),o=Te.call(n,t);return Hn(n,o)}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Xn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=$t(e[n]);return t},set(e){const t=jt(this);Ce.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get(){const e=jt(this),t=je(e),n=x.call(t);if(D(n))return n;if(0==(oe.call(e,n)&z))return null;let o=n;for(;!An(e,o);)o=se.call(o);return Pn(o)?null:o}},delegatesFocus:{configurable:!0,get(){return Ft(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){const n=je(jt(this)),o=H.call(n,e,t);return D(o)?o:Ke(this,qe(o,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error}},host:{enumerable:!0,configurable:!0,get(){return jt(this)}},mode:{configurable:!0,get(){return Ft(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}}),Gt.prototype=l(DocumentFragment.prototype,Kt),$e&&i(Gt.prototype,window.ShadowRoot.prototype);let Vt=window.MutationObserver;if(void 0===Vt){function Xt(){}Xt.prototype={observe(){}},Vt=window.MutationObserver=Xt}const Yt=Vt,zt=Yt.prototype.observe,Jt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Qt(e){const{width:t,height:n}=Oe.call(e);return(t>0||n>0)&&"hidden"!==getComputedStyle(e).visibility}function Zt(e){return Pe.call(e,Jt)&&Qt(e)}const en={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function tn(e){const t=Re.call(e);return Qt(e)&&(function(e){if(I(ge.call(e,"tabindex")))return!1;const t=me.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||ge.call(e,"contenteditable")||d.call(en,t))}function nn(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];if(Zt(n))return n}return null}function on(e){const t=je(e),n=q.call(t,Jt),o=E.call(Te.call(e,Jt)),l=o[0],r=o[o.length-1],c=N.call(n,e),a=c>-1?c:N.call(n,l),i=0===o.length?a+1:N.call(n,r)+1;return{prev:E.call(n,0,a),inner:o,next:E.call(n,i)}}function ln(e,t){const n=oe.call(e,t);return n&z?0:n&Q?1:n&Z?2:-1}function rn(e){e.preventDefault(),e.stopPropagation()}function cn(e,t){Ge.call(e,"focusin",rn,!0),Ge.call(e,"focusout",rn,!0),t(),Ve.call(e,"focusin",rn,!0),Ve.call(e,"focusout",rn,!0)}function an(e,t){cn(Ue(e),()=>{const n=function(e){const{next:t}=e;return nn(t)}(t);D(n)?e.blur():n.focus()})}function un(e,t){cn(Ue(e),()=>{const n=function(e){const{prev:t}=e;return nn(_.call(t))}(t);D(n)?e.blur():n.focus()})}function sn(e,t){return function(e){for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(Zt(n))return n}return null}(t.inner)===e}function fn(e){const t=Fe.call(e),n=ke.call(e);if(t!==n)return;const o=We.call(e);if(D(o))return;const l=on(t);if(1===ln(t,o)){const e=nn(l.inner);if(D(e))an(n,l);else{cn(Ue(t),()=>{e.focus()})}}else t===n&&un(t,l)}function pn(e){const t=Fe.call(e),n=ke.call(e),o=We.call(e),l=on(t),r=function(e,t){return nn(t.inner)===e}(n,l),c=sn(n,l);if(!(I(r)&&I(c)||D(o)))switch(ln(t,o)){case 1:r&&an(n,l);break;case 2:c&&un(n,l)}}function dn(e){const t=Fe.call(e);_e.call(t,"focusin",pn),setTimeout(()=>{D(t)||-1!==Ie.call(t)||Me.call(t,"focusin",pn)},0)}function hn(e){const t=Fe.call(e),n=We.call(e);(D(n)||0!==ln(t,n))&&(_e.call(t,"focusin",dn,!0),_e.call(t,"focusout",hn,!0))}function gn(e){if(function(e){const t=je(e);return e!==x.call(t)&&tn(e)}(ke.call(e))){const t=Fe.call(e);Me.call(t,"focusin",dn,!0),Me.call(t,"focusout",hn,!0)}}function mn(e){_e.call(e,"focusin",fn,!0)}function bn(e){_e.call(e,"focusin",pn),_e.call(e,"mousedown",gn,!0)}const yn=Node.prototype.getRootNode,En=C(yn)?function(){let e,t=this;for(;!D(e=ie.call(t));)t=e;return t}:yn;function wn(e){return R(!C(e)&&!!e.composed)?En.call(this,e):function(e){const t=In(e);return D(t)?En.call(e):Ut(t)}(this)}function vn(e){let t=se.call(e);for(;!D(t)&&Pn(t);)e=t,t=se.call(e);return e}function Nn(e,t){const n=Un(e);let o=t instanceof Element?t:se.call(t);for(;!D(o)&&o!==e;){const t=jn(o),l=se.call(o);if(t===n)return Pn(o);if(l===e)return!1;if(D(l)||jn(l)===t)o=l;else{if(!Pn(l))return!1;if(!D(o=In(vn(l)))){if(o===e)return!0;if(jn(o)===n)return!0}}}return!1}function Tn(e,t){const n=In(e);if(D(n))return[];const o=Te.call(e,t);return Un(e)?function(e,t){const n=[];for(let o=0,l=t.length;o<l;o+=1){const l=t[o];!An(e,l)&&Nn(e,l)&&T.call(n,l)}return n}(e,o):Hn(n,o)}function On(e,t){const n=In(e);if(D(n))return null;const o=Te.call(e,t);return Un(e)?function(e,t){for(let n=0,o=t.length;n<o;n+=1){const o=t[n];if(!An(e,o)&&Nn(e,o))return o}return null}(e,o):$n(n,o)}function Sn(e){const t=Vn(e),{addEventListener:n,removeEventListener:o,blur:l}=e;return class extends t{querySelector(e){return On(this,e)}querySelectorAll(e){return St(Tn(this,e))}get innerHTML(){const e=Xn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=$t(e[n]);return t}set innerHTML(e){Ce.call(this,e)}get outerHTML(){return $t(this)}set outerHTML(e){De.call(this,e)}attachShadow(e){return function(e,t){if(!C(vt(e,Bt)))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:o}=t,l=je(e),r=kt.call(l),c={mode:n,delegatesFocus:!!o,host:e,shadowRoot:r};return wt(r,Bt,c),wt(e,Bt,c),i(r,Gt.prototype),r}(this,e)}addEventListener(e,t,o){qt(this)?function(e,t,n,o){mt(e,t,ht(e,n))}(this,e,t):n.call(this,e,t,o)}removeEventListener(e,t,n){qt(this)?function(e,t,n,o){bt(e,t,ht(e,n))}(this,e,t):o.call(this,e,t,n)}get shadowRoot(){if(qt(this)){const e=Ut(this);if("open"===e.mode)return e}return null}get tabIndex(){if(qt(this)&&Wt(this)&&I(ge.call(this,"tabindex")))return 0;return A(t.prototype,"tabIndex").get.call(this)}set tabIndex(e){if(qt(this)){const o=Wt(this),l=Ie.call(this),r=ge.call(this,"tabindex");A(t.prototype,"tabIndex").set.call(this,e);const c=Ie.call(this),a=ge.call(this,"tabindex"),i=l!==c;if(r&&(i||I(a))&&(-1===l&&bn(this),0===l&&o&&mn(this)),I(a))return;if(r&&a&&I(i))return;return-1===c&&(mn(n=this),Me.call(n,"mousedown",gn,!0),Me.call(n,"focusin",pn)),void(0===c&&o&&function(e){bn(e),Me.call(e,"focusin",fn,!0)}(this))}var n;A(t.prototype,"tabIndex").set.call(this,e)}blur(){if(qt(this)&&Wt(this)){const e=function(e){const t=je(e),n=x.call(t);return D(n)?n:0!=(oe.call(e,n)&z)?n:null}(this);if(!D(e))return void e.blur()}return l.call(this)}get childNodes(){if(qt(this)){const e=In(this);return St(D(e)?[]:Hn(e,Bn(this)))}return pe.call(this)}get children(){if(qt(this)){const e=In(this),t=D(e)?[]:Hn(e,Bn(this));return _t(b.call(t,e=>e instanceof Element))}return Ae.call(this)}}}let Ln;c(Node.prototype,"getRootNode",{value:wn,enumerable:!0,configurable:!0,writable:!0});const Mn={childList:!0},_n=Et("slotchange");function Cn(e){const t=In(e);if(D(t))return[];const n=E.call(pe.call(e));return M.call(n,(e,n)=>(An(t,n)||T.call(e,n),e),[])}function Dn(e){const t=E.call(pe.call(e));return M.call(t,(e,t)=>(t instanceof Element&&Pn(t)?T.apply(e,Dn(t)):T.call(e,t),e),[])}const{getRootNode:Rn}=Node.prototype;function In(e){if(!(e instanceof Node))return null;const t=jn(e);if(C(t))return null;let n=e;for(;!D(n)&&Un(n)!==t;)n=ie.call(n);return D(n)?null:n}function Pn(e){return"SLOT"===Re.call(e)}function An(e,t){const n=jn(t);return C(n)||Un(e)===n}function xn(e){const t=jt(e);return Hn(t,pe.call(t))}function Hn(e,t){const n=[];for(let o=0,l=t.length;o<l;o+=1){const l=t[o];An(e,l)&&T.call(n,l)}return n}function $n(e,t){for(let n=0,o=t.length;n<o;n+=1)if(An(e,t[n]))return t[n];return null}function Bn(e){let t;if(C(Un(e)))t=pe.call(e);else{const n=Te.call(e,"slot");t=M.call(n,(t,n)=>(An(e,n)&&T.apply(t,Cn(n)),t),[])}const n=In(e);return D(n)?[]:M.call(t,(e,t)=>(An(n,t)&&T.call(e,t),e),[])}const kn="$$OwnerKey$$",Fn="$$OwnKey$$";Symbol("x").toString();function Wn(e){return e[kn]}function jn(e){let t,n=e;for(;!D(n);){if(!C(t=n[kn]))return t;n=ie.call(n)}}function Un(e){return e[Fn]}const qn="$$ShadowTokenKey$$";function Kn(e,t){C(t)||(ye.call(e,t,""),e[qn]=t)}function Gn(e,t){const n=In(e);if(t===n)return Ut(n);if(t instanceof Element){if(jn(e)===jn(t))return t;if(!D(n)&&Pn(t)){const e=In(t);if(!D(e)&&An(n,e))return e}}return null}function Vn(e){const t=a(e).constructor;class n{constructor(){throw new TypeError("Illegal constructor")}hasChildNodes(){return Xn(this).length>0}get firstChild(){return Xn(this)[0]||null}get lastChild(){const e=Xn(this);return e[e.length-1]||null}get textContent(){return Nt(this)}set textContent(e){fe.call(this,e)}get childElementCount(){return this.children.length}get firstElementChild(){return this.children[0]||null}get lastElementChild(){const{children:e}=this;return e.item(e.length-1)||null}get assignedSlot(){const e=ie.call(this);return D(e)||!Pn(e)||jn(e)===jn(this)?null:e}get parentNode(){const e=ie.call(this);return D(e)?e:Gn(this,e)}get parentElement(){const e=ie.call(this);if(D(e))return null;const t=Gn(this,e);return t instanceof Element?t:null}compareDocumentPosition(e){return Rn.call(this)===e?10:Wn(this)!==Wn(e)?35:oe.call(this,e)}contains(e){return Wn(this)===Wn(e)&&0!=(oe.call(this,e)&z)}cloneNode(e){const t=ne.call(this,!1);if(!e)return t;const n=Xn(this);for(let e=0,o=n.length;e<o;e+=1)t.appendChild(n[e].cloneNode(!0));return t}}return i(n,t),i(n.prototype,t.prototype),n}const Xn=function(e){return e.childNodes};let Yn,zn;function Jn(){return C(Yn)&&(Yn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),R(Yn)}function Qn(){return C(zn)&&(zn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),R(zn)}Document.prototype.elementFromPoint=function(e,t){const n=H.call(this,e,t);return D(n)?n:Ke(this,qe(n,!0))},c(document,"activeElement",{get(){let e=x.call(this);if(D(e))return e;for(;!C(Wn(e));)if(D(e=se.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),c(Document.prototype,"getElementById",{value(){const e=K.apply(this,E.call(arguments));if(D(e))return null;const t=Wn(this);return Wn(e)===t||Jn()?e:null},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelector",{value(){const e=q.apply(this,E.call(arguments)),t=Wn(this),n=y.call(e,e=>Wn(e)===t||Jn());return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelectorAll",{value(){const e=q.apply(this,E.call(arguments)),t=Wn(this);return St(b.call(e,e=>Wn(e)===t||Jn()))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByClassName",{value(){const e=G.apply(this,E.call(arguments)),t=Wn(this);return _t(b.call(e,e=>Wn(e)===t||Jn()))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagName",{value(){const e=V.apply(this,E.call(arguments)),t=Wn(this);return St(b.call(e,e=>Wn(e)===t)||Jn())},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagNameNS",{value(){const e=X.apply(this,E.call(arguments)),t=Wn(this);return St(b.call(e,e=>Wn(e)===t)||Jn())},writable:!0,enumerable:!0,configurable:!0}),c(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=Y.apply(this,E.call(arguments)),t=Wn(this);return St(b.call(e,e=>Wn(e)===t||Jn()))},writable:!0,enumerable:!0,configurable:!0}),function(){const e=HTMLBodyElement.prototype;c(e,"querySelector",{value(){const e=Te.apply(this,E.call(arguments)),t=Wn(this),n=y.call(e,e=>Wn(e)===t||Qn());return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(e,"querySelectorAll",{value(){const e=Te.apply(this,E.call(arguments)),t=Wn(this);return St(b.call(e,e=>Wn(e)===t||Qn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByClassName",{value(){const e=xe.apply(this,E.call(arguments)),t=Wn(this);return _t(b.call(e,e=>Wn(e)===t||Qn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagName",{value(){const e=Se.apply(this,E.call(arguments)),t=Wn(this);return St(b.call(e,e=>Wn(e)===t||Qn()))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagNameNS",{value(){const e=Le.apply(this,E.call(arguments)),t=Wn(this);return St(b.call(e,e=>Wn(e)===t||Qn()))},writable:!0,enumerable:!0,configurable:!0})}(),void 0===window.ShadowRoot&&Object.defineProperty(window,"ShadowRoot",{value:Gt,configurable:!0,writable:!0});const Zn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const eo=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function to(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Zn)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",t=>e=t),t.click(),!Zn.get.call(e)})()&&(HTMLElement.prototype.click=function(){Me.call(this,"click",to);try{eo.value.call(this)}finally{_e.call(this,"click",to)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&function(){const e=r(l(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1});Object.defineProperties(Event.prototype,{composed:{get(){const{type:t}=this;return 1===e[t]},configurable:!0,enumerable:!0}})}();const{CustomEvent:no}=window;function oo(e,t){const n=new no(e,t);return Object.defineProperties(n,{composed:{get:()=>!(!t||!t.composed),configurable:!0,enumerable:!0}}),n}window.CustomEvent!==oo&&(window.CustomEvent=oo,window.CustomEvent.prototype=no.prototype),function(){const e=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get;Object.defineProperties(FocusEvent.prototype,{composed:{get(){const{isTrusted:t}=this,n=e.call(this);return!(!t||!1!==n)||n},enumerable:!0,configurable:!0}})}();const lo=window.MutationObserver,{disconnect:ro,observe:co,takeRecords:ao}=lo.prototype,io="$$lwcObserverCallbackWrapper$$",uo="$$lwcNodeObservers$$";function so(e){const{addedNodes:t,removedNodes:n,target:o,type:r}=e,c=l(MutationRecord.prototype);return f(c,{addedNodes:{get:()=>t,enumerable:!0,configurable:!0},removedNodes:{get:()=>n,enumerable:!0,configurable:!0},type:{get:()=>r,enumerable:!0,configurable:!0},target:{get:()=>o.shadowRoot,enumerable:!0,configurable:!0}}),c}function fo(e,t){let n=t;for(;!D(n);){const t=n[uo];if(!C(t)&&(t[0]===e||-1!==N.call(t,e)))return!0;n=n.parentNode}return!1}function po(e,t){return M.call(e,(e,n)=>{const{target:o,addedNodes:l,removedNodes:r,type:c}=n;if("childList"!==c||C(Un(o)))fo(t,o)&&T.call(e,n);else if(l.length>0){const r=l[0];fo(t,r)&&(!o[uo]||o[uo][0]!==t&&-1===N.call(o[uo],t)?T.call(e,so(n)):T.call(e,n))}else{const l=o.shadowRoot,c=r[0];jn(o)===jn(c)&&fo(t,o)?T.call(e,n):l&&l[uo]&&(l[uo][0]===t||-1!==N.call(l[uo],t))&&T.call(e,so(n))}return e},[])}function ho(e){const t=function(e){let t=e[io];return C(t)&&(t=e[io]=((t,n)=>{const o=po(t,n);0!==o.length&&e.call(n,o,n)})),t}(e);return new lo(t)}ho.prototype=lo.prototype,ho.prototype.disconnect=function(){ro.call(this)},ho.prototype.observe=function(e,t){return C(e[uo])&&c(e,uo,{value:[]}),T.call(e[uo],this),e instanceof Gt&&(e=e.host),co.call(this,e,t)},ho.prototype.takeRecords=function(){return po(ao.call(this),this)},c(window,"MutationObserver",{value:ho,configurable:!0,writable:!0});const go=window.MutationObserver,mo=go.prototype.observe;let bo;const yo={childList:!0,subtree:!0};function Eo(e,t,n){if(Wn(e)!==t&&(function(e,t){e[kn]=t}(e,t),e instanceof Element)){Kn(e,n);const o=Xn(e);for(let e=0,l=o.length;e<l;e+=1){Eo(o[e],t,n)}}}function wo(){return new go(e=>{L.call(e,e=>{const{target:t,addedNodes:n}=e,o=Wn(t),l=function(e){return e[qn]}(t);if(!C(o))for(let e=0,t=n.length;e<t;e+=1){Eo(n[e],o,l)}})})}e.PatchedElement=Sn,e.PatchedIframeElement=function(e){const t=Sn(e);return class extends t{get contentWindow(){const e=Be.call(this);return e?(t=e,{postMessage(){return t.postMessage.apply(t,arguments)},blur(){return t.blur.apply(t,arguments)},close(){return t.close.apply(t,arguments)},focus(){return t.focus.apply(t,arguments)},get closed(){return t.closed},get frames(){return t.frames},get length(){return t.length},get location(){return t.location},set location(e){t.location=e},get opener(){return t.opener},get parent(){return t.parent},get self(){return t.self},get top(){return t.top},get window(){return t.window}}):e;var t}}},e.PatchedNode=Vn,e.PatchedSlotElement=function(e){const t=Sn(e),{addEventListener:n}=e;return class extends t{addEventListener(e,t,o){"slotchange"!==e||vt(this,_n)||(wt(this,_n,!0),Ln||(Ln=new Yt(e=>{const t=[];L.call(e,e=>{const{target:n}=e;-1===N.call(t,n)&&(T.call(t,n),He.call(n,new CustomEvent("slotchange")))})})),zt.call(Ln,this,Mn)),n.call(this,e,t,o)}assignedElements(e){const t=!C(e)&&R(e.flatten)?Dn(this):Cn(this);return b.call(t,e=>e instanceof Element)}assignedNodes(e){return!C(e)&&R(e.flatten)?Dn(this):Cn(this)}get name(){const e=me.call(this,"name");return D(e)?"":e}get childNodes(){const e=In(this);return St(D(e)?[]:Hn(e,Bn(this)))}get children(){const e=In(this),t=D(e)?[]:Hn(e,Bn(this));return _t(b.call(t,e=>e instanceof Element))}}},e.markElementAsPortal=function(e){C(bo)&&(bo=wo()),mo.call(bo,e,yo)},e.patchEvent=it,e.setCSSToken=Kn,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";var t=Object.create,n=Object.assign,r=Object.defineProperty,o=Object.getPrototypeOf,l=Object.setPrototypeOf,a=Object.getOwnPropertyDescriptor,i=Object.defineProperties,u=Object.hasOwnProperty,c=Array.prototype,f=c.filter,s=c.find,p=c.slice,d=c.splice,b=c.indexOf,h=c.push,v=c.map,g=c.forEach,m=c.reduce,y=c.reverse;function E(e){return void 0===e}function w(e){return null===e}function N(e){return!0===e}function O(e){return!1===e}function T(e){return"function"==typeof e}function S(e,t){do{var n=a(e,t);if(!E(n))return n;e=o(e)}while(null!==e)}var _=a(Document.prototype,"activeElement").get,L=u.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,M=a(Document.prototype,"defaultView").get,P=Document.prototype,C=(P.createDocumentFragment,P.createElement,P.createElementNS,P.createTextNode,P.createComment,P.querySelector,P.querySelectorAll),D=P.getElementById,R=P.getElementsByClassName,I=P.getElementsByTagName,A=P.getElementsByTagNameNS,j=HTMLDocument.prototype.getElementsByName,x=Node.DOCUMENT_POSITION_CONTAINED_BY,H=(Node.DOCUMENT_POSITION_CONTAINS,Node.DOCUMENT_POSITION_PRECEDING),$=Node.DOCUMENT_POSITION_FOLLOWING,B=Node.DOCUMENT_FRAGMENT_NODE,F=Node.prototype,k=F.appendChild,W=F.cloneNode,U=F.compareDocumentPosition,q=(F.hasChildNodes,F.insertBefore),K=F.removeChild,G=F.replaceChild,V=a(Node.prototype,"parentNode").get,X=a(Node.prototype,"ownerDocument").get,Y=u.call(Node.prototype,"parentElement")?a(Node.prototype,"parentElement").get:a(HTMLElement.prototype,"parentElement").get,z=a(Node.prototype,"textContent").set,J=u.call(Node.prototype,"childNodes")?a(Node.prototype,"childNodes").get:a(HTMLElement.prototype,"childNodes").get,Q=a(Node.prototype,"nodeValue"),Z=(Q.set,Q.get,u.call(Node.prototype,"isConnected")?a(Node.prototype,"isConnected").get:function(){var e=X.call(this);return null===e||0!=(U.call(e,this)&x)}),ee=Element.prototype,te=ee.hasAttribute,ne=ee.getAttribute,re=(ee.getAttributeNS,ee.setAttribute),oe=(ee.setAttributeNS,ee.removeAttribute,ee.removeAttributeNS,ee.querySelector,ee.querySelectorAll),le=ee.getBoundingClientRect,ae=ee.getElementsByTagName,ie=ee.getElementsByTagNameNS,ue=Element.prototype,ce=ue.addEventListener,fe=ue.removeEventListener;ce=ce.__lwcOriginal__||ce,fe=fe.__lwcOriginal__||fe;var se=u.call(Element.prototype,"innerHTML")?a(Element.prototype,"innerHTML").set:a(HTMLElement.prototype,"innerHTML").set,pe=u.call(Element.prototype,"outerHTML")?a(Element.prototype,"outerHTML").set:a(HTMLElement.prototype,"outerHTML").set,de=a(Element.prototype,"tagName").get,be=a(HTMLElement.prototype,"tabIndex").get,he=u.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,ve=u.call(Element.prototype,"children")?a(Element.prototype,"children").get:a(HTMLElement.prototype,"children").get,ge=HTMLElement.prototype.getElementsByClassName,me=(void 0!==window.ShadowRoot&&a(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),ye=void 0!==window.ShadowRoot,Ee=a(HTMLIFrameElement.prototype,"contentWindow").get,we=a(Event.prototype,"target").get,Ne=a(Event.prototype,"currentTarget").get,Oe=a(FocusEvent.prototype,"relatedTarget").get;function Te(e){var t=X.call(e);return null===t?e:t}function Se(e){var t=Te(e),n=M.call(t);if(null===n)throw new TypeError;return n}function _e(e,t){for(var n,r=[],o=e,l=e instanceof Window?e:vn.call(e);o;)r.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===B&&o.host&&(t||o!==l)?o.host:o.parentNode;return n=e instanceof Window?e.document:Te(e),r[r.length-1]===n&&r.push(window),r}function Le(e,t){if(w(e))return null;for(var n=_e(e,!0),r=t,o=0,l=void 0,a=void 0,i=void 0,u=void 0;o<r.length;o++)if((i=(l=r[o])instanceof Window?l:vn.call(l))!==a&&(u=n.indexOf(i),a=i),!(i instanceof Rt)||u>-1)return l;return null}var Me=window.addEventListener,Pe=window.removeEventListener;function Ce(e){var t=null;try{if(!(t=e.$$lwcEventWrapper$$)){var n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){var t=we.call(e);if(t instanceof Node){var n=Te(t);if(0!=(U.call(n,t)&x)&&_n(t))return!0}return!1}(t)&&Ke(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function De(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ce(t);Me.call(this,e,o,n)}}function Re(e,t,n){var r=Ce(t);Pe.call(this,e,r||t,n)}function Ie(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ce(t);ce.call(this,e,o,n)}}function Ae(e,t,n){var r=Ce(t);fe.call(this,e,r||t,n)}Me=Me.__lwcOriginal__||Me,Pe=Pe.__lwcOriginal__||Pe,Ie.__lwcOriginal__=ce,Ae.__lwcOriginal__=fe,De.__lwcOriginal__=Me,Re.__lwcOriginal__=Pe,window.addEventListener=De,window.removeEventListener=Re,Node.prototype.addEventListener=Ie,Node.prototype.removeEventListener=Ae;var je,xe=Node.prototype,He=xe.addEventListener,$e=xe.removeEventListener;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(je||(je={}));var Be=new WeakMap;function Fe(e,t){return!!(U.call(e,t)&x)}var ke={composed:!1};function We(e,t){var n=vn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=Mt(n)),n}function Ue(){var e=Ne.call(this),t=we.call(this),n=_e(t,this.composed);return e instanceof Node?Le(Be.get(this)===je.SHADOW_ROOT_LISTENER?Pt(e):e,n):Le(Te(t),n)}function qe(){return _e(we.call(this),this.composed)}function Ke(e){if(!Be.has(e)){i(e,{target:{get:Ue,enumerable:!0,configurable:!0},composedPath:{value:qe,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Ue,enumerable:!0,configurable:!0},path:{get:qe,enumerable:!0,configurable:!0}});var t=S(e,"relatedTarget");if(!E(t)){var n=t.get;r(e,"relatedTarget",{get:function(){var e=Be.get(this),t=Ne.call(this),r=n.call(this);return w(r)?null:Le(e===je.SHADOW_ROOT_LISTENER?Pt(t):t,_e(r,!0))},enumerable:!0,configurable:!0})}Be.set(e,0)}}var Ge=new WeakMap;function Ve(e){var n=Ge.get(e);return E(n)&&(n=t(null),Ge.set(e,n)),n}var Xe=new WeakMap;function Ye(e,t){if(!T(t))throw new TypeError;var n=Xe.get(t);return E(n)&&((n=function(n){var r=n.composed,o=we.call(n),l=Ne.call(n);if(o!==l){var a=We(o,{composed:r});(Fe(a,l)||!1===r&&a===l)&&t.call(e,n)}}).placement=je.SHADOW_ROOT_LISTENER,Xe.set(t,n)),n}var ze=new WeakMap;function Je(e,t){if(!T(t))throw new TypeError;var n=ze.get(t);return E(n)&&((n=function(n){(function(e){var t=we.call(e),n=Ne.call(e);return!0===e.composed||t===n||Fe(We(t,ke),n)})(n)&&t.call(e,n)}).placement=je.CUSTOM_ELEMENT_LISTENER,ze.set(t,n)),n}function Qe(e){var t=!1,n=!1,o=e.type,l=e.stopImmediatePropagation,a=e.stopPropagation,i=Ve(Ne.call(e))[o];r(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),r(e,"stopPropagation",{value:function(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=p.call(i);function c(n){g.call(u,function(r){O(t)&&r.placement===n&&-1!==b.call(i,r)&&r.call(void 0,e)})}Be.set(e,je.SHADOW_ROOT_LISTENER),c(je.SHADOW_ROOT_LISTENER),O(t)&&O(n)&&(Be.set(e,je.CUSTOM_ELEMENT_LISTENER),c(je.CUSTOM_ELEMENT_LISTENER)),Be.set(e,0)}function Ze(e,t,n){var r=Ve(e),o=r[t];E(o)&&(o=r[t]=[]),0===o.length&&He.call(e,t,Qe),h.call(o,n)}function et(e,t,n){var r,o;E(o=Ve(e)[t])||-1===(r=b.call(o,n))||(d.call(o,r,1),0===o.length&&$e.call(e,t,Qe))}var tt,nt="Symbol(x)"===Symbol("x").toString();function rt(e){return nt?Symbol(e):"$$lwc-"+e+"$$"}function ot(e,t,n){r(e,t,{value:n})}function lt(e,t){return e[t]}function at(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=On(e),n="",r=0,o=t.length;r<o;r+=1)n+=at(t[r]);return n;default:return e.nodeValue}}var it,ut=rt("items");function ct(){throw new TypeError("Illegal constructor")}function ft(e){var n=t(ct.prototype);return ot(n,ut,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}ct.prototype=t(NodeList.prototype,((tt={constructor:{writable:!0,configurable:!0,value:ct},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return lt(this,ut).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(lt(this,ut),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,ut),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,ut),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return lt(this,ut)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=lt(e,ut);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},tt)),l(ct,NodeList);var st=rt("items");function pt(){throw new TypeError("Illegal constructor")}function dt(e){var n=t(pt.prototype);return ot(n,st,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}pt.prototype=t(HTMLCollection.prototype,((it={constructor:{writable:!0,configurable:!0,value:pt},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return lt(this,st).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];for(var t,n=lt(this,st),r=n.length-1;r>=0;r-=1){var o=n[r];if(((t=o).getAttribute("id")||t.getAttribute("name"))===e)return o}return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(lt(this,st),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,st),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,st),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return lt(this,st)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=lt(e,st);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},it)),l(pt,HTMLCollection);var bt=/[&\u00A0"]/g,ht=/[&\u00A0<>]/g,vt=String.prototype,gt=vt.replace,mt=vt.toLowerCase;function yt(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function Et(e){return gt.call(e,bt,yt)}var wt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Nt=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Ot(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=e.attributes,n=de.call(e),r="<"+mt.call(n),o=0,l=void 0;l=t[o];o++)r+=" "+l.name+'="'+Et(l.value)+'"';return r+=">",wt.has(n)?r:r+function(e){for(var t="",n=On(e),r=0,o=n.length;r<o;r+=1)t+=Ot(n[r]);return t}(e)+"</"+mt.call(n)+">";case Node.TEXT_NODE:var a=e,i=a.data,u=a.parentNode;return u instanceof Element&&Nt.has(de.call(u))?i:function(e){return gt.call(e,ht,yt)}(i);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}}var Tt=rt("shadowRecord"),St=document.createDocumentFragment;function _t(e){var t=lt(e,Tt);if(E(t))throw new TypeError;return t}function Lt(e){return _t(e).delegatesFocus}function Mt(e){return _t(e).host}function Pt(e){return _t(e).shadowRoot}function Ct(e){return!E(lt(e,Tt))}var Dt={constructor:{writable:!0,configurable:!0,value:Rt},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}};function Rt(){throw new TypeError("Illegal constructor")}n(Dt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return q.call(Mt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return K.call(Mt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return k.call(Mt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return G.call(Mt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){Ze(Mt(e),t,Ye(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){et(Mt(e),t,Ye(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Mt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return ft(En(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Mt(this);return this===e?0:this.contains(e)?20:U.call(t,e)&x?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Mt(this);return 0!=(U.call(t,e)&x)&&yn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return xn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=xn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return xn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return Z.call(Mt(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 Mt(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=xn(this),t="",n=0,r=e.length;n<r;n+=1)t+=at(e[n]);return t},set:function(e){var t=Mt(this);z.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=!E(e)&&!!e.composed;return O(t)?this:vn.call(Mt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return dt(f.call(En(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}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,n=Mt(this),r=oe.call(n,t),Nn(n,r);var t,n,r}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return ft((t=e,n=Mt(this),r=oe.call(n,t),wn(n,r)));var t,n,r}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=xn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Ot(e[n]);return t},set:function(e){var t=Mt(this);se.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Mt(this),t=Te(e),n=_.call(t);if(w(n))return n;if(0==(U.call(e,n)&x))return null;for(var r=n;!yn(e,r);)r=Y.call(r);return mn(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return _t(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){var n=Te(Mt(this)),r=L.call(n,e,t);return w(r)?r:Le(this,_e(r,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error}},host:{enumerable:!0,configurable:!0,get:function(){return Mt(this)}},mode:{configurable:!0,get:function(){return _t(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}}),Rt.prototype=t(DocumentFragment.prototype,Dt),ye&&l(Rt.prototype,window.ShadowRoot.prototype);var It=function(e,t){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function At(e,t){function n(){this.constructor=e}It(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jt=window.MutationObserver;if(void 0===jt){function xt(){}xt.prototype={observe:function(){}},jt=window.MutationObserver=xt}var Ht=jt,$t=Ht.prototype.observe,Bt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Ft(e){var t=le.call(e),n=t.width,r=t.height;return(n>0||r>0)&&"hidden"!==getComputedStyle(e).visibility}var kt={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Wt(e){var t=de.call(e);return Ft(e)&&(function(e){if(O(te.call(e,"tabindex")))return!1;var t=ne.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||te.call(e,"contenteditable")||u.call(kt,t))}function Ut(e){var t=Te(e),n=C.call(t,Bt),r=p.call(oe.call(e,Bt)),o=r[0],l=r[r.length-1],a=b.call(n,e),i=a>-1?a:b.call(n,o),u=0===r.length?i+1:b.call(n,l)+1;return{prev:p.call(n,0,i),inner:r,next:p.call(n,u)}}function qt(e,t){var n=U.call(e,t);return n&x?0:n&H?1:n&$?2:-1}function Kt(e){e.preventDefault(),e.stopPropagation()}function Gt(e,t){Me.call(e,"focusin",Kt,!0),Me.call(e,"focusout",Kt,!0),t(),Pe.call(e,"focusin",Kt,!0),Pe.call(e,"focusout",Kt,!0)}function Vt(e,t,n){var r=Se(n),o=function(e,t){var n=e.length;if(n>0)for(var r=0;r<n;r+=1){var o=e[r];if(zt(vn.call(t),o))return o}return null}(e,n);w(o)?Gt(r,function(){t.blur()}):Gt(r,function(){o.focus()})}function Xt(e){var t=Ne.call(e),n=we.call(e);if(t===n){var r=Oe.call(e);if(!w(r)){var o=Ut(t);if(1===qt(t,r)){var l=zt.bind(null,vn.call(t)),a=s.call(o.inner,l);if(E(a))Vt(o.next,n,r);else Gt(Se(a),function(){a.focus()})}else t===n&&Vt(y.call(o.prev),n,r)}}}function Yt(e){var t=Oe.call(e);if(!w(t)){var n=Ne.call(e),r=Ut(n);if(-1===b.call(r.inner,t)){var o=we.call(e),l=qt(n,t);1===l&&Vt(r.next,o,t),2===l&&Vt(y.call(r.prev),o,t)}}}function zt(e,t){if(n=t,!he.call(n,Bt)||!Ft(n))return!1;for(var n,r=Te(t),o=vn.call(t);o!==r&&o!==e;){var l=o.host;if("-1"===ne.call(l,"tabindex"))return!1;o=l&&vn.call(l)}return!0}function Jt(e){var t=Ne.call(e);fe.call(t,"focusin",Yt),setTimeout(function(){w(t)||-1!==be.call(t)||ce.call(t,"focusin",Yt)},0)}function Qt(e){var t=Ne.call(e),n=Oe.call(e);(w(n)||0!==qt(t,n))&&(fe.call(t,"focusin",Jt,!0),fe.call(t,"focusout",Qt,!0))}function Zt(e){if(function(e){var t=Te(e);return e!==_.call(t)&&Wt(e)}(we.call(e))){var t=Ne.call(e);ce.call(t,"focusin",Jt,!0),ce.call(t,"focusout",Qt,!0)}}function en(e){fe.call(e,"focusin",Xt,!0)}function tn(e){fe.call(e,"focusin",Yt),fe.call(e,"mousedown",Zt,!0)}var nn,rn=Node.prototype.getRootNode,on=E(rn)?function(){for(var e,t=this;!w(e=V.call(t));)t=e;return t}:rn;function ln(e){var t,n;return N(!E(e)&&!!e.composed)?on.call(this,e):w(n=gn(t=this))?on.call(t):Pt(n)}function an(e){for(var t=Y.call(e);!w(t)&&mn(t);)e=t,t=Y.call(e);return e}function un(e,t){for(var n=Mn(e),r=t instanceof Element?t:Y.call(t);!w(r)&&r!==e;){var o=Ln(r),l=Y.call(r);if(o===n)return mn(r);if(l===e)return!1;if(w(l)||Ln(l)===o)r=l;else{if(!mn(l))return!1;if(!w(r=gn(an(l)))){if(r===e)return!0;if(Ln(r)===n)return!0}}}return!1}function cn(e,t){var n=gn(e);if(w(n))return[];var r=oe.call(e,t);return Mn(e)?function(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];!yn(e,l)&&un(e,l)&&h.call(n,l)}return n}(e,r):wn(n,r)}function fn(e,t){var n=gn(e);if(w(n))return null;var r=oe.call(e,t);return Mn(e)?function(e,t){for(var n=0,r=t.length;n<r;n+=1){var o=t[n];if(!yn(e,o)&&un(e,o))return o}return null}(e,r):Nn(n,r)}function sn(e){var t=Rn(e),n=e.addEventListener,r=e.removeEventListener,o=e.blur;return function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return At(a,e),a.prototype.querySelector=function(e){return fn(this,e)},a.prototype.querySelectorAll=function(e){return ft(cn(this,e))},Object.defineProperty(a.prototype,"innerHTML",{get:function(){for(var e=xn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Ot(e[n]);return t},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"outerHTML",{get:function(){return Ot(this)},set:function(e){pe.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.attachShadow=function(e){return function(e,t){if(!E(lt(e,Tt)))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,o=Te(e),a=St.call(o),i={mode:n,delegatesFocus:!!r,host:e,shadowRoot:a};return ot(a,Tt,i),ot(e,Tt,i),l(a,Rt.prototype),a}(this,e)},a.prototype.addEventListener=function(e,t,r){Ct(this)?function(e,t,n,r){Ze(e,t,Je(e,n))}(this,e,t):n.call(this,e,t,r)},a.prototype.removeEventListener=function(e,t,n){Ct(this)?function(e,t,n,r){et(e,t,Je(e,n))}(this,e,t):r.call(this,e,t,n)},Object.defineProperty(a.prototype,"shadowRoot",{get:function(){if(Ct(this)){var e=Pt(this);if("open"===e.mode)return e}return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tabIndex",{get:function(){return Ct(this)&&Lt(this)&&O(te.call(this,"tabindex"))?0:S(t.prototype,"tabIndex").get.call(this)},set:function(e){if(Ct(this)){var n=Lt(this),r=be.call(this),o=te.call(this,"tabindex");S(t.prototype,"tabIndex").set.call(this,e);var l=be.call(this),a=te.call(this,"tabindex"),i=r!==l;if(o&&(i||O(a))&&(-1===r&&tn(this),0===r&&n&&en(this)),O(a))return;if(o&&a&&O(i))return;return-1===l&&(en(u=this),ce.call(u,"mousedown",Zt,!0),ce.call(u,"focusin",Yt)),void(0===l&&n&&function(e){tn(e),ce.call(e,"focusin",Xt,!0)}(this))}var u;S(t.prototype,"tabIndex").set.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.blur=function(){if(Ct(this)&&Lt(this)){var e=(n=Te(t=this),w(r=_.call(n))?r:0!=(U.call(t,r)&x)?r:null);if(!w(e))return void e.blur()}var t,n,r;return o.call(this)},Object.defineProperty(a.prototype,"childNodes",{get:function(){if(Ct(this)){var e=gn(this);return ft(w(e)?[]:wn(e,On(this)))}return J.call(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){if(Ct(this)){var e=gn(this),t=w(e)?[]:wn(e,On(this));return dt(f.call(t,function(e){return e instanceof Element}))}return ve.call(this)},enumerable:!0,configurable:!0}),a}(t)}r(Node.prototype,"getRootNode",{value:ln,enumerable:!0,configurable:!0,writable:!0});var pn={childList:!0},dn=rt("slotchange");function bn(e){var t=gn(e);if(w(t))return[];var n=p.call(J.call(e));return m.call(n,function(e,n){return yn(t,n)||h.call(e,n),e},[])}function hn(e){var t=p.call(J.call(e));return m.call(t,function(e,t){return t instanceof Element&&mn(t)?h.apply(e,hn(t)):h.call(e,t),e},[])}var vn=Node.prototype.getRootNode;function gn(e){if(!(e instanceof Node))return null;var t=Ln(e);if(E(t))return null;for(var n=e;!w(n)&&Mn(n)!==t;)n=V.call(n);return w(n)?null:n}function mn(e){return"SLOT"===de.call(e)}function yn(e,t){var n=Ln(t);return E(n)||Mn(e)===n}function En(e){var t=Mt(e);return wn(t,J.call(t))}function wn(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];yn(e,l)&&h.call(n,l)}return n}function Nn(e,t){for(var n=0,r=t.length;n<r;n+=1)if(yn(e,t[n]))return t[n];return null}function On(e){var t;if(E(Mn(e)))t=J.call(e);else{var n=oe.call(e,"slot");t=m.call(n,function(t,n){return yn(e,n)&&h.apply(t,bn(n)),t},[])}var r=gn(e);return w(r)?[]:m.call(t,function(e,t){return yn(r,t)&&h.call(e,t),e},[])}var Tn="$$OwnerKey$$",Sn="$$OwnKey$$";Symbol("x").toString();function _n(e){return e[Tn]}function Ln(e){for(var t,n=e;!w(n);){if(!E(t=n[Tn]))return t;n=V.call(n)}}function Mn(e){return e[Sn]}var Pn="$$ShadowTokenKey$$";function Cn(e,t){E(t)||(re.call(e,t,""),e[Pn]=t)}function Dn(e,t){var n=gn(e);if(t===n)return Pt(n);if(t instanceof Element){if(Ln(e)===Ln(t))return t;if(!w(n)&&mn(t)){var r=gn(t);if(!w(r)&&yn(n,r))return r}}return null}function Rn(e){var t=o(e).constructor,n=function(){function e(){throw new TypeError("Illegal constructor")}return e.prototype.hasChildNodes=function(){return xn(this).length>0},Object.defineProperty(e.prototype,"firstChild",{get:function(){return xn(this)[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){var e=xn(this);return e[e.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return at(this)},set:function(e){z.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){var e=this.children;return e.item(e.length-1)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){var e=V.call(this);return w(e)||!mn(e)||Ln(e)===Ln(this)?null:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){var e=V.call(this);return w(e)?e:Dn(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){var e=V.call(this);if(w(e))return null;var t=Dn(this,e);return t instanceof Element?t:null},enumerable:!0,configurable:!0}),e.prototype.compareDocumentPosition=function(e){return vn.call(this)===e?10:_n(this)!==_n(e)?35:U.call(this,e)},e.prototype.contains=function(e){return _n(this)===_n(e)&&0!=(U.call(this,e)&x)},e.prototype.cloneNode=function(e){var t=W.call(this,!1);if(!e)return t;for(var n=xn(this),r=0,o=n.length;r<o;r+=1)t.appendChild(n[r].cloneNode(!0));return t},e}();return l(n,t),l(n.prototype,t.prototype),n}var In,An,jn,xn=function(e){return e.childNodes};function Hn(){return E(In)&&(In="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),N(In)}function $n(){return E(An)&&(An="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),N(An)}Document.prototype.elementFromPoint=function(e,t){var n=L.call(this,e,t);return w(n)?n:Le(this,_e(n,!0))},r(document,"activeElement",{get:function(){var e=_.call(this);if(w(e))return e;for(;!E(_n(e));)if(w(e=Y.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),r(Document.prototype,"getElementById",{value:function(){var e=D.apply(this,p.call(arguments));if(w(e))return null;var t=_n(this);return _n(e)===t||Hn()?e:null},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelector",{value:function(){var e=C.apply(this,p.call(arguments)),t=_n(this),n=s.call(e,function(e){return _n(e)===t||Hn()});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelectorAll",{value:function(){var e=C.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||Hn()}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByClassName",{value:function(){var e=R.apply(this,p.call(arguments)),t=_n(this);return dt(f.call(e,function(e){return _n(e)===t||Hn()}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagName",{value:function(){var e=I.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t})||Hn())},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=A.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t})||Hn())},writable:!0,enumerable:!0,configurable:!0}),r(a(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=j.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||Hn()}))},writable:!0,enumerable:!0,configurable:!0}),jn=HTMLBodyElement.prototype,r(jn,"querySelector",{value:function(){var e=oe.apply(this,p.call(arguments)),t=_n(this),n=s.call(e,function(e){return _n(e)===t||$n()});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(jn,"querySelectorAll",{value:function(){var e=oe.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),r(jn,"getElementsByClassName",{value:function(){var e=ge.apply(this,p.call(arguments)),t=_n(this);return dt(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),r(jn,"getElementsByTagName",{value:function(){var e=ae.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),r(jn,"getElementsByTagNameNS",{value:function(){var e=ie.apply(this,p.call(arguments)),t=_n(this);return ft(f.call(e,function(e){return _n(e)===t||$n()}))},writable:!0,enumerable:!0,configurable:!0}),void 0===window.ShadowRoot&&Object.defineProperty(window,"ShadowRoot",{value:Rt,configurable:!0,writable:!0});var Bn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var Fn,kn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Wn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!Bn)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",function(t){return e=t}),t.click(),!Bn.get.call(e)})()&&(HTMLElement.prototype.click=function(){ce.call(this,"click",Wn);try{kn.value.call(this)}finally{fe.call(this,"click",Wn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&(Fn=n(t(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1}),Object.defineProperties(Event.prototype,{composed:{get:function(){var e=this.type;return 1===Fn[e]},configurable:!0,enumerable:!0}}));var Un,qn=window.CustomEvent;function Kn(e,t){var n=new qn(e,t);return Object.defineProperties(n,{composed:{get:function(){return!(!t||!t.composed)},configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Kn&&(window.CustomEvent=Kn,window.CustomEvent.prototype=qn.prototype),Un=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get,Object.defineProperties(FocusEvent.prototype,{composed:{get:function(){var e=this.isTrusted,t=Un.call(this);return!(!e||!1!==t)||t},enumerable:!0,configurable:!0}});var Gn=window.MutationObserver,Vn=Gn.prototype,Xn=Vn.disconnect,Yn=Vn.observe,zn=Vn.takeRecords,Jn="$$lwcObserverCallbackWrapper$$",Qn="$$lwcNodeObservers$$";function Zn(e){var n=e.addedNodes,r=e.removedNodes,o=e.target,l=e.type,a=t(MutationRecord.prototype);return i(a,{addedNodes:{get:function(){return n},enumerable:!0,configurable:!0},removedNodes:{get:function(){return r},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return o.shadowRoot},enumerable:!0,configurable:!0}}),a}function er(e,t){for(var n=t;!w(n);){var r=n[Qn];if(!E(r)&&(r[0]===e||-1!==b.call(r,e)))return!0;n=n.parentNode}return!1}function tr(e,t){return m.call(e,function(e,n){var r=n.target,o=n.addedNodes,l=n.removedNodes;if("childList"!==n.type||E(Mn(r)))er(t,r)&&h.call(e,n);else if(o.length>0){var a=o[0];er(t,a)&&(!r[Qn]||r[Qn][0]!==t&&-1===b.call(r[Qn],t)?h.call(e,Zn(n)):h.call(e,n))}else{var i=r.shadowRoot;a=l[0];Ln(r)===Ln(a)&&er(t,r)?h.call(e,n):i&&i[Qn]&&(i[Qn][0]===t||-1!==b.call(i[Qn],t))&&h.call(e,Zn(n))}return e},[])}function nr(e){var t=function(e){var t=e[Jn];return E(t)&&(t=e[Jn]=function(t,n){var r=tr(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Gn(t)}nr.prototype=Gn.prototype,nr.prototype.disconnect=function(){Xn.call(this)},nr.prototype.observe=function(e,t){return E(e[Qn])&&r(e,Qn,{value:[]}),h.call(e[Qn],this),e instanceof Rt&&(e=e.host),Yn.call(this,e,t)},nr.prototype.takeRecords=function(){return tr(zn.call(this),this)},r(window,"MutationObserver",{value:nr,configurable:!0,writable:!0});var rr,or=window.MutationObserver,lr=or.prototype.observe,ar={childList:!0,subtree:!0};function ir(e,t,n){if(_n(e)!==t&&(function(e,t){e[Tn]=t}(e,t),e instanceof Element)){Cn(e,n);for(var r=xn(e),o=0,l=r.length;o<l;o+=1){ir(r[o],t,n)}}}function ur(){return new or(function(e){g.call(e,function(e){var t=e.target,n=e.addedNodes,r=_n(t),o=function(e){return e[Pn]}(t);if(!E(r))for(var l=0,a=n.length;l<a;l+=1){ir(n[l],r,o)}})})}e.PatchedElement=sn,e.PatchedIframeElement=function(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return At(t,e),Object.defineProperty(t.prototype,"contentWindow",{get:function(){var e,t=Ee.call(this);return t?(e=t,{postMessage:function(){return e.postMessage.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)},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}}):t},enumerable:!0,configurable:!0}),t}(sn(e))},e.PatchedNode=Rn,e.PatchedSlotElement=function(e){var t=sn(e),n=e.addEventListener;return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return At(t,e),t.prototype.addEventListener=function(e,t,r){"slotchange"!==e||lt(this,dn)||(ot(this,dn,!0),nn||(nn=new Ht(function(e){var t=[];g.call(e,function(e){var n=e.target;-1===b.call(t,n)&&(h.call(t,n),me.call(n,new CustomEvent("slotchange")))})})),$t.call(nn,this,pn)),n.call(this,e,t,r)},t.prototype.assignedElements=function(e){var t=!E(e)&&N(e.flatten)?hn(this):bn(this);return f.call(t,function(e){return e instanceof Element})},t.prototype.assignedNodes=function(e){return!E(e)&&N(e.flatten)?hn(this):bn(this)},Object.defineProperty(t.prototype,"name",{get:function(){var e=ne.call(this,"name");return w(e)?"":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){var e=gn(this);return ft(w(e)?[]:wn(e,On(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=gn(this),t=w(e)?[]:wn(e,On(this));return dt(f.call(t,function(e){return e instanceof Element}))},enumerable:!0,configurable:!0}),t}(t)},e.markElementAsPortal=function(e){E(rr)&&(rr=ur()),lr.call(rr,e,ar)},e.patchEvent=Ke,e.setCSSToken=Cn,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";var t=Object.create,n=Object.assign,r=Object.defineProperty,o=Object.getPrototypeOf,l=Object.setPrototypeOf,a=Object.getOwnPropertyDescriptor,i=Object.defineProperties,u=Object.hasOwnProperty,c=Array.prototype,f=c.filter,s=c.find,p=c.slice,d=c.splice,b=c.indexOf,h=c.push,v=c.map,g=c.forEach,m=c.reduce,y=c.reverse;function E(e){return void 0===e}function w(e){return null===e}function N(e){return!0===e}function O(e){return!1===e}function T(e){return"function"==typeof e}function S(e,t){do{var n=a(e,t);if(!E(n))return n;e=o(e)}while(null!==e)}var _=a(Document.prototype,"activeElement").get,L=u.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,M=a(Document.prototype,"defaultView").get,P=Document.prototype,C=(P.createDocumentFragment,P.createElement,P.createElementNS,P.createTextNode,P.createComment,P.querySelector,P.querySelectorAll),D=P.getElementById,R=P.getElementsByClassName,I=P.getElementsByTagName,A=P.getElementsByTagNameNS,j=HTMLDocument.prototype.getElementsByName,x=Node.DOCUMENT_POSITION_CONTAINED_BY,H=(Node.DOCUMENT_POSITION_CONTAINS,Node.DOCUMENT_POSITION_PRECEDING),$=Node.DOCUMENT_POSITION_FOLLOWING,B=Node.DOCUMENT_FRAGMENT_NODE,F=Node.prototype,k=F.appendChild,W=F.cloneNode,U=F.compareDocumentPosition,q=(F.hasChildNodes,F.insertBefore),K=F.removeChild,G=F.replaceChild,V=a(Node.prototype,"parentNode").get,X=a(Node.prototype,"ownerDocument").get,Y=u.call(Node.prototype,"parentElement")?a(Node.prototype,"parentElement").get:a(HTMLElement.prototype,"parentElement").get,z=a(Node.prototype,"textContent").set,J=u.call(Node.prototype,"childNodes")?a(Node.prototype,"childNodes").get:a(HTMLElement.prototype,"childNodes").get,Q=a(Node.prototype,"nodeValue"),Z=(Q.set,Q.get,u.call(Node.prototype,"isConnected")?a(Node.prototype,"isConnected").get:function(){var e=X.call(this);return null===e||0!=(U.call(e,this)&x)}),ee=Element.prototype,te=ee.hasAttribute,ne=ee.getAttribute,re=(ee.getAttributeNS,ee.setAttribute),oe=(ee.setAttributeNS,ee.removeAttribute,ee.removeAttributeNS,ee.querySelector,ee.querySelectorAll),le=ee.getBoundingClientRect,ae=ee.getElementsByTagName,ie=ee.getElementsByTagNameNS,ue=Element.prototype,ce=ue.addEventListener,fe=ue.removeEventListener;ce=ce.__lwcOriginal__||ce,fe=fe.__lwcOriginal__||fe;var se=u.call(Element.prototype,"innerHTML")?a(Element.prototype,"innerHTML").set:a(HTMLElement.prototype,"innerHTML").set,pe=u.call(Element.prototype,"outerHTML")?a(Element.prototype,"outerHTML").set:a(HTMLElement.prototype,"outerHTML").set,de=a(Element.prototype,"tagName").get,be=a(HTMLElement.prototype,"tabIndex").get,he=u.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,ve=u.call(Element.prototype,"children")?a(Element.prototype,"children").get:a(HTMLElement.prototype,"children").get,ge=HTMLElement.prototype.getElementsByClassName,me=(void 0!==window.ShadowRoot&&a(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),ye=void 0!==window.ShadowRoot,Ee=a(HTMLIFrameElement.prototype,"contentWindow").get,we=a(Event.prototype,"target").get,Ne=a(Event.prototype,"currentTarget").get,Oe=a(FocusEvent.prototype,"relatedTarget").get;function Te(e){var t=X.call(e);return null===t?e:t}function Se(e){var t=Te(e),n=M.call(t);if(null===n)throw new TypeError;return n}function _e(e,t){for(var n,r=[],o=e,l=e instanceof Window?e:yn.call(e);o;)r.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===B&&o.host&&(t||o!==l)?o.host:o.parentNode;return n=e instanceof Window?e.document:Te(e),r[r.length-1]===n&&r.push(window),r}function Le(e,t){if(w(e))return null;for(var n=_e(e,!0),r=t,o=0,l=void 0,a=void 0,i=void 0,u=void 0;o<r.length;o++)if((i=(l=r[o])instanceof Window?l:yn.call(l))!==a&&(u=n.indexOf(i),a=i),!(i instanceof Rt)||u>-1)return l;return null}var Me=window.addEventListener,Pe=window.removeEventListener;function Ce(e){var t=null;try{if(!(t=e.$$lwcEventWrapper$$)){var n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){var t=we.call(e);if(t instanceof Node){var n=Te(t);if(0!=(U.call(n,t)&x)&&Pn(t))return!0}return!1}(t)&&Ke(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function De(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ce(t);Me.call(this,e,o,n)}}function Re(e,t,n){var r=Ce(t);Pe.call(this,e,r||t,n)}function Ie(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ce(t);ce.call(this,e,o,n)}}function Ae(e,t,n){var r=Ce(t);fe.call(this,e,r||t,n)}Me=Me.__lwcOriginal__||Me,Pe=Pe.__lwcOriginal__||Pe,Ie.__lwcOriginal__=ce,Ae.__lwcOriginal__=fe,De.__lwcOriginal__=Me,Re.__lwcOriginal__=Pe,window.addEventListener=De,window.removeEventListener=Re,Node.prototype.addEventListener=Ie,Node.prototype.removeEventListener=Ae;var je,xe=Node.prototype,He=xe.addEventListener,$e=xe.removeEventListener;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(je||(je={}));var Be=new WeakMap;function Fe(e,t){return!!(U.call(e,t)&x)}var ke={composed:!1};function We(e,t){var n=yn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=Mt(n)),n}function Ue(){var e=Ne.call(this),t=we.call(this),n=_e(t,this.composed);return e instanceof Node?Le(Be.get(this)===je.SHADOW_ROOT_LISTENER?Pt(e):e,n):Le(Te(t),n)}function qe(){return _e(we.call(this),this.composed)}function Ke(e){if(!Be.has(e)){i(e,{target:{get:Ue,enumerable:!0,configurable:!0},composedPath:{value:qe,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Ue,enumerable:!0,configurable:!0},path:{get:qe,enumerable:!0,configurable:!0}});var t=S(e,"relatedTarget");if(!E(t)){var n=t.get;r(e,"relatedTarget",{get:function(){var e=Be.get(this),t=Ne.call(this),r=n.call(this);return w(r)?null:Le(e===je.SHADOW_ROOT_LISTENER?Pt(t):t,_e(r,!0))},enumerable:!0,configurable:!0})}Be.set(e,0)}}var Ge=new WeakMap;function Ve(e){var n=Ge.get(e);return E(n)&&(n=t(null),Ge.set(e,n)),n}var Xe=new WeakMap;function Ye(e,t){if(!T(t))throw new TypeError;var n=Xe.get(t);return E(n)&&((n=function(n){var r=n.composed,o=we.call(n),l=Ne.call(n);if(o!==l){var a=We(o,{composed:r});(Fe(a,l)||!1===r&&a===l)&&t.call(e,n)}}).placement=je.SHADOW_ROOT_LISTENER,Xe.set(t,n)),n}var ze=new WeakMap;function Je(e,t){if(!T(t))throw new TypeError;var n=ze.get(t);return E(n)&&((n=function(n){(function(e){var t=we.call(e),n=Ne.call(e);return!0===e.composed||t===n||Fe(We(t,ke),n)})(n)&&t.call(e,n)}).placement=je.CUSTOM_ELEMENT_LISTENER,ze.set(t,n)),n}function Qe(e){var t=!1,n=!1,o=e.type,l=e.stopImmediatePropagation,a=e.stopPropagation,i=Ve(Ne.call(e))[o];r(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),r(e,"stopPropagation",{value:function(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=p.call(i);function c(n){g.call(u,function(r){O(t)&&r.placement===n&&-1!==b.call(i,r)&&r.call(void 0,e)})}Be.set(e,je.SHADOW_ROOT_LISTENER),c(je.SHADOW_ROOT_LISTENER),O(t)&&O(n)&&(Be.set(e,je.CUSTOM_ELEMENT_LISTENER),c(je.CUSTOM_ELEMENT_LISTENER)),Be.set(e,0)}function Ze(e,t,n){var r=Ve(e),o=r[t];E(o)&&(o=r[t]=[]),0===o.length&&He.call(e,t,Qe),h.call(o,n)}function et(e,t,n){var r,o;E(o=Ve(e)[t])||-1===(r=b.call(o,n))||(d.call(o,r,1),0===o.length&&$e.call(e,t,Qe))}var tt,nt="Symbol(x)"===Symbol("x").toString();function rt(e){return nt?Symbol(e):"$$lwc-"+e+"$$"}function ot(e,t,n){r(e,t,{value:n})}function lt(e,t){return e[t]}function at(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=_n(e),n="",r=0,o=t.length;r<o;r+=1)n+=at(t[r]);return n;default:return e.nodeValue}}var it,ut=rt("items");function ct(){throw new TypeError("Illegal constructor")}function ft(e){var n=t(ct.prototype);return ot(n,ut,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}ct.prototype=t(NodeList.prototype,((tt={constructor:{writable:!0,configurable:!0,value:ct},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return lt(this,ut).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(lt(this,ut),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,ut),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,ut),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return lt(this,ut)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=lt(e,ut);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},tt)),l(ct,NodeList);var st=rt("items");function pt(){throw new TypeError("Illegal constructor")}function dt(e){var n=t(pt.prototype);return ot(n,st,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}pt.prototype=t(HTMLCollection.prototype,((it={constructor:{writable:!0,configurable:!0,value:pt},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return lt(this,st).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];for(var t,n=lt(this,st),r=n.length-1;r>=0;r-=1){var o=n[r];if(((t=o).getAttribute("id")||t.getAttribute("name"))===e)return o}return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(lt(this,st),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,st),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(lt(this,st),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return lt(this,st)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=lt(e,st);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},it)),l(pt,HTMLCollection);var bt=/[&\u00A0"]/g,ht=/[&\u00A0<>]/g,vt=String.prototype,gt=vt.replace,mt=vt.toLowerCase;function yt(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function Et(e){return gt.call(e,bt,yt)}var wt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Nt=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Ot(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=e.attributes,n=de.call(e),r="<"+mt.call(n),o=0,l=void 0;l=t[o];o++)r+=" "+l.name+'="'+Et(l.value)+'"';return r+=">",wt.has(n)?r:r+function(e){for(var t="",n=_n(e),r=0,o=n.length;r<o;r+=1)t+=Ot(n[r]);return t}(e)+"</"+mt.call(n)+">";case Node.TEXT_NODE:var a=e,i=a.data,u=a.parentNode;return u instanceof Element&&Nt.has(de.call(u))?i:function(e){return gt.call(e,ht,yt)}(i);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}}var Tt=rt("shadowRecord"),St=document.createDocumentFragment;function _t(e){var t=lt(e,Tt);if(E(t))throw new TypeError;return t}function Lt(e){return _t(e).delegatesFocus}function Mt(e){return _t(e).host}function Pt(e){return _t(e).shadowRoot}function Ct(e){return!E(lt(e,Tt))}var Dt={constructor:{writable:!0,configurable:!0,value:Rt},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}};function Rt(){throw new TypeError("Illegal constructor")}n(Dt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return q.call(Mt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return K.call(Mt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return k.call(Mt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return G.call(Mt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){Ze(Mt(e),t,Ye(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){et(Mt(e),t,Ye(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Mt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return ft(On(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Mt(this);return this===e?0:this.contains(e)?20:U.call(t,e)&x?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Mt(this);return 0!=(U.call(t,e)&x)&&Nn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return Bn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=Bn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Bn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return Z.call(Mt(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 Mt(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=Bn(this),t="",n=0,r=e.length;n<r;n+=1)t+=at(e[n]);return t},set:function(e){var t=Mt(this);z.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=!E(e)&&!!e.composed;return O(t)?this:yn.call(Mt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return dt(f.call(On(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}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,n=Mt(this),r=oe.call(n,t),Sn(n,r);var t,n,r}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return ft((t=e,n=Mt(this),r=oe.call(n,t),Tn(n,r)));var t,n,r}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=Bn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Ot(e[n]);return t},set:function(e){var t=Mt(this);se.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get:function(){var e=Mt(this),t=Te(e),n=_.call(t);if(w(n))return n;if(0==(U.call(e,n)&x))return null;for(var r=n;!Nn(e,r);)r=Y.call(r);return wn(r)?null:r}},delegatesFocus:{configurable:!0,get:function(){return _t(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){var n=Te(Mt(this)),r=L.call(n,e,t);return w(r)?r:Le(this,_e(r,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error}},host:{enumerable:!0,configurable:!0,get:function(){return Mt(this)}},mode:{configurable:!0,get:function(){return _t(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}}),Rt.prototype=t(DocumentFragment.prototype,Dt),ye&&l(Rt.prototype,window.ShadowRoot.prototype);var It=function(e,t){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function At(e,t){function n(){this.constructor=e}It(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jt=window.MutationObserver;if(void 0===jt){function xt(){}xt.prototype={observe:function(){}},jt=window.MutationObserver=xt}var Ht=jt,$t=Ht.prototype.observe,Bt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Ft(e){var t=le.call(e),n=t.width,r=t.height;return(n>0||r>0)&&"hidden"!==getComputedStyle(e).visibility}function kt(e){return he.call(e,Bt)&&Ft(e)}var Wt={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Ut(e){var t=de.call(e);return Ft(e)&&(function(e){if(O(te.call(e,"tabindex")))return!1;var t=ne.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||te.call(e,"contenteditable")||u.call(Wt,t))}function qt(e){for(var t=0,n=e.length;t<n;t+=1){var r=e[t];if(kt(r))return r}return null}function Kt(e){var t=Te(e),n=C.call(t,Bt),r=p.call(oe.call(e,Bt)),o=r[0],l=r[r.length-1],a=b.call(n,e),i=a>-1?a:b.call(n,o),u=0===r.length?i+1:b.call(n,l)+1;return{prev:p.call(n,0,i),inner:r,next:p.call(n,u)}}function Gt(e,t){var n=U.call(e,t);return n&x?0:n&H?1:n&$?2:-1}function Vt(e){e.preventDefault(),e.stopPropagation()}function Xt(e,t){Me.call(e,"focusin",Vt,!0),Me.call(e,"focusout",Vt,!0),t(),Pe.call(e,"focusin",Vt,!0),Pe.call(e,"focusout",Vt,!0)}function Yt(e,t){Xt(Se(e),function(){var n=function(e){return qt(e.next)}(t);w(n)?e.blur():n.focus()})}function zt(e,t){Xt(Se(e),function(){var n=function(e){var t=e.prev;return qt(y.call(t))}(t);w(n)?e.blur():n.focus()})}function Jt(e,t){return function(e){for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(kt(n))return n}return null}(t.inner)===e}function Qt(e){var t=Ne.call(e),n=we.call(e);if(t===n){var r=Oe.call(e);if(!w(r)){var o=Kt(t);if(1===Gt(t,r)){var l=qt(o.inner);if(w(l))Yt(n,o);else Xt(Se(t),function(){l.focus()})}else t===n&&zt(t,o)}}}function Zt(e){var t=Ne.call(e),n=we.call(e),r=Oe.call(e),o=Kt(t),l=function(e,t){return qt(t.inner)===e}(n,o),a=Jt(n,o);if(!(O(l)&&O(a)||w(r)))switch(Gt(t,r)){case 1:l&&Yt(n,o);break;case 2:a&&zt(n,o)}}function en(e){var t=Ne.call(e);fe.call(t,"focusin",Zt),setTimeout(function(){w(t)||-1!==be.call(t)||ce.call(t,"focusin",Zt)},0)}function tn(e){var t=Ne.call(e),n=Oe.call(e);(w(n)||0!==Gt(t,n))&&(fe.call(t,"focusin",en,!0),fe.call(t,"focusout",tn,!0))}function nn(e){if(function(e){var t=Te(e);return e!==_.call(t)&&Ut(e)}(we.call(e))){var t=Ne.call(e);ce.call(t,"focusin",en,!0),ce.call(t,"focusout",tn,!0)}}function rn(e){fe.call(e,"focusin",Qt,!0)}function on(e){fe.call(e,"focusin",Zt),fe.call(e,"mousedown",nn,!0)}var ln,an=Node.prototype.getRootNode,un=E(an)?function(){for(var e,t=this;!w(e=V.call(t));)t=e;return t}:an;function cn(e){var t,n;return N(!E(e)&&!!e.composed)?un.call(this,e):w(n=En(t=this))?un.call(t):Pt(n)}function fn(e){for(var t=Y.call(e);!w(t)&&wn(t);)e=t,t=Y.call(e);return e}function sn(e,t){for(var n=Dn(e),r=t instanceof Element?t:Y.call(t);!w(r)&&r!==e;){var o=Cn(r),l=Y.call(r);if(o===n)return wn(r);if(l===e)return!1;if(w(l)||Cn(l)===o)r=l;else{if(!wn(l))return!1;if(!w(r=En(fn(l)))){if(r===e)return!0;if(Cn(r)===n)return!0}}}return!1}function pn(e,t){var n=En(e);if(w(n))return[];var r=oe.call(e,t);return Dn(e)?function(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];!Nn(e,l)&&sn(e,l)&&h.call(n,l)}return n}(e,r):Tn(n,r)}function dn(e,t){var n=En(e);if(w(n))return null;var r=oe.call(e,t);return Dn(e)?function(e,t){for(var n=0,r=t.length;n<r;n+=1){var o=t[n];if(!Nn(e,o)&&sn(e,o))return o}return null}(e,r):Sn(n,r)}function bn(e){var t=jn(e),n=e.addEventListener,r=e.removeEventListener,o=e.blur;return function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return At(a,e),a.prototype.querySelector=function(e){return dn(this,e)},a.prototype.querySelectorAll=function(e){return ft(pn(this,e))},Object.defineProperty(a.prototype,"innerHTML",{get:function(){for(var e=Bn(this),t="",n=0,r=e.length;n<r;n+=1)t+=Ot(e[n]);return t},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"outerHTML",{get:function(){return Ot(this)},set:function(e){pe.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.attachShadow=function(e){return function(e,t){if(!E(lt(e,Tt)))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,o=Te(e),a=St.call(o),i={mode:n,delegatesFocus:!!r,host:e,shadowRoot:a};return ot(a,Tt,i),ot(e,Tt,i),l(a,Rt.prototype),a}(this,e)},a.prototype.addEventListener=function(e,t,r){Ct(this)?function(e,t,n,r){Ze(e,t,Je(e,n))}(this,e,t):n.call(this,e,t,r)},a.prototype.removeEventListener=function(e,t,n){Ct(this)?function(e,t,n,r){et(e,t,Je(e,n))}(this,e,t):r.call(this,e,t,n)},Object.defineProperty(a.prototype,"shadowRoot",{get:function(){if(Ct(this)){var e=Pt(this);if("open"===e.mode)return e}return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tabIndex",{get:function(){return Ct(this)&&Lt(this)&&O(te.call(this,"tabindex"))?0:S(t.prototype,"tabIndex").get.call(this)},set:function(e){if(Ct(this)){var n=Lt(this),r=be.call(this),o=te.call(this,"tabindex");S(t.prototype,"tabIndex").set.call(this,e);var l=be.call(this),a=te.call(this,"tabindex"),i=r!==l;if(o&&(i||O(a))&&(-1===r&&on(this),0===r&&n&&rn(this)),O(a))return;if(o&&a&&O(i))return;return-1===l&&(rn(u=this),ce.call(u,"mousedown",nn,!0),ce.call(u,"focusin",Zt)),void(0===l&&n&&function(e){on(e),ce.call(e,"focusin",Qt,!0)}(this))}var u;S(t.prototype,"tabIndex").set.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.blur=function(){if(Ct(this)&&Lt(this)){var e=(n=Te(t=this),w(r=_.call(n))?r:0!=(U.call(t,r)&x)?r:null);if(!w(e))return void e.blur()}var t,n,r;return o.call(this)},Object.defineProperty(a.prototype,"childNodes",{get:function(){if(Ct(this)){var e=En(this);return ft(w(e)?[]:Tn(e,_n(this)))}return J.call(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){if(Ct(this)){var e=En(this),t=w(e)?[]:Tn(e,_n(this));return dt(f.call(t,function(e){return e instanceof Element}))}return ve.call(this)},enumerable:!0,configurable:!0}),a}(t)}r(Node.prototype,"getRootNode",{value:cn,enumerable:!0,configurable:!0,writable:!0});var hn={childList:!0},vn=rt("slotchange");function gn(e){var t=En(e);if(w(t))return[];var n=p.call(J.call(e));return m.call(n,function(e,n){return Nn(t,n)||h.call(e,n),e},[])}function mn(e){var t=p.call(J.call(e));return m.call(t,function(e,t){return t instanceof Element&&wn(t)?h.apply(e,mn(t)):h.call(e,t),e},[])}var yn=Node.prototype.getRootNode;function En(e){if(!(e instanceof Node))return null;var t=Cn(e);if(E(t))return null;for(var n=e;!w(n)&&Dn(n)!==t;)n=V.call(n);return w(n)?null:n}function wn(e){return"SLOT"===de.call(e)}function Nn(e,t){var n=Cn(t);return E(n)||Dn(e)===n}function On(e){var t=Mt(e);return Tn(t,J.call(t))}function Tn(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];Nn(e,l)&&h.call(n,l)}return n}function Sn(e,t){for(var n=0,r=t.length;n<r;n+=1)if(Nn(e,t[n]))return t[n];return null}function _n(e){var t;if(E(Dn(e)))t=J.call(e);else{var n=oe.call(e,"slot");t=m.call(n,function(t,n){return Nn(e,n)&&h.apply(t,gn(n)),t},[])}var r=En(e);return w(r)?[]:m.call(t,function(e,t){return Nn(r,t)&&h.call(e,t),e},[])}var Ln="$$OwnerKey$$",Mn="$$OwnKey$$";Symbol("x").toString();function Pn(e){return e[Ln]}function Cn(e){for(var t,n=e;!w(n);){if(!E(t=n[Ln]))return t;n=V.call(n)}}function Dn(e){return e[Mn]}var Rn="$$ShadowTokenKey$$";function In(e,t){E(t)||(re.call(e,t,""),e[Rn]=t)}function An(e,t){var n=En(e);if(t===n)return Pt(n);if(t instanceof Element){if(Cn(e)===Cn(t))return t;if(!w(n)&&wn(t)){var r=En(t);if(!w(r)&&Nn(n,r))return r}}return null}function jn(e){var t=o(e).constructor,n=function(){function e(){throw new TypeError("Illegal constructor")}return e.prototype.hasChildNodes=function(){return Bn(this).length>0},Object.defineProperty(e.prototype,"firstChild",{get:function(){return Bn(this)[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){var e=Bn(this);return e[e.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return at(this)},set:function(e){z.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){var e=this.children;return e.item(e.length-1)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){var e=V.call(this);return w(e)||!wn(e)||Cn(e)===Cn(this)?null:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){var e=V.call(this);return w(e)?e:An(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){var e=V.call(this);if(w(e))return null;var t=An(this,e);return t instanceof Element?t:null},enumerable:!0,configurable:!0}),e.prototype.compareDocumentPosition=function(e){return yn.call(this)===e?10:Pn(this)!==Pn(e)?35:U.call(this,e)},e.prototype.contains=function(e){return Pn(this)===Pn(e)&&0!=(U.call(this,e)&x)},e.prototype.cloneNode=function(e){var t=W.call(this,!1);if(!e)return t;for(var n=Bn(this),r=0,o=n.length;r<o;r+=1)t.appendChild(n[r].cloneNode(!0));return t},e}();return l(n,t),l(n.prototype,t.prototype),n}var xn,Hn,$n,Bn=function(e){return e.childNodes};function Fn(){return E(xn)&&(xn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),N(xn)}function kn(){return E(Hn)&&(Hn="temporary-bypass"===document.body.getAttribute("data-global-patching-bypass")),N(Hn)}Document.prototype.elementFromPoint=function(e,t){var n=L.call(this,e,t);return w(n)?n:Le(this,_e(n,!0))},r(document,"activeElement",{get:function(){var e=_.call(this);if(w(e))return e;for(;!E(Pn(e));)if(w(e=Y.call(e)))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),r(Document.prototype,"getElementById",{value:function(){var e=D.apply(this,p.call(arguments));if(w(e))return null;var t=Pn(this);return Pn(e)===t||Fn()?e:null},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelector",{value:function(){var e=C.apply(this,p.call(arguments)),t=Pn(this),n=s.call(e,function(e){return Pn(e)===t||Fn()});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelectorAll",{value:function(){var e=C.apply(this,p.call(arguments)),t=Pn(this);return ft(f.call(e,function(e){return Pn(e)===t||Fn()}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByClassName",{value:function(){var e=R.apply(this,p.call(arguments)),t=Pn(this);return dt(f.call(e,function(e){return Pn(e)===t||Fn()}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagName",{value:function(){var e=I.apply(this,p.call(arguments)),t=Pn(this);return ft(f.call(e,function(e){return Pn(e)===t})||Fn())},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=A.apply(this,p.call(arguments)),t=Pn(this);return ft(f.call(e,function(e){return Pn(e)===t})||Fn())},writable:!0,enumerable:!0,configurable:!0}),r(a(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=j.apply(this,p.call(arguments)),t=Pn(this);return ft(f.call(e,function(e){return Pn(e)===t||Fn()}))},writable:!0,enumerable:!0,configurable:!0}),$n=HTMLBodyElement.prototype,r($n,"querySelector",{value:function(){var e=oe.apply(this,p.call(arguments)),t=Pn(this),n=s.call(e,function(e){return Pn(e)===t||kn()});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r($n,"querySelectorAll",{value:function(){var e=oe.apply(this,p.call(arguments)),t=Pn(this);return ft(f.call(e,function(e){return Pn(e)===t||kn()}))},writable:!0,enumerable:!0,configurable:!0}),r($n,"getElementsByClassName",{value:function(){var e=ge.apply(this,p.call(arguments)),t=Pn(this);return dt(f.call(e,function(e){return Pn(e)===t||kn()}))},writable:!0,enumerable:!0,configurable:!0}),r($n,"getElementsByTagName",{value:function(){var e=ae.apply(this,p.call(arguments)),t=Pn(this);return ft(f.call(e,function(e){return Pn(e)===t||kn()}))},writable:!0,enumerable:!0,configurable:!0}),r($n,"getElementsByTagNameNS",{value:function(){var e=ie.apply(this,p.call(arguments)),t=Pn(this);return ft(f.call(e,function(e){return Pn(e)===t||kn()}))},writable:!0,enumerable:!0,configurable:!0}),void 0===window.ShadowRoot&&Object.defineProperty(window,"ShadowRoot",{value:Rt,configurable:!0,writable:!0});var Wn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var Un,qn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Kn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!Wn)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",function(t){return e=t}),t.click(),!Wn.get.call(e)})()&&(HTMLElement.prototype.click=function(){ce.call(this,"click",Kn);try{qn.value.call(this)}finally{fe.call(this,"click",Kn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&(Un=n(t(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1}),Object.defineProperties(Event.prototype,{composed:{get:function(){var e=this.type;return 1===Un[e]},configurable:!0,enumerable:!0}}));var Gn,Vn=window.CustomEvent;function Xn(e,t){var n=new Vn(e,t);return Object.defineProperties(n,{composed:{get:function(){return!(!t||!t.composed)},configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Xn&&(window.CustomEvent=Xn,window.CustomEvent.prototype=Vn.prototype),Gn=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get,Object.defineProperties(FocusEvent.prototype,{composed:{get:function(){var e=this.isTrusted,t=Gn.call(this);return!(!e||!1!==t)||t},enumerable:!0,configurable:!0}});var Yn=window.MutationObserver,zn=Yn.prototype,Jn=zn.disconnect,Qn=zn.observe,Zn=zn.takeRecords,er="$$lwcObserverCallbackWrapper$$",tr="$$lwcNodeObservers$$";function nr(e){var n=e.addedNodes,r=e.removedNodes,o=e.target,l=e.type,a=t(MutationRecord.prototype);return i(a,{addedNodes:{get:function(){return n},enumerable:!0,configurable:!0},removedNodes:{get:function(){return r},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return o.shadowRoot},enumerable:!0,configurable:!0}}),a}function rr(e,t){for(var n=t;!w(n);){var r=n[tr];if(!E(r)&&(r[0]===e||-1!==b.call(r,e)))return!0;n=n.parentNode}return!1}function or(e,t){return m.call(e,function(e,n){var r=n.target,o=n.addedNodes,l=n.removedNodes;if("childList"!==n.type||E(Dn(r)))rr(t,r)&&h.call(e,n);else if(o.length>0){var a=o[0];rr(t,a)&&(!r[tr]||r[tr][0]!==t&&-1===b.call(r[tr],t)?h.call(e,nr(n)):h.call(e,n))}else{var i=r.shadowRoot;a=l[0];Cn(r)===Cn(a)&&rr(t,r)?h.call(e,n):i&&i[tr]&&(i[tr][0]===t||-1!==b.call(i[tr],t))&&h.call(e,nr(n))}return e},[])}function lr(e){var t=function(e){var t=e[er];return E(t)&&(t=e[er]=function(t,n){var r=or(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new Yn(t)}lr.prototype=Yn.prototype,lr.prototype.disconnect=function(){Jn.call(this)},lr.prototype.observe=function(e,t){return E(e[tr])&&r(e,tr,{value:[]}),h.call(e[tr],this),e instanceof Rt&&(e=e.host),Qn.call(this,e,t)},lr.prototype.takeRecords=function(){return or(Zn.call(this),this)},r(window,"MutationObserver",{value:lr,configurable:!0,writable:!0});var ar,ir=window.MutationObserver,ur=ir.prototype.observe,cr={childList:!0,subtree:!0};function fr(e,t,n){if(Pn(e)!==t&&(function(e,t){e[Ln]=t}(e,t),e instanceof Element)){In(e,n);for(var r=Bn(e),o=0,l=r.length;o<l;o+=1){fr(r[o],t,n)}}}function sr(){return new ir(function(e){g.call(e,function(e){var t=e.target,n=e.addedNodes,r=Pn(t),o=function(e){return e[Rn]}(t);if(!E(r))for(var l=0,a=n.length;l<a;l+=1){fr(n[l],r,o)}})})}e.PatchedElement=bn,e.PatchedIframeElement=function(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return At(t,e),Object.defineProperty(t.prototype,"contentWindow",{get:function(){var e,t=Ee.call(this);return t?(e=t,{postMessage:function(){return e.postMessage.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)},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}}):t},enumerable:!0,configurable:!0}),t}(bn(e))},e.PatchedNode=jn,e.PatchedSlotElement=function(e){var t=bn(e),n=e.addEventListener;return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return At(t,e),t.prototype.addEventListener=function(e,t,r){"slotchange"!==e||lt(this,vn)||(ot(this,vn,!0),ln||(ln=new Ht(function(e){var t=[];g.call(e,function(e){var n=e.target;-1===b.call(t,n)&&(h.call(t,n),me.call(n,new CustomEvent("slotchange")))})})),$t.call(ln,this,hn)),n.call(this,e,t,r)},t.prototype.assignedElements=function(e){var t=!E(e)&&N(e.flatten)?mn(this):gn(this);return f.call(t,function(e){return e instanceof Element})},t.prototype.assignedNodes=function(e){return!E(e)&&N(e.flatten)?mn(this):gn(this)},Object.defineProperty(t.prototype,"name",{get:function(){var e=ne.call(this,"name");return w(e)?"":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){var e=En(this);return ft(w(e)?[]:Tn(e,_n(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=En(this),t=w(e)?[]:Tn(e,_n(this));return dt(f.call(t,function(e){return e instanceof Element}))},enumerable:!0,configurable:!0}),t}(t)},e.markElementAsPortal=function(e){E(ar)&&(ar=sr()),ur.call(ar,e,cr)},e.patchEvent=Ke,e.setCSSToken=In,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -229,8 +229,9 @@ "use strict"; | ||
if (shadow_root_1.hasSyntheticShadow(this)) { | ||
// This tabIndex setter might be confusing unless it is understood that HTML | ||
// elements have default tabIndex property values. Natively focusable elements have | ||
// a default tabIndex value of 0 and all other elements have a default tabIndex | ||
// value of -1. For example, the tabIndex property value is -1 for both <x-foo> and | ||
// <x-foo tabindex="-1">, but our delegatesFocus polyfill should only kick in for | ||
// the latter case when the value of the tabindex attribute is -1. | ||
// This tabIndex setter might be confusing unless it is understood that HTML elements | ||
// have default tabIndex property values. Natively focusable elements have a default | ||
// tabIndex value of 0 and all other elements have a default tabIndex value of -1. An | ||
// example of when this matters: We don't need to do anything for <x-foo> but we do need | ||
// to add a listener for <x-foo tabindex="-1">. The tabIndex property value is -1 in | ||
// both cases, so we need an additional check to see if the tabindex attribute is | ||
// reflected on the host. | ||
const delegatesFocus = shadow_root_1.isDelegatingFocus(this); | ||
@@ -237,0 +238,0 @@ // Record the state of things before invoking component setter. |
@@ -21,3 +21,2 @@ "use strict"; | ||
const utils_1 = require("../shared/utils"); | ||
const traverse_1 = require("./traverse"); | ||
const TabbableElementsQuery = ` | ||
@@ -84,2 +83,20 @@ button:not([tabindex="-1"]):not([disabled]), | ||
exports.isFocusable = isFocusable; | ||
function getFirstTabbableMatch(elements) { | ||
for (let i = 0, len = elements.length; i < len; i += 1) { | ||
const elm = elements[i]; | ||
if (isTabbable(elm)) { | ||
return elm; | ||
} | ||
} | ||
return null; | ||
} | ||
function getLastTabbableMatch(elements) { | ||
for (let i = elements.length - 1; i >= 0; i -= 1) { | ||
const elm = elements[i]; | ||
if (isTabbable(elm)) { | ||
return elm; | ||
} | ||
} | ||
return null; | ||
} | ||
function getTabbableSegments(host) { | ||
@@ -90,3 +107,3 @@ const doc = utils_1.getOwnerDocument(host); | ||
if (process.env.NODE_ENV !== 'production') { | ||
assert_1.default.invariant(element_1.getAttribute.call(host, 'tabindex') === '-1' || shadow_root_1.isDelegatingFocus(host), `The focusin event is only relevant when the tabIndex property is -1 on the host.`); | ||
assert_1.default.invariant(element_1.tabIndexGetter.call(host) === -1 || shadow_root_1.isDelegatingFocus(host), `The focusin event is only relevant when the tabIndex property is -1 on the host.`); | ||
} | ||
@@ -140,2 +157,10 @@ const firstChild = inner[0]; | ||
} | ||
function getPreviousTabbableElement(segments) { | ||
const { prev } = segments; | ||
return getFirstTabbableMatch(language_1.ArrayReverse.call(prev)); | ||
} | ||
function getNextTabbableElement(segments) { | ||
const { next } = segments; | ||
return getFirstTabbableMatch(next); | ||
} | ||
function muteEvent(event) { | ||
@@ -152,25 +177,43 @@ event.preventDefault(); | ||
} | ||
function focusOnNextOrBlur(segment, target, relatedTarget) { | ||
const win = utils_1.getOwnerWindow(relatedTarget); | ||
const next = getNextTabbable(segment, relatedTarget); | ||
if (language_1.isNull(next)) { | ||
// nothing to focus on, blur to invalidate the operation | ||
muteFocusEventsDuringExecution(win, () => { | ||
target.blur(); | ||
}); | ||
} | ||
else { | ||
muteFocusEventsDuringExecution(win, () => { | ||
next.focus(); | ||
}); | ||
} | ||
function focusOnNextOrBlur(focusEventTarget, segments) { | ||
const win = utils_1.getOwnerWindow(focusEventTarget); | ||
muteFocusEventsDuringExecution(win, () => { | ||
const nextNode = getNextTabbableElement(segments); | ||
if (language_1.isNull(nextNode)) { | ||
// nothing to focus on, blur to invalidate the operation | ||
focusEventTarget.blur(); | ||
} | ||
else { | ||
nextNode.focus(); | ||
} | ||
}); | ||
} | ||
function focusOnPrevOrBlur(focusEventTarget, segments) { | ||
const win = utils_1.getOwnerWindow(focusEventTarget); | ||
muteFocusEventsDuringExecution(win, () => { | ||
const prevNode = getPreviousTabbableElement(segments); | ||
if (language_1.isNull(prevNode)) { | ||
// nothing to focus on, blur to invalidate the operation | ||
focusEventTarget.blur(); | ||
} | ||
else { | ||
prevNode.focus(); | ||
} | ||
}); | ||
} | ||
function isFirstTabbableChild(target, segments) { | ||
return getFirstTabbableMatch(segments.inner) === target; | ||
} | ||
function isLastTabbableChild(target, segments) { | ||
return getLastTabbableMatch(segments.inner) === target; | ||
} | ||
function keyboardFocusHandler(event) { | ||
const host = dom_1.eventCurrentTargetGetter.call(event); | ||
const target = dom_1.eventTargetGetter.call(event); | ||
// If the host delegating focus with tabindex=0 is not the target, we know | ||
// that the event was dispatched on a descendant node of the host. This | ||
// means the focus is coming from below and we don't need to do anything. | ||
// Ideally, we would be able to use a "focus" event that doesn't bubble | ||
// but, IE11 doesn't support relatedTarget on focus events so we have to use | ||
// focusin instead. The logic below is predicated on non-bubbling events | ||
// So, if currentTarget(host) ir not target, we know that the event is bubbling | ||
// and we escape because focus occured on something below the host. | ||
if (host !== target) { | ||
// Focus is coming from above | ||
return; | ||
@@ -180,8 +223,2 @@ } | ||
if (language_1.isNull(relatedTarget)) { | ||
// If relatedTarget is null, the user is most likely tabbing into the document from the | ||
// browser chrome. We can't do much in this case because the tab direction is unknown. This is an | ||
// edge case and only comes up if the custom element is the first or last tabbable element | ||
// in the document. | ||
// TODO: Is the above statement true? Couldn't we figure it out by looking at the position | ||
// of the target relative to all tabbable elements in the document? | ||
return; | ||
@@ -192,7 +229,6 @@ } | ||
if (position === 1) { | ||
// Focus is coming from above | ||
const findTabbableElms = isTabbableFrom.bind(null, traverse_1.patchedGetRootNode.call(host)); | ||
const first = language_1.ArrayFind.call(segments.inner, findTabbableElms); | ||
if (!language_1.isUndefined(first)) { | ||
const win = utils_1.getOwnerWindow(first); | ||
// probably tabbing into element | ||
const first = getFirstTabbableMatch(segments.inner); | ||
if (!language_1.isNull(first)) { | ||
const win = utils_1.getOwnerWindow(host); | ||
muteFocusEventsDuringExecution(win, () => { | ||
@@ -203,8 +239,8 @@ first.focus(); | ||
else { | ||
focusOnNextOrBlur(segments.next, target, relatedTarget); | ||
focusOnNextOrBlur(target, segments); | ||
} | ||
} | ||
else if (host === target) { | ||
// Host is receiving focus from below, either from its shadow or from a sibling | ||
focusOnNextOrBlur(language_1.ArrayReverse.call(segments.prev), target, relatedTarget); | ||
// Shift tabbed back to the host | ||
focusOnPrevOrBlur(host, segments); | ||
} | ||
@@ -218,60 +254,39 @@ } | ||
function keyboardFocusInHandler(event) { | ||
const host = dom_1.eventCurrentTargetGetter.call(event); | ||
const target = dom_1.eventTargetGetter.call(event); | ||
const relatedTarget = dom_1.focusEventRelatedTargetGetter.call(event); | ||
if (language_1.isNull(relatedTarget)) { | ||
// If relatedTarget is null, the user is most likely tabbing into the document from the | ||
// browser chrome. We can't do much in this case because the tab direction is unknown. This is an | ||
// edge case and only comes up if the custom element is the first or last tabbable element | ||
// in the document. | ||
// TODO: Is the above statement true? Couldn't we figure it out by looking at the position | ||
// of the target relative to all tabbable elements in the document? | ||
return; | ||
} | ||
const host = dom_1.eventCurrentTargetGetter.call(event); | ||
const segments = getTabbableSegments(host); | ||
if (language_1.ArrayIndexOf.call(segments.inner, relatedTarget) !== -1) { | ||
// If relatedTarget is contained by the host's subtree we can assume that the user is | ||
// tabbing between elements inside of the shadow. Do nothing. | ||
const isFirstFocusableChildReceivingFocus = isFirstTabbableChild(target, segments); | ||
const isLastFocusableChildReceivingFocus = isLastTabbableChild(target, segments); | ||
if ( | ||
// If we receive a focusin event that is not focusing on the first or last | ||
// element inside of a shadow, we can assume that the user is tabbing between | ||
// elements inside of the custom element shadow, so we do nothing | ||
(language_1.isFalse(isFirstFocusableChildReceivingFocus) && | ||
language_1.isFalse(isLastFocusableChildReceivingFocus)) || | ||
// If related target is null, user is probably tabbing into the document from the browser chrome (location bar?) | ||
// If relatedTarget is null, we can't do much here because we don't know what direction the user is tabbing | ||
// This is a bit of an edge case, and only comes up if the custom element is the very first or very last | ||
// tabbable element in a document | ||
language_1.isNull(relatedTarget)) { | ||
return; | ||
} | ||
const target = dom_1.eventTargetGetter.call(event); | ||
// Determine where the focus is coming from (Tab or Shift+Tab) | ||
const position = relatedTargetPosition(host, relatedTarget); | ||
if (position === 1) { | ||
// Focus is coming from above | ||
focusOnNextOrBlur(segments.next, target, relatedTarget); | ||
} | ||
if (position === 2) { | ||
// Focus is coming from below | ||
focusOnNextOrBlur(language_1.ArrayReverse.call(segments.prev), target, relatedTarget); | ||
} | ||
} | ||
// Use this function to determine whether you can start from one root and end up | ||
// at another element via tabbing. | ||
function isTabbableFrom(fromRoot, toElm) { | ||
if (!isTabbable(toElm)) { | ||
return false; | ||
} | ||
const ownerDocument = utils_1.getOwnerDocument(toElm); | ||
let root = traverse_1.patchedGetRootNode.call(toElm); | ||
while (root !== ownerDocument && root !== fromRoot) { | ||
const sr = root; | ||
const host = sr.host; | ||
if (element_1.getAttribute.call(host, 'tabindex') === '-1') { | ||
return false; | ||
} | ||
root = host && traverse_1.patchedGetRootNode.call(host); | ||
} | ||
return true; | ||
} | ||
function getNextTabbable(tabbables, relatedTarget) { | ||
const len = tabbables.length; | ||
if (len > 0) { | ||
for (let i = 0; i < len; i += 1) { | ||
const next = tabbables[i]; | ||
if (isTabbableFrom(traverse_1.patchedGetRootNode.call(relatedTarget), next)) { | ||
return next; | ||
const post = relatedTargetPosition(host, relatedTarget); | ||
switch (post) { | ||
case 1: // focus is probably coming from above | ||
if (isFirstFocusableChildReceivingFocus) { | ||
// the focus was on the immediate focusable elements from above, | ||
// it is almost certain that the focus is due to tab keypress | ||
focusOnNextOrBlur(target, segments); | ||
} | ||
} | ||
break; | ||
case 2: // focus is probably coming from below | ||
if (isLastFocusableChildReceivingFocus) { | ||
// the focus was on the immediate focusable elements from above, | ||
// it is almost certain that the focus is due to tab keypress | ||
focusOnPrevOrBlur(target, segments); | ||
} | ||
break; | ||
} | ||
return null; | ||
} | ||
@@ -278,0 +293,0 @@ function willTriggerFocusInEvent(target) { |
{ | ||
"name": "@lwc/synthetic-shadow", | ||
"version": "0.39.1-222.2", | ||
"version": "0.39.1-222.3", | ||
"description": "Synthetic Shadow Root for LWC", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "c2376d9758be5a5916648d7a674151dbd6fa33b1" | ||
"gitHead": "41062aeddaba596cc3524b601205552f82563c8f" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1480613
31039