iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
17 lines • 45.5 kB
JavaScript
/*! For license information please see 81798.250baed08e21896d.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[81798],{7658:function(t,e,i){i.d(e,{I:function(){return r}});var r=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:function(t,e,i){i.d(e,{O:function(){return o},i:function(){return n.is}});var r=i(5124),n=i(12130);class o extends r.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:function(t,e,i){i.d(e,{ZS:function(){return c},is:function(){return s.i}});i(62953);var r,n,o=i(40445),a=i(67576),s=i(12451);const l=null!==(n=null===(r=window.ShadyDOM)||void 0===r?void 0:r.inUse)&&void 0!==n&&n;class c extends s.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,o.Cg)([(0,a.MZ)({type:Boolean})],c.prototype,"disabled",void 0)},56161:function(t,e,i){i.d(e,{P:function(){return r}});i(18111),i(7588),i(45367),i(92731),i(62953);const r=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:function(t,e,i){i.d(e,{SE:function(){return c},U9:function(){return l},hP:function(){return r},is:function(){return n}});i(44114);const r=t=>t.nodeType===Node.ELEMENT_NODE;function n(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let o=!1;const a=()=>{},s={get passive(){return o=!0,!1}};document.addEventListener("x",a,s),document.removeEventListener("x",a);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],r=new Event("check-if-focused",{bubbles:!0,composed:!0});let n=[];const o=t=>{n=t.composedPath()};return document.body.addEventListener("check-if-focused",o),i.dispatchEvent(r),document.body.removeEventListener("check-if-focused",o),-1!==n.indexOf(t)}},68462:function(t,e,i){i.d(e,{M:function(){return v}});i(3362),i(62953);var r=i(40445),n=i(7658),o={ROOT:"mdc-form-field"},a={LABEL_SELECTOR:".mdc-form-field > label"},s=function(t){function e(i){var n=t.call(this,(0,r.Cl)((0,r.Cl)({},e.defaultAdapter),i))||this;return n.click=function(){n.handleClick()},n}return(0,r.C6)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return a},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}(n.I),l=i(12451),c=i(51324),d=i(56161),h=i(5124),u=i(67576),p=i(6412);let f,m=t=>t;class v 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(0,h.qy)(f||(f=m` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" ="${0}">${0}</label> </div>`),(0,p.H)(t),this._labelClick,this.label)}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=s}}(0,r.Cg)([(0,u.MZ)({type:Boolean})],v.prototype,"alignEnd",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean})],v.prototype,"spaceBetween",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean})],v.prototype,"nowrap",void 0),(0,r.Cg)([(0,u.MZ)({type:String}),(0,d.P)(async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)})],v.prototype,"label",void 0),(0,r.Cg)([(0,u.P)(".mdc-form-field")],v.prototype,"mdcRoot",void 0),(0,r.Cg)([(0,u.KN)({slot:"",flatten:!0,selector:"*"})],v.prototype,"slottedInputs",void 0),(0,r.Cg)([(0,u.P)("label")],v.prototype,"labelEl",void 0)},38627:function(t,e,i){i.d(e,{R:function(){return n}});let r;const n=(0,i(5124).AH)(r||(r=(t=>t)`.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}`))},77957:function(t,e,i){var r=i(76080),n=i(79504),o=i(47055),a=i(48981),s=i(56969),l=i(26198),c=i(2360),d=i(35370),h=Array,u=n([].push);t.exports=function(t,e,i,n){for(var p,f,m,v=a(t),g=o(v),b=r(e,i),y=c(null),w=l(g),x=0;w>x;x++)m=g[x],(f=s(b(m,x,v)))in y?u(y[f],m):y[f]=[m];if(n&&(p=n(v))!==h)for(f in y)y[f]=d(p,y[f]);return y}},48646:function(t,e,i){var r=i(69565),n=i(28551),o=i(1767),a=i(50851);t.exports=function(t,e){e&&"string"==typeof t||n(t);var i=a(t);return o(n(void 0!==i?r(i,t):t))}},78350:function(t,e,i){var r=i(46518),n=i(70259),o=i(79306),a=i(48981),s=i(26198),l=i(1469);r({target:"Array",proto:!0},{flatMap:function(t){var e,i=a(this),r=s(i);return o(t),e=l(i,0),n(e,i,i,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},30237:function(t,e,i){i(6469)("flatMap")},30531:function(t,e,i){var r=i(46518),n=i(69565),o=i(79306),a=i(28551),s=i(1767),l=i(48646),c=i(19462),d=i(9539),h=i(96395),u=i(30684),p=i(84549);var f=!h&&!u("flatMap",function(){}),m=!h&&!f&&p("flatMap",TypeError),v=h||f||m||function(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(t){return t});t.next(),t.return()}catch(e){return!0}}(),g=c(function(){for(var t,e,i=this.iterator,r=this.mapper;;){if(e=this.inner)try{if(!(t=a(n(e.next,e.iterator))).done)return t.value;this.inner=null}catch(o){d(i,"throw",o)}if(t=a(n(this.next,i)),this.done=!!t.done)return;try{this.inner=l(r(t.value,this.counter++),!1)}catch(o){d(i,"throw",o)}}});r({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(t){a(this);try{o(t)}catch(e){d(this,"throw",e)}return m?n(m,this,t):new g(s(this),{mapper:t,inner:null})}})},69479:function(t,e,i){var r=i(43724),n=i(62106),o=i(65213),a=i(67979);r&&!o.correct&&(n(RegExp.prototype,"flags",{configurable:!0,get:a}),o.correct=!0)},46058:function(t,e,i){var r=i(46518),n=i(77957),o=i(6469);r({target:"Array",proto:!0},{group:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),o("group")},13611:function(t,e,i){var r=i(46518),n=i(44576),o=i(62106),a=i(43724),s=TypeError,l=Object.defineProperty,c=n.self!==n;try{if(a){var d=Object.getOwnPropertyDescriptor(n,"self");!c&&d&&d.get&&d.enumerable||o(n,"self",{get:function(){return n},set:function(t){if(this!==n)throw new s("Illegal invocation");l(n,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:n})}catch(h){}},68825:function(t,e,i){i(62953);var r=i(67576),n=i(9395),o=i(717);let a;var s=(0,i(5124).AH)(a||(a=(t=>t)`: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}`)),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=(t,e,i,r)=>{for(var n,o=r>1?void 0:r?c(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r?n(e,i,o):n(o))||o);return r&&o&&l(e,i,o),o};let h=class extends o.A{connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.orientation)}constructor(){super(...arguments),this.orientation="horizontal"}};h.css=s,d([(0,r.MZ)({reflect:!0})],h.prototype,"orientation",2),d([(0,n.w)("orientation")],h.prototype,"handleVerticalChange",1),h=d([(0,r.EM)("wa-divider")],h)},29344:function(t,e,i){i.a(t,async function(t,r){try{i.d(e,{A:function(){return R}});i(27495),i(62953);var n=i(5124),o=i(67576),a=i(6412),s=i(63672),l=i(34514),c=i(40991),d=i(92070),h=i(41268),u=i(9395),p=i(62676),f=i(15477),m=i(31896),v=i(17060),g=i(19978),b=t([v]);v=(b.then?(await b)():b)[0];let k,C,E,_=t=>t;var y=Object.defineProperty,w=Object.getOwnPropertyDescriptor,x=(t,e,i,r)=>{for(var n,o=r>1?void 0:r?w(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r?n(e,i,o):n(o))||o);return r&&o&&y(e,i,o),o};let R=class extends p.q{static get validators(){return[...super.validators,(0,h.i)()]}get value(){var t;return null!==(t=this._value)&&void 0!==t?t:"on"}set value(t){this._value=t}handleSizeChange(){(0,c.b)(this.localName,this.size)}get checked(){var t;return this.valueHasChanged?Boolean(this._checked):null!==(t=this._checked)&&void 0!==t?t: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(null!=t?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(0,n.qy)(k||(k=_` <label part="base" class="${0}"> <input class="input" type="checkbox" title="${0}" name="${0}" value="${0}" .checked="${0}" .disabled="${0}" .required="${0}" role="switch" aria-checked="${0}" aria-describedby="hint" ="${0}" ="${0}"> <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}" aria-hidden="${0}">${0}</slot> `),(0,a.H)({checked:this.checked,disabled:this.disabled}),this.title,(0,s.J)(this.name),(0,s.J)(this.value),(0,l.V)(this.checked),this.disabled,this.required,this.checked?"true":"false",this.handleClick,this.handleKeyDown,(0,a.H)({"has-slotted":e}),e?"false":"true",this.hint)}constructor(){var t;super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.localize=new v.c(this),this.title="",this.name=null,this._value=null!==(t=this.getAttribute("value"))&&void 0!==t?t:null,this.size="m",this.disabled=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint="",this.withHint=!1}};R.shadowRootOptions=Object.assign(Object.assign({},p.q.shadowRootOptions),{},{delegatesFocus:!0}),R.css=[f.A,m.A,g.A],x([(0,o.P)('input[type="checkbox"]')],R.prototype,"input",2),x([(0,o.MZ)()],R.prototype,"title",2),x([(0,o.MZ)({reflect:!0})],R.prototype,"name",2),x([(0,o.MZ)({reflect:!0})],R.prototype,"value",1),x([(0,o.MZ)({reflect:!0})],R.prototype,"size",2),x([(0,u.w)("size")],R.prototype,"handleSizeChange",1),x([(0,o.MZ)({type:Boolean})],R.prototype,"disabled",2),x([(0,o.MZ)({type:Boolean,attribute:!1})],R.prototype,"checked",1),x([(0,o.MZ)({type:Boolean,attribute:"checked",reflect:!0})],R.prototype,"defaultChecked",2),x([(0,o.MZ)({type:Boolean,reflect:!0})],R.prototype,"required",2),x([(0,o.MZ)({attribute:"hint"})],R.prototype,"hint",2),x([(0,o.MZ)({attribute:"with-hint",type:Boolean})],R.prototype,"withHint",2),x([(0,u.w)(["checked","defaultChecked"])],R.prototype,"handleStateChange",1),x([(0,u.w)("disabled",{waitUntilFirstUpdate:!0})],R.prototype,"handleDisabledChange",1),R=x([(0,o.EM)("wa-switch")],R),null===(C=(E=R).disableWarning)||void 0===C||C.call(E,"change-in-update"),r()}catch(k){r(k)}})},19978:function(t,e,i){i.d(e,{A:function(){return n}});let r;var n=(0,i(5124).AH)(r||(r=(t=>t)`: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)} (forced-colors:active){:checked+.switch .thumb,:checked:enabled+.switch:hover .thumb{background-color:ButtonText}}`))},35463:function(t,e,i){i.d(e,{Q:function(){return r}});i(3362),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953);class r{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){const t=this.u.takeRecords();t.length&&this.handleChanges(t)}observe(t){this.t.add(t),this.u.observe(t),this.i=!0}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}constructor(t,{target:e,config:i,callback:r,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.o=null!=n?n:this.o,this.callback=r,window.IntersectionObserver?(this.u=new IntersectionObserver(t=>{const e=this.i;this.i=!1,this.o&&e||(this.handleChanges(t),this.h.requestUpdate())},i),t.addController(this)):console.warn("IntersectionController error: browser does not support IntersectionObserver.")}}},99731:function(t,e,i){i.d(e,{Y:function(){return u}});var r=i(40445),n=i(67576),o=(i(93775),i(18111),i(22489),i(20116),i(62953),i(5124)),a=i(99591);let s,l=t=>t;class c extends o.WF{get chips(){return this.childElements.filter(t=>t instanceof a.v)}render(){return(0,o.qy)(s||(s=l`<slot ="${0}"></slot>`),this.updateTabIndices)}handleKeyDown(t){const e="ArrowLeft"===t.key,i="ArrowRight"===t.key,r="Home"===t.key,n="End"===t.key;if(!(e||i||r||n))return;const{chips:o}=this;if(o.length<2)return;if(t.preventDefault(),r||n){return o[r?0:o.length-1].focus({trailing:n}),void this.updateTabIndices()}const a="rtl"===getComputedStyle(this).direction?e:i,s=o.find(t=>t.matches(":focus-within"));if(!s){return(a?o[0]:o[o.length-1]).focus({trailing:!a}),void this.updateTabIndices()}const l=o.indexOf(s);let c=a?l+1:l-1;for(;c!==l;){c>=o.length?c=0:c<0&&(c=o.length-1);const t=o[c];if(!t.disabled||t.alwaysFocusable){t.focus({trailing:!a}),this.updateTabIndices();break}a?c++:c--}}updateTabIndices(){const{chips:t}=this;let e;for(const i of t){const t=i.alwaysFocusable||!i.disabled;i.matches(":focus-within")&&t?e=i:(t&&!e&&(e=i),i.tabIndex=-1)}e&&(e.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),o.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,r.Cg)([(0,n.KN)()],c.prototype,"childElements",void 0);let d;const h=(0,o.AH)(d||(d=(t=>t)`:host{display:flex;flex-wrap:wrap;gap:8px}`));let u=class extends c{};u.styles=[h],u=(0,r.Cg)([(0,n.EM)("md-chip-set")],u)},96229:function(t,e,i){i.d(e,{k:function(){return h}});i(62953);var r=i(40445),n=(i(73535),i(5124)),o=i(67576),a=i(99591);let s,l,c,d=t=>t;class h extends a.v{get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}getContainerClasses(){return Object.assign(Object.assign({},super.getContainerClasses()),{},{disabled:!this.href&&(this.disabled||this.softDisabled),elevated:this.elevated,link:!!this.href})}renderPrimaryAction(t){const{ariaLabel:e}=this;return this.href?(0,n.qy)(s||(s=d` <a class="primary action" id="link" aria-label="${0}" href="${0}" download="${0}" target="${0}">${0}</a> `),e||n.s6,this.href,this.download||n.s6,this.target||n.s6,t):(0,n.qy)(l||(l=d` <button class="primary action" id="button" aria-label="${0}" aria-disabled="${0}" ?disabled="${0}" type="button">${0}</button> `),e||n.s6,this.softDisabled||n.s6,this.disabled&&!this.alwaysFocusable,t)}renderOutline(){return this.elevated?(0,n.qy)(c||(c=d`<md-elevation part="elevation"></md-elevation>`)):super.renderOutline()}constructor(){super(...arguments),this.elevated=!1,this.href="",this.download="",this.target=""}}(0,r.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"elevated",void 0),(0,r.Cg)([(0,o.MZ)()],h.prototype,"href",void 0),(0,r.Cg)([(0,o.MZ)()],h.prototype,"download",void 0),(0,r.Cg)([(0,o.MZ)()],h.prototype,"target",void 0)},26069:function(t,e,i){i.d(e,{R:function(){return n}});let r;const n=(0,i(5124).AH)(r||(r=(t=>t)`: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)}{.link .outline{border-color:ActiveText}}`))},27525:function(t,e,i){i.d(e,{A6:function(){return a},Ex:function(){return l},RN:function(){return h},RZ:function(){return n},c7:function(){return s},cG:function(){return u},u9:function(){return d},ub:function(){return o},wm:function(){return c},zT:function(){return r}});i(62953);function r(t,e=p){const i=s(t,e);return i&&(i.tabIndex=0,i.focus()),i}function n(t,e=p){const i=l(t,e);return i&&(i.tabIndex=0,i.focus()),i}function o(t,e=p){const i=a(t,e);return i&&(i.item.tabIndex=-1),i}function a(t,e=p){for(let i=0;i<t.length;i++){const r=t[i];if(0===r.tabIndex&&e(r))return{item:r,index:i}}return null}function s(t,e=p){for(const i of t)if(e(i))return i;return null}function l(t,e=p){for(let i=t.length-1;i>=0;i--){const r=t[i];if(e(r))return r}return null}function c(t,e,i=p,n=!0){if(e){const r=function(t,e,i=p,r=!0){for(let n=1;n<t.length;n++){const o=(n+e)%t.length;if(o<e&&!r)return null;const a=t[o];if(i(a))return a}return t[e]?t[e]:null}(t,e.index,i,n);return r&&(r.tabIndex=0,r.focus()),r}return r(t,i)}function d(t,e,i=p,r=!0){if(e){const n=function(t,e,i=p,r=!0){for(let n=1;n<t.length;n++){const o=(e-n+t.length)%t.length;if(o>e&&!r)return null;const a=t[o];if(i(a))return a}return t[e]?t[e]:null}(t,e.index,i,r);return n&&(n.tabIndex=0,n.focus()),n}return n(t,i)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function u(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(t){return!t.disabled}},82553:function(t,e,i){i.d(e,{R:function(){return n}});let r;const n=(0,i(5124).AH)(r||(r=(t=>t)`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}{.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`))},58168:function(t,e,i){i.d(e,{n:function(){return O}});i(62953);var r=i(40445),n=(i(75275),i(67576)),o=(i(27495),i(5124));let a,s=t=>t;class l extends o.WF{render(){return(0,o.qy)(a||(a=s` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" ="${0}"></slot> <slot class="default-slot" ="${0}"></slot> <slot name="headline" ="${0}"></slot> <slot name="supporting-text" ="${0}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `),this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange)}handleTextSlotChange(){let t=!1,e=0;for(const i of this.textSlots)if(c(i)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function c(t){for(const i of t.assignedNodes({flatten:!0})){var e;const t=i.nodeType===Node.ELEMENT_NODE,r=i.nodeType===Node.TEXT_NODE&&(null===(e=i.textContent)||void 0===e?void 0:e.match(/\S/));if(t||r)return!0}return!1}(0,r.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],l.prototype,"multiline",void 0),(0,r.Cg)([(0,n.YG)(".text slot")],l.prototype,"textSlots",void 0);let d;const h=(0,o.AH)(d||(d=(t=>t)`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`));let u=class extends l{};u.styles=[h],u=(0,r.Cg)([(0,n.EM)("md-item")],u);i(71970);var p=i(6412),f=i(7872),m=i(1024),v=i(27525);let g,b,y,w,x,k,C,E,_=t=>t;const R=(0,m.n)(o.WF);class O extends R{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem((0,o.qy)(g||(g=_` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=(0,f.eu)(b||(b=_`a`));break;case"button":i=(0,f.eu)(y||(y=_`button`));break;default:i=(0,f.eu)(w||(w=_`li`))}const r="text"!==this.type,n=e&&this.target?this.target:o.s6;return(0,f.qy)(x||(x=_`
<${0}
id="item"
tabindex="${0}"
?disabled=${0}
role="listitem"
aria-selected=${0}
aria-checked=${0}
aria-expanded=${0}
aria-haspopup=${0}
class="list-item ${0}"
href=${0}
target=${0}
=${0}
>${0}</${0}>
`),i,this.isDisabled||!r?-1:0,this.isDisabled,this.ariaSelected||o.s6,this.ariaChecked||o.s6,this.ariaExpanded||o.s6,this.ariaHasPopup||o.s6,(0,p.H)(this.getRenderClasses()),this.href||o.s6,n,this.onFocus,t,i)}renderRipple(){return"text"===this.type?o.s6:(0,o.qy)(k||(k=_` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?o.s6:(0,o.qy)(C||(C=_` <md-focus-ring -changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,o.qy)(E||(E=_` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,v.cG)())}focus(){var t;null===(t=this.listItemRoot)||void 0===t||t.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}O.shadowRootOptions=Object.assign(Object.assign({},o.WF.shadowRootOptions),{},{delegatesFocus:!0}),(0,r.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],O.prototype,"disabled",void 0),(0,r.Cg)([(0,n.MZ)({reflect:!0})],O.prototype,"type",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],O.prototype,"isListItem",void 0),(0,r.Cg)([(0,n.MZ)()],O.prototype,"href",void 0),(0,r.Cg)([(0,n.MZ)()],O.prototype,"target",void 0),(0,r.Cg)([(0,n.P)(".list-item")],O.prototype,"listItemRoot",void 0)},2209:function(t,e,i){i.d(e,{LV:function(){return u}});i(89463),i(16280),i(72712),i(55081),i(18111),i(61701),i(18237),i(45367),i(92731),i(3362),i(84864),i(57465),i(27495),i(88454),i(29452),i(62953);const r=Symbol("Comlink.proxy"),n=Symbol("Comlink.endpoint"),o=Symbol("Comlink.releaseProxy"),a=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),l=t=>"object"==typeof t&&null!==t||"function"==typeof t,c=new Map([["proxy",{canHandle:t=>l(t)&&t[r],serialize(t){const{port1:e,port2:i}=new MessageChannel;return d(t,e),[i,[i]]},deserialize(t){return t.start(),u(t)}}],["throw",{canHandle:t=>l(t)&&s in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function d(t,e=globalThis,i=["*"]){e.addEventListener("message",function n(o){if(!o||!o.data)return;if(!function(t,e){for(const i of t){if(e===i||"*"===i)return!0;if(i instanceof RegExp&&i.test(e))return!0}return!1}(i,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`);const{id:l,type:c,path:u}=Object.assign({path:[]},o.data),p=(o.data.argumentList||[]).map(x);let f;try{const e=u.slice(0,-1).reduce((t,e)=>t[e],t),i=u.reduce((t,e)=>t[e],t);switch(c){case"GET":f=i;break;case"SET":e[u.slice(-1)[0]]=x(o.data.value),f=!0;break;case"APPLY":f=i.apply(e,p);break;case"CONSTRUCT":f=function(t){return Object.assign(t,{[r]:!0})}(new i(...p));break;case"ENDPOINT":{const{port1:e,port2:i}=new MessageChannel;d(t,i),f=function(t,e){return y.set(t,e),t}(e,[e])}break;case"RELEASE":f=void 0;break;default:return}}catch(m){f={value:m,[s]:0}}Promise.resolve(f).catch(t=>({value:t,[s]:0})).then(i=>{const[r,o]=w(i);e.postMessage(Object.assign(Object.assign({},r),{id:l}),o),"RELEASE"===c&&(e.removeEventListener("message",n),h(e),a in t&&"function"==typeof t[a]&&t[a]())}).catch(t=>{const[i,r]=w({value:new TypeError("Unserializable return value"),[s]:0});e.postMessage(Object.assign(Object.assign({},i),{id:l}),r)})}),e.start&&e.start()}function h(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function u(t,e){const i=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const r=i.get(e.id);if(r)try{r(e)}finally{i.delete(e.id)}}),g(t,i,[],e)}function p(t){if(t)throw new Error("Proxy has been released and is not useable")}function f(t){return k(t,new Map,{type:"RELEASE"}).then(()=>{h(t)})}const m=new WeakMap,v="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(m.get(t)||0)-1;m.set(t,e),0===e&&f(t)});function g(t,e,i=[],r=function(){}){let a=!1;const s=new Proxy(r,{get(r,n){if(p(a),n===o)return()=>{!function(t){v&&v.unregister(t)}(s),f(t),e.clear(),a=!0};if("then"===n){if(0===i.length)return{then:()=>s};const r=k(t,e,{type:"GET",path:i.map(t=>t.toString())}).then(x);return r.then.bind(r)}return g(t,e,[...i,n])},set(r,n,o){p(a);const[s,l]=w(o);return k(t,e,{type:"SET",path:[...i,n].map(t=>t.toString()),value:s},l).then(x)},apply(r,o,s){p(a);const l=i[i.length-1];if(l===n)return k(t,e,{type:"ENDPOINT"}).then(x);if("bind"===l)return g(t,e,i.slice(0,-1));const[c,d]=b(s);return k(t,e,{type:"APPLY",path:i.map(t=>t.toString()),argumentList:c},d).then(x)},construct(r,n){p(a);const[o,s]=b(n);return k(t,e,{type:"CONSTRUCT",path:i.map(t=>t.toString()),argumentList:o},s).then(x)}});return function(t,e){const i=(m.get(e)||0)+1;m.set(e,i),v&&v.register(t,e,t)}(s,t),s}function b(t){const e=t.map(w);return[e.map(t=>t[0]),(i=e.map(t=>t[1]),Array.prototype.concat.apply([],i))];var i}const y=new WeakMap;function w(t){for(const[e,i]of c)if(i.canHandle(t)){const[r,n]=i.serialize(t);return[{type:"HANDLER",name:e,value:r},n]}return[{type:"RAW",value:t},y.get(t)||[]]}function x(t){switch(t.type){case"HANDLER":return c.get(t.name).deserialize(t.value);case"RAW":return t.value}}function k(t,e,i,r){return new Promise(n=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,n),t.start&&t.start(),t.postMessage(Object.assign({id:o},i),r)})}},95192:function(t,e,i){i.d(e,{IU:function(){return c},Jt:function(){return s},Yd:function(){return r},hZ:function(){return l},y$:function(){return n}});i(44114),i(18111),i(7588),i(61701),i(3362),i(62953);function r(t){return new Promise((e,i)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>i(t.error)})}function n(t,e){let i;return(n,o)=>(()=>{if(i)return i;const n=indexedDB.open(t);return n.onupgradeneeded=()=>n.result.createObjectStore(e),i=r(n),i.then(t=>{t.onclose=()=>i=void 0},()=>{}),i})().then(t=>o(t.transaction(e,n).objectStore(e)))}let o;function a(){return o||(o=n("keyval-store","keyval")),o}function s(t,e=a()){return e("readonly",e=>r(e.get(t)))}function l(t,e,i=a()){return i("readwrite",i=>(i.put(e,t),r(i.transaction)))}function c(t=a()){return t("readwrite",t=>(t.clear(),r(t.transaction)))}},54495:function(t,e,i){i.d(e,{OA:function(){return r.OA},WL:function(){return r.WL},u$:function(){return r.u$}});var r=i(42017)}}]);