UNPKG

@senx/warpview

Version:
191 lines (179 loc) 127 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(){/* Copyright (c) 2016 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 */ 'use strict';var v;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},da="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ea(){ea=function(){};da.Symbol||(da.Symbol=ha)} function ia(a,b){this.a=a;ca(this,"description",{configurable:!0,writable:!0,value:b})}ia.prototype.toString=function(){return this.a};var ha=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ia("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}(); function ja(){ea();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ma(ba(this))}});ja=function(){}}function ma(a){ja();a={next:a};a[da.Symbol.iterator]=function(){return this};return a}function na(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}} function x(a){if(!(a instanceof Array)){a=na(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var oa;if("function"==typeof Object.setPrototypeOf)oa=Object.setPrototypeOf;else{var pa;a:{var qa={Pa:!0},ra={};try{ra.__proto__=qa;pa=ra.Pa;break a}catch(a){}pa=!1}oa=pa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var sa=oa;function ta(){this.l=!1;this.b=null;this.Ea=void 0;this.a=1;this.Y=0;this.c=null} function ua(a){if(a.l)throw new TypeError("Generator is already running");a.l=!0}ta.prototype.J=function(a){this.Ea=a};function xa(a,b){a.c={Sa:b,Wa:!0};a.a=a.Y}ta.prototype.return=function(a){this.c={return:a};this.a=this.Y};function Aa(a,b){a.a=3;return{value:b}}function Ba(a){this.a=new ta;this.b=a}function Ca(a,b){ua(a.a);var c=a.a.b;if(c)return Da(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a.return);a.a.return(b);return Ea(a)} function Da(a,b,c,d){try{var e=b.call(a.a.b,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.l=!1,e;var f=e.value}catch(g){return a.a.b=null,xa(a.a,g),Ea(a)}a.a.b=null;d.call(a.a,f);return Ea(a)}function Ea(a){for(;a.a.a;)try{var b=a.b(a.a);if(b)return a.a.l=!1,{value:b.value,done:!1}}catch(c){a.a.Ea=void 0,xa(a.a,c)}a.a.l=!1;if(a.a.c){b=a.a.c;a.a.c=null;if(b.Wa)throw b.Sa;return{value:b.return,done:!0}}return{value:void 0,done:!0}} function Fa(a){this.next=function(b){ua(a.a);a.a.b?b=Da(a,a.a.b.next,b,a.a.J):(a.a.J(b),b=Ea(a));return b};this.throw=function(b){ua(a.a);a.a.b?b=Da(a,a.a.b["throw"],b,a.a.J):(xa(a.a,b),b=Ea(a));return b};this.return=function(b){return Ca(a,b)};ja();this[Symbol.iterator]=function(){return this}}function Ga(a,b){b=new Fa(new Ba(b));sa&&sa(b,a.prototype);return b}Array.from||(Array.from=function(a){return[].slice.call(a)}); Object.assign||(Object.assign=function(a){for(var b=[].slice.call(arguments,1),c=0,d;c<b.length;c++)if(d=b[c])for(var e=a,f=Object.keys(d),g=0;g<f.length;g++){var h=f[g];e[h]=d[h]}return a});var Ha=setTimeout;function Ia(){}function Ja(a,b){return function(){a.apply(b,arguments)}}function A(a){if(!(this instanceof A))throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this.I=0;this.za=!1;this.C=void 0;this.W=[];Ka(a,this)} function La(a,b){for(;3===a.I;)a=a.C;0===a.I?a.W.push(b):(a.za=!0,Ma(function(){var c=1===a.I?b.Ya:b.Za;if(null===c)(1===a.I?Na:Oa)(b.va,a.C);else{try{var d=c(a.C)}catch(e){Oa(b.va,e);return}Na(b.va,d)}}))}function Na(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof A){a.I=3;a.C=b;Pa(a);return}if("function"===typeof c){Ka(Ja(c,b),a);return}}a.I=1;a.C=b;Pa(a)}catch(d){Oa(a,d)}} function Oa(a,b){a.I=2;a.C=b;Pa(a)}function Pa(a){2===a.I&&0===a.W.length&&Ma(function(){a.za||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.C)});for(var b=0,c=a.W.length;b<c;b++)La(a,a.W[b]);a.W=null}function Qa(a,b,c){this.Ya="function"===typeof a?a:null;this.Za="function"===typeof b?b:null;this.va=c}function Ka(a,b){var c=!1;try{a(function(d){c||(c=!0,Na(b,d))},function(d){c||(c=!0,Oa(b,d))})}catch(d){c||(c=!0,Oa(b,d))}} A.prototype["catch"]=function(a){return this.then(null,a)};A.prototype.then=function(a,b){var c=new this.constructor(Ia);La(this,new Qa(a,b,c));return c};A.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})}; function Ra(a){return new A(function(b,c){function d(h,k){try{if(k&&("object"===typeof k||"function"===typeof k)){var l=k.then;if("function"===typeof l){l.call(k,function(m){d(h,m)},c);return}}e[h]=k;0===--f&&b(e)}catch(m){c(m)}}if(!a||"undefined"===typeof a.length)return c(new TypeError("Promise.all accepts an array"));var e=Array.prototype.slice.call(a);if(0===e.length)return b([]);for(var f=e.length,g=0;g<e.length;g++)d(g,e[g])})} function Sa(a){return a&&"object"===typeof a&&a.constructor===A?a:new A(function(b){b(a)})}function Ta(a){return new A(function(b,c){c(a)})}function Ua(a){return new A(function(b,c){if(!a||"undefined"===typeof a.length)return c(new TypeError("Promise.race accepts an array"));for(var d=0,e=a.length;d<e;d++)Sa(a[d]).then(b,c)})}var Ma="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){Ha(a,0)};/* Copyright (c) 2017 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 */ if(!window.Promise){window.Promise=A;A.prototype.then=A.prototype.then;A.all=Ra;A.race=Ua;A.resolve=Sa;A.reject=Ta;var Va=document.createTextNode(""),Xa=[];(new MutationObserver(function(){for(var a=Xa.length,b=0;b<a;b++)Xa[b]();Xa.splice(0,a)})).observe(Va,{characterData:!0});Ma=function(a){Xa.push(a);Va.textContent=0<Va.textContent.length?"":"a"}};/* Copyright (C) 2015 by WebReflection Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function(a,b){if(!(b in a)){var c=typeof global===typeof c?window:global,d=0,e=""+Math.random(),f="__\u0001symbol@@"+e,g=a.getOwnPropertyNames,h=a.getOwnPropertyDescriptor,k=a.create,l=a.keys,m=a.freeze||a,q=a.defineProperty,H=a.defineProperties,C=h(a,"getOwnPropertyNames"),t=a.prototype,F=t.hasOwnProperty,E=t.propertyIsEnumerable,M=t.toString,y=function(I,u,G){F.call(I,f)||q(I,f,{enumerable:!1,configurable:!1,writable:!1,value:{}});I[f]["@@"+u]=G},W=function(I,u){var G=k(I);g(u).forEach(function(p){va.call(u, p)&&Wa(G,p,u[p])});return G},w=function(){},wa=function(I){return I!=f&&!F.call(ka,I)},fa=function(I){return I!=f&&F.call(ka,I)},va=function(I){var u=""+I;return fa(u)?F.call(this,u)&&this[f]["@@"+u]:E.call(this,I)},n=function(I){q(t,I,{enumerable:!1,configurable:!0,get:w,set:function(u){za(this,I,{enumerable:!1,configurable:!0,writable:!0,value:u});y(this,I,!0)}});return m(ka[I]=q(a(I),"constructor",gc))},J=function G(u){if(this instanceof G)throw new TypeError("Symbol is not a constructor");return n("__\u0001symbol:".concat(u|| "",e,++d))},ka=k(null),gc={value:J},hb=function(u){return ka[u]},Wa=function(u,G,p){var r=""+G;if(fa(r)){G=za;if(p.enumerable){var B=k(p);B.enumerable=!1}else B=p;G(u,r,B);y(u,r,!!p.enumerable)}else q(u,G,p);return u},ib=function(u){return g(u).filter(fa).map(hb)};C.value=Wa;q(a,"defineProperty",C);C.value=ib;q(a,b,C);C.value=function(u){return g(u).filter(wa)};q(a,"getOwnPropertyNames",C);C.value=function(u,G){var p=ib(G);p.length?l(G).concat(p).forEach(function(r){va.call(G,r)&&Wa(u,r,G[r])}):H(u, G);return u};q(a,"defineProperties",C);C.value=va;q(t,"propertyIsEnumerable",C);C.value=J;q(c,"Symbol",C);C.value=function(u){u="__\u0001symbol:".concat("__\u0001symbol:",u,e);return u in t?ka[u]:n(u)};q(J,"for",C);C.value=function(u){if(wa(u))throw new TypeError(u+" is not a symbol");if(F.call(ka,u)&&(u=u.slice(10),"__\u0001symbol:"===u.slice(0,10)&&(u=u.slice(10),u!==e)))return u=u.slice(0,u.length-e.length),0<u.length?u:void 0};q(J,"keyFor",C);C.value=function(u,G){var p=h(u,G);p&&fa(G)&&(p.enumerable= va.call(u,G));return p};q(a,"getOwnPropertyDescriptor",C);C.value=function(u,G){return 1===arguments.length||"undefined"===typeof G?k(u):W(u,G)};q(a,"create",C);C.value=function(){var u=M.call(this);return"[object String]"===u&&fa(this)?"[object Symbol]":u};q(t,"toString",C);try{if(!0===k(q({},"__\u0001symbol:",{get:function(){return q(this,"__\u0001symbol:",{value:!0})["__\u0001symbol:"]}}))["__\u0001symbol:"])var za=q;else throw"IE11";}catch(u){za=function(G,p,r){var B=h(t,p);delete t[p];q(G,p, r);q(t,p,B)}}}})(Object,"getOwnPropertySymbols"); (function(a,b){var c=a.defineProperty,d=a.prototype,e=d.toString,f;"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(g){if(!(g in b))switch(c(b,g,{value:b(g)}),g){case "toStringTag":f=a.getOwnPropertyDescriptor(d,"toString"),f.value=function(){var h=e.call(this),k=null!=this?this[b.toStringTag]:this;return null==k?h:"[object "+k+"]"},c(d,"toString",f)}})})(Object,Symbol); (function(a,b,c){function d(){return this}b[a]||(b[a]=function(){var e=0,f=this,g={next:function(){var h=f.length<=e;return h?{done:h}:{done:h,value:f[e++]}}};g[a]=d;return g});c[a]||(c[a]=function(){var e=String.fromCodePoint,f=this,g=0,h=f.length,k={next:function(){var l=h<=g,m=l?"":e(f.codePointAt(g));g+=m.length;return l?{done:l}:{done:l,value:m}}};k[a]=d;return k})})(Symbol.iterator,Array.prototype,String.prototype);/* 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 */ var Ya=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":Ya.call(this)};Object.keys=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return(b=Object.getOwnPropertyDescriptor(a,b))&&b.enumerable})};ea();ja(); String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(ea(),ja(),String.prototype[Symbol.iterator]=function b(){var c,d=this;return Ga(b,function(e){1==e.a&&(c=0);if(3!=e.a)return c<d.length?e=Aa(e,d[c]):(e.a=0,e=void 0),e;c++;e.a=2})});ea();ja(); Set.prototype[Symbol.iterator]||(ea(),ja(),Set.prototype[Symbol.iterator]=function b(){var c,d=this,e;return Ga(b,function(f){1==f.a&&(c=[],d.forEach(function(g){c.push(g)}),e=0);if(3!=f.a)return e<c.length?f=Aa(f,c[e]):(f.a=0,f=void 0),f;e++;f.a=2})});ea();ja(); Map.prototype[Symbol.iterator]||(ea(),ja(),Map.prototype[Symbol.iterator]=function b(){var c,d=this,e;return Ga(b,function(f){1==f.a&&(c=[],d.forEach(function(g,h){c.push([h,g])}),e=0);if(3!=f.a)return e<c.length?f=Aa(f,c[e]):(f.a=0,f=void 0),f;e++;f.a=2})});/* Copyright (c) 2020 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 */ var Za=document.createEvent("Event");Za.initEvent("foo",!0,!0);Za.preventDefault();if(!Za.defaultPrevented){var $a=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&($a.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var ab=/Trident/.test(navigator.userAgent); if(!window.Event||ab&&"function"!==typeof window.Event){var bb=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(bb){for(var cb in bb)window.Event[cb]=bb[cb];window.Event.prototype=bb.prototype}} if(!window.CustomEvent||ab&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype; if(!window.MouseEvent||ab&&"function"!==typeof window.MouseEvent){var db=window.MouseEvent;window.MouseEvent=function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(db)for(var eb in db)window.MouseEvent[eb]=db[eb];window.MouseEvent.prototype=db.prototype};Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var a=(this.ownerDocument||this).querySelector("base[href]");return a&&a.href||window.location.href},configurable:!0,enumerable:!0});/* Copyright (c) 2020 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 */ var fb,gb,jb=Element.prototype,kb=null!==(fb=Object.getOwnPropertyDescriptor(jb,"attributes"))&&void 0!==fb?fb:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),lb=null!==(gb=null===kb||void 0===kb?void 0:kb.get)&&void 0!==gb?gb:function(){return this.attributes},mb=Array.prototype.map;jb.hasOwnProperty("getAttributeNames")||(jb.getAttributeNames=function(){return mb.call(lb.call(this),function(a){return a.name})});var pb,qb=Element.prototype;qb.hasOwnProperty("matches")||(qb.matches=null!==(pb=qb.webkitMatchesSelector)&&void 0!==pb?pb:qb.msMatchesSelector);var rb=Node.prototype.appendChild;function sb(a){a=a.prototype;a.hasOwnProperty("append")||Object.defineProperty(a,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];c=na(c);for(d=c.next();!d.done;d=c.next())d=d.value,rb.call(this,"string"===typeof d?document.createTextNode(d):d)}})}sb(Document);sb(DocumentFragment);sb(Element);var tb,ub,vb=Node.prototype.insertBefore,wb=null!==(ub=null===(tb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===tb?void 0:tb.get)&&void 0!==ub?ub:function(){return this.firstChild}; function xb(a){a=a.prototype;a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=wb.call(this);c=na(c);for(var e=c.next();!e.done;e=c.next())e=e.value,vb.call(this,"string"===typeof e?document.createTextNode(e):e,d)}})}xb(Document);xb(DocumentFragment);xb(Element);var yb,zb,Ab=Node.prototype.appendChild,Bb=Node.prototype.removeChild,Cb=null!==(zb=null===(yb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===yb?void 0:yb.get)&&void 0!==zb?zb:function(){return this.firstChild}; function Db(a){a=a.prototype;a.hasOwnProperty("replaceChildren")||Object.defineProperty(a,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];for(;null!==(d=Cb.call(this));)Bb.call(this,d);c=na(c);for(d=c.next();!d.done;d=c.next())d=d.value,Ab.call(this,"string"===typeof d?document.createTextNode(d):d)}})}Db(Document);Db(DocumentFragment);Db(Element);var Eb,Fb,Gb,Hb,Ib=Node.prototype.insertBefore,Jb=null!==(Fb=null===(Eb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Eb?void 0:Eb.get)&&void 0!==Fb?Fb:function(){return this.parentNode},Kb=null!==(Hb=null===(Gb=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===Gb?void 0:Gb.get)&&void 0!==Hb?Hb:function(){return this.nextSibling}; function Lb(a){a=a.prototype;a.hasOwnProperty("after")||Object.defineProperty(a,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=Jb.call(this);if(null!==d){var e=Kb.call(this);c=na(c);for(var f=c.next();!f.done;f=c.next())f=f.value,Ib.call(d,"string"===typeof f?document.createTextNode(f):f,e)}}})}Lb(CharacterData);Lb(Element);var Mb,Nb,Ob=Node.prototype.insertBefore,Pb=null!==(Nb=null===(Mb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Mb?void 0:Mb.get)&&void 0!==Nb?Nb:function(){return this.parentNode}; function Qb(a){a=a.prototype;a.hasOwnProperty("before")||Object.defineProperty(a,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=Pb.call(this);if(null!==d){c=na(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Ob.call(d,"string"===typeof e?document.createTextNode(e):e,this)}}})}Qb(CharacterData);Qb(Element);var Rb,Sb,Tb=Node.prototype.removeChild,Ub=null!==(Sb=null===(Rb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Rb?void 0:Rb.get)&&void 0!==Sb?Sb:function(){return this.parentNode};function Vb(a){a=a.prototype;a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=Ub.call(this);b&&Tb.call(b,this)}})}Vb(CharacterData);Vb(Element);var Wb,Xb,Yb=Node.prototype.insertBefore,Zb=Node.prototype.removeChild,$b=null!==(Xb=null===(Wb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Wb?void 0:Wb.get)&&void 0!==Xb?Xb:function(){return this.parentNode}; function ac(a){a=a.prototype;a.hasOwnProperty("replaceWith")||Object.defineProperty(a,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=$b.call(this);if(null!==d){c=na(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Yb.call(d,"string"===typeof e?document.createTextNode(e):e,this);Zb.call(d,this)}}})}ac(CharacterData);ac(Element);var bc=window.Element.prototype,cc=window.HTMLElement.prototype,dc=window.SVGElement.prototype;!cc.hasOwnProperty("classList")||bc.hasOwnProperty("classList")||dc.hasOwnProperty("classList")||Object.defineProperty(bc,"classList",Object.getOwnPropertyDescriptor(cc,"classList"));/* Copyright (c) 2014 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 */ var ec=document.createElement("style");ec.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var fc=document.querySelector("head");fc.insertBefore(ec,fc.firstChild);var hc=window;hc.WebComponents=hc.WebComponents||{flags:{}};var ic=document.querySelector('script[src*="webcomponents-bundle"]'),jc=/wc-(.+)/,kc={};if(!kc.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(jc))&&(kc[b[1]]=a[1]||!0)});if(ic)for(var lc=0,mc=void 0;mc=ic.attributes[lc];lc++)"src"!==mc.name&&(kc[mc.name]=mc.value||!0);var nc={};kc.log&&kc.log.split&&kc.log.split(",").forEach(function(a){nc[a]=!0});kc.log=nc} hc.WebComponents.flags=kc;var oc=kc.shadydom;if(oc){hc.ShadyDOM=hc.ShadyDOM||{};hc.ShadyDOM.force=oc;var pc=kc.noPatch;hc.ShadyDOM.noPatch="true"===pc?!0:pc}var qc=kc.register||kc.ce;qc&&window.customElements&&(hc.customElements.forcePolyfill=qc);/* Copyright (c) 2016 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(){function a(){}function b(p,r){if(!p.childNodes.length)return[];switch(p.nodeType){case Node.DOCUMENT_NODE:return F.call(p,r);case Node.DOCUMENT_FRAGMENT_NODE:return E.call(p,r);default:return t.call(p,r)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function p(z,R){if(z instanceof DocumentFragment)for(var nb;nb=z.firstChild;)B.call(this,nb,R);else B.call(this, z,R);return z}e=!0;var r=Node.prototype.cloneNode;Node.prototype.cloneNode=function(z){z=r.call(this,z);this instanceof DocumentFragment&&(z.__proto__=DocumentFragment.prototype);return z};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 B=Node.prototype.insertBefore;Node.prototype.insertBefore=p;var K=Node.prototype.appendChild;Node.prototype.appendChild=function(z){z instanceof DocumentFragment?p.call(this,z,null):K.call(this,z);return z};var aa=Node.prototype.removeChild,la=Node.prototype.replaceChild;Node.prototype.replaceChild=function(z,R){z instanceof DocumentFragment?(p.call(this,z,R),aa.call(this,R)):la.call(this,z,R);return R};Document.prototype.createDocumentFragment= function(){var z=this.createElement("df");z.__proto__=DocumentFragment.prototype;return z};var ya=Document.prototype.importNode;Document.prototype.importNode=function(z,R){R=ya.call(this,z,R||!1);z instanceof DocumentFragment&&(R.__proto__=DocumentFragment.prototype);return R}}();var f=Node.prototype.cloneNode,g=Document.prototype.createElement,h=Document.prototype.importNode,k=Node.prototype.removeChild,l=Node.prototype.appendChild,m=Node.prototype.replaceChild,q=DOMParser.prototype.parseFromString, H=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(p){this.innerHTML=p}},C=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},t=Element.prototype.querySelectorAll,F=Document.prototype.querySelectorAll,E=DocumentFragment.prototype.querySelectorAll,M=function(){if(!c){var p=document.createElement("template"),r=document.createElement("template");r.content.appendChild(document.createElement("div")); p.content.appendChild(r);p=p.cloneNode(!0);return 0===p.content.childNodes.length||0===p.content.firstChild.content.childNodes.length||d}}();if(c){var y=document.implementation.createHTMLDocument("template"),W=!0,w=document.createElement("style");w.textContent="template{display:none;}";var wa=document.head;wa.insertBefore(w,wa.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var fa=!document.createElement("div").hasOwnProperty("innerHTML");a.U=function(p){if(!p.content&&p.namespaceURI=== document.documentElement.namespaceURI){p.content=y.createDocumentFragment();for(var r;r=p.firstChild;)l.call(p.content,r);if(fa)p.__proto__=a.prototype;else if(p.cloneNode=function(B){return a.b(this,B)},W)try{n(p),J(p)}catch(B){W=!1}a.a(p.content)}};var va={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},n=function(p){Object.defineProperty(p,"innerHTML",{get:function(){return za(this)},set:function(r){var B=va[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(r)|| ["",""])[1].toLowerCase()];if(B)for(var K=0;K<B.length;K++)r="<"+B[K]+">"+r+"</"+B[K]+">";y.body.innerHTML=r;for(a.a(y);this.content.firstChild;)k.call(this.content,this.content.firstChild);r=y.body;if(B)for(K=0;K<B.length;K++)r=r.lastChild;for(;r.firstChild;)l.call(this.content,r.firstChild)},configurable:!0})},J=function(p){Object.defineProperty(p,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(r){if(this.parentNode){y.body.innerHTML=r;for(r=this.ownerDocument.createDocumentFragment();y.body.firstChild;)l.call(r, y.body.firstChild);m.call(this.parentNode,r,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};n(a.prototype);J(a.prototype);a.a=function(p){p=b(p,"template");for(var r=0,B=p.length,K;r<B&&(K=p[r]);r++)a.U(K)};document.addEventListener("DOMContentLoaded",function(){a.a(document)});Document.prototype.createElement=function(){var p=g.apply(this,arguments);"template"===p.localName&&a.U(p);return p};DOMParser.prototype.parseFromString= function(){var p=q.apply(this,arguments);a.a(p);return p};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return za(this)},set:function(p){H.set.call(this,p);a.a(this)},configurable:!0,enumerable:!0});var ka=/[&\u00A0"]/g,gc=/[&\u00A0<>]/g,hb=function(p){switch(p){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}};w=function(p){for(var r={},B=0;B<p.length;B++)r[p[B]]=!0;return r};var Wa=w("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")), ib=w("style script xmp iframe noembed noframes plaintext noscript".split(" ")),za=function(p,r){"template"===p.localName&&(p=p.content);for(var B="",K=r?r(p):C.get.call(p),aa=0,la=K.length,ya;aa<la&&(ya=K[aa]);aa++){a:{var z=ya;var R=p;var nb=r;switch(z.nodeType){case Node.ELEMENT_NODE:for(var Fc=z.localName,ob="<"+Fc,vh=z.attributes,oe=0;R=vh[oe];oe++)ob+=" "+R.name+'="'+R.value.replace(ka,hb)+'"';ob+=">";z=Wa[Fc]?ob:ob+za(z,nb)+"</"+Fc+">";break a;case Node.TEXT_NODE:z=z.data;z=R&&ib[R.localName]? z:z.replace(gc,hb);break a;case Node.COMMENT_NODE:z="\x3c!--"+z.data+"--\x3e";break a;default:throw window.console.error(z),Error("not implemented");}}B+=z}return B}}if(c||M){a.b=function(p,r){var B=f.call(p,!1);this.U&&this.U(B);r&&(l.call(B.content,f.call(p.content,!0)),I(B.content,p.content));return B};var I=function(p,r){if(r.querySelectorAll&&(r=b(r,"template"),0!==r.length)){p=b(p,"template");for(var B=0,K=p.length,aa,la;B<K;B++)la=r[B],aa=p[B],a&&a.U&&a.U(la),m.call(aa.parentNode,u.call(la, !0),aa)}},u=Node.prototype.cloneNode=function(p){if(!e&&d&&this instanceof DocumentFragment)if(p)var r=G.call(this.ownerDocument,this,!0);else return this.ownerDocument.createDocumentFragment();else this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?r=a.b(this,p):r=f.call(this,p);p&&I(r,this);return r},G=Document.prototype.importNode=function(p,r){r=r||!1;if("template"===p.localName)return a.b(p,r);var B=h.call(this,p,r);if(r){I(B, p);p=b(B,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var K,aa=0;aa<p.length;aa++){K=p[aa];r=g.call(document,"script");r.textContent=K.textContent;for(var la=K.attributes,ya=0,z;ya<la.length;ya++)z=la[ya],r.setAttribute(z.name,z.value);m.call(K.parentNode,r,K)}}return B}}c&&(window.HTMLTemplateElement=a)})();/* Copyright (c) 2016 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 rc(){}rc.prototype.toJSON=function(){return{}};function D(a){a.__shady||(a.__shady=new rc);return a.__shady}function L(a){return a&&a.__shady};var N=window.ShadyDOM||{};N.Ua=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var sc=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");N.B=!!(sc&&sc.configurable&&sc.get);N.sa=N.force||!N.Ua;N.D=N.noPatch||!1;N.aa=N.preferPerformance;N.ua="on-demand"===N.D;N.Ia=navigator.userAgent.match("Trident");function tc(a){return(a=L(a))&&void 0!==a.firstChild}function O(a){return a instanceof ShadowRoot}function uc(a){return(a=(a=L(a))&&a.root)&&vc(a)} var wc=Element.prototype,xc=wc.matches||wc.matchesSelector||wc.mozMatchesSelector||wc.msMatchesSelector||wc.oMatchesSelector||wc.webkitMatchesSelector,yc=document.createTextNode(""),zc=0,Ac=[];(new MutationObserver(function(){for(;Ac.length;)try{Ac.shift()()}catch(a){throw yc.textContent=zc++,a;}})).observe(yc,{characterData:!0});function Bc(a){Ac.push(a);yc.textContent=zc++} var Cc=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function Dc(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1} function Ec(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if("length"!==e&&isNaN(e)&&a[e])return a[e];for(var f=na(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function Gc(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b} function Hc(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function Ic(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function P(a,b,c,d){c=void 0===c?"":c;for(var e in b)d&&0<=d.indexOf(e)||Ic(a,c+e,b[e])}function Jc(a,b){for(var c in b)c in a&&Ic(a,c,b[c])}function Q(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b} function Kc(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function Lc(a){return a instanceof Node?a:document.createTextNode(""+a)}function Mc(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(1===b.length)return Lc(b[0]);c=document.createDocumentFragment();b=na(b);for(var d=b.next();!d.done;d=b.next())c.appendChild(Lc(d.value));return c};var Nc=[],Oc;function Pc(a){Oc||(Oc=!0,Bc(Qc));Nc.push(a)}function Qc(){Oc=!1;for(var a=!!Nc.length;Nc.length;)Nc.shift()();return a}Qc.list=Nc;function Rc(){this.a=!1;this.addedNodes=[];this.removedNodes=[];this.ja=new Set}function Sc(a){a.a||(a.a=!0,Bc(function(){a.flush()}))}Rc.prototype.flush=function(){if(this.a){this.a=!1;var a=this.takeRecords();a.length&&this.ja.forEach(function(b){b(a)})}};Rc.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]}; function Tc(a,b){var c=D(a);c.Z||(c.Z=new Rc);c.Z.ja.add(b);var d=c.Z;return{Ma:b,S:d,Na:a,takeRecords:function(){return d.takeRecords()}}}function Uc(a){var b=a&&a.S;b&&(b.ja.delete(a.Ma),b.ja.size||(D(a.Na).Z=null))} function Vc(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Wc=/[&\u00A0"]/g,Xc=/[&\u00A0<>]/g;function Yc(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Zc(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var $c=Zc("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),ad=Zc("style script xmp iframe noembed noframes plaintext noscript".split(" ")); function bd(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var m="<"+k,q=h.attributes,H=0,C;C=q[H];H++)m+=" "+C.name+'="'+C.value.replace(Wc,Yc)+'"';m+=">";h=$c[k]?m:m+bd(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&ad[k.localName]?h:h.replace(Xc,Yc);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), Error("not implemented");}}c+=h}return c};var cd=N.B,dd={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},ed={};function fd(a){ed[a]=function(b){return b["__shady_native_"+a]}}function gd(a,b){P(a,b,"__shady_native_");for(var c in b)fd(c)}function S(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?dd[d]||(dd[d]=e.value):fd(d))}} var hd=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),id=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),jd=document.implementation.createHTMLDocument("inert");function kd(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var ld=["firstElementChild","lastElementChild","children","childElementCount"],md=["querySelector","querySelectorAll","append","prepend","replaceChildren"]; function nd(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?S(window.EventTarget.prototype,a):(S(Node.prototype,a),S(Window.prototype,a));cd?S(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):gd(Node.prototype,{parentNode:{get:function(){hd.currentNode=this;return hd.parentNode()}},firstChild:{get:function(){hd.currentNode=this;return hd.firstChild()}},lastChild:{get:function(){hd.currentNode= this;return hd.lastChild()}},previousSibling:{get:function(){hd.currentNode=this;return hd.previousSibling()}},nextSibling:{get:function(){hd.currentNode=this;return hd.nextSibling()}},childNodes:{get:function(){var b=[];hd.currentNode=this;for(var c=hd.firstChild();c;)b.push(c),c=hd.nextSibling();return b}},parentElement:{get:function(){id.currentNode=this;return id.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b= document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if("undefined"===typeof b||null===b)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:kd(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});S(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")); S(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){id.currentNode=this;return id.firstChild()}},lastElementChild:{get:function(){id.currentNode=this;return id.lastChild()}},children:{get:function(){var b=[];id.currentNode=this;for(var c=id.firstChild();c;)b.push(c),c=id.nextSibling();return Ec(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};cd?(S(Element.prototype,ld),S(Element.prototype,["previousElementSibling","nextElementSibling", "innerHTML","className"]),S(HTMLElement.prototype,["children","innerHTML","className"])):(gd(Element.prototype,a),gd(Element.prototype,{previousElementSibling:{get:function(){id.currentNode=this;return id.previousSibling()}},nextElementSibling:{get:function(){id.currentNode=this;return id.nextSibling()}},innerHTML:{get:function(){return bd(this,Gc)},set:function(b){var c="template"===this.localName?this.content:this;kd(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==jd.namespaceURI? jd.createElementNS(this.namespaceURI,d):jd.createElement(d);d.innerHTML=b;for(b="template"===this.localName?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));S(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));S(Element.prototype,md);S(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&& S(window.HTMLTemplateElement.prototype,["innerHTML"]);cd?S(DocumentFragment.prototype,ld):gd(DocumentFragment.prototype,a);S(DocumentFragment.prototype,md);cd?(S(Document.prototype,ld),S(Document.prototype,["activeElement"])):gd(Document.prototype,a);S(Document.prototype,["importNode","getElementById"]);S(Document.prototype,md)};var od=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}}),pd=Q({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent= a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){return this.__shady_innerHTML=a}}),qd=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(a){return this.__shady_className=a}});function rd(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}rd(od);rd(pd);rd(qd);var sd=N.B||!0===N.D,td=sd?function(){}:function(a){var b=D(a);b.Ka||(b.Ka=!0,Jc(a,qd))},ud=sd?function(){}:function(a){var b=D(a);b.Ja||(b.Ja=!0,Jc(a,od),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!N.D||Jc(a,pd))};var vd="__eventWrappers"+Date.now(),wd=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),xd=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function yd(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.O}else b=!!a,d=c=!1;return{Ga:e,capture:b,once:c,passive:d,Fa:xd?a:b}} var zd={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},Ad={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Bd(a){return a instanceof Node?a.__shady_getRootNode():a} function Cd(a,b){var c=[],d=a;for(a=Bd(a);d;)c.push(d),d.__shady_assignedSlot?d=d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d=d.host:d=d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function Dd(a){a.__composedPath||(a.__composedPath=Cd(a.target,!0));return a.__composedPath}function Ed(a,b){if(!O)return a;a=Cd(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=Bd(d),f!==e&&(g=a.indexOf(f),e=f),!O(f)||-1<g)return d} function Fd(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var Gd={focus:!0,blur:!0};function Hd(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function Id(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!Hd(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);} function Jd(a){var b=a.composedPath(),c=b.map(function(k){return Ed(k,b)}),d=a.bubbles;Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return g}});var e=Event.CAPTURING_PHASE;Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e}});for(var f=b.length-1;0<=f;f--){var g=b[f];e=g===c[f]?Event.AT_TARGET:Event.CAPTURING_PHASE;Id(a,g,"capture");if(a.ma)return}for(f=0;f<b.length;f++){g=b[f];var h=g===c[f];if(h||d)if(e=h?Event.AT_TARGET: Event.BUBBLING_PHASE,Id(a,g,"bubble"),a.ma)return}e=0;g=null}function Kd(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,l=h.capture,m=h.once,q=h.passive;if(b===h.node&&c===k&&d===l&&e===m&&f===q)return g}return-1}function Ld(a){Qc();return!N.aa&&this instanceof Node&&!Cc(document,this)?(a.__target||Md(a,this),Jd(a)):this.__shady_native_dispatchEvent(a)} function Nd(a,b,c){var d=yd(c),e=d.capture,f=d.once,g=d.passive,h=d.Ga;d=d.Fa;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(Ad[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[vd]){if(-1<Kd(h,l,a,e,f,g))return}else b[vd]=[];h=function(m){f&&this.__shady_removeEventListener(a,b,c);m.__target||Md(m);if(l!==this){var q=Object.getOwnPropertyDescriptor(m,"currentTarget");Object.defineProperty(m,"currentTarget", {get:function(){return l},configurable:!0});var H=Object.getOwnPropertyDescriptor(m,"eventPhase");Object.defineProperty(m,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}m.__previousCurrentTarget=m.currentTarget;if(!O(l)&&"slot"!==l.localName||-1!=m.composedPath().indexOf(l))if(m.composed||-1<m.composedPath().indexOf(l))if(Hd(m)&&m.target===m.relatedTarget)m.eventPhase===Event.BUBBLING_PHASE&&m.stopImmediatePropagation();else if(m.eventPhase=== Event.CAPTURING_PHASE||m.bubbles||m.target===l||l instanceof Window){var C="function"===k?b.call(l,m):b.handleEvent&&b.handleEvent(m);l!==this&&(q?(Object.defineProperty(m,"currentTarget",q),q=null):delete m.currentTarget,H?(Object.defineProperty(m,"eventPhase",H),H=null):delete m.eventPhase);return C}};b[vd].push({node:l,type:a,capture:e,once:f,passive:g,lb:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][e?"capture":"bubble"].push(h); Gd[a]||this.__shady_native_addEventListener(a,h,d)}}} function Od(a,b,c){if(b){var d=yd(c);c=d.capture;var e=d.once,f=d.passive,g=d.Ga;d=d.Fa;if(Ad[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[vd]}catch(l){}k&&(e=Kd(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].lb,k.length||(b[vd]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}} function Pd(){for(var a in Gd)window.__shady_native_addEventListener(a,function(b){b.__target||(Md(b),Jd(b))},!0)} var Qd=Q({get composed(){void 0===this.__composed&&(wd?this.__composed="focusin"===this.type||"focusout"===this.type||wd(this):!1!==this.isTrusted&&(this.__composed=zd[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Cd(this.__target,this.composed));return this.__composedPath},get target(){return Ed(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath|| (this.__relatedTargetComposedPath=Cd(this.__relatedTarget,!0));return Ed(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ma=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ma=this.__immediatePropagationStopped=!0}}); function Md(a,b){b=void 0===b?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(N.B){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;P(c,Qd);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else P(a,Qd)}var Rd=Fd(Event),Sd=Fd(CustomEvent),Td=Fd(MouseEvent); function Ud(){if(!wd&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}} var Vd=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return"on"===a.substring(0,2)}),Wd=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return"on"===a.substring(0,2)});function Xd(a){return{set:function(b){var c=D(this),d=a.substring(2);c.N||(c.N={});c.N[a]&&this.removeEventListener(d,c.N[a]);this.__shady_addEventListener(d,b);c.N[a]=b},get:function(){var b=L(this);return b&&b.N&&b.N[a]},configurable:!0}};function Yd(a,b){return{index:a,ba:[],ia:b}} function Zd(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var l=c.length,m=0;m<k-g&&$d(a[--h],c[--l]);)m++;h=m}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Yd(e,0);f<d;)b.ba.push(c[f++]);return[b]}if(f==d)return[Yd(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(m=1;m<h;m++)if(a[k+m-1]===c[g+l-1])b[l][m]= b[l-1][m-1];else{var q=b[l-1][m]+1,H=b[l][m-1]+1;b[l][m]=q<H?q:H}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],l=b[k-1][g],m=b[k][g-1],q=l<m?l<h?l:h:m<h?m:h,q==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):q==l?(a.push(3),k--,d