iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 48.6 kB
JavaScript
/*! For license information please see 24199.ca965f37d83b867e.js.LICENSE.txt */
;(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["24199"],{87255:function(t,e,r){r.d(e,{t:()=>d});r(52247),r(70176);var n=r(97333),i=r(70617);let s={},o={};function a(t,e){s[t]=o[t.toLowerCase()]=e}function l(t){return s[t]||o[t.toLowerCase()]}class d extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let r=l(t);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(t,e,r,n){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=(0,n.Kk)(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=(0,n.iY)(e)}return this.__assetpath}register(t){if(t=t||this.id){if(i.strictTemplatePolicy&&void 0!==l(t))throw a(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,a(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}d.prototype.modules=s,customElements.define("dom-module",d)},47632:function(t,e,r){r.d(e,{PP:()=>u,SH:()=>_});r(52247),r(9359),r(31526),r(70176);var n=r(70617),i=r(19883),s=r(46068),o=r(97333),a=r(87255),l=r(34981),d=(r(70104),r(19423),r(27425)),c=r(19426);const p=(0,i.o)((t=>{const e=(0,c.e)(t);function r(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof i?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const r=t.properties;r&&(e=function(t){const e={};for(let r in t){const n=t[r];e[r]="function"==typeof n?{type:n}:n}return e}(r))}t.__ownProperties=e}return t.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){(0,d.z2)(this.prototype);const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=r(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=n(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=r(this);this.__properties=Object.assign({},t&&t._properties,n(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){(0,d.Gd)(),this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i}));var h=r(61284);const u=window.ShadyCSS&&window.ShadyCSS.cssBuild,_=(0,i.o)((t=>{const e=p((0,l.q)(t));return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((r=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",r))||(r.__ownObservers=r.hasOwnProperty(JSCompiler_renameProperty("observers",r))?r.observers:null),r.__ownObservers);var r;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):n.legacyOptimizations||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let s in t)e=this.prototype,r=s,n=t[s],i=t,n.computed&&(n.readOnly=!0),n.computed&&(e._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):e._createComputedProperty(r,n.computed,i)),n.readOnly&&!e._hasReadOnlyEffect(r)?e._createReadOnlyProperty(r,!n.computed):!1===n.readOnly&&e._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),n.reflectToAttribute&&!e._hasReflectEffect(r)?e._createReflectedProperty(r):!1===n.reflectToAttribute&&e._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),n.notify&&!e._hasNotifyEffect(r)?e._createNotifyingProperty(r):!1===n.notify&&e._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),n.observer&&e._createPropertyObserver(r,n.observer,i[n.observer]),e._addPropertyToAttributeMap(r);var e,r,n,i}static createObservers(t,e){const r=this.prototype;for(let n=0;n<t.length;n++)r._createMethodObserver(t[n],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!n.strictTemplatePolicy||n.allowTemplateFromDomModule)&&(e=a.t.import(t,"template"),n.strictTemplatePolicy&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=(0,o.iY)(t.url);else{const t=a.t.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=n.rootPath,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let r in e){let n=e[r];"value"in n&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[r]=n)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let r=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof r.value?r.value.call(this):r.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return(0,o.Rq)(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const r=this.importPath;!function(t,e,r,i){if(!u){const n=e.content.querySelectorAll("style"),o=(0,s.uT)(e),a=(0,s.lx)(r),l=e.content.firstElementChild;for(let r=0;r<a.length;r++){let n=a[r];n.textContent=t._processStyleText(n.textContent,i),e.content.insertBefore(n,l)}let d=0;for(let e=0;e<o.length;e++){let r=o[e],s=n[d];s!==r?(r=r.cloneNode(!0),s.parentNode.insertBefore(r,s)):d++,r.textContent=t._processStyleText(r.textContent,i)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,r),n.useAdoptedStyleSheetsWithBuiltCSS&&u&&n.supportsAdoptingStyleSheets){const r=e.content.querySelectorAll("style");if(r){let e="";Array.from(r).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}}(this,e,t,r?(0,o.Kk)(r):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=(0,h.r)(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),n.syncInitialRender&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=(0,o.Kk)(this.importPath)),(0,o.Kk)(t,e)}static _parseTemplateContent(t,r,n){return r.dynamicFns=r.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,r,n)}static _addTemplatePropertyEffect(t,r,i){return!n.legacyWarnings||r in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${r}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,r,i)}}}))},19426:function(t,e,r){r.d(e,{e:()=>a});r(19423),r(11740),r(70176);var n=r(19883),i=r(49136),s=r(61284);const o=i.YA,a=(0,n.o)((t=>class extends t{static createProperties(t){const e=this.prototype;for(let r in t)r in e||e._createPropertyAccessor(r)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,r){let n=this.__data[t],i=this._shouldPropertyChange(t,e,n);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=n),this.__data[t]=e,this.__dataPending[t]=e),i}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,o.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(t,e,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,r)),this.__dataCounter--}_shouldPropertiesChange(t,e,r){return Boolean(e)}_propertiesChanged(t,e,r){}_shouldPropertyChange(t,e,r){return r!==e&&(r==r||e==e)}attributeChangedCallback(t,e,r,n){e!==r&&this._attributeToProperty(t,r),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,r,n)}_attributeToProperty(t,e,r){if(!this.__serializing){const n=this.__dataAttributes,i=n&&n[t]||t;this[i]=this._deserializeValue(e,r||this.constructor.typeForProperty(i))}}_propertyToAttribute(t,e,r){this.__serializing=!0,r=arguments.length<3?this[t]:r,this._valueToNodeAttribute(this,r,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,r){const n=this._serializeValue(e);"class"!==r&&"name"!==r&&"slot"!==r||(t=(0,s.r)(t)),void 0===n?t.removeAttribute(r):t.setAttribute(r,""===n&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}}))},93520:function(t,e,r){r.d(e,{Q:()=>d});r(77439),r(11740),r(88972),r(70176);var n=r(19883),i=r(44223),s=r(19426);const o={};let a=HTMLElement.prototype;for(;a;){let t=Object.getOwnPropertyNames(a);for(let e=0;e<t.length;e++)o[t[e]]=!0;a=Object.getPrototypeOf(a)}const l=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;const d=(0,n.o)((t=>{const e=(0,s.e)(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor((0,i.z)(t[e]))}static attributeNameForProperty(t){return(0,i.n)(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){const r=this;r.hasAttribute(t)||this._valueToNodeAttribute(r,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(l(t))return t;try{return JSON.stringify(t)}catch(e){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let r;switch(e){case Object:try{r=JSON.parse(t)}catch(n){r=t}break;case Array:try{r=JSON.parse(t)}catch(n){r=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:r=isNaN(t)?String(t):Number(t),r=new Date(r);break;default:r=super._deserializeValue(t,e)}return r}_definePropertyAccessor(t,e){!function(t,e){if(!o[e]){let r=t[e];void 0!==r&&(t.__data?t._setPendingProperty(e,r):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=r))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}}))},34981:function(t,e,r){r.d(e,{q:()=>et});r(52247),r(71695),r(92745),r(84283),r(9359),r(56475),r(31526),r(70104),r(19423),r(69235),r(12385),r(19134),r(5740),r(11740),r(44495),r(97003),r(81804),r(47021),r(70176);var n=r(61284),i=r(19883),s=r(76147),o=r(44223),a=r(93520);r(88044);const l={"dom-if":!0,"dom-repeat":!0};let d=!1,c=!1;function p(t){(function(){if(!d){d=!0;const t=document.createElement("textarea");t.placeholder="a",c=t.placeholder===t.textContent}return c})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const h=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,r,n)=>{const i=r.getAttribute(n);t&&n.startsWith("on-")?e.setAttribute(n,t.createScript(i,n)):e.setAttribute(n,i)}})();function u(t){let e=t.getAttribute("is");if(e&&l[e]){let r=t;for(r.removeAttribute("is"),t=r.ownerDocument.createElement(e),r.parentNode.replaceChild(t,r),t.appendChild(r);r.attributes.length;){const{name:e}=r.attributes[0];h(t,r,e),r.removeAttribute(e)}}return t}function _(t,e){let r=e.parentInfo&&_(t,e.parentInfo);if(!r)return t;for(let n=r.firstChild,i=0;n;n=n.nextSibling)if(e.parentIndex===i++)return n}function f(t,e,r,n){n.id&&(e[n.id]=r)}function m(t,e,r){if(r.events&&r.events.length)for(let n,i=0,s=r.events;i<s.length&&(n=s[i]);i++)t._addMethodEventListenerToNode(e,n.name,n.value,t)}function y(t,e,r,n){r.templateInfo&&(e._templateInfo=r.templateInfo,e._parentTemplateInfo=n)}const P=(0,i.o)((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let r=t._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=Boolean(e),r.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,r,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,r){return this._parseTemplateNode(t.content,e,r)}static _parseTemplateNode(t,e,r){let n=!1,i=t;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(e.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(i,e,r)||n,p(i),i.firstChild&&this._parseTemplateChildNodes(i,e,r),i.hasAttributes&&i.hasAttributes()&&(n=this._parseTemplateNodeAttributes(i,e,r)||n),n||r.noted}static _parseTemplateChildNodes(t,e,r){if("script"!==t.localName&&"style"!==t.localName)for(let n,i=t.firstChild,s=0;i;i=n){if("template"==i.localName&&(i=u(i)),n=i.nextSibling,i.nodeType===Node.TEXT_NODE){let r=n;for(;r&&r.nodeType===Node.TEXT_NODE;)i.textContent+=r.textContent,n=r.nextSibling,t.removeChild(r),r=n;if(e.stripWhiteSpace&&!i.textContent.trim()){t.removeChild(i);continue}}let o={parentIndex:s,parentInfo:r};this._parseTemplateNode(i,e,o)&&(o.infoIndex=e.nodeInfoList.push(o)-1),i.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,r){let n=t,i=this._parseTemplate(n,e);return(i.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=i,!0}static _parseTemplateNodeAttributes(t,e,r){let n=!1,i=Array.from(t.attributes);for(let s,o=i.length-1;s=i[o];o--)n=this._parseTemplateNodeAttribute(t,e,r,s.name,s.value)||n;return n}static _parseTemplateNodeAttribute(t,e,r,n,i){return"on-"===n.slice(0,3)?(t.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:i}),!0):"id"===n&&(r.id=i,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let r=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,n=e.content||t.content,i=document.importNode(n,!0);i.__noInsertionPoint=!e.hasInsertionPoint;let s=i.nodeList=new Array(r.length);i.$={};for(let o,a=0,l=r.length;a<l&&(o=r[a]);a++){let t=s[a]=_(i,o);f(0,i.$,t,o),y(0,t,o,e),m(this,t,o)}return i}_addMethodEventListenerToNode(t,e,r,n){let i=function(t,e,r){return t=t._methodHost||t,function(e){t[r]?t[r](e,e.detail):console.warn("listener method `"+r+"` not defined")}}(n=n||t,0,r);return this._addEventListenerToNode(t,e,i),i}_addEventListenerToNode(t,e,r){t.addEventListener(e,r)}_removeEventListenerFromNode(t,e,r){t.removeEventListener(e,r)}}));var g=r(70617);let w=0;const b=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},T="__computeInfo",S=/[A-Z]/;function v(t,e,r){let n=t[e];if(n){if(!t.hasOwnProperty(e)&&(n=t[e]=Object.create(t[e]),r))for(let i in n){let t=n[i],e=n[i]=Array(t.length);for(let r=0;r<t.length;r++)e[r]=t[r]}}else n=t[e]={};return n}function O(t,e,r,n,i,o){if(e){let a=!1;const l=w++;for(let d in r){let c=e[i?(0,s.Jz)(d):d];if(c)for(let e,s=0,p=c.length;s<p&&(e=c[s]);s++)e.info&&e.info.lastRun===l||i&&!A(d,e.trigger)||(e.info&&(e.info.lastRun=l),e.fn(t,d,r,n,e.info,i,o),a=!0)}return a}return!1}function E(t,e,r,n,i,o,a,l){let d=!1,c=e[a?(0,s.Jz)(n):n];if(c)for(let s,p=0,h=c.length;p<h&&(s=c[p]);p++)s.info&&s.info.lastRun===r||a&&!A(n,s.trigger)||(s.info&&(s.info.lastRun=r),s.fn(t,n,i,o,s.info,a,l),d=!0);return d}function A(t,e){if(e){let r=e.name;return r==t||!(!e.structured||!(0,s.jg)(r,t))||!(!e.wildcard||!(0,s.SG)(r,t))}return!0}function N(t,e,r,n,i){let s="string"==typeof i.method?t[i.method]:i.method,o=i.property;s?s.call(t,t.__data[o],n[o]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function I(t,e,r){let n=(0,s.Jz)(e);if(n!==e){return x(t,(0,o.n)(n)+"-changed",r[e],e),!0}return!1}function x(t,e,r,i){let s={value:r,queueProperty:!0};i&&(s.path=i),(0,n.r)(t).dispatchEvent(new CustomEvent(e,{detail:s}))}function R(t,e,r,n,i,o){let a=(o?(0,s.Jz)(e):e)!=e?e:null,l=a?(0,s.U2)(t,a):t.__data[e];a&&void 0===l&&(l=r[e]),x(t,i.eventName,l,a)}function L(t,e,r,n,i){let s=t.__data[e];g.sanitizeDOMValue&&(s=(0,g.sanitizeDOMValue)(s,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,s)}function z(t,e,r,n){let i=t[C.COMPUTE];if(i)if(g.orderedComputed){w++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const r=t[C.COMPUTE];let n,{counts:i,ready:s,total:o}=function(t){const e=t[T],r={},n=t[C.COMPUTE],i=[];let s=0;for(let o in e){const t=e[o];s+=r[o]=t.args.filter((t=>!t.literal)).length+(t.dynamicFn?1:0)}for(let o in n)e[o]||i.push(o);return{counts:r,ready:i,total:s}}(t);for(;n=s.shift();){e.set(n,e.size);const t=r[n];t&&t.forEach((t=>{const e=t.info.methodInfo;--o,0==--i[e]&&s.push(e)}))}if(0!==o){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),o=[];for(let t in e)M(t,i,o,s,n);let a;for(;a=o.shift();)F(t,"",e,r,a)&&M(a.methodInfo,i,o,s,n);Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;O(t,i,s,r,n);)Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const D=(t,e,r)=>{let n=0,i=e.length-1,s=-1;for(;n<=i;){const o=n+i>>1,a=r.get(e[o].methodInfo)-r.get(t.methodInfo);if(a<0)n=o+1;else{if(!(a>0)){s=o;break}i=o-1}}s<0&&(s=i+1),e.splice(s,0,t)},M=(t,e,r,n,i)=>{const o=e[i?(0,s.Jz)(t):t];if(o)for(let s=0;s<o.length;s++){const e=o[s];e.info.lastRun===w||i&&!A(t,e.trigger)||(e.info.lastRun=w,D(e.info,r,n))}};function F(t,e,r,n,i){let s=Y(t,e,r,n,i);if(s===b)return!1;let o=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[o]?t._setPendingProperty(o,s,!0):(t[o]=s,!1)}function k(t,e,r,n,i,s,a){r.bindings=r.bindings||[];let l={kind:n,target:i,parts:s,literal:a,isCompound:1!==s.length};if(r.bindings.push(l),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(l)){let{event:t,negate:e}=l.parts[0];l.listenerEvent=t||(0,o.n)(i)+"-changed",l.listenerNegate=e}let d=e.nodeInfoList.length;for(let o=0;o<l.parts.length;o++){let r=l.parts[o];r.compoundIndex=o,H(t,e,l,r,d)}}function H(t,e,r,n,i){if(!n.literal)if("attribute"===r.kind&&"-"===r.target[0])console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let s=n.dependencies,o={index:i,binding:r,part:n,evaluator:t};for(let r=0;r<s.length;r++){let n=s[r];"string"==typeof n&&(n=K(n),n.wildcard=!0),t._addTemplatePropertyEffect(e,n.rootProperty,{fn:U,info:o,trigger:n})}}}function U(t,e,r,n,i,o,a){let l=a[i.index],d=i.binding,c=i.part;if(o&&c.source&&e.length>c.source.length&&"property"==d.kind&&!d.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[d.target]){let n=r[e];e=(0,s.Iu)(c.source,d.target,e),l._setPendingPropertyOrPath(e,n,!1,!0)&&t._enqueueClient(l)}else{let s=i.evaluator._evaluateBinding(t,c,e,r,n,o);s!==b&&function(t,e,r,n,i){i=function(t,e,r,n){if(r.isCompound){let i=t.__dataCompoundStorage[r.target];i[n.compoundIndex]=e,e=i.join("")}"attribute"!==r.kind&&("textContent"!==r.target&&("value"!==r.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,i,r,n),g.sanitizeDOMValue&&(i=(0,g.sanitizeDOMValue)(i,r.target,r.kind,e));if("attribute"==r.kind)t._valueToNodeAttribute(e,i,r.target);else{let n=r.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?e[C.READ_ONLY]&&e[C.READ_ONLY][n]||e._setPendingProperty(n,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,n,i)}}(t,l,d,c,s)}}function j(t,e){if(e.isCompound){let r=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,s=new Array(i.length);for(let t=0;t<i.length;t++)s[t]=i[t].literal;let o=e.target;r[o]=s,e.literal&&"property"==e.kind&&("className"===o&&(t=(0,n.r)(t)),t[o]=e.literal)}}function B(t,e,r){if(r.listenerEvent){let n=r.parts[0];t.addEventListener(r.listenerEvent,(function(t){!function(t,e,r,n,i){let o,a=t.detail,l=a&&a.path;l?(n=(0,s.Iu)(r,n,l),o=a&&a.value):o=t.currentTarget[r],o=i?!o:o,e[C.READ_ONLY]&&e[C.READ_ONLY][n]||!e._setPendingPropertyOrPath(n,o,!0,Boolean(l))||a&&a.queueProperty||e._invalidateProperties()}(t,e,r.target,n.source,n.negate)}))}}function J(t,e,r,n,i,s){s=e.static||s&&("object"!=typeof s||s[e.methodName]);let o={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:s};for(let a,l=0;l<e.args.length&&(a=e.args[l]);l++)a.literal||t._addPropertyEffect(a.rootProperty,r,{fn:n,info:o,trigger:a});return s&&t._addPropertyEffect(e.methodName,r,{fn:n,info:o}),o}function Y(t,e,r,n,i){let s=t._methodHost||t,o=s[i.methodName];if(o){let n=t._marshalArgs(i.args,e,r);return n===b?b:o.apply(s,n)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const V=[],$="(?:[a-zA-Z_$][\\w.:$\\-*]*)",q="(?:("+$+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",W=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+$+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+q+"(?:,\\s*"+q+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function G(t){let e="";for(let r=0;r<t.length;r++){e+=t[r].literal||""}return e}function Z(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:V};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let r=K(t);return r.literal||(e.static=!1),r}),this),e}(e[2].replace(/\\,/g,",").split(","),t)}return t}return null}function K(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:e,value:"",literal:!1},n=e[0];switch("-"===n&&(n=e[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':r.value=e.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(e),r.literal=!0}return r.literal||(r.rootProperty=(0,s.Jz)(e),r.structured=(0,s.AZ)(e),r.structured&&(r.wildcard=".*"==e.slice(-2),r.wildcard&&(r.name=e.slice(0,-2)))),r}function X(t,e,r){let n=(0,s.U2)(t,r);return void 0===n&&(n=e[r]),n}function Q(t,e,r,n){const i={indexSplices:n};g.legacyUndefined&&!t._overrideLegacyUndefined&&(e.splices=i),t.notifyPath(r+".splices",i),t.notifyPath(r+".length",e.length),g.legacyUndefined&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function tt(t,e,r,n,i,s){Q(t,e,r,[{index:n,addedCount:i,removed:s,object:e,type:"splice"}])}const et=(0,i.o)((t=>{const e=P((0,a.Q)(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return C}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(rt.length){let t=rt[rt.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[C.READ_ONLY];for(let r in t)e&&e[r]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[r]=this.__dataPending[r]=t[r])}_addPropertyEffect(t,e,r){this._createPropertyAccessor(t,e==C.READ_ONLY);let n=v(this,e,!0)[t];n||(n=this[e][t]=[]),n.push(r)}_removePropertyEffect(t,e,r){let n=v(this,e,!0)[t],i=n.indexOf(r);i>=0&&n.splice(i,1)}_hasPropertyEffect(t,e){let r=this[e];return Boolean(r&&r[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,C.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,C.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,C.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,C.COMPUTE)}_setPendingPropertyOrPath(t,e,r,n){if(n||(0,s.Jz)(Array.isArray(t)?t[0]:t)!==t){if(!n){let r=(0,s.U2)(this,t);if(!(t=(0,s.t8)(this,t,e))||!super._shouldPropertyChange(t,e,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,r))return function(t,e,r){let n=t.__dataLinkedPaths;if(n){let i;for(let o in n){let a=n[o];(0,s.SG)(o,e)?(i=(0,s.Iu)(o,a,e),t._setPendingPropertyOrPath(i,r,!0,!0)):(0,s.SG)(a,e)&&(i=(0,s.Iu)(a,o,e),t._setPendingPropertyOrPath(i,r,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,r);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,r){r===t[e]&&"object"!=typeof r||("className"===e&&(t=(0,n.r)(t)),t[e]=r)}_setPendingProperty(t,e,r){let n=this.__dataHasPaths&&(0,s.AZ)(t),i=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,i[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),n?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(n||this[C.NOTIFY]&&this[C.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=r),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let r=t[e];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let r in t)!e&&this[C.READ_ONLY]&&this[C.READ_ONLY][r]||this._setPendingPropertyOrPath(r,t[r],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,r){let n,i=this.__dataHasPaths;this.__dataHasPaths=!1,z(this,e,r,i),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,r,i),this._flushClients(),O(this,this[C.REFLECT],e,r,i),O(this,this[C.OBSERVE],e,r,i),n&&function(t,e,r,n,i){let s,o,a=t[C.NOTIFY],l=w++;for(let d in e)e[d]&&(a&&E(t,a,l,d,r,n,i)||i&&I(t,d,r))&&(s=!0);s&&(o=t.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}(this,n,e,r,i),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,r){this[C.PROPAGATE]&&O(this,this[C.PROPAGATE],t,e,r),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,r)}_runEffectsForTemplate(t,e,r,n){const i=(e,n)=>{O(this,t.propertyEffects,e,r,n,t.nodeList);for(let i=t.firstChild;i;i=i.nextSibling)this._runEffectsForTemplate(i,e,r,n)};t.runEffects?t.runEffects(i,e,n):i(e,n)}linkPaths(t,e){t=(0,s.Fv)(t),e=(0,s.Fv)(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=(0,s.Fv)(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let r={path:""};Q(this,(0,s.U2)(this,t,r),r.path,e)}get(t,e){return(0,s.U2)(e||this,t)}set(t,e,r){r?(0,s.t8)(r,t,e):this[C.READ_ONLY]&&this[C.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let r={path:""},n=(0,s.U2)(this,t,r),i=n.length,o=n.push(...e);return e.length&&tt(this,n,r.path,i,e.length,[]),o}pop(t){let e={path:""},r=(0,s.U2)(this,t,e),n=Boolean(r.length),i=r.pop();return n&&tt(this,r,e.path,r.length,0,[i]),i}splice(t,e,r,...n){let i,o={path:""},a=(0,s.U2)(this,t,o);return e<0?e=a.length-Math.floor(-e):e&&(e=Math.floor(e)),i=2===arguments.length?a.splice(e):a.splice(e,r,...n),(n.length||i.length)&&tt(this,a,o.path,e,n.length,i),i}shift(t){let e={path:""},r=(0,s.U2)(this,t,e),n=Boolean(r.length),i=r.shift();return n&&tt(this,r,e.path,0,0,[i]),i}unshift(t,...e){let r={path:""},n=(0,s.U2)(this,t,r),i=n.unshift(...e);return e.length&&tt(this,n,r.path,0,e.length,[]),i}notifyPath(t,e){let r;if(1==arguments.length){let n={path:""};e=(0,s.U2)(this,t,n),r=n.path}else r=Array.isArray(t)?(0,s.Fv)(t):t;this._setPendingPropertyOrPath(r,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var r;this._addPropertyEffect(t,C.READ_ONLY),e&&(this["_set"+(r=t,r[0].toUpperCase()+r.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,r){let n={property:t,method:e,dynamicFn:Boolean(r)};this._addPropertyEffect(t,C.OBSERVE,{fn:N,info:n,trigger:{name:t}}),r&&this._addPropertyEffect(e,C.OBSERVE,{fn:N,info:n,trigger:{name:e}})}_createMethodObserver(t,e){let r=Z(t);if(!r)throw new Error("Malformed observer expression '"+t+"'");J(this,r,C.OBSERVE,Y,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,C.NOTIFY,{fn:R,info:{eventName:(0,o.n)(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,C.REFLECT,{fn:L,info:{attrName:e}})}_createComputedProperty(t,e,r){let n=Z(e);if(!n)throw new Error("Malformed computed expression '"+e+"'");const i=J(this,n,C.COMPUTE,F,t,r);v(this,T)[t]=i}_marshalArgs(t,e,r){const n=this.__data,i=[];for(let o=0,a=t.length;o<a;o++){let{name:a,structured:l,wildcard:d,value:c,literal:p}=t[o];if(!p)if(d){const t=(0,s.SG)(a,e),i=X(n,r,t?e:a);c={path:t?e:a,value:i,base:t?(0,s.U2)(n,a):i}}else c=l?X(n,r,a):n[a];if(g.legacyUndefined&&!this._overrideLegacyUndefined&&void 0===c&&t.length>1)return b;i[o]=c}return i}static addPropertyEffect(t,e,r){this.prototype._addPropertyEffect(t,e,r)}static createPropertyObserver(t,e,r){this.prototype._createPropertyObserver(t,e,r)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,r){this.prototype._createComputedProperty(t,e,r)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let r=this.constructor._parseTemplate(t),n=this.__preBoundTemplateInfo==r;if(!n)for(let i in r.propertyEffects)this._createPropertyAccessor(i);if(e)if(r=Object.create(r),r.wasPreBound=n,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,n=e.lastChild;r.parent=e,e.lastChild=r,r.previousSibling=n,n?n.nextSibling=r:e.firstChild=r}else this.__templateInfo=r;else this.__preBoundTemplateInfo=r;return r}static _addTemplatePropertyEffect(t,e,r){(t.hostProps=t.hostProps||{})[e]=!0;let n=t.propertyEffects=t.propertyEffects||{};(n[e]=n[e]||[]).push(r)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),rt.push(this);let r=super._stampTemplate(t,e);if(rt.pop(),e.nodeList=r.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=r.firstChild;e;e=e.nextSibling)t.push(e)}return r.templateInfo=e,function(t,e){let{nodeList:r,nodeInfoList:n}=e;if(n.length)for(let i=0;i<n.length;i++){let e=n[i],s=r[i],o=e.bindings;if(o)for(let r=0;r<o.length;r++){let e=o[r];j(s,e),B(s,t,e)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),r}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:r,nextSibling:i,parent:s}=e;r?r.nextSibling=i:s&&(s.firstChild=i),i?i.previousSibling=r:s&&(s.lastChild=r),e.nextSibling=e.previousSibling=null;let o=e.childNodes;for(let a=0;a<o.length;a++){let t=o[a];(0,n.r)((0,n.r)(t).parentNode).removeChild(t)}}static _parseTemplateNode(t,r,n){let i=e._parseTemplateNode.call(this,t,r,n);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,r);e&&(t.textContent=G(e)||" ",k(this,r,n,"text","textContent",e),i=!0)}return i}static _parseTemplateNodeAttribute(t,r,n,i,s){let a=this._parseBindings(s,r);if(a){let e=i,s="property";S.test(i)?s="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),s="attribute");let l=G(a);return l&&"attribute"==s&&("class"==i&&t.hasAttribute("class")&&(l+=" "+t.getAttribute(i)),t.setAttribute(i,l)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(i,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(i=(0,o.z)(i)),k(this,r,n,s,i,a,l),!0}return e._parseTemplateNodeAttribute.call(this,t,r,n,i,s)}static _parseTemplateNestedTemplate(t,r,n){let i=e._parseTemplateNestedTemplate.call(this,t,r,n);const s=t.parentNode,o=n.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;g.removeNestedTemplates&&(a||l)&&(s.removeChild(t),(n=n.parentInfo).templateInfo=o,n.noted=!0,i=!1);let d=o.hostProps;if(g.fastDomIf&&a)d&&(r.hostProps=Object.assign(r.hostProps||{},d),g.removeNestedTemplates||(n.parentInfo.noted=!0));else{let t="{";for(let e in d){k(this,r,n,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return i}static _parseBindings(t,e){let r,n=[],i=0;for(;null!==(r=W.exec(t));){r.index>i&&n.push({literal:t.slice(i,r.index)});let s=r[1][0],o=Boolean(r[2]),a=r[3].trim(),l=!1,d="",c=-1;"{"==s&&(c=a.indexOf("::"))>0&&(d=a.substring(c+2),a=a.substring(0,c),l=!0);let p=Z(a),h=[];if(p){let{args:t,methodName:r}=p;for(let e=0;e<t.length;e++){let r=t[e];r.literal||h.push(r)}let n=e.dynamicFns;(n&&n[r]||p.static)&&(h.push(r),p.dynamicFn=!0)}else h.push(a);n.push({source:a,mode:s,negate:o,customEvent:l,signature:p,dependencies:h,event:d}),i=W.lastIndex}if(i&&i<t.length){let e=t.substring(i);e&&n.push({literal:e})}return n.length?n:null}static _evaluateBinding(t,e,r,n,i,o){let a;return a=e.signature?Y(t,r,n,0,e.signature):r!=e.source?(0,s.U2)(t,e.source):o&&(0,s.AZ)(r)?(0,s.U2)(t,r):t.__data[r],e.negate&&(a=!a),a}}})),rt=[]},49136:function(t,e,r){r.d(e,{Wc:()=>d,YA:()=>c});r(52247),r(92745),r(70176);let n=0,i=0,s=[],o=0,a=!1,l=document.createTextNode("");new window.MutationObserver((function(){a=!1;const t=s.length;for(let r=0;r<t;r++){let t=s[r];if(t)try{t()}catch(e){setTimeout((()=>{throw e}))}}s.splice(0,t),i+=t})).observe(l,{characterData:!0});const d=66977!=r.j?{after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}:null,c={run(t){return a||(a=!0,l.textContent=o++),s.push(t),n++},cancel(t){const e=t-i;if(e>=0){if(!s[e])throw new Error("invalid async handle: "+t);s[e]=null}}}},70176:function(){window.JSCompiler_renameProperty=function(t,e){return t}},44223:function(t,e,r){r.d(e,{n:()=>a,z:()=>o});r(19134),r(97003),r(70176);const n={},i=/-[a-z]/g,s=/([A-Z])/g;function o(t){return n[t]||(n[t]=t.indexOf("-")<0?t:t.replace(i,(t=>t[1].toUpperCase())))}function a(t){return n[t]||(n[t]=t.replace(s,"-$1").toLowerCase())}},77218:function(t,e,r){r.d(e,{d:()=>o});r(52247),r(52805),r(9359),r(48136),r(11740),r(70176);const n=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class i{constructor(t,e){a(t,e);const r=e.reduce(((e,r,n)=>e+s(r)+t[n+1]),t[0]);this.value=r.toString()}toString(){return this.value}}function s(t){if(t instanceof i)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const o=function(t,...e){a(t,e);const r=document.createElement("template");let o=e.reduce(((e,r,n)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof i)return s(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(r)+t[n+1]),t[0]);return n&&(o=n.createHTML(o)),r.innerHTML=o,r},a=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")}},19883:function(t,e,r){r.d(e,{o:()=>s});r(71695),r(46692),r(47021),r(70176);let n=0;function i(){}i.prototype.__mixinApplications,i.prototype.__mixinSet;const s=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let r=n++;function i(n){let i=n.__mixinSet;if(i&&i[r])return n;let s=e,o=s.get(n);if(!o){o=t(n),s.set(n,o);let e=Object.create(o.__mixinSet||i||null);e[r]=!0,o.__mixinSet=e}return o}return i}},76147:function(t,e,r){r.d(e,{AZ:()=>n,Fv:()=>d,Iu:()=>a,Jz:()=>i,SG:()=>o,U2:()=>p,jg:()=>s,t8:()=>h,wB:()=>l});r(92745),r(11740),r(70176);function n(t){return t.indexOf(".")>=0}function i(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function s(t,e){return 0===t.indexOf(e+".")}function o(t,e){return 0===e.indexOf(t+".")}function a(t,e,r){return e+r.slice(t.length)}function l(t,e){return t===e||s(t,e)||o(t,e)}function d(t){if(Array.isArray(t)){let e=[];for(let r=0;r<t.length;r++){let n=t[r].toString().split(".");for(let t=0;t<n.length;t++)e.push(n[t])}return e.join(".")}return t}function c(t){return Array.isArray(t)?d(t).split("."):t.toString().split(".")}function p(t,e,r){let n=t,i=c(e);for(let s=0;s<i.length;s++){if(!n)return;n=n[i[s]]}return r&&(r.path=i.join(".")),n}function h(t,e,r){let n=t,i=c(e),s=i[i.length-1];if(i.length>1){for(let t=0;t<i.length-1;t++){if(n=n[i[t]],!n)return}n[s]=r}else n[e]=r;return i.join(".")}},85695:function(t,e,r){r.d(e,{T8:()=>d});r(92745),r(70176);let n=!1,i=[],s=[];function o(){n=!0,requestAnimationFrame((function(){n=!1,a(i),setTimeout((function(){!function(t){for(let e=0,r=t.length;e<r;e++)l(t.shift())}(s)}))}))}function a(t){for(;t.length;)l(t.shift())}function l(t){const e=t[0],r=t[1],n=t[2];try{r.apply(e,n)}catch(i){setTimeout((()=>{throw i}))}}function d(t,e,r){n||o(),s.push([t,e,r])}},97333:function(t,e,r){r.d(e,{Kk:()=>a,Rq:()=>l,iY:()=>d});r(71695),r(19134),r(5740),r(97003),r(47021),r(72700),r(8038),r(71513),r(75656),r(50100),r(18084),r(70176);let n,i,s=/(url\()([^)]*)(\))/g,o=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function a(t,e){if(t&&o.test(t))return t;if("//"===t)return t;if(void 0===n){n=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",n="http://a/c%20d"===t.href}catch(r){}}if(e||(e=document.baseURI||window.location.href),n)try{return new URL(t,e).href}catch(r){return t}return i||(i=document.implementation.createHTMLDocument("temp"),i.base=i.createElement("base"),i.head.appendChild(i.base),i.anchor=i.createElement("a"),i.body.appendChild(i.anchor)),i.base.href=e,i.anchor.href=t,i.anchor.href||t}function l(t,e){return t.replace(s,(function(t,r,n,i){return r+"'"+a(n.replace(/["']/g,""),e)+"'"+i}))}function d(t){return t.substring(0,t.lastIndexOf("/")+1)}},70617:function(t,e,r){r.r(e),r.d(e,{allowTemplateFromDomModule:()=>y,cancelSyntheticClickEvents:()=>N,fastDomIf:()=>L,getSanitizeDOMValue:()=>h,legacyNoObservedAttributes:()=>F,legacyOptimizations:()=>g,legacyUndefined:()=>v,legacyWarnings:()=>b,orderedComputed:()=>E,passiveTouchGestures:()=>u,removeNestedTemplates:()=>x,rootPath:()=>l,sanitizeDOMValue:()=>c,setAllowTemplateFromDomModule:()=>P,setCancelSyntheticClickEvents:()=>I,setFastDomIf:()=>z,setLegacyNoObservedAttributes:()=>k,setLegacyOptimizations:()=>w,setLegacyUndefined:()=>O,setLegacyWarnings:()=>C,setOrderedComputed:()=>A,setPassiveTouchGestures:()=>_,setRemoveNestedTemplates:()=>R,setRootPath:()=>d,setSanitizeDOMValue:()=>p,setStrictTemplatePolicy:()=>m,setSuppressTemplateNotifications:()=>M,setSyncInitialRender:()=>S,setUseAdoptedStyleSheetsWithBuiltCSS:()=>U,strictTemplatePolicy:()=>f,supportsAdoptingStyleSheets:()=>a,suppressTemplateNotifications:()=>D,syncInitialRender:()=>T,useAdoptedStyleSheetsWithBuiltCSS:()=>H,useNativeCSSProperties:()=>s,useNativeCustomElements:()=>o,useShadow:()=>i});r(70176);var n=r(97333);const i=!window.ShadyDOM||!window.ShadyDOM.inUse,s=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),o=!window.customElements.polyfillWrapFlushCallback,a=i&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let l=window.Polymer&&window.Polymer.rootPath||(0,n.iY)(document.baseURI||window.location.href);const d=function(t){l=t};let c=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;const p=function(t){c=t},h=function(){return c};let u=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;const _=function(t){u=t};let f=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;const m=function(t){f=t};let y=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;const P=function(t){y=t};let g=window.Polymer&&window.Polymer.legacyOptimizations||!1;const w=function(t){g=t};let b=window.Polymer&&window.Polymer.legacyWarnings||!1;const C=function(t){b=t};let T=window.Polymer&&window.Polymer.syncInitialRender||!1;const S=function(t){T=t};let v=window.Polymer&&window.Polymer.legacyUndefined||!1;const O=function(t){v=t};let E=window.Polymer&&window.Polymer.orderedComputed||!1;const A=function(t){E=t};let N=!0;const I=function(t){N=t};let x=window.Polymer&&window.Polymer.removeNestedTemplates||!1;const R=function(t){x=t};let L=window.Polymer&&window.Polymer.fastDomIf||!1;const z=function(t){L=t};let D=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;const M=function(t){D=t};let F=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1;const k=function(t){F=t};let H=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;const U=function(t){H=t}},46068:function(t,e,r){r.d(e,{jv:()=>f,lx:()=>u,uT:()=>h});r(71695),r(92745),r(9359),r(56475),r(19134),r(32114),r(81804),r(47021);var n=r(87255),i=r(97333);const s="link[rel=import][type~=css]",o="include",a="shady-unscoped";function l(t){return n.t.import(t)}function d(t){let e=t.body?t.body:t;const r=(0,i.Rq)(e.textContent,t.baseURI),n=document.createElement("style");return n.textContent=r,n}function c(t){const e=t.trim().split(/\s+/),r=[];for(let n=0;n<e.length;n++)r.push(...p(e[n]));return r}function p(t){const e=l(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(..._(e));const r=e.querySelector("template");r&&t.push(...h(r,e.assetpath)),e._styles=t}return e._styles}function h(t,e){if(!t._styles){const r=[],n=t.content.querySelectorAll("style");for(let t=0;t<n.length;t++){let s=n[t],a=s.getAttribute(o);a&&r.push(...c(a).filter((function(t,e,r){return r.indexOf(t)===e}))),e&&(s.textContent=(0,i.Rq)(s.textContent,e)),r.push(s)}t._styles=r}return t._styles}function u(t){let e=l(t);return e?_(e):[]}function _(t){const e=[],r=t.querySelectorAll(s);for(let n=0;n<r.length;n++){let t=r[n];if(t.import){const r=t.import,n=t.hasAttribute(a);if(n&&!r._unscopedStyle){const t=d(r);t.setAttribute(a,""),r._unscopedStyle=t}else r._style||(r._style=d(r));e.push(n?r._unscopedStyle:r._style)}}return e}function f(t){let e=t.trim().split(/\s+/),r="";for(let n=0;n<e.length;n++)r+=m(e[n]);return r}function m(t){let e=l(t);if(e&&void 0===e._cssText){let t=y(e),r=e.querySelector("template");r&&(t+=function(t,e){let r="";const n=h(t,e);for(let i=0;i<n.length;i++){let t=n[i];t.parentNode&&t.parentNode.removeChild(t),r+=t.textContent}return r}(r,e.assetpath)),e._cssText=t||null}return e||console.warn("Could not find style data in module named",t),e&&e._cssText||""}function y(t){let e="",r=_(t);for(let n=0;n<r.length;n++)e+=r[n].textContent;return e}},27425:function(t,e,r){r.d(e,{Gd:()=>n,z2:()=>s});r(92745);function n(){0}const i=[];function s(t){i.push(t)}},61284:function(t,e,r){r.d(e,{r:()=>n});const n=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t},93588:function(t,e,r){r.d(e,{H3:()=>s,dy:()=>i.d});var n=r(47632),i=r(77218);const s=(0,n.SH)(HTMLElement)}}]);
//# sourceMappingURL=24199.ca965f37d83b867e.js.map