UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

3 lines 48.2 kB
/*! For license information please see 24199.8ae0bd2fda3acb2e.js.LICENSE.txt */ export const __webpack_ids__=["24199"];export const __webpack_modules__={87255:function(t,e,r){r.d(e,{t:()=>d});r(70176);var n=r(97333),i=r(70617);let o={},s={};function a(t,e){o[t]=s[t.toLowerCase()]=e}function l(t){return o[t]||s[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=o,customElements.define("dom-module",d)},47632:function(t,e,r){r.d(e,{PP:()=>_,SH:()=>u});r(9359),r(31526),r(70176);var n=r(70617),i=r(19883),o=r(46068),s=r(97333),a=r(87255),l=r(34981),d=(r(70104),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 _=window.ShadyCSS&&window.ShadyCSS.cssBuild,u=(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 o in t)e=this.prototype,r=o,n=t[o],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,s.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,s.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(!_){const n=e.content.querySelectorAll("style"),s=(0,o.uT)(e),a=(0,o.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<s.length;e++){let r=s[e],o=n[d];o!==r?(r=r.cloneNode(!0),o.parentNode.insertBefore(r,o)):d++,r.textContent=t._processStyleText(r.textContent,i)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,r),n.useAdoptedStyleSheetsWithBuiltCSS&&_&&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,s.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,s.Kk)(this.importPath)),(0,s.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(70176);var n=r(19883),i=r(49136),o=r(61284);const s=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,s.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,o.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(88972),r(70176);var n=r(19883),i=r(44223),o=r(19426);const s={};let a=HTMLElement.prototype;for(;a;){let t=Object.getOwnPropertyNames(a);for(let e=0;e<t.length;e++)s[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,o.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(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let r;switch(e){case Object:try{r=JSON.parse(t)}catch(e){r=t}break;case Array:try{r=JSON.parse(t)}catch(e){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(!s[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(92745),r(84283),r(9359),r(56475),r(31526),r(70104),r(70176);var n=r(61284),i=r(19883),o=r(76147),s=r(44223),a=r(93520);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 _(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 u(t,e){let r=e.parentInfo&&u(t,e.parentInfo);if(!r)return t;for(let t=r.firstChild,n=0;t;t=t.nextSibling)if(e.parentIndex===n++)return t}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,o=r.events;i<o.length&&(n=o[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,o=0;i;i=n){if("template"==i.localName&&(i=_(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 s={parentIndex:o,parentInfo:r};this._parseTemplateNode(i,e,s)&&(s.infoIndex=e.nodeInfoList.push(s)-1),i.parentNode&&o++}}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 o,s=i.length-1;o=i[s];s--)n=this._parseTemplateNodeAttribute(t,e,r,o.name,o.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 o=i.nodeList=new Array(r.length);i.$={};for(let t,n=0,s=r.length;n<s&&(t=r[n]);n++){let r=o[n]=u(i,t);f(0,i.$,r,t),y(0,r,t,e),m(this,r,t)}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 t in n){let e=n[t],r=n[t]=Array(e.length);for(let t=0;t<e.length;t++)r[t]=e[t]}}else n=t[e]={};return n}function O(t,e,r,n,i,s){if(e){let a=!1;const l=w++;for(let d in r){let c=e[i?(0,o.Jz)(d):d];if(c)for(let e,o=0,p=c.length;o<p&&(e=c[o]);o++)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,s),a=!0)}return a}return!1}function E(t,e,r,n,i,s,a,l){let d=!1,c=e[a?(0,o.Jz)(n):n];if(c)for(let e,o=0,p=c.length;o<p&&(e=c[o]);o++)e.info&&e.info.lastRun===r||a&&!A(n,e.trigger)||(e.info&&(e.info.lastRun=r),e.fn(t,n,i,s,e.info,a,l),d=!0);return d}function A(t,e){if(e){let r=e.name;return r==t||!(!e.structured||!(0,o.jg)(r,t))||!(!e.wildcard||!(0,o.SG)(r,t))}return!0}function N(t,e,r,n,i){let o="string"==typeof i.method?t[i.method]:i.method,s=i.property;o?o.call(t,t.__data[s],n[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function I(t,e,r){let n=(0,o.Jz)(e);if(n!==e){return x(t,(0,s.n)(n)+"-changed",r[e],e),!0}return!1}function x(t,e,r,i){let o={value:r,queueProperty:!0};i&&(o.path=i),(0,n.r)(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function R(t,e,r,n,i,s){let a=(s?(0,o.Jz)(e):e)!=e?e:null,l=a?(0,o.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 o=t.__data[e];g.sanitizeDOMValue&&(o=(0,g.sanitizeDOMValue)(o,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,o)}function z(t,e,r,n){let i=t[C.COMPUTE];if(i)if(g.orderedComputed){w++;const o=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const r=t[C.COMPUTE];let n,{counts:i,ready:o,total:s}=function(t){const e=t[T],r={},n=t[C.COMPUTE],i=[];let o=0;for(let t in e){const n=e[t];o+=r[t]=n.args.filter((t=>!t.literal)).length+(n.dynamicFn?1:0)}for(let t in n)e[t]||i.push(t);return{counts:r,ready:i,total:o}}(t);for(;n=o.shift();){e.set(n,e.size);const t=r[n];t&&t.forEach((t=>{const e=t.info.methodInfo;--s,0==--i[e]&&o.push(e)}))}if(0!==s){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),s=[];for(let t in e)M(t,i,s,o,n);let a;for(;a=s.shift();)F(t,"",e,r,a)&&M(a.methodInfo,i,s,o,n);Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let o=e;for(;O(t,i,o,r,n);)Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const D=(t,e,r)=>{let n=0,i=e.length-1,o=-1;for(;n<=i;){const s=n+i>>1,a=r.get(e[s].methodInfo)-r.get(t.methodInfo);if(a<0)n=s+1;else{if(!(a>0)){o=s;break}i=s-1}}o<0&&(o=i+1),e.splice(o,0,t)},M=(t,e,r,n,i)=>{const s=e[i?(0,o.Jz)(t):t];if(s)for(let e=0;e<s.length;e++){const o=s[e];o.info.lastRun===w||i&&!A(t,o.trigger)||(o.info.lastRun=w,D(o.info,r,n))}};function F(t,e,r,n,i){let o=Y(t,e,r,n,i);if(o===b)return!1;let s=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,o,!0):(t[s]=o,!1)}function k(t,e,r,n,i,o,a){r.bindings=r.bindings||[];let l={kind:n,target:i,parts:o,literal:a,isCompound:1!==o.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,s.n)(i)+"-changed",l.listenerNegate=e}let d=e.nodeInfoList.length;for(let r=0;r<l.parts.length;r++){let n=l.parts[r];n.compoundIndex=r,H(t,e,l,n,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 o=n.dependencies,s={index:i,binding:r,part:n,evaluator:t};for(let r=0;r<o.length;r++){let n=o[r];"string"==typeof n&&(n=K(n),n.wildcard=!0),t._addTemplatePropertyEffect(e,n.rootProperty,{fn:U,info:s,trigger:n})}}}function U(t,e,r,n,i,s,a){let l=a[i.index],d=i.binding,c=i.part;if(s&&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,o.Iu)(c.source,d.target,e),l._setPendingPropertyOrPath(e,n,!1,!0)&&t._enqueueClient(l)}else{let o=i.evaluator._evaluateBinding(t,c,e,r,n,s);o!==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,o)}}function j(t,e){if(e.isCompound){let r=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let t=0;t<i.length;t++)o[t]=i[t].literal;let s=e.target;r[s]=o,e.literal&&"property"==e.kind&&("className"===s&&(t=(0,n.r)(t)),t[s]=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 s,a=t.detail,l=a&&a.path;l?(n=(0,o.Iu)(r,n,l),s=a&&a.value):s=t.currentTarget[r],s=i?!s:s,e[C.READ_ONLY]&&e[C.READ_ONLY][n]||!e._setPendingPropertyOrPath(n,s,!0,Boolean(l))||a&&a.queueProperty||e._invalidateProperties()}(t,e,r.target,n.source,n.negate)}))}}function J(t,e,r,n,i,o){o=e.static||o&&("object"!=typeof o||o[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o};for(let i,o=0;o<e.args.length&&(i=e.args[o]);o++)i.literal||t._addPropertyEffect(i.rootProperty,r,{fn:n,info:s,trigger:i});return o&&t._addPropertyEffect(e.methodName,r,{fn:n,info:s}),s}function Y(t,e,r,n,i){let o=t._methodHost||t,s=o[i.methodName];if(s){let n=t._marshalArgs(i.args,e,r);return n===b?b:s.apply(o,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,"&comma;").split(","),t)}return t}return null}function K(t){let e=t.trim().replace(/&comma;/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,o.Jz)(e),r.structured=(0,o.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,o.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,o){Q(t,e,r,[{index:n,addedCount:i,removed:o,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,o.Jz)(Array.isArray(t)?t[0]:t)!==t){if(!n){let r=(0,o.U2)(this,t);if(!(t=(0,o.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 s in n){let a=n[s];(0,o.SG)(s,e)?(i=(0,o.Iu)(s,a,e),t._setPendingPropertyOrPath(i,r,!0,!0)):(0,o.SG)(a,e)&&(i=(0,o.Iu)(a,s,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,o.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 o,s,a=t[C.NOTIFY],l=w++;for(let s in e)e[s]&&(a&&E(t,a,l,s,r,n,i)||i&&I(t,s,r))&&(o=!0);o&&(s=t.__dataHost)&&s._invalidateProperties&&s._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,o.Fv)(t),e=(0,o.Fv)(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=(0,o.Fv)(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let r={path:""};Q(this,(0,o.U2)(this,t,r),r.path,e)}get(t,e){return(0,o.U2)(e||this,t)}set(t,e,r){r?(0,o.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,o.U2)(this,t,r),i=n.length,s=n.push(...e);return e.length&&tt(this,n,r.path,i,e.length,[]),s}pop(t){let e={path:""},r=(0,o.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,s={path:""},a=(0,o.U2)(this,t,s);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,s.path,e,n.length,i),i}shift(t){let e={path:""},r=(0,o.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,o.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,o.U2)(this,t,n),r=n.path}else r=Array.isArray(t)?(0,o.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,s.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 s=0,a=t.length;s<a;s++){let{name:a,structured:l,wildcard:d,value:c,literal:p}=t[s];if(!p)if(d){const t=(0,o.SG)(a,e),i=X(n,r,t?e:a);c={path:t?e:a,value:i,base:t?(0,o.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[s]=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 t in r.propertyEffects)this._createPropertyAccessor(t);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 e=0;e<n.length;e++){let i=n[e],o=r[e],s=i.bindings;if(s)for(let e=0;e<s.length;e++){let r=s[e];j(o,r),B(o,t,r)}o.__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:o}=e;r?r.nextSibling=i:o&&(o.firstChild=i),i?i.previousSibling=r:o&&(o.lastChild=r),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];(0,n.r)((0,n.r)(e).parentNode).removeChild(e)}}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,o){let a=this._parseBindings(o,r);if(a){let e=i,o="property";S.test(i)?o="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),o="attribute");let l=G(a);return l&&"attribute"==o&&("class"==i&&t.hasAttribute("class")&&(l+=" "+t.getAttribute(i)),t.setAttribute(i,l)),"attribute"==o&&"disable-upgrade$"==e&&t.setAttribute(i,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===o&&(i=(0,s.z)(i)),k(this,r,n,o,i,a,l),!0}return e._parseTemplateNodeAttribute.call(this,t,r,n,i,o)}static _parseTemplateNestedTemplate(t,r,n){let i=e._parseTemplateNestedTemplate.call(this,t,r,n);const o=t.parentNode,s=n.templateInfo,a="dom-if"===o.localName,l="dom-repeat"===o.localName;g.removeNestedTemplates&&(a||l)&&(o.removeChild(t),(n=n.parentInfo).templateInfo=s,n.noted=!0,i=!1);let d=s.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 o=r[1][0],s=Boolean(r[2]),a=r[3].trim(),l=!1,d="",c=-1;"{"==o&&(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:o,negate:s,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,s){let a;return a=e.signature?Y(t,r,n,0,e.signature):r!=e.source?(0,o.U2)(t,e.source):s&&(0,o.AZ)(r)?(0,o.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(92745),r(70176);let n=0,i=0,o=[],s=0,a=!1,l=document.createTextNode("");new window.MutationObserver((function(){a=!1;const t=o.length;for(let e=0;e<t;e++){let t=o[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}o.splice(0,t),i+=t})).observe(l,{characterData:!0});const d=66977!=r.j?{after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}}:null,c={run:t=>(a||(a=!0,l.textContent=s++),o.push(t),n++),cancel(t){const e=t-i;if(e>=0){if(!o[e])throw new Error("invalid async handle: "+t);o[e]=null}}}},70176:function(){window.JSCompiler_renameProperty=function(t,e){return t}},44223:function(t,e,r){r.d(e,{n:()=>a,z:()=>s});r(70176);const n={},i=/-[a-z]/g,o=/([A-Z])/g;function s(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(o,"-$1").toLowerCase())}},77218:function(t,e,r){r.d(e,{d:()=>s});r(9359),r(48136),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+o(r)+t[n+1]),t[0]);this.value=r.toString()}toString(){return this.value}}function o(t){if(t instanceof i)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const s=function(t,...e){a(t,e);const r=document.createElement("template");let s=e.reduce(((e,r,n)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof i)return o(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(r)+t[n+1]),t[0]);return n&&(s=n.createHTML(s)),r.innerHTML=s,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:()=>o});r(70176);let n=0;function i(){}i.prototype.__mixinApplications,i.prototype.__mixinSet;const o=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let r=n++;return function(n){let i=n.__mixinSet;if(i&&i[r])return n;let o=e,s=o.get(n);if(!s){s=t(n),o.set(n,s);let e=Object.create(s.__mixinSet||i||null);e[r]=!0,s.__mixinSet=e}return s}}},76147:function(t,e,r){r.d(e,{AZ:()=>n,Fv:()=>d,Iu:()=>a,Jz:()=>i,SG:()=>s,U2:()=>p,jg:()=>o,t8:()=>h,wB:()=>l});r(92745),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 o(t,e){return 0===t.indexOf(e+".")}function s(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||o(t,e)||s(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 t=0;t<i.length;t++){if(!n)return;n=n[i[t]]}return r&&(r.path=i.join(".")),n}function h(t,e,r){let n=t,i=c(e),o=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[o]=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=[],o=[];function s(){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())}(o)}))}))}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(t){setTimeout((()=>{throw t}))}}function d(t,e,r){n||s(),o.push([t,e,r])}},97333:function(t,e,r){r.d(e,{Kk:()=>a,Rq:()=>l,iY:()=>d});r(75656),r(50100),r(18084),r(70176);let n,i,o=/(url\()([^)]*)(\))/g,s=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function a(t,e){if(t&&s.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(t){}}if(e||(e=document.baseURI||window.location.href),n)try{return new URL(t,e).href}catch(e){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(o,(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:()=>_,removeNestedTemplates:()=>x,rootPath:()=>l,sanitizeDOMValue:()=>c,setAllowTemplateFromDomModule:()=>P,setCancelSyntheticClickEvents:()=>I,setFastDomIf:()=>z,setLegacyNoObservedAttributes:()=>k,setLegacyOptimizations:()=>w,setLegacyUndefined:()=>O,setLegacyWarnings:()=>C,setOrderedComputed:()=>A,setPassiveTouchGestures:()=>u,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:()=>o,useNativeCustomElements:()=>s,useShadow:()=>i});r(70176);var n=r(97333);const i=!window.ShadyDOM||!window.ShadyDOM.inUse,o=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),s=!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 _=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;const u=function(t){_=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:()=>_,uT:()=>h});r(92745),r(9359),r(56475);var n=r(87255),i=r(97333);const o="link[rel=import][type~=css]",s="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 t=0;t<e.length;t++)r.push(...p(e[t]));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(...u(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 o=n[t],a=o.getAttribute(s);a&&r.push(...c(a).filter((function(t,e,r){return r.indexOf(t)===e}))),e&&(o.textContent=(0,i.Rq)(o.textContent,e)),r.push(o)}t._styles=r}return t._styles}function _(t){let e=l(t);return e?u(e):[]}function u(t){const e=[],r=t.querySelectorAll(o);for(let t=0;t<r.length;t++){let n=r[t];if(n.import){const t=n.import,r=n.hasAttribute(a);if(r&&!t._unscopedStyle){const e=d(t);e.setAttribute(a,""),t._unscopedStyle=e}else t._style||(t._style=d(t));e.push(r?t._unscopedStyle:t._style)}}return e}function f(t){let e=t.trim().split(/\s+/),r="";for(let t=0;t<e.length;t++)r+=m(e[t]);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 t=0;t<n.length;t++){let e=n[t];e.parentNode&&e.parentNode.removeChild(e),r+=e.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=u(t);for(let t=0;t<r.length;t++)e+=r[t].textContent;return e}},27425:function(t,e,r){r.d(e,{Gd:()=>n,z2:()=>o});r(92745);function n(){0}const i=[];function o(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:()=>o,dy:()=>i.d});var n=r(47632),i=r(77218);const o=(0,n.SH)(HTMLElement)}}; //# sourceMappingURL=24199.8ae0bd2fda3acb2e.js.map