iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
8 lines • 78.1 kB
JavaScript
/*! For license information please see 99463.a3890f972d4a4ac0.js.LICENSE.txt */
export const __rspack_esm_id=99463;export const __rspack_esm_ids=[99463];export const __webpack_modules__={7658(e,t,o){o.d(t,{I:()=>i});var i=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},12451(e,t,o){o.d(t,{O:()=>a,i:()=>r.is});var i=o(5124),r=o(12130);class a extends i.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(e,t,o){o.d(t,{ZS:()=>c,is:()=>s.i});var i,r,a=o(62826),n=o(22441),s=o(12451);const l=null!==(r=null===(i=window.ShadyDOM)||void 0===i?void 0:i.inUse)&&void 0!==r&&r;class c extends s.O{findFormElement(){if(!this.shadowRoot||l)return null;const e=this.getRootNode().querySelectorAll("form");for(const t of Array.from(e))if(t.contains(this))return t;return null}connectedCallback(){var e;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(e=this.containingForm)||void 0===e||e.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.containingForm)||void 0===e||e.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",e=>{this.dispatchEvent(new Event("change",e))})}constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=e=>{this.disabled||this.setFormData(e.formData)}}}c.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,a.Cg)([(0,n.MZ)({type:Boolean})],c.prototype,"disabled",void 0)},56161(e,t,o){o.d(t,{P:()=>i});o(18111),o(7588),o(45367),o(92731);const i=e=>(t,o)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){const e=t.constructor._observers;t.constructor._observers=new Map,e.forEach((e,o)=>t.constructor._observers.set(o,e))}}else{t.constructor._observers=new Map;const e=t.updated;t.updated=function(t){e.call(this,t),t.forEach((e,t)=>{const o=this.constructor._observers.get(t);void 0!==o&&o.call(this,this[t],e)})}}t.constructor._observers.set(o,e)}},12130(e,t,o){o.d(t,{SE:()=>c,U9:()=>l,hP:()=>i,is:()=>r});o(44114);const i=e=>e.nodeType===Node.ELEMENT_NODE;function r(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}let a=!1;const n=()=>{},s={get passive(){return a=!0,!1}};document.addEventListener("x",n,s),document.removeEventListener("x",n);const l=(e=window.document)=>{let t=e.activeElement;const o=[];if(!t)return o;for(;t&&(o.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return o},c=e=>{const t=l();if(!t.length)return!1;const o=t[t.length-1],i=new Event("check-if-focused",{bubbles:!0,composed:!0});let r=[];const a=e=>{r=e.composedPath()};return document.body.addEventListener("check-if-focused",a),o.dispatchEvent(i),document.body.removeEventListener("check-if-focused",a),-1!==r.indexOf(e)}},68462(e,t,o){o.d(t,{M:()=>f});var i=o(62826),r=o(7658),a={ROOT:"mdc-form-field"},n={LABEL_SELECTOR:".mdc-form-field > label"};const s=function(e){function t(o){var r=e.call(this,(0,i.Cl)((0,i.Cl)({},t.defaultAdapter),o))||this;return r.click=function(){r.handleClick()},r}return(0,i.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(r.I);var l=o(12451),c=o(51324),d=o(56161),h=o(5124),p=o(22441),u=o(6412);class f extends l.O{createAdapter(){return{registerInteractionHandler:(e,t)=>{this.labelEl.addEventListener(e,t)},deregisterInteractionHandler:(e,t)=>{this.labelEl.removeEventListener(e,t)},activateInputRipple:async()=>{const e=this.input;if(e instanceof c.ZS){const t=await e.ripple;t&&t.startPress()}},deactivateInputRipple:async()=>{const e=this.input;if(e instanceof c.ZS){const t=await e.ripple;t&&t.endPress()}}}}get input(){var e,t;return null!==(t=null===(e=this.slottedInputs)||void 0===e?void 0:e[0])&&void 0!==t?t:null}render(){const e={"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)(e)}"> <slot></slot> <label class="mdc-label" @click="${this._labelClick}">${this.label}</label> </div>`}click(){this._labelClick()}_labelClick(){const e=this.input;e&&(e.focus(),e.click())}constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=s}}(0,i.Cg)([(0,p.MZ)({type:Boolean})],f.prototype,"alignEnd",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],f.prototype,"spaceBetween",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],f.prototype,"nowrap",void 0),(0,i.Cg)([(0,p.MZ)({type:String}),(0,d.P)(async function(e){var t;null===(t=this.input)||void 0===t||t.setAttribute("aria-label",e)})],f.prototype,"label",void 0),(0,i.Cg)([(0,p.P)(".mdc-form-field")],f.prototype,"mdcRoot",void 0),(0,i.Cg)([(0,p.KN)({slot:"",flatten:!0,selector:"*"})],f.prototype,"slottedInputs",void 0),(0,i.Cg)([(0,p.P)("label")],f.prototype,"labelEl",void 0)},38627(e,t,o){o.d(t,{R:()=>i});const i=o(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(e,t,o){var i=o(26198);e.exports=function(e,t,o){for(var r=0,a=arguments.length>2?o:i(t),n=new e(a);a>r;)n[r]=t[r++];return n}},77957(e,t,o){var i=o(76080),r=o(79504),a=o(47055),n=o(48981),s=o(56969),l=o(26198),c=o(2360),d=o(35370),h=Array,p=r([].push);e.exports=function(e,t,o,r){for(var u,f,m,v=n(e),b=a(v),g=i(t,o),w=c(null),y=l(b),k=0;y>k;k++)m=b[k],(f=s(g(m,k,v)))in w?p(w[f],m):w[f]=[m];if(r&&(u=r(v))!==h)for(f in w)w[f]=d(u,w[f]);return w}},46058(e,t,o){var i=o(46518),r=o(77957),a=o(6469);i({target:"Array",proto:!0},{group:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("group")},97577(e,t,o){o.d(t,{A:()=>w});var i=o(5124),r=o(22441),a=o(6412),n=o(63672),s=o(34514),l=o(40991),c=o(92070),d=o(49546),h=o(9395),p=o(62676),u=o(15477),f=o(31896),m=(o(38625),i.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)}`),v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,g=(e,t,o,i)=>{for(var r,a=i>1?void 0:i?b(t,o):t,n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i?r(t,o,a):r(a))||a);return i&&a&&v(t,o,a),a};let w=class extends p.q{static get validators(){const e=i.S$?[]:[(0,d.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...e]}get value(){return this._value??"on"}set value(e){this._value=e}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??this.defaultChecked}set checked(e){this._checked=Boolean(e),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(e){super.willUpdate(e),(e.has("value")||e.has("checked")||e.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){const e=!!i.S$||this.hasSlotController.test("hint"),t=!!this.hint||!!e,o=!this.checked&&this.indeterminate,r=o?"indeterminate":"check",l=o?"indeterminate":"check";return i.qy` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${this.title}" name="${(0,n.J)(this.name)}" value="${(0,n.J)(this._value)}" .indeterminate="${(0,s.V)(this.indeterminate)}" .checked="${(0,s.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="${t?"false":"true"}" class="${(0,a.H)({"has-slotted":t})}"> ${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=""}};w.css=[u.A,f.A,m],w.shadowRootOptions={...p.q.shadowRootOptions,delegatesFocus:!0},g([(0,r.P)('input[type="checkbox"]')],w.prototype,"input",2),g([(0,r.MZ)()],w.prototype,"title",2),g([(0,r.MZ)({reflect:!0})],w.prototype,"name",2),g([(0,r.MZ)({reflect:!0})],w.prototype,"value",1),g([(0,r.MZ)({reflect:!0})],w.prototype,"size",2),g([(0,h.w)("size")],w.prototype,"handleSizeChange",1),g([(0,r.MZ)({type:Boolean})],w.prototype,"disabled",2),g([(0,r.MZ)({type:Boolean,reflect:!0})],w.prototype,"indeterminate",2),g([(0,r.MZ)({type:Boolean,attribute:!1})],w.prototype,"checked",1),g([(0,r.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],w.prototype,"defaultChecked",2),g([(0,r.MZ)({type:Boolean,reflect:!0})],w.prototype,"required",2),g([(0,r.MZ)()],w.prototype,"hint",2),g([(0,h.w)(["checked","defaultChecked"])],w.prototype,"handleDefaultCheckedChange",1),g([(0,h.w)(["checked","indeterminate"])],w.prototype,"handleStateChange",1),g([(0,h.w)("disabled")],w.prototype,"handleDisabledChange",1),w=g([(0,r.EM)("wa-checkbox")],w),w.disableWarning?.("change-in-update")},1126(e,t,o){o.a(e,async function(e,t){try{var i=o(5124),r=o(22441),a=o(6412),n=o(63672),s=o(17051),l=o(42462),c=o(28438),d=o(98779),h=o(27259),p=o(25877),u=o(31247),f=o(4444),m=o(92070),v=o(9395),b=o(717),g=o(17060),w=o(88496),y=o(57024),k=e([w,g]);[w,g]=k.then?(await k)():k;var x=Object.defineProperty,C=Object.getOwnPropertyDescriptor,_=(e,t,o,i)=>{for(var r,a=i>1?void 0:i?C(t,o):t,n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i?r(t,o,a):r(a))||a);return i&&a&&x(t,o,a),a};let $=class extends b.A{firstUpdated(){i.S$||this.open&&(this.addOpenListeners(),this.drawer.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(e){const t=new c.L({source:e});if(this.dispatchEvent(t),t.defaultPrevented)return this.open=!0,void(0,h.Ud)(this.drawer,"pulse");this.removeOpenListeners(),await(0,h.Ud)(this.drawer,"hide"),this.open=!1,this.drawer.close(),(0,f.I7)(this);const o=this.originalTrigger;"function"==typeof o?.focus&&setTimeout(()=>o.focus()),this.dispatchEvent(new s.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,p.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,p.Fw)(this)}handleDialogCancel(e){e.preventDefault(),!this.drawer.classList.contains("hide")&&e.target===this.drawer&&(0,p.a0)(this)&&this.requestClose(this.drawer)}handleDialogClick(e){const t=e.target.closest('[data-drawer="close"]');t&&(e.stopPropagation(),this.requestClose(t))}async handleDialogPointerDown(e){e.target===this.drawer&&(this.lightDismiss?this.requestClose(this.drawer):await(0,h.Ud)(this.drawer,"pulse"))}handleOpenChange(){this.open&&!this.drawer.open?this.show():this.drawer.open&&(this.open=!0,this.requestClose(this.drawer))}async show(){const e=new d.k;this.dispatchEvent(e),e.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.drawer.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const e=this.querySelector("[autofocus]");e&&"function"==typeof e.focus?e.focus():this.drawer.focus()}),await(0,h.Ud)(this.drawer,"show"),this.dispatchEvent(new l.q))}render(){const e=!this.withoutHeader,t=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return i.qy` <dialog aria-labelledby="${this.ariaLabelledby??"title"}" aria-describedby="${(0,n.J)(this.ariaDescribedby)}" part="dialog" class="${(0,a.H)({drawer:!0,open:this.open,top:"top"===this.placement,end:"end"===this.placement,bottom:"bottom"===this.placement,start:"start"===this.placement})}" @cancel="${this.handleDialogCancel}" @click="${this.handleDialogClick}" @pointerdown="${this.handleDialogPointerDown}"> ${e?i.qy` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(8203)} </slot> </h2> <div part="header-actions" class="header-actions"> <slot name="header-actions"></slot> <wa-button part="close-button" exportparts="base:close-button__base" class="close" appearance="plain" @click="${e=>this.requestClose(e.target)}"> <wa-icon name="xmark" label="${this.localize.term("close")}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `:""} <div part="body" class="body"><slot></slot></div> ${t?i.qy` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `:""} </dialog> `}constructor(){super(...arguments),this.localize=new g.c(this),this.hasSlotController=new m.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.placement="end",this.withoutHeader=!1,this.lightDismiss=!0,this.withFooter=!1,this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.open&&(0,p.a0)(this)&&(e.preventDefault(),e.stopPropagation(),this.requestClose(this.drawer))}}};$.css=y.A,_([(0,r.P)(".drawer")],$.prototype,"drawer",2),_([(0,r.MZ)({type:Boolean,reflect:!0})],$.prototype,"open",2),_([(0,r.MZ)({reflect:!0})],$.prototype,"label",2),_([(0,r.MZ)({reflect:!0})],$.prototype,"placement",2),_([(0,r.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],$.prototype,"withoutHeader",2),_([(0,r.MZ)({attribute:"light-dismiss",type:Boolean})],$.prototype,"lightDismiss",2),_([(0,r.MZ)({attribute:"aria-labelledby"})],$.prototype,"ariaLabelledby",2),_([(0,r.MZ)({attribute:"aria-describedby"})],$.prototype,"ariaDescribedby",2),_([(0,r.MZ)({attribute:"with-footer",type:Boolean})],$.prototype,"withFooter",2),_([(0,v.w)("open",{waitUntilFirstUpdate:!0})],$.prototype,"handleOpenChange",1),$=_([(0,r.EM)("wa-drawer")],$),i.S$||(document.addEventListener("click",e=>{const t=e.target.closest("[data-drawer]");if(t instanceof Element){const[e,o]=(0,u.v)(t.getAttribute("data-drawer")||"");if("open"===e&&o?.length){const e=t.getRootNode().getElementById(o);"wa-drawer"===e?.localName?e.open=!0:console.warn(`A drawer with an ID of "${o}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),t()}catch(e){t(e)}})},57024(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`:host{--size:25rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:200ms;--hide-duration:200ms;display:none}:host([open]){display:block}.drawer{display:flex;flex-direction:column;top:0;inset-inline-start:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;color:inherit;background-color:var(--wa-color-surface-raised);border:none;box-shadow:var(--wa-shadow-l);overflow:auto;padding:0;margin:0;animation-duration:var(--show-duration);animation-timing-function:ease}.drawer.show::backdrop{animation:show-backdrop var(--show-duration,200ms) ease}.drawer.hide::backdrop{animation:show-backdrop var(--hide-duration,200ms) ease reverse}.drawer.show.top{animation:show-drawer-from-top var(--show-duration) ease}.drawer.hide.top{animation:show-drawer-from-top var(--hide-duration) ease reverse}.drawer.show.end{animation:show-drawer-from-end var(--show-duration) ease}.drawer.show.end:dir(rtl){animation-name:show-drawer-from-start}.drawer.hide.end{animation:show-drawer-from-end var(--hide-duration) ease reverse}.drawer.hide.end:dir(rtl){animation-name:show-drawer-from-start}.drawer.show.bottom{animation:show-drawer-from-bottom var(--show-duration) ease}.drawer.hide.bottom{animation:show-drawer-from-bottom var(--hide-duration) ease reverse}.drawer.show.start{animation:show-drawer-from-start var(--show-duration) ease}.drawer.show.start:dir(rtl){animation-name:show-drawer-from-end}.drawer.hide.start{animation:show-drawer-from-start var(--hide-duration) ease reverse}.drawer.hide.start:dir(rtl){animation-name:show-drawer-from-end}.drawer.pulse{animation:pulse 250ms ease}.drawer:focus{outline:0}.top{top:0;inset-inline-end:auto;bottom:auto;inset-inline-start:0;width:100%;height:var(--size)}.end{top:0;inset-inline-end:0;bottom:auto;inset-inline-start:auto;width:var(--size);height:100%}.bottom{top:auto;inset-inline-end:auto;bottom:0;inset-inline-start:0;width:100%;height:var(--size)}.start{top:0;inset-inline-end:auto;bottom:auto;inset-inline-start:0;width:var(--size);height:100%}.header{display:flex;flex-wrap:nowrap;padding-inline-start:var(--spacing);padding-block-end:0;padding-inline-end:calc(var(--spacing) - var(--wa-form-control-padding-block));padding-block-start:calc(var(--spacing) - var(--wa-form-control-padding-block))}.title{align-self:center;flex:1 1 auto;font:inherit;font-size:var(--wa-font-size-l);font-weight:var(--wa-font-weight-heading);line-height:var(--wa-line-height-condensed);margin:0}.header-actions{align-self:start;display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:end;gap:var(--wa-space-2xs);padding-inline-start:var(--spacing)}.header-actions ::slotted(wa-button),.header-actions wa-button{flex:0 0 auto;display:flex;align-items:center}.body{flex:1 1 auto;display:block;padding:var(--spacing);overflow:auto;-webkit-overflow-scrolling:touch}.body:focus{outline:0}.body:focus-visible{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.footer{display:flex;flex-wrap:wrap;gap:var(--wa-space-xs);justify-content:end;padding:var(--spacing);padding-block-start:0}.footer ::slotted(wa-button:not(:last-of-type)){margin-inline-end:var(--wa-spacing-xs)}.drawer::backdrop{background-color:var(--wa-color-overlay-modal,rgb(0 0 0 / .25));-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}@keyframes pulse{0%{scale:1}50%{scale:1.01}100%{scale:1}}@keyframes show-drawer{from{opacity:0;scale:0.8}to{opacity:1;scale:1}}@keyframes show-drawer-from-top{from{opacity:0;translate:0 -100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-end{from{opacity:0;translate:100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-bottom{from{opacity:0;translate:0 100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-start{from{opacity:0;translate:-100% 0}to{opacity:1;translate:0 0}}@keyframes show-backdrop{from{opacity:0}to{opacity:1}}@media (forced-colors:active){.drawer{border:solid 1px #fff}}`},30006(e,t,o){o.a(e,async function(e,t){try{o(74423);var i=o(5124),r=o(22441),a=o(6412),n=o(63672),s=o(34514),l=o(37541),c=o(40991),d=o(92070),h=o(28225),p=o(41268),u=o(9395),f=o(62676),m=o(15477),v=o(31896),b=o(17060),g=(o(38625),o(96272)),w=e([b]);b=(w.then?(await w)():w)[0];var y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,x=(e,t,o,i)=>{for(var r,a=i>1?void 0:i?k(t,o):t,n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i?r(t,o,a):r(a))||a);return i&&a&&y(t,o,a),a};let C=class extends f.q{static get validators(){return[...super.validators,(0,p.i)()]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(e){this._value!==e&&(this.valueHasChanged=!0,this._value=e)}handleSizeChange(){(0,c.b)(this.localName,this.size)}handleChange(e){this.value=this.input.value,this.relayNativeEvent(e,{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(e){e.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(e){(0,h.U)(e,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(e){if(super.updated(e),e.has("value")||e.has("defaultValue")||e.has("type")){const e=["number","date","time","datetime-local"];this.input&&e.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(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,o="none"){this.input.setSelectionRange(e,t,o)}setRangeText(e,t,o,i="preserve"){const r=t??this.input.selectionStart,a=o??this.input.selectionEnd;this.input.setRangeText(e,r,a,i),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 e=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,t=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,o=!!this.label||!!e,r=!!this.hint||!!t,l=this.withClear&&!this.disabled&&!this.readonly,c=(i.S$||this.hasUpdated)&&l&&("number"==typeof this.value||this.value&&this.value.length>0);return i.qy` <label part="form-control-label label" class="${(0,a.H)({label:!0,"has-label":o})}" for="input" aria-hidden="${o?"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,n.J)(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${(0,n.J)(this.placeholder)}" minlength="${(0,n.J)(this.minlength)}" maxlength="${(0,n.J)(this.maxlength)}" min="${(0,n.J)(this.min)}" max="${(0,n.J)(this.max)}" step="${(0,n.J)(this.step)}" .value="${(0,s.V)(this.value??"")}" autocapitalize="${(0,n.J)(this.autocapitalize)}" autocomplete="${(0,n.J)(this.autocomplete)}" autocorrect="${this.autocorrect?"on":"off"}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${(0,n.J)(this.pattern)}" enterkeyhint="${(0,n.J)(this.enterkeyhint)}" inputmode="${(0,n.J)(this.inputmode)}" aria-describedby="hint" @change="${this.handleChange}" @input="${this.handleInput}" @keydown="${this.handleKeyDown}"> ${c?i.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?i.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?i.qy` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `:i.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 b.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}};C.css=[v.A,m.A,g.A],C.shadowRootOptions={...f.q.shadowRootOptions,delegatesFocus:!0},x([(0,r.P)("input")],C.prototype,"input",2),x([(0,r.MZ)()],C.prototype,"title",2),x([(0,r.MZ)({reflect:!0})],C.prototype,"type",2),x([(0,r.wk)()],C.prototype,"value",1),x([(0,r.MZ)({attribute:"value",reflect:!0})],C.prototype,"defaultValue",2),x([(0,r.MZ)({reflect:!0})],C.prototype,"size",2),x([(0,u.w)("size")],C.prototype,"handleSizeChange",1),x([(0,r.MZ)({reflect:!0})],C.prototype,"appearance",2),x([(0,r.MZ)({type:Boolean,reflect:!0})],C.prototype,"pill",2),x([(0,r.MZ)()],C.prototype,"label",2),x([(0,r.MZ)({attribute:"hint"})],C.prototype,"hint",2),x([(0,r.MZ)({attribute:"with-clear",type:Boolean})],C.prototype,"withClear",2),x([(0,r.MZ)()],C.prototype,"placeholder",2),x([(0,r.MZ)({type:Boolean,reflect:!0})],C.prototype,"readonly",2),x([(0,r.MZ)({attribute:"password-toggle",type:Boolean})],C.prototype,"passwordToggle",2),x([(0,r.MZ)({attribute:"password-visible",type:Boolean})],C.prototype,"passwordVisible",2),x([(0,r.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],C.prototype,"withoutSpinButtons",2),x([(0,r.MZ)({type:Boolean,reflect:!0})],C.prototype,"required",2),x([(0,r.MZ)()],C.prototype,"pattern",2),x([(0,r.MZ)({type:Number})],C.prototype,"minlength",2),x([(0,r.MZ)({type:Number})],C.prototype,"maxlength",2),x([(0,r.MZ)()],C.prototype,"min",2),x([(0,r.MZ)()],C.prototype,"max",2),x([(0,r.MZ)()],C.prototype,"step",2),x([(0,r.MZ)()],C.prototype,"autocapitalize",2),x([(0,r.MZ)({type:Boolean,converter:{fromAttribute:e=>!(!e||"off"===e),toAttribute:e=>e?"on":"off"}})],C.prototype,"autocorrect",2),x([(0,r.MZ)()],C.prototype,"autocomplete",2),x([(0,r.MZ)({type:Boolean})],C.prototype,"autofocus",2),x([(0,r.MZ)()],C.prototype,"enterkeyhint",2),x([(0,r.MZ)({type:Boolean,converter:{fromAttribute:e=>!(!e||"false"===e),toAttribute:e=>e?"true":"false"}})],C.prototype,"spellcheck",2),x([(0,r.MZ)()],C.prototype,"inputmode",2),x([(0,r.MZ)({attribute:"with-label",type:Boolean})],C.prototype,"withLabel",2),x([(0,r.MZ)({attribute:"with-hint",type:Boolean})],C.prototype,"withHint",2),x([(0,u.w)("step",{waitUntilFirstUpdate:!0})],C.prototype,"handleStepChange",1),C=x([(0,r.EM)("wa-input")],C),C.disableWarning?.("change-in-update"),t()}catch(e){t(e)}})},96272(e,t,o){o.d(t,{A:()=>i});var i=o(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}`},61366(e,t,o){o.a(e,async function(e,t){try{o(74423),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var i=o(5124),r=o(22441),a=o(6412),n=o(63672),s=o(17051),l=o(42462),c=o(28438),d=o(98779),h=o(27259),p=o(25877),u=o(984),f=o(95010),m=o(9395),v=o(717),b=o(40158),g=o(10416),w=e([b]);b=(w.then?(await w)():w)[0];var y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,x=(e,t,o,i)=>{for(var r,a=i>1?void 0:i?k(t,o):t,n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i?r(t,o,a):r(a))||a);return i&&a&&y(t,o,a),a};const C=new Set;let _=class extends v.A{connectedCallback(){super.connectedCallback(),this.id||(this.id=(0,f.N)("wa-popover-")),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.for&&this.anchor&&(this.anchor=null,this.handleForChange())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,p.Fw)(this),this.eventController.abort()}firstUpdated(){this.open&&this.handleOpenChange()}updated(e){e.has("open")&&this.customStates.set("open",this.open)}async handleOpenChange(){if(this.open){const e=new d.k;if(this.dispatchEvent(e),e.defaultPrevented)return void(this.open=!1);C.forEach(e=>e.open=!1),document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),document.addEventListener("click",this.handleDocumentClick,{signal:this.eventController.signal}),this.trapFocus?this.dialog.showModal():this.dialog.show(),this.popup.active=!0,C.add(this),(0,p.AZ)(this),requestAnimationFrame(()=>{const e=this.querySelector("[autofocus]");e&&"function"==typeof e.focus?e.focus():this.dialog.focus()}),this.popup.popup||await this.popup.updateComplete,await(0,h.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const e=new c.L;if(this.dispatchEvent(e),e.defaultPrevented)return void(this.open=!0);document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick),C.delete(this),(0,p.Fw)(this),await(0,h.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.dialog.close(),this.dispatchEvent(new s.Z)}}handleForChange(){const e=this.getRootNode();if(!e)return;const t=this.for?e.getElementById(this.for):null,o=this.anchor;if(t===o)return;const{signal:i}=this.eventController;t&&t.addEventListener("click",this.handleAnchorClick,{signal:i}),o&&o.removeEventListener("click",this.handleAnchorClick),this.anchor=t,this.for&&!t&&console.warn(`A popover was assigned to an element with an ID of "${this.for}" but the element could not be found.`,this)}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}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")}handleDialogCancel(e){e.preventDefault(),this.dialog.classList.contains("hide")||(this.open=!1)}render(){return i.qy` <dialog aria-labelledby="${(0,n.J)(this.ariaLabelledby)}" aria-describedby="${(0,n.J)(this.ariaDescribedby)}" part="dialog" class="dialog" @cancel="${this.handleDialogCancel}"> <wa-popup part="popup" exportparts="
popup:popup__popup,
arrow:popup__arrow
" class="${(0,a.H)({popover:!0,"popover-open":this.open})}" placement="${this.placement}" distance="${this.distance}" skidding="${this.skidding}" flip shift ?arrow="${!this.withoutArrow}" .anchor="${this.anchor}" .autoSize="${this.autoSize}" .autoSizePadding="${this.autoSizePadding}"> <div part="body" class="body" @click="${this.handleBodyClick}"> <slot></slot> </div> </wa-popup> </dialog> `}constructor(){super(...arguments),this.anchor=null,this.placement="top",this.open=!1,this.distance=8,this.skidding=0,this.for=null,this.withoutArrow=!1,this.autoSizePadding=0,this.trapFocus=!1,this.eventController=new AbortController,this.handleAnchorClick=()=>{this.open=!this.open},this.handleBodyClick=e=>{e.stopPropagation();e.target.closest('[data-popover="close"]')&&(this.open=!1)},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.open&&(0,p.a0)(this)&&(e.preventDefault(),e.stopPropagation(),this.open=!1,this.anchor&&"function"==typeof this.anchor.focus&&this.anchor.focus())},this.handleDocumentClick=e=>{this.anchor&&e.composedPath().includes(this.anchor)||e.composedPath().includes(this)||(this.open=!1)}}};_.css=g.A,_.dependencies={"wa-popup":b.A},x([(0,r.P)("dialog")],_.prototype,"dialog",2),x([(0,r.P)(".body")],_.prototype,"body",2),x([(0,r.P)("wa-popup")],_.prototype,"popup",2),x([(0,r.wk)()],_.prototype,"anchor",2),x([(0,r.MZ)()],_.prototype,"placement",2),x([(0,r.MZ)({type:Boolean,reflect:!0})],_.prototype,"open",2),x([(0,r.MZ)({type:Number})],_.prototype,"distance",2),x([(0,r.MZ)({type:Number})],_.prototype,"skidding",2),x([(0,r.MZ)()],_.prototype,"for",2),x([(0,r.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],_.prototype,"withoutArrow",2),x([(0,r.MZ)({attribute:"auto-size"})],_.prototype,"autoSize",2),x([(0,r.MZ)({attribute:"auto-size-padding",type:Number})],_.prototype,"autoSizePadding",2),x([(0,r.MZ)({attribute:"trap-focus",type:Boolean})],_.prototype,"trapFocus",2),x([(0,r.MZ)({attribute:"aria-labelledby"})],_.prototype,"ariaLabelledby",2),x([(0,r.MZ)({attribute:"aria-describedby"})],_.prototype,"ariaDescribedby",2),x([(0,m.w)("open",{waitUntilFirstUpdate:!0})],_.prototype,"handleOpenChange",1),x([(0,m.w)("for")],_.prototype,"handleForChange",1),x([(0,m.w)(["distance","placement","skidding"])],_.prototype,"handleOptionsChange",1),_=x([(0,r.EM)("wa-popover")],_),t()}catch(e){t(e)}})},10416(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`:host{--arrow-size:0.375rem;--max-width:25rem;--show-duration:100ms;--hide-duration:100ms;display:contents;font-size:var(--wa-font-size-m);line-height:var(--wa-line-height-normal);text-align:start;white-space:normal}.dialog{display:none;position:fixed;inset:0;width:100%;height:100%;margin:0;padding:0;border:none;background:0 0;overflow:visible;pointer-events:none}.dialog:focus{outline:0}.dialog[open]{display:block}.popover{--arrow-size:inherit;--popup-border-width:var(--wa-panel-border-width);--show-duration:inherit;--hide-duration:inherit;pointer-events:auto}.popover::part(arrow){background-color:var(--wa-color-surface-default);border-top:none;border-left:none;border-bottom:solid var(--wa-panel-border-width) var(--wa-color-surface-border);border-right:solid var(--wa-panel-border-width) var(--wa-color-surface-border);box-shadow:none}.popover[placement^=top]::part(popup){transform-origin:bottom}.popover[placement^=bottom]::part(popup){transform-origin:top}.popover[placement^=left]::part(popup){transform-origin:right}.popover[placement^=right]::part(popup){transform-origin:left}.body{display:flex;flex-direction:column;width:auto;max-width:min(var(--max-width),100vw);padding:var(--wa-space-l);background-color:var(--wa-color-surface-default);border:var(--wa-panel-border-width) solid var(--wa-color-surface-border);border-radius:var(--wa-panel-border-radius);border-style:var(--wa-panel-border-style);box-shadow:var(--wa-shadow-l);color:var(--wa-color-text-normal);user-select:none;-webkit-user-select:none}.popover[data-current-placement^=bottom] .body,.popover[data-current-placement^=top] .body{max-width:min(var(--max-width),100vw - (var(--wa-space-m) * 2));margin-inline:var(--wa-space-m)}.popover[data-current-placement^=left] .body,.popover[data-current-placement^=right] .body{max-height:calc(100vh - (var(--wa-space-m) * 2));margin-block:var(--wa-space-m)}`},52630(e,t,o){o.a(e,async function(e,i){try{o.d(t,{A:()=>C});o(74423),o(44114),o(18111),o(22489);var r=o(5124),a=o(22441),n=o(6412),s=o(17051),l=o(42462),c=o(28438),d=o(98779),h=o(27259),p=o(25877),u=o(984),f=o(95010),m=o(9395),v=o(717),b=o(40158),g=o(51920),w=e([b]);b=(w.then?(await w)():w)[0];var y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,x=(e,t,o,i)=>{for(var r,a=i>1?void 0:i?k(t,o):t,n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i?r(t,o,a):r(a))||a);return i&&a&&y(t,o,a),a};let C=class extends v.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,f.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(e){return this.trigger.split(" ").includes(e)}addToAriaLabelledBy(e,t){const o=(e.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean);o.includes(t)||(o.push(t),e.setAttribute("aria-labelledby",o.join(" ")))}removeFromAriaLabelledBy(e,t){const o=(e.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean).filter(e=>e!==t);o.length>0?e.setAttribute("aria-labelledby",o.join(" ")):e.removeAttribute("aria-labelledby")}async handleOpenChange(){if(this.open){if(this.disabled)return;const e=new d.k;if(this.dispatchEvent(e),e.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 e=new c.L;if(this.dispatchEvent(e),e.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 s.Z)}}handleForChange(){const e=this.getRootNode();if(!e)return;const t=this.for?e.getElementById(this.for):null,o=this.anchor;if(t===o)return;const{signal:i}=this.eventController;t&&(this.addToAriaLabelledBy(t,this.id),t.addEventListener("blur",this.handleBlur,{capture:!0,signal:i}),t.addEventListener("focus",this.handleFocus,{capture:!0,signal:i}),t.addEventListener("click",this.handleClick,{signal:i}),t.addEventListener("mouseover",this.handleMouseOver,{signal:i}),t.addEventListener("mouseout",this.handleMouseOut,{signal:i})),o&&(this.removeFromAriaLabelledBy(o,this.id),o.removeEventListener("blur",this.handleBlur,{capture:!0}),o.removeEventListener("focus",this.handleFocus,{capture:!0}),o.removeEventListener("click",this.handleClick),o.removeEventListener("mouseover",this.handleMouseOver),o.removeEventListener("mouseout",this.handleMouseOut)),this.anchor=t}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,n.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=e=>{"Escape"===e.key&&this.open&&(0,p.a0)(this)&&(e.preventDefault(),e.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 e=Boolean(this.anchor?.matches(":hover")),t=this.matches(":hover");if(e||t)return;clearTimeout(this.hoverTimeout),e||t||(this.hoverTimeout=window.setTimeout(()=>{this.hide()},this.hideDelay))}}}};C.css=g.A,C.dependencies={"wa-popup":b.A},x([(0,a.P)("slot:not([name])")],C.prototype,"defaultSlot",2),x([(0,a.P)(".body")],C.prototype,"body",2),x([(0,a.P)("wa-popup")],C.prototype,"popup",2),x([(0,a.MZ)()],C.prototype,"placement",2),x([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"disabled",2),x([(0,a.MZ)({type:Number})],C.prototype,"distance",2),x([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"open",2),x([(0,a.MZ)({type:Number})],C.prototype,"skidding",2),x([(0,a.MZ)({attribute:"show-delay",type:Number})],C.prototype,"showDelay",2),x([(0,a.MZ)({attribute:"hide-delay",type:Number})],C.prototype,"hideDelay",2),x([(0,a.MZ)()],C.prototype,"trigger",2),x([(0,a.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],C.prototype,"withoutArrow",2),x([(0,a.MZ)()],C.prototype,"for",2),x([(0,a.wk)()],C.prototype,"anchor",2),x([(0,m.w)("open",{waitUntilFirstUpdate:!0})],C.prototype,"handleOpenChange",1),x([(0,m.w)("for")],C.prototype,"handleForChange",1),x([(0,m.w)(["distance","placement","skidding"])],C.prototype,"handleOptionsChange",1),x([(0,m.w)("disabled")],C.prototype,"handleDisabledChange",1),C=x([(0,a.EM)("wa-tooltip")],C),i()}catch(e){i(e)}})},51920(e,t,o){o.d(t,{A:()=>i});var i=o(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(e,t,o){o.d(t,{I:()=>i});class i extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},984(e,t,o){function i(e,t){return new Promise(o=>{e.addEventListener(t,function i(r){r.target===e&&(e.removeEventListener(t,i),o())})})}o.d(t,{l:()=>i})},95010(e,t,o){o.d(t,{q:()=>i,N:()=>r});o(16573),o(78100),o(77936),o(37467),o(44732),o(79577),o(16632),o(34226),o(9486),o(20456);function i(e,t,o){const i=e=>Object.is(e,-0)?0:e;return i(e<t?t:e>o?o:e)}function r(e=""){return`${e}${((e=21)=>{let t="",o=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&o[e]];return t})()}`}},31247(e,t,o){o.d(t,{v:()=>i});o(18111),o(22489),o(61701);function i(e){return e.split(" ").map(e=>e.trim()).filter(e=>""!==e)}},4444(e,t,o){o.d(t,{JG:()=>r,Rt:()=>n,I7:()=>a});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);const i=new Set;function r(e){if(i.add(e),!document.documentElement.classList.contains("wa-scroll-lock")){const e=function(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}()+function(){const e=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(e)||!e?0:e}();let t=getComputedStyle(document.documentElement).scrollbarGutter;t&&"auto"!==t||(t="stable"),e<2&&(t=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",t),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${e}px`)}}function a(e){i.delete(e),0===i.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function n(e,t,o="vertical",i="smooth"){const r=function(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}(e,t),a=r.top+t.scrollTop,n=r.left+t.scrollLeft,s=t.scrollLeft,l=t.scrollLeft+t.offsetWidth,c=t.scrollTop,d=t.scrollTop+t.offsetHeight;"horizontal"!==o&&"both"!==o||(n<s?t.scrollTo({left:n,behavior:i}):n+e.clientWidth>l&&t.scrollTo({left:n-t.offsetWidth+e.clientWidth,behavior:i})),"vertical"!==o&&"both"!==o||(a<c?t.scrollTo({top:a,behavior:i}):a+e.clientHeight>d&&t.scrollTo({top:a-t.offsetHeight+e.clientHeight,behavior:i}))}},28225(e,t,o){o.d(t,{U:()=>i});o(74423);function i(e,t){const o=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||o||setTimeout(()=>{e.defaultPrevented||e.isComposing||function(e){let t=null;"form"in e&&(t=e.form);!t&&"getForm"in e&&(t=e.getForm());if(!t)return;const o=[...t.elements];if(1===o.length)return void t.requestSubmit(null);const i=o.find(e=>"submit"===e.type&&!e.matches(":disabled"));if(!i)return;["input","button"].includes(i.localName)?t.requestSubmit(i):i.click()}(t)})}},49546(e,t,o){o.d(t,{Y:()=>i});o(44114);const i=(e={})=>{let{validationElement:t,validationProperty:o}=e;t||(t=Object.assign(document.createElement("input"),{required:!0})),o||(o="value");const i={observedAttributes:["required"],message:t.validationMessage,checkValidity(e){const t={message:"",isValid:!0,invalidKeys:[]};if(!(e.required??e.hasAttribute("required")))return t;return!e[o]&&(t.message="function"==typeof i.message?i.message(e):i.message||"",t.isValid=!1,t.invalidKeys.push("valueMissing")),t}};return i}},15477(e,t,o){o.d(t,{A:()=>i});var i=o(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(e,t,o){o.d(t,{P:()=>a});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var i=o(37540),r=o(42017);class a{handleChanges(e){this.value=this.callback?.(e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}target(e){return n(this,e)}constructor(e,{target:t,config:o,callback:i,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(t??e),this.l=o,this.o=r??this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver(e=>{this.handleChanges(e),this.h.requestUpdate()}),e.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const n=(0,r.u$)(class extends i.Kq{render(e,t){}update(e,[t,o]){this.controller=t,this.part=e,this.observe=o,!1===o?(t.unobserve(e.element),this.observing=!1):!1===this.observing&&(t.observe(e.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}})},99731(e,t,o){o.d(t,{Y:()=>c});var i=o(62826),r=o(22441),a=(o(18111),o(22489),o(20116),o(5124)),n=o(99591);class s extends a.WF{get chips(){return this.childElements.filter(e=>e instanceof n.v)}render(){return a.qy`<slot @slotchange="${this.updateTabIndices}"></slot>`}handleKeyDown(e){const t="ArrowLeft"===e.key,o="ArrowRight"===e.key,i="Home"===e.key,r="End"===e.key;if(!(t||o||i||r))return;const{chips:a}=this;if(a.length<2)return;if(e.preventDefault(),i||r){return a[i?0:a.length-1].focus({trailing:r}),void this.updateTabIndices()}const n="rtl"===getComputedStyle(this).direction?t:o,s=a.find(e=>e.matches(":focus-within"));if(!s){return(n?a[0]:a[a.length-1]).focus({trailing:!n}),void this.updateTabIndices()}const l=a.indexOf(s);let c=n?l+1:l-1;for(;c!==l;){c>=a.length?c=0:c<0&&(c=a.length-1);const e=a[c];if(!e.disabled||e.alwaysFocusable){e.focus({trailing:!n}),this.updateTabIndices();break}n?c++:c--}}updateTabIndices(){const{chips:e}=this;let t;for(const o of e){const e=o.alwaysFocusable||!o.disabled;o.matches(":focus-within")&&e?t=o:(e&&!t&&(t=o),o.tabIndex=-1)}t&&(t.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),a.S$||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}}(0,i.Cg)([(0,r.KN)()],s.prototype,"childElements",void 0);const l=a.AH`:host{display:flex;flex-wrap:wrap;gap:8px}`;let c=class extends s{};c.styles=[l],c=(0,i.Cg)([(0,r.EM)("md-chip-set")],c)},41216(e,t,o){o.d(t,{R:()=>l});var i=o(62826),r=o(5124),a=o(22441),n=o(64918),s=o(84842);class l extends n.M{get primaryId(){return this.href?"link":this.removeOnly?"":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}get primaryAction(){return this.removeOnly?null:this.renderRoot.querySelector(".primary.action")}getContainerClasses(){return{...super.getContainerClasses(),avatar:this.avatar,disabled:!this.href&&(this.disabled||this.softDisabled),link:!!this.href,selected:this.selected,"has-trailing":!0}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?r.qy` <a class="primary action" id="link" aria-label="${t||r.s6}" href="${this.href}" target="${this.target||r.s6}">${e}</a> `:this.removeOnly?r.qy` <span class="primary action" aria-label="${t||r.s6}"> ${e} </span> `:r.qy` <button class="primary action" id="button" aria-label="${t||r.s6}" aria-disabled="${this.softDisabled||r.s6}" ?disabled="${this.disabled&&!this.alwaysFocusable}" type="button">${e}</button> `}renderTrailingAction(e){return(0,s.h)({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&(this.disabled||this.softDisabled),tabbable:this.removeOnly})}constructor(){super(...arguments),this.avatar=!1,this.href="",this.target="",this.removeOnly=!1,this.selected=!1}}(0,i.Cg)([(0,a.MZ)({type:Boolean})],l.prototype,"avatar",void 0),(0,i.Cg)([(0,a.MZ)()],l.prototype,"href",void 0),(0,i.Cg)([(0,a.MZ)()],l.prototype,"target",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,attribute:"remove-only"})],l.prototype,"removeOnly",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],l.prototype,"selected",void 0),(0,i.Cg)([(0,a.P)(".trailing.action")],l.prototype,"trailingAction",void 0)},78960(e,t,o){o.d(t,{R:()=>i});const i=o(5124).AH`:host{--_container-height:var(--md-input-chip-container-height, 32px);--_disabled-label-text-color:var(--md-input-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-input-chip-disabled-label-text-opacity, 0.38);--_disabled-selected-container-color:var(--md-input-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity:var(--md-input-chip-disabled-selected-container-opacity, 0.12);--_label-text-font:var(--md-input-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-input-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size:var(--md-input-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight:var(--md-input-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-container-color:var(--md-input-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-label-text-color:var(--md-input-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color:var(--md-input-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color:var(--md-input-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity:var(--md-input-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color:var(--md-input-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-outline-width:var(--md-input-chip-selected-outline-width, 0px);--_selected-pressed-label-text-color:var(--md-input-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color:var(--md-input-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-opacity:var(--md-input-chip-selected-pressed-state-layer-opacity, 0.12);--_disabled-outline-color:var(--md-input-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity:var(--md-input-chip-disabled-outline-opacity, 0.12);--_focus-label-text-color:var(--md-input-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color:var(--md-input-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color:var(--md-input-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color:var(--md-input-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity:var(--md-input-chip-hover-state-layer-opacity, 0.08);--_label-text-color:var(--md-input-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color:var(--md-input-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width:var(--md-input-chip-outline-width, 1px);--_pressed-label-text-color:var(--md-input-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color:var(--md-input-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity:var(--md-input-chip-pressed-state-layer-opacity, 0.12);--_avatar-shape:var(--md-input-chip-avatar-shape, var(--md-sys-shape-corner-full, 9999px));--_avatar-size:var(--md-input-chip-avatar-size, 24px);--_disabled-avatar-opacity:var(--md-input-chip-disabled-avatar-opacity, 0.38);--_disabled-leading-icon-color:var(--md-input-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-input-chip-disabled-leading-icon-opacity, 0.38);--_icon-size:var(--md-input-chip-icon-size, 18px);--_selected-focus-leading-icon-color:var(--md-input-chip-selected-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-leading-icon-color:var(--md-input-chip-selected-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-leading-icon-color:var(--md-input-chip-selected-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-leading-icon-color:var(--md-input-chip-selected-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color:var(--md-input-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color:var(--md-input-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color:var(--md-input-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color:var(--md-input-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color:var(--md-input-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity:var(--md-input-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color:var(--md-input-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color:var(--md-input-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color:var(--md-input-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color:var(--md-input-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color:var(--md-input-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color:var(--md-input-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color:var(--md-input-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color:var(--md-input-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start:var(--md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end:var(--md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end:var(--md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start:var(--md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space:var(--md-input-chip-leading-space, 16px);--_trailing-space:var(--md-input-chip-trailing-space, 16px);--_icon-label-space:var(--md-input-chip-icon-label-space, 8px);--_with-leading-icon-leading-space:var(--md-input-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space:var(--md-input-chip-with-trailing-icon-trailing-space, 8px)}:host([avatar]){--_container-shape-start-start:var( --md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-start-end:var( --md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-end:var( --md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-start:var( --md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) )}.avatar .primary.action{padding-inline-start:4px}.avatar .leading.icon ::slotted(:first-child){border-radius:var(--_avatar-shape);height:var(--_avatar-size);width:var(--_avatar-size)}.disabled.avatar .leading.icon{opacity:var(--_disabled-avatar-opacity)}@media(forced-colors:active){.link .outline{border-color:ActiveText}.disabled.avatar .leading.icon{opacity:1}}`},27525(e,t,o){function i(e,t=u){const o=s(e,t);return o&&(o.tabIndex=0,o.focus()),o}function r(e,t=u){const o=l(e,t);return o&&(o.tabIndex=0,o.focus()),o}function a(e,t=u){const o=n(e,t);return o&&(o.item.tabIndex=-1),o}function n(e,t=u){for(let o=0;o<e.length;o++){const i=e[o];if(0===i.tabIndex&&t(i))return{item:i,index:o}}return null}function s(e,t=u){for(const o of e)if(t(o))return o;return null}function l(e,t=u){for(let o=e.length-1;o>=0;o--){const i=e[o];if(t(i))return i}return null}function c(e,t,o=u,r=!0){if(t){const i=function(e,t,o=u,i=!0){for(let r=1;r<e.length;r++){const a=(r+t)%e.length;if(a<t&&!i)return null;const n=e[a];if(o(n))return n}return e[t]?e[t]:null}(e,t.index,o,r);return i&&(i.tabIndex=0,i.focus()),i}return i(e,o)}function d(e,t,o=u,i=!0){if(t){const r=function(e,t,o=u,i=!0){for(let r=1;r<e.length;r++){const a=(t-r+e.length)%e.length;if(a>t&&!i)return null;const n=e[a];if(o(n))return n}return e[t]?e[t]:null}(e,t.index,o,i);return r&&(r.tabIndex=0,r.focus()),r}return r(e,o)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function p(){return new Event("request-activation",{bubbles:!0,composed:!0})}function u(e){return!e.disabled}o.d(t,{A6:()=>n,Ex:()=>l,RN:()=>h,RZ:()=>r,c7:()=>s,cG:()=>p,u9:()=>d,ub:()=>a,wm:()=>c,zT:()=>i})},95192(e,t,o){o.d(t,{IU:()=>c,Jt:()=>s,Yd:()=>i,hZ:()=>l,y$:()=>r});o(44114),o(18111),o(7588),o(61701);function i(e){return new Promise((t,o)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>o(e.error)})}function r(e,t){let o;return(r,a)=>(()=>{if(o)return o;const r=indexedDB.open(e);return r.onupgradeneeded=()=>r.result.createObjectStore(t),o=i(r),o.then(e=>{e.onclose=()=>o=void 0},()=>{}),o})().then(e=>a(e.transaction(t,r).objectStore(t)))}let a;function n(){return a||(a=r("keyval-store","keyval")),a}function s(e,t=n()){return t("readonly",t=>i(t.get(e)))}function l(e,t,o=n()){return o("readwrite",o=>(o.put(t,e),i(o.transaction)))}function c(e=n()){return e("readwrite",e=>(e.clear(),i(e.transaction)))}},37540(e,t,o){o.d(t,{Kq:()=>h});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var i=o(63937),r=o(42017);const a=(e,t)=>{const o=e._$AN;if(void 0===o)return!1;for(const e of o)e._$AO?.(t,!1),a(e,t);return!0},n=e=>{let t,o;do{if(void 0===(t=e._$AM))break;o=t._$AN,o.delete(e),e=t}while(0===o?.size)},s=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(void 0===o)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),d(t)}};function l(e){void 0!==this._$AN?(n(this),this._$AM=e,s(this)):this._$AM=e}function c(e,t=!1,o=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(i))for(let e=o;e<i.length;e++)a(i[e],!1),n(i[e]);else null!=i&&(a(i,!1),n(i));else a(this,e)}const d=e=>{e.type==r.OA.CHILD&&(e._$AP??=c,e._$AQ??=l)};class h extends r.WL{_$AT(e,t,o){super._$AT(e,t,o),s(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(a(this,e),n(this))}setValue(e){if((0,i.Rt)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}},34514(e,t,o){o.d(t,{V:()=>n});var i=o(5055),r=o(42017),a=o(63937);const n=(0,r.u$)(class extends r.WL{render(e){return e}update(e,[t]){if(t===i.c0||t===i.s6)return t;const o=e.element,n=e.name;if(e.type===r.OA.PROPERTY){if(t===o[n])return i.c0}else if(e.type===r.OA.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(n))return i.c0}else if(e.type===r.OA.ATTRIBUTE&&o.getAttribute(n)===t+"")return i.c0;return(0,a.mY)(e),t}constructor(e){if(super(e),e.type!==r.OA.PROPERTY&&e.type!==r.OA.ATTRIBUTE&&e.type!==r.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,a.Rt)(e))throw Error("`live` bindings can only contain a single expression")}})},75751(e,t,o){o.d(t,{u:()=>s});o(45367),o(92731);var i=o(5055),r=o(42017),a=o(63937);const n=(e,t,o)=>{const i=new Map;for(let r=t;r<=o;r++)i.set(e[r],r);return i},s=(0,r.u$)(class extends r.WL{dt(e,t,o){let i;void 0===o?o=t:void 0!==t&&(i=t);const r=[],a=[];let n=0;for(const t of e)r[n]=i?i(t,n):n,a[n]=o(t,n),n++;return{values:a,keys:r}}render(e,t,o){return this.dt(e,t,o).values}update(e,[t,o,r]){const s=(0,a.cN)(e),{values:l,keys:c}=this.dt(t,o,r);if(!Array.isArray(s))return this.ut=c,l;const d=this.ut??=[],h=[];let p,u,f=0,m=s.length-1,v=0,b=l.length-1;for(;f<=m&&v<=b;)if(null===s[f])f++;else if(null===s[m])m--;else if(d[f]===c[v])h[v]=(0,a.lx)(s[f],l[v]),f++,v++;else if(d[m]===c[b])h[b]=(0,a.lx)(s[m],l[b]),m--,b--;else if(d[f]===c[b])h[b]=(0,a.lx)(s[f],l[b]),(0,a.Dx)(e,h[b+1],s[f]),f++,b--;else if(d[m]===c[v])h[v]=(0,a.lx)(s[m],l[v]),(0,a.Dx)(e,s[f],s[m]),m--,v++;else if(void 0===p&&(p=n(c,v,b),u=n(d,f,m)),p.has(d[f]))if(p.has(d[m])){const t=u.get(c[v]),o=void 0!==t?s[t]:null;if(null===o){const t=(0,a.Dx)(e,s[f]);(0,a.lx)(t,l[v]),h[v]=t}else h[v]=(0,a.lx)(o,l[v]),(0,a.Dx)(e,s[f],o),s[t]=null;v++}else(0,a.KO)(s[m]),m--;else(0,a.KO)(s[f]),f++;for(;v<=b;){const t=(0,a.Dx)(e,h[b+1]);(0,a.lx)(t,l[v]),h[v++]=t}for(;f<=m;){const e=s[f++];null!==e&&(0,a.KO)(e)}return this.ut=c,(0,a.mY)(e,h),i.c0}constructor(e){if(super(e),e.type!==r.OA.CHILD)throw Error("repeat() can only be used in text expressions")}})},89784(e,t,o){o.d(t,{W:()=>s});o(74423),o(18111),o(18237),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var i=o(5055),r=o(42017);const a="important",n=" !"+a,s=(0,r.u$)(class extends r.WL{render(e){return Object.keys(e).reduce((t,o)=>{const i=e[o];return null==i?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:o}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?o.removeProperty(e):o[e]=null);for(const e in t){const i=t[e];if(null!=i){this.ft.add(e);const t="string"==typeof i&&i.endsWith(n);e.includes("-")||t?o.setProperty(e,t?i.slice(0,-11):i,t?a:""):o[e]=i}}return i.c0}constructor(e){if(super(e),e.type!==r.OA.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})},91335(e,t,o){o.d(t,{Tc:()=>d});o(74423),o(44114),o(18111),o(20116),o(61701),o(45367),o(92731);let i=["Shift","Meta","Alt","Control"],r="object"==typeof navigator?navigator.platform:"",a=/Mac|iPod|iPhone|iPad/.test(r)?"Meta":"Control",n="Win32"===r?["Control","Alt"]:["Alt"];function s(e){let t=e.target;return e.repeat||e.isComposing||t!==e.currentTarget&&t.matches("[contenteditable],input,select,textarea")}function l(e,t){return"function"==typeof e.getModifierState&&(e.getModifierState(t)||n.includes(t)&&e.getModifierState("AltGraph"))}function c(e,[t,o,r]){const a=t.includes("AltGraph");return!((r instanceof RegExp?!r.test(e.key)&&!r.test(e.code):r.toUpperCase()!==e.key.toUpperCase()&&r!==e.code)||t.find(t=>!l(e,t))||i.find(i=>!t.includes(i)&&!o.includes(i)&&r!==i&&l(e,i)&&!(a&&n.includes(i))))}function d(e,t,o={}){let i=o.event??"keydown",r=function(e,t={}){let o=t.timeout??1e3,i=t.ignore??s,r=Object.keys(e).map(t=>{return[t,(o=t,o.trim().split(" ").map(e=>{let t=function(e){let t=[],o=0;for(let i=0;i<e.length;i++)"+"===e[i]&&/[\w\]]/.test(e[i-1]||"")&&(t.push(e.slice(o,i)),o=i+1);return t.push(e.slice(o)),t}(e),o=t.pop(),i=o.match(/^\((.+)\)$/),r=i?new RegExp(`^(?:${i[1]})$`,"i"):o,n=[],s=[];for(const e of t){let t=e.match(/^\[(.*)\]$/),o=t?.[1]??e;o="$mod"===o?a:o,t?s.push(o):n.push(o)}return[n,s,r]})),e[t]];var o}),n=new Map,d=null;return e=>{if(!function(e){return!!(e.key&&e.code&&e.getModifierState)}(e)||i(e))return;let t=[];for(let[o,i,a]of r){let r=n.get(o),[s,...d]=r||i;if(c(e,s))if(d.length>0)n.set(o,d),t.push(o);else{if(n.delete(o),!t.length){a(e);break}console.warn(`tinykeys: Conflict found, "${o}" did not fire, waiting for:`,t)}else l(e,e.key)||n.delete(o)}d&&clearTimeout(d),d=setTimeout(()=>n.clear(),o)}}(t,o);return e.addEventListener(i,r,o.capture),()=>{e.removeEventListener(i,r,o.capture)}}}};