@teipublisher/pb-components 2.26.0-next-3.12 → 2.26.0-next-3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +3 -3
- package/.github/workflows/node.js.yml +3 -3
- package/.github/workflows/release.js.yml +3 -3
- package/CHANGELOG.md +43 -0
- package/Dockerfile +78 -70
- package/css/components.css +5 -5
- package/dist/demo/pb-drawer2.html +1 -1
- package/dist/demo/pb-grid.html +19 -6
- package/dist/demo/pb-leaflet-map.html +1 -1
- package/dist/demo/pb-progress.html +2 -2
- package/dist/demo/pb-repeat.html +1 -3
- package/dist/demo/pb-view3.html +1 -1
- package/dist/{iron-form-277f9d42.js → iron-form-78b43d38.js} +1 -1
- package/dist/{paper-checkbox-4f410b1f.js → paper-checkbox-d16f23be.js} +44 -44
- package/dist/{paper-icon-button-0fb125c4.js → paper-icon-button-2cd9e0b4.js} +3 -3
- package/dist/{paper-listbox-c2468542.js → paper-listbox-2ad5c882.js} +7 -7
- package/dist/pb-code-editor.js +25 -20
- package/dist/pb-component-docs.js +58 -54
- package/dist/pb-components-bundle.js +2057 -2351
- package/dist/pb-edit-app.js +167 -107
- package/dist/pb-elements.json +45 -45
- package/dist/{pb-i18n-0611135a.js → pb-i18n-4cc00bfe.js} +1 -1
- package/dist/pb-leaflet-map.js +23 -23
- package/dist/pb-mei.js +56 -41
- package/dist/{pb-mixin-b1caa22e.js → pb-mixin-886ece32.js} +1 -1
- package/dist/pb-odd-editor.js +923 -756
- package/dist/pb-tify.js +2 -2
- package/dist/{vaadin-element-mixin-49ab4037.js → vaadin-element-mixin-c200b196.js} +179 -164
- package/gh-pages.js +5 -3
- package/i18n/common/pl.json +2 -2
- package/lib/openseadragon.min.js +1 -1
- package/package.json +2 -2
- package/pb-elements.json +45 -45
- package/src/assets/components.css +5 -5
- package/src/authority/airtable.js +20 -21
- package/src/authority/anton.js +129 -129
- package/src/authority/custom.js +23 -21
- package/src/authority/geonames.js +38 -32
- package/src/authority/gnd.js +47 -42
- package/src/authority/kbga.js +137 -134
- package/src/authority/metagrid.js +44 -46
- package/src/authority/reconciliation.js +66 -67
- package/src/authority/registry.js +4 -4
- package/src/docs/pb-component-docs.js +2 -2
- package/src/docs/pb-component-view.js +5 -5
- package/src/docs/pb-components-list.js +2 -2
- package/src/docs/pb-demo-snippet.js +2 -2
- package/src/dts-client.js +299 -297
- package/src/dts-select-endpoint.js +90 -82
- package/src/parse-date-service.js +184 -135
- package/src/pb-ajax.js +150 -146
- package/src/pb-authority-lookup.js +183 -146
- package/src/pb-autocomplete.js +292 -280
- package/src/pb-blacklab-highlight.js +264 -259
- package/src/pb-blacklab-results.js +236 -221
- package/src/pb-browse-docs.js +540 -475
- package/src/pb-browse.js +68 -65
- package/src/pb-clipboard.js +79 -76
- package/src/pb-code-editor.js +110 -102
- package/src/pb-code-highlight.js +209 -204
- package/src/pb-codepen.js +79 -72
- package/src/pb-collapse.js +212 -207
- package/src/pb-combo-box.js +190 -190
- package/src/pb-components-bundle.js +1 -1
- package/src/pb-custom-form.js +151 -149
- package/src/pb-dialog.js +94 -85
- package/src/pb-document.js +89 -90
- package/src/pb-download.js +210 -198
- package/src/pb-drawer.js +145 -148
- package/src/pb-edit-app.js +301 -229
- package/src/pb-edit-xml.js +98 -96
- package/src/pb-events.js +114 -107
- package/src/pb-facs-link.js +104 -102
- package/src/pb-facsimile.js +419 -414
- package/src/pb-formula.js +151 -153
- package/src/pb-geolocation.js +129 -131
- package/src/pb-grid-action.js +53 -56
- package/src/pb-grid.js +231 -228
- package/src/pb-highlight.js +140 -140
- package/src/pb-hotkeys.js +40 -42
- package/src/pb-i18n.js +101 -104
- package/src/pb-image-strip.js +84 -78
- package/src/pb-lang.js +132 -128
- package/src/pb-leaflet-map.js +488 -485
- package/src/pb-link.js +126 -124
- package/src/pb-load.js +431 -426
- package/src/pb-login.js +291 -248
- package/src/pb-manage-odds.js +364 -318
- package/src/pb-map-icon.js +89 -89
- package/src/pb-map-layer.js +85 -85
- package/src/pb-markdown.js +90 -99
- package/src/pb-media-query.js +74 -72
- package/src/pb-mei.js +306 -295
- package/src/pb-message.js +144 -144
- package/src/pb-mixin.js +269 -264
- package/src/pb-navigation.js +80 -82
- package/src/pb-observable.js +38 -38
- package/src/pb-odd-editor.js +1053 -955
- package/src/pb-odd-elementspec-editor.js +348 -297
- package/src/pb-odd-model-editor.js +1061 -901
- package/src/pb-odd-parameter-editor.js +200 -178
- package/src/pb-odd-rendition-editor.js +136 -124
- package/src/pb-page.js +431 -421
- package/src/pb-paginate.js +202 -190
- package/src/pb-panel.js +198 -182
- package/src/pb-popover-themes.js +7 -5
- package/src/pb-popover.js +296 -287
- package/src/pb-print-preview.js +127 -127
- package/src/pb-progress.js +51 -51
- package/src/pb-repeat.js +105 -104
- package/src/pb-restricted.js +84 -77
- package/src/pb-search.js +252 -241
- package/src/pb-select-feature.js +127 -120
- package/src/pb-select-odd.js +132 -124
- package/src/pb-select-template.js +89 -78
- package/src/pb-select.js +251 -227
- package/src/pb-split-list.js +179 -174
- package/src/pb-svg.js +80 -79
- package/src/pb-table-column.js +54 -54
- package/src/pb-table-grid.js +221 -203
- package/src/pb-tabs.js +61 -63
- package/src/pb-tify.js +154 -154
- package/src/pb-timeline.js +271 -229
- package/src/pb-toggle-feature.js +182 -175
- package/src/pb-upload.js +184 -174
- package/src/pb-version.js +30 -30
- package/src/pb-view-annotate.js +132 -98
- package/src/pb-view.js +1290 -1270
- package/src/pb-zoom.js +75 -59
- package/src/polymer-hack.js +1 -1
- package/src/search-result-service.js +256 -223
- package/src/seed-element.js +13 -20
- package/src/settings.js +4 -4
- package/src/theming.js +96 -96
- package/src/urls.js +289 -289
- package/src/utils.js +53 -51
|
@@ -174,7 +174,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
174
174
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
175
175
|
Code distributed by Google as part of the polymer project is also
|
|
176
176
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
177
|
-
*/let At=0,Tt=0,Ot=[],Nt=0,It=!1,Mt=document.createTextNode("");function Dt(){It=!1;const e=Ot.length;for(let t=0;t<e;t++){let e=Ot[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}Ot.splice(0,e),Tt+=e}new window.MutationObserver(Dt).observe(Mt,{characterData:!0});const Rt={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Lt={run:e=>window.
|
|
177
|
+
*/let At=0,Tt=0,Ot=[],Nt=0,It=!1,Mt=document.createTextNode("");function Dt(){It=!1;const e=Ot.length;for(let t=0;t<e;t++){let e=Ot[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}Ot.splice(0,e),Tt+=e}new window.MutationObserver(Dt).observe(Mt,{characterData:!0});const Rt={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Lt={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Ft={run:e=>(It||(It=!0,Mt.textContent=Nt++),Ot.push(e),At++),cancel(e){const t=e-Tt;if(t>=0){if(!Ot[t])throw new Error("invalid async handle: "+e);Ot[t]=null}}},Bt=Ft,Ht=$e(e=>{class t extends e{static createProperties(e){const t=this.prototype;for(let i in e)i in t||t._createPropertyAccessor(i)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(e,t){Object.defineProperty(this,e,{get(){return this.__data[e]},set:t?function(){}:function(t){this._setPendingProperty(e,t,!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 e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){let n=this.__data[e],r=this._shouldPropertyChange(e,t,n);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=n),this.__data[e]=t,this.__dataPending[e]=t),r}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Bt.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 e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,n){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,n)}_attributeToProperty(e,t,i){if(!this.__serializing){const n=this.__dataAttributes,r=n&&n[e]||e;this[r]=this._deserializeValue(t,i||this.constructor.typeForProperty(r))}}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){const n=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=pt(e)),void 0===n?e.removeAttribute(i):e.setAttribute(i,""===n&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(e){switch(typeof e){case"boolean":return e?"":void 0;default:return null!=e?e.toString():void 0}}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}return t}),zt={};let jt=HTMLElement.prototype;for(;jt;){let e=Object.getOwnPropertyNames(jt);for(let t=0;t<e.length;t++)zt[e[t]]=!0;jt=Object.getPrototypeOf(jt)}const Ut=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function Kt(e,t){if(!zt[t]){let i=e[t];void 0!==i&&(e.__data?e._setPendingProperty(t,i):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=i))}}const qt=$e(e=>{const t=Ht(e);class i extends t{static createPropertiesForAttributes(){let e=this.observedAttributes;for(let t=0;t<e.length;t++)this.prototype._createPropertyAccessor(kt(e[t]))}static attributeNameForProperty(e){return Et(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(let t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){const i=this;i.hasAttribute(e)||this._valueToNodeAttribute(i,t,e)}_serializeValue(e){switch(typeof e){case"object":if(e instanceof Date)return e.toString();if(e){if(Ut(e))return e;try{return JSON.stringify(e)}catch(e){return""}}default:return super._serializeValue(e)}}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:i=isNaN(e)?String(e):Number(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){Kt(this,e),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}return i}),$t={"dom-if":!0,"dom-repeat":!0};
|
|
178
178
|
/**
|
|
179
179
|
@license
|
|
180
180
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -183,7 +183,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
183
183
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
184
184
|
Code distributed by Google as part of the polymer project is also
|
|
185
185
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
186
|
-
*/let
|
|
186
|
+
*/let Yt=!1,Vt=!1;function Jt(){if(!Yt){Yt=!0;const e=document.createElement("textarea");e.placeholder="a",Vt=e.placeholder===e.textContent}return Vt}function Xt(e){Jt()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const Wt=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(t,i,n)=>{const r=i.getAttribute(n);e&&n.startsWith("on-")?t.setAttribute(n,e.createScript(r,n)):t.setAttribute(n,r)}})();function Gt(e){let t=e.getAttribute("is");if(t&&$t[t]){let i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const{name:t}=i.attributes[0];Wt(e,i,t),i.removeAttribute(t)}}return e}function Zt(e,t){let i=t.parentInfo&&Zt(e,t.parentInfo);if(!i)return e;for(let e=i.firstChild,n=0;e;e=e.nextSibling)if(t.parentIndex===n++)return e}function Qt(e,t,i,n){n.id&&(t[n.id]=i)}function ei(e,t,i){if(i.events&&i.events.length)for(let n,r=0,s=i.events;r<s.length&&(n=s[r]);r++)e._addMethodEventListenerToNode(t,n.name,n.value,e)}function ti(e,t,i,n){i.templateInfo&&(t._templateInfo=i.templateInfo,t._parentTemplateInfo=n)}function ii(e,t,i){return e=e._methodHost||e,function(t){e[i]?e[i](t,t.detail):console.warn("listener method `"+i+"` not defined")}}const ni=$e(e=>{class t extends e{static _parseTemplate(e,t){if(!e._templateInfo){let i=e._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})}return e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let n=!1,r=e;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(t.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(r,t,i)||n,Xt(r),r.firstChild&&this._parseTemplateChildNodes(r,t,i),r.hasAttributes&&r.hasAttributes()&&(n=this._parseTemplateNodeAttributes(r,t,i)||n),n||i.noted}static _parseTemplateChildNodes(e,t,i){if("script"!==e.localName&&"style"!==e.localName)for(let n,r=e.firstChild,s=0;r;r=n){if("template"==r.localName&&(r=Gt(r)),n=r.nextSibling,r.nodeType===Node.TEXT_NODE){let i=n;for(;i&&i.nodeType===Node.TEXT_NODE;)r.textContent+=i.textContent,n=i.nextSibling,e.removeChild(i),i=n;if(t.stripWhiteSpace&&!r.textContent.trim()){e.removeChild(r);continue}}let o={parentIndex:s,parentInfo:i};this._parseTemplateNode(r,t,o)&&(o.infoIndex=t.nodeInfoList.push(o)-1),r.parentNode&&s++}}static _parseTemplateNestedTemplate(e,t,i){let n=e,r=this._parseTemplate(n,t);return(r.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),i.templateInfo=r,!0}static _parseTemplateNodeAttributes(e,t,i){let n=!1,r=Array.from(e.attributes);for(let s,o=r.length-1;s=r[o];o--)n=this._parseTemplateNodeAttribute(e,t,i,s.name,s.value)||n;return n}static _parseTemplateNodeAttribute(e,t,i,n,r){return"on-"===n.slice(0,3)?(e.removeAttribute(n),i.events=i.events||[],i.events.push({name:n.slice(3),value:r}),!0):"id"===n&&(i.id=r,!0)}static _contentForTemplate(e){let t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,t){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);let i=(t=t||this.constructor._parseTemplate(e)).nodeInfoList,n=t.content||e.content,r=document.importNode(n,!0);r.__noInsertionPoint=!t.hasInsertionPoint;let s=r.nodeList=new Array(i.length);r.$={};for(let e,n=0,o=i.length;n<o&&(e=i[n]);n++){let i=s[n]=Zt(r,e);Qt(this,r.$,i,e),ti(this,i,e,t),ei(this,i,e)}return r=r,r}_addMethodEventListenerToNode(e,t,i,n){let r=ii(n=n||e,t,i);return this._addEventListenerToNode(e,t,r),r}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}}return t});
|
|
187
187
|
/**
|
|
188
188
|
* @fileoverview
|
|
189
189
|
* @suppress {checkPrototypalTypes}
|
|
@@ -194,7 +194,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
194
194
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
195
195
|
* Google as part of the polymer project is also subject to an additional IP
|
|
196
196
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
197
|
-
*/let si=0;const oi=[],ai={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},li="__computeInfo",ci=/[A-Z]/;function di(e,t,i){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),i))for(let e in n){let t=n[e],i=n[e]=Array(t.length);for(let e=0;e<t.length;e++)i[e]=t[e]}}else n=e[t]={};return n}function hi(e,t,i,n,r,s){if(t){let o=!1;const a=si++;for(let l in i){let c=t[r?_t(l):l];if(c)for(let t,d=0,h=c.length;d<h&&(t=c[d]);d++)t.info&&t.info.lastRun===a||r&&!ui(l,t.trigger)||(t.info&&(t.info.lastRun=a),t.fn(e,l,i,n,t.info,r,s),o=!0)}return o}return!1}function pi(e,t,i,n,r,s,o,a){let l=!1,c=t[o?_t(n):n];if(c)for(let t,d=0,h=c.length;d<h&&(t=c[d]);d++)t.info&&t.info.lastRun===i||o&&!ui(n,t.trigger)||(t.info&&(t.info.lastRun=i),t.fn(e,n,r,s,t.info,o,a),l=!0);return l}function ui(e,t){if(t){let i=t.name;return i==e||!(!t.structured||!ft(i,e))||!(!t.wildcard||!mt(i,e))}return!0}function _i(e,t,i,n,r){let s="string"==typeof r.method?e[r.method]:r.method,o=r.property;s?s.call(e,e.__data[o],n[o]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function fi(e,t,i,n,r){let s,o,a=e[ai.NOTIFY],l=si++;for(let o in t)t[o]&&(a&&pi(e,a,l,o,i,n,r)||r&&mi(e,o,i))&&(s=!0);s&&(o=e.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}function mi(e,t,i){let n=_t(t);if(n!==t){return yi(e,Et(n)+"-changed",i[t],t),!0}return!1}function yi(e,t,i,n){let r={value:i,queueProperty:!0};n&&(r.path=n),pt(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function gi(e,t,i,n,r,s){let o=(s?_t(t):t)!=t?t:null,a=o?wt(e,o):e.__data[t];o&&void 0===a&&(a=i[t]),yi(e,r.eventName,a,o)}function bi(e,t,i,n,r){let s,o=e.detail,a=o&&o.path;a?(n=yt(i,n,a),s=o&&o.value):s=e.currentTarget[i],s=r?!s:s,t[ai.READ_ONLY]&&t[ai.READ_ONLY][n]||!t._setPendingPropertyOrPath(n,s,!0,Boolean(a))||o&&o.queueProperty||t._invalidateProperties()}function vi(e,t,i,n,r){let s=e.__data[t];Oe&&(s=Oe(s,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,s)}function wi(e,t,i,n){let r=e[ai.COMPUTE];if(r)if(Be){si++;const s=Si(e),o=[];for(let e in t)Pi(e,r,o,s,n);let a;for(;a=o.shift();)ki(e,"",t,i,a)&&Pi(a.methodInfo,r,o,s,n);Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;hi(e,r,s,i,n);)Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const Ci=(e,t,i)=>{let n=0,r=t.length-1,s=-1;for(;n<=r;){const o=n+r>>1,a=i.get(t[o].methodInfo)-i.get(e.methodInfo);if(a<0)n=o+1;else{if(!(a>0)){s=o;break}r=o-1}}s<0&&(s=r+1),t.splice(s,0,e)},Pi=(e,t,i,n,r)=>{const s=t[r?_t(e):e];if(s)for(let t=0;t<s.length;t++){const o=s[t];o.info.lastRun===si||r&&!ui(e,o.trigger)||(o.info.lastRun=si,Ci(o.info,i,n))}};function Si(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const i=e[ai.COMPUTE];let n,{counts:r,ready:s,total:o}=xi(e);for(;n=s.shift();){t.set(n,t.size);const e=i[n];e&&e.forEach(e=>{const t=e.info.methodInfo;--o,0==--r[t]&&s.push(t)})}if(0!==o){const t=e;console.warn(`Computed graph for ${t.localName} incomplete; circular?`)}e.constructor.__orderedComputedDeps=t}return t}function xi(e){const t=e[li],i={},n=e[ai.COMPUTE],r=[];let s=0;for(let e in t){const n=t[e];s+=i[e]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(let e in n)t[e]||r.push(e);return{counts:i,ready:r,total:s}}function ki(e,t,i,n,r){let s=Bi(e,t,i,n,r);if(s===oi)return!1;let o=r.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function Ei(e,t,i){let n=e.__dataLinkedPaths;if(n){let r;for(let s in n){let o=n[s];mt(s,t)?(r=yt(s,o,t),e._setPendingPropertyOrPath(r,i,!0,!0)):mt(o,t)&&(r=yt(o,s,t),e._setPendingPropertyOrPath(r,i,!0,!0))}}}function Ai(e,t,i,n,r,s,o){i.bindings=i.bindings||[];let a={kind:n,target:r,parts:s,literal:o,isCompound:1!==s.length};if(i.bindings.push(a),Mi(a)){let{event:e,negate:t}=a.parts[0];a.listenerEvent=e||Et(r)+"-changed",a.listenerNegate=t}let l=t.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let n=a.parts[i];n.compoundIndex=i,Ti(e,t,a,n,l)}}function Ti(e,t,i,n,r){if(!n.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let s=n.dependencies,o={index:r,binding:i,part:n,evaluator:e};for(let i=0;i<s.length;i++){let n=s[i];"string"==typeof n&&(n=Yi(n),n.wildcard=!0),e._addTemplatePropertyEffect(t,n.rootProperty,{fn:Oi,info:o,trigger:n})}}}function Oi(e,t,i,n,r,s,o){let a=o[r.index],l=r.binding,c=r.part;if(s&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let n=i[t];t=yt(c.source,l.target,t),a._setPendingPropertyOrPath(t,n,!1,!0)&&e._enqueueClient(a)}else{let o=r.evaluator._evaluateBinding(e,c,t,i,n,s);o!==oi&&Ni(e,a,l,c,o)}}function Ni(e,t,i,n,r){if(r=Ii(t,r,i,n),Oe&&(r=Oe(r,i.target,i.kind,t)),"attribute"==i.kind)e._valueToNodeAttribute(t,r,i.target);else{let n=i.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[n]?t[ai.READ_ONLY]&&t[ai.READ_ONLY][n]||t._setPendingProperty(n,r)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,n,r)}}function Ii(e,t,i,n){if(i.isCompound){let r=e.__dataCompoundStorage[i.target];r[n.compoundIndex]=t,t=r.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t)),t}function Mi(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}function Di(e,t){let{nodeList:i,nodeInfoList:n}=t;if(n.length)for(let t=0;t<n.length;t++){let r=n[t],s=i[t],o=r.bindings;if(o)for(let t=0;t<o.length;t++){let i=o[t];Ri(s,i),Li(s,e,i)}s.__dataHost=e}}function Ri(e,t){if(t.isCompound){let i=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),n=t.parts,r=new Array(n.length);for(let e=0;e<n.length;e++)r[e]=n[e].literal;let s=t.target;i[s]=r,t.literal&&"property"==t.kind&&("className"===s&&(e=pt(e)),e[s]=t.literal)}}function Li(e,t,i){if(i.listenerEvent){let n=i.parts[0];e.addEventListener(i.listenerEvent,(function(e){bi(e,t,i.target,n.source,n.negate)}))}}function Fi(e,t,i,n,r,s){s=t.static||s&&("object"!=typeof s||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:r,dynamicFn:s};for(let r,s=0;s<t.args.length&&(r=t.args[s]);s++)r.literal||e._addPropertyEffect(r.rootProperty,i,{fn:n,info:o,trigger:r});return s&&e._addPropertyEffect(t.methodName,i,{fn:n,info:o}),o}function Bi(e,t,i,n,r){let s=e._methodHost||e,o=s[r.methodName];if(o){let n=e._marshalArgs(r.args,t,i);return n===oi?oi:o.apply(s,n)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Hi=[],zi="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ji="(?:("+zi+"|"+"(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)"+"|"+("(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")")+")\\s*)",Ui=new RegExp("(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+("("+zi+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+ji+"(?:,\\s*"+ji+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Ki(e){let t="";for(let i=0;i<e.length;i++){t+=e[i].literal||""}return t}function qi(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let e={methodName:t[1],static:!0,args:Hi};if(t[2].trim()){return $i(t[2].replace(/\\,/g,",").split(","),e)}return e}return null}function $i(e,t){return t.args=e.map((function(e){let i=Yi(e);return i.literal||(t.static=!1),i}),this),t}function Yi(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},n=t[0];switch("-"===n&&(n=t[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=_t(t),i.structured=ut(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i}function Vi(e,t,i){let n=wt(e,i);return void 0===n&&(n=t[i]),n}function Ji(e,t,i,n){const r={indexSplices:n};Fe&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),Fe&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function Xi(e,t,i,n,r,s){Ji(e,t,i,[{index:n,addedCount:r,removed:s,object:t,type:"splice"}])}function Wi(e){return e[0].toUpperCase()+e.substring(1)}const Gi=$e(e=>{const t=ri($t(e));class i extends t{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 ai}_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(Zi.length){let e=Zi[Zi.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){let t=this[ai.READ_ONLY];for(let i in e)t&&t[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=e[i])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==ai.READ_ONLY);let n=di(this,t,!0)[e];n||(n=this[t][e]=[]),n.push(i)}_removePropertyEffect(e,t,i){let n=di(this,t,!0)[e],r=n.indexOf(i);r>=0&&n.splice(r,1)}_hasPropertyEffect(e,t){let i=this[t];return Boolean(i&&i[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,ai.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,ai.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,ai.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,ai.COMPUTE)}_setPendingPropertyOrPath(e,t,i,n){if(n||_t(Array.isArray(e)?e[0]:e)!==e){if(!n){let i=wt(this,e);if(!(e=Ct(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i))return Ei(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||("className"===t&&(e=pt(e)),e[t]=i)}_setPendingProperty(e,t,i){let n=this.__dataHasPaths&&ut(e),r=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,r[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[ai.NOTIFY]&&this[ai.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(let t=0;t<e.length;t++){let i=e[t];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(let i in e)!t&&this[ai.READ_ONLY]&&this[ai.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,i){let n,r=this.__dataHasPaths;this.__dataHasPaths=!1,wi(this,t,i,r),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,i,r),this._flushClients(),hi(this,this[ai.REFLECT],t,i,r),hi(this,this[ai.OBSERVE],t,i,r),n&&fi(this,n,t,i,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[ai.PROPAGATE]&&hi(this,this[ai.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(e,t,i,n){const r=(t,n)=>{hi(this,e.propertyEffects,t,i,n,e.nodeList);for(let r=e.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,t,i,n)};e.runEffects?e.runEffects(r,t,n):r(t,n)}linkPaths(e,t){e=bt(e),t=bt(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=bt(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let i={path:""};Ji(this,wt(this,e,i),i.path,t)}get(e,t){return wt(t||this,e)}set(e,t,i){i?Ct(i,e,t):this[ai.READ_ONLY]&&this[ai.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let i={path:""},n=wt(this,e,i),r=n.length,s=n.push(...t);return t.length&&Xi(this,n,i.path,r,t.length,[]),s}pop(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),r=i.pop();return n&&Xi(this,i,t.path,i.length,0,[r]),r}splice(e,t,i,...n){let r,s={path:""},o=wt(this,e,s);return t<0?t=o.length-Math.floor(-t):t&&(t=Math.floor(t)),r=2===arguments.length?o.splice(t):o.splice(t,i,...n),(n.length||r.length)&&Xi(this,o,s.path,t,n.length,r),r}shift(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),r=i.shift();return n&&Xi(this,i,t.path,0,0,[r]),r}unshift(e,...t){let i={path:""},n=wt(this,e,i),r=n.unshift(...t);return t.length&&Xi(this,n,i.path,0,t.length,[]),r}notifyPath(e,t){let i;if(1==arguments.length){let n={path:""};t=wt(this,e,n),i=n.path}else i=Array.isArray(e)?bt(e):e;this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){this._addPropertyEffect(e,ai.READ_ONLY),t&&(this["_set"+Wi(e)]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,i){let n={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,ai.OBSERVE,{fn:_i,info:n,trigger:{name:e}}),i&&this._addPropertyEffect(t,ai.OBSERVE,{fn:_i,info:n,trigger:{name:t}})}_createMethodObserver(e,t){let i=qi(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Fi(this,i,ai.OBSERVE,Bi,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,ai.NOTIFY,{fn:gi,info:{eventName:Et(e)+"-changed",property:e}})}_createReflectedProperty(e){let t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,ai.REFLECT,{fn:vi,info:{attrName:t}})}_createComputedProperty(e,t,i){let n=qi(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");const r=Fi(this,n,ai.COMPUTE,ki,e,i);di(this,li)[e]=r}_marshalArgs(e,t,i){const n=this.__data,r=[];for(let s=0,o=e.length;s<o;s++){let{name:o,structured:a,wildcard:l,value:c,literal:d}=e[s];if(!d)if(l){const e=mt(o,t),r=Vi(n,i,e?t:o);c={path:e?t:o,value:r,base:e?wt(n,o):r}}else c=a?Vi(n,i,o):n[o];if(Fe&&!this._overrideLegacyUndefined&&void 0===c&&e.length>1)return oi;r[s]=c}return r}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==i;if(!n)for(let e in i.propertyEffects)this._createPropertyAccessor(e);if(t)if(i=Object.create(i),i.wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;i.parent=t,t.lastChild=i,i.previousSibling=n,n?n.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;let n=e.propertyEffects=e.propertyEffects||{};(n[t]=n[t]||[]).push(i)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),Zi.push(this);let i=super._stampTemplate(e,t);if(Zi.pop(),t.nodeList=i.nodeList,!t.wasPreBound){let e=t.childNodes=[];for(let t=i.firstChild;t;t=t.nextSibling)e.push(t)}return i.templateInfo=t,Di(this,t),this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:i,nextSibling:n,parent:r}=t;i?i.nextSibling=n:r&&(r.firstChild=n),n?n.previousSibling=i:r&&(r.lastChild=i),t.nextSibling=t.previousSibling=null;let s=t.childNodes;for(let e=0;e<s.length;e++){let t=s[e];pt(pt(t).parentNode).removeChild(t)}}static _parseTemplateNode(e,i,n){let r=t._parseTemplateNode.call(this,e,i,n);if(e.nodeType===Node.TEXT_NODE){let t=this._parseBindings(e.textContent,i);t&&(e.textContent=Ki(t)||" ",Ai(this,i,n,"text","textContent",t),r=!0)}return r}static _parseTemplateNodeAttribute(e,i,n,r,s){let o=this._parseBindings(s,i);if(o){let t=r,s="property";ci.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");let a=Ki(o);return a&&"attribute"==s&&("class"==r&&e.hasAttribute("class")&&(a+=" "+e.getAttribute(r)),e.setAttribute(r,a)),"attribute"==s&&"disable-upgrade$"==t&&e.setAttribute(r,""),"input"===e.localName&&"value"===t&&e.setAttribute(t,""),e.removeAttribute(t),"property"===s&&(r=kt(r)),Ai(this,i,n,s,r,o,a),!0}return t._parseTemplateNodeAttribute.call(this,e,i,n,r,s)}static _parseTemplateNestedTemplate(e,i,n){let r=t._parseTemplateNestedTemplate.call(this,e,i,n);const s=e.parentNode,o=n.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;He&&(a||l)&&(s.removeChild(e),(n=n.parentInfo).templateInfo=o,n.noted=!0,r=!1);let c=o.hostProps;if(ze&&a)c&&(i.hostProps=Object.assign(i.hostProps||{},c),He||(n.parentInfo.noted=!0));else{let e="{";for(let t in c){Ai(this,i,n,"property","_host_"+t,[{mode:e,source:t,dependencies:[t],hostProp:!0}])}}return r}static _parseBindings(e,t){let i,n=[],r=0;for(;null!==(i=Ui.exec(e));){i.index>r&&n.push({literal:e.slice(r,i.index)});let s=i[1][0],o=Boolean(i[2]),a=i[3].trim(),l=!1,c="",d=-1;"{"==s&&(d=a.indexOf("::"))>0&&(c=a.substring(d+2),a=a.substring(0,d),l=!0);let h=qi(a),p=[];if(h){let{args:e,methodName:i}=h;for(let t=0;t<e.length;t++){let i=e[t];i.literal||p.push(i)}let n=t.dynamicFns;(n&&n[i]||h.static)&&(p.push(i),h.dynamicFn=!0)}else p.push(a);n.push({source:a,mode:s,negate:o,customEvent:l,signature:h,dependencies:p,event:c}),r=Ui.lastIndex}if(r&&r<e.length){let t=e.substring(r);t&&n.push({literal:t})}return n.length?n:null}static _evaluateBinding(e,t,i,n,r,s){let o;return o=t.signature?Bi(e,i,n,r,t.signature):i!=t.source?wt(e,t.source):s&&ut(i)?wt(e,i):e.__data[i],t.negate&&(o=!o),o}}return i}),Zi=[];
|
|
197
|
+
*/let ri=0;const si=[],oi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ai="__computeInfo",li=/[A-Z]/;function ci(e,t,i){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),i))for(let e in n){let t=n[e],i=n[e]=Array(t.length);for(let e=0;e<t.length;e++)i[e]=t[e]}}else n=e[t]={};return n}function di(e,t,i,n,r,s){if(t){let o=!1;const a=ri++;for(let l in i){let c=t[r?_t(l):l];if(c)for(let t,d=0,h=c.length;d<h&&(t=c[d]);d++)t.info&&t.info.lastRun===a||r&&!pi(l,t.trigger)||(t.info&&(t.info.lastRun=a),t.fn(e,l,i,n,t.info,r,s),o=!0)}return o}return!1}function hi(e,t,i,n,r,s,o,a){let l=!1,c=t[o?_t(n):n];if(c)for(let t,d=0,h=c.length;d<h&&(t=c[d]);d++)t.info&&t.info.lastRun===i||o&&!pi(n,t.trigger)||(t.info&&(t.info.lastRun=i),t.fn(e,n,r,s,t.info,o,a),l=!0);return l}function pi(e,t){if(t){let i=t.name;return i==e||!(!t.structured||!ft(i,e))||!(!t.wildcard||!mt(i,e))}return!0}function ui(e,t,i,n,r){let s="string"==typeof r.method?e[r.method]:r.method,o=r.property;s?s.call(e,e.__data[o],n[o]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function _i(e,t,i,n,r){let s,o,a=e[oi.NOTIFY],l=ri++;for(let o in t)t[o]&&(a&&hi(e,a,l,o,i,n,r)||r&&fi(e,o,i))&&(s=!0);s&&(o=e.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}function fi(e,t,i){let n=_t(t);if(n!==t){return mi(e,Et(n)+"-changed",i[t],t),!0}return!1}function mi(e,t,i,n){let r={value:i,queueProperty:!0};n&&(r.path=n),pt(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function yi(e,t,i,n,r,s){let o=(s?_t(t):t)!=t?t:null,a=o?wt(e,o):e.__data[t];o&&void 0===a&&(a=i[t]),mi(e,r.eventName,a,o)}function gi(e,t,i,n,r){let s,o=e.detail,a=o&&o.path;a?(n=yt(i,n,a),s=o&&o.value):s=e.currentTarget[i],s=r?!s:s,t[oi.READ_ONLY]&&t[oi.READ_ONLY][n]||!t._setPendingPropertyOrPath(n,s,!0,Boolean(a))||o&&o.queueProperty||t._invalidateProperties()}function bi(e,t,i,n,r){let s=e.__data[t];Oe&&(s=Oe(s,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,s)}function vi(e,t,i,n){let r=e[oi.COMPUTE];if(r)if(Be){ri++;const s=Pi(e),o=[];for(let e in t)Ci(e,r,o,s,n);let a;for(;a=o.shift();)xi(e,"",t,i,a)&&Ci(a.methodInfo,r,o,s,n);Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;di(e,r,s,i,n);)Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const wi=(e,t,i)=>{let n=0,r=t.length-1,s=-1;for(;n<=r;){const o=n+r>>1,a=i.get(t[o].methodInfo)-i.get(e.methodInfo);if(a<0)n=o+1;else{if(!(a>0)){s=o;break}r=o-1}}s<0&&(s=r+1),t.splice(s,0,e)},Ci=(e,t,i,n,r)=>{const s=t[r?_t(e):e];if(s)for(let t=0;t<s.length;t++){const o=s[t];o.info.lastRun===ri||r&&!pi(e,o.trigger)||(o.info.lastRun=ri,wi(o.info,i,n))}};function Pi(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const i=e[oi.COMPUTE];let n,{counts:r,ready:s,total:o}=Si(e);for(;n=s.shift();){t.set(n,t.size);const e=i[n];e&&e.forEach(e=>{const t=e.info.methodInfo;--o,0==--r[t]&&s.push(t)})}if(0!==o){const t=e;console.warn(`Computed graph for ${t.localName} incomplete; circular?`)}e.constructor.__orderedComputedDeps=t}return t}function Si(e){const t=e[ai],i={},n=e[oi.COMPUTE],r=[];let s=0;for(let e in t){const n=t[e];s+=i[e]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(let e in n)t[e]||r.push(e);return{counts:i,ready:r,total:s}}function xi(e,t,i,n,r){let s=Fi(e,t,i,n,r);if(s===si)return!1;let o=r.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function ki(e,t,i){let n=e.__dataLinkedPaths;if(n){let r;for(let s in n){let o=n[s];mt(s,t)?(r=yt(s,o,t),e._setPendingPropertyOrPath(r,i,!0,!0)):mt(o,t)&&(r=yt(o,s,t),e._setPendingPropertyOrPath(r,i,!0,!0))}}}function Ei(e,t,i,n,r,s,o){i.bindings=i.bindings||[];let a={kind:n,target:r,parts:s,literal:o,isCompound:1!==s.length};if(i.bindings.push(a),Ii(a)){let{event:e,negate:t}=a.parts[0];a.listenerEvent=e||Et(r)+"-changed",a.listenerNegate=t}let l=t.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let n=a.parts[i];n.compoundIndex=i,Ai(e,t,a,n,l)}}function Ai(e,t,i,n,r){if(!n.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let s=n.dependencies,o={index:r,binding:i,part:n,evaluator:e};for(let i=0;i<s.length;i++){let n=s[i];"string"==typeof n&&(n=$i(n),n.wildcard=!0),e._addTemplatePropertyEffect(t,n.rootProperty,{fn:Ti,info:o,trigger:n})}}}function Ti(e,t,i,n,r,s,o){let a=o[r.index],l=r.binding,c=r.part;if(s&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let n=i[t];t=yt(c.source,l.target,t),a._setPendingPropertyOrPath(t,n,!1,!0)&&e._enqueueClient(a)}else{let o=r.evaluator._evaluateBinding(e,c,t,i,n,s);o!==si&&Oi(e,a,l,c,o)}}function Oi(e,t,i,n,r){if(r=Ni(t,r,i,n),Oe&&(r=Oe(r,i.target,i.kind,t)),"attribute"==i.kind)e._valueToNodeAttribute(t,r,i.target);else{let n=i.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[n]?t[oi.READ_ONLY]&&t[oi.READ_ONLY][n]||t._setPendingProperty(n,r)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,n,r)}}function Ni(e,t,i,n){if(i.isCompound){let r=e.__dataCompoundStorage[i.target];r[n.compoundIndex]=t,t=r.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t)),t}function Ii(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}function Mi(e,t){let{nodeList:i,nodeInfoList:n}=t;if(n.length)for(let t=0;t<n.length;t++){let r=n[t],s=i[t],o=r.bindings;if(o)for(let t=0;t<o.length;t++){let i=o[t];Di(s,i),Ri(s,e,i)}s.__dataHost=e}}function Di(e,t){if(t.isCompound){let i=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),n=t.parts,r=new Array(n.length);for(let e=0;e<n.length;e++)r[e]=n[e].literal;let s=t.target;i[s]=r,t.literal&&"property"==t.kind&&("className"===s&&(e=pt(e)),e[s]=t.literal)}}function Ri(e,t,i){if(i.listenerEvent){let n=i.parts[0];e.addEventListener(i.listenerEvent,(function(e){gi(e,t,i.target,n.source,n.negate)}))}}function Li(e,t,i,n,r,s){s=t.static||s&&("object"!=typeof s||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:r,dynamicFn:s};for(let r,s=0;s<t.args.length&&(r=t.args[s]);s++)r.literal||e._addPropertyEffect(r.rootProperty,i,{fn:n,info:o,trigger:r});return s&&e._addPropertyEffect(t.methodName,i,{fn:n,info:o}),o}function Fi(e,t,i,n,r){let s=e._methodHost||e,o=s[r.methodName];if(o){let n=e._marshalArgs(r.args,t,i);return n===si?si:o.apply(s,n)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Bi=[],Hi="(?:[a-zA-Z_$][\\w.:$\\-*]*)",zi="(?:("+Hi+"|"+"(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)"+"|"+("(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")")+")\\s*)",ji=new RegExp("(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+("("+Hi+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+zi+"(?:,\\s*"+zi+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Ui(e){let t="";for(let i=0;i<e.length;i++){t+=e[i].literal||""}return t}function Ki(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let e={methodName:t[1],static:!0,args:Bi};if(t[2].trim()){return qi(t[2].replace(/\\,/g,",").split(","),e)}return e}return null}function qi(e,t){return t.args=e.map((function(e){let i=$i(e);return i.literal||(t.static=!1),i}),this),t}function $i(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},n=t[0];switch("-"===n&&(n=t[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=_t(t),i.structured=ut(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i}function Yi(e,t,i){let n=wt(e,i);return void 0===n&&(n=t[i]),n}function Vi(e,t,i,n){const r={indexSplices:n};Fe&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),Fe&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function Ji(e,t,i,n,r,s){Vi(e,t,i,[{index:n,addedCount:r,removed:s,object:t,type:"splice"}])}function Xi(e){return e[0].toUpperCase()+e.substring(1)}const Wi=$e(e=>{const t=ni(qt(e));class i extends t{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 oi}_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(Gi.length){let e=Gi[Gi.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){let t=this[oi.READ_ONLY];for(let i in e)t&&t[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=e[i])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==oi.READ_ONLY);let n=ci(this,t,!0)[e];n||(n=this[t][e]=[]),n.push(i)}_removePropertyEffect(e,t,i){let n=ci(this,t,!0)[e],r=n.indexOf(i);r>=0&&n.splice(r,1)}_hasPropertyEffect(e,t){let i=this[t];return Boolean(i&&i[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,oi.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,oi.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,oi.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,oi.COMPUTE)}_setPendingPropertyOrPath(e,t,i,n){if(n||_t(Array.isArray(e)?e[0]:e)!==e){if(!n){let i=wt(this,e);if(!(e=Ct(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i))return ki(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||("className"===t&&(e=pt(e)),e[t]=i)}_setPendingProperty(e,t,i){let n=this.__dataHasPaths&&ut(e),r=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,r[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[oi.NOTIFY]&&this[oi.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(let t=0;t<e.length;t++){let i=e[t];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(let i in e)!t&&this[oi.READ_ONLY]&&this[oi.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,i){let n,r=this.__dataHasPaths;this.__dataHasPaths=!1,vi(this,t,i,r),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,i,r),this._flushClients(),di(this,this[oi.REFLECT],t,i,r),di(this,this[oi.OBSERVE],t,i,r),n&&_i(this,n,t,i,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[oi.PROPAGATE]&&di(this,this[oi.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(e,t,i,n){const r=(t,n)=>{di(this,e.propertyEffects,t,i,n,e.nodeList);for(let r=e.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,t,i,n)};e.runEffects?e.runEffects(r,t,n):r(t,n)}linkPaths(e,t){e=bt(e),t=bt(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=bt(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let i={path:""};Vi(this,wt(this,e,i),i.path,t)}get(e,t){return wt(t||this,e)}set(e,t,i){i?Ct(i,e,t):this[oi.READ_ONLY]&&this[oi.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let i={path:""},n=wt(this,e,i),r=n.length,s=n.push(...t);return t.length&&Ji(this,n,i.path,r,t.length,[]),s}pop(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),r=i.pop();return n&&Ji(this,i,t.path,i.length,0,[r]),r}splice(e,t,i,...n){let r,s={path:""},o=wt(this,e,s);return t<0?t=o.length-Math.floor(-t):t&&(t=Math.floor(t)),r=2===arguments.length?o.splice(t):o.splice(t,i,...n),(n.length||r.length)&&Ji(this,o,s.path,t,n.length,r),r}shift(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),r=i.shift();return n&&Ji(this,i,t.path,0,0,[r]),r}unshift(e,...t){let i={path:""},n=wt(this,e,i),r=n.unshift(...t);return t.length&&Ji(this,n,i.path,0,t.length,[]),r}notifyPath(e,t){let i;if(1==arguments.length){let n={path:""};t=wt(this,e,n),i=n.path}else i=Array.isArray(e)?bt(e):e;this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){this._addPropertyEffect(e,oi.READ_ONLY),t&&(this["_set"+Xi(e)]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,i){let n={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,oi.OBSERVE,{fn:ui,info:n,trigger:{name:e}}),i&&this._addPropertyEffect(t,oi.OBSERVE,{fn:ui,info:n,trigger:{name:t}})}_createMethodObserver(e,t){let i=Ki(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Li(this,i,oi.OBSERVE,Fi,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,oi.NOTIFY,{fn:yi,info:{eventName:Et(e)+"-changed",property:e}})}_createReflectedProperty(e){let t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,oi.REFLECT,{fn:bi,info:{attrName:t}})}_createComputedProperty(e,t,i){let n=Ki(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");const r=Li(this,n,oi.COMPUTE,xi,e,i);ci(this,ai)[e]=r}_marshalArgs(e,t,i){const n=this.__data,r=[];for(let s=0,o=e.length;s<o;s++){let{name:o,structured:a,wildcard:l,value:c,literal:d}=e[s];if(!d)if(l){const e=mt(o,t),r=Yi(n,i,e?t:o);c={path:e?t:o,value:r,base:e?wt(n,o):r}}else c=a?Yi(n,i,o):n[o];if(Fe&&!this._overrideLegacyUndefined&&void 0===c&&e.length>1)return si;r[s]=c}return r}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==i;if(!n)for(let e in i.propertyEffects)this._createPropertyAccessor(e);if(t)if(i=Object.create(i),i.wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;i.parent=t,t.lastChild=i,i.previousSibling=n,n?n.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;let n=e.propertyEffects=e.propertyEffects||{};(n[t]=n[t]||[]).push(i)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),Gi.push(this);let i=super._stampTemplate(e,t);if(Gi.pop(),t.nodeList=i.nodeList,!t.wasPreBound){let e=t.childNodes=[];for(let t=i.firstChild;t;t=t.nextSibling)e.push(t)}return i.templateInfo=t,Mi(this,t),this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:i,nextSibling:n,parent:r}=t;i?i.nextSibling=n:r&&(r.firstChild=n),n?n.previousSibling=i:r&&(r.lastChild=i),t.nextSibling=t.previousSibling=null;let s=t.childNodes;for(let e=0;e<s.length;e++){let t=s[e];pt(pt(t).parentNode).removeChild(t)}}static _parseTemplateNode(e,i,n){let r=t._parseTemplateNode.call(this,e,i,n);if(e.nodeType===Node.TEXT_NODE){let t=this._parseBindings(e.textContent,i);t&&(e.textContent=Ui(t)||" ",Ei(this,i,n,"text","textContent",t),r=!0)}return r}static _parseTemplateNodeAttribute(e,i,n,r,s){let o=this._parseBindings(s,i);if(o){let t=r,s="property";li.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");let a=Ui(o);return a&&"attribute"==s&&("class"==r&&e.hasAttribute("class")&&(a+=" "+e.getAttribute(r)),e.setAttribute(r,a)),"attribute"==s&&"disable-upgrade$"==t&&e.setAttribute(r,""),"input"===e.localName&&"value"===t&&e.setAttribute(t,""),e.removeAttribute(t),"property"===s&&(r=kt(r)),Ei(this,i,n,s,r,o,a),!0}return t._parseTemplateNodeAttribute.call(this,e,i,n,r,s)}static _parseTemplateNestedTemplate(e,i,n){let r=t._parseTemplateNestedTemplate.call(this,e,i,n);const s=e.parentNode,o=n.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;He&&(a||l)&&(s.removeChild(e),(n=n.parentInfo).templateInfo=o,n.noted=!0,r=!1);let c=o.hostProps;if(ze&&a)c&&(i.hostProps=Object.assign(i.hostProps||{},c),He||(n.parentInfo.noted=!0));else{let e="{";for(let t in c){Ei(this,i,n,"property","_host_"+t,[{mode:e,source:t,dependencies:[t],hostProp:!0}])}}return r}static _parseBindings(e,t){let i,n=[],r=0;for(;null!==(i=ji.exec(e));){i.index>r&&n.push({literal:e.slice(r,i.index)});let s=i[1][0],o=Boolean(i[2]),a=i[3].trim(),l=!1,c="",d=-1;"{"==s&&(d=a.indexOf("::"))>0&&(c=a.substring(d+2),a=a.substring(0,d),l=!0);let h=Ki(a),p=[];if(h){let{args:e,methodName:i}=h;for(let t=0;t<e.length;t++){let i=e[t];i.literal||p.push(i)}let n=t.dynamicFns;(n&&n[i]||h.static)&&(p.push(i),h.dynamicFn=!0)}else p.push(a);n.push({source:a,mode:s,negate:o,customEvent:l,signature:h,dependencies:p,event:c}),r=ji.lastIndex}if(r&&r<e.length){let t=e.substring(r);t&&n.push({literal:t})}return n.length?n:null}static _evaluateBinding(e,t,i,n,r,s){let o;return o=t.signature?Fi(e,i,n,r,t.signature):i!=t.source?wt(e,t.source):s&&ut(i)?wt(e,i):e.__data[i],t.negate&&(o=!o),o}}return i}),Gi=[];
|
|
198
198
|
/**
|
|
199
199
|
@license
|
|
200
200
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -204,7 +204,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
204
204
|
Code distributed by Google as part of the polymer project is also
|
|
205
205
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
206
206
|
*/
|
|
207
|
-
function
|
|
207
|
+
function Zi(e){}
|
|
208
208
|
/**
|
|
209
209
|
@license
|
|
210
210
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -213,7 +213,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
213
213
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
214
214
|
Code distributed by Google as part of the polymer project is also
|
|
215
215
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
216
|
-
*/function
|
|
216
|
+
*/function Qi(e){const t={};for(let i in e){const n=e[i];t[i]="function"==typeof n?{type:n}:n}return t}const en=$e(e=>{const t=Ht(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof r?t:null}function n(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=Qi(i))}e.__ownProperties=t}return e.__ownProperties}class r extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){Zi(this.prototype);const e=this._properties;this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=i(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=n(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=i(this);this.__properties=Object.assign({},e&&e._properties,n(this))}return this.__properties}static typeForProperty(e){const t=this._properties[e];return t&&t.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),tn="3.5.1",nn=window.ShadyCSS&&window.ShadyCSS.cssBuild,rn=$e(e=>{const t=en(Wi(e));function i(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;let t=e._properties;for(let i in t){let n=t[i];"value"in n&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[i]=n)}}return e.__propertyDefaults}function n(e){return e.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",e))||(e.__ownObservers=e.hasOwnProperty(JSCompiler_renameProperty("observers",e))?e.observers:null),e.__ownObservers}function r(e,t,i,n){i.computed&&(i.readOnly=!0),i.computed&&(e._hasReadOnlyEffect(t)?console.warn(`Cannot redefine computed property '${t}'.`):e._createComputedProperty(t,i.computed,n)),i.readOnly&&!e._hasReadOnlyEffect(t)?e._createReadOnlyProperty(t,!i.computed):!1===i.readOnly&&e._hasReadOnlyEffect(t)&&console.warn(`Cannot make readOnly property '${t}' non-readOnly.`),i.reflectToAttribute&&!e._hasReflectEffect(t)?e._createReflectedProperty(t):!1===i.reflectToAttribute&&e._hasReflectEffect(t)&&console.warn(`Cannot make reflected property '${t}' non-reflected.`),i.notify&&!e._hasNotifyEffect(t)?e._createNotifyingProperty(t):!1===i.notify&&e._hasNotifyEffect(t)&&console.warn(`Cannot make notify property '${t}' non-notify.`),i.observer&&e._createPropertyObserver(t,i.observer,n[i.observer]),e._addPropertyToAttributeMap(t)}function s(e,t,i,n){if(!nn){const r=t.content.querySelectorAll("style"),s=st(t),o=ot(i),a=t.content.firstElementChild;for(let i=0;i<o.length;i++){let r=o[i];r.textContent=e._processStyleText(r.textContent,n),t.content.insertBefore(r,a)}let l=0;for(let t=0;t<s.length;t++){let i=s[t],o=r[l];o!==i?(i=i.cloneNode(!0),o.parentNode.insertBefore(i,o)):l++,i.textContent=e._processStyleText(i.textContent,n)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,i),Ke&&nn&&Ae){const i=t.content.querySelectorAll("style");if(i){let t="";Array.from(i).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),e._styleSheet=new CSSStyleSheet,e._styleSheet.replaceSync(t)}}}function o(e){let t=null;if(e&&(!Ie||Me)&&(t=Ge.import(e,"template"),Ie&&!t))throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e);return t}class a extends t{static get polymerElementVersion(){return tn}static _finalizeClass(){t._finalizeClass.call(this);const e=n(this);e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):De||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(let t in e)r(this.prototype,t,e[t],e)}static createObservers(e,t){const i=this.prototype;for(let n=0;n<e.length;n++)i._createMethodObserver(e[n],t)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&o(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const e=this.importMeta;if(e)this._importPath=ke(e.url);else{const e=Ge.import(this.is);this._importPath=e&&e.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=Te,this.importPath=this.constructor.importPath;let e=i(this.constructor);if(e)for(let t in e){let i=e[t];if(this._canApplyPropertyDefault(t)){let e="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(t)?this._setPendingProperty(t,e,!0):this[t]=e}}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return xe(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;const i=this.importPath;s(this,t,e,i?Se(i):""),this.prototype._bindTemplate(t)}}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(e){const t=pt(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Le&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=Se(this.importPath)),Se(e,t)}static _parseTemplateContent(e,i,n){return i.dynamicFns=i.dynamicFns||this._properties,t._parseTemplateContent.call(this,e,i,n)}static _addTemplatePropertyEffect(e,i,n){return!Re||i in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,e,i,n)}}return a});
|
|
217
217
|
/**
|
|
218
218
|
* @fileoverview
|
|
219
219
|
* @suppress {checkPrototypalTypes}
|
|
@@ -234,7 +234,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
234
234
|
Code distributed by Google as part of the polymer project is also
|
|
235
235
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
236
236
|
*/
|
|
237
|
-
class
|
|
237
|
+
class sn{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,on.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),on.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof sn?e._cancelAsync():e=new sn,e.setConfig(t,i),e}}let on=new Set;const an=function(e){on.add(e)},ln=function(){const e=Boolean(on.size);return on.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e};
|
|
238
238
|
/**
|
|
239
239
|
@license
|
|
240
240
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -244,7 +244,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
244
244
|
Code distributed by Google as part of the polymer project is also
|
|
245
245
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
246
246
|
*/
|
|
247
|
-
let
|
|
247
|
+
let cn="string"==typeof document.head.style.touchAction,dn="__polymerGestures",hn="__polymerGesturesHandled",pn="__polymerGesturesTouchAction",un=25,_n=5,fn=2,mn=2500,yn=["mousedown","mousemove","mouseup","click"],gn=[0,1,4,2],bn=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function vn(e){return yn.indexOf(e)>-1}let wn=!1;function Cn(e){if(!vn(e)&&"touchend"!==e)return cn&&wn&&Ne?{passive:!0}:void 0}!function(){try{let e=Object.defineProperty({},"passive",{get(){wn=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();let Pn=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Sn=[],xn={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},kn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function En(e){return xn[e.localName]||!1}function An(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{let i=e.getRootNode();if(e.id){let n=i.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<n.length;e++)t.push(n[e])}}catch(e){}}return t}let Tn=function(e){let t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[hn]={skip:!0},"click"===e.type)){let t=!1,i=Bn(e);for(let e=0;e<i.length;e++){if(i[e].nodeType===Node.ELEMENT_NODE)if("label"===i[e].localName)Sn.push(i[e]);else if(En(i[e])){let n=An(i[e]);for(let e=0;e<n.length;e++)t=t||Sn.indexOf(n[e])>-1}if(i[e]===Dn.mouse.target)return}if(t)return;e.preventDefault(),e.stopPropagation()}};function On(e){let t=Pn?["click"]:yn;for(let i,n=0;n<t.length;n++)i=t[n],e?(Sn.length=0,document.addEventListener(i,Tn,!0)):document.removeEventListener(i,Tn,!0)}function Nn(e){Dn.mouse.mouseIgnoreJob||On(!0);let t=function(){On(),Dn.mouse.target=null,Dn.mouse.mouseIgnoreJob=null};Dn.mouse.target=Bn(e)[0],Dn.mouse.mouseIgnoreJob=sn.debounce(Dn.mouse.mouseIgnoreJob,Rt.after(mn),t)}function In(e){let t=e.type;if(!vn(t))return!1;if("mousemove"===t){let t=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!bn&&(t=gn[e.which]||0),Boolean(1&t)}return 0===(void 0===e.button?0:e.button)}function Mn(e){if("click"===e.type){if(0===e.detail)return!0;let t=Un(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let i=t.getBoundingClientRect(),n=e.pageX,r=e.pageY;return!(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom)}return!1}let Dn={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Rn(e){let t="auto",i=Bn(e);for(let e,n=0;n<i.length;n++)if(e=i[n],e[pn]){t=e[pn];break}return t}function Ln(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Fn(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",Nn,!!wn&&{passive:!0});const Bn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Hn={},zn=[];function jn(e,t){let i=document.elementFromPoint(e,t),n=i;for(;n&&n.shadowRoot&&!window.ShadyDOM;){let r=n;if(n=n.shadowRoot.elementFromPoint(e,t),r===n)break;n&&(i=n)}return i}function Un(e){const t=Bn(e);return t.length>0?t[0]:e.target}function Kn(e){let t,i=e.type,n=e.currentTarget[dn];if(!n)return;let r=n[i];if(r){if(!e[hn]&&(e[hn]={},"touch"===i.slice(0,5))){let t=(e=e).changedTouches[0];if("touchstart"===i&&1===e.touches.length&&(Dn.touch.id=t.identifier),Dn.touch.id!==t.identifier)return;cn||"touchstart"!==i&&"touchmove"!==i||qn(e)}if(t=e[hn],!t.skip){for(let i,n=0;n<zn.length;n++)i=zn[n],r[i.name]&&!t[i.name]&&i.flow&&i.flow.start.indexOf(e.type)>-1&&i.reset&&i.reset();for(let n,s=0;s<zn.length;s++)n=zn[s],r[n.name]&&!t[n.name]&&(t[n.name]=!0,n[i](e))}}}function qn(e){let t=e.changedTouches[0],i=e.type;if("touchstart"===i)Dn.touch.x=t.clientX,Dn.touch.y=t.clientY,Dn.touch.scrollDecided=!1;else if("touchmove"===i){if(Dn.touch.scrollDecided)return;Dn.touch.scrollDecided=!0;let i=Rn(e),n=!1,r=Math.abs(Dn.touch.x-t.clientX),s=Math.abs(Dn.touch.y-t.clientY);e.cancelable&&("none"===i?n=!0:"pan-x"===i?n=s>r:"pan-y"===i&&(n=r>s)),n?e.preventDefault():Qn("track")}}function $n(e,t,i){return!!Hn[t]&&(Vn(e,t,i),!0)}function Yn(e,t,i){return!!Hn[t]&&(Jn(e,t,i),!0)}function Vn(e,t,i){let n=Hn[t],r=n.deps,s=n.name,o=e[dn];o||(e[dn]=o={});for(let t,i,n=0;n<r.length;n++)t=r[n],Pn&&vn(t)&&"click"!==t||(i=o[t],i||(o[t]=i={_count:0}),0===i._count&&e.addEventListener(t,Kn,Cn(t)),i[s]=(i[s]||0)+1,i._count=(i._count||0)+1);e.addEventListener(t,i),n.touchAction&&Gn(e,n.touchAction)}function Jn(e,t,i){let n=Hn[t],r=n.deps,s=n.name,o=e[dn];if(o)for(let t,i,n=0;n<r.length;n++)t=r[n],i=o[t],i&&i[s]&&(i[s]=(i[s]||1)-1,i._count=(i._count||1)-1,0===i._count&&e.removeEventListener(t,Kn,Cn(t)));e.removeEventListener(t,i)}function Xn(e){zn.push(e);for(let t=0;t<e.emits.length;t++)Hn[e.emits[t]]=e}function Wn(e){for(let t,i=0;i<zn.length;i++){t=zn[i];for(let i,n=0;n<t.emits.length;n++)if(i=t.emits[n],i===e)return t}return null}function Gn(e,t){cn&&e instanceof HTMLElement&&Ft.run(()=>{e.style.touchAction=t}),e[pn]=t}function Zn(e,t,i){let n=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=i,pt(e).dispatchEvent(n),n.defaultPrevented){let e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Qn(e){let t=Wn(e);t.info&&(t.info.prevent=!0)}function er(){Dn.mouse.mouseIgnoreJob&&Dn.mouse.mouseIgnoreJob.flush()}function tr(e,t,i,n){t&&Zn(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:function(e){return Qn(e)}})}function ir(e,t,i){if(e.prevent)return!1;if(e.started)return!0;let n=Math.abs(e.x-t),r=Math.abs(e.y-i);return n>=_n||r>=_n}function nr(e,t,i){if(!t)return;let n,r=e.moves[e.moves.length-2],s=e.moves[e.moves.length-1],o=s.x-e.x,a=s.y-e.y,l=0;r&&(n=s.x-r.x,l=s.y-r.y),Zn(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:o,dy:a,ddx:n,ddy:l,sourceEvent:i,hover:function(){return jn(i.clientX,i.clientY)}})}function rr(e,t,i){let n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y),s=Un(i||t);!s||kn[s.localName]&&s.hasAttribute("disabled")||(isNaN(n)||isNaN(r)||n<=un&&r<=un||Mn(t))&&(e.prevent||Zn(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i}))}Xn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Fn(this.info)},mousedown:function(e){if(!In(e))return;let t=Un(e),i=this,n=function(e){In(e)||(tr("up",t,e),Fn(i.info))},r=function(e){In(e)&&tr("up",t,e),Fn(i.info)};Ln(this.info,n,r),tr("down",t,e)},touchstart:function(e){tr("down",Un(e),e.changedTouches[0],e)},touchend:function(e){tr("up",Un(e),e.changedTouches[0],e)}}),Xn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>fn&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Fn(this.info)},mousedown:function(e){if(!In(e))return;let t=Un(e),i=this,n=function(e){let n=e.clientX,r=e.clientY;ir(i.info,n,r)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Qn("tap"),i.info.addMove({x:n,y:r}),In(e)||(i.info.state="end",Fn(i.info)),t&&nr(i.info,t,e),i.info.started=!0)},r=function(e){i.info.started&&n(e),Fn(i.info)};Ln(this.info,n,r),this.info.x=e.clientX,this.info.y=e.clientY},touchstart:function(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){let t=Un(e),i=e.changedTouches[0],n=i.clientX,r=i.clientY;ir(this.info,n,r)&&("start"===this.info.state&&Qn("tap"),this.info.addMove({x:n,y:r}),nr(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend:function(e){let t=Un(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),nr(this.info,t,i))}}),Xn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){In(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){In(e)&&rr(this.info,e)},touchstart:function(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){rr(this.info,e.changedTouches[0],e)}});const sr=Un,or=$e(e=>{class t extends e{_addEventListenerToNode(e,t,i){$n(e,t,i)||super._addEventListenerToNode(e,t,i)}_removeEventListenerFromNode(e,t,i){Yn(e,t,i)||super._removeEventListenerFromNode(e,t,i)}}return t}),ar=/:host\(:dir\((ltr|rtl)\)\)/g,lr=':host([dir="$1"])',cr=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,dr=':host([dir="$2"]) $1',hr=/:dir\((?:ltr|rtl)\)/,pr=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),ur=[];
|
|
248
248
|
/**
|
|
249
249
|
@license
|
|
250
250
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -253,7 +253,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
253
253
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
254
254
|
Code distributed by Google as part of the polymer project is also
|
|
255
255
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
256
|
-
*/let
|
|
256
|
+
*/let _r=null,fr="";function mr(){fr=document.documentElement.getAttribute("dir")}function yr(e){if(!e.__autoDirOptOut){e.setAttribute("dir",fr)}}function gr(){mr(),fr=document.documentElement.getAttribute("dir");for(let e=0;e<ur.length;e++)yr(ur[e])}function br(){_r&&_r.takeRecords().length&&gr()}const vr=$e(e=>{pr||_r||(mr(),_r=new MutationObserver(gr),_r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const t=qt(e);class i extends t{static _processStyleText(e,i){return e=t._processStyleText.call(this,e,i),!pr&&hr.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(ar,lr),t=t.replace(cr,dr),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){t.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(br(),ur.push(this),yr(this))}disconnectedCallback(){if(t.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const e=ur.indexOf(this);e>-1&&ur.splice(e,1)}}}return i.__activateDir=!1,i});
|
|
257
257
|
/**
|
|
258
258
|
@license
|
|
259
259
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -262,7 +262,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
262
262
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
263
263
|
Code distributed by Google as part of the polymer project is also
|
|
264
264
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
265
|
-
*/let
|
|
265
|
+
*/let wr=!1,Cr=[],Pr=[];function Sr(){wr=!0,requestAnimationFrame((function(){wr=!1,xr(Cr),setTimeout((function(){kr(Pr)}))}))}function xr(e){for(;e.length;)Er(e.shift())}function kr(e){for(let t=0,i=e.length;t<i;t++)Er(e.shift())}function Er(e){const t=e[0],i=e[1],n=e[2];try{i.apply(t,n)}catch(e){setTimeout(()=>{throw e})}}function Ar(e,t,i){wr||Sr(),Pr.push([e,t,i])}
|
|
266
266
|
/**
|
|
267
267
|
@license
|
|
268
268
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -271,7 +271,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
271
271
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
272
272
|
Code distributed by Google as part of the polymer project is also
|
|
273
273
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
274
|
-
*/function
|
|
274
|
+
*/function Tr(){document.body.removeAttribute("unresolved")}
|
|
275
275
|
/**
|
|
276
276
|
@license
|
|
277
277
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -281,7 +281,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
281
281
|
Code distributed by Google as part of the polymer project is also
|
|
282
282
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
283
283
|
*/
|
|
284
|
-
function
|
|
284
|
+
function Or(e,t,i){return{index:e,removed:t,addedCount:i}}"interactive"===document.readyState||"complete"===document.readyState?Tr():window.addEventListener("DOMContentLoaded",Tr);const Nr=0,Ir=1,Mr=2,Dr=3;function Rr(e,t,i,n,r,s){let o=s-r+1,a=i-t+1,l=new Array(o);for(let e=0;e<o;e++)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;e++)l[0][e]=e;for(let i=1;i<o;i++)for(let s=1;s<a;s++)if(jr(e[t+s-1],n[r+i-1]))l[i][s]=l[i-1][s-1];else{let e=l[i-1][s]+1,t=l[i][s-1]+1;l[i][s]=e<t?e:t}return l}function Lr(e){let t=e.length-1,i=e[0].length-1,n=e[t][i],r=[];for(;t>0||i>0;){if(0==t){r.push(Mr),i--;continue}if(0==i){r.push(Dr),t--;continue}let s,o=e[t-1][i-1],a=e[t-1][i],l=e[t][i-1];s=a<l?a<o?a:o:l<o?l:o,s==o?(o==n?r.push(Nr):(r.push(Ir),n=o),t--,i--):s==a?(r.push(Dr),t--,n=a):(r.push(Mr),i--,n=l)}return r.reverse(),r}function Fr(e,t,i,n,r,s){let o,a=0,l=0,c=Math.min(i-t,s-r);if(0==t&&0==r&&(a=Br(e,n,c)),i==e.length&&s==n.length&&(l=Hr(e,n,c-a)),r+=a,s-=l,(i-=l)-(t+=a)==0&&s-r==0)return[];if(t==i){for(o=Or(t,[],0);r<s;)o.removed.push(n[r++]);return[o]}if(r==s)return[Or(t,[],i-t)];let d=Lr(Rr(e,t,i,n,r,s));o=void 0;let h=[],p=t,u=r;for(let e=0;e<d.length;e++)switch(d[e]){case Nr:o&&(h.push(o),o=void 0),p++,u++;break;case Ir:o||(o=Or(p,[],0)),o.addedCount++,p++,o.removed.push(n[u]),u++;break;case Mr:o||(o=Or(p,[],0)),o.addedCount++,p++;break;case Dr:o||(o=Or(p,[],0)),o.removed.push(n[u]),u++}return o&&h.push(o),h}function Br(e,t,i){for(let n=0;n<i;n++)if(!jr(e[n],t[n]))return n;return i}function Hr(e,t,i){let n=e.length,r=t.length,s=0;for(;s<i&&jr(e[--n],t[--r]);)s++;return s}function zr(e,t){return Fr(e,0,e.length,t,0,t.length)}function jr(e,t){return e===t}
|
|
285
285
|
/**
|
|
286
286
|
@license
|
|
287
287
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -290,7 +290,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
290
290
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
291
291
|
Code distributed by Google as part of the polymer project is also
|
|
292
292
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
293
|
-
*/function
|
|
293
|
+
*/function Ur(e){return"slot"===e.localName}let Kr=class{static getFlattenedNodes(e){const t=pt(e);return Ur(e)?(e=e,t.assignedNodes({flatten:!0})):Array.from(t.childNodes).map(e=>Ur(e)?pt(e=e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){Ur(this._target)?this._listenSlots([this._target]):pt(this._target).children&&(this._listenSlots(pt(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){Ur(this._target)?this._unlistenSlots([this._target]):pt(this._target).children&&(this._unlistenSlots(pt(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,Ft.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let i=e[t];i.addedNodes&&this._listenSlots(i.addedNodes),i.removedNodes&&this._unlistenSlots(i.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let e={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),i=zr(t,this._effectiveNodes);for(let t,n=0;n<i.length&&(t=i[n]);n++)for(let i,n=0;n<t.removed.length&&(i=t.removed[n]);n++)e.removedNodes.push(i);for(let n,r=0;r<i.length&&(n=i[r]);r++)for(let i=n.index;i<n.index+n.addedCount;i++)e.addedNodes.push(t[i]);this._effectiveNodes=t;let n=!1;return(e.addedNodes.length||e.removedNodes.length)&&(n=!0,this.callback.call(this._target,e)),n}_listenSlots(e){for(let t=0;t<e.length;t++){let i=e[t];Ur(i)&&i.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let i=e[t];Ur(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}};
|
|
294
294
|
/**
|
|
295
295
|
@license
|
|
296
296
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -299,7 +299,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
299
299
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
300
300
|
Code distributed by Google as part of the polymer project is also
|
|
301
301
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
302
|
-
*/const
|
|
302
|
+
*/const qr=function(){let e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=ln()}while(e||t)},$r=Element.prototype,Yr=$r.matches||$r.matchesSelector||$r.mozMatchesSelector||$r.msMatchesSelector||$r.oMatchesSelector||$r.webkitMatchesSelector,Vr=function(e,t){return Yr.call(e,t)};
|
|
303
303
|
/**
|
|
304
304
|
@license
|
|
305
305
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -308,7 +308,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
308
308
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
309
309
|
Code distributed by Google as part of the polymer project is also
|
|
310
310
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
311
|
-
*/class
|
|
311
|
+
*/class Jr{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new Kr(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(pt(this.node).contains(e))return!0;let t=e,i=e.ownerDocument;for(;t&&t!==i&&t!==this.node;)t=pt(t).parentNode||pt(t).host;return t===this.node}getOwnerRoot(){return pt(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?pt(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=pt(this.node).assignedSlot;for(;t;)e.push(t),t=pt(t).assignedSlot;return e}importNode(e,t){let i=this.node instanceof Document?this.node:this.node.ownerDocument;return pt(i).importNode(e,t)}getEffectiveChildNodes(){return Kr.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),i=[];for(let n,r=0,s=t.length;r<s&&(n=t[r]);r++)n.nodeType===Node.ELEMENT_NODE&&Vr(n,e)&&i.push(n);return i}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function Xr(e,t){for(let i=0;i<t.length;i++){let n=t[i];e[n]=function(){return this.node[n].apply(this.node,arguments)}}}function Wr(e,t){for(let i=0;i<t.length;i++){let n=t[i];Object.defineProperty(e,n,{get:function(){return this.node[n]},configurable:!0})}}function Gr(e,t){for(let i=0;i<t.length;i++){let n=t[i];Object.defineProperty(e,n,{get:function(){return this.node[n]},set:function(e){this.node[n]=e},configurable:!0})}}class Zr{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}Jr.prototype.cloneNode,Jr.prototype.appendChild,Jr.prototype.insertBefore,Jr.prototype.removeChild,Jr.prototype.replaceChild,Jr.prototype.setAttribute,Jr.prototype.removeAttribute,Jr.prototype.querySelector,Jr.prototype.querySelectorAll,Jr.prototype.parentNode,Jr.prototype.firstChild,Jr.prototype.lastChild,Jr.prototype.nextSibling,Jr.prototype.previousSibling,Jr.prototype.firstElementChild,Jr.prototype.lastElementChild,Jr.prototype.nextElementSibling,Jr.prototype.previousElementSibling,Jr.prototype.childNodes,Jr.prototype.children,Jr.prototype.classList,Jr.prototype.textContent,Jr.prototype.innerHTML;let Qr=Jr;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(Jr.prototype).forEach(t=>{"activeElement"!=t&&(e.prototype[t]=Jr.prototype[t])}),Wr(e.prototype,["classList"]),Qr=e,Object.defineProperties(Zr.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&es(e).getOwnerRoot(),i=this.path;for(let e=0;e<i.length;e++){const n=i[e];if(es(n).getOwnerRoot()===t)return n}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else Xr(Jr.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),Wr(Jr.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),Gr(Jr.prototype,["textContent","innerHTML","className"]);const es=function(e){if((e=e||document)instanceof Qr)return e;if(e instanceof Zr)return e;let t=e.__domApi;return t||(t=e instanceof Event?new Zr(e):new Qr(e),e.__domApi=t),t},ts=window.ShadyDOM,is=window.ShadyCSS;
|
|
312
312
|
/**
|
|
313
313
|
@license
|
|
314
314
|
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
|
@@ -317,7 +317,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
317
317
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
318
318
|
Code distributed by Google as part of the polymer project is also
|
|
319
319
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
320
|
-
*/function
|
|
320
|
+
*/function ns(e,t){return pt(e).getRootNode()===t}function rs(e,t=!1){if(!ts||!is)return null;if(!ts.handlesDynamicScoping)return null;const i=is.ScopingShim;if(!i)return null;const n=i.scopeForNode(e),r=pt(e).getRootNode(),s=e=>{if(!ns(e,r))return;const t=Array.from(ts.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const s=t[e];if(!ns(s,r))continue;const o=i.currentScopeForNode(s);o!==n&&(""!==o&&i.unscopeNode(s,o),i.scopeNode(s,n))}};if(s(e),t){const t=new MutationObserver(e=>{for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.addedNodes.length;e++){const t=i.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&s(t)}}});return t.observe(e,{childList:!0,subtree:!0}),t}return null}
|
|
321
321
|
/**
|
|
322
322
|
* @fileoverview
|
|
323
323
|
* @suppress {checkPrototypalTypes}
|
|
@@ -328,7 +328,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
328
328
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
329
329
|
* Google as part of the polymer project is also subject to an additional IP
|
|
330
330
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
331
|
-
*/const
|
|
331
|
+
*/const ss="disable-upgrade",os=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]};$e(e=>{const t=rn(e);let i=os(t);class n extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return i.call(this).concat(ss)}_initializeProperties(){this.hasAttribute(ss)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,i,n){e==ss?this.__isUpgradeDisabled&&null==i&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,pt(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,i,n)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}return n});
|
|
332
332
|
/**
|
|
333
333
|
@license
|
|
334
334
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -338,7 +338,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
338
338
|
Code distributed by Google as part of the polymer project is also
|
|
339
339
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
340
340
|
*/
|
|
341
|
-
const
|
|
341
|
+
const as="disable-upgrade";let ls=window.ShadyCSS;const cs=$e(e=>{const t=or(rn(e)),i=nn?t:vr(t),n=os(i),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class s extends i{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,i){(this.__dataAttributes&&this.__dataAttributes[e]||e===as)&&this.attributeChangedCallback(e,t,i,null)}setAttribute(e,t){if(Ue&&!this._legacyForceObservedAttributes){const i=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,i,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(Ue&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return Ue&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],Zi(this.prototype)),this.__observedAttributes):n.call(this).concat(as)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,i,n){t!==i&&(e==as?this.__isUpgradeDisabled&&null==i&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,pt(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,i,n),this.attributeChanged(e,t,i)))}attributeChanged(e,t,i){}_initializeProperties(){if(De&&this.hasAttribute(as))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),Ue&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,i=e.length;t<i;t++){const i=e[t];this.__attributeReaction(i.name,null,i.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,i){this._propertyToAttribute(e,t,i)}serializeValueToAttribute(e,t,i){this._valueToNodeAttribute(i||this,e,t)}extend(e,t){if(!e||!t)return e||t;let i=Object.getOwnPropertyNames(t);for(let n,r=0;r<i.length&&(n=i[r]);r++){let i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}return e}mixin(e,t){for(let i in t)e[i]=t[i];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){let t=this.constructor._contentForTemplate(e);return document.importNode(t,!0)}fire(e,t,i){i=i||{},t=null==t?{}:t;let n=new Event(e,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed});n.detail=t;let r=i.node||this;return pt(r).dispatchEvent(n),n}listen(e,t,i){e=e||this;let n=this.__boundListeners||(this.__boundListeners=new WeakMap),r=n.get(e);r||(r={},n.set(e,r));let s=t+i;r[s]||(r[s]=this._addMethodEventListenerToNode(e,t,i,this))}unlisten(e,t,i){e=e||this;let n=this.__boundListeners&&this.__boundListeners.get(e),r=t+i,s=n&&n[r];s&&(this._removeEventListenerFromNode(e,t,s),n[r]=null)}setScrollDirection(e,t){Gn(t||this,r[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=pt(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=es(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return es(this).getEffectiveChildNodes()}queryDistributedElements(e){return es(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let i,n=0;i=e[n];n++)i.nodeType!==Node.COMMENT_NODE&&t.push(i.textContent);return t.join("")}queryEffectiveChildren(e){let t=this.queryDistributedElements(e);return t&&t[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){let t=this.root.querySelector(e||"slot");return t?es(t).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(e){const t=this;return t!==e&&pt(t).contains(e)&&pt(t).getRootNode()===pt(e).getRootNode()}isLocalDescendant(e){return this.root===pt(e).getRootNode()}scopeSubtree(e,t=!1){return rs(e,t)}getComputedStyleValue(e){return ls.getComputedStyleValue(this,e)}debounce(e,t,i){return this._debouncers=this._debouncers||{},this._debouncers[e]=sn.debounce(this._debouncers[e],i>0?Rt.after(i):Ft,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return t>0?Rt.run(e.bind(this),t):~Ft.run(e.bind(this))}cancelAsync(e){e<0?Ft.cancel(~e):Rt.cancel(e)}create(e,t){let i=document.createElement(e);if(t)if(i.setProperties)i.setProperties(t);else for(let e in t)i[e]=t[e];return i}elementMatches(e,t){return Vr(t||this,e)}toggleAttribute(e,t){let i=this;return 3===arguments.length&&(i=arguments[2]),1==arguments.length&&(t=!i.hasAttribute(e)),t?(pt(i).setAttribute(e,""),!0):(pt(i).removeAttribute(e),!1)}toggleClass(e,t,i){i=i||this,1==arguments.length&&(t=!i.classList.contains(e)),t?i.classList.add(e):i.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,i,n){n=n||this,this.transform("translate3d("+e+","+t+","+i+")",n)}arrayDelete(e,t){let i;if(Array.isArray(e)){if(i=e.indexOf(t),i>=0)return e.splice(i,1)}else{if(i=wt(this,e).indexOf(t),i>=0)return this.splice(e,i,1)}return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return s.prototype.is="",s}),ds={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},hs={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},ps=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},hs);
|
|
342
342
|
/**
|
|
343
343
|
@license
|
|
344
344
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -347,7 +347,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
347
347
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
348
348
|
Code distributed by Google as part of the polymer project is also
|
|
349
349
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
350
|
-
*/function
|
|
350
|
+
*/function us(e,t,i){const n=e._noAccessors,r=Object.getOwnPropertyNames(e);for(let s=0;s<r.length;s++){let o=r[s];if(!(o in i))if(n)t[o]=e[o];else{let i=Object.getOwnPropertyDescriptor(e,o);i&&(i.configurable=!0,Object.defineProperty(t,o,i))}}}function _s(e,t){return vs({},cs(t),e)}function fs(e,t,i){for(let n=0;n<t.length;n++)ms(e,t[n],i,ps)}function ms(e,t,i,n){us(t,e,n);for(let e in ds)t[e]&&(i[e]=i[e]||[],i[e].push(t[e]))}function ys(e,t,i){t=t||[];for(let n=e.length-1;n>=0;n--){let r=e[n];r?Array.isArray(r)?ys(r,t):t.indexOf(r)<0&&(!i||i.indexOf(r)<0)&&t.unshift(r):console.warn("behavior is null, check for missing or 404 import")}return t}function gs(e,t){for(const i in t){const n=e[i],r=t[i];e[i]=!("value"in r)&&n&&"value"in n?Object.assign({value:n.value},r):r}}const bs=cs(HTMLElement);function vs(e,t,i){let n;const r={};class s extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(n)for(let e,t=0;t<n.length;t++)e=n[t],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){const t={};if(n)for(let e=0;e<n.length;e++)gs(t,n[e].properties);return gs(t,e.properties),t}static get observers(){let t=[];if(n)for(let e,i=0;i<n.length;i++)e=n[i],e.observers&&(t=t.concat(e.observers));return e.observers&&(t=t.concat(e.observers)),t}created(){super.created();const e=r.created;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}_registered(){const e=s.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),De&&o(e);const t=Object.getPrototypeOf(this);let i=r.beforeRegister;if(i)for(let e=0;e<i.length;e++)i[e].call(t);if(i=r.registered,i)for(let e=0;e<i.length;e++)i[e].call(t)}}_applyListeners(){super._applyListeners();const e=r.listeners;if(e)for(let t=0;t<e.length;t++){const i=e[t];if(i)for(let e in i)this._addMethodEventListenerToNode(this,e,i[e])}}_ensureAttributes(){const e=r.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];for(let e in i)this._ensureAttribute(e,i[e])}super._ensureAttributes()}ready(){super.ready();let e=r.ready;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attached(){super.attached();let e=r.attached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}detached(){super.detached();let e=r.detached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attributeChanged(e,t,i){super.attributeChanged();let n=r.attributeChanged;if(n)for(let r=0;r<n.length;r++)n[r].call(this,e,t,i)}}if(i){Array.isArray(i)||(i=[i]);let e=t.prototype.behaviors;n=ys(i,null,e),s.prototype.behaviors=e?e.concat(i):n}const o=t=>{n&&fs(t,n,r),ms(t,e,r,hs)};return De||o(s.prototype),s.generatedFrom=e,s}const ws=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let i=t?t(bs):bs;return i=vs(e,i,e.behaviors),i.is=i.prototype.is=e.is,i},Cs=function(e){let t;return t="function"==typeof e?e:Cs.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
|
|
351
351
|
/**
|
|
352
352
|
@license
|
|
353
353
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -366,7 +366,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
366
366
|
Code distributed by Google as part of the polymer project is also
|
|
367
367
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
368
368
|
*/
|
|
369
|
-
function
|
|
369
|
+
function Ps(e,t,i,n,r){let s;r&&(s="object"==typeof i&&null!==i,s&&(n=e.__dataTemp[t]));let o=n!==i&&(n==n||i==i);return s&&o&&(e.__dataTemp[t]=i),o}Cs.Class=ws;const Ss=$e(e=>{class t extends e{_shouldPropertyChange(e,t,i){return Ps(this,e,t,i,!0)}}return t}),xs=$e(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return Ps(this,e,t,i,this.mutableData)}}return t});Ss._mutablePropertyChange=Ps;
|
|
370
370
|
/**
|
|
371
371
|
@license
|
|
372
372
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -376,7 +376,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
376
376
|
Code distributed by Google as part of the polymer project is also
|
|
377
377
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
378
378
|
*/
|
|
379
|
-
let
|
|
379
|
+
let ks=null;function Es(){return ks}Es.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Es,writable:!0}});const As=Wi(Es),Ts=Ss(As);function Os(e,t){ks=e,Object.setPrototypeOf(e,t.prototype),new t,ks=null}const Ns=Wi(class{});function Is(e,t){for(let i=0;i<t.length;i++){let n=t[i];if(Boolean(e)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)e?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(e)n.__polymerReplaced__=document.createComment("hidden-slot"),pt(pt(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const e=n.__polymerReplaced__;e&&pt(pt(e).parentNode).replaceChild(n,e)}else n.style&&(e?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=e,n._showHideChildren&&n._showHideChildren(e)}}class Ms extends Ns{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(e,t,i)}}_showHideChildren(e){Is(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ms.prototype.__dataHost,Ms.prototype.__templatizeOptions,Ms.prototype._methodHost,Ms.prototype.__templatizeOwner,Ms.prototype.__hostProps;const Ds=Ss(Ms);function Rs(e){let t=e.__dataHost;return t&&t._methodHost||t}function Ls(e,t,i){let n=i.mutableData?Ds:Ms;Us.mixin&&(n=Us.mixin(n));let r=class extends n{};return r.prototype.__templatizeOptions=i,r.prototype._bindTemplate(e),Hs(r,e,t,i),r}function Fs(e,t,i,n){let r=i.forwardHostProp;if(r&&t.hasHostProps){const s="template"==e.localName;let o=t.templatizeTemplateClass;if(!o){if(s){let e=i.mutableData?Ts:As;class n extends e{}o=t.templatizeTemplateClass=n}else{const i=e.constructor;class n extends i{}o=t.templatizeTemplateClass=n}let a=t.hostProps;for(let e in a)o.prototype._addPropertyEffect("_host_"+e,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Bs(e,r)}),o.prototype._createNotifyingProperty("_host_"+e);Re&&n&&Ks(t,i,n)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),s)Os(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const i=t.hostProps;for(let t in i)if(t="_host_"+t,t in e){const i=e[t];delete e[t],e.__data[t]=i}}}}function Bs(e,t){return function(e,i,n){t.call(e.__templatizeOwner,i.substring("_host_".length),n[i])}}function Hs(e,t,i,n){let r=i.hostProps||{};for(let t in n.instanceProps){delete r[t];let i=n.notifyInstanceProp;i&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:zs(t,i)})}if(n.forwardHostProp&&t.__dataHost)for(let t in r)i.hasHostProps||(i.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:js()})}function zs(e,t){return function(e,i,n){t.call(e.__templatizeOwner,e,i,n[i])}}function js(){return function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}}function Us(e,t,i){if(Ie&&!Rs(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let n=(t?t.constructor:Ms)._parseTemplate(e),r=n.templatizeInstanceClass;r||(r=Ls(e,n,i),n.templatizeInstanceClass=r);const s=Rs(e);Fs(e,n,i,s);let o=class extends r{};return o.prototype._methodHost=s,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=n.hostProps,o=o,o}function Ks(e,t,i){const n=i.constructor._properties,{propertyEffects:r}=e,{instanceProps:s}=t;for(let e in r)if(!(n[e]||s&&s[e])){const t=r[e];for(let i=0;i<t.length;i++){const{part:n}=t[i].info;if(!n.signature||!n.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function qs(e,t){let i;for(;t;)if(i=t.__dataHost?t:t.__templatizeInstance){if(i.__dataHost==e)return i;t=i.__dataHost}else t=pt(t).parentNode;return null}
|
|
380
380
|
/**
|
|
381
381
|
@license
|
|
382
382
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -385,7 +385,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
385
385
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
386
386
|
Code distributed by Google as part of the polymer project is also
|
|
387
387
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
388
|
-
*/let
|
|
388
|
+
*/let $s=!1;function Ys(){if(De&&!Ee){if(!$s){$s=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}
|
|
389
389
|
/**
|
|
390
390
|
@license
|
|
391
391
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -394,7 +394,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
394
394
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
395
395
|
Code distributed by Google as part of the polymer project is also
|
|
396
396
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
397
|
-
*/const
|
|
397
|
+
*/const Vs=or(xs(Wi(HTMLElement)));class Js extends Vs{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),Ie)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,i,n){this.mutableData=!0}connectedCallback(){Ys()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){pt(pt(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver(()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()});return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}customElements.define("dom-bind",Js);
|
|
398
398
|
/**
|
|
399
399
|
@license
|
|
400
400
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -404,7 +404,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
404
404
|
Code distributed by Google as part of the polymer project is also
|
|
405
405
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
406
406
|
*/
|
|
407
|
-
const
|
|
407
|
+
const Xs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Ws{constructor(e,t){eo(e,t);const i=t.reduce((t,i,n)=>t+Gs(i)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Gs(e){if(e instanceof Ws)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function Zs(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Ws)return Gs(e);throw new Error("non-template value passed to Polymer's html function: "+e)}const Qs=function(e,...t){eo(e,t);const i=document.createElement("template");let n=t.reduce((t,i,n)=>t+Zs(i)+e[n+1],e[0]);return Xs&&(n=Xs.createHTML(n)),i.innerHTML=n,i},eo=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},to=rn(HTMLElement),io=xs(to);class no extends io{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!je,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ys()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=pt(pt(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Us(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(e,t){let i=this.__instances;for(let n,r=0;r<i.length&&(n=i[r]);r++)n.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,i){if(gt(this.as,t)){let n=e[this.itemsIndexAs];t==this.as&&(this.items[n]=i);let r=yt(this.as,`${JSCompiler_renameProperty("items",this)}.${n}`,t);this.notifyPath(r,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)0===e.indexOf(t[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=sn.debounce(this.__renderDebouncer,t>0?Rt.after(t):Ft,e.bind(this)),an(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),qr()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),je&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((t,i,n)=>this.__filterFn(e[t],i,n))),this.__sortFn&&t.sort((t,i)=>this.__sortFn(e[t],e[i])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),n=Math.max(t-i,0),this.__chunkCount=n||1):(n=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+n,e)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const n=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){let t=this.__instances[r],s=i[r],o=e[s];n[s]=r,t?(t._setPendingProperty(this.as,o),t._setPendingProperty(this.indexAs,r),t._setPendingProperty(this.itemsIndexAs,s),t._flushProperties()):this.__insertInstance(o,r,s)}for(let e=this.__instances.length-1;e>=r;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const i=pt(t.root);for(let e=0;e<t.children.length;e++){let n=t.children[e];i.appendChild(n)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=i,new this.__ctor(n)}__insertInstance(e,t,i){const n=this.__stampInstance(e,t,i);let r=this.__instances[t+1],s=r?r.children[0]:this;return pt(pt(this).parentNode).insertBefore(n.root,s),this.__instances[t]=n,n}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),n=i.indexOf("."),r=n<0?i:i.substring(0,n);if(r==parseInt(r,10)){let e=n<0?"":i.substring(n+1);this.__handleObservedPaths(e);let s=this.__itemsIdxToInstIdx[r],o=this.__instances[s];if(o){let i=this.as+(e?"."+e:"");o._setPendingPropertyOrPath(i,t,!1,!0),o._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return qs(this.template,e)}}customElements.define(no.is,no);
|
|
408
408
|
/**
|
|
409
409
|
@license
|
|
410
410
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -414,7 +414,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
414
414
|
Code distributed by Google as part of the polymer project is also
|
|
415
415
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
416
416
|
*/
|
|
417
|
-
class
|
|
417
|
+
class ro extends to{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=sn.debounce(this.__renderDebouncer,Ft,()=>this.__render()),an(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=pt(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||pt(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Ys()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:pt(e).querySelector("template");if(!t){let e=new MutationObserver(()=>{if(!pt(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=pt(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(pt(this).previousSibling!==t[t.length-1])for(let i,n=0;n<t.length&&(i=t[n]);n++)pt(e).insertBefore(i,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){qr()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),je&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}class so extends ro{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(Ie&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const i=t._bindTemplate(this.__template,!0);i.runEffects=(e,t,i)=>{let n=this.__syncInfo;if(this.if)n&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(n.changedProps,t)),e(t,i);else if(this.__instance)if(n||(n=this.__syncInfo={runEffects:e,changedProps:{}}),i)for(const e in t){const t=_t(e);n.changedProps[t]=this.__dataHost[t]}else Object.assign(n.changedProps,t)},this.__instance=t._stampTemplate(this.__template,i),pt(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,Is(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}class oo extends ro{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Us(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[_t(e)]=!0))}})),this.__instance=new this.__ctor,pt(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=pt(e[0]).parentNode;if(t){t=pt(t);for(let i,n=0;n<e.length&&(i=e[n]);n++)t.removeChild(i)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let e=this.__invalidProps;if(e){this.__invalidProps=null;for(let t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}}const ao=ze?so:oo;customElements.define(ao.is,ao);
|
|
418
418
|
/**
|
|
419
419
|
@license
|
|
420
420
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -424,7 +424,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
424
424
|
Code distributed by Google as part of the polymer project is also
|
|
425
425
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
426
426
|
*/
|
|
427
|
-
let
|
|
427
|
+
let lo=$e(e=>{let t=rn(e);class i extends t{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let i=t.path;if(i==JSCompiler_renameProperty("items",this)){let i=t.base||[],n=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),n){let e=zr(i,n);this.__applySplices(e)}this.__lastItems=i,this.__lastMulti=e}else if(t.path==JSCompiler_renameProperty("items",this)+".splices")this.__applySplices(t.value.indexSplices);else{let e=i.slice((JSCompiler_renameProperty("items",this)+".").length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(e){let t=this.__selectedMap;for(let i=0;i<e.length;i++){let n=e[i];t.forEach((e,i)=>{e<n.index||(e>=n.index+n.removed.length?t.set(i,e+n.addedCount-n.removed.length):t.set(i,-1))});for(let e=0;e<n.addedCount;e++){let i=n.index+e;t.has(this.items[i])&&t.set(this.items[i],i)}}this.__updateLinks();let i=0;t.forEach((e,n)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null,t.delete(n)):i++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let e=0;this.__selectedMap.forEach(t=>{t>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${t}`,`${JSCompiler_renameProperty("selected",this)}.${e++}`)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${e}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${e}`)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let t=this.__selectedIndexForItemIndex(e);if(t>=0){let e=0;this.__selectedMap.forEach((i,n)=>{t==e++&&this.deselect(n)})}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(e){let t=this.__selectedMap.get(e);if(t>=0){let i;this.__selectedMap.delete(e),this.multi&&(i=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){let t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}return i})(to);class co extends lo{static get is(){return"array-selector"}static get template(){return null}}customElements.define(co.is,co);
|
|
428
428
|
/**
|
|
429
429
|
@license
|
|
430
430
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -434,7 +434,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
434
434
|
Code distributed by Google as part of the polymer project is also
|
|
435
435
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
436
436
|
*/
|
|
437
|
-
const
|
|
437
|
+
const ho=new ye;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,i){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,i){},styleSubtree(e,t){ho.processStyles(),K(e,t)},styleElement(e){ho.processStyles()},styleDocument(e){ho.processStyles(),K(document.body,e)},getComputedStyleValue:(e,t)=>q(e,t),flushCustomStyles(){},nativeCss:s,nativeShadow:e,cssBuild:i,disableRuntime:r}),window.ShadyCSS.CustomStyleInterface=ho;
|
|
438
438
|
/**
|
|
439
439
|
@license
|
|
440
440
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -444,7 +444,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
444
444
|
Code distributed by Google as part of the polymer project is also
|
|
445
445
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
446
446
|
*/
|
|
447
|
-
const
|
|
447
|
+
const po="include",uo=window.ShadyCSS.CustomStyleInterface;class _o extends HTMLElement{constructor(){super(),this._style=null,uo.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;this._style=e;const t=e.getAttribute(po);return t&&(e.removeAttribute(po),e.textContent=lt(t)+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",_o);
|
|
448
448
|
/**
|
|
449
449
|
@license
|
|
450
450
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -454,7 +454,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
454
454
|
Code distributed by Google as part of the polymer project is also
|
|
455
455
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
456
456
|
*/
|
|
457
|
-
const
|
|
457
|
+
const fo=cs(HTMLElement).prototype,mo=Qs`
|
|
458
458
|
<custom-style>
|
|
459
459
|
<style is="custom-style">
|
|
460
460
|
[hidden] {
|
|
@@ -816,7 +816,7 @@ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
|
816
816
|
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
817
817
|
part of the polymer project is also subject to an additional IP rights grant
|
|
818
818
|
found at http://polymer.github.io/PATENTS.txt
|
|
819
|
-
*/
|
|
819
|
+
*/mo.setAttribute("style","display: none;"),document.head.appendChild(mo.content);var yo=document.createElement("style");yo.textContent="[hidden] { display: none !important; }",document.head.appendChild(yo);
|
|
820
820
|
/**
|
|
821
821
|
@license
|
|
822
822
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -827,7 +827,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
827
827
|
part of the polymer project is also subject to an additional IP rights grant
|
|
828
828
|
found at http://polymer.github.io/PATENTS.txt
|
|
829
829
|
*/
|
|
830
|
-
class
|
|
830
|
+
class go{constructor(e){go[" "](e),this.type=e&&e.type||"default",this.key=e&&e.key,e&&"value"in e&&(this.value=e.value)}get value(){var e=this.type,t=this.key;if(e&&t)return go.types[e]&&go.types[e][t]}set value(e){var t=this.type,i=this.key;t&&i&&(t=go.types[t]=go.types[t]||{},null==e?delete t[i]:t[i]=e)}get list(){if(this.type){var e=go.types[this.type];return e?Object.keys(e).map((function(e){return bo[this.type][e]}),this):[]}}byKey(e){return this.key=e,this.value}}go[" "]=function(){},go.types={};var bo=go.types;Cs({is:"iron-meta",properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(e,t,i){var n=new go({type:e,key:t});return void 0!==i&&i!==n.value?n.value=i:this.value!==n.value&&(this.value=n.value),n},get list(){return this.__meta&&this.__meta.list},_selfChanged:function(e){e&&(this.value=this)},byKey:function(e){return new go({type:this.type,key:e}).value}}),
|
|
831
831
|
/**
|
|
832
832
|
@license
|
|
833
833
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -838,7 +838,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
838
838
|
part of the polymer project is also subject to an additional IP rights grant
|
|
839
839
|
found at http://polymer.github.io/PATENTS.txt
|
|
840
840
|
*/
|
|
841
|
-
|
|
841
|
+
Cs({_template:Qs`
|
|
842
842
|
<style>
|
|
843
843
|
:host {
|
|
844
844
|
@apply --layout-inline;
|
|
@@ -859,7 +859,7 @@ Ps({_template:eo`
|
|
|
859
859
|
display: none;
|
|
860
860
|
}
|
|
861
861
|
</style>
|
|
862
|
-
`,is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:
|
|
862
|
+
`,is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:fo.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&es(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,es(this.root).appendChild(this._img))}});
|
|
863
863
|
/**
|
|
864
864
|
@license
|
|
865
865
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -870,7 +870,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
870
870
|
part of the polymer project is also subject to an additional IP rights grant
|
|
871
871
|
found at http://polymer.github.io/PATENTS.txt
|
|
872
872
|
*/
|
|
873
|
-
const
|
|
873
|
+
const vo=Qs`
|
|
874
874
|
<custom-style>
|
|
875
875
|
<style is="custom-style">
|
|
876
876
|
html {
|
|
@@ -1193,7 +1193,7 @@ const wo=eo`
|
|
|
1193
1193
|
|
|
1194
1194
|
</style>
|
|
1195
1195
|
</custom-style>
|
|
1196
|
-
`;
|
|
1196
|
+
`;vo.setAttribute("style","display: none;"),document.head.appendChild(vo.content);
|
|
1197
1197
|
/**
|
|
1198
1198
|
@license
|
|
1199
1199
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -1204,7 +1204,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
1204
1204
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1205
1205
|
found at http://polymer.github.io/PATENTS.txt
|
|
1206
1206
|
*/
|
|
1207
|
-
const
|
|
1207
|
+
const wo=Qs`
|
|
1208
1208
|
<custom-style>
|
|
1209
1209
|
<style is="custom-style">
|
|
1210
1210
|
html {
|
|
@@ -1260,7 +1260,7 @@ const Co=eo`
|
|
|
1260
1260
|
--default-primary-color: var(--primary-color);
|
|
1261
1261
|
}
|
|
1262
1262
|
</style>
|
|
1263
|
-
</custom-style>`;
|
|
1263
|
+
</custom-style>`;wo.setAttribute("style","display: none;"),document.head.appendChild(wo.content);
|
|
1264
1264
|
/**
|
|
1265
1265
|
@license
|
|
1266
1266
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -1271,7 +1271,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
1271
1271
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1272
1272
|
found at http://polymer.github.io/PATENTS.txt
|
|
1273
1273
|
*/
|
|
1274
|
-
const
|
|
1274
|
+
const Co={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:function(e){this._setFocused("focus"===e.type)},_disabledChanged:function(e,t){this.setAttribute("aria-disabled",e?"true":"false"),this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(null===this._oldTabIndex?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};
|
|
1275
1275
|
/**
|
|
1276
1276
|
@license
|
|
1277
1277
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -1281,7 +1281,7 @@ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
|
1281
1281
|
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1282
1282
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1283
1283
|
found at http://polymer.github.io/PATENTS.txt
|
|
1284
|
-
*/var
|
|
1284
|
+
*/var Po={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},So={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},xo={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},ko=/[a-z0-9*]/,Eo=/U\+/,Ao=/^arrow/,To=/^space(bar)?/,Oo=/^escape$/;function No(e,t){var i="";if(e){var n=e.toLowerCase();" "===n||To.test(n)?i="space":Oo.test(n)?i="esc":1==n.length?t&&!ko.test(n)||(i=n):i=Ao.test(n)?n.replace("arrow",""):"multiply"==n?"*":n}return i}function Io(e){var t="";return e&&(e in Po?t=Po[e]:Eo.test(e)?(e=parseInt(e.replace("U+","0x"),16),t=String.fromCharCode(e).toLowerCase()):t=e.toLowerCase()),t}function Mo(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):So[e]),t}function Do(e,t){return e.key?No(e.key,t):e.detail&&e.detail.key?No(e.detail.key,t):Io(e.keyIdentifier)||Mo(e.keyCode)||""}function Ro(e,t){return Do(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function Lo(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var i=t.split(":"),n=i[0],r=i[1];return n in xo?(e[xo[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=r||"keydown"),e}),{combo:e.split(":").shift()})}function Fo(e){return e.trim().split(" ").map((function(e){return Lo(e)}))}const Bo={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var i=Fo(t),n=0;n<i.length;++n)if(Ro(i[n],e))return!0;return!1},_collectKeyBindings:function(){var e=this.behaviors.map((function(e){return e.keyBindings}));return-1===e.indexOf(this.keyBindings)&&e.push(this.keyBindings),e},_prepKeyBindings:function(){for(var e in this._keyBindings={},this._collectKeyBindings().forEach((function(e){for(var t in e)this._addKeyBinding(t,e[t])}),this),this._imperativeKeyBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in this._keyBindings)this._keyBindings[t].sort((function(e,t){var i=e[0].hasModifiers;return i===t[0].hasModifiers?0:i?-1:1}))},_addKeyBinding:function(e,t){Fo(e).forEach((function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this._keyBindings[e.event].push([e,t])}),this)},_resetKeyEventListeners:function(){this._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_listenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._keyBindings).forEach((function(e){var t=this._keyBindings[e],i=this._onKeyBindingEvent.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,i]),this.keyEventTarget.addEventListener(e,i)}),this)},_unlistenKeyEventListeners:function(){for(var e,t,i,n;this._boundKeyHandlers.length;)t=(e=this._boundKeyHandlers.pop())[0],i=e[1],n=e[2],t.removeEventListener(i,n)},_onKeyBindingEvent:function(e,t){if(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var i=0;i<e.length;i++){var n=e[i][0],r=e[i][1];if(Ro(n,t)&&(this._triggerKeyHandler(n,r,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,i){var n=Object.create(e);n.keyboardEvent=i;var r=new CustomEvent(e.event,{detail:n,cancelable:!0});this[t].call(this,r),r.defaultPrevented&&i.preventDefault()}},Ho={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)","_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},_focusChanged:function(e){this._detectKeyboardFocus(e),e||this._setPressed(!1)},_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this.pointerDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this.fire("change"))},_downHandler:function(e){this._setPointerDown(!0),this._setPressed(!0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._setPointerDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.detail.keyboardEvent,i=es(t).localTarget;this.isLightDescendant(i)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandler:function(e){var t=e.detail.keyboardEvent,i=es(t).localTarget;this.isLightDescendant(i)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},_asyncClick:function(){this.async((function(){this.click()}),1)},_pressedChanged:function(e){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t){t&&t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:function(e,t){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false"):this.removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},zo=[Bo,Ho];
|
|
1285
1285
|
/**
|
|
1286
1286
|
@license
|
|
1287
1287
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -1302,7 +1302,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
1302
1302
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1303
1303
|
found at http://polymer.github.io/PATENTS.txt
|
|
1304
1304
|
*/
|
|
1305
|
-
var
|
|
1305
|
+
var jo={distance:function(e,t,i,n){var r=e-i,s=t-n;return Math.sqrt(r*r+s*s)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function Uo(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function Ko(e){this.element=e,this.color=window.getComputedStyle(e).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),es(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}Uo.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var i=jo.distance(e,t,0,0),n=jo.distance(e,t,this.width,0),r=jo.distance(e,t,0,this.height),s=jo.distance(e,t,this.width,this.height);return Math.max(i,n,r,s)}},Ko.MAX_RADIUS=300,Ko.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=jo.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?jo.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var e=this.containerMetrics.width*this.containerMetrics.width,t=this.containerMetrics.height*this.containerMetrics.height,i=1.1*Math.min(Math.sqrt(e+t),Ko.MAX_RADIUS)+5,n=1.1-i/Ko.MAX_RADIUS*.2,r=this.mouseInteractionSeconds/n,s=i*(1-Math.pow(80,-r));return Math.abs(s)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,Ko.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,Ko.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new Uo(this.element)},draw:function(){var e,t,i;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,i=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+i+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+i+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,i=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=jo.now(),this.center?(this.xStart=t,this.yStart=i,this.slideDistance=jo.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=i,this.slideDistance=jo.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(e){this.isMouseDown&&(this.mouseUpStart=jo.now())},remove:function(){es(es(this.waveContainer).parentNode).removeChild(this.waveContainer)}},Cs({_template:Qs`
|
|
1306
1306
|
<style>
|
|
1307
1307
|
:host {
|
|
1308
1308
|
display: block;
|
|
@@ -1372,7 +1372,7 @@ var Uo={distance:function(e,t,i,n){var r=e-i,s=t-n;return Math.sqrt(r*r+s*s)},no
|
|
|
1372
1372
|
|
|
1373
1373
|
<div id="background"></div>
|
|
1374
1374
|
<div id="waves"></div>
|
|
1375
|
-
`,is:"paper-ripple",behaviors:[
|
|
1375
|
+
`,is:"paper-ripple",behaviors:[Bo],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==es(this).parentNode.nodeType?this.keyEventTarget=es(this).getOwnerRoot().host:this.keyEventTarget=es(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e<this.ripples.length;++e)if(!this.ripples[e].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null),this.async((function(){this.upAction()}),1)},uiDownAction:function(e){this.noink||this.downAction(e)},downAction:function(e){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach((function(t){t.upAction(e)})),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor="",this.fire("transitionend")},addRipple:function(){var e=new Ko(this);return es(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);t<0||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e<this.ripples.length;++e)(t=this.ripples[e]).draw(),this.$.background.style.opacity=t.outerOpacity,t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t);this.shouldKeepAnimating||0!==this.ripples.length?window.requestAnimationFrame(this._boundAnimate):this.onAnimationComplete()}},animateRipple:function(){return this.animate()},_onEnterKeydown:function(){this.uiDownAction(),this.async(this.uiUpAction,1)},_onSpaceKeydown:function(){this.uiDownAction()},_onSpaceKeyup:function(){this.uiUpAction()},_holdDownChanged:function(e,t){void 0!==t&&(e?this.downAction():this.upAction())}});
|
|
1376
1376
|
/**
|
|
1377
1377
|
@license
|
|
1378
1378
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -1383,7 +1383,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
1383
1383
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1384
1384
|
found at http://polymer.github.io/PATENTS.txt
|
|
1385
1385
|
*/
|
|
1386
|
-
const
|
|
1386
|
+
const qo={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(e){Ho._downHandler.call(this,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;if(t&&es(t).appendChild(this._ripple),e){var i=es(this._rippleContainer||this),n=es(e).rootTarget;i.deepContains(n)&&this._ripple.uiDownAction(e)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple)},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}};
|
|
1387
1387
|
/**
|
|
1388
1388
|
@license
|
|
1389
1389
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -1393,7 +1393,7 @@ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
|
1393
1393
|
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1394
1394
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1395
1395
|
found at http://polymer.github.io/PATENTS.txt
|
|
1396
|
-
*/
|
|
1396
|
+
*/Cs({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new go({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map((function(e){return this.name+":"+e}),this)},applyIcon:function(e,t){this.removeIcon(e);var i=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(e));if(i){var n=es(e.root||e);return n.insertBefore(i,n.childNodes[0]),e._svgIcon=i}return null},removeIcon:function(e){e._svgIcon&&(es(e.root||e).removeChild(e._svgIcon),e._svgIcon=null)},_targetIsRTL:function(e){if(null==this.__targetIsRTL)if(this.useGlobalRtlAttribute){var t=document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement;this.__targetIsRTL="rtl"===t.getAttribute("dir")}else e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.host),this.__targetIsRTL=e&&"rtl"===window.getComputedStyle(e).direction;return this.__targetIsRTL},_nameChanged:function(){this._meta.value=null,this._meta.key=this.name,this._meta.value=this,this.async((function(){this.fire("iron-iconset-added",this,{node:window})}))},_createIconMap:function(){var e=Object.create(null);return es(this).querySelectorAll("[id]").forEach((function(t){e[t.id]=t})),e},_cloneIcon:function(e,t){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[e],this.size,t)},_prepareSvgClone:function(e,t,i){if(e){var n=e.cloneNode(!0),r=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=n.getAttribute("viewBox")||"0 0 "+t+" "+t,o="pointer-events: none; display: block; width: 100%; height: 100%;";return i&&n.hasAttribute("mirror-in-rtl")&&(o+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;"),r.setAttribute("viewBox",s),r.setAttribute("preserveAspectRatio","xMidYMid meet"),r.setAttribute("focusable","false"),r.style.cssText=o,r.appendChild(n).removeAttribute("id"),r}return null}});
|
|
1397
1397
|
/**
|
|
1398
1398
|
@license
|
|
1399
1399
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
@@ -1404,7 +1404,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
|
1404
1404
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1405
1405
|
found at http://polymer.github.io/PATENTS.txt
|
|
1406
1406
|
*/
|
|
1407
|
-
let
|
|
1407
|
+
let $o=null;const Yo={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){$o=new go({type:"validator"})},_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},get _validator(){return $o&&$o.byKey(this.validator)},hasValidator:function(){return null!=this._validator},validate:function(e){return void 0===e&&void 0!==this.value?this.invalid=!this._getValidity(this.value):this.invalid=!this._getValidity(e),!this.invalid},_getValidity:function(e){return!this.hasValidator()||this._validator.validate(e)}},Vo={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}},Jo={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},_getValidity:function(e){return this.disabled||!this.required||this.checked},_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},_checkedChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},Xo={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=qo._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},Wo=[zo,Co,qo,Xo],Go=[Wo,[Vo,Yo,Jo],{_checkedChanged:function(){Jo._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){qo._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}}],Zo=Qs`<style>
|
|
1408
1408
|
:host {
|
|
1409
1409
|
display: inline-block;
|
|
1410
1410
|
white-space: nowrap;
|
|
@@ -1594,4 +1594,4 @@ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
|
1594
1594
|
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1595
1595
|
part of the polymer project is also subject to an additional IP rights grant
|
|
1596
1596
|
found at http://polymer.github.io/PATENTS.txt
|
|
1597
|
-
*/
|
|
1597
|
+
*/Zo.setAttribute("strip-whitespace",""),Cs({_template:Zo,is:"paper-checkbox",behaviors:[Go],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){Ar(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",i=e.match(/[A-Za-z]+$/);null!==i&&(t=i[0]);var n=parseFloat(e),r=8/3*n;"px"===t&&(r=Math.floor(r))%2!=n%2&&r++,this.updateStyles({"--paper-checkbox-ink-size":r+t})}}))},_computeCheckboxClass:function(e,t){var i="";return e&&(i+="checked "),t&&(i+="invalid"),i},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,Xo._createRipple.call(this)}});export{fo as B,Ge as D,Kr as F,or as G,Co as I,cs as L,Cs as P,zo as a,qo as b,to as c,es as d,$n as e,Yo as f,Vo as g,Qs as h,Se as i,qr as j,sn as k,Lt as l,qs as m,an as n,Ho as o,Bo as p,kt as q,er as r,sr as s,Us as t,Ee as u,Wo as v,pt as w,Rt as x,_s as y,Ar as z};
|