UNPKG

@haxtheweb/haxcms-nodejs

Version:

HAXcms single and multisite nodejs server, api, and administration

10 lines 128 kB
/** @license @nocompile Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ (function(){var t;function ba(t){var r=0;return function(){return r<t.length?{done:!1,value:t[r++]}:{done:!0}}}var r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,r,o){return t==Array.prototype||t==Object.prototype||(t[r]=o.value),t};var o,i=function da(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var r=0;r<t.length;++r){var o=t[r];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function fa(t,o){if(o)e:{var s=i;t=t.split(".");for(var l=0;l<t.length-1;l++){var u=t[l];if(!(u in s))break e;s=s[u]}(o=o(l=s[t=t[t.length-1]]))!=l&&null!=o&&r(s,t,{configurable:!0,writable:!0,value:o})}}function ja(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}function ka(t){var r="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return r?r.call(t):{next:ba(t)}}function w(t){if(!(t instanceof Array)){t=ka(t);for(var r,o=[];!(r=t.next()).done;)o.push(r.value);t=o}return t}if(fa("Symbol",(function(t){function c(t,o){this.g=t,r(this,"description",{configurable:!0,writable:!0,value:o})}if(t)return t;c.prototype.toString=function(){return this.g};var o=0;return function b(t){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(t||"")+"_"+o++,t)}})),fa("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var o="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),s=0;s<o.length;s++){var l=i[o[s]];"function"==typeof l&&"function"!=typeof l.prototype[t]&&r(l.prototype,t,{configurable:!0,writable:!0,value:function(){return ja(ba(this))}})}return t})),"function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var s;e:{var l={};try{l.__proto__={a:!0},s=l.a;break e}catch(_){}s=!1}o=s?function(t,r){if(t.__proto__=r,t.__proto__!==r)throw new TypeError(t+" is not extensible");return t}:null}var u=o;function ra(){this.u=!1,this.h=null,this.Oa=void 0,this.g=1,this.ea=0,this.i=null}function ua(t){if(t.u)throw new TypeError("Generator is already running");t.u=!0}function wa(t,r){t.i={ab:r,fb:!0},t.g=t.ea}function ya(t,r){return t.g=3,{value:r}}function za(t){this.g=new ra,this.h=t}function Ba(t,r,o,i){try{var s=r.call(t.g.h,o);if(!(s instanceof Object))throw new TypeError("Iterator result "+s+" is not an object");if(!s.done)return t.g.u=!1,s;var l=s.value}catch(r){return t.g.h=null,wa(t.g,r),Ca(t)}return t.g.h=null,i.call(t.g,l),Ca(t)}function Ca(t){for(;t.g.g;)try{var r=t.h(t.g);if(r)return t.g.u=!1,{value:r.value,done:!1}}catch(r){t.g.Oa=void 0,wa(t.g,r)}if(t.g.u=!1,t.g.i){if(r=t.g.i,t.g.i=null,r.fb)throw r.ab;return{value:r.return,done:!0}}return{value:void 0,done:!0}}function Da(t){this.next=function(r){return ua(t.g),t.g.h?r=Ba(t,t.g.h.next,r,t.g.O):(t.g.O(r),r=Ca(t)),r},this.throw=function(r){return ua(t.g),t.g.h?r=Ba(t,t.g.h.throw,r,t.g.O):(wa(t.g,r),r=Ca(t)),r},this.return=function(r){return function Aa(t,r){ua(t.g);var o=t.g.h;return o?Ba(t,"return"in o?o.return:function(t){return{value:t,done:!0}},r,t.g.return):(t.g.return(r),Ca(t))}(t,r)},this[Symbol.iterator]=function(){return this}}function Ea(t,r){return r=new Da(new za(r)),u&&t.prototype&&u(r,t.prototype),r}ra.prototype.O=function(t){this.Oa=t},ra.prototype.return=function(t){this.i={return:t},this.g=this.ea},Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t){for(var r,o=[].slice.call(arguments,1),i=0;i<o.length;i++)if(r=o[i])for(var s=t,l=Object.keys(r),u=0;u<l.length;u++){var h=l[u];s[h]=r[h]}return t});var h=setTimeout;function Ga(){}function A(t){if(!(this instanceof A))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.N=0,this.Ha=!1,this.I=void 0,this.ba=[],Ia(t,this)}function Ja(t,r){for(;3===t.N;)t=t.I;0===t.N?t.ba.push(r):(t.Ha=!0,j((function(){var o=1===t.N?r.hb:r.ib;if(null===o)(1===t.N?La:Ma)(r.promise,t.I);else{try{var i=o(t.I)}catch(t){return void Ma(r.promise,t)}La(r.promise,i)}})))}function La(t,r){try{if(r===t)throw new TypeError("A promise cannot be resolved with itself.");if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if(r instanceof A)return t.N=3,t.I=r,void Na(t);if("function"==typeof o)return void Ia(function Ha(t,r){return function(){t.apply(r,arguments)}}(o,r),t)}t.N=1,t.I=r,Na(t)}catch(r){Ma(t,r)}}function Ma(t,r){t.N=2,t.I=r,Na(t)}function Na(t){2===t.N&&0===t.ba.length&&j((function(){t.Ha||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t.I)}));for(var r=0,o=t.ba.length;r<o;r++)Ja(t,t.ba[r]);t.ba=null}function Oa(t,r,o){this.hb="function"==typeof t?t:null,this.ib="function"==typeof r?r:null,this.promise=o}function Ia(t,r){var o=!1;try{t((function(t){o||(o=!0,La(r,t))}),(function(t){o||(o=!0,Ma(r,t))}))}catch(t){o||(o=!0,Ma(r,t))}}function Qa(t){return t&&"object"==typeof t&&t.constructor===A?t:new A((function(r){r(t)}))}A.prototype.catch=function(t){return this.then(null,t)},A.prototype.then=function(t,r){var o=new this.constructor(Ga);return Ja(this,new Oa(t,r,o)),o},A.prototype.finally=function(t){var r=this.constructor;return this.then((function(o){return r.resolve(t()).then((function(){return o}))}),(function(o){return r.resolve(t()).then((function(){return r.reject(o)}))}))};var _,m,v,E,C,M,j="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){h(t,0)};if(!window.Promise){window.Promise=A,A.prototype.then=A.prototype.then,A.all=function Pa(t){return new A((function(r,o){function d(t,l){try{if(l&&("object"==typeof l||"function"==typeof l)){var u=l.then;if("function"==typeof u)return void u.call(l,(function(r){d(t,r)}),o)}i[t]=l,0==--s&&r(i)}catch(t){o(t)}}if(!t||void 0===t.length)return o(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return r([]);for(var s=i.length,l=0;l<i.length;l++)d(l,i[l])}))},A.race=function Sa(t){return new A((function(r,o){if(!t||void 0===t.length)return o(new TypeError("Promise.race accepts an array"));for(var i=0,s=t.length;i<s;i++)Qa(t[i]).then(r,o)}))},A.resolve=Qa,A.reject=function Ra(t){return new A((function(r,o){o(t)}))};var k=document.createTextNode(""),R=[];new MutationObserver((function(){for(var t=R.length,r=0;r<t;r++)R[r]();R.splice(0,t)})).observe(k,{characterData:!0}),j=function(t){R.push(t),k.textContent=0<k.textContent.length?"":"a"}}!function(t,r){if(!(r in t)){var o=typeof global==typeof o?window:global,i=0,s=String(Math.random()),l="__symbol@@"+s,u=t.getOwnPropertyNames,h=t.getOwnPropertyDescriptor,_=t.create,m=t.keys,v=t.freeze||t,E=t.defineProperty,C=t.defineProperties,M=h(t,"getOwnPropertyNames"),j=t.prototype,k=j.hasOwnProperty,R=j.propertyIsEnumerable,F=j.toString,y=function(t,r,o){k.call(t,l)||E(t,l,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[l]["@@"+r]=o},x=function(){},ta=function(t){return t!=l&&!k.call(B,t)},ia=function(t){return t!=l&&k.call(B,t)},sa=function(t){var r=String(t);return ia(r)?k.call(this,r)&&!!this[l]&&this[l]["@@"+r]:R.call(this,t)},n=function(r){return E(j,r,{enumerable:!1,configurable:!0,get:x,set:function(t){q(this,r,{enumerable:!1,configurable:!0,writable:!0,value:t}),y(this,r,!0)}}),B[r]=E(t(r),"constructor",W),v(B[r])},H=function G(t){if(this instanceof G)throw new TypeError("Symbol is not a constructor");return n("__symbol:".concat(t||"",s,++i))},B=_(null),W={value:H},ib=function(t){return B[t]},Va=function(t,r,o){var i=String(r);if(ia(i)){if(r=q,o.enumerable){var s=_(o);s.enumerable=!1}else s=o;r(t,i,s),y(t,i,!!o.enumerable)}else E(t,r,o);return t},jb=function(t){return u(t).filter(ia).map(ib)};M.value=Va,E(t,"defineProperty",M),M.value=jb,E(t,r,M),M.value=function(t){return u(t).filter(ta)},E(t,"getOwnPropertyNames",M),M.value=function(t,r){var o=jb(r);return o.length?m(r).concat(o).forEach((function(o){sa.call(r,o)&&Va(t,o,r[o])})):C(t,r),t},E(t,"defineProperties",M),M.value=sa,E(j,"propertyIsEnumerable",M),M.value=H,E(o,"Symbol",M),M.value=function(t){return(t="__symbol:".concat("__symbol:",t,s))in j?B[t]:n(t)},E(H,"for",M),M.value=function(t){if(ta(t))throw new TypeError(t+" is not a symbol");if(k.call(B,t)&&("__symbol:"===(t=t.slice(10)).slice(0,10)&&(t=t.slice(10))!==s))return 0<(t=t.slice(0,t.length-s.length)).length?t:void 0},E(H,"keyFor",M),M.value=function(t,r){var o=h(t,r);return o&&ia(r)&&(o.enumerable=sa.call(t,r)),o},E(t,"getOwnPropertyDescriptor",M),M.value=function(t,r){return 1===arguments.length||void 0===r?_(t):function(t,r){var o=_(t);return u(r).forEach((function(t){sa.call(r,t)&&Va(o,t,r[t])})),o}(t,r)},E(t,"create",M),M.value=function(){var t=F.call(this);return"[object String]"===t&&ia(this)?"[object Symbol]":t},E(j,"toString",M);try{if(!0!==_(E({},"__symbol:",{get:function(){return E(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var q=E}catch(t){q=function(t,r,o){var i=h(j,r);delete j[r],E(t,r,o),E(j,r,i)}}}}(Object,"getOwnPropertySymbols"),_=Object,m=Symbol,E=_.defineProperty,C=_.prototype,M=C.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach((function(t){t in m||(E(m,t,{value:m(t)}),"toStringTag"===t&&((v=_.getOwnPropertyDescriptor(C,"toString")).value=function(){var t=M.call(this),r=null==this?this:this[m.toStringTag];return null==r?t:"[object "+r+"]"},E(C,"toString",v)))})),function(t,r,o){function d(){return this}r[t]||(r[t]=function(){var r=0,o=this,i={next:function(){var t=o.length<=r;return t?{done:t}:{done:t,value:o[r++]}}};return i[t]=d,i}),o[t]||(o[t]=function(){var r=String.fromCodePoint,o=this,i=0,s=o.length,l={next:function(){var t=s<=i,l=t?"":r(o.codePointAt(i));return i+=l.length,t?{done:t}:{done:t,value:l}}};return l[t]=d,l})}(Symbol.iterator,Array.prototype,String.prototype);var F=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":F.call(this)},Object.keys=function(t){return Object.getOwnPropertyNames(t).filter((function(r){return(r=Object.getOwnPropertyDescriptor(t,r))&&r.enumerable}))},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function Xa(){var t,r=this;return Ea(Xa,(function(o){if(1==o.g&&(t=0),3!=o.g)return t<r.length?o=ya(o,r[t]):(o.g=0,o=void 0),o;t++,o.g=2}))}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function Ya(){var t,r,o=this;return Ea(Ya,(function(i){if(1==i.g&&(t=[],o.forEach((function(r){t.push(r)})),r=0),3!=i.g)return r<t.length?i=ya(i,t[r]):(i.g=0,i=void 0),i;r++,i.g=2}))}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function Za(){var t,r,o=this;return Ea(Za,(function(i){if(1==i.g&&(t=[],o.forEach((function(r,o){t.push([o,r])})),r=0),3!=i.g)return r<t.length?i=ya(i,t[r]):(i.g=0,i=void 0),i;r++,i.g=2}))});var H=document.createEvent("Event");if(H.initEvent("foo",!0,!0),H.preventDefault(),!H.defaultPrevented){var B=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(B.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var W=/Trident/.test(navigator.userAgent);if(!window.Event||W&&"function"!=typeof window.Event){var q=window.Event;if(window.Event=function(t,r){r=r||{};var o=document.createEvent("Event");return o.initEvent(t,!!r.bubbles,!!r.cancelable),o},q){for(var V in q)window.Event[V]=q[V];window.Event.prototype=q.prototype}}if((!window.CustomEvent||W&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,r){r=r||{};var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,!!r.bubbles,!!r.cancelable,r.detail),o},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||W&&"function"!=typeof window.MouseEvent){var X=window.MouseEvent;if(window.MouseEvent=function(t,r){r=r||{};var o=document.createEvent("MouseEvent");return o.initMouseEvent(t,!!r.bubbles,!!r.cancelable,r.view||window,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget),o},X)for(var $ in X)window.MouseEvent[$]=X[$];window.MouseEvent.prototype=X.prototype}var z,K=function(){function a(){i++}var t=!1,r=!1,o={get capture(){return t=!0},get once(){return r=!0}},i=0,s=document.createElement("div");s.addEventListener("click",a,o);var l=t&&r;return l&&(s.dispatchEvent(new Event("click")),s.dispatchEvent(new Event("click")),l=1==i),s.removeEventListener("click",a,o),l}(),Z=null!==(z=window.EventTarget)&&void 0!==z?z:window.Node;if(!K&&"addEventListener"in Z.prototype){var lb=function(t){if(!t||"object"!=typeof t&&"function"!=typeof t){var r=!!t;t=!1}else r=!!t.capture,t=!!t.once;return{capture:r,once:t}},ne=Z.prototype.addEventListener,re=Z.prototype.removeEventListener,oe=new WeakMap,ae=new WeakMap,sb=function(t,r,o){var i=o?oe:ae;return void 0===(o=i.get(t))&&i.set(t,o=new Map),void 0===(t=o.get(r))&&o.set(r,t=new WeakMap),t};Z.prototype.addEventListener=function(t,r,o){var i=this;if(null!=r){var s=(o=lb(o)).capture;o=o.once;var l=sb(this,t,s);if(!l.has(r)){var u=o?function(o){return l.delete(r),re.call(i,t,u,s),"function"==typeof r?r.call(i,o):"function"==typeof(null==r?void 0:r.handleEvent)?r.handleEvent(o):void 0}:null;l.set(r,u),ne.call(this,t,null!=u?u:r,s)}}},Z.prototype.removeEventListener=function(t,r,o){if(null!=r){o=lb(o).capture;var i=sb(this,t,o),s=i.get(r);void 0!==s&&(i.delete(r),re.call(this,t,null!=s?s:r,o))}}}Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var t=(this.ownerDocument||this).querySelector("base[href]");return t&&t.href||window.location.href},configurable:!0,enumerable:!0});var le,de,_e=Element.prototype,me=null!==(le=Object.getOwnPropertyDescriptor(_e,"attributes"))&&void 0!==le?le:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),Ee=null!==(de=null==me?void 0:me.get)&&void 0!==de?de:function(){return this.attributes},we=Array.prototype.map;_e.hasOwnProperty("getAttributeNames")||(_e.getAttributeNames=function(){return we.call(Ee.call(this),(function(t){return t.name}))});var Te,xe=Element.prototype;xe.hasOwnProperty("matches")||(xe.matches=null!==(Te=xe.webkitMatchesSelector)&&void 0!==Te?Te:xe.msMatchesSelector);var Fe=Node.prototype.appendChild;function Cb(t){(t=t.prototype).hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];for(o=(r=ka(r)).next();!o.done;o=r.next())o=o.value,Fe.call(this,"string"==typeof o?document.createTextNode(o):o)}})}Cb(Document),Cb(DocumentFragment),Cb(Element);var Ie,He,We=Node.prototype.insertBefore,qe=null!==(He=null===(Ie=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===Ie?void 0:Ie.get)&&void 0!==He?He:function(){return this.firstChild};function Hb(t){(t=t.prototype).hasOwnProperty("prepend")||Object.defineProperty(t,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=qe.call(this);for(var i=(r=ka(r)).next();!i.done;i=r.next())i=i.value,We.call(this,"string"==typeof i?document.createTextNode(i):i,o)}})}Hb(Document),Hb(DocumentFragment),Hb(Element);var Ve,Ge,et=Node.prototype.appendChild,tt=Node.prototype.removeChild,nt=null!==(Ge=null===(Ve=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===Ve?void 0:Ve.get)&&void 0!==Ge?Ge:function(){return this.firstChild};function Nb(t){(t=t.prototype).hasOwnProperty("replaceChildren")||Object.defineProperty(t,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];for(;null!==(o=nt.call(this));)tt.call(this,o);for(o=(r=ka(r)).next();!o.done;o=r.next())o=o.value,et.call(this,"string"==typeof o?document.createTextNode(o):o)}})}Nb(Document),Nb(DocumentFragment),Nb(Element);var rt,ot,it,at,st=Node.prototype.insertBefore,lt=null!==(ot=null===(rt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===rt?void 0:rt.get)&&void 0!==ot?ot:function(){return this.parentNode},ct=null!==(at=null===(it=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===it?void 0:it.get)&&void 0!==at?at:function(){return this.nextSibling};function Vb(t){(t=t.prototype).hasOwnProperty("after")||Object.defineProperty(t,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];if(null!==(o=lt.call(this)))for(var i=ct.call(this),s=(r=ka(r)).next();!s.done;s=r.next())s=s.value,st.call(o,"string"==typeof s?document.createTextNode(s):s,i)}})}Vb(CharacterData),Vb(Element);var ut,ht,dt=Node.prototype.insertBefore,ft=null!==(ht=null===(ut=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===ut?void 0:ut.get)&&void 0!==ht?ht:function(){return this.parentNode};function $b(t){(t=t.prototype).hasOwnProperty("before")||Object.defineProperty(t,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];if(null!==(o=ft.call(this)))for(var i=(r=ka(r)).next();!i.done;i=r.next())i=i.value,dt.call(o,"string"==typeof i?document.createTextNode(i):i,this)}})}$b(CharacterData),$b(Element);var pt,_t,mt=Node.prototype.removeChild,vt=null!==(_t=null===(pt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===pt?void 0:pt.get)&&void 0!==_t?_t:function(){return this.parentNode};function ec(t){(t=t.prototype).hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=vt.call(this);t&&mt.call(t,this)}})}ec(CharacterData),ec(Element);var yt,gt,bt=Node.prototype.insertBefore,Et=Node.prototype.removeChild,wt=null!==(gt=null===(yt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===yt?void 0:yt.get)&&void 0!==gt?gt:function(){return this.parentNode};function lc(t){(t=t.prototype).hasOwnProperty("replaceWith")||Object.defineProperty(t,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];if(null!==(o=wt.call(this))){for(var i=(r=ka(r)).next();!i.done;i=r.next())i=i.value,bt.call(o,"string"==typeof i?document.createTextNode(i):i,this);Et.call(o,this)}}})}lc(CharacterData),lc(Element);var Nt=window.Element.prototype,Ct=window.HTMLElement.prototype,St=window.SVGElement.prototype;!Ct.hasOwnProperty("classList")||Nt.hasOwnProperty("classList")||St.hasOwnProperty("classList")||Object.defineProperty(Nt,"classList",Object.getOwnPropertyDescriptor(Ct,"classList"));var Tt=Element.prototype,Ot=Element.prototype.hasAttribute,Dt=Element.prototype.setAttribute,Pt=Element.prototype.removeAttribute;Tt.hasOwnProperty("toggleAttribute")||(Tt.toggleAttribute=function(t,r){return void 0===r?Ot.call(this,t)?(Pt.call(this,t),!1):(Dt.call(this,t,""),!0):r?(Ot.call(this,t)||Dt.call(this,t,""),!0):(Pt.call(this,t),!1)});var xt=document.createElement("style");xt.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Mt=document.querySelector("head");Mt.insertBefore(xt,Mt.firstChild);var Lt=window;Lt.WebComponents=Lt.WebComponents||{flags:{}};var jt=document.querySelector('script[src*="webcomponents-bundle"]'),At=/wc-(.+)/,kt={};if(!kt.noOpts){if(location.search.slice(1).split("&").forEach((function(t){var r;(t=t.split("="))[0]&&(r=t[0].match(At))&&(kt[r[1]]=t[1]||!0)})),jt)for(var Rt=0,Ft=void 0;Ft=jt.attributes[Rt];Rt++)"src"!==Ft.name&&(kt[Ft.name]=Ft.value||!0);var It={};kt.log&&kt.log.split&&kt.log.split(",").forEach((function(t){It[t]=!0})),kt.log=It}Lt.WebComponents.flags=kt;var Ht=kt.shadydom;if(Ht){Lt.ShadyDOM=Lt.ShadyDOM||{},Lt.ShadyDOM.force=Ht;var Ut=kt.noPatch;Lt.ShadyDOM.noPatch="true"===Ut||Ut}var Bt=kt.register||kt.ce;function Fc(){}function D(t){return t.__shady||(t.__shady=new Fc),t.__shady}function L(t){return t&&t.__shady}Bt&&window.customElements&&(Lt.customElements.forcePolyfill=Bt),function(){function a(){}function b(t,r){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return M.call(t,r);case Node.DOCUMENT_FRAGMENT_NODE:return j.call(t,r);default:return C.call(t,r)}}var t="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function p(t,o){if(t instanceof DocumentFragment)for(var i;i=t.firstChild;)r.call(this,i,o);else r.call(this,t,o);return t}o=!0;var t=Node.prototype.cloneNode;Node.prototype.cloneNode=function(r){return r=t.call(this,r),this instanceof DocumentFragment&&(r.__proto__=DocumentFragment.prototype),r},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var r=Node.prototype.insertBefore;Node.prototype.insertBefore=p;var i=Node.prototype.appendChild;Node.prototype.appendChild=function(t){return t instanceof DocumentFragment?p.call(this,t,null):i.call(this,t),t};var s=Node.prototype.removeChild,l=Node.prototype.replaceChild;Node.prototype.replaceChild=function(t,r){return t instanceof DocumentFragment?(p.call(this,t,r),s.call(this,r)):l.call(this,t,r),r},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t};var u=Document.prototype.importNode;Document.prototype.importNode=function(t,r){return r=u.call(this,t,r||!1),t instanceof DocumentFragment&&(r.__proto__=DocumentFragment.prototype),r}}();var i=Node.prototype.cloneNode,s=Document.prototype.createElement,l=Document.prototype.importNode,u=Node.prototype.removeChild,h=Node.prototype.appendChild,_=Node.prototype.replaceChild,m=DOMParser.prototype.parseFromString,v=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},E=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},C=Element.prototype.querySelectorAll,M=Document.prototype.querySelectorAll,j=DocumentFragment.prototype.querySelectorAll,k=function(){if(!t){var o=document.createElement("template"),i=document.createElement("template");return i.content.appendChild(document.createElement("div")),o.content.appendChild(i),0===(o=o.cloneNode(!0)).content.childNodes.length||0===o.content.firstChild.content.childNodes.length||r}}();if(t){var R=document.implementation.createHTMLDocument("template"),F=!0,H=document.createElement("style");H.textContent="template{display:none;}";var B=document.head;B.insertBefore(H,B.firstElementChild),a.prototype=Object.create(HTMLElement.prototype);var W=!document.createElement("div").hasOwnProperty("innerHTML");a.Z=function(t){if(!t.content&&t.namespaceURI===document.documentElement.namespaceURI){t.content=R.createDocumentFragment();for(var r;r=t.firstChild;)h.call(t.content,r);if(W)t.__proto__=a.prototype;else if(t.cloneNode=function(t){return a.va(this,t)},F)try{n(t),J(t)}catch(t){F=!1}a.bootstrap(t.content)}};var q={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},n=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return xa(this)},set:function(t){var r=q[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(t)||["",""])[1].toLowerCase()];if(r)for(var o=0;o<r.length;o++)t="<"+r[o]+">"+t+"</"+r[o]+">";for(R.body.innerHTML=t,a.bootstrap(R);this.content.firstChild;)u.call(this.content,this.content.firstChild);if(t=R.body,r)for(o=0;o<r.length;o++)t=t.lastChild;for(;t.firstChild;)h.call(this.content,t.firstChild)},configurable:!0})},J=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(R.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();R.body.firstChild;)h.call(t,R.body.firstChild);_.call(this.parentNode,t,this)},configurable:!0})};n(a.prototype),J(a.prototype),a.bootstrap=function(t){for(var r,o=0,i=(t=b(t,"template")).length;o<i&&(r=t[o]);o++)a.Z(r)},document.addEventListener("DOMContentLoaded",(function(){a.bootstrap(document)})),Document.prototype.createElement=function(){var t=s.apply(this,arguments);return"template"===t.localName&&a.Z(t),t},DOMParser.prototype.parseFromString=function(){var t=m.apply(this,arguments);return a.bootstrap(t),t},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return xa(this)},set:function(t){v.set.call(this,t),a.bootstrap(this)},configurable:!0,enumerable:!0});var V=/[&\u00A0"]/g,X=/[&\u00A0<>]/g,ib=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},$=(H=function(t){for(var r={},o=0;o<t.length;o++)r[t[o]]=!0;return r})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),z=H("style script xmp iframe noembed noframes plaintext noscript".split(" ")),xa=function(t,r){"template"===t.localName&&(t=t.content);for(var o,i="",s=r?r(t):E.get.call(t),l=0,u=s.length;l<u&&(o=s[l]);l++){e:{var h=o,_=t,m=r;switch(h.nodeType){case Node.ELEMENT_NODE:for(var v=h.localName,C="<"+v,M=h.attributes,j=0;_=M[j];j++)C+=" "+_.name+'="'+_.value.replace(V,ib)+'"';C+=">",h=$[v]?C:C+xa(h,m)+"</"+v+">";break e;case Node.TEXT_NODE:h=h.data,h=_&&z[_.localName]?h:h.replace(X,ib);break e;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break e;default:throw window.console.error(h),Error("not implemented")}}i+=h}return i}}if(t||k){a.va=function(t,r){var o=i.call(t,!1);return this.Z&&this.Z(o),r&&(h.call(o.content,i.call(t.content,!0)),I(o.content,t.content)),o};var I=function(t,r){if(r.querySelectorAll&&0!==(r=b(r,"template")).length)for(var o,i,s=0,l=(t=b(t,"template")).length;s<l;s++)i=r[s],o=t[s],a&&a.Z&&a.Z(i),_.call(o.parentNode,K.call(i,!0),o)},K=Node.prototype.cloneNode=function(t){if(!o&&r&&this instanceof DocumentFragment){if(!t)return this.ownerDocument.createDocumentFragment();var s=Z.call(this.ownerDocument,this,!0)}else s=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?a.va(this,t):i.call(this,t);return t&&I(s,this),s},Z=Document.prototype.importNode=function(t,r){if(r=r||!1,"template"===t.localName)return a.va(t,r);var o=l.call(this,t,r);if(r){I(o,t),t=b(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,u=0;u<t.length;u++){i=t[u],(r=s.call(document,"script")).textContent=i.textContent;for(var h,m=i.attributes,v=0;v<m.length;v++)h=m[v],r.setAttribute(h.name,h.value);_.call(i.parentNode,r,i)}}return o}}t&&(window.HTMLTemplateElement=a)}(),Fc.prototype.toJSON=function(){return{}};var Wt=window.ShadyDOM||{};Wt.cb=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var qt,Yt=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Wt.D=!!(Yt&&Yt.configurable&&Yt.get),Wt.Ba=Wt.force||!Wt.cb,Wt.J=Wt.noPatch||!1,Wt.ha=Wt.preferPerformance,Wt.Da="on-demand"===Wt.J;var Vt=Wt.querySelectorImplementation;function Jc(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function Lc(t){return(t=L(t))&&void 0!==t.firstChild}function O(t){return t instanceof ShadowRoot}function Mc(t){return(t=(t=L(t))&&t.root)&&Nc(t)}qt=-1<["native","selectorEngine"].indexOf(Vt)?Vt:void 0,Wt.wb=qt,Wt.Ra=navigator.userAgent.match("Trident");var Gt=Element.prototype,Xt=Gt.matches||Gt.matchesSelector||Gt.mozMatchesSelector||Gt.msMatchesSelector||Gt.oMatchesSelector||Gt.webkitMatchesSelector,$t=document.createTextNode(""),zt=0,Qt=[];function Tc(t){Qt.push(t),$t.textContent=zt++}new MutationObserver((function(){for(;Qt.length;)try{Qt.shift()()}catch(t){throw $t.textContent=zt++,t}})).observe($t,{characterData:!0});var Kt=document.contains?function(t,r){return t.__shady_native_contains(r)}:function(t,r){return t===r||t.documentElement&&t.documentElement.__shady_native_contains(r)};function Vc(t,r){for(;r;){if(r==t)return!0;r=r.__shady_parentNode}return!1}function Wc(t){for(var r=t.length-1;0<=r;r--){var o=t[r],i=o.getAttribute("id")||o.getAttribute("name");i&&"length"!==i&&isNaN(i)&&(t[i]=o)}return t.item=function(r){return t[r]},t.namedItem=function(r){if("length"!==r&&isNaN(r)&&t[r])return t[r];for(var o=ka(t),i=o.next();!i.done;i=o.next())if(((i=i.value).getAttribute("id")||i.getAttribute("name"))==r)return i;return null},t}function Xc(t){var r=[];for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)r.push(t);return r}function Yc(t){var r=[];for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)r.push(t);return r}function Zc(t,r,o){if(o.configurable=!0,o.value)t[r]=o.value;else try{Object.defineProperty(t,r,o)}catch(t){}}function P(t,r,o,i){for(var s in o=void 0===o?"":o,r)i&&0<=i.indexOf(s)||Zc(t,o+s,r[s])}function $c(t,r){for(var o in r)o in t&&Zc(t,o,r[o])}function Q(t){var r={};return Object.getOwnPropertyNames(t).forEach((function(o){r[o]=Object.getOwnPropertyDescriptor(t,o)})),r}function ad(t,r){for(var o,i=Object.getOwnPropertyNames(r),s=0;s<i.length;s++)t[o=i[s]]=r[o]}function bd(t){return t instanceof Node?t:document.createTextNode(""+t)}function cd(t){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];if(1===r.length)return bd(r[0]);o=document.createDocumentFragment();for(var i=(r=ka(r)).next();!i.done;i=r.next())o.appendChild(bd(i.value));return o}function dd(t){var r;for(r=void 0===r?1:r;0<r;r--)t=t.reduce((function(t,r){return Array.isArray(r)?t.push.apply(t,w(r)):t.push(r),t}),[]);return t}var Zt,Jt=[];function hd(t){Zt||(Zt=!0,Tc(id)),Jt.push(t)}function id(){Zt=!1;for(var t=!!Jt.length;Jt.length;)Jt.shift()();return t}function jd(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.qa=new Set}id.list=Jt,jd.prototype.flush=function(){if(this.g){this.g=!1;var t=this.takeRecords();t.length&&this.qa.forEach((function(r){r(t)}))}},jd.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var en=/[&\u00A0"]/g,tn=/[&\u00A0<>]/g;function qd(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function rd(t){for(var r={},o=0;o<t.length;o++)r[t[o]]=!0;return r}var nn=rd("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),rn=rd("style script xmp iframe noembed noframes plaintext noscript".split(" "));function ud(t,r){"template"===t.localName&&(t=t.content);for(var o="",i=r?r(t):t.childNodes,s=0,l=i.length,u=void 0;s<l&&(u=i[s]);s++){e:{var h=u,_=t,m=r;switch(h.nodeType){case Node.ELEMENT_NODE:for(var v,E="<"+(_=h.localName),C=h.attributes,M=0;v=C[M];M++)E+=" "+v.name+'="'+v.value.replace(en,qd)+'"';E+=">",h=nn[_]?E:E+ud(h,m)+"</"+_+">";break e;case Node.TEXT_NODE:h=h.data,h=_&&rn[_.localName]?h:h.replace(tn,qd);break e;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break e;default:throw window.console.error(h),Error("not implemented")}}o+=h}return o}var on=Wt.D,an={querySelector:function(t){return this.__shady_native_querySelector(t)},querySelectorAll:function(t){return this.__shady_native_querySelectorAll(t)}},sn={};function yd(t){sn[t]=function(r){return r["__shady_native_"+t]}}function zd(t,r){for(var o in P(t,r,"__shady_native_"),r)yd(o)}function S(t,r){r=void 0===r?[]:r;for(var o=0;o<r.length;o++){var i=r[o],s=Object.getOwnPropertyDescriptor(t,i);s&&(Object.defineProperty(t,"__shady_native_"+i,s),s.value?an[i]||(an[i]=s.value):yd(i))}}var ln=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),cn=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),un=document.implementation.createHTMLDocument("inert");function Dd(t){for(var r;r=t.__shady_native_firstChild;)t.__shady_native_removeChild(r)}var hn=["firstElementChild","lastElementChild","children","childElementCount"],dn=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var fn=Q({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),pn=Q({get textContent(){return this.__shady_textContent},set textContent(t){this.__shady_textContent=t},get innerHTML(){return this.__shady_innerHTML},set innerHTML(t){this.__shady_innerHTML=t}}),_n=Q({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(t){this.__shady_className=t}});function Kd(t){for(var r in t){var o=t[r];o&&(o.enumerable=!1)}}Kd(fn),Kd(pn),Kd(_n);var mn=Wt.D||!0===Wt.J,vn=mn?function(){}:function(t){var r=D(t);r.Ta||(r.Ta=!0,$c(t,_n))},yn=mn?function(){}:function(t){var r=D(t);r.Sa||(r.Sa=!0,$c(t,fn),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!Wt.J||$c(t,pn))},gn="__eventWrappers"+Date.now(),bn=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(r){return t.get.call(r)}:null}(),En=function(){function a(){}var t=!1,r={get capture(){return t=!0,!1}};return window.addEventListener("test",a,r),window.removeEventListener("test",a,r),t}();function Rd(t){if(null===t||"object"!=typeof t&&"function"!=typeof t)var r=!!t,o=!1;else{r=!!t.capture,o=!!t.once;var i=t.U}return{Pa:i,capture:r,once:o,Na:En?t:r}}var wn={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Nn={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Ud(t){return t instanceof Node?t.__shady_getRootNode():t}function Vd(t,r){var o=[],i=t;for(t=Ud(t);i;)o.push(i),i=i.__shady_assignedSlot?i.__shady_assignedSlot:i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&i.host&&(r||i!==t)?i.host:i.__shady_parentNode;return o[o.length-1]===document&&o.push(window),o}function Xd(t,r){if(!O)return t;t=Vd(t,!0);for(var o,i,s=0,l=void 0,u=void 0;s<r.length;s++)if((i=Ud(o=r[s]))!==l&&(u=t.indexOf(i),l=i),!O(i)||-1<u)return o}var Cn={get composed(){return void 0===this.__composed&&(bn?this.__composed="focusin"===this.type||"focusout"===this.type||bn(this):!1!==this.isTrusted&&(this.__composed=wn[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=Vd(this.__target,this.composed)),this.__composedPath},get target(){return Xd(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Vd(this.__relatedTarget,!0)),Xd(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ua=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ua=this.__immediatePropagationStopped=!0}},Sn=Wt.D&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function $d(t){function b(r,o){return(r=new t(r,o)).__composed=o&&!!o.composed,r}return b.__proto__=t,b.prototype=t.prototype,b}Sn&&(Object.defineProperty(Cn,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(Cn,"__shady_native_eventPhase",Sn));var Tn={focus:!0,blur:!0};function be(t){return t.__target!==t.target||t.__relatedTarget!==t.relatedTarget}function ce(t,r,o){if(o=r.__handlers&&r.__handlers[t.type]&&r.__handlers[t.type][o])for(var i,s=0;(i=o[s])&&(!be(t)||t.target!==t.relatedTarget)&&(i.call(r,t),!t.__immediatePropagationStopped);s++);}var On=new Event("e").hasOwnProperty("currentTarget");function ee(t){var r=(t=On?Object.create(t):t).composedPath(),o=r.map((function(t){return Xd(t,r)})),i=t.bubbles,s=Object.getOwnPropertyDescriptor(t,"currentTarget");Object.defineProperty(t,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return _}});var l=Event.CAPTURING_PHASE,u=Object.getOwnPropertyDescriptor(t,"eventPhase");Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return l}});try{for(var h=r.length-1;0<=h;h--){var _=r[h];if(l=_===o[h]?Event.AT_TARGET:Event.CAPTURING_PHASE,ce(t,_,"capture"),t.ua)return}for(h=0;h<r.length;h++){var m=(_=r[h])===o[h];if((m||i)&&(l=m?Event.AT_TARGET:Event.BUBBLING_PHASE,ce(t,_,"bubble"),t.ua))break}}finally{On||(s?Object.defineProperty(t,"currentTarget",s):delete t.currentTarget,u?Object.defineProperty(t,"eventPhase",u):delete t.eventPhase)}}function fe(t,r,o,i){for(var s=0;s<t.length;s++){var l=t[s],u=l.type,h=l.capture;if(r===l.node&&o===u&&i===h)return s}return-1}function ge(t){return id(),!Wt.ha&&this instanceof Node&&!Kt(document,this)?(t.__target||he(t,this),ee(t)):this.__shady_native_dispatchEvent(t)}function ie(t,r,o){var i=this,s=Rd(o),l=s.capture,u=s.once,h=s.Pa;if(s=s.Na,r){var _=typeof r;if(("function"===_||"object"===_)&&("object"!==_||r.handleEvent&&"function"==typeof r.handleEvent)){if(Nn[t])return this.__shady_native_addEventListener(t,r,s);var m=h||this;if(h=r[gn]){if(-1<fe(h,m,t,l))return}else r[gn]=[];h=function(s){if(u&&i.__shady_removeEventListener(t,r,o),s.__target||he(s),m!==i){var h=Object.getOwnPropertyDescriptor(s,"currentTarget");Object.defineProperty(s,"currentTarget",{get:function(){return m},configurable:!0});var v=Object.getOwnPropertyDescriptor(s,"eventPhase");Object.defineProperty(s,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return l?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(s.__previousCurrentTarget=s.currentTarget,(!O(m)&&"slot"!==m.localName||-1!=s.composedPath().indexOf(m))&&(s.composed||-1<s.composedPath().indexOf(m)))if(be(s)&&s.target===s.relatedTarget)s.eventPhase===Event.BUBBLING_PHASE&&s.stopImmediatePropagation();else if(s.eventPhase===Event.CAPTURING_PHASE||s.bubbles||s.target===m||m instanceof Window){var E="function"===_?r.call(m,s):r.handleEvent&&r.handleEvent(s);return m!==i&&(h?(Object.defineProperty(s,"currentTarget",h),h=null):delete s.currentTarget,v?(Object.defineProperty(s,"eventPhase",v),v=null):delete s.eventPhase),E}},r[gn].push({node:m,type:t,capture:l,ub:h}),this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][l?"capture":"bubble"].push(h),Tn[t]||this.__shady_native_addEventListener(t,h,s)}}}function je(t,r,o){if(r){var i=Rd(o);o=i.capture;var s=i.Pa;if(i=i.Na,Nn[t])return this.__shady_native_removeEventListener(t,r,i);var l=s||this;s=void 0;var u=null;try{u=r[gn]}catch(t){}u&&(-1<(l=fe(u,l,t,o))&&(s=u.splice(l,1)[0].ub,u.length||(r[gn]=void 0))),this.__shady_native_removeEventListener(t,s||r,i),s&&this.__handlers&&this.__handlers[t]&&(-1<(r=(t=this.__handlers[t][o?"capture":"bubble"]).indexOf(s))&&t.splice(r,1))}}var Dn=Q(Cn);function he(t,r){if(r=void 0===r?t.target:r,t.__target=r,t.__relatedTarget=t.relatedTarget,Wt.D){if(!(r=Object.getPrototypeOf(t)).hasOwnProperty("__shady_patchedProto")){var o=Object.create(r);o.__shady_sourceProto=r,P(o,Dn),r.__shady_patchedProto=o}t.__proto__=r.__shady_patchedProto}else P(t,Dn)}var Pn=$d(Event),xn=$d(CustomEvent),Mn=$d(MouseEvent);var Ln=Object.getOwnPropertyNames(Element.prototype).filter((function(t){return"on"===t.substring(0,2)})),jn=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(t){return"on"===t.substring(0,2)}));function se(t){return{set:function(r){var o=D(this),i=t.substring(2);o.T||(o.T={}),o.T[t]&&this.removeEventListener(i,o.T[t]),this.__shady_addEventListener(i,r),o.T[t]=r},get:function(){var r=L(this);return r&&r.T&&r.T[t]},configurable:!0}}function te(t,r){return{index:t,ia:[],pa:r}}function ue(t,r,o,i){var s=0,l=0,u=0,h=0,_=Math.min(r-s,i-l);if(0==s&&0==l)e:{for(u=0;u<_;u++)if(t[u]!==o[u])break e;u=_}if(r==t.length&&i==o.length){h=t.length;for(var m=o.length,v=0;v<_-u&&ve(t[--h],o[--m]);)v++;h=v}if(l+=u,i-=h,0==(r-=h)-(s+=u)&&0==i-l)return[];if(s==r){for(r=te(s,0);l<i;)r.ia.push(o[l++]);return[r]}if(l==i)return[te(s,r-s)];for(i=i-(u=l)+1,h=r-(_=s)+1,r=Array(i),m=0;m<i;m++)r[m]=Array(h),r[m][0]=m;for(m=0;m<h;m++)r[0][m]=m;for(m=1;m<i;m++)for(v=1;v<h;v++)if(t[_+v-1]===o[u+m-1])r[m][v]=r[m-1][v-1];else{var E=r[m-1][v]+1,C=r[m][v-1]+1;r[m][v]=E<C?E:C}for(_=r.length-1,u=r[0].length-1,i=r[_][u],t=[];0<_||0<u;)0==_?(t.push(2),u--):0==u?(t.push(3),_--):(h=r[_-1][u-1],(E=(m=r[_-1][u])<(v=r[_][u-1])?m<h?m:h:v<h?v:h)==h?(h==i?t.push(0):(t.push(1),i=h),_--,u--):E==m?(t.push(3),_--,i=m):(t.push(2),u--,i=v));for(t.reverse(),r=void 0,_=[],u=0;u<t.length;u++)switch(t[u]){case 0:r&&(_.push(r),r=void 0),s++,l++;break;case 1:r||(r=te(s,0)),r.pa++,s++,r.ia.push(o[l]),l++;break;case 2:r||(r=te(s,0)),r.pa++,s++;break;case 3:r||(r=te(s,0)),r.ia.push(o[l]),l++}return r&&_.push(r),_}function ve(t,r){return t===r}var An=Q({dispatchEvent:ge,addEventListener:ie,removeEventListener:je}),kn=null;function ye(){return kn||(kn=window.ShadyCSS&&window.ShadyCSS.ScopingShim),kn||null}function ze(t,r,o){var i=ye();return!(!i||"class"!==r)&&(i.setElementClass(t,o),!0)}function Ae(t,r){var o=ye();o&&o.unscopeNode(t,r)}function Be(t,r){var o=ye();if(!o)return!0;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(o=!0,t=t.__shady_firstChild;t;t=t.__shady_nextSibling)o=o&&Be(t,r);return o}return t.nodeType!==Node.ELEMENT_NODE||o.currentScopeForNode(t)===r}function Ce(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var r=ye();return r?r.currentScopeForNode(t):""}function De(t,r){if(t)for(t.nodeType===Node.ELEMENT_NODE&&r(t),t=t.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType===Node.ELEMENT_NODE&&De(t,r)}var Rn=window.document,Fn=Wt.ha,In=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Hn=In&&In.get;function Je(t){for(var r;r=t.__shady_firstChild;)t.__shady_removeChild(r)}function Ke(t){var r=L(t);if(r&&void 0!==r.ta)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)Ke(r);(t=L(t))&&(t.ta=void 0)}function Le(t){var r=t;if(t&&"slot"===t.localName){var o=L(t);(o=o&&o.aa)&&(r=o.length?o[0]:Le(t.__shady_nextSibling))}return r}function Me(t,r,o){if(t=(t=L(t))&&t.ga){if(r)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var i=0,s=r.childNodes.length;i<s;i++)t.addedNodes.push(r.childNodes[i]);else t.addedNodes.push(r);o&&t.removedNodes.push(o),function kd(t){t.g||(t.g=!0,Tc((function(){t.flush()})))}(t)}}var Un=Q({get parentNode(){var t=L(this);return void 0!==(t=t&&t.parentNode)?t:this.__shady_native_parentNode},get firstChild(){var t=L(this);return void 0!==(t=t&&t.firstChild)?t:this.__shady_native_firstChild},get lastChild(){var t=L(this);return void 0!==(t=t&&t.lastChild)?t:this.__shady_native_lastChild},get nextSibling(){var t=L(this);return void 0!==(t=t&&t.nextSibling)?t:this.__shady_native_nextSibling},get previousSibling(){var t=L(this);return void 0!==(t=t&&t.previousSibling)?t:this.__shady_native_previousSibling},get childNodes(){if(Lc(this)){var t=L(this);if(!t.childNodes){t.childNodes=[];for(var r=this.__shady_firstChild;r;r=r.__shady_nextSibling)t.childNodes.push(r)}var o=t.childNodes}else o=this.__shady_native_childNodes;return o.item=function(t){return o[t]},o},get parentElement(){var t=L(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:this.__shady_native_parentElement},get isConnected(){if(Hn&&Hn.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(null===t||Kt(t,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.__shady_parentNode||(O(t)?t.host:void 0);return!!(t&&t instanceof Document)},get textContent(){if(Lc(this)){for(var t=[],r=this.__shady_firstChild;r;r=r.__shady_nextSibling)r.nodeType!==Node.COMMENT_NODE&&t.push(r.__shady_textContent);return t.join("")}return this.__shady_native_textContent},set textContent(t){switch(null==t&&(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!Lc(this)&&Wt.D){var r=this.__shady_firstChild;(r!=this.__shady_lastChild||r&&r.nodeType!=Node.TEXT_NODE)&&Je(this),this.__shady_native_textContent=t}else Je(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(t));break;default:this.nodeValue=t}},insertBefore:function(t,r){if(this.ownerDocument!==Rn&&t.ownerDocument!==Rn)return this.__shady_native_insertBefore(t,r),t;if(t===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(r){var o=L(r);if(void 0!==(o=o&&o.parentNode)&&o!==this||void 0===o&&r.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(r===t)return t;Me(this,t);var i=[],s=(o=Ne(this))?o.host.localName:Ce(this),l=t.__shady_parentNode;if(l){var u=Ce(t),h=!!o||!Ne(t)||Fn&&void 0!==this.__noInsertionPoint;l.__shady_removeChild(t,h)}l=!0;var _=(!Fn||void 0===t.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Be(t,s),m=o&&!t.__noInsertionPoint&&(!Fn||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(m||_)&&(_&&(u=u||Ce(t)),De(t,(function(t){if(m&&"slot"===t.localName&&i.push(t),_){var r=u;ye()&&(r&&Ae(t,r),(r=ye())&&r.scopeNode(t,s))}}))),i.length&&(Oe(o),o.i.push.apply(o.i,w(i)),Pe(o)),Lc(this)&&(function Qe(t,r,o){Nf(r,2);var i=D(r);if(void 0!==i.firstChild&&(i.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)Of(t,r,i,o);else Of(t,r,i,o)}(t,this,r),(h=L(this)).root?(l=!1,Mc(this)&&Pe(h.root)):o&&"slot"===this.localName&&(l=!1,Pe(o))),l?(o=O(this)?this.host:this,r?(r=Le(r),o.__shady_native_insertBefore(t,r)):o.__shady_native_appendChild(t)):t.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(t),t},appendChild:function(t){if(this!=t||!O(t))return this.__shady_insertBefore(t)},removeChild:function(t,r){if(r=void 0!==r&&r,this.ownerDocument!==Rn)return this.__shady_native_removeChild(t);if(t.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+t);Me(this,null,t);var o=Ne(t),i=o&&function Re(t,r){if(t.g){kf(t);var o,i=t.h;for(o in i)for(var s=i[o],l=0;l<s.length;l++){var u=s[l];if(Vc(r,u)){s.splice(l,1);var h=t.g.indexOf(u);if(0<=h&&(t.g.splice(h,1),(h=L(u.__shady_parentNode))&&h.ka&&h.ka--),l--,h=(u=L(u)).aa)for(var _=0;_<h.length;_++){var m=h[_],v=m.__shady_native_parentNode;v&&v.__shady_native_removeChild(m)}u.aa=[],u.assignedNodes=[],h=!0}}return h}}(o,t),s=L(this);if(Lc(this)&&(function Se(t,r){var o=D(t);r=D(r),t===r.firstChild&&(r.firstChild=o.nextSibling),t===r.lastChild&&(r.lastChild=o.previousSibling),t=o.previousSibling;var i=o.nextSibling;t&&(D(t).nextSibling=i),i&&(D(i).previousSibling=t),o.parentNode=o.previousSibling=o.nextSibling=void 0,void 0!==r.childNodes&&(r.childNodes=null)}(t,this),Mc(this))){Pe(s.root);var l=!0}if(ye()&&!r&&o&&t.nodeType!==Node.TEXT_NODE){var u=Ce(t);De(t,(function(t){Ae(t,u)}))}return Ke(t),o&&((r="slot"===this.localName)&&(l=!0),(i||r)&&Pe(o)),l||(l=O(this)?this.host:this,(!s.root&&"slot"!==t.localName||l===t.__shady_native_parentNode)&&l.__shady_native_removeChild(t)),t},replaceChild:function(t,r){return this.__shady_insertBefore(t,r),this.__shady_removeChild(r),t},cloneNode:function(t){if("template"==this.localName)return this.__shady_native_cloneNode(t);var r=this.__shady_native_cloneNode(!1);if(t&&r.nodeType!==Node.ATTRIBUTE_NODE){t=this.__shady_firstChild;for(var o;t;t=t.__shady_nextSibling)o=t.__shady_cloneNode(!0),r.__shady_appendChild