UNPKG

@aurigma/ui-framework

Version:

A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.

193 lines (181 loc) 128 kB
/** @license @nocompile Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ (function(){/* 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){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this);function ia(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}} ia("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}function c(e,f){this.g=e;ca(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.g};var d=0;return b}); ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ja(ba(this))}})}return a});function ja(a){a={next:a};a[Symbol.iterator]=function(){return this};return a} function ka(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=ka(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ma;if("function"==typeof Object.setPrototypeOf)ma=Object.setPrototypeOf;else{var na;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;na=pa.a;break a}catch(a){}na=!1}ma=na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null} var qa=ma;function ra(){this.u=!1;this.h=null;this.Ka=void 0;this.g=1;this.da=0;this.i=null}function ua(a){if(a.u)throw new TypeError("Generator is already running");a.u=!0}ra.prototype.O=function(a){this.Ka=a};function xa(a,b){a.i={Wa:b,$a:!0};a.g=a.da}ra.prototype.return=function(a){this.i={return:a};this.g=this.da};function ya(a,b){a.g=3;return{value:b}}function za(a){this.g=new ra;this.h=a} function Aa(a,b){ua(a.g);var c=a.g.h;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}function Ba(a,b,c,d){try{var e=b.call(a.g.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.u=!1,e;var f=e.value}catch(g){return a.g.h=null,xa(a.g,g),Ca(a)}a.g.h=null;d.call(a.g,f);return Ca(a)} function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.u=!1,{value:b.value,done:!1}}catch(c){a.g.Ka=void 0,xa(a.g,c)}a.g.u=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.$a)throw b.Wa;return{value:b.return,done:!0}}return{value:void 0,done:!0}} function Da(a){this.next=function(b){ua(a.g);a.g.h?b=Ba(a,a.g.h.next,b,a.g.O):(a.g.O(b),b=Ca(a));return b};this.throw=function(b){ua(a.g);a.g.h?b=Ba(a,a.g.h["throw"],b,a.g.O):(xa(a.g,b),b=Ca(a));return b};this.return=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Ea(a,b){b=new Da(new za(b));qa&&a.prototype&&qa(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 Fa=setTimeout;function Ga(){}function Ha(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.N=0;this.Ea=!1;this.I=void 0;this.ba=[];Ia(a,this)} function Ja(a,b){for(;3===a.N;)a=a.I;0===a.N?a.ba.push(b):(a.Ea=!0,Ka(function(){var c=1===a.N?b.bb:b.cb;if(null===c)(1===a.N?La:Ma)(b.promise,a.I);else{try{var d=c(a.I)}catch(e){Ma(b.promise,e);return}La(b.promise,d)}}))} function La(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.N=3;a.I=b;Na(a);return}if("function"===typeof c){Ia(Ha(c,b),a);return}}a.N=1;a.I=b;Na(a)}catch(d){Ma(a,d)}}function Ma(a,b){a.N=2;a.I=b;Na(a)} function Na(a){2===a.N&&0===a.ba.length&&Ka(function(){a.Ea||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.I)});for(var b=0,c=a.ba.length;b<c;b++)Ja(a,a.ba[b]);a.ba=null}function Oa(a,b,c){this.bb="function"===typeof a?a:null;this.cb="function"===typeof b?b:null;this.promise=c}function Ia(a,b){var c=!1;try{a(function(d){c||(c=!0,La(b,d))},function(d){c||(c=!0,Ma(b,d))})}catch(d){c||(c=!0,Ma(b,d))}} A.prototype["catch"]=function(a){return this.then(null,a)};A.prototype.then=function(a,b){var c=new this.constructor(Ga);Ja(this,new Oa(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 Pa(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 Qa(a){return a&&"object"===typeof a&&a.constructor===A?a:new A(function(b){b(a)})}function Ra(a){return new A(function(b,c){c(a)})}function Sa(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++)Qa(a[d]).then(b,c)})}var Ka="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){Fa(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=Pa;A.race=Sa;A.resolve=Qa;A.reject=Ra;var Ta=document.createTextNode(""),Va=[];(new MutationObserver(function(){for(var a=Va.length,b=0;b<a;b++)Va[b]();Va.splice(0,a)})).observe(Ta,{characterData:!0});Ka=function(a){Va.push(a);Ta.textContent=0<Ta.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=String(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){sa.call(u, p)&&Ua(G,p,u[p])});return G},w=function(){},ta=function(I){return I!=f&&!F.call(fa,I)},ha=function(I){return I!=f&&F.call(fa,I)},sa=function(I){var u=String(I);return ha(u)?F.call(this,u)&&!!this[f]&&this[f]["@@"+u]:E.call(this,I)},n=function(I){q(t,I,{enumerable:!1,configurable:!0,get:w,set:function(u){wa(this,I,{enumerable:!1,configurable:!0,writable:!0,value:u});y(this,I,!0)}});fa[I]=q(a(I),"constructor",fc);return m(fa[I])},J=function G(u){if(this instanceof G)throw new TypeError("Symbol is not a constructor"); return n("__\u0001symbol:".concat(u||"",e,++d))},fa=k(null),fc={value:J},fb=function(u){return fa[u]},Ua=function(u,G,p){var r=String(G);if(ha(r)){G=wa;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},gb=function(u){return g(u).filter(ha).map(fb)};C.value=Ua;q(a,"defineProperty",C);C.value=gb;q(a,b,C);C.value=function(u){return g(u).filter(ta)};q(a,"getOwnPropertyNames",C);C.value=function(u,G){var p=gb(G);p.length?l(G).concat(p).forEach(function(r){sa.call(G, r)&&Ua(u,r,G[r])}):H(u,G);return u};q(a,"defineProperties",C);C.value=sa;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?fa[u]:n(u)};q(J,"for",C);C.value=function(u){if(ta(u))throw new TypeError(u+" is not a symbol");if(F.call(fa,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&&ha(G)&&(p.enumerable=sa.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&&ha(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 wa=q;else throw"IE11";}catch(u){wa=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){g in b||(c(b,g,{value:b(g)}),"toStringTag"===g&&(f=a.getOwnPropertyDescriptor(d,"toString"),f.value=function(){var h=e.call(this),k=null==this?this:this[b.toStringTag];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 Wa=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":Wa.call(this)};Object.keys=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return(b=Object.getOwnPropertyDescriptor(a,b))&&b.enumerable})}; String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function Xa(){var b,c=this;return Ea(Xa,function(d){1==d.g&&(b=0);if(3!=d.g)return b<c.length?d=ya(d,c[b]):(d.g=0,d=void 0),d;b++;d.g=2})});Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function Ya(){var b,c=this,d;return Ea(Ya,function(e){1==e.g&&(b=[],c.forEach(function(f){b.push(f)}),d=0);if(3!=e.g)return d<b.length?e=ya(e,b[d]):(e.g=0,e=void 0),e;d++;e.g=2})}); Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function Za(){var b,c=this,d;return Ea(Za,function(e){1==e.g&&(b=[],c.forEach(function(f,g){b.push([g,f])}),d=0);if(3!=e.g)return d<b.length?e=ya(e,b[d]):(e.g=0,e=void 0),e;d++;e.g=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 $a=document.createEvent("Event");$a.initEvent("foo",!0,!0);$a.preventDefault();if(!$a.defaultPrevented){var ab=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(ab.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var bb=/Trident/.test(navigator.userAgent); if(!window.Event||bb&&"function"!==typeof window.Event){var cb=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(cb){for(var db in cb)window.Event[db]=cb[db];window.Event.prototype=cb.prototype}} if(!window.CustomEvent||bb&&"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||bb&&"function"!==typeof window.MouseEvent){var eb=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(eb)for(var hb in eb)window.MouseEvent[hb]=eb[hb];window.MouseEvent.prototype=eb.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 ib,jb,kb=Element.prototype,nb=null!==(ib=Object.getOwnPropertyDescriptor(kb,"attributes"))&&void 0!==ib?ib:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),ob=null!==(jb=null===nb||void 0===nb?void 0:nb.get)&&void 0!==jb?jb:function(){return this.attributes},pb=Array.prototype.map;kb.hasOwnProperty("getAttributeNames")||(kb.getAttributeNames=function(){return pb.call(ob.call(this),function(a){return a.name})});var qb,rb=Element.prototype;rb.hasOwnProperty("matches")||(rb.matches=null!==(qb=rb.webkitMatchesSelector)&&void 0!==qb?qb:rb.msMatchesSelector);var sb=Node.prototype.appendChild;function tb(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=ka(c);for(d=c.next();!d.done;d=c.next())d=d.value,sb.call(this,"string"===typeof d?document.createTextNode(d):d)}})}tb(Document);tb(DocumentFragment);tb(Element);var ub,vb,wb=Node.prototype.insertBefore,xb=null!==(vb=null===(ub=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ub?void 0:ub.get)&&void 0!==vb?vb:function(){return this.firstChild}; function yb(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=xb.call(this);c=ka(c);for(var e=c.next();!e.done;e=c.next())e=e.value,wb.call(this,"string"===typeof e?document.createTextNode(e):e,d)}})}yb(Document);yb(DocumentFragment);yb(Element);var zb,Ab,Bb=Node.prototype.appendChild,Cb=Node.prototype.removeChild,Db=null!==(Ab=null===(zb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===zb?void 0:zb.get)&&void 0!==Ab?Ab:function(){return this.firstChild}; function Eb(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=Db.call(this));)Cb.call(this,d);c=ka(c);for(d=c.next();!d.done;d=c.next())d=d.value,Bb.call(this,"string"===typeof d?document.createTextNode(d):d)}})}Eb(Document);Eb(DocumentFragment);Eb(Element);var Fb,Gb,Hb,Ib,Jb=Node.prototype.insertBefore,Kb=null!==(Gb=null===(Fb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Fb?void 0:Fb.get)&&void 0!==Gb?Gb:function(){return this.parentNode},Lb=null!==(Ib=null===(Hb=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===Hb?void 0:Hb.get)&&void 0!==Ib?Ib:function(){return this.nextSibling}; function Mb(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=Kb.call(this);if(null!==d){var e=Lb.call(this);c=ka(c);for(var f=c.next();!f.done;f=c.next())f=f.value,Jb.call(d,"string"===typeof f?document.createTextNode(f):f,e)}}})}Mb(CharacterData);Mb(Element);var Nb,Ob,Pb=Node.prototype.insertBefore,Qb=null!==(Ob=null===(Nb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Nb?void 0:Nb.get)&&void 0!==Ob?Ob:function(){return this.parentNode}; function Rb(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=Qb.call(this);if(null!==d){c=ka(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Pb.call(d,"string"===typeof e?document.createTextNode(e):e,this)}}})}Rb(CharacterData);Rb(Element);var Sb,Tb,Ub=Node.prototype.removeChild,Vb=null!==(Tb=null===(Sb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Sb?void 0:Sb.get)&&void 0!==Tb?Tb:function(){return this.parentNode};function Wb(a){a=a.prototype;a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=Vb.call(this);b&&Ub.call(b,this)}})}Wb(CharacterData);Wb(Element);var Xb,Yb,Zb=Node.prototype.insertBefore,$b=Node.prototype.removeChild,ac=null!==(Yb=null===(Xb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Xb?void 0:Xb.get)&&void 0!==Yb?Yb:function(){return this.parentNode}; function bc(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=ac.call(this);if(null!==d){c=ka(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Zb.call(d,"string"===typeof e?document.createTextNode(e):e,this);$b.call(d,this)}}})}bc(CharacterData);bc(Element);var cc=window.Element.prototype,dc=window.HTMLElement.prototype,ec=window.SVGElement.prototype;!dc.hasOwnProperty("classList")||cc.hasOwnProperty("classList")||ec.hasOwnProperty("classList")||Object.defineProperty(cc,"classList",Object.getOwnPropertyDescriptor(dc,"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 gc=document.createElement("style");gc.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var hc=document.querySelector("head");hc.insertBefore(gc,hc.firstChild);var ic=window;ic.WebComponents=ic.WebComponents||{flags:{}};var jc=document.querySelector('script[src*="webcomponents-bundle"]'),kc=/wc-(.+)/,lc={};if(!lc.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(kc))&&(lc[b[1]]=a[1]||!0)});if(jc)for(var mc=0,nc=void 0;nc=jc.attributes[mc];mc++)"src"!==nc.name&&(lc[nc.name]=nc.value||!0);var oc={};lc.log&&lc.log.split&&lc.log.split(",").forEach(function(a){oc[a]=!0});lc.log=oc} ic.WebComponents.flags=lc;var pc=lc.shadydom;if(pc){ic.ShadyDOM=ic.ShadyDOM||{};ic.ShadyDOM.force=pc;var qc=lc.noPatch;ic.ShadyDOM.noPatch="true"===qc?!0:qc}var rc=lc.register||lc.ce;rc&&window.customElements&&(ic.customElements.forcePolyfill=rc);/* 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 lb;lb=z.firstChild;)B.call(this,lb,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 va=Document.prototype.importNode;Document.prototype.importNode=function(z,R){R=va.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 ta=document.head;ta.insertBefore(w,ta.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var ha=!document.createElement("div").hasOwnProperty("innerHTML");a.Z=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(ha)p.__proto__=a.prototype;else if(p.cloneNode=function(B){return a.sa(this,B)},W)try{n(p),J(p)}catch(B){W=!1}a.bootstrap(p.content)}};var sa={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 wa(this)},set:function(r){var B= sa[(/<([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.bootstrap(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.bootstrap=function(p){p=b(p,"template");for(var r=0,B=p.length,K;r<B&&(K=p[r]);r++)a.Z(K)};document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var p= g.apply(this,arguments);"template"===p.localName&&a.Z(p);return p};DOMParser.prototype.parseFromString=function(){var p=q.apply(this,arguments);a.bootstrap(p);return p};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return wa(this)},set:function(p){H.set.call(this,p);a.bootstrap(this)},configurable:!0,enumerable:!0});var fa=/[&\u00A0"]/g,fc=/[&\u00A0<>]/g,fb=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 Ua=w("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),gb=w("style script xmp iframe noembed noframes plaintext noscript".split(" ")),wa=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,va;aa<la&&(va=K[aa]);aa++){a:{var z=va;var R=p;var lb=r;switch(z.nodeType){case Node.ELEMENT_NODE:for(var Ec=z.localName,mb="<"+Ec,xh=z.attributes, me=0;R=xh[me];me++)mb+=" "+R.name+'="'+R.value.replace(fa,fb)+'"';mb+=">";z=Ua[Ec]?mb:mb+wa(z,lb)+"</"+Ec+">";break a;case Node.TEXT_NODE:z=z.data;z=R&&gb[R.localName]?z:z.replace(fc,fb);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.sa=function(p,r){var B=f.call(p,!1);this.Z&&this.Z(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.Z&&a.Z(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.sa(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.sa(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,va=0,z;va<la.length;va++)z=la[va],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 sc(){}sc.prototype.toJSON=function(){return{}};function D(a){a.__shady||(a.__shady=new sc);return a.__shady}function L(a){return a&&a.__shady};var N=window.ShadyDOM||{};N.Ya=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var tc=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");N.H=!!(tc&&tc.configurable&&tc.get);N.ya=N.force||!N.Ya;N.J=N.noPatch||!1;N.fa=N.preferPerformance;N.Aa="on-demand"===N.J;N.Na=navigator.userAgent.match("Trident");function uc(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function vc(a){return(a=L(a))&&void 0!==a.firstChild} function O(a){return a instanceof ShadowRoot}function wc(a){return(a=(a=L(a))&&a.root)&&xc(a)}var yc=Element.prototype,zc=yc.matches||yc.matchesSelector||yc.mozMatchesSelector||yc.msMatchesSelector||yc.oMatchesSelector||yc.webkitMatchesSelector,Ac=document.createTextNode(""),Bc=0,Cc=[];(new MutationObserver(function(){for(;Cc.length;)try{Cc.shift()()}catch(a){throw Ac.textContent=Bc++,a;}})).observe(Ac,{characterData:!0});function Dc(a){Cc.push(a);Ac.textContent=Bc++} var Fc=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 Gc(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1} function Hc(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=ka(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 Ic(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b} function Jc(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function Kc(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)||Kc(a,c+e,b[e])}function Lc(a,b){for(var c in b)c in a&&Kc(a,c,b[c])}function Q(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b} function Mc(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function Nc(a){return a instanceof Node?a:document.createTextNode(""+a)}function Oc(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(1===b.length)return Nc(b[0]);c=document.createDocumentFragment();b=ka(b);for(var d=b.next();!d.done;d=b.next())c.appendChild(Nc(d.value));return c};var Pc=[],Qc;function Rc(a){Qc||(Qc=!0,Dc(Sc));Pc.push(a)}function Sc(){Qc=!1;for(var a=!!Pc.length;Pc.length;)Pc.shift()();return a}Sc.list=Pc;function Tc(){this.g=!1;this.addedNodes=[];this.removedNodes=[];this.oa=new Set}function Uc(a){a.g||(a.g=!0,Dc(function(){a.flush()}))}Tc.prototype.flush=function(){if(this.g){this.g=!1;var a=this.takeRecords();a.length&&this.oa.forEach(function(b){b(a)})}};Tc.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 Vc(a,b){var c=D(a);c.ea||(c.ea=new Tc);c.ea.oa.add(b);var d=c.ea;return{Ra:b,X:d,Sa:a,takeRecords:function(){return d.takeRecords()}}}function Wc(a){var b=a&&a.X;b&&(b.oa.delete(a.Ra),b.oa.size||(D(a.Sa).ea=null))} function Xc(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 Yc=/[&\u00A0"]/g,Zc=/[&\u00A0<>]/g;function $c(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function ad(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var bd=ad("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),cd=ad("style script xmp iframe noembed noframes plaintext noscript".split(" ")); function dd(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(Yc,$c)+'"';m+=">";h=bd[k]?m:m+dd(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&cd[k.localName]?h:h.replace(Zc,$c);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 ed=N.H,fd={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},gd={};function hd(a){gd[a]=function(b){return b["__shady_native_"+a]}}function id(a,b){P(a,b,"__shady_native_");for(var c in b)hd(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?fd[d]||(fd[d]=e.value):hd(d))}} var jd=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),kd=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),ld=document.implementation.createHTMLDocument("inert");function md(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var nd=["firstElementChild","lastElementChild","children","childElementCount"],od=["querySelector","querySelectorAll","append","prepend","replaceChildren"]; function pd(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(S(window.EventTarget.prototype,a),void 0===window.__shady_native_addEventListener&&S(Window.prototype,a)):(S(Node.prototype,a),S(Window.prototype,a));ed?S(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):id(Node.prototype,{parentNode:{get:function(){jd.currentNode=this;return jd.parentNode()}},firstChild:{get:function(){jd.currentNode= this;return jd.firstChild()}},lastChild:{get:function(){jd.currentNode=this;return jd.lastChild()}},previousSibling:{get:function(){jd.currentNode=this;return jd.previousSibling()}},nextSibling:{get:function(){jd.currentNode=this;return jd.nextSibling()}},childNodes:{get:function(){var b=[];jd.currentNode=this;for(var c=jd.firstChild();c;)b.push(c),c=jd.nextSibling();return b}},parentElement:{get:function(){kd.currentNode=this;return kd.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:md(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(){kd.currentNode=this;return kd.firstChild()}},lastElementChild:{get:function(){kd.currentNode=this;return kd.lastChild()}},children:{get:function(){var b=[];kd.currentNode=this;for(var c=kd.firstChild();c;)b.push(c),c=kd.nextSibling();return Hc(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};ed?(S(Element.prototype,nd),S(Element.prototype,["previousElementSibling","nextElementSibling", "innerHTML","className"]),S(HTMLElement.prototype,["children","innerHTML","className"])):(id(Element.prototype,a),id(Element.prototype,{previousElementSibling:{get:function(){kd.currentNode=this;return kd.previousSibling()}},nextElementSibling:{get:function(){kd.currentNode=this;return kd.nextSibling()}},innerHTML:{get:function(){return dd(this,Ic)},set:function(b){var c="template"===this.localName?this.content:this;md(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==ld.namespaceURI? ld.createElementNS(this.namespaceURI,d):ld.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,od);S(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&& S(window.HTMLTemplateElement.prototype,["innerHTML"]);ed?S(DocumentFragment.prototype,nd):id(DocumentFragment.prototype,a);S(DocumentFragment.prototype,od);ed?(S(Document.prototype,nd),S(Document.prototype,["activeElement"])):id(Document.prototype,a);S(Document.prototype,["importNode","getElementById","elementFromPoint",uc()]);S(Document.prototype,od)};var qd=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}}),rd=Q({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent= a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){this.__shady_innerHTML=a}}),sd=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){this.__shady_className= a}});function td(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}td(qd);td(rd);td(sd);var ud=N.H||!0===N.J,vd=ud?function(){}:function(a){var b=D(a);b.Pa||(b.Pa=!0,Lc(a,sd))},wd=ud?function(){}:function(a){var b=D(a);b.Oa||(b.Oa=!0,Lc(a,qd),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!N.J||Lc(a,rd))};var xd="__eventWrappers"+Date.now(),yd=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),zd=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 Ad(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.U}else b=!!a,d=c=!1;return{La:e,capture:b,once:c,passive:d,Ja:zd?a:b}} var Bd={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},Cd={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Dd(a){return a instanceof Node?a.__shady_getRootNode():a} function Ed(a,b){var c=[],d=a;for(a=Dd(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function Fd(a){a.__composedPath||(a.__composedPath=Ed(a.target,!0));return a.__composedPath}function Gd(a,b){if(!O)return a;a=Ed(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=Dd(d),f!==e&&(g=a.indexOf(f),e=f),!O(f)||-1<g)return d} function Hd(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 Id={focus:!0,blur:!0};function Jd(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function Kd(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!Jd(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);} function Ld(a){var b=a.composedPath(),c=b.map(function(k){return Gd(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;Kd(a,g,"capture");if(a.ra)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,Kd(a,g,"bubble"),a.ra)return}e=0;g=null}function Md(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 Nd(a){Sc();return!N.fa&&this instanceof Node&&!Fc(document,this)?(a.__target||Od(a,this),Ld(a)):this.__shady_native_dispatchEvent(a)} function Pd(a,b,c){var d=Ad(c),e=d.capture,f=d.once,g=d.passive,h=d.La;d=d.Ja;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(Cd[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[xd]){if(-1<Md(h,l,a,e,f,g))return}else b[xd]=[];h=function(m){f&&this.__shady_removeEventListener(a,b,c);m.__target||Od(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(Jd(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[xd].push({node:l,type:a,capture:e,once:f,passive:g,pb:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][e?"capture":"bubble"].push(h); Id[a]||this.__shady_native_addEventListener(a,h,d)}}} function Qd(a,b,c){if(b){var d=Ad(c);c=d.capture;var e=d.once,f=d.passive,g=d.La;d=d.Ja;if(Cd[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[xd]}catch(l){}k&&(e=Md(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].pb,k.length||(b[xd]=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 Rd(){for(var a in Id)window.__shady_native_addEventListener(a,function(b){b.__target||(Od(b),Ld(b))},!0)} var Sd=Q({get composed(){void 0===this.__composed&&(yd?this.__composed="focusin"===this.type||"focusout"===this.type||yd(this):!1!==this.isTrusted&&(this.__composed=Bd[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Ed(this.__target,this.composed));return this.__composedPath},get target(){return Gd(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath|| (this.__relatedTargetComposedPath=Ed(this.__relatedTarget,!0));return Gd(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ra=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ra=this.__immediatePropagationStopped=!0}}); function Od(a,b){b=void 0===b?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(N.H){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;P(c,Sd);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else P(a,Sd)}var Td=Hd(Event),Ud=Hd(CustomEvent),Vd=Hd(MouseEvent); function Wd(){if(!yd&&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 Xd=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return"on"===a.substring(0,2)}),Yd=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return"on"===a.substring(0,2)});function Zd(a){return{set:function(b){var c=D(this),d=a.substring(2);c.T||(c.T={});c.T[a]&&this.removeEventListener(d,c.T[a]);this.__shady_addEventListener(d,b);c.T[a]=b},get:function(){var b=L(this);return b&&b.T&&b.T[a]},configurable:!0}};function $d(a,b){return{index:a,ga:[],na:b}} function ae(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math