@openremote/or-attribute-input 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/build/dist/umd/index.bundle.js +3020 -0
  2. package/{dist → build/dist}/umd/index.js +9 -4
  3. package/build/dist/umd/index.orbundle.js +7246 -0
  4. package/build/lib/index.d.ts.map +1 -0
  5. package/build/lib/index.js.map +1 -0
  6. package/build/lib/renderers/agent-link.d.ts.map +1 -0
  7. package/build/lib/renderers/agent-link.js.map +1 -0
  8. package/build/lib/renderers/replay-data.d.ts.map +1 -0
  9. package/build/lib/renderers/replay-data.js.map +1 -0
  10. package/build/lib/renderers/scheduler.d.ts.map +1 -0
  11. package/build/lib/renderers/scheduler.js.map +1 -0
  12. package/package.json +26 -20
  13. package/dist/umd/index.orbundle.js +0 -6474
  14. package/lib/index.d.ts.map +0 -1
  15. package/lib/index.js.map +0 -1
  16. package/lib/renderers/agent-link.d.ts.map +0 -1
  17. package/lib/renderers/agent-link.js.map +0 -1
  18. package/lib/renderers/replay-data.d.ts.map +0 -1
  19. package/lib/renderers/replay-data.js.map +0 -1
  20. package/lib/renderers/scheduler.d.ts.map +0 -1
  21. package/lib/renderers/scheduler.js.map +0 -1
  22. package/playwright.config.ts +0 -21
  23. /package/{custom-elements-jsx.d.ts → build/custom-elements-jsx.d.ts} +0 -0
  24. /package/{custom-elements.json → build/custom-elements.json} +0 -0
  25. /package/{lib → build/lib}/index.d.ts +0 -0
  26. /package/{lib → build/lib}/index.js +0 -0
  27. /package/{lib → build/lib}/renderers/agent-link.d.ts +0 -0
  28. /package/{lib → build/lib}/renderers/agent-link.js +0 -0
  29. /package/{lib → build/lib}/renderers/replay-data.d.ts +0 -0
  30. /package/{lib → build/lib}/renderers/replay-data.js +0 -0
  31. /package/{lib → build/lib}/renderers/scheduler.d.ts +0 -0
  32. /package/{lib → build/lib}/renderers/scheduler.js +0 -0
@@ -652,7 +652,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
652
652
  ${t?K` <span class="mdc-notched-outline__notch"> ${t} </span> `:""}
653
653
  <span class="mdc-notched-outline__trailing"></span>
654
654
  </span>
655
- `}setCustomValidity(t){this.errorMessage=t;let e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){let t=this.shadowRoot.getElementById("elem"),e=!0;return t&&t.validity&&(e=t.validity.valid),e&&(this.type===lM.JSON||this.type===lM.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){let t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,n){var i,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case lM.CHECKBOX:case lM.SWITCH:e="on"===e;break;case lM.JSON:case lM.JSON_OBJECT:case lM.NUMBER:case lM.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type===lM.JSON_OBJECT&&("object"!=typeof e||Array.isArray(e))&&(e=this.value,a=tB.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===lM.JSON||this.type==lM.JSON_OBJECT?tB.i18next.t("validation.invalidJSON"):tB.i18next.t("validation.invalidNumber")}break;case lM.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=tB.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==lM.CHECKBOX_LIST&&e!==o&&(this.type===lM.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new i6(this.value,o,n))),void 0!=this.searchProvider&&this.type===lM.SELECT){let t=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==lM.CHECKBOX_LIST||tU.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new i6(e,o,n))}get valid(){let t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){let t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map(t=>{if(Array.isArray(t))return t;{let e=""+t;return[t,tB.i18next.t(e,{defaultValue:tU.Util.camelCaseToSentenceCase(e)})]}})),e}getSelectedTextValue(t){let e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";let i=t||this.resolveOptions(this.options);return i&&n?n.map(t=>i.find(([e,n],i)=>t===e)).map(t=>t?t[1]:"").join(", "):""}};iU([t_({type:Boolean})],i9.prototype,"focused",void 0),iU([t_()],i9.prototype,"value",void 0),iU([t_({type:String})],i9.prototype,"type",void 0),iU([t_({type:String})],i9.prototype,"name",void 0),iU([t_({type:Boolean})],i9.prototype,"readonly",void 0),iU([t_({type:Boolean})],i9.prototype,"required",void 0),iU([t_()],i9.prototype,"max",void 0),iU([t_()],i9.prototype,"min",void 0),iU([t_({type:Number})],i9.prototype,"step",void 0),iU([t_({type:Boolean})],i9.prototype,"checked",void 0),iU([t_({type:Boolean})],i9.prototype,"indeterminate",void 0),iU([t_({type:Number})],i9.prototype,"maxLength",void 0),iU([t_({type:Number})],i9.prototype,"minLength",void 0),iU([t_({type:Number})],i9.prototype,"rows",void 0),iU([t_({type:Number})],i9.prototype,"cols",void 0),iU([t_({type:Boolean})],i9.prototype,"multiple",void 0),iU([t_({type:String,attribute:!0,reflect:!1})],i9.prototype,"pattern",void 0),iU([t_({type:String})],i9.prototype,"placeHolder",void 0),iU([t_({type:Array})],i9.prototype,"options",void 0),iU([t_({type:Boolean})],i9.prototype,"autoSelect",void 0),iU([t_({type:Object})],i9.prototype,"searchProvider",void 0),iU([t_({type:String})],i9.prototype,"searchLabel",void 0),iU([t_({type:String})],i9.prototype,"icon",void 0),iU([t_({type:String})],i9.prototype,"iconColor",void 0),iU([t_({type:String})],i9.prototype,"iconOn",void 0),iU([t_({type:String})],i9.prototype,"iconTrailing",void 0),iU([t_({type:Boolean})],i9.prototype,"compact",void 0),iU([t_({type:Boolean})],i9.prototype,"comfortable",void 0),iU([t_({type:Boolean})],i9.prototype,"raised",void 0),iU([t_({type:Boolean})],i9.prototype,"action",void 0),iU([t_({type:Boolean})],i9.prototype,"unElevated",void 0),iU([t_({type:Boolean})],i9.prototype,"outlined",void 0),iU([t_({type:Boolean})],i9.prototype,"rounded",void 0),iU([t_({type:Object})],i9.prototype,"format",void 0),iU([t_({type:Boolean})],i9.prototype,"disableSliderNumberInput",void 0),iU([t_({type:Boolean})],i9.prototype,"fullWidth",void 0),iU([t_({type:String})],i9.prototype,"helperText",void 0),iU([t_({type:Boolean})],i9.prototype,"helperPersistent",void 0),iU([t_({type:String,attribute:!0})],i9.prototype,"validationMessage",void 0),iU([t_({type:Boolean})],i9.prototype,"autoValidate",void 0),iU([t_({type:Boolean})],i9.prototype,"charCounter",void 0),iU([t_({type:String})],i9.prototype,"label",void 0),iU([t_({type:Boolean})],i9.prototype,"disabled",void 0),iU([t_({type:Boolean})],i9.prototype,"continuous",void 0),iU([t_({type:Boolean})],i9.prototype,"resizeVertical",void 0),iU([t_({type:Boolean})],i9.prototype,"censored",void 0),iU([t_({type:Boolean,reflect:!0})],i9.prototype,"advertised",void 0),iU([ty()],i9.prototype,"isUiValid",void 0),iU([ty()],i9.prototype,"searchableValue",void 0),iU([ty()],i9.prototype,"errorMessage",void 0),i9=iU([tg("or-mwc-input")],i9),window.Vaadin||={},window.Vaadin.featureFlags||={};let rt={};function re(t,e="25.2.8"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||rt[e]){if(rt[e])return void rt[e].add(t)}else{rt[e]=new Set,rt[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===rt[e].size,set(t){t&&rt[e].size>0&&(rt[e].forEach(t=>{customElements.define(t.is,t)}),rt[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let rn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ri=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function rr(t,e){if("function"!=typeof t)return;let n=rn.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let ra=function(t,e){if(window.Vaadin.developmentMode)return rr(t,e)};function ro(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(ri)return!(ri&&Object.keys(ri).map(t=>ri[t]).filter(t=>t.productionMode).length>0);return!rr(function(){return!0})}catch(t){return!1}}());let rl=function(){if("function"==typeof ra)return ra(ro)},rs=0,rd=0,rc=[],rp=!1,rm={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ru={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},rh={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},rf={run(t){rp||(rp=!0,queueMicrotask(()=>(function(){rp=!1;let t=rc.length;for(let e=0;e<t;e++){let t=rc[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}rc.splice(0,t),rd+=t})())),rc.push(t);let e=rs;return rs+=1,e},cancel(t){let e=t-rd;if(e>=0){if(!rc[e])throw Error(`invalid async handle: ${t}`);rc[e]=null}}},rb=new Set;class rg{static debounce(t,e,n){return t instanceof rg?t._cancelAsync():t=new rg,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rb.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rb.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}}let rv=[];function r_(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function ry(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=ry();rv.forEach(e=>{r_(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let rx=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),r_(this,ry(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=ry(),r=n===i&&-1===rv.indexOf(this),a=!n&&e&&-1===rv.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),r_(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rv.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){rv.includes(this)||rv.push(this)}__unsubscribe(){rv.includes(this)&&rv.splice(rv.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){rl()};let rw=new Set,rk=e=>class extends rx(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!rw.has(e)){window.Vaadin.registrations.push(this),rw.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=rg.debounce(t,rh,()=>{i["vaadin-usage-statistics"]()}),rb.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},rE=new WeakMap;function rC(t){return e=>{if(function(t,e){let n=e;for(;n;){if(rE.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return rE.set(n,t),n}}let rA={},rT=/([A-Z])/gu;function rI(t){return rA[t]||(rA[t]=t.replace(rT,"-$1").toLowerCase()),rA[t]}function rS(t){return t[0].toUpperCase()+t.substring(1)}function rO(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function rL(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let rR=rC(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return rL(this,t)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=rO(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];A(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${rS(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${rS(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=rO(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=rI(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=rL(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=rO(t);e.set(n,i)}_createPropertyObserver(t,e){rL(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${rI(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function rN(t){return t?new Set(t.split(" ")):new Set}function rD(t){return t?[...t].join(" "):""}function rz(t,e,n){let i=rN(t.getAttribute(e));i.add(n),t.setAttribute(e,rD(i))}class rP{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let rM=0;class r$ extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${rM++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:l,uniqueIdPrefix:s}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,s||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,n=this.host.shadowRoot.querySelector(e);this.__slotObserver=new rP(n,({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.nodes=n.filter(t=>!e.includes(t)),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class rV extends r${constructor(t){super(t,"tooltip"),this.setTarget(t),this.__onContentChange=this.__onContentChange.bind(this)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.__notifyChange(t),t.addEventListener("content-changed",this.__onContentChange)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.__onContentChange),this.__notifyChange(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}__onContentChange(t){this.__notifyChange(t.target)}__notifyChange(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function rF(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class rB extends EventTarget{#t;#e=new Set;#n;#i=!1;constructor(t){super(),this.#t=t,this.#n=new CSSStyleSheet}#r(t){let{propertyName:e}=t;this.#e.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#e.has(t)||(this.#e.add(t),this.#n.replaceSync(`
655
+ `}setCustomValidity(t){this.errorMessage=t;let e=this.shadowRoot.getElementById("elem");e&&e.setCustomValidity&&e.setCustomValidity(null!=t?t:""),this.reportValidity()}checkValidity(){let t=this.shadowRoot.getElementById("elem"),e=!0;return t&&t.validity&&(e=t.validity.valid),e&&(this.type===lM.JSON||this.type===lM.JSON_OBJECT)&&void 0!==this.value&&null!==this.value&&""===this._mdcComponent.value&&(e=!1),e}reportValidity(){let t=this.checkValidity();return this.isUiValid=t,this._mdcComponent&&(this._mdcComponent.valid=t),t}onValueChange(t,e,n){var i,r;let a,o=this.value;if("undefined"===e&&(o=null,e=void 0),"null"===e&&(o=void 0,e=null),"string"==typeof e)switch(this.type){case lM.CHECKBOX:case lM.SWITCH:e="on"===e;break;case lM.JSON:case lM.JSON_OBJECT:case lM.NUMBER:case lM.RANGE:if(""===e)e=null;else try{e=JSON.parse(e),this.type===lM.JSON_OBJECT&&("object"!=typeof e||Array.isArray(e))&&(e=this.value,a=tB.i18next.t("validation.invalidJSON"))}catch(t){e=this.value,a=this.type===lM.JSON||this.type==lM.JSON_OBJECT?tB.i18next.t("validation.invalidJSON"):tB.i18next.t("validation.invalidNumber")}break;case lM.DATETIME:if(""===e)e=null;else try{e=Date.parse(e)}catch(t){e=this.value,a=tB.i18next.t("validation.invalidDate")}}if(this.value=e,this.setCustomValidity(a),this.reportValidity(),this.type!==lM.CHECKBOX_LIST&&e!==o&&(this.type===lM.RANGE&&(this._mdcComponent.setValue(e),this._mdcComponent2&&(this._mdcComponent2.value=e)),this.dispatchEvent(new i6(this.value,o,n))),void 0!=this.searchProvider&&this.type===lM.SELECT){let t=null==(r=null==(i=this.shadowRoot)?void 0:i.getElementById("select-searchable"))?void 0:r.children[1];t&&(this.searchableValue=void 0,t.value="")}this.type!==lM.CHECKBOX_LIST||tU.Util.objectsEqual(e,o,!0)||this.dispatchEvent(new i6(e,o,n))}get valid(){let t=this.shadowRoot.getElementById("elem");return!t||!t.checkValidity||t.checkValidity()}get currentValue(){let t=this.shadowRoot.getElementById("elem");if(t&&t.value)return t.value}resolveOptions(t){let e;return t&&t.length>0&&(e=t.map(t=>{if(Array.isArray(t))return t;{let e=""+t;return[t,tB.i18next.t(e,{defaultValue:tU.Util.camelCaseToSentenceCase(e)})]}})),e}getSelectedTextValue(t){let e=this.value,n=Array.isArray(e)?e:null!=e?[e]:void 0;if(!n)return"";let i=t||this.resolveOptions(this.options);return i&&n?n.map(t=>i.find(([e,n],i)=>t===e)).map(t=>t?t[1]:"").join(", "):""}};iU([t_({type:Boolean})],i9.prototype,"focused",void 0),iU([t_()],i9.prototype,"value",void 0),iU([t_({type:String})],i9.prototype,"type",void 0),iU([t_({type:String})],i9.prototype,"name",void 0),iU([t_({type:Boolean})],i9.prototype,"readonly",void 0),iU([t_({type:Boolean})],i9.prototype,"required",void 0),iU([t_()],i9.prototype,"max",void 0),iU([t_()],i9.prototype,"min",void 0),iU([t_({type:Number})],i9.prototype,"step",void 0),iU([t_({type:Boolean})],i9.prototype,"checked",void 0),iU([t_({type:Boolean})],i9.prototype,"indeterminate",void 0),iU([t_({type:Number})],i9.prototype,"maxLength",void 0),iU([t_({type:Number})],i9.prototype,"minLength",void 0),iU([t_({type:Number})],i9.prototype,"rows",void 0),iU([t_({type:Number})],i9.prototype,"cols",void 0),iU([t_({type:Boolean})],i9.prototype,"multiple",void 0),iU([t_({type:String,attribute:!0,reflect:!1})],i9.prototype,"pattern",void 0),iU([t_({type:String})],i9.prototype,"placeHolder",void 0),iU([t_({type:Array})],i9.prototype,"options",void 0),iU([t_({type:Boolean})],i9.prototype,"autoSelect",void 0),iU([t_({type:Object})],i9.prototype,"searchProvider",void 0),iU([t_({type:String})],i9.prototype,"searchLabel",void 0),iU([t_({type:String})],i9.prototype,"icon",void 0),iU([t_({type:String})],i9.prototype,"iconColor",void 0),iU([t_({type:String})],i9.prototype,"iconOn",void 0),iU([t_({type:String})],i9.prototype,"iconTrailing",void 0),iU([t_({type:Boolean})],i9.prototype,"compact",void 0),iU([t_({type:Boolean})],i9.prototype,"comfortable",void 0),iU([t_({type:Boolean})],i9.prototype,"raised",void 0),iU([t_({type:Boolean})],i9.prototype,"action",void 0),iU([t_({type:Boolean})],i9.prototype,"unElevated",void 0),iU([t_({type:Boolean})],i9.prototype,"outlined",void 0),iU([t_({type:Boolean})],i9.prototype,"rounded",void 0),iU([t_({type:Object})],i9.prototype,"format",void 0),iU([t_({type:Boolean})],i9.prototype,"disableSliderNumberInput",void 0),iU([t_({type:Boolean})],i9.prototype,"fullWidth",void 0),iU([t_({type:String})],i9.prototype,"helperText",void 0),iU([t_({type:Boolean})],i9.prototype,"helperPersistent",void 0),iU([t_({type:String,attribute:!0})],i9.prototype,"validationMessage",void 0),iU([t_({type:Boolean})],i9.prototype,"autoValidate",void 0),iU([t_({type:Boolean})],i9.prototype,"charCounter",void 0),iU([t_({type:String})],i9.prototype,"label",void 0),iU([t_({type:Boolean})],i9.prototype,"disabled",void 0),iU([t_({type:Boolean})],i9.prototype,"continuous",void 0),iU([t_({type:Boolean})],i9.prototype,"resizeVertical",void 0),iU([t_({type:Boolean})],i9.prototype,"censored",void 0),iU([t_({type:Boolean,reflect:!0})],i9.prototype,"advertised",void 0),iU([ty()],i9.prototype,"isUiValid",void 0),iU([ty()],i9.prototype,"searchableValue",void 0),iU([ty()],i9.prototype,"errorMessage",void 0),i9=iU([tg("or-mwc-input")],i9),window.Vaadin||={},window.Vaadin.featureFlags||={};let rt={};function re(t,e="25.2.11"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||rt[e]){if(rt[e])return void rt[e].add(t)}else{rt[e]=new Set,rt[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===rt[e].size,set(t){t&&rt[e].size>0&&(rt[e].forEach(t=>{customElements.define(t.is,t)}),rt[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let rn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ri=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function rr(t,e){if("function"!=typeof t)return;let n=rn.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let ra=function(t,e){if(window.Vaadin.developmentMode)return rr(t,e)};function ro(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(ri)return!(ri&&Object.keys(ri).map(t=>ri[t]).filter(t=>t.productionMode).length>0);return!rr(function(){return!0})}catch(t){return!1}}());let rl=function(){if("function"==typeof ra)return ra(ro)},rs=0,rd=0,rc=[],rp=!1,rm={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ru={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},rh={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},rf={run(t){rp||(rp=!0,queueMicrotask(()=>(function(){rp=!1;let t=rc.length;for(let e=0;e<t;e++){let t=rc[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}rc.splice(0,t),rd+=t})())),rc.push(t);let e=rs;return rs+=1,e},cancel(t){let e=t-rd;if(e>=0){if(!rc[e])throw Error(`invalid async handle: ${t}`);rc[e]=null}}},rb=new Set;class rg{static debounce(t,e,n){return t instanceof rg?t._cancelAsync():t=new rg,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rb.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rb.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}}let rv=[];function r_(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function ry(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=ry();rv.forEach(e=>{r_(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let rx=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),r_(this,ry(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=ry(),r=n===i&&-1===rv.indexOf(this),a=!n&&e&&-1===rv.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),r_(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rv.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){rv.includes(this)||rv.push(this)}__unsubscribe(){rv.includes(this)&&rv.splice(rv.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){rl()};let rw=new Set,rk=e=>class extends rx(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!rw.has(e)){window.Vaadin.registrations.push(this),rw.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=rg.debounce(t,rh,()=>{i["vaadin-usage-statistics"]()}),rb.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},rE=new WeakMap;function rC(t){return e=>{if(function(t,e){let n=e;for(;n;){if(rE.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return rE.set(n,t),n}}let rA={},rT=/([A-Z])/gu;function rI(t){return rA[t]||(rA[t]=t.replace(rT,"-$1").toLowerCase()),rA[t]}function rS(t){return t[0].toUpperCase()+t.substring(1)}function rO(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function rL(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let rR=rC(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return rL(this,t)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=rO(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];A(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${rS(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${rS(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=rO(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=rI(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=rL(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=rO(t);e.set(n,i)}_createPropertyObserver(t,e){rL(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${rI(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function rN(t){return t?new Set(t.split(" ")):new Set}function rD(t){return t?[...t].join(" "):""}function rz(t,e,n){let i=rN(t.getAttribute(e));i.add(n),t.setAttribute(e,rD(i))}class rP{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let rM=0;class r$ extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${rM++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:l,uniqueIdPrefix:s}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,s||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,n=this.host.shadowRoot.querySelector(e);this.__slotObserver=new rP(n,({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.nodes=n.filter(t=>!e.includes(t)),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class rV extends r${constructor(t){super(t,"tooltip"),this.setTarget(t),this.__onContentChange=this.__onContentChange.bind(this)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.__notifyChange(t),t.addEventListener("content-changed",this.__onContentChange)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.__onContentChange),this.__notifyChange(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}__onContentChange(t){this.__notifyChange(t.target)}__notifyChange(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function rF(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class rB extends EventTarget{#t;#e=new Set;#n;#i=!1;constructor(t){super(),this.#t=t,this.#n=new CSSStyleSheet}#r(t){let{propertyName:e}=t;this.#e.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#e.has(t)||(this.#e.add(t),this.#n.replaceSync(`
656
656
  :root::before, :host::before {
657
657
  content: '' !important;
658
658
  position: absolute !important;
@@ -880,7 +880,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
880
880
  }
881
881
  }
882
882
  `,r9="string"==typeof document.head.style.touchAction,at="__polymerGestures",ae="__polymerGesturesHandled",an="__polymerGesturesTouchAction",ai=["mousedown","mousemove","mouseup","click"],ar=[0,1,4,2],aa=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function ao(t){return ai.indexOf(t)>-1}let al=!1;try{let t=Object.defineProperty({},"passive",{get(){al=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}let as=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ad={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ac(t){let e=t.type;if(!ao(e))return!1;if("mousemove"===e){let e=t.buttons??1;return t instanceof window.MouseEvent&&!aa&&(e=ar[t.which]||0),!!(1&e)}return 0===(t.button??0)}let ap={x:0,y:0,id:-1,scrollDecided:!1};function am(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function au(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}let ah=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],af={},ab=[];function ag(t){let e=ah(t);return e.length>0?e[0]:t.target}function av(t){let e=t.type,n=t.currentTarget[at];if(!n)return;let i=n[e];if(!i)return;if(!t[ae]&&(t[ae]={},e.startsWith("touch"))){let n=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(ap.id=n.identifier),ap.id!==n.identifier)return;r9||"touchstart"!==e&&"touchmove"!==e||function(t){let e=t.changedTouches[0],n=t.type;if("touchstart"===n)ap.x=e.clientX,ap.y=e.clientY,ap.scrollDecided=!1;else if("touchmove"===n){if(ap.scrollDecided)return;ap.scrollDecided=!0;let n=function(t){let e="auto",n=ah(t);for(let t=0,i;t<n.length;t++)if((i=n[t])[an]){e=i[an];break}return e}(t),i=!1,r=Math.abs(ap.x-e.clientX),a=Math.abs(ap.y-e.clientY);t.cancelable&&("none"===n?i=!0:"pan-x"===n?i=a>r:"pan-y"===n&&(i=r>a)),i?t.preventDefault():aw("track")}}(t)}let r=t[ae];if(!r.skip){for(let e=0,n;e<ab.length;e++)i[(n=ab[e]).name]&&!r[n.name]&&n.flow&&n.flow.start.indexOf(t.type)>-1&&n.reset&&n.reset();for(let n=0,a;n<ab.length;n++)i[(a=ab[n]).name]&&!r[a.name]&&(r[a.name]=!0,a[e](t))}}function a_(t,e,n){return!!af[e]&&(function(t,e,n){var i,r;let a=af[e],o=a.deps,l=a.name,s=t[at];s||(t[at]=s={});for(let e=0,n,i;e<o.length;e++)(n=o[e],!(as&&ao(n))||"click"===n)&&((i=s[n])||(s[n]=i={_count:0}),0===i._count&&t.addEventListener(n,av,void ao(n)),i[l]=(i[l]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,n),a.touchAction&&(i=t,r=a.touchAction,r9&&i instanceof HTMLElement&&rf.run(()=>{i.style.touchAction=r}),i[an]=r)}(t,e,n),!0)}function ay(t){ab.push(t),t.emits.forEach(e=>{af[e]=t})}function ax(t,e,n){let i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=n,t.dispatchEvent(i),i.defaultPrevented){let t=n.preventer||n.sourceEvent;t?.preventDefault&&t.preventDefault()}}function aw(t){let e=function(t){for(let e=0,n;e<ab.length;e++){n=ab[e];for(let e=0;e<n.emits.length;e++)if(n.emits[e]===t)return n}return null}(t);e.info&&(e.info.prevent=!0)}function ak(t,e,n,i){e&&ax(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:i,prevent:t=>aw(t)})}function aE(t,e,n){if(t.prevent)return!1;if(t.started)return!0;let i=Math.abs(t.x-e),r=Math.abs(t.y-n);return i>=5||r>=5}function aC(t,e,n){if(!e)return;let i=t.moves[t.moves.length-2],r=t.moves[t.moves.length-1],a=r.x-t.x,o=r.y-t.y,l,s=0;i&&(l=r.x-i.x,s=r.y-i.y),ax(e,"track",{state:t.state,x:n.clientX,y:n.clientY,dx:a,dy:o,ddx:l,ddy:s,sourceEvent:n,hover:()=>(function(t,e){let n=document.elementFromPoint(t,e),i=n;for(;i?.shadowRoot&&!window.ShadyDOM&&i!==(i=i.shadowRoot.elementFromPoint(t,e));)i&&(n=i);return n})(n.clientX,n.clientY)})}function aA(t,e,n){let i=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y),a=ag(n||e);!(!a||ad[a.localName]&&a.hasAttribute("disabled"))&&(isNaN(i)||isNaN(r)||i<=25&&r<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;let e=ag(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;let n=e.getBoundingClientRect(),i=t.pageX,r=t.pageY;return!(i>=n.left&&i<=n.right&&r>=n.top&&r<=n.bottom)}return!1}(e))&&!t.prevent&&ax(a,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n})}ay({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){au(this.info)},mousedown(t){if(!ac(t))return;let e=ag(t),n=this;am(this.info,t=>{ac(t)||(ak("up",e,t),au(n.info))},t=>{ac(t)&&ak("up",e,t),au(n.info)}),ak("down",e,t)},touchstart(t){ak("down",ag(t),t.changedTouches[0],t)},touchend(t){ak("up",ag(t),t.changedTouches[0],t)}}),ay({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,au(this.info)},mousedown(t){if(!ac(t))return;let e=ag(t),n=this,i=t=>{let i=t.clientX,r=t.clientY;aE(n.info,i,r)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&aw("tap"),n.info.addMove({x:i,y:r}),ac(t)||(n.info.state="end",au(n.info)),e&&aC(n.info,e,t),n.info.started=!0)};am(this.info,i,t=>{n.info.started&&i(t),au(n.info)}),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){let e=ag(t),n=t.changedTouches[0],i=n.clientX,r=n.clientY;aE(this.info,i,r)&&("start"===this.info.state&&aw("tap"),this.info.addMove({x:i,y:r}),aC(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend(t){let e=ag(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),aC(this.info,e,n))}}),ay({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(t){ac(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){ac(t)&&aA(this.info,t)},touchstart(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){aA(this.info,t.changedTouches[0],t)}});let aT=rC(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),aI=rC(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}),aS=t=>class extends aT(aI(t)){get _activeKeys(){return[" "]}ready(){super.ready(),a_(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),a_(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}},aO=!1;function aL(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function aR(t){let e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;let n=window.getComputedStyle(t);return"hidden"===n.visibility||"none"===n.display}function aN(t){return t.checkVisibility?!t.checkVisibility({visibilityProperty:!0}):null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||aR(t)}function aD(t){return t.getRootNode().activeElement===t}window.addEventListener("keydown",()=>{aO=!0},{capture:!0}),window.addEventListener("mousedown",()=>{aO=!1},{capture:!0});let az=rC(t=>class extends t{get _keyboardActive(){return aO}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(t){super.focus(t),t?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}}),aP=t=>class extends aT(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged",sync:!0},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),!this.__shouldAllowFocusWhenDisabled()&&(t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.setAttribute("tabindex","-1")):e&&(void 0!==this._lastTabIndex?this.setAttribute("tabindex",this._lastTabIndex):this.tabindex=void 0))}_tabindexChanged(t){!this.__shouldAllowFocusWhenDisabled()&&this.disabled&&-1!==t&&(this._lastTabIndex=t,this.setAttribute("tabindex","-1"))}focus(t){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(t)}__shouldAllowFocusWhenDisabled(){return!1}},aM=["mousedown","mouseup","click","dblclick","keypress","keydown","keyup"],a$=t=>class extends aS(aP(az(t))){constructor(){super(),this.__onInteractionEvent=this.__onInteractionEvent.bind(this),aM.forEach(t=>{this.addEventListener(t,this.__onInteractionEvent,!0)}),this.tabindex=0}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button"),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-button-disabled-pointer-events","auto")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}__onInteractionEvent(t){this.__shouldSuppressInteractionEvent(t)&&t.stopImmediatePropagation()}__shouldSuppressInteractionEvent(t){return this.disabled}};class aV extends a$(rk(r6(rR(rZ(th))))){static get is(){return"vaadin-button"}static get styles(){return r8}static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}render(){return K`
883
- <div class="vaadin-button-container">
883
+ <div class="vaadin-button-container" role="presentation">
884
884
  <span part="prefix" aria-hidden="true">
885
885
  <slot name="prefix"></slot>
886
886
  </span>
@@ -1825,6 +1825,11 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
1825
1825
  display: none !important;
1826
1826
  }
1827
1827
 
1828
+ :host([suppressed]) [part='overlay'],
1829
+ :host([suppressed]) ::slotted(*) {
1830
+ pointer-events: none !important;
1831
+ }
1832
+
1828
1833
  [part='overlay'] {
1829
1834
  color: var(--vaadin-overlay-text-color, var(--vaadin-text-color));
1830
1835
  background: var(--vaadin-overlay-background, var(--vaadin-background-color));
@@ -1889,7 +1894,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
1889
1894
  [part='backdrop'] {
1890
1895
  background: transparent;
1891
1896
  }
1892
- `;class oF{saveFocus(t){this.focusNode=t||aL()}restoreFocus(t){let e=this.focusNode;if(!e)return;let n={preventScroll:!!t&&t.preventScroll,focusVisible:!!t&&t.focusVisible};aL()===document.body?setTimeout(()=>e.focus(n)):e.focus(n),this.focusNode=null}}let oB=[];class oH{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var t;let e;return t=this.__trapNode,!function t(e,n){if(e.nodeType!==Node.ELEMENT_NODE||aR(e))return!1;let i=!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?Number(e.getAttribute("tabindex")||0):-1,r=i>0;i>=0&&n.push(e);return[..."slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children].forEach(e=>{r=t(e,n)||r}),r}(t,e=[])?e:function t(e){let n=e.length;if(n<2)return e;let i=Math.ceil(n/2),r=t(e.slice(0,i)),a=t(e.slice(i)),o=[];for(;r.length>0&&a.length>0;)!function(t,e){let n=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===n||0===i?i>n:n>i}(r[0],a[0])?o.push(r.shift()):o.push(a.shift());return o.concat(r,a)}(e)}get __focusedElementIndex(){let t=this.__focusableElements;return t.indexOf(t.filter(aD).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");oB.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:aO})}releaseFocus(){this.__trapNode=null,oB.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(oB).pop()&&"Tab"===t.key){if(t.defaultPrevented)return;t.preventDefault();let e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){let e=this.__focusableElements,n=this.__focusedElementIndex,i=(e.length+n+(t?-1:1))%e.length,r=e[i];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let oU=t=>class extends t{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new oH(this),this.__focusRestorationController=new oF}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let t=aO;this.__focusRestorationController.restoreFocus({preventScroll:!t,focusVisible:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!aN(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let t=aL();return t===document.body||this._deepContains(t)}_deepContains(t){if(this._contentRoot.contains(t))return!0;let e=t,n=t.ownerDocument;for(;e&&e!==n&&e!==this._contentRoot;)e=e.parentNode||e.host;return e===this._contentRoot}},oj=new Set,oX=()=>[...oj].filter(t=>!t.hasAttribute("closing")),oY=(t,e=t=>!0)=>t===oX().filter(e).pop(),oq=t=>class extends t{get _last(){return oY(this)}get _isAttached(){return oj.has(this)}bringToFront(){let t,e;if(oY(this))return;let n=-1===(e=(t=oX()).indexOf(this))?[]:t.slice(e+1),i=n.filter(t=>t._hasOverlayPositionMixin&&this._deepContains(t));i.length!==n.length&&[this,...i].forEach(t=>{t.matches(":popover-open")&&(t.hidePopover(),t.showPopover()),t._removeAttachedInstance(),t._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),oX().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){let t;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let e=oX();for(;(t=e.pop())&&(t===this||(t.$.overlay.style.removeProperty("pointer-events"),t.modeless)););}_appendAttachedInstance(){oj.add(this)}_removeAttachedInstance(){this._isAttached&&oj.delete(this)}};function oG(t,e,n){let i=[t];t.owner&&i.push(t.owner),"string"==typeof n?i.forEach(t=>{t.setAttribute(e,n)}):n?i.forEach(t=>{t.setAttribute(e,"")}):i.forEach(t=>{t.removeAttribute(e)})}let oK=t=>class extends oU(oq(t)){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,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}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),om&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(t){let e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:t}});this.dispatchEvent(e),document.body.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}setBounds(t,e=!0){let n=this.$.overlay,i={...t};e&&"absolute"!==n.style.position&&(n.style.position="absolute"),Object.keys(i).forEach(t=>{null===i[t]||isNaN(i[t])||(i[t]=`${i[t]}px`)}),Object.assign(n.style,i)}_detectIosNavbar(){if(!this.opened)return;let t=window.innerHeight,e=window.innerWidth,n=document.documentElement.clientHeight;e>t&&n>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(t,e,n,i){let r=this._oldOwner!==e||this._oldModel!==n;this._oldModel=n,this._oldOwner=e;let a=this._oldRenderer!==t,o=void 0!==this._oldRenderer;this._oldRenderer=t;let l=this._oldOpened!==i;this._oldOpened=i,a&&o&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),i&&t&&(a||l||r)&&this.requestContentUpdate()}_modelessChanged(t){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),t?this._exitModalState():this.opened&&this._enterModalState(),oG(this,"modeless",t)}_withBackdropChanged(t){oG(this,"with-backdrop",t)}_openedChanged(t,e){if(t){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let t=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(t),document.body.dispatchEvent(t)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else e&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return"none"!==t.getPropertyValue("display")&&e&&"none"!==e}_enqueueAnimation(t,e){let n=`__${t}Handler`,i=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",i),delete this[n])};this[n]=i,this.addEventListener("animationend",i)}_flushAnimation(t){let e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),oG(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){oG(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.$.overlay.style.removeProperty("pointer-events"),oG(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),oG(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;let e=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&(this.close(t),this.opened||this.modeless||t.preventDefault())}_keydownListener(t){if(this._last&&!t.defaultPrevented&&(this._shouldAddGlobalListeners()||t.composedPath().includes(this._focusTrapRoot))&&"Escape"===t.key){let e=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}},oW={start:"top",end:"bottom"},oJ={start:"left",end:"right"},oZ=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),oQ=t=>class extends t{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}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(t){if(super.updated(t),t.has("positionTarget")){let e=t.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&e||this.positionTarget&&!e&&this.__margins)&&this.__resetPosition()}(t.has("opened")||t.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(e=>t.has(e))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){let e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let n,i=null,r=document.documentElement;function a(){n&&clearTimeout(n),i?.disconnect(),i=null}return!function o(l=!1,s=1){a();let{left:d,top:c,width:p,height:m}=t.getBoundingClientRect();if(l||e(),!p||!m)return;let u=Math.floor(c),h=Math.floor(r.clientWidth-(d+p)),f=Math.floor(r.clientHeight-(c+m)),b=Math.floor(d),g=!0;(i=new IntersectionObserver(function(t){let e=t[0].intersectionRatio;if(e!==s){if(!g)return o();e?o(!1,e):n=setTimeout(()=>{o(!1,1e-7)},1e3)}g=!1},{rootMargin:`${-u}px ${-h}px ${-f}px ${-b}px`,threshold:Math.max(0,Math.min(1,s))||1})).observe(t)}(!0),a}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,oZ.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,oZ.observe(e))),t){let t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(t){t.target instanceof Node&&this._deepContains(t.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),oG(this,"bottom-aligned",!1),oG(this,"top-aligned",!1),oG(this,"end-aligned",!1),oG(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened){this.opened=!1;return}let e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";let n=this.__isRTL,i=this.__shouldAlignStartHorizontally(t,n),r=!n&&i||n&&!i;this.style.alignItems=r?"flex-start":"flex-end";let a=this.getBoundingClientRect(),o=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,oW,this,e),l=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,oJ,this,i);Object.assign(this.style,o,l),oG(this,"bottom-aligned",!e),oG(this,"top-aligned",e),oG(this,"end-aligned",!r),oG(this,"start-aligned",r)}__shouldAlignStartHorizontally(t,e){let n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let i=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,n,i,this.__margins,r,this.noHorizontalOverlap,oJ)}__shouldAlignStartVertically(t){let e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let n=Math.min(window.innerHeight,document.documentElement.clientHeight),i="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,n,this.__margins,i,this.noVerticalOverlap,oW)}__shouldAlignStart(t,e,n,i,r,a,o){let l=n-t[a?o.end:o.start]-i[o.end],s=t[a?o.start:o.end]-i[o.start],d=r?l:s;return r===(d>(r?s:l)||d>e)}__adjustBottomProperty(t,e,n){let i;if(t===e.end){if(e.end===oW.end){let t=Math.min(window.innerHeight,document.documentElement.clientHeight);n>t&&this.__oldViewportHeight&&(i=n-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===oJ.end){let t=Math.min(window.innerWidth,document.documentElement.clientWidth);n>t&&this.__oldViewportWidth&&(i=n-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return i}__calculatePositionInOneDimension(t,e,n,i,r,a){let o=a?i.start:i.end,l=a?i.end:i.start,s=parseFloat(r.style[o]||getComputedStyle(r)[o]),d=this.__adjustBottomProperty(o,i,s),c=e[a?i.start:i.end]-t[n===a?i.end:i.start];return{[o]:d?`${d}px`:`${s+c*(a?-1:1)}px`,[l]:""}}},o0=t=>class extends oQ(oK(rx(t))){static get observers(){return["_updateOverlayWidth(opened, positionTarget)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let t=document.createElement("div");t.setAttribute("slot","overlay"),this.owner.appendChild(t),this.__savedRoot=t}return this.__savedRoot}_shouldCloseOnOutsideClick(t){return!0}_mouseDownListener(t){super._mouseDownListener(t),t.preventDefault()}_getMenuElement(){return Array.from(this._rendererRoot.children).find(t=>"style"!==t.localName)}_updateOverlayWidth(t,e){t&&e&&this.style.setProperty("--_vaadin-select-overlay-default-width",`${e.offsetWidth}px`)}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){let t=this._getMenuElement();this.owner._assignMenuElement(t)}}};class o1 extends o0(r6(rR(rZ(th)))){static get is(){return"vaadin-select-overlay"}static get styles(){return[o$,oV]}render(){return K`
1897
+ `;class oF{saveFocus(t){this.focusNode=t||aL()}restoreFocus(t){let e=this.focusNode;if(!e)return;let n={preventScroll:!!t&&t.preventScroll,focusVisible:!!t&&t.focusVisible};aL()===document.body?setTimeout(()=>e.focus(n)):e.focus(n),this.focusNode=null}}let oB=[];class oH{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var t;let e;return t=this.__trapNode,!function t(e,n){if(e.nodeType!==Node.ELEMENT_NODE||aR(e))return!1;let i=!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?Number(e.getAttribute("tabindex")||0):-1,r=i>0;i>=0&&n.push(e);return[..."slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children].forEach(e=>{r=t(e,n)||r}),r}(t,e=[])?e:function t(e){let n=e.length;if(n<2)return e;let i=Math.ceil(n/2),r=t(e.slice(0,i)),a=t(e.slice(i)),o=[];for(;r.length>0&&a.length>0;)!function(t,e){let n=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===n||0===i?i>n:n>i}(r[0],a[0])?o.push(r.shift()):o.push(a.shift());return o.concat(r,a)}(e)}get __focusedElementIndex(){let t=this.__focusableElements;return t.indexOf(t.filter(aD).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");oB.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:aO})}releaseFocus(){this.__trapNode=null,oB.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(oB).pop()&&"Tab"===t.key){if(t.defaultPrevented)return;t.preventDefault();let e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){let e=this.__focusableElements,n=this.__focusedElementIndex,i=(e.length+n+(t?-1:1))%e.length,r=e[i];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let oU=t=>class extends t{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new oH(this),this.__focusRestorationController=new oF}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let t=aO;this.__focusRestorationController.restoreFocus({preventScroll:!t,focusVisible:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!aN(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let t=aL();return t===document.body||this._deepContains(t)}_deepContains(t){if(this._contentRoot.contains(t))return!0;let e=t,n=t.ownerDocument;for(;e&&e!==n&&e!==this._contentRoot;)e=e.parentNode||e.host;return e===this._contentRoot}},oj=new Set,oX=()=>[...oj].filter(t=>!t.hasAttribute("closing")),oY=(t,e=t=>!0)=>t===oX().filter(e).pop(),oq=t=>class extends t{get _last(){return oY(this)}get _isAttached(){return oj.has(this)}bringToFront(){let t,e;if(oY(this))return;let n=-1===(e=(t=oX()).indexOf(this))?[]:t.slice(e+1),i=n.filter(t=>t._hasOverlayPositionMixin&&this._deepContains(t));i.length!==n.length&&[this,...i].forEach(t=>{t.matches(":popover-open")&&(t.hidePopover(),t.showPopover()),t._removeAttachedInstance(),t._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),oX().forEach(t=>{t!==this&&t.toggleAttribute("suppressed",!0)})}_exitModalState(){let t;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let e=oX();for(;(t=e.pop())&&(t===this||(t.toggleAttribute("suppressed",!1),t.modeless)););}_appendAttachedInstance(){oj.add(this)}_removeAttachedInstance(){this._isAttached&&oj.delete(this)}};function oG(t,e,n){let i=[t];t.owner&&i.push(t.owner),"string"==typeof n?i.forEach(t=>{t.setAttribute(e,n)}):n?i.forEach(t=>{t.setAttribute(e,"")}):i.forEach(t=>{t.removeAttribute(e)})}let oK=t=>class extends oU(oq(t)){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,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}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),om&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(t){let e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:t}});this.dispatchEvent(e),document.body.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}setBounds(t,e=!0){let n=this.$.overlay,i={...t};e&&"absolute"!==n.style.position&&(n.style.position="absolute"),Object.keys(i).forEach(t=>{null===i[t]||isNaN(i[t])||(i[t]=`${i[t]}px`)}),Object.assign(n.style,i)}_detectIosNavbar(){if(!this.opened)return;let t=window.innerHeight,e=window.innerWidth,n=document.documentElement.clientHeight;e>t&&n>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(t,e,n,i){let r=this._oldOwner!==e||this._oldModel!==n;this._oldModel=n,this._oldOwner=e;let a=this._oldRenderer!==t,o=void 0!==this._oldRenderer;this._oldRenderer=t;let l=this._oldOpened!==i;this._oldOpened=i,a&&o&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),i&&t&&(a||l||r)&&this.requestContentUpdate()}_modelessChanged(t){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),t?this._exitModalState():this.opened&&this._enterModalState(),oG(this,"modeless",t)}_withBackdropChanged(t){oG(this,"with-backdrop",t)}_openedChanged(t,e){if(t){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let t=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(t),document.body.dispatchEvent(t)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else e&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return"none"!==t.getPropertyValue("display")&&e&&"none"!==e}_enqueueAnimation(t,e){let n=`__${t}Handler`,i=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",i),delete this[n])};this[n]=i,this.addEventListener("animationend",i)}_flushAnimation(t){let e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),oG(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){oG(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.toggleAttribute("suppressed",!1),oG(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),oG(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;let e=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&(this.close(t),this.opened||this.modeless||t.preventDefault())}_keydownListener(t){if(this._last&&!t.defaultPrevented&&(this._shouldAddGlobalListeners()||t.composedPath().includes(this._focusTrapRoot))&&"Escape"===t.key){let e=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}},oW={start:"top",end:"bottom"},oJ={start:"left",end:"right"},oZ=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),oQ=t=>class extends t{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}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(t){if(super.updated(t),t.has("positionTarget")){let e=t.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&e||this.positionTarget&&!e&&this.__margins)&&this.__resetPosition()}(t.has("opened")||t.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(e=>t.has(e))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){let e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let n,i=null,r=document.documentElement;function a(){n&&clearTimeout(n),i?.disconnect(),i=null}return!function o(l=!1,s=1){a();let{left:d,top:c,width:p,height:m}=t.getBoundingClientRect();if(l||e(),!p||!m)return;let u=Math.floor(c),h=Math.floor(r.clientWidth-(d+p)),f=Math.floor(r.clientHeight-(c+m)),b=Math.floor(d),g=!0;(i=new IntersectionObserver(function(t){let e=t[0].intersectionRatio;if(e!==s){if(!g)return o();e?o(!1,e):n=setTimeout(()=>{o(!1,1e-7)},1e3)}g=!1},{rootMargin:`${-u}px ${-h}px ${-f}px ${-b}px`,threshold:Math.max(0,Math.min(1,s))||1})).observe(t)}(!0),a}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,oZ.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,oZ.observe(e))),t){let t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(t){t.target instanceof Node&&this._deepContains(t.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),oG(this,"bottom-aligned",!1),oG(this,"top-aligned",!1),oG(this,"end-aligned",!1),oG(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened){this.opened=!1;return}let e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";let n=this.__isRTL,i=this.__shouldAlignStartHorizontally(t,n),r=!n&&i||n&&!i;this.style.alignItems=r?"flex-start":"flex-end";let a=this.getBoundingClientRect(),o=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,oW,this,e),l=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,oJ,this,i);Object.assign(this.style,o,l),oG(this,"bottom-aligned",!e),oG(this,"top-aligned",e),oG(this,"end-aligned",!r),oG(this,"start-aligned",r)}__shouldAlignStartHorizontally(t,e){let n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let i=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,n,i,this.__margins,r,this.noHorizontalOverlap,oJ)}__shouldAlignStartVertically(t){let e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let n=Math.min(window.innerHeight,document.documentElement.clientHeight),i="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,n,this.__margins,i,this.noVerticalOverlap,oW)}__shouldAlignStart(t,e,n,i,r,a,o){let l=n-t[a?o.end:o.start]-i[o.end],s=t[a?o.start:o.end]-i[o.start],d=r?l:s;return r===(d>(r?s:l)||d>e)}__adjustBottomProperty(t,e,n){let i;if(t===e.end){if(e.end===oW.end){let t=Math.min(window.innerHeight,document.documentElement.clientHeight);n>t&&this.__oldViewportHeight&&(i=n-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===oJ.end){let t=Math.min(window.innerWidth,document.documentElement.clientWidth);n>t&&this.__oldViewportWidth&&(i=n-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return i}__calculatePositionInOneDimension(t,e,n,i,r,a){let o=a?i.start:i.end,l=a?i.end:i.start,s=parseFloat(r.style[o]||getComputedStyle(r)[o]),d=this.__adjustBottomProperty(o,i,s),c=e[a?i.start:i.end]-t[n===a?i.end:i.start];return{[o]:d?`${d}px`:`${s+c*(a?-1:1)}px`,[l]:""}}},o0=t=>class extends oQ(oK(rx(t))){static get observers(){return["_updateOverlayWidth(opened, positionTarget)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let t=document.createElement("div");t.setAttribute("slot","overlay"),this.owner.appendChild(t),this.__savedRoot=t}return this.__savedRoot}_shouldCloseOnOutsideClick(t){return!0}_mouseDownListener(t){super._mouseDownListener(t),t.preventDefault()}_getMenuElement(){return Array.from(this._rendererRoot.children).find(t=>"style"!==t.localName)}_updateOverlayWidth(t,e){t&&e&&this.style.setProperty("--_vaadin-select-overlay-default-width",`${e.offsetWidth}px`)}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){let t=this._getMenuElement();this.owner._assignMenuElement(t)}}};class o1 extends o0(r6(rR(rZ(th)))){static get is(){return"vaadin-select-overlay"}static get styles(){return[o$,oV]}render(){return K`
1893
1898
  <div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
1894
1899
  <div part="overlay" id="overlay">
1895
1900
  <div part="content" id="content">
@@ -1925,7 +1930,7 @@ ${e[0]?e[0]:""}</textarea>`:K` <input
1925
1930
  pointer-events: none;
1926
1931
  }
1927
1932
  `;class o5 extends a$(r6(rR(rZ(th)))){static get is(){return"vaadin-select-value-button"}static get styles(){return o2}render(){return K`
1928
- <div class="vaadin-button-container">
1933
+ <div class="vaadin-button-container" role="presentation">
1929
1934
  <span part="label">
1930
1935
  <slot></slot>
1931
1936
  </span>