/*!
* __ __ __ __
* /\ \/\ \ /\ \ __ /\ \
* \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
* \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
* \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
* \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
* \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
* /\___/ \ \____/
* \/__/ \/___/
*
* Powered by Hydejack v9.0.1
*/
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{176:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},187:function(e,t,n){(function(e){(function(){"use strict";var t;function n(e){var t=0;return function(){return t]/g;function qe(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Ve(e){for(var t={},n=0;n",a=Ge[l]?h:h+Ke(a,d)+""+l+">";break e;case Node.TEXT_NODE:a=a.data,a=l&&We[l.localName]?a:a.replace(Ue,qe);break e;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break e;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var Xe=document.implementation.createHTMLDocument("inert"),$e=D({get innerHTML(){return p(this)?Ke("template"===this.localName?this.content:this,O):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{Ee(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==Xe.namespaceURI?Xe.createElementNS(this.namespaceURI,t):Xe.createElement(t),u.c?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),ze=D({blur:function(){var e=h(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});u.A||fe.forEach((function(e){ze[e]=me(e)}));var Ye=D({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&f(t)&&Et(t),(t=h(this))&&(e&&e.flatten?t.l:t.assignedNodes)||[]}},addEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)ae.call(this,e,t,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.i=this,r.__shady_addEventListener(e,t,n)}},removeEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)le.call(this,e,t,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.i=this,r.__shady_removeEventListener(e,t,n)}}}),Je=D({getElementById:function(e){return""===e?null:Te(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}}),Qe=D({get activeElement(){var e=u.c?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!f(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=Lt(e);t&&t!==this;)t=Lt(e=t.host);return this===document?t?null:e:t===this?e:null}}),Ze=window.document,et=D({importNode:function(e,t){if(e.ownerDocument!==Ze||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),tt=D({dispatchEvent:se,addEventListener:ae.bind(window),removeEventListener:le.bind(window)}),nt={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(nt.parentElement=Ce.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(nt.contains=Ce.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(nt.children=Oe.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(nt.innerHTML=$e.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(nt.className=He.className);var rt={EventTarget:[ye],Node:[Ce,window.EventTarget?null:ye],Text:[we],Comment:[we],CDATASection:[we],ProcessingInstruction:[we],Element:[He,Oe,we,!u.c||"innerHTML"in Element.prototype?$e:null,window.HTMLSlotElement?null:Ye],HTMLElement:[ze,nt],HTMLSlotElement:[Ye],DocumentFragment:[Pe,Je],Document:[et,Pe,Je,Qe],Window:[tt]},ot=u.c?null:["innerHTML","textContent"];function it(e,t,n,r){t.forEach((function(t){return e&&t&&P(e,t,n,r)}))}function st(e){var t,n=e?null:ot;for(t in rt)it(window[t]&&window[t].prototype,rt[t],e,n)}function at(e){return e.__shady_protoIsPatched=!0,it(e,rt.EventTarget),it(e,rt.Node),it(e,rt.Element),it(e,rt.HTMLElement),it(e,rt.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,it(n,rt.EventTarget),it(n,rt.Node),rt[e]&&it(n,rt[e]),t.prototype.__shady_patchedProto=n}));var lt=u.G,dt=u.c;function ct(e,t){if(lt&&!e.__shady_protoIsPatched&&!f(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(at(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}dt||(1===t?V(e):2===t&&G(e))}function ht(e,t,n,r){ct(e,1),r=r||null;var o=c(e),i=r?c(r):null;o.previousSibling=r?i.previousSibling:t.__shady_lastChild,(i=h(o.previousSibling))&&(i.nextSibling=e),(i=h(o.nextSibling=r))&&(i.previousSibling=e),o.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function ut(e,t){var n=c(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,ct(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var o=c(n);o.parentNode=t||e,o.nextSibling=n.__shady_native_nextSibling,o.previousSibling=r||null,r=n,ct(n,1)}}}var _t=D({addEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.i=n.i||this,this.host.__shady_addEventListener(e,t,n)},removeEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.i=n.i||this,this.host.__shady_removeEventListener(e,t,n)}});function pt(e,t){P(e,_t,t),P(e,Qe,t),P(e,$e,t),P(e,Oe,t),u.g&&!t?(P(e,Ce,t),P(e,Je,t)):u.c||(P(e,j),P(e,F),P(e,H))}var ft,mt={},yt=u.deferConnectionCallbacks&&"loading"===document.readyState;function vt(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function gt(e,t,n){if(e!==mt)throw new TypeError("Illegal constructor");this.a=null,St(this,t,n)}function St(e,t,n){if(e.host=t,e.mode=n&&n.mode,ut(e.host),(t=c(e.host)).root=e,t.U="closed"!==e.mode?e:null,(t=c(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,u.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else Nt(e)}function Nt(e){e.j||(e.j=!0,I((function(){return Et(e)})))}function Et(e){var t;if(t=e.j){for(var n;e;)e.j&&(n=e),f(e=(t=e).host.__shady_getRootNode())&&(t=h(t.host))&&0o.assignedNodes.length&&(o.D=!0)}o.D&&(o.D=!1,wt(this,t))}for(t=this.a,n=[],o=0;on.indexOf(r))||n.push(r);for(t=0;t2&&void 0!==arguments[2]?arguments[2]:"",o="";if(t.cssText||t.rules){var a=t.rules;if(a&&!i(a))for(var l,d=0,c=a.length;de);function B(e){var t=e.localName,n="",r="";return t?t.indexOf("-")>-1?n=t:(r=t,n=e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}function U(e){for(var t=[],n="",r=0;r>=0&&r0&&void 0!==arguments[0]?arguments[0]:"";return!(""===e||!S)&&(y?"shadow"===e:"shady"===e)}var W=/:(nth[-\w]+)\(([^)]+)\)/,K=":not(.".concat("style-scope",")"),X=",",$=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,z=/[[.:#*]/,Y=":host",J=":root",Q="::slotted",Z=new RegExp("^(".concat(Q,")")),ee=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,te=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ne=/(.*):dir\((?:(ltr|rtl))\)(.*)/,re=".",oe=":",ie="class",se="should_not_match",ae=/:(?:matches|any|-(?:webkit|moz)-any)/,le="",de=new class{get SCOPE_NAME(){return"style-scope"}dom(e,t,n){this._transformDom(e,e=>{this.element(e,t||"",n)})}domAddScope(e,t){this._transformDom(e,e=>{this.element(e,t||"")})}_transformDom(e,t){var n;if(e.nodeType===Node.ELEMENT_NODE&&t(e),"template"===e.localName){var r=e;n=(r.content||r._content||r).childNodes}else n=e.children||e.childNodes;if(n)for(var o=0;o{this.element(e,t,!0),this.element(e,n)})}domRemoveScope(e,t){this._transformDom(e,e=>{this.element(e,t||"",!0)})}elementStyles(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if(""===o)if(y||"shady"===r)o=M(t,n);else{var{is:i,typeExtension:s}=B(e);o=this.css(t,i,s,n)+"\n\n"}return o.trim()}css(e,t,n,r){var o=this._calcHostScope(t,n);t=this._calcElementScope(t);var i=this;return M(e,(function(e){e.isScoped||(i.rule(e,t,o),e.isScoped=!0),r&&r(e,t,o)}))}_calcElementScope(e){return e?re+e:""}_calcHostScope(e,t){return t?"[is=".concat(e,"]"):e}rule(e,t,n){this._transformRule(e,this._transformComplexSelector,t,n)}_transformRule(e,t,n,r){e.selector=e.transformedSelector=this._transformRuleCss(e,t,n,r)}_transformRuleCss(e,t,n,r){var o=U(e.selector);if(!R(e))for(var i,s=0,a=o.length;sBoolean(e)).join(X)}_twiddleNthPlus(e){return e.replace(W,(e,t,n)=>(n.indexOf("+")>-1?n=n.replace(/\+/g,"___"):n.indexOf("___")>-1&&(n=n.replace(/___/g,"+")),":".concat(t,"(").concat(n,")")))}_preserveMatchesPseudo(e){for(var t,n=[];t=e.match(ae);){var r=t.index,o=F(e,r);if(-1===o)throw new Error("".concat(t.input," selector missing ')'"));var i=e.slice(r,o+1);e=e.replace(i,le),n.push(i)}return{selector:e,matches:n}}_replaceMatchesPseudo(e,t){var n=e.split(le);return t.reduce((e,t,r)=>e+t+n[r+1],n[0])}_transformComplexSelector(e,t,n){var r=!1;e=e.trim();var o=W.test(e);o&&(e=e.replace(W,(e,t,n)=>":".concat(t,"(").concat(n.replace(/\s/g,""),")")),e=this._twiddleNthPlus(e));var i,s=ae.test(e);return s&&({selector:e,matches:i}=this._preserveMatchesPseudo(e)),e=(e=e.replace(Z,"".concat(Y," $1"))).replace($,(e,o,i)=>{if(!r){var s=this._transformCompoundSelector(i,o,t,n);r=r||s.stop,o=s.combinator,i=s.value}return o+i}),s&&(e=this._replaceMatchesPseudo(e,i)),o&&(e=this._twiddleNthPlus(e)),e=e.replace(ne,(e,t,n,r)=>'[dir="'.concat(n,'"] ').concat(t).concat(r,", ").concat(t,'[dir="').concat(n,'"]').concat(r))}_transformCompoundSelector(e,t,n,r){var o=e.indexOf(Q);e.indexOf(Y)>=0?e=this._transformHostSelector(e,r):0!==o&&(e=n?this._transformSimpleSelector(e,n):e);var i,s=!1;return o>=0&&(t="",s=!0),s&&(i=!0,s&&(e=e.replace(te,(e,t)=>" > ".concat(t)))),{value:e,combinator:t,stop:i}}_transformSimpleSelector(e,t){for(var n=e.split(/(\[.+?\])/),r=[],o=0;o\s*/;var _e=navigator.userAgent.match("Trident");var pe=new class{get XSCOPE_NAME(){return"x-scope"}decorateStyles(e){var t=this,n={},r=[],o=0;A(e,(function(e){t.decorateRule(e),e.index=o++,t.collectPropertiesInCssText(e.propertyInfo.cssText,n)}),(function(e){r.push(e)})),e._keyframes=r;var i=[];for(var s in n)i.push(s);return i}decorateRule(e){if(e.propertyInfo)return e.propertyInfo;var t={},n={};return this.collectProperties(e,n)&&(t.properties=n,e.rules=null),t.cssText=this.collectCssText(e),e.propertyInfo=t,t}collectProperties(e,t){var n=e.propertyInfo;if(!n){for(var r,o,i,s=N,a=e.parsedCssText;r=s.exec(a);)"inherit"===(o=(r[2]||r[3]).trim())&&"unset"===o||(t[r[1].trim()]=o),i=!0;return i}if(n.properties)return Object.assign(t,n.properties),!0}collectCssText(e){return this.collectConsumingCssText(e.parsedCssText)}collectConsumingCssText(e){return e.replace(T,"").replace(N,"")}collectPropertiesInCssText(e,t){for(var n;n=b.exec(e);){var r=n[1];":"!==n[2]&&(t[r]=!0)}}reify(e){for(var t,n=Object.getOwnPropertyNames(e),r=0;r=0)e=this.valueForProperties(e,t);else{var n=this;e=function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");var o=F(t,r+3),i=t.substring(r+4,o),s=t.substring(0,r),a=e(t.substring(o+1),n),l=i.indexOf(",");return-1===l?n(s,i.trim(),"",a):n(s,i.substring(0,l).trim(),i.substring(l+1).trim(),a)}(e,(function(e,r,o,i){if(!r)return e+i;var s=n.valueForProperty(t[r],t);return s&&"initial"!==s?"apply-shim-inherit"===s&&(s="inherit"):s=n.valueForProperty(t[o]||o,t)||o,e+(s||"")+i}))}return e&&e.trim()||""}valueForProperties(e,t){for(var n,r,o=e.split(";"),i=0;i{e.propertyInfo||this.decorateRule(e);var o=e.transformedSelector||e.parsedSelector;t&&e.propertyInfo.properties&&o&&he.call(t,o)&&(this.collectProperties(e,n),function(e,t){var n=parseInt(e/32,10),r=1<-1}(s,a),d=0===a.indexOf(":host")&&!l;if("shady"===n&&(d=!(l=a===s+" > *."+s||-1!==a.indexOf("html"))&&0===a.indexOf(s)),l||d){var c=s;d&&(t.transformedSelector||(t.transformedSelector=de._transformRuleCss(t,de._transformComplexSelector,de._calcElementScope(o),s)),c=t.transformedSelector||s),l&&"html"===s&&(c=t.transformedSelector||t.parsedSelector),r({selector:c,isHost:d,isRoot:l})}}}hostAndRootPropertiesForScope(e,t,n){var r={},o={};return A(t,t=>{this.whenHostOrRootRule(e,t,n,n=>{var i=e._element||e;he.call(i,n.selector)&&(n.isHost?this.collectProperties(t,r):this.collectProperties(t,o))})},null,!0),{rootProps:o,hostProps:r}}transformStyles(e,t,n){var r=this,{is:o,typeExtension:i}=B(e),s=de._calcHostScope(o,i),a=e.extends?"\\"+s.slice(0,-1)+"\\]":s,l=new RegExp("(?:^|[^.#[:])"+a+"($|[.:[\\s>+~])"),{styleRules:d,cssBuild:c}=ce.get(e),h=this._elementKeyframeTransforms(e,d,n);return de.elementStyles(e,d,(function(e){r.applyProperties(e,t),y||R(e)||!e.cssText||(r.applyKeyframeTransforms(e,h),r._scopeSelector(e,l,s,n))}),c)}_elementKeyframeTransforms(e,t,n){var r=t._keyframes,o={};if(!y&&r)for(var i=0,s=r[i];i-1&&(r.textContent=o),k(r,null,i.placeholder)):o&&(r=L(o,n,null,i.placeholder)),r&&(r._useCount=r._useCount||0,i.customStyle!=r&&r._useCount++,i.customStyle=r),r}applyCustomStyle(e,t){var n=D(e),r=this;e.textContent=M(n,(function(e){var n=e.cssText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(n=a(n),e.cssText=r.valueForProperties(n,t))}))}},fe={};
/**
@license
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
*/function me(e){return fe[e]||null}function ye(e){var t,n,r,o;fe[e]||(fe[e]=(t=e,n=document.createComment(" Shady DOM styles for "+t+" "),r=I?I.nextSibling:null,(o=document.head).insertBefore(n,r||o.firstChild),I=n,n))}var ve=window.customElements;if(ve&&!y&&!g){var ge=ve.define;ve.define=(e,t,n)=>{ye(e),ge.call(ve,e,t,n)}}
/**
@license
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
*/
/**
@license
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
*/
var Se=function(){};var Ne=new RegExp("".concat(de.SCOPE_NAME,"\\s*([^\\s]*)"));function Ee(e){var t=function(e){return e.classList&&e.classList.value?e.classList.value:e.getAttribute("class")||""}(e).match(Ne);return t?t[1]:""}function be(e){var t=j(e).getRootNode();if(t===e||t===e.ownerDocument)return"";var n=t.host;return n?B(n).is:""}function Ce(e){for(var t=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(.".concat(de.SCOPE_NAME,")")),n=0;n{Te.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Oe(document);else{var xe=()=>{Oe(document.body)};window.HTMLImports?window.HTMLImports.whenReady(xe):requestAnimationFrame((function(){if("loading"===document.readyState){document.addEventListener("readystatechange",(function e(){xe(),document.removeEventListener("readystatechange",e)}))}else xe()}))}Se=function(){we(Te.takeRecords())}}
/**
@license
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
*/var Pe={},Me="_applyShimCurrentVersion",De="_applyShimNextVersion",Re=Promise.resolve();function Ae(e){var t=Pe[e];t&&function(e){e[Me]=e[Me]||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e[De]=(e[De]||0)+1}(t)}function Le(e){return e[Me]===e[De]}function Ie(e){return!Le(e)&&e._applyShimValidatingVersion===e[De]}function ke(e){e._applyShimValidatingVersion=e[De],e._validating||(e._validating=!0,Re.then((function(){e[Me]=e[De],e._validating=!1})))}
/**
@license
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
*/
var Fe,He=null,je=window.HTMLImports&&window.HTMLImports.whenReady||null;function Be(e){requestAnimationFrame((function(){je?je(e):(He||(He=new Promise(e=>{Fe=e}),"complete"===document.readyState?Fe():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Fe()})),He.then((function(){e&&e()})))}))}
/**
@license
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
*/var Ue="__shadyCSSCachedStyle",qe=null,Ve=null;class Ge{constructor(){this.customStyles=[],this.enqueued=!1,Be(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Ve&&(this.enqueued=!0,Be(Ve))}addCustomStyle(e){e.__seenByShadyCSS||(e.__seenByShadyCSS=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Ue]?e[Ue]:e.getStyle?e.getStyle():e}processStyles(){for(var e=this.customStyles,t=0;tqe,set(e){qe=e}},validateCallback:{get:()=>Ve,set(e){var t=!1;Ve||(t=!0),Ve=e,t&&this.enqueueDocumentValidation()}}});
/**
@license
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
*/
var We={},Ke=new class{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;this.cache={},this.typeMax=e}_validate(e,t,n){for(var r=0;rthis.typeMax&&o.shift(),this.cache[e]=o}fetch(e,t,n){var r=this.cache[e];if(r)for(var o=r.length-1;o>=0;o--){var i=r[o];if(this._validate(i,t,n))return i}}};class Xe{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement;var e=new r;e.rules=[],this._documentOwnerStyleInfo=ce.set(this._documentOwner,new ce(e)),this._elementsHaveApplied=!1,this._applyShim=null,this._customStyleInterface=null}flush(){Se()}_generateScopeSelector(e){var t=this._scopeCounter[e]=(this._scopeCounter[e]||0)+1;return"".concat(e,"-").concat(t)}getStyleAst(e){return D(e)}styleAstToString(e){return M(e)}_gatherStyles(e){return function(e){for(var t=[],n=e.querySelectorAll("style"),r=0;r{this.transformCustomStyleForDocument(e)},this._customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{(this._customStyleInterface.enqueued||this._elementsHaveApplied)&&this.flushCustomStyles()})})}_ensure(){var e=this._ensureApplyShim();return this._ensureCustomStyleInterface(),e}flushCustomStyles(){if(!g){var e=this._ensure();if(this._customStyleInterface){var t=this._customStyleInterface.processStyles();(e||this._customStyleInterface.enqueued)&&(G(this._documentOwnerStyleInfo.cssBuild)||(S?this._documentOwnerStyleInfo.cssBuild||this._revalidateCustomStyleApplyShim(t):(this._reorderCustomStylesRules(t),this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(t),this._elementsHaveApplied&&this.styleDocument()),this._customStyleInterface.enqueued=!1))}}}_reorderCustomStylesRules(e){var t=e.map(e=>this._customStyleInterface.getStyleForCustomStyle(e)).filter(e=>!!e);t.sort((e,t)=>{var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}),this._documentOwnerStyleInfo.styleRules.rules=t.map(e=>D(e))}styleElement(e,t){if(g){if(t){ce.get(e)||ce.set(e,new ce(null));var n=ce.get(e);this._mixOverrideStyleProps(n,t),this.styleElementNativeVariables(e,n)}}else{var r=ce.get(e)||this._prepareHost(e);r&&(this._isRootOwner(e)||(this._elementsHaveApplied=!0),t&&this._mixOverrideStyleProps(r,t),S?this.styleElementNativeVariables(e,r):this.styleElementShimVariables(e,r))}}_mixOverrideStyleProps(e,t){e.overrideStyleProperties=e.overrideStyleProperties||{},Object.assign(e.overrideStyleProperties,t)}styleElementShimVariables(e,t){this.flush(),this._updateProperties(e,t),t.ownStylePropertyNames&&t.ownStylePropertyNames.length&&this._applyStyleProperties(e,t)}styleElementNativeVariables(e,t){var{is:n}=B(e);t.overrideStyleProperties&&
/**
@license
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
*/
function(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}(e,t.overrideStyleProperties);var r=Pe[n];if((r||this._isRootOwner(e))&&(!r||!V(r))&&r&&r._style&&!Le(r)){if(Ie(r)||(this._ensure(),this._applyShim&&this._applyShim.transformRules(r._styleAst,n),r._style.textContent=de.elementStyles(e,t.styleRules),ke(r)),y){var o=e.shadowRoot;if(o){var i=o.querySelector("style");i&&(i.textContent=de.elementStyles(e,t.styleRules))}}t.styleRules=r._styleAst}}_styleOwnerForNode(e){var t=j(e).getRootNode().host;return t?ce.get(t)||this._prepareHost(t)?t:this._styleOwnerForNode(t):this._documentOwner}_isRootOwner(e){return e===this._documentOwner}_applyStyleProperties(e,t){var n=B(e).is,r=Ke.fetch(n,t.styleProperties,t.ownStylePropertyNames),o=r&&r.scopeSelector,i=r?r.styleElement:null,s=t.scopeSelector;t.scopeSelector=o||this._generateScopeSelector(n);var a=pe.applyElementStyle(e,t.styleProperties,t.scopeSelector,i);return y||pe.applyElementScopeSelector(e,t.scopeSelector,s),r||Ke.store(n,t.styleProperties,a,t.scopeSelector),a}_updateProperties(e,t){var n=this._styleOwnerForNode(e),r=ce.get(n),o=r.styleProperties;n===this._documentOwner||o||(this._updateProperties(n,r),o=r.styleProperties);var i=Object.create(o||null),s=pe.hostAndRootPropertiesForScope(e,t.styleRules,t.cssBuild),a=pe.propertyDataFromStyles(r.styleRules,e).properties;Object.assign(i,s.hostProps,a,s.rootProps),this._mixinOverrideStyles(i,t.overrideStyleProperties),pe.reify(i),t.styleProperties=i}_mixinOverrideStyles(e,t){for(var n in t){var r=t[n];(r||0===r)&&(e[n]=r)}}styleDocument(e){this.styleSubtree(this._documentOwner,e)}styleSubtree(e,t){var n=j(e),r=n.shadowRoot,o=this._isRootOwner(e);(r||o)&&this.styleElement(e,t);var i=o?n:r;if(i)for(var s=Array.from(i.querySelectorAll("*")).filter(e=>j(e).shadowRoot),a=0;a{y?de.normalizeRootSelector(e):de.documentRule(e),S&&""===t&&(this._ensure(),this._applyShim&&this._applyShim.transformRule(e))}),S?e.textContent=M(n):this._documentOwnerStyleInfo.styleRules.rules.push(n)}}_revalidateApplyShim(e){if(S&&this._applyShim){var t=D(e);this._ensure(),this._applyShim.transformRules(t),e.textContent=M(t)}}getComputedStyleValue(e,t){var n;S||(n=(ce.get(e)||ce.get(this._styleOwnerForNode(e))).styleProperties[t]);return(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""}setElementClass(e,t){var n,r=j(e).getRootNode();t?n=("string"==typeof t?t:String(t)).split(/\s/):n=[];var o=r.host&&r.host.localName;if(!o){var i=e.getAttribute("class");if(i)for(var s=i.split(/\s/),a=0;ay},nativeCss:{get:()=>S}});
/**
@license
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
*/
var $e,ze,Ye=new Xe;window.ShadyCSS&&($e=window.ShadyCSS.ApplyShim,ze=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:Ye,prepareTemplate(e,t,n){Ye.flushCustomStyles(),Ye.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){Ye.prepareTemplateDom(e,t)},prepareTemplateStyles(e,t,n){Ye.flushCustomStyles(),Ye.prepareTemplateStyles(e,t,n)},styleSubtree(e,t){Ye.flushCustomStyles(),Ye.styleSubtree(e,t)},styleElement(e){Ye.flushCustomStyles(),Ye.styleElement(e)},styleDocument(e){Ye.flushCustomStyles(),Ye.styleDocument(e)},flushCustomStyles(){Ye.flushCustomStyles()},getComputedStyleValue:(e,t)=>Ye.getComputedStyleValue(e,t),nativeCss:S,nativeShadow:y,cssBuild:d,disableRuntime:g},$e&&(window.ShadyCSS.ApplyShim=$e),ze&&(window.ShadyCSS.CustomStyleInterface=ze)}}]);