@elibrary-inno/bookreader
Version:
The Internet Archive BookReader.
2 lines • 122 kB
JavaScript
/*! For license information please see webcomponents-bundle.js.LICENSE.txt */
!function(){var t={2575:function(t,e,n){(function(){"use strict";var t;function e(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var r,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t},i=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof n.g&&n.g];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function a(t,e){if(e)t:{var n=i;t=t.split(".");for(var r=0;r<t.length-1;r++){var a=t[r];if(!(a in n))break t;n=n[a]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&o(n,t,{configurable:!0,writable:!0,value:e})}}function s(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}function l(t){var n="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return n?n.call(t):{next:e(t)}}function c(t){if(!(t instanceof Array)){t=l(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}if(a("Symbol",(function(t){function e(t,e){this.g=t,o(this,"description",{configurable:!0,writable:!0,value:e})}if(t)return t;e.prototype.toString=function(){return this.g};var n=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e("jscomp_symbol_"+(r||"")+"_"+n++,r)}})),a("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r<n.length;r++){var a=i[n[r]];"function"==typeof a&&"function"!=typeof a.prototype[t]&&o(a.prototype,t,{configurable:!0,writable:!0,value:function(){return s(e(this))}})}return t})),"function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var u;t:{var h={};try{h.__proto__={a:!0},u=h.a;break t}catch(A){}u=!1}r=u?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var d=r;function f(){this.u=!1,this.h=null,this.Ka=void 0,this.g=1,this.da=0,this.i=null}function p(t){if(t.u)throw new TypeError("Generator is already running");t.u=!0}function _(t,e){t.i={Wa:e,$a:!0},t.g=t.da}function m(t,e){return t.g=3,{value:e}}function v(t){this.g=new f,this.h=t}function y(t,e,n,r){try{var o=e.call(t.g.h,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.g.u=!1,o;var i=o.value}catch(e){return t.g.h=null,_(t.g,e),g(t)}return t.g.h=null,r.call(t.g,i),g(t)}function g(t){for(;t.g.g;)try{var e=t.h(t.g);if(e)return t.g.u=!1,{value:e.value,done:!1}}catch(e){t.g.Ka=void 0,_(t.g,e)}if(t.g.u=!1,t.g.i){if(e=t.g.i,t.g.i=null,e.$a)throw e.Wa;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function b(t){this.next=function(e){return p(t.g),t.g.h?e=y(t,t.g.h.next,e,t.g.O):(t.g.O(e),e=g(t)),e},this.throw=function(e){return p(t.g),t.g.h?e=y(t,t.g.h.throw,e,t.g.O):(_(t.g,e),e=g(t)),e},this.return=function(e){return function(t,e){p(t.g);var n=t.g.h;return n?y(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.g.return):(t.g.return(e),g(t))}(t,e)},this[Symbol.iterator]=function(){return this}}function E(t,e){return e=new b(new v(e)),d&&t.prototype&&d(e,t.prototype),e}f.prototype.O=function(t){this.Ka=t},f.prototype.return=function(t){this.i={return:t},this.g=this.da},Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t){for(var e,n=[].slice.call(arguments,1),r=0;r<n.length;r++)if(e=n[r])for(var o=t,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a];o[s]=e[s]}return t});var w=setTimeout;function N(){}function C(t){if(!(this instanceof C))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.N=0,this.Ea=!1,this.I=void 0,this.ba=[],M(t,this)}function S(t,e){for(;3===t.N;)t=t.I;0===t.N?t.ba.push(e):(t.Ea=!0,H((function(){var n=1===t.N?e.bb:e.cb;if(null===n)(1===t.N?T:O)(e.promise,t.I);else{try{var r=n(t.I)}catch(t){return void O(e.promise,t)}T(e.promise,r)}})))}function T(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof C)return t.N=3,t.I=e,void D(t);if("function"==typeof n)return void M(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t.N=1,t.I=e,D(t)}catch(e){O(t,e)}}function O(t,e){t.N=2,t.I=e,D(t)}function D(t){2===t.N&&0===t.ba.length&&H((function(){t.Ea||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t.I)}));for(var e=0,n=t.ba.length;e<n;e++)S(t,t.ba[e]);t.ba=null}function x(t,e,n){this.bb="function"==typeof t?t:null,this.cb="function"==typeof e?e:null,this.promise=n}function M(t,e){var n=!1;try{t((function(t){n||(n=!0,T(e,t))}),(function(t){n||(n=!0,O(e,t))}))}catch(t){n||(n=!0,O(e,t))}}function P(t){return t&&"object"==typeof t&&t.constructor===C?t:new C((function(e){e(t)}))}C.prototype.catch=function(t){return this.then(null,t)},C.prototype.then=function(t,e){var n=new this.constructor(N);return S(this,new x(t,e,n)),n},C.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))};var A,L,j,k,F,R,H="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){w(t,0)};if(!window.Promise){window.Promise=C,C.prototype.then=C.prototype.then,C.all=function(t){return new C((function(e,n){function r(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){r(t,e)}),n)}o[t]=a,0==--i&&e(o)}catch(t){n(t)}}if(!t||void 0===t.length)return n(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return e([]);for(var i=o.length,a=0;a<o.length;a++)r(a,o[a])}))},C.race=function(t){return new C((function(e,n){if(!t||void 0===t.length)return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)P(t[r]).then(e,n)}))},C.resolve=P,C.reject=function(t){return new C((function(e,n){n(t)}))};var I=document.createTextNode(""),B=[];new MutationObserver((function(){for(var t=B.length,e=0;e<t;e++)B[e]();B.splice(0,t)})).observe(I,{characterData:!0}),H=function(t){B.push(t),I.textContent=0<I.textContent.length?"":"a"}}!function(t,e){if(!(e in t)){var r=typeof n.g==typeof r?window:n.g,o=0,i=String(Math.random()),a="__symbol@@"+i,s=t.getOwnPropertyNames,l=t.getOwnPropertyDescriptor,c=t.create,u=t.keys,h=t.freeze||t,d=t.defineProperty,f=t.defineProperties,p=l(t,"getOwnPropertyNames"),_=t.prototype,m=_.hasOwnProperty,v=_.propertyIsEnumerable,y=_.toString,g=function(t,e,n){m.call(t,a)||d(t,a,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[a]["@@"+e]=n},b=function(){},E=function(t){return t!=a&&!m.call(T,t)},w=function(t){return t!=a&&m.call(T,t)},N=function(t){var e=String(t);return w(e)?m.call(this,e)&&!!this[a]&&this[a]["@@"+e]:v.call(this,t)},C=function(e){return d(_,e,{enumerable:!1,configurable:!0,get:b,set:function(t){P(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),g(this,e,!0)}}),T[e]=d(t(e),"constructor",O),h(T[e])},S=function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return C("__symbol:".concat(e||"",i,++o))},T=c(null),O={value:S},D=function(t){return T[t]},x=function(t,e,n){var r=String(e);if(w(r)){if(e=P,n.enumerable){var o=c(n);o.enumerable=!1}else o=n;e(t,r,o),g(t,r,!!n.enumerable)}else d(t,e,n);return t},M=function(t){return s(t).filter(w).map(D)};p.value=x,d(t,"defineProperty",p),p.value=M,d(t,e,p),p.value=function(t){return s(t).filter(E)},d(t,"getOwnPropertyNames",p),p.value=function(t,e){var n=M(e);return n.length?u(e).concat(n).forEach((function(n){N.call(e,n)&&x(t,n,e[n])})):f(t,e),t},d(t,"defineProperties",p),p.value=N,d(_,"propertyIsEnumerable",p),p.value=S,d(r,"Symbol",p),p.value=function(t){return(t="__symbol:".concat("__symbol:",t,i))in _?T[t]:C(t)},d(S,"for",p),p.value=function(t){if(E(t))throw new TypeError(t+" is not a symbol");if(m.call(T,t)&&"__symbol:"===(t=t.slice(10)).slice(0,10)&&(t=t.slice(10))!==i)return 0<(t=t.slice(0,t.length-i.length)).length?t:void 0},d(S,"keyFor",p),p.value=function(t,e){var n=l(t,e);return n&&w(e)&&(n.enumerable=N.call(t,e)),n},d(t,"getOwnPropertyDescriptor",p),p.value=function(t,e){return 1===arguments.length||void 0===e?c(t):function(t,e){var n=c(t);return s(e).forEach((function(t){N.call(e,t)&&x(n,t,e[t])})),n}(t,e)},d(t,"create",p),p.value=function(){var t=y.call(this);return"[object String]"===t&&w(this)?"[object Symbol]":t},d(_,"toString",p);try{if(!0!==c(d({},"__symbol:",{get:function(){return d(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var P=d}catch(t){P=function(t,e,n){var r=l(_,e);delete _[e],d(t,e,n),d(_,e,r)}}}}(Object,"getOwnPropertySymbols"),A=Object,L=Symbol,k=A.defineProperty,F=A.prototype,R=F.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach((function(t){t in L||(k(L,t,{value:L(t)}),"toStringTag"===t&&((j=A.getOwnPropertyDescriptor(F,"toString")).value=function(){var t=R.call(this),e=null==this?this:this[L.toStringTag];return null==e?t:"[object "+e+"]"},k(F,"toString",j)))})),function(t,e,n){function r(){return this}e[t]||(e[t]=function(){var e=0,n=this,o={next:function(){var t=n.length<=e;return t?{done:t}:{done:t,value:n[e++]}}};return o[t]=r,o}),n[t]||(n[t]=function(){var e=String.fromCodePoint,n=this,o=0,i=n.length,a={next:function(){var t=i<=o,r=t?"":e(n.codePointAt(o));return o+=r.length,t?{done:t}:{done:t,value:r}}};return a[t]=r,a})}(Symbol.iterator,Array.prototype,String.prototype);var U=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":U.call(this)},Object.keys=function(t){return Object.getOwnPropertyNames(t).filter((function(e){return(e=Object.getOwnPropertyDescriptor(t,e))&&e.enumerable}))},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function t(){var e,n=this;return E(t,(function(t){if(1==t.g&&(e=0),3!=t.g)return e<n.length?t=m(t,n[e]):(t.g=0,t=void 0),t;e++,t.g=2}))}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function t(){var e,n,r=this;return E(t,(function(t){if(1==t.g&&(e=[],r.forEach((function(t){e.push(t)})),n=0),3!=t.g)return n<e.length?t=m(t,e[n]):(t.g=0,t=void 0),t;n++,t.g=2}))}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function t(){var e,n,r=this;return E(t,(function(t){if(1==t.g&&(e=[],r.forEach((function(t,n){e.push([n,t])})),n=0),3!=t.g)return n<e.length?t=m(t,e[n]):(t.g=0,t=void 0),t;n++,t.g=2}))});var q=document.createEvent("Event");if(q.initEvent("foo",!0,!0),q.preventDefault(),!q.defaultPrevented){var W=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(W.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var G=/Trident/.test(navigator.userAgent);if(!window.Event||G&&"function"!=typeof window.Event){var V=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},V){for(var K in V)window.Event[K]=V[K];window.Event.prototype=V.prototype}}if((!window.CustomEvent||G&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||G&&"function"!=typeof window.MouseEvent){var X=window.MouseEvent;if(window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},X)for(var z in X)window.MouseEvent[z]=X[z];window.MouseEvent.prototype=X.prototype}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 J,$,Y=Element.prototype,Z=null!==(J=Object.getOwnPropertyDescriptor(Y,"attributes"))&&void 0!==J?J:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),Q=null!==($=null==Z?void 0:Z.get)&&void 0!==$?$:function(){return this.attributes},tt=Array.prototype.map;Y.hasOwnProperty("getAttributeNames")||(Y.getAttributeNames=function(){return tt.call(Q.call(this),(function(t){return t.name}))});var et,nt=Element.prototype;nt.hasOwnProperty("matches")||(nt.matches=null!==(et=nt.webkitMatchesSelector)&&void 0!==et?et:nt.msMatchesSelector);var rt=Node.prototype.appendChild;function ot(t){(t=t.prototype).hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(n=(e=l(e)).next();!n.done;n=e.next())n=n.value,rt.call(this,"string"==typeof n?document.createTextNode(n):n)}})}ot(Document),ot(DocumentFragment),ot(Element);var it,at,st=Node.prototype.insertBefore,lt=null!==(at=null===(it=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===it?void 0:it.get)&&void 0!==at?at:function(){return this.firstChild};function ct(t){(t=t.prototype).hasOwnProperty("prepend")||Object.defineProperty(t,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];n=lt.call(this);for(var r=(e=l(e)).next();!r.done;r=e.next())r=r.value,st.call(this,"string"==typeof r?document.createTextNode(r):r,n)}})}ct(Document),ct(DocumentFragment),ct(Element);var ut,ht,dt=Node.prototype.appendChild,ft=Node.prototype.removeChild,pt=null!==(ht=null===(ut=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ut?void 0:ut.get)&&void 0!==ht?ht:function(){return this.firstChild};function _t(t){(t=t.prototype).hasOwnProperty("replaceChildren")||Object.defineProperty(t,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(;null!==(n=pt.call(this));)ft.call(this,n);for(n=(e=l(e)).next();!n.done;n=e.next())n=n.value,dt.call(this,"string"==typeof n?document.createTextNode(n):n)}})}_t(Document),_t(DocumentFragment),_t(Element);var mt,vt,yt,gt,bt=Node.prototype.insertBefore,Et=null!==(vt=null===(mt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===mt?void 0:mt.get)&&void 0!==vt?vt:function(){return this.parentNode},wt=null!==(gt=null===(yt=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===yt?void 0:yt.get)&&void 0!==gt?gt:function(){return this.nextSibling};function Nt(t){(t=t.prototype).hasOwnProperty("after")||Object.defineProperty(t,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=Et.call(this)))for(var r=wt.call(this),o=(e=l(e)).next();!o.done;o=e.next())o=o.value,bt.call(n,"string"==typeof o?document.createTextNode(o):o,r)}})}Nt(CharacterData),Nt(Element);var Ct,St,Tt=Node.prototype.insertBefore,Ot=null!==(St=null===(Ct=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Ct?void 0:Ct.get)&&void 0!==St?St:function(){return this.parentNode};function Dt(t){(t=t.prototype).hasOwnProperty("before")||Object.defineProperty(t,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=Ot.call(this)))for(var r=(e=l(e)).next();!r.done;r=e.next())r=r.value,Tt.call(n,"string"==typeof r?document.createTextNode(r):r,this)}})}Dt(CharacterData),Dt(Element);var xt,Mt,Pt=Node.prototype.removeChild,At=null!==(Mt=null===(xt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===xt?void 0:xt.get)&&void 0!==Mt?Mt:function(){return this.parentNode};function Lt(t){(t=t.prototype).hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=At.call(this);t&&Pt.call(t,this)}})}Lt(CharacterData),Lt(Element);var jt,kt,Ft=Node.prototype.insertBefore,Rt=Node.prototype.removeChild,Ht=null!==(kt=null===(jt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===jt?void 0:jt.get)&&void 0!==kt?kt:function(){return this.parentNode};function It(t){(t=t.prototype).hasOwnProperty("replaceWith")||Object.defineProperty(t,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=Ht.call(this))){for(var r=(e=l(e)).next();!r.done;r=e.next())r=r.value,Ft.call(n,"string"==typeof r?document.createTextNode(r):r,this);Rt.call(n,this)}}})}It(CharacterData),It(Element);var Bt=window.Element.prototype,Ut=window.HTMLElement.prototype,qt=window.SVGElement.prototype;!Ut.hasOwnProperty("classList")||Bt.hasOwnProperty("classList")||qt.hasOwnProperty("classList")||Object.defineProperty(Bt,"classList",Object.getOwnPropertyDescriptor(Ut,"classList"));var Wt=document.createElement("style");Wt.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Gt=document.querySelector("head");Gt.insertBefore(Wt,Gt.firstChild);var Vt=window;Vt.WebComponents=Vt.WebComponents||{flags:{}};var Kt=document.querySelector('script[src*="webcomponents-bundle"]'),Xt=/wc-(.+)/,zt={};if(!zt.noOpts){if(location.search.slice(1).split("&").forEach((function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(Xt))&&(zt[e[1]]=t[1]||!0)})),Kt)for(var Jt=0,$t=void 0;$t=Kt.attributes[Jt];Jt++)"src"!==$t.name&&(zt[$t.name]=$t.value||!0);var Yt={};zt.log&&zt.log.split&&zt.log.split(",").forEach((function(t){Yt[t]=!0})),zt.log=Yt}Vt.WebComponents.flags=zt;var Zt=zt.shadydom;if(Zt){Vt.ShadyDOM=Vt.ShadyDOM||{},Vt.ShadyDOM.force=Zt;var Qt=zt.noPatch;Vt.ShadyDOM.noPatch="true"===Qt||Qt}var te=zt.register||zt.ce;function ee(){}function ne(t){return t.__shady||(t.__shady=new ee),t.__shady}function re(t){return t&&t.__shady}te&&window.customElements&&(Vt.customElements.forcePolyfill=te),function(){function t(){}function e(t,e){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return _.call(t,e);case Node.DOCUMENT_FRAGMENT_NODE:return m.call(t,e);default:return p.call(t,e)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function t(t,e){if(t instanceof DocumentFragment)for(var r;r=t.firstChild;)n.call(this,r,e);else n.call(this,t,e);return t}o=!0;var e=Node.prototype.cloneNode;Node.prototype.cloneNode=function(t){return t=e.call(this,t),this instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t},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 n=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?t.call(this,e,null):r.call(this,e),e};var i=Node.prototype.removeChild,a=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,n){return e instanceof DocumentFragment?(t.call(this,e,n),i.call(this,n)):a.call(this,e,n),n},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t};var s=Document.prototype.importNode;Document.prototype.importNode=function(t,e){return e=s.call(this,t,e||!1),t instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e}}();var i=Node.prototype.cloneNode,a=Document.prototype.createElement,s=Document.prototype.importNode,l=Node.prototype.removeChild,c=Node.prototype.appendChild,u=Node.prototype.replaceChild,h=DOMParser.prototype.parseFromString,d=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},f=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},p=Element.prototype.querySelectorAll,_=Document.prototype.querySelectorAll,m=DocumentFragment.prototype.querySelectorAll,v=function(){if(!n){var t=document.createElement("template"),e=document.createElement("template");return e.content.appendChild(document.createElement("div")),t.content.appendChild(e),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||r}}();if(n){var y=document.implementation.createHTMLDocument("template"),g=!0,b=document.createElement("style");b.textContent="template{display:none;}";var E=document.head;E.insertBefore(b,E.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var w=!document.createElement("div").hasOwnProperty("innerHTML");t.Z=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){e.content=y.createDocumentFragment();for(var n;n=e.firstChild;)c.call(e.content,n);if(w)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.sa(this,e)},g)try{C(e),S(e)}catch(t){g=!1}t.bootstrap(e.content)}};var N={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},C=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return P(this)},set:function(e){var n=N[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)e="<"+n[r]+">"+e+"</"+n[r]+">";for(y.body.innerHTML=e,t.bootstrap(y);this.content.firstChild;)l.call(this.content,this.content.firstChild);if(e=y.body,n)for(r=0;r<n.length;r++)e=e.lastChild;for(;e.firstChild;)c.call(this.content,e.firstChild)},configurable:!0})},S=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(y.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();y.body.firstChild;)c.call(t,y.body.firstChild);u.call(this.parentNode,t,this)},configurable:!0})};C(t.prototype),S(t.prototype),t.bootstrap=function(n){for(var r,o=0,i=(n=e(n,"template")).length;o<i&&(r=n[o]);o++)t.Z(r)},document.addEventListener("DOMContentLoaded",(function(){t.bootstrap(document)})),Document.prototype.createElement=function(){var e=a.apply(this,arguments);return"template"===e.localName&&t.Z(e),e},DOMParser.prototype.parseFromString=function(){var e=h.apply(this,arguments);return t.bootstrap(e),e},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return P(this)},set:function(e){d.set.call(this,e),t.bootstrap(this)},configurable:!0,enumerable:!0});var T=/[&\u00A0"]/g,O=/[&\u00A0<>]/g,D=function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}},x=(b=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),M=b("style script xmp iframe noembed noframes plaintext noscript".split(" ")),P=function(t,e){"template"===t.localName&&(t=t.content);for(var n,r="",o=e?e(t):f.get.call(t),i=0,a=o.length;i<a&&(n=o[i]);i++){t:{var s=n,l=t,c=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,h="<"+u,d=s.attributes,p=0;l=d[p];p++)h+=" "+l.name+'="'+l.value.replace(T,D)+'"';h+=">",s=x[u]?h:h+P(s,c)+"</"+u+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&M[l.localName]?s:s.replace(O,D);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}r+=s}return r}}if(n||v){t.sa=function(t,e){var n=i.call(t,!1);return this.Z&&this.Z(n),e&&(c.call(n.content,i.call(t.content,!0)),A(n.content,t.content)),n};var A=function(n,r){if(r.querySelectorAll&&0!==(r=e(r,"template")).length)for(var o,i,a=0,s=(n=e(n,"template")).length;a<s;a++)i=r[a],o=n[a],t&&t.Z&&t.Z(i),u.call(o.parentNode,L.call(i,!0),o)},L=Node.prototype.cloneNode=function(e){if(!o&&r&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var n=j.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t.sa(this,e):i.call(this,e);return e&&A(n,this),n},j=Document.prototype.importNode=function(n,r){if(r=r||!1,"template"===n.localName)return t.sa(n,r);var o=s.call(this,n,r);if(r){A(o,n),n=e(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,l=0;l<n.length;l++){i=n[l],(r=a.call(document,"script")).textContent=i.textContent;for(var c,h=i.attributes,d=0;d<h.length;d++)c=h[d],r.setAttribute(c.name,c.value);u.call(i.parentNode,r,i)}}return o}}n&&(window.HTMLTemplateElement=t)}(),ee.prototype.toJSON=function(){return{}};var oe=window.ShadyDOM||{};oe.Ya=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var ie=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function ae(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function se(t){return(t=re(t))&&void 0!==t.firstChild}function le(t){return t instanceof ShadowRoot}function ce(t){return(t=(t=re(t))&&t.root)&&Jr(t)}oe.H=!!(ie&&ie.configurable&&ie.get),oe.ya=oe.force||!oe.Ya,oe.J=oe.noPatch||!1,oe.fa=oe.preferPerformance,oe.Aa="on-demand"===oe.J,oe.Na=navigator.userAgent.match("Trident");var ue=Element.prototype,he=ue.matches||ue.matchesSelector||ue.mozMatchesSelector||ue.msMatchesSelector||ue.oMatchesSelector||ue.webkitMatchesSelector,de=document.createTextNode(""),fe=0,pe=[];function _e(t){pe.push(t),de.textContent=fe++}new MutationObserver((function(){for(;pe.length;)try{pe.shift()()}catch(t){throw de.textContent=fe++,t}})).observe(de,{characterData:!0});var me=document.contains?function(t,e){return t.__shady_native_contains(e)}:function(t,e){return t===e||t.documentElement&&t.documentElement.__shady_native_contains(e)};function ve(t,e){for(;e;){if(e==t)return!0;e=e.__shady_parentNode}return!1}function ye(t){for(var e=t.length-1;0<=e;e--){var n=t[e],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(t[r]=n)}return t.item=function(e){return t[e]},t.namedItem=function(e){if("length"!==e&&isNaN(e)&&t[e])return t[e];for(var n=l(t),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==e)return r;return null},t}function ge(t){var e=[];for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)e.push(t);return e}function be(t){var e=[];for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)e.push(t);return e}function Ee(t,e,n){if(n.configurable=!0,n.value)t[e]=n.value;else try{Object.defineProperty(t,e,n)}catch(t){}}function we(t,e,n,r){for(var o in n=void 0===n?"":n,e)r&&0<=r.indexOf(o)||Ee(t,n+o,e[o])}function Ne(t,e){for(var n in e)n in t&&Ee(t,n,e[n])}function Ce(t){var e={};return Object.getOwnPropertyNames(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e}function Se(t,e){for(var n,r=Object.getOwnPropertyNames(e),o=0;o<r.length;o++)t[n=r[o]]=e[n]}function Te(t){return t instanceof Node?t:document.createTextNode(""+t)}function Oe(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(1===e.length)return Te(e[0]);n=document.createDocumentFragment();for(var r=(e=l(e)).next();!r.done;r=e.next())n.appendChild(Te(r.value));return n}var De,xe=[];function Me(t){De||(De=!0,_e(Pe)),xe.push(t)}function Pe(){De=!1;for(var t=!!xe.length;xe.length;)xe.shift()();return t}function Ae(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.oa=new Set}Pe.list=xe,Ae.prototype.flush=function(){if(this.g){this.g=!1;var t=this.takeRecords();t.length&&this.oa.forEach((function(e){e(t)}))}},Ae.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 Le=/[&\u00A0"]/g,je=/[&\u00A0<>]/g;function ke(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Fe(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var Re=Fe("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),He=Fe("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Ie(t,e){"template"===t.localName&&(t=t.content);for(var n="",r=e?e(t):t.childNodes,o=0,i=r.length,a=void 0;o<i&&(a=r[o]);o++){t:{var s=a,l=t,c=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u,h="<"+(l=s.localName),d=s.attributes,f=0;u=d[f];f++)h+=" "+u.name+'="'+u.value.replace(Le,ke)+'"';h+=">",s=Re[l]?h:h+Ie(s,c)+"</"+l+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&He[l.localName]?s:s.replace(je,ke);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}n+=s}return n}var Be=oe.H,Ue={querySelector:function(t){return this.__shady_native_querySelector(t)},querySelectorAll:function(t){return this.__shady_native_querySelectorAll(t)}},qe={};function We(t){qe[t]=function(e){return e["__shady_native_"+t]}}function Ge(t,e){for(var n in we(t,e,"__shady_native_"),e)We(n)}function Ve(t,e){e=void 0===e?[]:e;for(var n=0;n<e.length;n++){var r=e[n],o=Object.getOwnPropertyDescriptor(t,r);o&&(Object.defineProperty(t,"__shady_native_"+r,o),o.value?Ue[r]||(Ue[r]=o.value):We(r))}}var Ke=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Xe=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),ze=document.implementation.createHTMLDocument("inert");function Je(t){for(var e;e=t.__shady_native_firstChild;)t.__shady_native_removeChild(e)}var $e=["firstElementChild","lastElementChild","children","childElementCount"],Ye=["querySelector","querySelectorAll","append","prepend","replaceChildren"],Ze=Ce({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}}),Qe=Ce({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}}),tn=Ce({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 en(t){for(var e in t){var n=t[e];n&&(n.enumerable=!1)}}en(Ze),en(Qe),en(tn);var nn=oe.H||!0===oe.J,rn=nn?function(){}:function(t){var e=ne(t);e.Pa||(e.Pa=!0,Ne(t,tn))},on=nn?function(){}:function(t){var e=ne(t);e.Oa||(e.Oa=!0,Ne(t,Ze),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!oe.J||Ne(t,Qe))},an="__eventWrappers"+Date.now(),sn=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(e){return t.get.call(e)}:null}(),ln=function(){function t(){}var e=!1,n={get capture(){return e=!0,!1}};return window.addEventListener("test",t,n),window.removeEventListener("test",t,n),e}();function cn(t){if(t&&"object"==typeof t)var e=!!t.capture,n=!!t.once,r=!!t.passive,o=t.U;else e=!!t,r=n=!1;return{La:o,capture:e,once:n,passive:r,Ja:ln?t:e}}var un={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},hn={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function dn(t){return t instanceof Node?t.__shady_getRootNode():t}function fn(t,e){var n=[],r=t;for(t=dn(t);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(e||r!==t)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function pn(t,e){if(!le)return t;t=fn(t,!0);for(var n,r,o=0,i=void 0,a=void 0;o<e.length;o++)if((r=dn(n=e[o]))!==i&&(a=t.indexOf(r),i=r),!le(r)||-1<a)return n}function _n(t){function e(e,n){return(e=new t(e,n)).__composed=n&&!!n.composed,e}return e.__proto__=t,e.prototype=t.prototype,e}var mn={focus:!0,blur:!0};function vn(t){return t.__target!==t.target||t.__relatedTarget!==t.relatedTarget}function yn(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!vn(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.__immediatePropagationStopped);o++);}function gn(t){var e=t.composedPath(),n=e.map((function(t){return pn(t,e)})),r=t.bubbles;Object.defineProperty(t,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return a}});var o=Event.CAPTURING_PHASE;Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o}});for(var i=e.length-1;0<=i;i--){var a=e[i];if(o=a===n[i]?Event.AT_TARGET:Event.CAPTURING_PHASE,yn(t,a,"capture"),t.ra)return}for(i=0;i<e.length;i++){var s=(a=e[i])===n[i];if((s||r)&&(o=s?Event.AT_TARGET:Event.BUBBLING_PHASE,yn(t,a,"bubble"),t.ra))return}o=0,a=null}function bn(t,e,n,r,o,i){for(var a=0;a<t.length;a++){var s=t[a],l=s.type,c=s.capture,u=s.once,h=s.passive;if(e===s.node&&n===l&&r===c&&o===u&&i===h)return a}return-1}function En(t){return Pe(),!oe.fa&&this instanceof Node&&!me(document,this)?(t.__target||Sn(t,this),gn(t)):this.__shady_native_dispatchEvent(t)}function wn(t,e,n){var r=cn(n),o=r.capture,i=r.once,a=r.passive,s=r.La;if(r=r.Ja,e){var l=typeof e;if(("function"===l||"object"===l)&&("object"!==l||e.handleEvent&&"function"==typeof e.handleEvent)){if(hn[t])return this.__shady_native_addEventListener(t,e,r);var c=s||this;if(s=e[an]){if(-1<bn(s,c,t,o,i,a))return}else e[an]=[];s=function(r){if(i&&this.__shady_removeEventListener(t,e,n),r.__target||Sn(r),c!==this){var a=Object.getOwnPropertyDescriptor(r,"currentTarget");Object.defineProperty(r,"currentTarget",{get:function(){return c},configurable:!0});var s=Object.getOwnPropertyDescriptor(r,"eventPhase");Object.defineProperty(r,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(r.__previousCurrentTarget=r.currentTarget,(!le(c)&&"slot"!==c.localName||-1!=r.composedPath().indexOf(c))&&(r.composed||-1<r.composedPath().indexOf(c)))if(vn(r)&&r.target===r.relatedTarget)r.eventPhase===Event.BUBBLING_PHASE&&r.stopImmediatePropagation();else if(r.eventPhase===Event.CAPTURING_PHASE||r.bubbles||r.target===c||c instanceof Window){var u="function"===l?e.call(c,r):e.handleEvent&&e.handleEvent(r);return c!==this&&(a?(Object.defineProperty(r,"currentTarget",a),a=null):delete r.currentTarget,s?(Object.defineProperty(r,"eventPhase",s),s=null):delete r.eventPhase),u}},e[an].push({node:c,type:t,capture:o,once:i,passive:a,pb:s}),this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(s),mn[t]||this.__shady_native_addEventListener(t,s,r)}}}function Nn(t,e,n){if(e){var r=cn(n);n=r.capture;var o=r.once,i=r.passive,a=r.La;if(r=r.Ja,hn[t])return this.__shady_native_removeEventListener(t,e,r);var s=a||this;a=void 0;var l=null;try{l=e[an]}catch(t){}l&&-1<(o=bn(l,s,t,n,o,i))&&(a=l.splice(o,1)[0].pb,l.length||(e[an]=void 0)),this.__shady_native_removeEventListener(t,a||e,r),a&&this.__handlers&&this.__handlers[t]&&-1<(e=(t=this.__handlers[t][n?"capture":"bubble"]).indexOf(a))&&t.splice(e,1)}}var Cn=Ce({get composed(){return void 0===this.__composed&&(sn?this.__composed="focusin"===this.type||"focusout"===this.type||sn(this):!1!==this.isTrusted&&(this.__composed=un[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=fn(this.__target,this.composed)),this.__composedPath},get target(){return pn(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=fn(this.__relatedTarget,!0)),pn(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ra=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ra=this.__immediatePropagationStopped=!0}});function Sn(t,e){if(e=void 0===e?t.target:e,t.__target=e,t.__relatedTarget=t.relatedTarget,oe.H){if(!(e=Object.getPrototypeOf(t)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(e);n.__shady_sourceProto=e,we(n,Cn),e.__shady_patchedProto=n}t.__proto__=e.__shady_patchedProto}else we(t,Cn)}var Tn=_n(Event),On=_n(CustomEvent),Dn=_n(MouseEvent),xn=Object.getOwnPropertyNames(Element.prototype).filter((function(t){return"on"===t.substring(0,2)})),Mn=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(t){return"on"===t.substring(0,2)}));function Pn(t){return{set:function(e){var n=ne(this),r=t.substring(2);n.T||(n.T={}),n.T[t]&&this.removeEventListener(r,n.T[t]),this.__shady_addEventListener(r,e),n.T[t]=e},get:function(){var e=re(this);return e&&e.T&&e.T[t]},configurable:!0}}function An(t,e){return{index:t,ga:[],na:e}}function Ln(t,e,n,r){var o=0,i=0,a=0,s=0,l=Math.min(e-o,r-i);if(0==o&&0==i)t:{for(a=0;a<l;a++)if(t[a]!==n[a])break t;a=l}if(e==t.length&&r==n.length){s=t.length;for(var c=n.length,u=0;u<l-a&&jn(t[--s],n[--c]);)u++;s=u}if(i+=a,r-=s,0==(e-=s)-(o+=a)&&0==r-i)return[];if(o==e){for(e=An(o,0);i<r;)e.ga.push(n[i++]);return[e]}if(i==r)return[An(o,e-o)];for(r=r-(a=i)+1,s=e-(l=o)+1,e=Array(r),c=0;c<r;c++)e[c]=Array(s),e[c][0]=c;for(c=0;c<s;c++)e[0][c]=c;for(c=1;c<r;c++)for(u=1;u<s;u++)if(t[l+u-1]===n[a+c-1])e[c][u]=e[c-1][u-1];else{var h=e[c-1][u]+1,d=e[c][u-1]+1;e[c][u]=h<d?h:d}for(l=e.length-1,a=e[0].length-1,r=e[l][a],t=[];0<l||0<a;)0==l?(t.push(2),a--):0==a?(t.push(3),l--):(s=e[l-1][a-1],(h=(c=e[l-1][a])<(u=e[l][a-1])?c<s?c:s:u<s?u:s)==s?(s==r?t.push(0):(t.push(1),r=s),l--,a--):h==c?(t.push(3),l--,r=c):(t.push(2),a--,r=u));for(t.reverse(),e=void 0,l=[],a=0;a<t.length;a++)switch(t[a]){case 0:e&&(l.push(e),e=void 0),o++,i++;break;case 1:e||(e=An(o,0)),e.na++,o++,e.ga.push(n[i]),i++;break;case 2:e||(e=An(o,0)),e.na++,o++;break;case 3:e||(e=An(o,0)),e.ga.push(n[i]),i++}return e&&l.push(e),l}function jn(t,e){return t===e}var kn=Ce({dispatchEvent:En,addEventListener:wn,removeEventListener:Nn}),Fn=null;function Rn(){return Fn||(Fn=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Fn||null}function Hn(t,e,n){var r=Rn();return!(!r||"class"!==e||(r.setElementClass(t,n),0))}function In(t,e){var n=Rn();n&&n.unscopeNode(t,e)}function Bn(t,e){var n=Rn();if(!n)return!0;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(n=!0,t=t.__shady_firstChild;t;t=t.__shady_nextSibling)n=n&&Bn(t,e);return n}return t.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(t)===e}function Un(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=Rn();return e?e.currentScopeForNode(t):""}function qn(t,e){if(t)for(t.nodeType===Node.ELEMENT_NODE&&e(t),t=t.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType===Node.ELEMENT_NODE&&qn(t,e)}var Wn=window.document,Gn=oe.fa,Vn=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Kn=Vn&&Vn.get;function Xn(t){for(var e;e=t.__shady_firstChild;)t.__shady_removeChild(e)}function zn(t){var e=re(t);if(e&&void 0!==e.qa)for(e=t.__shady_firstChild;e;e=e.__shady_nextSibling)zn(e);(t=re(t))&&(t.qa=void 0)}function Jn(t){var e=t;if(t&&"slot"===t.localName){var n=re(t);(n=n&&n.aa)&&(e=n.length?n[0]:Jn(t.__shady_nextSibling))}return e}function $n(t,e,n){if(t=(t=re(t))&&t.ea){if(e)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,o=e.childNodes.length;r<o;r++)t.addedNodes.push(e.childNodes[r]);else t.addedNodes.push(e);n&&t.removedNodes.push(n),function(t){t.g||(t.g=!0,_e((function(){t.flush()})))}(t)}}var Yn=Ce({get parentNode(){var t=re(this);return void 0!==(t=t&&t.parentNode)?t:this.__shady_native_parentNode},get firstChild(){var t=re(this);return void 0!==(t=t&&t.firstChild)?t:this.__shady_native_firstChild},get lastChild(){var t=re(this);return void 0!==(t=t&&t.lastChild)?t:this.__shady_native_lastChild},get nextSibling(){var t=re(this);return void 0!==(t=t&&t.nextSibling)?t:this.__shady_native_nextSibling},get previousSibling(){var t=re(this);return void 0!==(t=t&&t.previousSibling)?t:this.__shady_native_previousSibling},get childNodes(){if(se(this)){var t=re(this);if(!t.childNodes){t.childNodes=[];for(var e=this.__shady_firstChild;e;e=e.__shady_nextSibling)t.childNodes.push(e)}var n=t.childNodes}else n=this.__shady_native_childNodes;return n.item=function(t){return n[t]},n},get parentElement(){var t=re(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:this.__shady_native_parentElement},get isConnected(){if(Kn&&Kn.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(null===t||me(t,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.__shady_parentNode||(le(t)?t.host:void 0);return!!(t&&t instanceof Document)},get textContent(){if(se(this)){for(var t=[],e=this.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType!==Node.COMMENT_NODE&&t.push(e.__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(!se(this)&&oe.H){var e=this.__shady_firstChild;(e!=this.__shady_lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&Xn(this),this.__shady_native_textContent=t}else Xn(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(t));break;default:this.nodeValue=t}},insertBefore:function(t,e){if(this.ownerDocument!==Wn&&t.ownerDocument!==Wn)return this.__shady_native_insertBefore(t,e),t;if(t===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(e){var n=re(e);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&e.__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(e===t)return t;$n(this,t);var r=[],o=(n=Qr(this))?n.host.localName:Un(this),i=t.__shady_parentNode;if(i){var a=Un(t),s=!!n||!Qr(t)||Gn&&void 0!==this.__noInsertionPoint;i.__shady_removeChild(t,s)}i=!0;var l=(!Gn||void 0===t.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Bn(t,o),u=n&&!t.__noInsertionPoint&&(!Gn||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(u||l)&&(l&&(a=a||Un(t)),qn(t,(function(t){if(u&&"slot"===t.localName&&r.push(t),l){var e=a;Rn()&&(e&&In(t,e),(e=Rn())&&e.scopeNode(t,o))}}))),r.length&&(Vr(n),n.i.push.apply(n.i,c(r)),Br(n)),se(this)&&(function(t,e,n){xr(e,2);var r=ne(e);if(void 0!==r.firstChild&&(r.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)Mr(t,e,r,n);else Mr(t,e,r,n)}(t,this,e),(s=re(this)).root?(i=!1,ce(this)&&Br(s.root)):n&&"slot"===this.localName&&(i=!1,Br(n))),i?(n=le(this)?this.host:this,e?(e=Jn(e),n.__shady_native_insertBefore(t,e)):n.__shady_native_appendChild(t)):t.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(t),t},appendChild:function(t){if(this!=t||!le(t))return this.__shady_insertBefore(t)},removeChild:function(t,e){if(e=void 0!==e&&e,this.ownerDocument!==Wn)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);$n(this,null,t);var n=Qr(t),r=n&&function(t,e){if(t.g){Kr(t);var n,r=t.h;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var a=o[i];if(ve(e,a)){o.splice(i,1);var s=t.g.indexOf(a);if(0<=s&&(t.g.splice(s,1),(s=re(a.__shady_parentNode))&&s.ia&&s.ia--),i--,s=(a=re(a)).aa)for(var l=0;l<s.length;l++){var c=s[l],u=c.__shady_native_parentNode;u&&u.__shady_native_removeChild(c)}a.aa=[],a.assignedNodes=[],s=!0}}return s}}(n,t),o=re(this);if(se(this)&&(function(t,e){var n=ne(t);t===(e=ne(e)).firstChild&&(e.firstChild=n.nextSibling),t===e.lastChild&&(e.lastChild=n.previousSibling),t=n.previousSibling;var r=n.nextSibling;t&&(ne(t).nextSibling=r),r&&(ne(r).previousSibling=t),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==e.childNodes&&(e.childNodes=null)}(t,this),ce(this))){Br(o.root);var i=!0}if(Rn()&&!e&&n&&t.nodeType!==Node.TEXT_NODE){var a=Un(t);qn(t,(function(t){In(t,a)}))}return zn(t),n&&((e="slot"===this.localName)&&(i=!0),(r||e)&&Br(n)),i||(i=le(this)?this.host:this,(!o.root&&"slot"!==t.localName||i===t.__shady_native_parentNode)&&i.__shady_native_removeChild(t)),t},replaceChild:function(t,e){return this.__shady_insertBefore(t,e),this.__shady_removeChild(e),t},cloneNode:function(t){if("template"==this.localName)return this.__shady_native_cloneNode(t);var e=this.__shady_native_cloneNode(!1);if(t&&e.nodeType!==Node.ATTRIBUTE_NODE){t=this.__shady_firstChild;for(var n;t;t=t.__shady_nextSibling)n=t.__shady_cloneNode(!0),e.__shady_appendChild(n)}return e},getRootNode:function(t){if(this&&this.nodeType){var e=ne(this),n=e.qa;return void 0===n&&(le(this)?(n=this,e.qa=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(t):this,document.documentElement.__shady_native_contains(this)&&(e.qa=n))),n}},contains:function(t){return ve(this,t)}}),Zn=Ce({get assignedSlot(){var t=this.__shady_parentNode;return(t=t&&t.__shady_shadowRoot)&&Ur(t),(t=re(this))&&t.assignedSlot||null}});function Qn(t,e,n){var r=[];return tr(t,e,n,r),r}function tr(t,e,n,r){for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling){var o;if(o=t.nodeType===Node.ELEMENT_NODE){var i=e,a=n,s=r,l=i(o=t);l&&s.push(o),a&&a(l)?o=l:(tr(o,i,a,s),o=void 0)}if(o)break}}var er={get firstElementChild(){var t=re(this);if(t&&void 0!==t.firstChild){for(t=this.__shady_firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_nextSibling;return t}return this.__shady_native_firstElementChild},get lastElementChild(){var t=re(this);if(t&&void 0!==t.lastChild){for(t=this.__shady_lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_previousSibling;return t}return this.__shady_native_lastElementChild},get children(){return se(this)?ye(Array.prototype.filter.call(be(this),(function(t){return t.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var t=this.__shady_children;return t?t.length:0}},nr=Ce((er.append=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];this.__shady_insertBefore(Oe.apply(null,c(e)),null)},er.prepend=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];this.__shady_insertBefore(Oe.apply(null,c(e)),this.__shady_firstChild)},er.replaceChildren=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(Oe.apply(null,c(e)),null)},er)),rr=Ce({querySelector:function(t){return Qn(this,(function(e){return he.call(e,t)}),(function(t){return!!t}))[0]||null},querySelectorAll:function(t,e){if(e){e=Array.prototype.slice.call(this.__shady_native_querySelectorAll(t));var n=this.__shady_getRootNode();return ye(e.filter((function(t){return t.__shady_getRootNode()==n})))}return ye(Qn(this,(function(e){return he.call(e,t)})))}}),or=oe.fa&&!oe.J?Se({},nr):nr;Se(nr,rr);var ir=Ce({after:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(Oe.apply(null,c(e)),r)}},before:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(Oe.apply(null,c(e)),this)},remove:function(){var t=this.__shady_parentNode;null!==t&&t.__shady_removeChild(this)},replaceWith:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(Oe.apply(null,c(e)),r)}}}),