iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
5 lines • 58.3 kB
JavaScript
/*! For license information please see 36900.a94dd5f71c2a3776.js.LICENSE.txt */
export const __rspack_esm_id=36900;export const __rspack_esm_ids=[36900];export const __webpack_modules__={7658(t,e,i){i.d(e,{I:()=>o});var o=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}()},12451(t,e,i){i.d(e,{O:()=>a,i:()=>r.is});var o=i(5124),r=i(12130);class a extends o.WF{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},51324(t,e,i){i.d(e,{ZS:()=>c,is:()=>n.i});var o,r,a=i(62826),s=i(22441),n=i(12451);const l=null!==(r=null===(o=window.ShadyDOM)||void 0===o?void 0:o.inUse)&&void 0!==r&&r;class c extends n.O{findFormElement(){if(!this.shadowRoot||l)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",t=>{this.dispatchEvent(new Event("change",t))})}constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}}c.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,a.Cg)([(0,s.MZ)({type:Boolean})],c.prototype,"disabled",void 0)},56161(t,e,i){i.d(e,{P:()=>o});i(18111),i(7588),i(45367),i(92731);const o=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach((t,i)=>e.constructor._observers.set(i,t))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)})}}e.constructor._observers.set(i,t)}},12130(t,e,i){i.d(e,{SE:()=>c,U9:()=>l,hP:()=>o,is:()=>r});i(44114);const o=t=>t.nodeType===Node.ELEMENT_NODE;function r(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let a=!1;const s=()=>{},n={get passive(){return a=!0,!1}};document.addEventListener("x",s,n),document.removeEventListener("x",s);const l=(t=window.document)=>{let e=t.activeElement;const i=[];if(!e)return i;for(;e&&(i.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return i},c=t=>{const e=l();if(!e.length)return!1;const i=e[e.length-1],o=new Event("check-if-focused",{bubbles:!0,composed:!0});let r=[];const a=t=>{r=t.composedPath()};return document.body.addEventListener("check-if-focused",a),i.dispatchEvent(o),document.body.removeEventListener("check-if-focused",a),-1!==r.indexOf(t)}},68462(t,e,i){i.d(e,{M:()=>m});var o=i(62826),r=i(7658),a={ROOT:"mdc-form-field"},s={LABEL_SELECTOR:".mdc-form-field > label"};const n=function(t){function e(i){var r=t.call(this,(0,o.Cl)((0,o.Cl)({},e.defaultAdapter),i))||this;return r.click=function(){r.handleClick()},r}return(0,o.C6)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){t.adapter.deactivateInputRipple()})},e}(r.I);var l=i(12451),c=i(51324),d=i(56161),h=i(5124),p=i(22441),u=i(6412);class m extends l.O{createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof c.ZS){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof c.ZS){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return h.qy` <div class="mdc-form-field ${(0,u.H)(t)}"> <slot></slot> <label class="mdc-label" @click="${this._labelClick}">${this.label}</label> </div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=n}}(0,o.Cg)([(0,p.MZ)({type:Boolean})],m.prototype,"alignEnd",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean})],m.prototype,"spaceBetween",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean})],m.prototype,"nowrap",void 0),(0,o.Cg)([(0,p.MZ)({type:String}),(0,d.P)(async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)})],m.prototype,"label",void 0),(0,o.Cg)([(0,p.P)(".mdc-form-field")],m.prototype,"mdcRoot",void 0),(0,o.Cg)([(0,p.KN)({slot:"",flatten:!0,selector:"*"})],m.prototype,"slottedInputs",void 0),(0,o.Cg)([(0,p.P)("label")],m.prototype,"labelEl",void 0)},38627(t,e,i){i.d(e,{R:()=>o});const o=i(5124).AH`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`},35370(t,e,i){var o=i(26198);t.exports=function(t,e,i){for(var r=0,a=arguments.length>2?i:o(e),s=new t(a);a>r;)s[r]=e[r++];return s}},77957(t,e,i){var o=i(76080),r=i(79504),a=i(47055),s=i(48981),n=i(56969),l=i(26198),c=i(2360),d=i(35370),h=Array,p=r([].push);t.exports=function(t,e,i,r){for(var u,m,v,b=s(t),f=a(b),g=o(e,i),y=c(null),w=l(f),k=0;w>k;k++)v=f[k],(m=n(g(v,k,b)))in y?p(y[m],v):y[m]=[v];if(r&&(u=r(b))!==h)for(m in y)y[m]=d(u,y[m]);return y}},46058(t,e,i){var o=i(46518),r=i(77957),a=i(6469);o({target:"Array",proto:!0},{group:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("group")},97577(t,e,i){i.d(e,{A:()=>y});var o=i(5124),r=i(22441),a=i(6412),s=i(63672),n=i(34514),l=i(40991),c=i(92070),d=i(49546),h=i(9395),p=i(62676),u=i(15477),m=i(31896),v=(i(38625),o.AH`:host{--checked-icon-color:var(--wa-color-brand-on-loud);--checked-icon-scale:0.8;display:inline-flex;color:var(--wa-form-control-value-color);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);user-select:none;-webkit-user-select:none}[part~=control]{display:inline-flex;flex:0 0 auto;position:relative;align-items:center;justify-content:center;width:var(--wa-form-control-toggle-size);height:var(--wa-form-control-toggle-size);border-color:var(--wa-form-control-border-color);border-radius:min(calc(var(--wa-form-control-toggle-size) * .375),var(--wa-border-radius-s));border-style:var(--wa-border-style);border-width:var(--wa-form-control-border-width);background-color:var(--wa-form-control-background-color);transition:background var(--wa-transition-normal),border-color var(--wa-transition-fast),box-shadow var(--wa-transition-fast),color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);margin-inline-end:.5em}[part~=base]{display:flex;align-items:flex-start;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:inline}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color);border-color:var(--wa-form-control-activated-color);background-color:var(--wa-form-control-activated-color)}[part~=control]:has(> input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;scale:var(--checked-icon-scale)}[part~=icon]::part(svg){translate:0.0009765625em}input:not(:checked,:indeterminate)+[part~=icon]{visibility:hidden}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}`),b=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=(t,e,i,o)=>{for(var r,a=o>1?void 0:o?f(e,i):e,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o?r(e,i,a):r(a))||a);return o&&a&&b(e,i,a),a};let y=class extends p.q{static get validators(){const t=o.S$?[]:[(0,d.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...t]}get value(){return this._value??"on"}set value(t){this._value=t}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??this.defaultChecked}set checked(t){this._checked=Boolean(t),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback(),this.handleDefaultCheckedChange()}handleDefaultCheckedChange(){this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("checked")||t.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=!!o.S$||this.hasSlotController.test("hint"),e=!!this.hint||!!t,i=!this.checked&&this.indeterminate,r=i?"indeterminate":"check",l=i?"indeterminate":"check";return o.qy` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${this.title}" name="${(0,s.J)(this.name)}" value="${(0,s.J)(this._value)}" .indeterminate="${(0,n.V)(this.indeterminate)}" .checked="${(0,n.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}" aria-describedby="hint" @click="${this.handleClick}"> <wa-icon part="${l}-icon icon" library="system" name="${r}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${e?"false":"true"}" class="${(0,a.H)({"has-slotted":e})}"> ${this.hint} </slot> `}constructor(){super(...arguments),this.hasSlotController=new c.X(this,"hint"),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};y.css=[u.A,m.A,v],y.shadowRootOptions={...p.q.shadowRootOptions,delegatesFocus:!0},g([(0,r.P)('input[type="checkbox"]')],y.prototype,"input",2),g([(0,r.MZ)()],y.prototype,"title",2),g([(0,r.MZ)({reflect:!0})],y.prototype,"name",2),g([(0,r.MZ)({reflect:!0})],y.prototype,"value",1),g([(0,r.MZ)({reflect:!0})],y.prototype,"size",2),g([(0,h.w)("size")],y.prototype,"handleSizeChange",1),g([(0,r.MZ)({type:Boolean})],y.prototype,"disabled",2),g([(0,r.MZ)({type:Boolean,reflect:!0})],y.prototype,"indeterminate",2),g([(0,r.MZ)({type:Boolean,attribute:!1})],y.prototype,"checked",1),g([(0,r.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],y.prototype,"defaultChecked",2),g([(0,r.MZ)({type:Boolean,reflect:!0})],y.prototype,"required",2),g([(0,r.MZ)()],y.prototype,"hint",2),g([(0,h.w)(["checked","defaultChecked"])],y.prototype,"handleDefaultCheckedChange",1),g([(0,h.w)(["checked","indeterminate"])],y.prototype,"handleStateChange",1),g([(0,h.w)("disabled")],y.prototype,"handleDisabledChange",1),y=g([(0,r.EM)("wa-checkbox")],y),y.disableWarning?.("change-in-update")},68825(t,e,i){var o=i(22441),r=i(9395),a=i(717),s=i(5124).AH`:host{--color:var(--wa-color-surface-border);--width:var(--wa-border-width-s);--spacing:var(--wa-space-m)}:host(:not([orientation=vertical])){display:block;border-top:solid var(--width) var(--color);margin:var(--spacing) 0}:host([orientation=vertical]){display:inline-block;height:100%;border-inline-start:solid var(--width) var(--color);margin:0 var(--spacing);min-block-size:1lh}`,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=(t,e,i,o)=>{for(var r,a=o>1?void 0:o?l(e,i):e,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o?r(e,i,a):r(a))||a);return o&&a&&n(e,i,a),a};let d=class extends a.A{connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.orientation)}constructor(){super(...arguments),this.orientation="horizontal"}};d.css=s,c([(0,o.MZ)({reflect:!0})],d.prototype,"orientation",2),c([(0,r.w)("orientation")],d.prototype,"handleVerticalChange",1),d=c([(0,o.EM)("wa-divider")],d)},30006(t,e,i){i.a(t,async function(t,e){try{i(74423);var o=i(5124),r=i(22441),a=i(6412),s=i(63672),n=i(34514),l=i(37541),c=i(40991),d=i(92070),h=i(28225),p=i(41268),u=i(9395),m=i(62676),v=i(15477),b=i(31896),f=i(17060),g=(i(38625),i(96272)),y=t([f]);f=(y.then?(await y)():y)[0];var w=Object.defineProperty,k=Object.getOwnPropertyDescriptor,C=(t,e,i,o)=>{for(var r,a=o>1?void 0:o?k(e,i):e,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o?r(e,i,a):r(a))||a);return o&&a&&w(e,i,a),a};let x=class extends m.q{static get validators(){return[...super.validators,(0,p.i)()]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,c.b)(this.localName,this.size)}handleChange(t){this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0})}clear(){""!==this.value&&(this.value="",this.updateComplete.then(()=>{this.dispatchEvent(new l.I),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),this.input.focus()}handleClearClick(t){t.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(t){(0,h.U)(t,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(t){if(super.updated(t),t.has("value")||t.has("defaultValue")||t.has("type")){const t=["number","date","time","datetime-local"];this.input&&t.includes(this.type)&&this.value&&this.input.value!==this.value&&(this._value=this.input.value),this.customStates.set("blank",!this.value),this.updateValidity()}}handleStepChange(){this.input.step=String(this.step),this.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,o="preserve"){const r=e??this.input.selectionStart,a=i??this.input.selectionEnd;this.input.setRangeText(t,r,a,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}formResetCallback(){this.value=null,this.input&&(this.input.value=this.value),super.formResetCallback()}render(){const t=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,e=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,i=!!this.label||!!t,r=!!this.hint||!!e,l=this.withClear&&!this.disabled&&!this.readonly,c=(o.S$||this.hasUpdated)&&l&&("number"==typeof this.value||this.value&&this.value.length>0);return o.qy` <label part="form-control-label label" class="${(0,a.H)({label:!0,"has-label":i})}" for="input" aria-hidden="${i?"false":"true"}"> <slot name="label">${this.label}</slot> </label> <div part="base" class="text-field"> <slot name="start" part="start" class="start"></slot> <input part="input" id="input" class="control" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${(0,s.J)(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${(0,s.J)(this.placeholder)}" minlength="${(0,s.J)(this.minlength)}" maxlength="${(0,s.J)(this.maxlength)}" min="${(0,s.J)(this.min)}" max="${(0,s.J)(this.max)}" step="${(0,s.J)(this.step)}" .value="${(0,n.V)(this.value??"")}" autocapitalize="${(0,s.J)(this.autocapitalize)}" autocomplete="${(0,s.J)(this.autocomplete)}" autocorrect="${this.autocorrect?"on":"off"}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${(0,s.J)(this.pattern)}" enterkeyhint="${(0,s.J)(this.enterkeyhint)}" inputmode="${(0,s.J)(this.inputmode)}" aria-describedby="hint" @change="${this.handleChange}" @input="${this.handleInput}" @keydown="${this.handleKeyDown}"> ${c?o.qy` <slot name="clear-button"> <button part="clear-button" class="clear" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"> <slot name="clear-icon"> <wa-icon name="circle-xmark" library="system" variant="regular"></wa-icon> </slot> </button> </slot> `:""} ${this.passwordToggle&&!this.disabled?o.qy` <slot name="password-toggle-button"> <button part="password-toggle-button" class="password-toggle" type="button" aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" @click="${this.handlePasswordToggle}" tabindex="-1"> ${this.passwordVisible?o.qy` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `:o.qy` <slot name="show-password-icon"> <wa-icon name="eye" library="system" variant="regular"></wa-icon> </slot> `} </button> </slot> `:""} <slot name="end" part="end" class="end"></slot> </div> <slot id="hint" part="hint" name="hint" class="${(0,a.H)({"has-slotted":r})}" aria-hidden="${r?"false":"true"}">${this.hint}</slot> `}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new d.X(this,"hint","label"),this.localize=new f.c(this),this.title="",this.type="text",this._value=null,this.defaultValue=this.getAttribute("value")||null,this.size="m",this.appearance="outlined",this.pill=!1,this.label="",this.hint="",this.withClear=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.withoutSpinButtons=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1}};x.css=[b.A,v.A,g.A],x.shadowRootOptions={...m.q.shadowRootOptions,delegatesFocus:!0},C([(0,r.P)("input")],x.prototype,"input",2),C([(0,r.MZ)()],x.prototype,"title",2),C([(0,r.MZ)({reflect:!0})],x.prototype,"type",2),C([(0,r.wk)()],x.prototype,"value",1),C([(0,r.MZ)({attribute:"value",reflect:!0})],x.prototype,"defaultValue",2),C([(0,r.MZ)({reflect:!0})],x.prototype,"size",2),C([(0,u.w)("size")],x.prototype,"handleSizeChange",1),C([(0,r.MZ)({reflect:!0})],x.prototype,"appearance",2),C([(0,r.MZ)({type:Boolean,reflect:!0})],x.prototype,"pill",2),C([(0,r.MZ)()],x.prototype,"label",2),C([(0,r.MZ)({attribute:"hint"})],x.prototype,"hint",2),C([(0,r.MZ)({attribute:"with-clear",type:Boolean})],x.prototype,"withClear",2),C([(0,r.MZ)()],x.prototype,"placeholder",2),C([(0,r.MZ)({type:Boolean,reflect:!0})],x.prototype,"readonly",2),C([(0,r.MZ)({attribute:"password-toggle",type:Boolean})],x.prototype,"passwordToggle",2),C([(0,r.MZ)({attribute:"password-visible",type:Boolean})],x.prototype,"passwordVisible",2),C([(0,r.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],x.prototype,"withoutSpinButtons",2),C([(0,r.MZ)({type:Boolean,reflect:!0})],x.prototype,"required",2),C([(0,r.MZ)()],x.prototype,"pattern",2),C([(0,r.MZ)({type:Number})],x.prototype,"minlength",2),C([(0,r.MZ)({type:Number})],x.prototype,"maxlength",2),C([(0,r.MZ)()],x.prototype,"min",2),C([(0,r.MZ)()],x.prototype,"max",2),C([(0,r.MZ)()],x.prototype,"step",2),C([(0,r.MZ)()],x.prototype,"autocapitalize",2),C([(0,r.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],x.prototype,"autocorrect",2),C([(0,r.MZ)()],x.prototype,"autocomplete",2),C([(0,r.MZ)({type:Boolean})],x.prototype,"autofocus",2),C([(0,r.MZ)()],x.prototype,"enterkeyhint",2),C([(0,r.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],x.prototype,"spellcheck",2),C([(0,r.MZ)()],x.prototype,"inputmode",2),C([(0,r.MZ)({attribute:"with-label",type:Boolean})],x.prototype,"withLabel",2),C([(0,r.MZ)({attribute:"with-hint",type:Boolean})],x.prototype,"withHint",2),C([(0,u.w)("step",{waitUntilFirstUpdate:!0})],x.prototype,"handleStepChange",1),x=C([(0,r.EM)("wa-input")],x),x.disableWarning?.("change-in-update"),e()}catch(t){e(t)}})},96272(t,e,i){i.d(e,{A:()=>o});var o=i(5124).AH`:host{border-width:0}:host(:focus){outline:0}.text-field{display:flex;align-items:stretch;justify-content:start;position:relative;transition:inherit;height:var(--wa-form-control-height);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);cursor:text;color:var(--wa-form-control-value-color);font-size:var(--wa-form-control-value-font-size);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);vertical-align:middle;width:100%;transition:background-color var(--wa-transition-normal),border-color var(--wa-transition-normal),outline-color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);background-color:var(--wa-form-control-background-color);box-shadow:var(--box-shadow);padding:0 var(--wa-form-control-padding-inline);outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.text-field:focus-within{outline-color:var(--wa-color-focus)}.text-field:has(:disabled){cursor:not-allowed;opacity:.5}:host([appearance=outlined]) .text-field{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}:host([pill]) .text-field{border-radius:var(--wa-border-radius-pill)!important}.text-field:has(:-webkit-autofill),.text-field:has(:autofill){background-color:var(--wa-color-brand-fill-quiet)!important}.text-field input,.text-field textarea{height:100%;padding:0;border:none;outline:0;box-shadow:none;margin:0;cursor:inherit;-webkit-appearance:none;font:inherit}:is(.text-field input,.text-field textarea):-webkit-autofill,:is(.text-field input,.text-field textarea):-webkit-autofill:active,:is(.text-field input,.text-field textarea):-webkit-autofill:focus,:is(.text-field input,.text-field textarea):-webkit-autofill:hover{-webkit-background-clip:text;background-color:transparent;-webkit-text-fill-color:inherit}input{flex:1 1 auto;min-width:0;height:100%;transition:inherit;background-color:rgb(118 118 118 / 0);height:calc(var(--wa-form-control-height) - var(--border-width) * 2);padding-block:0;color:inherit}input:autofill,input:autofill:active,input:autofill:focus,input:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}input::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{-webkit-appearance:none}input:focus{outline:0}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}.end,.start{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}:is(.start,.end)::slotted(wa-icon){color:var(--wa-color-neutral-on-quiet)}.start::slotted(*){margin-inline-end:var(--wa-form-control-padding-inline)}.end::slotted(*){margin-inline-start:var(--wa-form-control-padding-inline)}.clear,.password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:inherit;color:var(--wa-color-neutral-on-quiet);border:none;background:0 0;padding:0;transition:var(--wa-transition-normal) color;cursor:pointer;margin-inline-start:var(--wa-form-control-padding-inline)}@media (hover:hover){:is(.clear,.password-toggle):hover{color:color-mix(in oklab,currentColor,var(--wa-color-mix-hover))}}:is(.clear,.password-toggle):active{color:color-mix(in oklab,currentColor,var(--wa-color-mix-active))}:is(.clear,.password-toggle):focus{outline:0}::-ms-reveal{display:none}:host([without-spin-buttons]) input[type=number]{-moz-appearance:textfield}:host([without-spin-buttons]) input[type=number]::-webkit-inner-spin-button,:host([without-spin-buttons]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}`},29344(t,e,i){i.a(t,async function(t,o){try{i.d(e,{A:()=>C});var r=i(5124),a=i(22441),s=i(6412),n=i(63672),l=i(34514),c=i(40991),d=i(92070),h=i(41268),p=i(9395),u=i(62676),m=i(15477),v=i(31896),b=i(17060),f=i(19978),g=t([b]);b=(g.then?(await g)():g)[0];var y=Object.defineProperty,w=Object.getOwnPropertyDescriptor,k=(t,e,i,o)=>{for(var r,a=o>1?void 0:o?w(e,i):e,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o?r(e,i,a):r(a))||a);return o&&a&&y(e,i,a),a};let C=class extends u.q{static get validators(){return[...super.validators,(0,h.i)()]}get value(){return this._value??"on"}set value(t){this._value=t}handleSizeChange(){(0,c.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??this.defaultChecked}set checked(t){this._checked=Boolean(t),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}handleKeyDown(t){const e="rtl"===this.localize.dir();"ArrowLeft"===t.key&&(t.preventDefault(),this.checked=e,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))})),"ArrowRight"===t.key&&(t.preventDefault(),this.checked=!e,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}))}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("checked")||t.has("defaultChecked"))&&this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked),this.customStates.set("checked",this.checked),this.updateValidity()}handleDisabledChange(){this.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}setValue(t,e){this.checked?this.internals.setFormValue(t??"on",e):this.internals.setFormValue(null,null)}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}render(){const t=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,e=!!this.hint||!!t;return r.qy` <label part="base" class="${(0,s.H)({checked:this.checked,disabled:this.disabled})}"> <input class="input" type="checkbox" title="${this.title}" name="${(0,n.J)(this.name)}" value="${(0,n.J)(this.value)}" .checked="${(0,l.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" role="switch" aria-checked="${this.checked?"true":"false"}" aria-describedby="hint" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"> <span part="control" class="switch"> <span part="thumb" class="thumb"></span> </span> <slot part="label" class="label"></slot> </label> <slot id="hint" name="hint" part="hint" class="${(0,s.H)({"has-slotted":e})}" aria-hidden="${e?"false":"true"}">${this.hint}</slot> `}constructor(){super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.localize=new b.c(this),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint="",this.withHint=!1}};C.shadowRootOptions={...u.q.shadowRootOptions,delegatesFocus:!0},C.css=[m.A,v.A,f.A],k([(0,a.P)('input[type="checkbox"]')],C.prototype,"input",2),k([(0,a.MZ)()],C.prototype,"title",2),k([(0,a.MZ)({reflect:!0})],C.prototype,"name",2),k([(0,a.MZ)({reflect:!0})],C.prototype,"value",1),k([(0,a.MZ)({reflect:!0})],C.prototype,"size",2),k([(0,p.w)("size")],C.prototype,"handleSizeChange",1),k([(0,a.MZ)({type:Boolean})],C.prototype,"disabled",2),k([(0,a.MZ)({type:Boolean,attribute:!1})],C.prototype,"checked",1),k([(0,a.MZ)({type:Boolean,attribute:"checked",reflect:!0})],C.prototype,"defaultChecked",2),k([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"required",2),k([(0,a.MZ)({attribute:"hint"})],C.prototype,"hint",2),k([(0,a.MZ)({attribute:"with-hint",type:Boolean})],C.prototype,"withHint",2),k([(0,p.w)(["checked","defaultChecked"])],C.prototype,"handleStateChange",1),k([(0,p.w)("disabled",{waitUntilFirstUpdate:!0})],C.prototype,"handleDisabledChange",1),C=k([(0,a.EM)("wa-switch")],C),C.disableWarning?.("change-in-update"),o()}catch(t){o(t)}})},19978(t,e,i){i.d(e,{A:()=>o});var o=i(5124).AH`:host{--height:var(--wa-form-control-toggle-size);--width:calc(var(--height) * 1.75);--thumb-size:0.75em;display:inline-flex;line-height:var(--wa-form-control-value-line-height)}label{position:relative;display:flex;align-items:center;font:inherit;color:var(--wa-form-control-value-color);vertical-align:middle;cursor:pointer}.switch{flex:0 0 auto;position:relative;display:flex;align-items:center;justify-content:center;width:var(--width);height:var(--height);background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color);border-radius:var(--height);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);transition-property:translate,background,border-color,box-shadow;transition-duration:var(--wa-transition-normal);transition-timing-function:var(--wa-transition-easing)}.switch .thumb{aspect-ratio:1/1;width:var(--thumb-size);height:var(--thumb-size);background-color:var(--wa-form-control-border-color);border-radius:50%;translate:calc((var(--width) - var(--height))/ -2);transition:inherit}.switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ 2)}.input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}label:not(.disabled) .input:focus-visible~.switch .thumb{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.checked .switch{background-color:var(--wa-form-control-activated-color);border-color:var(--wa-form-control-activated-color)}.checked .switch .thumb{background-color:var(--wa-color-surface-default);translate:calc((var(--width) - var(--height))/ 2)}.checked .switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ -2)}label:has(> :disabled){opacity:.5;cursor:not-allowed}[part~=label]{display:inline-block;line-height:var(--height);margin-inline-start:.5em;user-select:none;-webkit-user-select:none}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}@media (forced-colors:active){:checked+.switch .thumb,:checked:enabled+.switch:hover .thumb{background-color:ButtonText}}`},52630(t,e,i){i.a(t,async function(t,o){try{i.d(e,{A:()=>x});i(74423),i(44114),i(18111),i(22489);var r=i(5124),a=i(22441),s=i(6412),n=i(17051),l=i(42462),c=i(28438),d=i(98779),h=i(27259),p=i(25877),u=i(984),m=i(95010),v=i(9395),b=i(717),f=i(40158),g=i(51920),y=t([f]);f=(y.then?(await y)():y)[0];var w=Object.defineProperty,k=Object.getOwnPropertyDescriptor,C=(t,e,i,o)=>{for(var r,a=o>1?void 0:o?k(e,i):e,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o?r(e,i,a):r(a))||a);return o&&a&&w(e,i,a),a};let x=class extends b.A{connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.addEventListener("mouseout",this.handleMouseOut),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||(this.id=(0,m.N)("wa-tooltip-")),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,p.Fw)(this),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}addToAriaLabelledBy(t,e){const i=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean);i.includes(e)||(i.push(e),t.setAttribute("aria-labelledby",i.join(" ")))}removeFromAriaLabelledBy(t,e){const i=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean).filter(t=>t!==e);i.length>0?t.setAttribute("aria-labelledby",i.join(" ")):t.removeAttribute("aria-labelledby")}async handleOpenChange(){if(this.open){if(this.disabled)return;const t=new d.k;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),(0,p.AZ)(this),this.body.hidden=!1,this.popup.active=!0,await(0,h.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const t=new c.L;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,p.Fw)(this),await(0,h.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.body.hidden=!0,this.dispatchEvent(new n.Z)}}handleForChange(){const t=this.getRootNode();if(!t)return;const e=this.for?t.getElementById(this.for):null,i=this.anchor;if(e===i)return;const{signal:o}=this.eventController;e&&(this.addToAriaLabelledBy(e,this.id),e.addEventListener("blur",this.handleBlur,{capture:!0,signal:o}),e.addEventListener("focus",this.handleFocus,{capture:!0,signal:o}),e.addEventListener("click",this.handleClick,{signal:o}),e.addEventListener("mouseover",this.handleMouseOver,{signal:o}),e.addEventListener("mouseout",this.handleMouseOut,{signal:o})),i&&(this.removeFromAriaLabelledBy(i,this.id),i.removeEventListener("blur",this.handleBlur,{capture:!0}),i.removeEventListener("focus",this.handleFocus,{capture:!0}),i.removeEventListener("click",this.handleClick),i.removeEventListener("mouseover",this.handleMouseOver),i.removeEventListener("mouseout",this.handleMouseOut)),this.anchor=e}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,(0,u.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,u.l)(this,"wa-after-hide")}render(){return r.qy` <wa-popup part="base" exportparts="
popup:base__popup,
arrow:base__arrow
" class="${(0,s.H)({tooltip:!0,"tooltip-open":this.open})}" placement="${this.placement}" distance="${this.distance}" skidding="${this.skidding}" flip shift ?arrow="${!this.withoutArrow}" hover-bridge .anchor="${this.anchor}"> <div part="body" class="body"> <slot></slot> </div> </wa-popup> `}constructor(){super(...arguments),this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger="hover focus",this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,p.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=Boolean(this.anchor?.matches(":hover")),e=this.matches(":hover");if(t||e)return;clearTimeout(this.hoverTimeout),t||e||(this.hoverTimeout=window.setTimeout(()=>{this.hide()},this.hideDelay))}}}};x.css=g.A,x.dependencies={"wa-popup":f.A},C([(0,a.P)("slot:not([name])")],x.prototype,"defaultSlot",2),C([(0,a.P)(".body")],x.prototype,"body",2),C([(0,a.P)("wa-popup")],x.prototype,"popup",2),C([(0,a.MZ)()],x.prototype,"placement",2),C([(0,a.MZ)({type:Boolean,reflect:!0})],x.prototype,"disabled",2),C([(0,a.MZ)({type:Number})],x.prototype,"distance",2),C([(0,a.MZ)({type:Boolean,reflect:!0})],x.prototype,"open",2),C([(0,a.MZ)({type:Number})],x.prototype,"skidding",2),C([(0,a.MZ)({attribute:"show-delay",type:Number})],x.prototype,"showDelay",2),C([(0,a.MZ)({attribute:"hide-delay",type:Number})],x.prototype,"hideDelay",2),C([(0,a.MZ)()],x.prototype,"trigger",2),C([(0,a.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],x.prototype,"withoutArrow",2),C([(0,a.MZ)()],x.prototype,"for",2),C([(0,a.wk)()],x.prototype,"anchor",2),C([(0,v.w)("open",{waitUntilFirstUpdate:!0})],x.prototype,"handleOpenChange",1),C([(0,v.w)("for")],x.prototype,"handleForChange",1),C([(0,v.w)(["distance","placement","skidding"])],x.prototype,"handleOptionsChange",1),C([(0,v.w)("disabled")],x.prototype,"handleDisabledChange",1),x=C([(0,a.EM)("wa-tooltip")],x),o()}catch(t){o(t)}})},51920(t,e,i){i.d(e,{A:()=>o});var o=i(5124).AH`:host{--max-width:30ch;display:inline-block;position:absolute;color:var(--wa-tooltip-content-color);font-size:var(--wa-tooltip-font-size);line-height:var(--wa-tooltip-line-height);text-align:start;white-space:normal}.tooltip{--arrow-size:var(--wa-tooltip-arrow-size);--arrow-color:var(--wa-tooltip-background-color)}.tooltip::part(popup){z-index:1000}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.body{display:block;width:max-content;max-width:var(--max-width);border-radius:var(--wa-tooltip-border-radius);background-color:var(--wa-tooltip-background-color);border:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);padding:.25em .5em;user-select:none;-webkit-user-select:none}.tooltip{--popup-border-width:var(--wa-tooltip-border-width)}.tooltip::part(arrow){border-bottom:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);border-right:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color)}`},37541(t,e,i){i.d(e,{I:()=>o});class o extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},984(t,e,i){function o(t,e){return new Promise(i=>{t.addEventListener(e,function o(r){r.target===t&&(t.removeEventListener(e,o),i())})})}i.d(e,{l:()=>o})},95010(t,e,i){i.d(e,{q:()=>o,N:()=>r});i(16573),i(78100),i(77936),i(37467),i(44732),i(79577),i(16632),i(34226),i(9486),i(20456);function o(t,e,i){const o=t=>Object.is(t,-0)?0:t;return o(t<e?e:t>i?i:t)}function r(t=""){return`${t}${((t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&i[t]];return e})()}`}},31247(t,e,i){i.d(e,{v:()=>o});i(18111),i(22489),i(61701);function o(t){return t.split(" ").map(t=>t.trim()).filter(t=>""!==t)}},4444(t,e,i){i.d(e,{JG:()=>r,Rt:()=>s,I7:()=>a});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);const o=new Set;function r(t){if(o.add(t),!document.documentElement.classList.contains("wa-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function a(t){o.delete(t),0===o.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function s(t,e,i="vertical",o="smooth"){const r=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),a=r.top+e.scrollTop,s=r.left+e.scrollLeft,n=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,d=e.scrollTop+e.offsetHeight;"horizontal"!==i&&"both"!==i||(s<n?e.scrollTo({left:s,behavior:o}):s+t.clientWidth>l&&e.scrollTo({left:s-e.offsetWidth+t.clientWidth,behavior:o})),"vertical"!==i&&"both"!==i||(a<c?e.scrollTo({top:a,behavior:o}):a+t.clientHeight>d&&e.scrollTo({top:a-e.offsetHeight+t.clientHeight,behavior:o}))}},28225(t,e,i){i.d(e,{U:()=>o});i(74423);function o(t,e){const i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"!==t.key||i||setTimeout(()=>{t.defaultPrevented||t.isComposing||function(t){let e=null;"form"in t&&(e=t.form);!e&&"getForm"in t&&(e=t.getForm());if(!e)return;const i=[...e.elements];if(1===i.length)return void e.requestSubmit(null);const o=i.find(t=>"submit"===t.type&&!t.matches(":disabled"));if(!o)return;["input","button"].includes(o.localName)?e.requestSubmit(o):o.click()}(e)})}},49546(t,e,i){i.d(e,{Y:()=>o});i(44114);const o=(t={})=>{let{validationElement:e,validationProperty:i}=t;e||(e=Object.assign(document.createElement("input"),{required:!0})),i||(i="value");const o={observedAttributes:["required"],message:e.validationMessage,checkValidity(t){const e={message:"",isValid:!0,invalidKeys:[]};if(!(t.required??t.hasAttribute("required")))return e;return!t[i]&&(e.message="function"==typeof o.message?o.message(t):o.message||"",e.isValid=!1,e.invalidKeys.push("valueMissing")),e}};return o}},15477(t,e,i){i.d(e,{A:()=>o});var o=i(5124).AH`:host{display:flex;flex-direction:column}[part~=form-control]{display:contents}:is([part~=form-control-label],[part~=label]).has-label,:is([part~=form-control-label],[part~=label]):has(:not(:empty)){display:inline-flex;color:var(--wa-form-control-label-color);font-weight:var(--wa-form-control-label-font-weight);line-height:var(--wa-form-control-label-line-height);margin-block-end:0.5em}:host([required]) :is([part~=form-control-label],[part~=label])::after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset);color:var(--wa-form-control-required-content-color)}[part~=hint]{display:block;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller)}[part~=hint]:not(.has-slotted,.has-hint){display:none}`},88696(t,e,i){i.d(e,{P:()=>a});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var o=i(37540),r=i(42017);class a{handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return s(this,t)}constructor(t,{target:e,config:i,callback:o,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(e??t),this.l=i,this.o=r??this.o,this.callback=o,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const s=(0,r.u$)(class extends o.Kq{render(t,e){}update(t,[e,i]){this.controller=e,this.part=t,this.observe=i,!1===i?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){!1!==this.observe&&!1===this.observing&&(this.controller?.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}})},96229(t,e,i){i.d(e,{k:()=>n});var o=i(62826),r=(i(73535),i(5124)),a=i(22441),s=i(99591);class n extends s.v{get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&(this.disabled||this.softDisabled),elevated:this.elevated,link:!!this.href}}renderPrimaryAction(t){const{ariaLabel:e}=this;return this.href?r.qy` <a class="primary action" id="link" aria-label="${e||r.s6}" href="${this.href}" download="${this.download||r.s6}" target="${this.target||r.s6}">${t}</a> `:r.qy` <button class="primary action" id="button" aria-label="${e||r.s6}" aria-disabled="${this.softDisabled||r.s6}" ?disabled="${this.disabled&&!this.alwaysFocusable}" type="button">${t}</button> `}renderOutline(){return this.elevated?r.qy`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}constructor(){super(...arguments),this.elevated=!1,this.href="",this.download="",this.target=""}}(0,o.Cg)([(0,a.MZ)({type:Boolean})],n.prototype,"elevated",void 0),(0,o.Cg)([(0,a.MZ)()],n.prototype,"href",void 0),(0,o.Cg)([(0,a.MZ)()],n.prototype,"download",void 0),(0,o.Cg)([(0,a.MZ)()],n.prototype,"target",void 0)},26069(t,e,i){i.d(e,{R:()=>o});const o=i(5124).AH`:host{--_container-height:var(--md-assist-chip-container-height, 32px);--_disabled-label-text-color:var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color:var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation:var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color:var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color:var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation:var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity:var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation:var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation:var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation:var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color:var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color:var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color:var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity:var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color:var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font:var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size:var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight:var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color:var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color:var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity:var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color:var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity:var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color:var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color:var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width:var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color:var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color:var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color:var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color:var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size:var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color:var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start:var(--md-assist-chip-container-shape-start-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end:var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end:var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start:var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space:var(--md-assist-chip-leading-space, 16px);--_trailing-space:var(--md-assist-chip-trailing-space, 16px);--_icon-label-space:var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space:var(--md-assist-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors:active){.link .outline{border-color:ActiveText}}`},37540(t,e,i){i.d(e,{Kq:()=>h});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var o=i(63937),r=i(42017);const a=(t,e)=>{const i=t._$AN;if(void 0===i)return!1;for(const t of i)t._$AO?.(e,!1),a(t,e);return!0},s=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===i?.size)},n=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),d(e)}};function l(t){void 0!==this._$AN?(s(this),this._$AM=t,n(this)):this._$AM=t}function c(t,e=!1,i=0){const o=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(o))for(let t=i;t<o.length;t++)a(o[t],!1),s(o[t]);else null!=o&&(a(o,!1),s(o));else a(this,t)}const d=t=>{t.type==r.OA.CHILD&&(t._$AP??=c,t._$AQ??=l)};class h extends r.WL{_$AT(t,e,i){super._$AT(t,e,i),n(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(a(this,t),s(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}},34514(t,e,i){i.d(e,{V:()=>s});var o=i(5055),r=i(42017),a=i(63937);const s=(0,r.u$)(class extends r.WL{render(t){return t}update(t,[e]){if(e===o.c0||e===o.s6)return e;const i=t.element,s=t.name;if(t.type===r.OA.PROPERTY){if(e===i[s])return o.c0}else if(t.type===r.OA.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(s))return o.c0}else if(t.type===r.OA.ATTRIBUTE&&i.getAttribute(s)===e+"")return o.c0;return(0,a.mY)(t),e}constructor(t){if(super(t),t.type!==r.OA.PROPERTY&&t.type!==r.OA.ATTRIBUTE&&t.type!==r.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,a.Rt)(t))throw Error("`live` bindings can only contain a single expression")}})},89784(t,e,i){i.d(e,{W:()=>n});i(74423),i(18111),i(18237),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var o=i(5055),r=i(42017);const a="important",s=" !"+a,n=(0,r.u$)(class extends r.WL{render(t){return Object.keys(t).reduce((e,i)=>{const o=t[i];return null==o?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?i.removeProperty(t):i[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(s);t.includes("-")||e?i.setProperty(t,e?o.slice(0,-11):o,e?a:""):i[t]=o}}return o.c0}constructor(t){if(super(t),t.type!==r.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}};