481 lines
162 KiB
JavaScript
481 lines
162 KiB
JavaScript
/*! For license information please see 6931.6e4eddca80c27864.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["6931"],{70176:function(){window.JSCompiler_renameProperty=function(e,t){return e}},44223:function(e,t,i){i.d(t,{n:function(){return a},z:function(){return o}});i(19134),i(97003),i(70176);const s={},n=/-[a-z]/g,r=/([A-Z])/g;function o(e){return s[e]||(s[e]=e.indexOf("-")<0?e:e.replace(n,(e=>e[1].toUpperCase())))}function a(e){return s[e]||(s[e]=e.replace(r,"-$1").toLowerCase())}},19883:function(e,t,i){i.d(t,{o:function(){return r}});i(71695),i(46692),i(47021),i(70176);let s=0;function n(){}n.prototype.__mixinApplications,n.prototype.__mixinSet;const r=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=s++;function n(s){let n=s.__mixinSet;if(n&&n[i])return s;let r=t,o=r.get(s);if(!o){o=e(s),r.set(s,o);let t=Object.create(o.__mixinSet||n||null);t[i]=!0,o.__mixinSet=t}return o}return n}},85695:function(e,t,i){i.d(t,{T8:function(){return d}});i(92745),i(70176);let s=!1,n=[],r=[];function o(){s=!0,requestAnimationFrame((function(){s=!1,a(n),setTimeout((function(){!function(e){for(let t=0,i=e.length;t<i;t++)l(e.shift())}(r)}))}))}function a(e){for(;e.length;)l(e.shift())}function l(e){const t=e[0],i=e[1],s=e[2];try{i.apply(t,s)}catch(n){setTimeout((()=>{throw n}))}}function d(e,t,i){s||o(),r.push([e,t,i])}},97333:function(e,t,i){i.d(t,{Kk:function(){return a},Rq:function(){return l},iY:function(){return d}});i(71695),i(19134),i(5740),i(97003),i(47021),i(72700),i(8038),i(71513),i(75656),i(50100),i(18084),i(70176);let s,n,r=/(url\()([^)]*)(\))/g,o=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function a(e,t){if(e&&o.test(e))return e;if("//"===e)return e;if(void 0===s){s=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",s="http://a/c%20d"===e.href}catch(i){}}if(t||(t=document.baseURI||window.location.href),s)try{return new URL(e,t).href}catch(i){return e}return n||(n=document.implementation.createHTMLDocument("temp"),n.base=n.createElement("base"),n.head.appendChild(n.base),n.anchor=n.createElement("a"),n.body.appendChild(n.anchor)),n.base.href=t,n.anchor.href=e,n.anchor.href||e}function l(e,t){return e.replace(r,(function(e,i,s,n){return i+"'"+a(s.replace(/["']/g,""),t)+"'"+n}))}function d(e){return e.substring(0,e.lastIndexOf("/")+1)}},70617:function(e,t,i){i.r(t),i.d(t,{allowTemplateFromDomModule:function(){return g},cancelSyntheticClickEvents:function(){return O},fastDomIf:function(){return k},getSanitizeDOMValue:function(){return u},legacyNoObservedAttributes:function(){return F},legacyOptimizations:function(){return v},legacyUndefined:function(){return I},legacyWarnings:function(){return C},orderedComputed:function(){return S},passiveTouchGestures:function(){return _},removeNestedTemplates:function(){return V},rootPath:function(){return l},sanitizeDOMValue:function(){return h},setAllowTemplateFromDomModule:function(){return y},setCancelSyntheticClickEvents:function(){return A},setFastDomIf:function(){return L},setLegacyNoObservedAttributes:function(){return M},setLegacyOptimizations:function(){return b},setLegacyUndefined:function(){return E},setLegacyWarnings:function(){return w},setOrderedComputed:function(){return T},setPassiveTouchGestures:function(){return p},setRemoveNestedTemplates:function(){return z},setRootPath:function(){return d},setSanitizeDOMValue:function(){return c},setStrictTemplatePolicy:function(){return f},setSuppressTemplateNotifications:function(){return R},setSyncInitialRender:function(){return P},setUseAdoptedStyleSheetsWithBuiltCSS:function(){return B},strictTemplatePolicy:function(){return m},supportsAdoptingStyleSheets:function(){return a},suppressTemplateNotifications:function(){return N},syncInitialRender:function(){return x},useAdoptedStyleSheetsWithBuiltCSS:function(){return D},useNativeCSSProperties:function(){return r},useNativeCustomElements:function(){return o},useShadow:function(){return n}});i(70176);var s=i(97333);const n=!window.ShadyDOM||!window.ShadyDOM.inUse,r=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),o=!window.customElements.polyfillWrapFlushCallback,a=n&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let l=window.Polymer&&window.Polymer.rootPath||(0,s.iY)(document.baseURI||window.location.href);const d=function(e){l=e};let h=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;const c=function(e){h=e},u=function(){return h};let _=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;const p=function(e){_=e};let m=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;const f=function(e){m=e};let g=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;const y=function(e){g=e};let v=window.Polymer&&window.Polymer.legacyOptimizations||!1;const b=function(e){v=e};let C=window.Polymer&&window.Polymer.legacyWarnings||!1;const w=function(e){C=e};let x=window.Polymer&&window.Polymer.syncInitialRender||!1;const P=function(e){x=e};let I=window.Polymer&&window.Polymer.legacyUndefined||!1;const E=function(e){I=e};let S=window.Polymer&&window.Polymer.orderedComputed||!1;const T=function(e){S=e};let O=!0;const A=function(e){O=e};let V=window.Polymer&&window.Polymer.removeNestedTemplates||!1;const z=function(e){V=e};let k=window.Polymer&&window.Polymer.fastDomIf||!1;const L=function(e){k=e};let N=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;const R=function(e){N=e};let F=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1;const M=function(e){F=e};let D=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;const B=function(e){D=e}},11709:function(e,t,i){i.d(t,{dy:()=>$e,H3:()=>je});i("52247"),i("39527"),i("41360"),i("70176");var s=i("70617"),n=i("19883"),r=(i("71695"),i("92745"),i("19134"),i("32114"),i("81804"),i("99790"),i("47021"),i("97333"));let o={},a={};function l(e,t){o[e]=a[e.toLowerCase()]=t}function d(e){return o[e]||a[e.toLowerCase()]}class h extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=d(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,s){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=(0,r.Kk)(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=(0,r.iY)(t)}return this.__assetpath}register(e){if(e=e||this.id){if(s.strictTemplatePolicy&&void 0!==d(e))throw l(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,l(e,this),(t=this).querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}var t}}h.prototype.modules=o,customElements.define("dom-module",h);const c="shady-unscoped";function u(e){return h.import(e)}function _(e){let t=e.body?e.body:e;const i=(0,r.Rq)(t.textContent,e.baseURI),s=document.createElement("style");return s.textContent=i,s}function p(e){const t=e.trim().split(/\s+/),i=[];for(let s=0;s<t.length;s++)i.push(...m(t[s]));return i}function m(e){const t=u(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...g(t));const i=t.querySelector("template");i&&e.push(...f(i,t.assetpath)),t._styles=e}return t._styles}function f(e,t){if(!e._styles){const i=[],s=e.content.querySelectorAll("style");for(let e=0;e<s.length;e++){let n=s[e],o=n.getAttribute("include");o&&i.push(...p(o).filter((function(e,t,i){return i.indexOf(e)===t}))),t&&(n.textContent=(0,r.Rq)(n.textContent,t)),i.push(n)}e._styles=i}return e._styles}function g(e){const t=[],i=e.querySelectorAll("link[rel=import][type~=css]");for(let s=0;s<i.length;s++){let e=i[s];if(e.import){const i=e.import,s=e.hasAttribute(c);if(s&&!i._unscopedStyle){const e=_(i);e.setAttribute(c,""),i._unscopedStyle=e}else i._style||(i._style=_(i));t.push(s?i._unscopedStyle:i._style)}}return t}i("84283"),i("19423"),i("69235"),i("12385"),i("5740"),i("11740"),i("44495"),i("97003"),i("13334");const y=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function v(e){return e.indexOf(".")>=0}function b(e){let t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function C(e,t){return 0===e.indexOf(t+".")}function w(e,t){return 0===t.indexOf(e+".")}function x(e,t,i){return t+i.slice(e.length)}function P(e){if(Array.isArray(e)){let t=[];for(let i=0;i<e.length;i++){let s=e[i].toString().split(".");for(let e=0;e<s.length;e++)t.push(s[e])}return t.join(".")}return e}function I(e){return Array.isArray(e)?P(e).split("."):e.toString().split(".")}function E(e,t,i){let s=e,n=I(t);for(let r=0;r<n.length;r++){if(!s)return;s=s[n[r]]}return i&&(i.path=n.join(".")),s}function S(e,t,i){let s=e,n=I(t),r=n[n.length-1];if(n.length>1){for(let e=0;e<n.length-1;e++){if(s=s[n[e]],!s)return}s[r]=i}else s[t]=i;return n.join(".")}var T=i("44223");i("77439"),i("88972");let O=0,A=0,V=[],z=0,k=!1,L=document.createTextNode("");new window.MutationObserver((function(){k=!1;const e=V.length;for(let i=0;i<e;i++){let e=V[i];if(e)try{e()}catch(t){setTimeout((()=>{throw t}))}}V.splice(0,e),A+=e})).observe(L,{characterData:!0});const N={run(e){return k||(k=!0,L.textContent=z++),V.push(e),O++},cancel(e){const t=e-A;if(t>=0){if(!V[t])throw new Error("invalid async handle: "+e);V[t]=null}}},R=(0,n.o)((e=>class 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 s=this.__data[e],n=this._shouldPropertyChange(e,t,s);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=s),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,N.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,s){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,s)}_attributeToProperty(e,t,i){if(!this.__serializing){const s=this.__dataAttributes,n=s&&s[e]||e;this[n]=this._deserializeValue(t,i||this.constructor.typeForProperty(n))}}_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 s=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=y(e)),void 0===s?e.removeAttribute(i):e.setAttribute(i,""===s&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}})),F={};let M=HTMLElement.prototype;for(;M;){let e=Object.getOwnPropertyNames(M);for(let t=0;t<e.length;t++)F[e[t]]=!0;M=Object.getPrototypeOf(M)}const D=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;const B=(0,n.o)((e=>{const t=R(e);return class extends t{static createPropertiesForAttributes(){let e=this.observedAttributes;for(let t=0;t<e.length;t++)this.prototype._createPropertyAccessor((0,T.z)(e[t]))}static attributeNameForProperty(e){return(0,T.n)(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){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(D(e))return e;try{return JSON.stringify(e)}catch(t){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(s){i=e}break;case Array:try{i=JSON.parse(e)}catch(s){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){!function(e,t){if(!F[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))}}(this,e),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}));i("88044");const H={"dom-if":!0,"dom-repeat":!0};let $=!1,U=!1;function j(e){(function(){if(!$){$=!0;const e=document.createElement("textarea");e.placeholder="a",U=e.placeholder===e.textContent}return U})()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const q=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(t,i,s)=>{const n=i.getAttribute(s);e&&s.startsWith("on-")?t.setAttribute(s,e.createScript(n,s)):t.setAttribute(s,n)}})();function W(e){let t=e.getAttribute("is");if(t&&H[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];q(e,i,t),i.removeAttribute(t)}}return e}function G(e,t){let i=t.parentInfo&&G(e,t.parentInfo);if(!i)return e;for(let s=i.firstChild,n=0;s;s=s.nextSibling)if(t.parentIndex===n++)return s}function Y(e,t,i,s){s.id&&(t[s.id]=i)}function K(e,t,i){if(i.events&&i.events.length)for(let s,n=0,r=i.events;n<r.length&&(s=r[n]);n++)e._addMethodEventListenerToNode(t,s.name,s.value,e)}function J(e,t,i,s){i.templateInfo&&(t._templateInfo=i.templateInfo,t._parentTemplateInfo=s)}const Q=(0,n.o)((e=>class 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 s=!1,n=e;return"template"!=n.localName||n.hasAttribute("preserve-content")?"slot"===n.localName&&(t.hasInsertionPoint=!0):s=this._parseTemplateNestedTemplate(n,t,i)||s,j(n),n.firstChild&&this._parseTemplateChildNodes(n,t,i),n.hasAttributes&&n.hasAttributes()&&(s=this._parseTemplateNodeAttributes(n,t,i)||s),s||i.noted}static _parseTemplateChildNodes(e,t,i){if("script"!==e.localName&&"style"!==e.localName)for(let s,n=e.firstChild,r=0;n;n=s){if("template"==n.localName&&(n=W(n)),s=n.nextSibling,n.nodeType===Node.TEXT_NODE){let i=s;for(;i&&i.nodeType===Node.TEXT_NODE;)n.textContent+=i.textContent,s=i.nextSibling,e.removeChild(i),i=s;if(t.stripWhiteSpace&&!n.textContent.trim()){e.removeChild(n);continue}}let o={parentIndex:r,parentInfo:i};this._parseTemplateNode(n,t,o)&&(o.infoIndex=t.nodeInfoList.push(o)-1),n.parentNode&&r++}}static _parseTemplateNestedTemplate(e,t,i){let s=e,n=this._parseTemplate(s,t);return(n.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),i.templateInfo=n,!0}static _parseTemplateNodeAttributes(e,t,i){let s=!1,n=Array.from(e.attributes);for(let r,o=n.length-1;r=n[o];o--)s=this._parseTemplateNodeAttribute(e,t,i,r.name,r.value)||s;return s}static _parseTemplateNodeAttribute(e,t,i,s,n){return"on-"===s.slice(0,3)?(e.removeAttribute(s),i.events=i.events||[],i.events.push({name:s.slice(3),value:n}),!0):"id"===s&&(i.id=n,!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,s=t.content||e.content,n=document.importNode(s,!0);n.__noInsertionPoint=!t.hasInsertionPoint;let r=n.nodeList=new Array(i.length);n.$={};for(let o,a=0,l=i.length;a<l&&(o=i[a]);a++){let e=r[a]=G(n,o);Y(0,n.$,e,o),J(0,e,o,t),K(this,e,o)}return n}_addMethodEventListenerToNode(e,t,i,s){let n=function(e,t,i){return e=e._methodHost||e,function(t){e[i]?e[i](t,t.detail):console.warn("listener method `"+i+"` not defined")}}(s=s||e,0,i);return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}}));let X=0;const Z=[],ee={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},te="__computeInfo",ie=/[A-Z]/;function se(e,t,i){let s=e[t];if(s){if(!e.hasOwnProperty(t)&&(s=e[t]=Object.create(e[t]),i))for(let n in s){let e=s[n],t=s[n]=Array(e.length);for(let i=0;i<e.length;i++)t[i]=e[i]}}else s=e[t]={};return s}function ne(e,t,i,s,n,r){if(t){let o=!1;const a=X++;for(let l in i){let d=t[n?b(l):l];if(d)for(let t,h=0,c=d.length;h<c&&(t=d[h]);h++)t.info&&t.info.lastRun===a||n&&!oe(l,t.trigger)||(t.info&&(t.info.lastRun=a),t.fn(e,l,i,s,t.info,n,r),o=!0)}return o}return!1}function re(e,t,i,s,n,r,o,a){let l=!1,d=t[o?b(s):s];if(d)for(let h,c=0,u=d.length;c<u&&(h=d[c]);c++)h.info&&h.info.lastRun===i||o&&!oe(s,h.trigger)||(h.info&&(h.info.lastRun=i),h.fn(e,s,n,r,h.info,o,a),l=!0);return l}function oe(e,t){if(t){let i=t.name;return i==e||!(!t.structured||!C(i,e))||!(!t.wildcard||!w(i,e))}return!0}function ae(e,t,i,s,n){let r="string"==typeof n.method?e[n.method]:n.method,o=n.property;r?r.call(e,e.__data[o],s[o]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function le(e,t,i){let s=b(t);if(s!==t){return de(e,(0,T.n)(s)+"-changed",i[t],t),!0}return!1}function de(e,t,i,s){let n={value:i,queueProperty:!0};s&&(n.path=s),y(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function he(e,t,i,s,n,r){let o=(r?b(t):t)!=t?t:null,a=o?E(e,o):e.__data[t];o&&void 0===a&&(a=i[t]),de(e,n.eventName,a,o)}function ce(e,t,i,n,r){let o=e.__data[t];s.sanitizeDOMValue&&(o=(0,s.sanitizeDOMValue)(o,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,o)}function ue(e,t,i,n){let r=e[ee.COMPUTE];if(r)if(s.orderedComputed){X++;const s=function(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const i=e[ee.COMPUTE];let s,{counts:n,ready:r,total:o}=function(e){const t=e[te],i={},s=e[ee.COMPUTE],n=[];let r=0;for(let o in t){const e=t[o];r+=i[o]=e.args.filter((e=>!e.literal)).length+(e.dynamicFn?1:0)}for(let o in s)t[o]||n.push(o);return{counts:i,ready:n,total:r}}(e);for(;s=r.shift();){t.set(s,t.size);const e=i[s];e&&e.forEach((e=>{const t=e.info.methodInfo;--o,0==--n[t]&&r.push(t)}))}if(0!==o){const t=e;console.warn(`Computed graph for ${t.localName} incomplete; circular?`)}e.constructor.__orderedComputedDeps=t}return t}(e),o=[];for(let e in t)pe(e,r,o,s,n);let a;for(;a=o.shift();)me(e,"",t,i,a)&&pe(a.methodInfo,r,o,s,n);Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;ne(e,r,s,i,n);)Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const _e=(e,t,i)=>{let s=0,n=t.length-1,r=-1;for(;s<=n;){const o=s+n>>1,a=i.get(t[o].methodInfo)-i.get(e.methodInfo);if(a<0)s=o+1;else{if(!(a>0)){r=o;break}n=o-1}}r<0&&(r=n+1),t.splice(r,0,e)},pe=(e,t,i,s,n)=>{const r=t[n?b(e):e];if(r)for(let o=0;o<r.length;o++){const t=r[o];t.info.lastRun===X||n&&!oe(e,t.trigger)||(t.info.lastRun=X,_e(t.info,i,s))}};function me(e,t,i,s,n){let r=we(e,t,i,s,n);if(r===Z)return!1;let o=n.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,r,!0):(e[o]=r,!1)}function fe(e,t,i,s,n,r,o){i.bindings=i.bindings||[];let a={kind:s,target:n,parts:r,literal:o,isCompound:1!==r.length};if(i.bindings.push(a),function(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}(a)){let{event:e,negate:t}=a.parts[0];a.listenerEvent=e||(0,T.n)(n)+"-changed",a.listenerNegate=t}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let i=a.parts[d];i.compoundIndex=d,ge(e,t,a,i,l)}}function ge(e,t,i,s,n){if(!s.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 r=s.dependencies,o={index:n,binding:i,part:s,evaluator:e};for(let i=0;i<r.length;i++){let s=r[i];"string"==typeof s&&(s=Oe(s),s.wildcard=!0),e._addTemplatePropertyEffect(t,s.rootProperty,{fn:ye,info:o,trigger:s})}}}function ye(e,t,i,n,r,o,a){let l=a[r.index],d=r.binding,h=r.part;if(o&&h.source&&t.length>h.source.length&&"property"==d.kind&&!d.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[d.target]){let s=i[t];t=x(h.source,d.target,t),l._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(l)}else{let a=r.evaluator._evaluateBinding(e,h,t,i,n,o);a!==Z&&function(e,t,i,n,r){r=function(e,t,i,s){if(i.isCompound){let n=e.__dataCompoundStorage[i.target];n[s.compoundIndex]=t,t=n.join("")}"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t));return t}(t,r,i,n),s.sanitizeDOMValue&&(r=(0,s.sanitizeDOMValue)(r,i.target,i.kind,t));if("attribute"==i.kind)e._valueToNodeAttribute(t,r,i.target);else{let s=i.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?t[ee.READ_ONLY]&&t[ee.READ_ONLY][s]||t._setPendingProperty(s,r)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,s,r)}}(e,l,d,h,a)}}function ve(e,t){if(t.isCompound){let i=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),s=t.parts,n=new Array(s.length);for(let e=0;e<s.length;e++)n[e]=s[e].literal;let r=t.target;i[r]=n,t.literal&&"property"==t.kind&&("className"===r&&(e=y(e)),e[r]=t.literal)}}function be(e,t,i){if(i.listenerEvent){let s=i.parts[0];e.addEventListener(i.listenerEvent,(function(e){!function(e,t,i,s,n){let r,o=e.detail,a=o&&o.path;a?(s=x(i,s,a),r=o&&o.value):r=e.currentTarget[i],r=n?!r:r,t[ee.READ_ONLY]&&t[ee.READ_ONLY][s]||!t._setPendingPropertyOrPath(s,r,!0,Boolean(a))||o&&o.queueProperty||t._invalidateProperties()}(e,t,i.target,s.source,s.negate)}))}}function Ce(e,t,i,s,n,r){r=t.static||r&&("object"!=typeof r||r[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:n,dynamicFn:r};for(let a,l=0;l<t.args.length&&(a=t.args[l]);l++)a.literal||e._addPropertyEffect(a.rootProperty,i,{fn:s,info:o,trigger:a});return r&&e._addPropertyEffect(t.methodName,i,{fn:s,info:o}),o}function we(e,t,i,s,n){let r=e._methodHost||e,o=r[n.methodName];if(o){let s=e._marshalArgs(n.args,t,i);return s===Z?Z:o.apply(r,s)}n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const xe=[],Pe="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ie="(?:("+Pe+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ee=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+Pe+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+Ie+"(?:,\\s*"+Ie+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Se(e){let t="";for(let i=0;i<e.length;i++){t+=e[i].literal||""}return t}function Te(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let e={methodName:t[1],static:!0,args:xe};if(t[2].trim()){return function(e,t){return t.args=e.map((function(e){let i=Oe(e);return i.literal||(t.static=!1),i}),this),t}(t[2].replace(/\\,/g,",").split(","),e)}return e}return null}function Oe(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},s=t[0];switch("-"===s&&(s=t[1]),s>="0"&&s<="9"&&(s="#"),s){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=b(t),i.structured=v(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i}function Ae(e,t,i){let s=E(e,i);return void 0===s&&(s=t[i]),s}function Ve(e,t,i,n){const r={indexSplices:n};s.legacyUndefined&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),s.legacyUndefined&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function ze(e,t,i,s,n,r){Ve(e,t,i,[{index:s,addedCount:n,removed:r,object:t,type:"splice"}])}const ke=(0,n.o)((e=>{const t=Q(B(e));return class 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 ee}_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(Le.length){let e=Le[Le.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[ee.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==ee.READ_ONLY);let s=se(this,t,!0)[e];s||(s=this[t][e]=[]),s.push(i)}_removePropertyEffect(e,t,i){let s=se(this,t,!0)[e],n=s.indexOf(i);n>=0&&s.splice(n,1)}_hasPropertyEffect(e,t){let i=this[t];return Boolean(i&&i[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,ee.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,ee.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,ee.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,ee.COMPUTE)}_setPendingPropertyOrPath(e,t,i,s){if(s||b(Array.isArray(e)?e[0]:e)!==e){if(!s){let i=E(this,e);if(!(e=S(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i))return function(e,t,i){let s=e.__dataLinkedPaths;if(s){let n;for(let r in s){let o=s[r];w(r,t)?(n=x(r,o,t),e._setPendingPropertyOrPath(n,i,!0,!0)):w(o,t)&&(n=x(o,r,t),e._setPendingPropertyOrPath(n,i,!0,!0))}}}(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=y(e)),e[t]=i)}_setPendingProperty(e,t,i){let s=this.__dataHasPaths&&v(e),n=s?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,n[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),s?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(s||this[ee.NOTIFY]&&this[ee.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[ee.READ_ONLY]&&this[ee.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 s,n=this.__dataHasPaths;this.__dataHasPaths=!1,ue(this,t,i,n),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,i,n),this._flushClients(),ne(this,this[ee.REFLECT],t,i,n),ne(this,this[ee.OBSERVE],t,i,n),s&&function(e,t,i,s,n){let r,o,a=e[ee.NOTIFY],l=X++;for(let d in t)t[d]&&(a&&re(e,a,l,d,i,s,n)||n&&le(e,d,i))&&(r=!0);r&&(o=e.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}(this,s,t,i,n),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[ee.PROPAGATE]&&ne(this,this[ee.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(e,t,i,s){const n=(t,s)=>{ne(this,e.propertyEffects,t,i,s,e.nodeList);for(let n=e.firstChild;n;n=n.nextSibling)this._runEffectsForTemplate(n,t,i,s)};e.runEffects?e.runEffects(n,t,s):n(t,s)}linkPaths(e,t){e=P(e),t=P(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=P(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let i={path:""};Ve(this,E(this,e,i),i.path,t)}get(e,t){return E(t||this,e)}set(e,t,i){i?S(i,e,t):this[ee.READ_ONLY]&&this[ee.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let i={path:""},s=E(this,e,i),n=s.length,r=s.push(...t);return t.length&&ze(this,s,i.path,n,t.length,[]),r}pop(e){let t={path:""},i=E(this,e,t),s=Boolean(i.length),n=i.pop();return s&&ze(this,i,t.path,i.length,0,[n]),n}splice(e,t,i,...s){let n,r={path:""},o=E(this,e,r);return t<0?t=o.length-Math.floor(-t):t&&(t=Math.floor(t)),n=2===arguments.length?o.splice(t):o.splice(t,i,...s),(s.length||n.length)&&ze(this,o,r.path,t,s.length,n),n}shift(e){let t={path:""},i=E(this,e,t),s=Boolean(i.length),n=i.shift();return s&&ze(this,i,t.path,0,0,[n]),n}unshift(e,...t){let i={path:""},s=E(this,e,i),n=s.unshift(...t);return t.length&&ze(this,s,i.path,0,t.length,[]),n}notifyPath(e,t){let i;if(1==arguments.length){let s={path:""};t=E(this,e,s),i=s.path}else i=Array.isArray(e)?P(e):e;this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){var i;this._addPropertyEffect(e,ee.READ_ONLY),t&&(this["_set"+(i=e,i[0].toUpperCase()+i.substring(1))]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,i){let s={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,ee.OBSERVE,{fn:ae,info:s,trigger:{name:e}}),i&&this._addPropertyEffect(t,ee.OBSERVE,{fn:ae,info:s,trigger:{name:t}})}_createMethodObserver(e,t){let i=Te(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Ce(this,i,ee.OBSERVE,we,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,ee.NOTIFY,{fn:he,info:{eventName:(0,T.n)(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,ee.REFLECT,{fn:ce,info:{attrName:t}})}_createComputedProperty(e,t,i){let s=Te(t);if(!s)throw new Error("Malformed computed expression '"+t+"'");const n=Ce(this,s,ee.COMPUTE,me,e,i);se(this,te)[e]=n}_marshalArgs(e,t,i){const n=this.__data,r=[];for(let o=0,a=e.length;o<a;o++){let{name:a,structured:l,wildcard:d,value:h,literal:c}=e[o];if(!c)if(d){const e=w(a,t),s=Ae(n,i,e?t:a);h={path:e?t:a,value:s,base:e?E(n,a):s}}else h=l?Ae(n,i,a):n[a];if(s.legacyUndefined&&!this._overrideLegacyUndefined&&void 0===h&&e.length>1)return Z;r[o]=h}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),s=this.__preBoundTemplateInfo==i;if(!s)for(let n in i.propertyEffects)this._createPropertyAccessor(n);if(t)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,s=t.lastChild;i.parent=t,t.lastChild=i,i.previousSibling=s,s?s.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 s=e.propertyEffects=e.propertyEffects||{};(s[t]=s[t]||[]).push(i)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),Le.push(this);let i=super._stampTemplate(e,t);if(Le.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,function(e,t){let{nodeList:i,nodeInfoList:s}=t;if(s.length)for(let n=0;n<s.length;n++){let t=s[n],r=i[n],o=t.bindings;if(o)for(let i=0;i<o.length;i++){let t=o[i];ve(r,t),be(r,e,t)}r.__dataHost=e}}(this,t),this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:i,nextSibling:s,parent:n}=t;i?i.nextSibling=s:n&&(n.firstChild=s),s?s.previousSibling=i:n&&(n.lastChild=i),t.nextSibling=t.previousSibling=null;let r=t.childNodes;for(let o=0;o<r.length;o++){let e=r[o];y(y(e).parentNode).removeChild(e)}}static _parseTemplateNode(e,i,s){let n=t._parseTemplateNode.call(this,e,i,s);if(e.nodeType===Node.TEXT_NODE){let t=this._parseBindings(e.textContent,i);t&&(e.textContent=Se(t)||" ",fe(this,i,s,"text","textContent",t),n=!0)}return n}static _parseTemplateNodeAttribute(e,i,s,n,r){let o=this._parseBindings(r,i);if(o){let t=n,r="property";ie.test(n)?r="attribute":"$"==n[n.length-1]&&(n=n.slice(0,-1),r="attribute");let a=Se(o);return a&&"attribute"==r&&("class"==n&&e.hasAttribute("class")&&(a+=" "+e.getAttribute(n)),e.setAttribute(n,a)),"attribute"==r&&"disable-upgrade$"==t&&e.setAttribute(n,""),"input"===e.localName&&"value"===t&&e.setAttribute(t,""),e.removeAttribute(t),"property"===r&&(n=(0,T.z)(n)),fe(this,i,s,r,n,o,a),!0}return t._parseTemplateNodeAttribute.call(this,e,i,s,n,r)}static _parseTemplateNestedTemplate(e,i,n){let r=t._parseTemplateNestedTemplate.call(this,e,i,n);const o=e.parentNode,a=n.templateInfo,l="dom-if"===o.localName,d="dom-repeat"===o.localName;s.removeNestedTemplates&&(l||d)&&(o.removeChild(e),(n=n.parentInfo).templateInfo=a,n.noted=!0,r=!1);let h=a.hostProps;if(s.fastDomIf&&l)h&&(i.hostProps=Object.assign(i.hostProps||{},h),s.removeNestedTemplates||(n.parentInfo.noted=!0));else{let e="{";for(let t in h){fe(this,i,n,"property","_host_"+t,[{mode:e,source:t,dependencies:[t],hostProp:!0}])}}return r}static _parseBindings(e,t){let i,s=[],n=0;for(;null!==(i=Ee.exec(e));){i.index>n&&s.push({literal:e.slice(n,i.index)});let r=i[1][0],o=Boolean(i[2]),a=i[3].trim(),l=!1,d="",h=-1;"{"==r&&(h=a.indexOf("::"))>0&&(d=a.substring(h+2),a=a.substring(0,h),l=!0);let c=Te(a),u=[];if(c){let{args:e,methodName:i}=c;for(let t=0;t<e.length;t++){let i=e[t];i.literal||u.push(i)}let s=t.dynamicFns;(s&&s[i]||c.static)&&(u.push(i),c.dynamicFn=!0)}else u.push(a);s.push({source:a,mode:r,negate:o,customEvent:l,signature:c,dependencies:u,event:d}),n=Ee.lastIndex}if(n&&n<e.length){let t=e.substring(n);t&&s.push({literal:t})}return s.length?s:null}static _evaluateBinding(e,t,i,s,n,r){let o;return o=t.signature?we(e,i,s,0,t.signature):i!=t.source?E(e,t.source):r&&v(i)?E(e,i):e.__data[i],t.negate&&(o=!o),o}}})),Le=[];const Ne=[];const Re=(0,n.o)((e=>{const t=R(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof n?t:null}function s(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=function(e){const t={};for(let i in e){const s=e[i];t[i]="function"==typeof s?{type:s}:s}return t}(i))}e.__ownProperties=t}return e.__ownProperties}class n extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){e=this.prototype,Ne.push(e);const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((e=>this.prototype._addPropertyToAttributeMap(e))):[]}var 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=s(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,s(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 n})),Fe=window.ShadyCSS&&window.ShadyCSS.cssBuild,Me=(0,n.o)((e=>{const t=Re(ke(e));function i(e,t,i,n){if(!Fe){const s=t.content.querySelectorAll("style"),r=f(t),o=function(e){let t=u(e);return t?g(t):[]}(i),a=t.content.firstElementChild;for(let i=0;i<o.length;i++){let s=o[i];s.textContent=e._processStyleText(s.textContent,n),t.content.insertBefore(s,a)}let l=0;for(let t=0;t<r.length;t++){let i=r[t],o=s[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),s.useAdoptedStyleSheetsWithBuiltCSS&&Fe&&s.supportsAdoptingStyleSheets){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)}}}return class extends t{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){t._finalizeClass.call(this);const e=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;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):s.legacyOptimizations||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(let r in e)t=this.prototype,i=r,s=e[r],n=e,s.computed&&(s.readOnly=!0),s.computed&&(t._hasReadOnlyEffect(i)?console.warn(`Cannot redefine computed property '${i}'.`):t._createComputedProperty(i,s.computed,n)),s.readOnly&&!t._hasReadOnlyEffect(i)?t._createReadOnlyProperty(i,!s.computed):!1===s.readOnly&&t._hasReadOnlyEffect(i)&&console.warn(`Cannot make readOnly property '${i}' non-readOnly.`),s.reflectToAttribute&&!t._hasReflectEffect(i)?t._createReflectedProperty(i):!1===s.reflectToAttribute&&t._hasReflectEffect(i)&&console.warn(`Cannot make reflected property '${i}' non-reflected.`),s.notify&&!t._hasNotifyEffect(i)?t._createNotifyingProperty(i):!1===s.notify&&t._hasNotifyEffect(i)&&console.warn(`Cannot make notify property '${i}' non-notify.`),s.observer&&t._createPropertyObserver(i,s.observer,n[s.observer]),t._addPropertyToAttributeMap(i);var t,i,s,n}static createObservers(e,t){const i=this.prototype;for(let s=0;s<e.length;s++)i._createMethodObserver(e[s],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))&&function(e){let t=null;if(e&&(!s.strictTemplatePolicy||s.allowTemplateFromDomModule)&&(t=h.import(e,"template"),s.strictTemplatePolicy&&!t))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${e}`);return t}(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=(0,r.iY)(e.url);else{const e=h.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=s.rootPath,this.importPath=this.constructor.importPath;let e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;let t=e._properties;for(let i in t){let s=t[i];"value"in s&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[i]=s)}}return e.__propertyDefaults}(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(0,r.Rq)(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;const s=this.importPath;i(this,t,e,s?(0,r.Kk)(s):""),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=y(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])),s.syncInitialRender&&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=(0,r.Kk)(this.importPath)),(0,r.Kk)(e,t)}static _parseTemplateContent(e,i,s){return i.dynamicFns=i.dynamicFns||this._properties,t._parseTemplateContent.call(this,e,i,s)}static _addTemplatePropertyEffect(e,i,n){return!s.legacyWarnings||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)}}}));i("52805"),i("34595");const De=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Be{constructor(e,t){Ue(e,t);const i=t.reduce(((t,i,s)=>t+He(i)+e[s+1]),e[0]);this.value=i.toString()}toString(){return this.value}}function He(e){if(e instanceof Be)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}const $e=function(e,...t){Ue(e,t);const i=document.createElement("template");let s=t.reduce(((t,i,s)=>t+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Be)return He(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}(i)+e[s+1]),e[0]);return De&&(s=De.createHTML(s)),i.innerHTML=s,i},Ue=(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")},je=Me(HTMLElement)},96526:function(e,t,i){var s=i(1569),n=i(29660),r=i(72878),o=i(72616),a=i(36888).trim,l=i(91430),d=r("".charAt),h=s.parseFloat,c=s.Symbol,u=c&&c.iterator,_=1/h(l+"-0")!=-1/0||u&&!n((function(){h(Object(u))}));e.exports=_?function(e){var t=a(o(e)),i=h(t);return 0===i&&"-"===d(t,0)?-0:i}:h},95078:function(e,t,i){var s=i(40810),n=i(96526);s({global:!0,forced:parseFloat!==n},{parseFloat:n})},85664:function(e,t,i){var s=i(40810),n=i(1569),r=i(61785),o=i(63983),a=i(1451),l=i(29660),d=i(85779);s({global:!0,enumerable:!0,dontCallGetSet:!0,forced:l((function(){return d&&1!==Object.getOwnPropertyDescriptor(n,"queueMicrotask").value.length}))},{queueMicrotask:function(e){a(arguments.length,1),r(o(e))}})},73072:function(e,t,i){i.d(t,{GO:function(){return u},Gf:function(){return n},LQ:function(){return r},Qu:function(){return d},Qw:function(){return h}});i(71695),i(92745),i(39527),i(41360),i(47021);let s=!1;function n(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function r(){return s}function o(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}function a(e,t){const i=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return 0===i||0===s?s>i:i>s}function l(e){const t=e.length;if(t<2)return e;const i=Math.ceil(t/2);return function(e,t){const i=[];for(;e.length>0&&t.length>0;)a(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}(l(e.slice(0,i)),l(e.slice(i)))}function d(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function h(e){return e.getRootNode().activeElement===e}function c(e,t){if(e.nodeType!==Node.ELEMENT_NODE||o(e))return!1;const i=e,s=function(e){if(!d(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(i);let n=s>0;s>=0&&t.push(i);let r=[];return r="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...r].forEach((e=>{n=c(e,t)||n})),n}function u(e){const t=[];return c(e,t)?l(t):t}window.addEventListener("keydown",(()=>{s=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{s=!1}),{capture:!0})},2394:function(e,t,i){i.d(t,{t:()=>l});var s=i("92903"),n=(i("63721"),i("52247"),i("71695"),i("39527"),i("36993"),i("47021"),i("57243")),r=i("67753");const o=Symbol("valueNotInitialized");class a extends r.sR{constructor(e){if(super(e),e.type!==s.pX.ELEMENT)throw new Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=o}render(e,t){return n.Ld}update(e,[t,i]){if(!this.hasChanged(i))return n.Ld;this.host=e.options&&e.options.host,this.element=e.element,this.renderer=t;return this.previousValue===o?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(i)?[...i]:i,n.Ld}reconnected(){this.addRenderer()}disconnected(){this.removeRenderer()}addRenderer(){throw new Error("The `addRenderer` method must be implemented.")}runRenderer(){throw new Error("The `runRenderer` method must be implemented.")}removeRenderer(){throw new Error("The `removeRenderer` method must be implemented.")}renderRenderer(e,...t){const i=this.renderer.call(this.host,...t);(0,n.sY)(i,e,{host:this.host})}hasChanged(e){return Array.isArray(e)?!Array.isArray(this.previousValue)||(this.previousValue.length!==e.length||e.some(((e,t)=>e!==this.previousValue[t]))):this.previousValue!==e}}const l=(0,s.XM)(class extends a{addRenderer(){this.element.renderer=(e,t,i)=>{this.renderRenderer(e,i.item,i,t)}}runRenderer(){this.element.requestContentUpdate()}removeRenderer(){this.element.renderer=null}})},20087:function(e,t,i){i.d(t,{iv:()=>s.iv,hC:()=>p,Tb:()=>v});i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("19134"),i("5740"),i("11740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("13334"),i("36993"),i("47021");var s=i("57243");const n=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"theme"===e&&this._set_theme(i)}},r=[],o=new Set,a=new Set;function l(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function d(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function h(e){return e.map((e=>e.cssText)).join("\n")}const c="vaadin-themable-mixin-style";function u(e){o.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(c),s=t.prototype._template;i.textContent=s.content.getElementById(c).textContent}}(i):i||o.delete(t)}))}function _(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(c).textContent=h(e.getStylesForThis())}a.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&_(i)}))}function p(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):r.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&a.forEach((i=>{if(d(e,i)&&function(e){return l(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),_(e),u(e)}}))}function m(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():r}function f(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function g(e){const t=[];return e.include&&[].concat(e.include).forEach((e=>{const i=m().find((t=>t.moduleId===e));i?t.push(...g(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)}),e.styles),t}function y(e){const t=`${e}-default-theme`,i=m().filter((i=>i.moduleId!==t&&d(i.themeFor,e))).map((e=>Object.assign(Object.assign({},e),{},{styles:[...g(e),...e.styles],includePriority:f(e.moduleId)}))).sort(((e,t)=>t.includePriority-e.includePriority));return i.length>0?i:m().filter((e=>e.moduleId===t))}const v=e=>class extends(n(e)){constructor(){super(),o.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&a.add(this.is),this.elementStyles)return;const e=this.prototype._template;e&&!l(this)&&function(e,t){const i=document.createElement("style");i.id=c,i.textContent=h(e),t.content.appendChild(i)}(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const t=e.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...t,...s,...y(this.is)];const n=this.__themes.flatMap((e=>e.styles));return n.filter(((e,t)=>t===n.lastIndexOf(e)))}}},53684:function(e,t,i){var s=i("11709"),n=i("40701"),r=i("8058"),o=i("20087");i("71695"),i("47021");const a=e=>class extends e{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){"hidden"===e&&null!==i?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){void 0!==i&&void 0!==t&&(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};let l,d=e=>e;class h extends(a((0,o.Tb)((0,r.U)(s.H3)))){static get template(){return(0,s.dy)(l||(l=d`
|
|
<style>
|
|
:host {
|
|
display: block;
|
|
}
|
|
|
|
:host([hidden]) {
|
|
display: none;
|
|
}
|
|
</style>
|
|
<span part="checkmark" aria-hidden="true"></span>
|
|
<div part="content">
|
|
<slot></slot>
|
|
</div>
|
|
`))}static get is(){return"vaadin-combo-box-item"}}(0,n.M)(h)},10210:function(e,t,i){i.d(t,{z:()=>S});var s=i("44223"),n=i("85695"),r=i("19883");const o=(0,r.o)((e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},manualValidation:{type:Boolean,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}_requestValidation(){this.manualValidation||this.validate()}}));i("52247"),i("71695"),i("39527"),i("99790"),i("47021"),i("19423"),i("52805"),i("23669"),i("41360"),i("34595"),i("36993");function a(e,t,i=0){let s=t;for(const n of e.subCaches){const e=n.parentCacheIndex;if(s<=e)break;if(s<=e+n.flatSize)return a(n,s-e-1,i+1);s-=n.flatSize}return{cache:e,item:e.items[s],index:s,page:Math.floor(s/e.pageSize),level:i}}function l({getItemId:e},t,i,s=0,n=0){for(let r=0;r<t.items.length;r++){const o=t.items[r];if(o&&e(o)===e(i))return{cache:t,level:s,item:o,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:n+t.getFlatIndex(r)}}for(const r of t.subCaches){const o=l({getItemId:e},r,i,s+1,n+t.getFlatIndex(r.parentCacheIndex)+1);if(o)return o}}function d(e,[t,...i],s=0){t===1/0&&(t=e.size-1);const n=e.getFlatIndex(t),r=e.getSubCache(t);return r&&r.flatSize>0&&i.length?d(r,i,s+n+1):s+n}class h{constructor(e,t,i,s,n){this.context=void 0,this.pageSize=void 0,this.items=[],this.pendingRequests={},this.__subCacheByIndex={},this.__size=0,this.__flatSize=0,this.context=e,this.pageSize=t,this.size=i,this.parentCache=s,this.parentCacheIndex=n,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((e=>e.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){if(this.__size!==e){if(this.__size=e,void 0!==this.context.placeholder){this.items.length=e||0;for(let s=0;s<e;s++){var t,i;(t=this.items)[i=s]||(t[i]=this.context.placeholder)}}Object.keys(this.pendingRequests).forEach((e=>{parseInt(e)*this.pageSize>=this.size&&delete this.pendingRequests[e]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((e,t)=>(t.recalculateFlatSize(),e+t.flatSize)),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach(((e,t)=>{const s=i+t;(void 0===this.size||s<this.size)&&(this.items[s]=e)}))}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new h(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce(((e,i)=>{const s=i.parentCacheIndex;return t>s?e+i.flatSize:e}),t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=a(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=a(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}class c extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:s,getItemId:n,isPlaceholder:r,placeholder:o,dataProvider:a,dataProviderParams:l}){super(),this.host=void 0,this.dataProvider=void 0,this.dataProviderParams=void 0,this.pageSize=void 0,this.isExpanded=void 0,this.getItemId=void 0,this.rootCache=void 0,this.placeholder=void 0,this.isPlaceholder=void 0,this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=s,this.placeholder=o,this.isPlaceholder=r,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return a(this.rootCache,e)}getItemContext(e){return l({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return d(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:s}=this.getFlatIndexContext(e);this.__isItemLoaded(s)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:s}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(s)){const e=t.createSubCache(s);this.__loadCachePage(e,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new h(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=Object.assign(Object.assign({},i),this.dataProviderParams()));const s=(n,r)=>{e.pendingRequests[t]===s&&(void 0!==r?e.size=r:i.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=s,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,s)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}var u=i("72373");const _=e=>class extends e{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new c(this,{placeholder:new u.h,isPlaceholder:e=>e instanceof u.h,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(e=>{if(!this._shouldFetchData())return;const t=e.detail.index;void 0!==t&&this.__dataProviderController.ensureFlatIndexLoaded(t)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){void 0!==this.__previousDataProviderFilter||""!==e?this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=e}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(e){this._shouldFetchData()&&e&&(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),this.opened||this._isInputFocused()||this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.dataProvider=t})),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&""!==t&&(void 0===this.selectedItem||null===this.selectedItem)){const e=this.__getItemIndexByValue(this.filteredItems,t);(e<0||!this._getItemLabel(this.filteredItems[e]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};i("19083"),i("11740"),i("61006"),i("67670");const p=(0,r.o)((e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}));i("22152");var m=i("73072");const f=(0,r.o)((e=>class extends e{get _keyboardActive(){return(0,m.LQ)()}ready(){this.addEventListener("focusin",(e=>{this._shouldSetFocus(e)&&this._setFocused(!0)})),this.addEventListener("focusout",(e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}})),g=(0,r.o)((e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",(e=>{this._onKeyDown(e)})),this.addEventListener("keyup",(e=>{this._onKeyUp(e)}))}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}));var y=i("90850"),v=i("48001");i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814");const b=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t)return;if(void 0===e)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter((e=>!this.__initialClasses.has(e)));e.length>0&&i.remove(...e)}const s="string"==typeof e?e.split(" ").filter(Boolean):[];s.length>0&&i.add(...s),this.__previousClasses=s}};var C=i("94146");const w=(0,r.o)((e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e),this._hasInputValue=e&&e.length>0}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}}));class x{constructor(e){this.host=e,e.addEventListener("opened-changed",(()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)})),e.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),e.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}function P(e){return null!=e}function I(e,t){return e.findIndex((e=>!(e instanceof u.h)&&t(e)))}const E=e=>class extends(b((0,v.k)(o(f(g(w(p(e)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};var t;this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),t=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`),this.addController(new x(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((e=>{e.requestContentUpdate()})))}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),void 0!==t.filter&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("opened-changed",(e=>{this._overlayOpened=e.detail.value})),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=e=>{e.innerHTML||e.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,s,n,r,o,a,l,d){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:s,selectedItem:n,itemIdPath:r,focusedIndex:o,renderer:a,theme:l,itemClassNameGenerator:d}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,i,s){this._overlayOpened=e&&(s||i||!(!t||!t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){void 0!==t&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&(0,m.Qw)(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find((t=>t.index===e));i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(void 0===t)return;e?this._isInputFocused()||y.T||this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),"ArrowDown"===e.key?(this._onArrowDown(),e.preventDefault()):"ArrowUp"===e.key&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?(0,C.U)(this.itemLabelPath,e):void 0;return null==t&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?(0,C.U)(this.itemValuePath,e):void 0;return void 0===t&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(e){if(!this._hasValidInputValue())return e.preventDefault(),void e.stopPropagation();this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(e.stopPropagation(),this._onClearAction()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("click",(()=>{y.T&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){this.loading&&!this.allowCustomValue||this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const e=this._inputElementValue;this._lastCustomValue=e;const t=new CustomEvent("custom-value-set",{detail:e,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(t),t.defaultPrevented||(this.value=e)}else this.allowCustomValue||this.opened||!t?this._revertInputValueToValue():this.value=this._getItemValue(t)}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,this.opened||this._isClearButton(e)||this.autoOpenDisabled||(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){"string"!=typeof e&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(null==e)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){""===e&&void 0===t||(P(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this._requestValidation(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.items=t})),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){if(!e)return e;return e.filter((e=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(e).toString().toLowerCase().indexOf(t)>-1)))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&void 0===this.selectedItem?this.selectedItem=void 0:this.selectedItem=null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,s=this.__getItemIndexByValue(e,this.value);(null===this.selectedItem||void 0===this.selectedItem)&&s>=0&&(this.selectedItem=e[s]);const n=this.__getItemIndexByValue(e,this._getItemValue(i));this._focusedIndex=n>-1?n:this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return e&&P(t)?I(e,(e=>this._getItemValue(e)===t)):-1}__getItemIndexByLabel(e,t){return e&&t?I(e,(e=>this._getItemLabel(e).toString().toLowerCase()===t.toString().toLowerCase())):-1}_overlaySelectedItemChanged(e){e.stopPropagation(),e.detail.item instanceof u.h||this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;if((0,m.LQ)())return void this._closeOrCommit();this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return(!e.relatedTarget||e.relatedTarget.localName!==`${this._tagNamePrefix}-item`)&&(e.relatedTarget!==this._overlayElement||(e.composedPath()[0].focus(),!1))}_onTouchend(e){this.clearElement&&e.composedPath()[0]===this.clearElement&&(e.preventDefault(),this._onClearAction())}},S=e=>class extends(_(E(o(e)))){static get properties(){return{attrForValue:{type:String,value:"value"}}}get clearElement(){return this.querySelector(".clear-button")}get _inputElementValueProperty(){return(0,s.z)(this.attrForValue)}get _nativeInput(){const e=this.inputElement;if(e){if(e instanceof HTMLInputElement)return e;const t=e.querySelector("input");if(t)return t;if(e.shadowRoot){const t=e.shadowRoot.querySelector("input");if(t)return t}}}ready(){super.ready(),this._toggleElement=this.querySelector(".toggle-button"),(0,n.T8)(this,(()=>{this._setInputElement(this.querySelector("vaadin-text-field,.input")),this._revertInputValue()}))}_isClearButton(e){return super._isClearButton(e)||"input"===e.type&&!e.isTrusted||"clear-button"===e.composedPath()[0].getAttribute("part")}_shouldRemoveFocus(e){const t=e.target===this._toggleElement||e.target===this.clearElement,i=e.relatedTarget&&e.relatedTarget===this._nativeInput;return(!t||!i)&&super._shouldRemoveFocus(e)}}},60180:function(e,t,i){i.a(e,(async function(e,t){try{i(53684);var s=i(77260),n=i(88698),r=i(11709),o=i(40701),a=i(20087),l=i(10210),d=e([s,n]);[s,n]=d.then?(await d)():d;let h,c=e=>e;class u extends((0,l.z)((0,a.Tb)(r.H3))){static get is(){return"vaadin-combo-box-light"}static get template(){return(0,r.dy)(h||(h=c`
|
|
<style>
|
|
:host([opened]) {
|
|
pointer-events: auto;
|
|
}
|
|
</style>
|
|
|
|
<slot></slot>
|
|
|
|
<vaadin-combo-box-overlay
|
|
id="overlay"
|
|
opened="[[_overlayOpened]]"
|
|
loading$="[[loading]]"
|
|
theme$="[[_theme]]"
|
|
position-target="[[inputElement]]"
|
|
no-vertical-overlap
|
|
></vaadin-combo-box-overlay>
|
|
`))}}(0,o.M)(u),t()}catch(h){t(h)}}))},21768:function(e,t,i){i.a(e,(async function(e,s){try{i.d(t,{H:function(){return a}});i(19083),i(61006);var n=i(73072),r=i(59125),o=e([r]);r=(o.then?(await o)():o)[0];const a=e=>class extends((0,r.y)(e)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!(0,n.Qu)(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);""===t?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};s()}catch(a){s(a)}}))},77260:function(e,t,i){i.a(e,(async function(e,t){try{var s=i(11709),n=i(40701),r=i(8058),o=i(71786),a=i(38243),l=i(20087),d=i(21768),h=e([d]);d=(h.then?(await h)():h)[0];let c,u,_=e=>e;const p=(0,l.iv)(c||(c=_`
|
|
#overlay {
|
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
}
|
|
|
|
[part='content'] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
`));(0,l.hC)("vaadin-combo-box-overlay",[a.r,p],{moduleId:"vaadin-combo-box-overlay-styles"});class m extends((0,d.H)((0,o.F)((0,r.U)((0,l.Tb)(s.H3))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return(0,s.dy)(u||(u=_`
|
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
<div part="overlay" id="overlay">
|
|
<div part="loader"></div>
|
|
<div part="content" id="content"><slot></slot></div>
|
|
</div>
|
|
`))}}(0,n.M)(m),t()}catch(c){t(c)}}))},72373:function(e,t,i){i.d(t,{h:function(){return s}});const s=class{toString(){return""}}},37996:function(e,t,i){i.a(e,(async function(e,s){try{i.d(t,{t:function(){return d}});i(71695),i(52805),i(23669),i(19134),i(11740),i(97003),i(39527),i(67670),i(13334),i(34595),i(47021);var n=i(94146),r=i(23885),o=i(20997),a=i(72373),l=e([o]);o=(l.then?(await l)():l)[0];const d=e=>class extends e{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map((e=>parseInt(e,10))).reduce(((e,t)=>e+t))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${(0,r.l)()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(e=>e.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const s=[...this.children].find((e=>!e.hidden&&e.index===this.__virtualizer.lastVisibleIndex));if(!s||e!==s.index)return;const n=s.getBoundingClientRect(),r=this.getBoundingClientRect(),o=n.bottom-r.bottom+this._viewportTotalPaddingBottom;o>0&&(this.scrollTop+=o)}_isItemSelected(e,t,i){return!(e instanceof a.h)&&(i&&void 0!==e&&void 0!==t?(0,n.U)(i,e)===(0,n.U)(i,t):e===t)}__initVirtualizer(){this.__virtualizer=new o.d({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map((()=>{const e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e}))}_updateElement(e,t){const i=this.items[t],s=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&s===t}),"function"==typeof this.itemClassNameGenerator?e.className=this.itemClassNameGenerator(i):""!==e.className&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",void 0!==t&&"option"),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof a.h&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(e=>{const t=0===this.scrollTop,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()}))}__requestItemByIndex(e){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))}))}_visibleItemsCount(){this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex);return this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};s()}catch(d){s(d)}}))},88698:function(e,t,i){i.a(e,(async function(e,t){try{var s=i(11709),n=i(40701),r=i(37996),o=e([r]);r=(o.then?(await o)():o)[0];let a,l=e=>e;class d extends((0,r.t)(s.H3)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return(0,s.dy)(a||(a=l`
|
|
<style>
|
|
:host {
|
|
display: block;
|
|
min-height: 1px;
|
|
overflow: auto;
|
|
|
|
/* Fixes item background from getting on top of scrollbars on Safari */
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
/* Enable momentum scrolling on iOS */
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
/* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
|
|
box-shadow: 0 0 0 white;
|
|
}
|
|
|
|
#selector {
|
|
border-width: var(--_vaadin-combo-box-items-container-border-width);
|
|
border-style: var(--_vaadin-combo-box-items-container-border-style);
|
|
border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
|
|
position: relative;
|
|
}
|
|
</style>
|
|
<div id="selector">
|
|
<slot></slot>
|
|
</div>
|
|
`))}}(0,n.M)(d),t()}catch(a){t(a)}}))},45679:function(e,t,i){i("38046"),i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("19134"),i("5740"),i("11740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("13334"),i("36993"),i("47021");var s=i("57243");const n=[],r=new Set,o=new Set;function a(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function l(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function d(e){return e.map((e=>e.cssText)).join("\n")}const h="vaadin-themable-mixin-style";function c(e){r.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(h),s=t.prototype._template;i.textContent=s.content.getElementById(h).textContent}}(i):i||r.delete(t)}))}function u(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(h).textContent=d(e.getStylesForThis())}o.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&u(i)}))}let _;const p=(0,s.iv)(_||(_=(e=>e)`
|
|
:host {
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
min-height: 36px;
|
|
padding: 8px 32px 8px 10px;
|
|
overflow: hidden;
|
|
font-family: var(--material-font-family);
|
|
font-size: var(--material-small-font-size);
|
|
line-height: 24px;
|
|
}
|
|
|
|
/* It's the list-box's responsibility to add the focus style */
|
|
:host([focused]) {
|
|
outline: none;
|
|
}
|
|
|
|
/* Checkmark */
|
|
[part='checkmark']::before {
|
|
display: var(--_material-item-selected-icon-display, none);
|
|
content: '';
|
|
font-family: material-icons;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
font-weight: 400;
|
|
width: 24px;
|
|
text-align: center;
|
|
margin-right: 10px;
|
|
color: var(--material-secondary-text-color);
|
|
flex: none;
|
|
}
|
|
|
|
:host([selected]) [part='checkmark']::before {
|
|
content: var(--material-icons-check);
|
|
}
|
|
|
|
@media (any-hover: hover) {
|
|
:host(:hover:not([disabled])) {
|
|
background-color: var(--material-secondary-background-color);
|
|
}
|
|
}
|
|
|
|
:host([focused]:not([disabled])) {
|
|
background-color: var(--material-divider-color);
|
|
}
|
|
|
|
/* Disabled */
|
|
:host([disabled]) {
|
|
color: var(--material-disabled-text-color);
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* RTL specific styles */
|
|
:host([dir='rtl']) {
|
|
padding: 8px 10px 8px 32px;
|
|
}
|
|
|
|
:host([dir='rtl']) [part='checkmark']::before {
|
|
margin-right: 0;
|
|
margin-left: 10px;
|
|
}
|
|
`));!function(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):n.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&o.forEach((i=>{if(l(e,i)&&function(e){return a(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),u(e),c(e)}}))}("vaadin-item",p,{moduleId:"material-item"});var m=i("20087");let f;const g=(0,m.iv)(f||(f=(e=>e)`
|
|
:host {
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
padding: 4px 10px;
|
|
--_material-item-selected-icon-display: block;
|
|
}
|
|
`));(0,m.hC)("vaadin-combo-box-item",[p,g],{moduleId:"material-combo-box-item"})},28737:function(e,t,i){i.a(e,(async function(e,t){try{i(45679),i(75244);var s=i(60180),n=e([s]);s=(n.then?(await n)():n)[0],t()}catch(r){t(r)}}))},75244:function(e,t,i){i("38046");var s=i("7930");let n;const r=(0,s.iv)(n||(n=(e=>e)`
|
|
[part~='loader'] {
|
|
height: 2px;
|
|
background: var(--material-background-color)
|
|
linear-gradient(
|
|
90deg,
|
|
transparent 0%,
|
|
transparent 20%,
|
|
var(--material-primary-color) 20%,
|
|
var(--material-primary-color) 40%,
|
|
transparent 40%,
|
|
transparent 60%,
|
|
var(--material-primary-color) 60%,
|
|
var(--material-primary-color) 80%,
|
|
transparent 80%,
|
|
transparent 100%
|
|
)
|
|
0 0 / 400% 100% repeat-x;
|
|
opacity: 0;
|
|
}
|
|
|
|
:host(:not([loading])) [part~='loader'] {
|
|
display: none;
|
|
}
|
|
|
|
:host([loading]) [part='loader'] {
|
|
animation:
|
|
3s linear infinite material-loader-progress,
|
|
0.3s 0.1s both material-loader-fade-in;
|
|
}
|
|
|
|
[part='loader']::before {
|
|
content: '';
|
|
display: block;
|
|
height: 100%;
|
|
opacity: 0.16;
|
|
background: var(--material-primary-color);
|
|
}
|
|
|
|
@keyframes material-loader-fade-in {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes material-loader-progress {
|
|
0% {
|
|
background-position: 0 0;
|
|
background-size: 300% 100%;
|
|
}
|
|
|
|
33% {
|
|
background-position: -100% 0;
|
|
background-size: 400% 100%;
|
|
}
|
|
|
|
67% {
|
|
background-position: -200% 0;
|
|
background-size: 250% 100%;
|
|
}
|
|
|
|
100% {
|
|
background-position: -300% 0;
|
|
background-size: 300% 100%;
|
|
}
|
|
}
|
|
|
|
/* RTL specific styles */
|
|
|
|
@keyframes material-loader-progress-rtl {
|
|
0% {
|
|
background-position: 100% 0;
|
|
background-size: 300% 100%;
|
|
}
|
|
|
|
33% {
|
|
background-position: 200% 0;
|
|
background-size: 400% 100%;
|
|
}
|
|
|
|
67% {
|
|
background-position: 300% 0;
|
|
background-size: 250% 100%;
|
|
}
|
|
|
|
100% {
|
|
background-position: 400% 0;
|
|
background-size: 300% 100%;
|
|
}
|
|
}
|
|
|
|
:host([loading][dir='rtl']) [part='loader'] {
|
|
animation:
|
|
3s linear infinite material-loader-progress-rtl,
|
|
0.3s 0.1s both material-loader-fade-in;
|
|
}
|
|
`));i("88039");var o=i("68305");let a;const l=(0,s.iv)(a||(a=(e=>e)`
|
|
/* prettier-ignore */
|
|
:host {
|
|
/* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */
|
|
--material-shadow-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
--material-shadow-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 3px -2px rgba(0, 0, 0, 0.4);
|
|
--material-shadow-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
|
|
--material-shadow-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);
|
|
--material-shadow-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);
|
|
--material-shadow-elevation-12dp: 0 12px 16px 1px rgba(0, 0, 0, 0.14), 0 4px 22px 3px rgba(0, 0, 0, 0.12), 0 6px 7px -4px rgba(0, 0, 0, 0.4);
|
|
--material-shadow-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.4);
|
|
--material-shadow-elevation-24dp: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.4);
|
|
}
|
|
`));(0,o.I)("shadow",l);let d;const h=(0,s.iv)(d||(d=(e=>e)`
|
|
:host {
|
|
top: 16px;
|
|
right: 16px;
|
|
/* TODO (@jouni): remove unnecessary multiplication after https://github.com/vaadin/vaadin-overlay/issues/90 is fixed */
|
|
bottom: calc(1px * var(--vaadin-overlay-viewport-bottom) + 16px);
|
|
left: 16px;
|
|
}
|
|
|
|
[part='overlay'] {
|
|
background-color: var(--material-background-color);
|
|
border-radius: 4px;
|
|
box-shadow: var(--material-shadow-elevation-4dp);
|
|
color: var(--material-body-text-color);
|
|
font-family: var(--material-font-family);
|
|
font-size: var(--material-body-font-size);
|
|
font-weight: 400;
|
|
}
|
|
|
|
[part='content'] {
|
|
padding: 8px 0;
|
|
}
|
|
|
|
[part='backdrop'] {
|
|
opacity: 0.2;
|
|
animation: 0.2s vaadin-overlay-backdrop-enter;
|
|
will-change: opacity;
|
|
}
|
|
|
|
@keyframes vaadin-overlay-backdrop-enter {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
`));(0,s.hC)("",h,{moduleId:"material-overlay"});const c=h;(0,s.hC)("",c,{moduleId:"material-menu-overlay"});var u=i("20087");let _,p,m,f=e=>e;const g=(0,u.iv)(_||(_=f`
|
|
[part='overlay'] {
|
|
position: relative;
|
|
overflow: visible;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
[part='content'] {
|
|
padding: 0;
|
|
}
|
|
`)),y=(0,u.iv)(p||(p=f`
|
|
[part~='loader'] {
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: -2px;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
`));(0,u.hC)("vaadin-combo-box-overlay",[c,g,r,y,(0,u.iv)(m||(m=f`
|
|
:host {
|
|
--_vaadin-combo-box-items-container-border-width: 8px 0;
|
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
}
|
|
`))],{moduleId:"material-combo-box-overlay"})},40029:function(e,t,i){i.d(t,{Wc:function(){return a},YA:function(){return h},rs:function(){return l},t$:function(){return d}});i(52247),i(92745),i(85664);let s=0,n=0;const r=[];let o=!1;const a={after(e){return{run(t){return window.setTimeout(t,e)},cancel(e){window.clearTimeout(e)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},l={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},d={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},h={run(e){o||(o=!0,queueMicrotask((()=>function(){o=!1;const e=r.length;for(let i=0;i<e;i++){const e=r[i];if(e)try{e()}catch(t){setTimeout((()=>{throw t}))}}r.splice(0,e),n+=e}()))),r.push(e);const t=s;return s+=1,t},cancel(e){const t=e-n;if(t>=0){if(!r[t])throw new Error(`invalid async handle: ${e}`);r[t]=null}}}},90850:function(e,t,i){i.d(t,{G6:function(){return a},T:function(){return l},gn:function(){return o}});i(19134),i(5740);const s=e=>e.test(navigator.userAgent),n=e=>e.test(navigator.platform);s(/Android/),s(/Chrome/)&&/Google Inc/.test(navigator.vendor);s(/Firefox/);const r=n(/^iPad/)||n(/^Mac/)&&navigator.maxTouchPoints>1,o=n(/^iPhone/)||r,a=s(/^((?!chrome|android)(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*[s\u017F]afari/i),l=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&CSSStyleSheet.prototype},48001:function(e,t,i){i.d(t,{k:function(){return s}});i(71695),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(39527),i(41360),i(47021);const s=(0,i(19883).o)((e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((e=>{e.hostConnected&&e.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((e=>{e.hostDisconnected&&e.hostDisconnected()}))}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}))},41353:function(e,t,i){i.d(t,{Ex:function(){return r},dx:function(){return n},yl:function(){return a}});i(71695),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(39527),i(41360),i(47021);const s=new Set;class n{static debounce(e,t,i){return e instanceof n?e._cancelAsync():e=new n,e.setConfig(t,i),e}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,s.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),s.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}}function r(e){s.add(e)}function o(){const e=Boolean(s.size);return s.forEach((e=>{try{e.flush()}catch(t){setTimeout((()=>{throw t}))}})),e}const a=()=>{let e;do{e=o()}while(e)}},40701:function(e,t,i){i.d(t,{M:function(){return o}});var s,n;i(71695),i(19134),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(97003),i(39527),i(41360),i(47021);(s=window).Vaadin||(s.Vaadin={}),(n=window.Vaadin).featureFlags||(n.featureFlags={});const r={};function o(e,t="24.6.2"){if(Object.defineProperty(e,"version",{get(){return t}}),e.experimental){const t="string"==typeof e.experimental?e.experimental:`${i=e.is.split("-").slice(1).join("-"),i.replace(/-[a-z]/g,(e=>e[1].toUpperCase()))}Component`;if(!window.Vaadin.featureFlags[t]&&!r[t])return r[t]=new Set,r[t].add(e),void Object.defineProperty(window.Vaadin.featureFlags,t,{get(){return 0===r[t].size},set(e){e&&r[t].size>0&&(r[t].forEach((e=>{customElements.define(e.is,e)})),r[t].clear())}});if(r[t])return void r[t].add(e)}var i;const s=customElements.get(e.is);if(s){const t=s.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${s.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}},8058:function(e,t,i){i.d(t,{U:function(){return o}});i(19083),i(92745);const s=[];function n(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function r(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const e=r();s.forEach((t=>{n(t,e)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const o=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),n(this,r(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"dir"!==e)return;const o=r(),a=i===o&&-1===s.indexOf(this),l=!i&&t&&-1===s.indexOf(this),d=i!==o&&t===o;a||l?(this.__subscribe(),n(this,o,i)):d&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=s.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){("dir"!==i||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){s.includes(this)||s.push(this)}__unsubscribe(){s.includes(this)&&s.splice(s.indexOf(this),1)}}},46176:function(e,t,i){i.d(t,{AD:function(){return s}});i(71695),i(92745),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(81804),i(39527),i(41360),i(47021);function s(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e=e.assignedSlot?e.assignedSlot:e.parentNode:(t.push(e),e=e.host)}return t}},91613:function(e,t,i){i.d(t,{K:function(){return a}});i(92745),i(19134),i(44495);var s=i(40029),n=i(41353);const r=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS ([0-9]+)/),o=r&&r[1]>=8,a={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const e=this._virtualCount;return Math.max(0,e-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(e){e=this._clamp(e,0,this._maxVirtualStart),this._virtualStartVal=e},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(e){(e%=this._physicalCount)<0&&(e=this._physicalCount+e),this._physicalStartVal=e},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(e){this._physicalCountVal=e},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let e=this._firstVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;e=this._iterateItems(((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=e}return e},get lastVisibleIndex(){let e=this._lastVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;this._iterateItems(((i,s)=>{t<this._scrollBottom&&(e=s),t+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=e}return e},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=e-this._scrollPosition;const i=t>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const e=Math.round(t/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const e=this._getReusables(i);i?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,i?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),s.YA)}},_getReusables(e){let t,i,s;const n=[],r=this._hiddenContentSize*this._ratio,o=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,u=this._scrollBottom;for(e?(t=this._physicalStart,i=c-d):(t=this._physicalEnd,i=h-u);s=this._getPhysicalSizeIncrement(t),i-=s,!(n.length>=l||i<=r);)if(e){if(a+n.length+1>=this._virtualCount)break;if(d+s>=c-this._scrollOffset)break;n.push(t),d+=s,t=(t+1)%l}else{if(o-n.length<=0)break;if(d+this._physicalSize-s<=u)break;n.push(t),d-=s,t=0===t?l-1:t-1}return{indexes:n,physicalTop:d-this._scrollOffset}},_update(e,t){if(!(e&&0===e.length||0===this._physicalCount)){if(this._assignModels(e),this._updateMetrics(e),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(e){const t=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(t<0)){if(t>0){const e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let i=0;i<t;i++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-e)/t,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),s.t$):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),s.YA))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(e){"items"===e.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,s.rs))},_iterateItems(e,t){let i,s,n,r;if(2===arguments.length&&t){for(r=0;r<t.length;r++)if(i=t[r],s=this._computeVidx(i),null!=(n=e.call(this,i,s)))return n}else{for(i=this._physicalStart,s=this._virtualStart;i<this._physicalCount;i++,s++)if(null!=(n=e.call(this,i,s)))return n;for(i=0;i<this._physicalStart;i++,s++)if(null!=(n=e.call(this,i,s)))return n}},_computeVidx(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_positionItems(){this._adjustScrollPosition();let e=this._physicalTop;this._iterateItems((t=>{this.translate3d(0,`${e}px`,0,this._physicalItems[t]),e+=this._physicalSizes[t]}))},_getPhysicalSizeIncrement(e){return this._physicalSizes[e]},_adjustScrollPosition(){const e=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==e){this._physicalTop-=e;const t=this._scrollPosition;!o&&t>0&&this._resetScrollPosition(t-e)}},_resetScrollPosition(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize(e){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(e||0===this._scrollHeight||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(e){if("number"!=typeof e||e<0||e>this.items.length-1)return;if((0,n.yl)(),0===this._physicalCount)return;e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=e-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,i=this._virtualStart,s=0;const r=this._hiddenContentSize;for(;i<e&&s<=r;)s+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+s),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),s.rs)},_isIndexRendered(e){return e>=this._virtualStart&&e<=this._virtualEnd},_getPhysicalIndex(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},_clamp(e,t,i){return Math.min(i,Math.max(t,e))},_debounce(e,t,i){this._debouncers||(this._debouncers={}),this._debouncers[e]=n.dx.debounce(this._debouncers[e],i,t.bind(this)),(0,n.Ex)(this._debouncers[e])}}},94146:function(e,t,i){i.d(t,{U:function(){return s}});i(52805),i(39527),i(34595);function s(e,t){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),t)}},23885:function(e,t,i){i.d(t,{l:function(){return n}});let s=0;function n(){return s++}},5589:function(e,t,i){i.a(e,(async function(e,s){try{i.d(t,{Z:function(){return u}});i(71695),i(92745),i(52805),i(95078),i(23669),i(39527),i(99790),i(67670),i(41360),i(34595),i(36993),i(47021);var n=i(31948),r=i(40029),o=i(90850),a=i(41353),l=i(91613),d=e([n]);n=(d.then?(await d)():d)[0];const h=1e5,c=1e3;class u{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:s,elementsContainer:n,reorderElements:r}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=n||s,this.reorderElements=r,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(e=>this.__onWheel(e))),this.scrollTarget.addEventListener("virtualizer-element-focused",(e=>this.__onElementFocused(e))),this.elementsContainer.addEventListener("focusin",(()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((e=>e.__virtualizerPlaceholder))}scrollToIndex(e){if("number"!=typeof e||isNaN(e)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<c?(i=e,this._vidxOffset=0):(i=c,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),(0,a.yl)(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach((s=>{s.__virtualIndex>=e&&s.__virtualIndex<=t&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))})),this.__afterElementsUpdated(i)}_updateMetrics(e){(0,a.yl)();let t=0,i=0;const s=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems(((e,s)=>{i+=this._physicalSizes[e],this._physicalSizes[e]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[e])),t+=this._physicalSizes[e],this._physicalAverageCount+=this._physicalSizes[e]?1:0}),e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((n*s+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if("border-box"===t.boxSizing)return i;return i+(parseFloat(t.paddingBottom)||0)+(parseFloat(t.paddingTop)||0)+(parseFloat(t.borderBottomWidth)||0)+(parseFloat(t.borderTopWidth)||0)}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),this.__preventElementUpdates||e.__lastUpdatedIndex===t&&!i||(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach((e=>{const t=e.offsetHeight;if(0===t)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=a.dx.debounce(this.__placeholderClearDebouncer,r.rs,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(t),this.__elementHeightQueue.shift();const e=this.__elementHeightQueue.filter((e=>void 0!==e));this.__placeholderHeight=Math.round(e.reduce(((e,t)=>e+t),0)/e.length)}})),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find((t=>t.__virtualIndex===e));return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;let t,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),(0,a.yl)(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const s=this.__getIndexScrollOffset(t);void 0!==i&&void 0!==s&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),(0,a.yl)(),this._debounce("_update",this._update,r.YA)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,h)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=Boolean("rtl"===e.direction),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach((e=>{e.style.position="absolute",i.appendChild(e),this.__resizeObserver.observe(e)})),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems(((e,i)=>{const s=this._physicalItems[e];s.hidden=i>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))}),e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(e,t,i,s){s.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find((e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement)))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return 0===t.indexOf(e)&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,s)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=a.dx.debounce(this.__fixInvalidItemPositioningDebouncer,r.Wc.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=a.dx.debounce(this.__scrollReorderDebouncer,r.Wc.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=0===this.adjustedFirstVisibleIndex,s=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!s){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=t,void e.preventDefault();t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=a.dx.debounce(this.__debouncerWheelAnimationFrame,r.rs,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=a.dx.debounce(this._debouncerIgnoreNewWheel,r.Wc.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){return e!==this.scrollTarget&&e!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(e,t,i)||-1===["auto","scroll"].indexOf(getComputedStyle(e).overflow))||(e!==this&&e.parentElement?this._hasScrolledAncestor(e.parentElement,t,i):void 0))}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((e=>!e.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const s=i.__virtualIndex-e,n=t.indexOf(i)-s;if(n>0)for(let r=0;r<n;r++)this.elementsContainer.appendChild(t[r]);else if(n<0)for(let r=t.length+n;r<t.length;r++)this.elementsContainer.insertBefore(t[r],t[0]);if(o.G6){const{transform:e}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=e}))}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(e*t)}else{const e=this._vidxOffset,i=c,s=100;0===this._scrollTop?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(u.prototype,l.K),s()}catch(h){s(h)}}))},20997:function(e,t,i){i.a(e,(async function(e,s){try{i.d(t,{d:function(){return o}});var n=i(5589),r=e([n]);n=(r.then?(await r)():r)[0];class o{constructor(e){this.__adapter=new n.Z(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}s()}catch(o){s(o)}}))},71786:function(e,t,i){i.d(t,{F:()=>x});i("19083"),i("61006");var s=i("85695"),n=i("90850");i("71695"),i("92745"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("46692"),i("39527"),i("99790"),i("41360"),i("13334"),i("47021");let r=new WeakMap,o=new WeakMap,a={},l=0;const d=e=>e&&e.nodeType===Node.ELEMENT_NODE,h=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},c=(e,t,i,s)=>{const n=((e,t)=>d(e)?t.map((t=>{if(!d(t))return h(t,"is not a valid element"),null;let i=t;for(;i&&i!==e;){if(e.contains(i))return t;i=i.getRootNode().host}return h(t,"is not contained inside",e),null})).filter((e=>Boolean(e))):(h(e,"is not a valid element"),[]))(t,Array.isArray(e)?e:[e]);a[i]||(a[i]=new WeakMap);const c=a[i],u=[],_=new Set,p=new Set(n),m=e=>{if(!e||_.has(e))return;_.add(e);const t=e.assignedSlot;t&&m(t),m(e.parentNode||e.host)};n.forEach(m);const f=e=>{if(!e||p.has(e))return;const t=e.shadowRoot;(t?[...e.children,...t.children]:[...e.children]).forEach((e=>{if(!["template","script","style"].includes(e.localName))if(_.has(e))f(e);else{const t=e.getAttribute(s),n=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(c.get(e)||0)+1;r.set(e,a),c.set(e,l),u.push(e),1===a&&n&&o.set(e,!0),1===l&&e.setAttribute(i,"true"),n||e.setAttribute(s,"true")}}))};return f(t),_.clear(),l+=1,()=>{u.forEach((e=>{const t=r.get(e)-1,n=c.get(e)-1;r.set(e,t),c.set(e,n),t||(o.has(e)?o.delete(e):e.removeAttribute(s)),n||e.removeAttribute(i)})),l-=1,l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}},u=(e,t=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(e)?e:[e]);return t&&s.push(...Array.from(t.querySelectorAll("[aria-live]"))),c(s,t,i,"aria-hidden")};HTMLElement.prototype;class _{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){const e=this.callback();this.__showOthers=u(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}var p=i("73072");class m{saveFocus(e){this.focusNode=e||(0,p.Gf)()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=!!e&&e.preventScroll;(0,p.Gf)()===document.body?setTimeout((()=>t.focus({preventScroll:i}))):t.focus({preventScroll:i}),this.focusNode=null}}i("52247");const f=[];class g{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return(0,p.GO)(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(p.Qw).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");f.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,f.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(f).pop()&&"Tab"===e.key){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,s=this.__focusedElementIndex,n=t[(t.length+s+i)%t.length];n.focus(),"input"===n.localName&&n.select()}}var y=i("48001");const v=e=>class extends((0,y.k)(e)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new _(this),this.__focusTrapController=new g(this),this.__focusRestorationController=new m}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!(0,p.LQ)();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=(0,p.Gf)();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};i("61893"),i("95078");const b=()=>Array.from(document.body.children).filter((e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing"))).sort(((e,t)=>e.__zIndex-t.__zIndex||0)),C=()=>b().filter((e=>e.$.overlay)),w=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return this===C().pop()}bringToFront(){let e="";const t=b().filter((e=>e!==this)).pop();if(t){e=t.__zIndex+1}this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),C().forEach((e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=C();let t;for(;(t=e.pop())&&(t===this||(t.$.overlay.style.removeProperty("pointer-events"),t.modeless)););}},x=e=>class extends(v(w(e))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),n.gn&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",i-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,s){const n=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const r=this._oldRenderer!==e,o=void 0!==this._oldRenderer;this._oldRenderer=e;const a=this._oldOpened!==s;this._oldOpened=s,r&&o&&(this.innerHTML="",delete this._$litPart$),s&&e&&(r||a||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),(0,s.T8)(this,(()=>{this._trapFocus();const e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const i=`__${e}Handler`,s=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(e){const t=`__${e}Handler`;"function"==typeof this[t]&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&(!this.modeless||e.composedPath().includes(this.$.overlay))&&"Escape"===e.key){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}}},59125:function(e,t,i){i.a(e,(async function(e,s){try{i.d(t,{y:function(){return c}});i(19423),i(95078),i(23669),i(39527),i(41360);var n=i(31948),r=(i(22152),i(46176)),o=i(64440),a=e([n]);n=(a.then?(await a)():a)[0];const l={start:"top",end:"bottom"},d={start:"left",end:"right"},h=new ResizeObserver((e=>{setTimeout((()=>{e.forEach((e=>{e.target.__overlay&&e.target.__overlay._updatePosition()}))}))})),c=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=(0,r.AD)(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((e=>{e.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=(0,o.f)(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((e=>{e.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,h.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,h.observe(t))),e){const e=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((t=>{this.__margins[t]=parseInt(e[t],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(0===e.width&&0===e.height&&this.opened)return void(this.opened=!1);const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(e,i),n=!i&&s||i&&!s;this.style.alignItems=n?"flex-start":"flex-end";const r=this.getBoundingClientRect(),o=this.__calculatePositionInOneDimension(e,r,this.noVerticalOverlap,l,this,t),a=this.__calculatePositionInOneDimension(e,r,this.noHorizontalOverlap,d,this,s);Object.assign(this.style,o,a),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,i,s,this.__margins,n,this.noHorizontalOverlap,d)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),s="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,i,this.__margins,s,this.noVerticalOverlap,l)}__shouldAlignStart(e,t,i,s,n,r,o){const a=i-e[r?o.end:o.start]-s[o.end],l=e[r?o.start:o.end]-s[o.start],d=n?a:l;return n===(d>(n?l:a)||d>t)}__adjustBottomProperty(e,t,i){let s;if(e===t.end){if(t.end===l.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>e&&this.__oldViewportHeight){s=i-(this.__oldViewportHeight-e)}this.__oldViewportHeight=e}if(t.end===d.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>e&&this.__oldViewportWidth){s=i-(this.__oldViewportWidth-e)}this.__oldViewportWidth=e}}return s}__calculatePositionInOneDimension(e,t,i,s,n,r){const o=r?s.start:s.end,a=r?s.end:s.start,l=parseFloat(n.style[o]||getComputedStyle(n)[o]),d=this.__adjustBottomProperty(o,s,l),h=t[r?s.start:s.end]-e[i===r?s.end:s.start],c=d?`${d}px`:`${l+h*(r?-1:1)}px`;return{[o]:c,[a]:""}}};s()}catch(l){s(l)}}))},38243:function(e,t,i){i.d(t,{r:function(){return n}});let s;const n=(0,i(57243).iv)(s||(s=(e=>e)`:host{z-index:200;position:fixed;inset:0;bottom:var(--vaadin-overlay-viewport-bottom);display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto;pointer-events:none;-webkit-tap-highlight-color:transparent;--vaadin-overlay-viewport-bottom:0}:host(:not([opened]):not([closing])),:host(:not([opened]):not([closing])) [part=overlay],:host([hidden]){display:none!important}[part=overlay]{-webkit-overflow-scrolling:touch;overflow:auto;pointer-events:auto;max-width:100%;box-sizing:border-box;-webkit-tap-highlight-color:initial}[part=backdrop]{z-index:-1;content:'';background:rgba(0,0,0,.5);position:fixed;inset:0;pointer-events:auto}`))},64440:function(e,t,i){function s(e,t){let i=null;const s=document.documentElement;function n(){i&&i.disconnect(),i=null}return function r(o=!1,a=1){n();const{left:l,top:d,width:h,height:c}=e.getBoundingClientRect();if(o||t(),!h||!c)return;const u={rootMargin:`${-Math.floor(d)}px ${-Math.floor(s.clientWidth-(l+h))}px ${-Math.floor(s.clientHeight-(d+c))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let _=!0;i=new IntersectionObserver((function(e){let t=e[0].intersectionRatio;if(t!==a){if(!_)return r();0===t&&(t=1e-7),r(!1,t)}_=!1}),u),i.observe(e)}(!0),n}i.d(t,{f:function(){return s}})},38046:function(e,t,i){i(88039);var s=i(7930),n=i(68305);let r,o,a,l=e=>e;const d=(0,s.iv)(r||(r=l`
|
|
:host {
|
|
/* Text colors */
|
|
--material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));
|
|
--material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));
|
|
--material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));
|
|
|
|
/* Primary colors */
|
|
--material-primary-color: var(--primary-color, #6200ee);
|
|
--material-primary-contrast-color: var(--dark-theme-base-color, #fff);
|
|
--material-primary-text-color: var(--material-primary-color);
|
|
|
|
/* Error colors */
|
|
--material-error-color: var(--error-color, #b00020);
|
|
--material-error-text-color: var(--material-error-color);
|
|
|
|
/* Background colors */
|
|
--material-background-color: var(--light-theme-background-color, #fff);
|
|
--material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);
|
|
--material-disabled-color: rgba(0, 0, 0, 0.26);
|
|
|
|
/* Divider colors */
|
|
--material-divider-color: rgba(0, 0, 0, 0.12);
|
|
|
|
/* Undocumented internal properties (prefixed with three dashes) */
|
|
|
|
/* Text field tweaks */
|
|
--_material-text-field-input-line-background-color: initial;
|
|
--_material-text-field-input-line-opacity: initial;
|
|
--_material-text-field-input-line-hover-opacity: initial;
|
|
--_material-text-field-focused-label-opacity: initial;
|
|
|
|
/* Button tweaks */
|
|
--_material-button-raised-background-color: initial;
|
|
--_material-button-outline-color: initial;
|
|
|
|
/* Grid tweaks */
|
|
--_material-grid-row-hover-background-color: initial;
|
|
|
|
/* Split layout tweaks */
|
|
--_material-split-layout-splitter-background-color: initial;
|
|
|
|
background-color: var(--material-background-color);
|
|
color: var(--material-body-text-color);
|
|
}
|
|
|
|
[theme~='dark'] {
|
|
/* Text colors */
|
|
--material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));
|
|
--material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));
|
|
--material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));
|
|
|
|
/* Primary colors */
|
|
--material-primary-color: var(--light-primary-color, #7e3ff2);
|
|
--material-primary-text-color: #b794f6;
|
|
|
|
/* Error colors */
|
|
--material-error-color: var(--error-color, #de2839);
|
|
--material-error-text-color: var(--material-error-color);
|
|
|
|
/* Background colors */
|
|
--material-background-color: var(--dark-theme-background-color, #303030);
|
|
--material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);
|
|
--material-disabled-color: rgba(255, 255, 255, 0.3);
|
|
|
|
/* Divider colors */
|
|
--material-divider-color: rgba(255, 255, 255, 0.12);
|
|
|
|
/* Undocumented internal properties (prefixed with three dashes) */
|
|
|
|
/* Text field tweaks */
|
|
--_material-text-field-input-line-background-color: #fff;
|
|
--_material-text-field-input-line-opacity: 0.7;
|
|
--_material-text-field-input-line-hover-opacity: 1;
|
|
--_material-text-field-focused-label-opacity: 1;
|
|
|
|
/* Button tweaks */
|
|
--_material-button-raised-background-color: rgba(255, 255, 255, 0.08);
|
|
--_material-button-outline-color: rgba(255, 255, 255, 0.2);
|
|
|
|
/* Grid tweaks */
|
|
--_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);
|
|
--_material-grid-row-selected-overlay-opacity: 0.16;
|
|
|
|
/* Split layout tweaks */
|
|
--_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);
|
|
|
|
background-color: var(--material-background-color);
|
|
color: var(--material-body-text-color);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
`));(0,s.hC)("",d,{moduleId:"material-color-light"});const h=(0,s.iv)(o||(o=l`
|
|
:host {
|
|
/* Text colors */
|
|
--material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));
|
|
--material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));
|
|
--material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));
|
|
|
|
/* Primary colors */
|
|
--material-primary-color: var(--light-primary-color, #7e3ff2);
|
|
--material-primary-text-color: #b794f6;
|
|
|
|
/* Error colors */
|
|
--material-error-color: var(--error-color, #de2839);
|
|
--material-error-text-color: var(--material-error-color);
|
|
|
|
/* Background colors */
|
|
--material-background-color: var(--dark-theme-background-color, #303030);
|
|
--material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);
|
|
--material-disabled-color: rgba(255, 255, 255, 0.3);
|
|
|
|
/* Divider colors */
|
|
--material-divider-color: rgba(255, 255, 255, 0.12);
|
|
|
|
/* Undocumented internal properties (prefixed with three dashes) */
|
|
|
|
/* Text field tweaks */
|
|
--_material-text-field-input-line-background-color: #fff;
|
|
--_material-text-field-input-line-opacity: 0.7;
|
|
--_material-text-field-input-line-hover-opacity: 1;
|
|
--_material-text-field-focused-label-opacity: 1;
|
|
|
|
/* Button tweaks */
|
|
--_material-button-raised-background-color: rgba(255, 255, 255, 0.08);
|
|
--_material-button-outline-color: rgba(255, 255, 255, 0.2);
|
|
|
|
/* Grid tweaks */
|
|
--_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);
|
|
--_material-grid-row-selected-overlay-opacity: 0.16;
|
|
|
|
/* Split layout tweaks */
|
|
--_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);
|
|
|
|
background-color: var(--material-background-color);
|
|
color: var(--material-body-text-color);
|
|
}
|
|
`));(0,s.hC)("",h,{moduleId:"material-color-dark"});const c=(0,s.iv)(a||(a=l`
|
|
:host {
|
|
/* Text colors */
|
|
--material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));
|
|
--material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));
|
|
--material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));
|
|
|
|
/* Primary colors */
|
|
--material-primary-color: var(--primary-color, #6200ee);
|
|
--material-primary-contrast-color: var(--dark-theme-base-color, #fff);
|
|
--material-primary-text-color: var(--material-primary-color);
|
|
|
|
/* Error colors */
|
|
--material-error-color: var(--error-color, #b00020);
|
|
--material-error-text-color: var(--material-error-color);
|
|
|
|
/* Background colors */
|
|
--material-background-color: var(--light-theme-background-color, #fff);
|
|
--material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);
|
|
--material-disabled-color: rgba(0, 0, 0, 0.26);
|
|
|
|
/* Divider colors */
|
|
--material-divider-color: rgba(0, 0, 0, 0.12);
|
|
}
|
|
`));(0,n.I)("color-base",c)},68305:function(e,t,i){i.d(t,{I:()=>s});i("19134"),i("11740"),i("97003"),i("13334"),i("7930");const s=(e,...t)=>{((e,...t)=>{const i=document.createElement("style");i.id=e,i.textContent=t.map((e=>e.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)})(`material-${e}`,t)}},7930:function(e,t,i){i.d(t,{iv:()=>s.iv,hC:()=>_});i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("19134"),i("5740"),i("11740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("13334"),i("36993"),i("47021");var s=i("57243");const n=[],r=new Set,o=new Set;function a(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function l(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function d(e){return e.map((e=>e.cssText)).join("\n")}const h="vaadin-themable-mixin-style";function c(e){r.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(h),s=t.prototype._template;i.textContent=s.content.getElementById(h).textContent}}(i):i||r.delete(t)}))}function u(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(h).textContent=d(e.getStylesForThis())}o.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&u(i)}))}function _(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):n.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&o.forEach((i=>{if(l(e,i)&&function(e){return a(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),u(e),c(e)}}))}},88039:function(e,t,i){var s=i(40701);class n extends HTMLElement{static get is(){return"vaadin-material-styles"}}(0,s.M)(n)},75662:function(e,t,i){i.d(t,{hC:()=>_});i("19134"),i("11740"),i("97003"),i("13334"),i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("5740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("36993"),i("47021");var s=i("57243");const n=[],r=new Set,o=new Set;function a(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function l(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function d(e){return e.map((e=>e.cssText)).join("\n")}const h="vaadin-themable-mixin-style";function c(e){r.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(h),s=t.prototype._template;i.textContent=s.content.getElementById(h).textContent}}(i):i||r.delete(t)}))}function u(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(h).textContent=d(e.getStylesForThis())}o.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&u(i)}))}function _(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):n.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&o.forEach((i=>{if(l(e,i)&&function(e){return a(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),u(e),c(e)}}))}},1714:function(e,t,i){i.d(t,{sR:function(){return c}});i(71695),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(47021);var s=i(53232),n=i(45779);const r=(e,t)=>{var i,s;const n=e._$AN;if(void 0===n)return!1;for(const o of n)null===(s=(i=o)._$AO)||void 0===s||s.call(i,t,!1),r(o,t);return!0},o=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null==i?void 0:i.size))},a=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),h(t)}};function l(e){void 0!==this._$AN?(o(this),this._$AM=e,a(this)):this._$AM=e}function d(e,t=!1,i=0){const s=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(s))for(let a=i;a<s.length;a++)r(s[a],!1),o(s[a]);else null!=s&&(r(s,!1),o(s));else r(this,e)}const h=e=>{var t,i,s,r;e.type==n.pX.CHILD&&(null!==(t=(s=e)._$AP)&&void 0!==t||(s._$AP=d),null!==(i=(r=e)._$AQ)&&void 0!==i||(r._$AQ=l))};class c extends n.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),a(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,s;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),t&&(r(this,e),o(this))}setValue(e){if((0,s.OR)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}},67753:function(e,t,i){i.d(t,{sR:function(){return s.sR}});var s=i(1714)}}]);
|
|
//# sourceMappingURL=6931.6e4eddca80c27864.js.map
|