1/*! For license information please see 95937.afd7f896bbe144e7.js.LICENSE.txt */ 2export const __rspack_esm_id=95937;export const __rspack_esm_ids=[95937];export const __webpack_modules__={85152(e,t,o){o.d(t,{},{m:(e,t)=>{const o=matchMedia(e),a=e=>t(e.matches);return o.addListener(a),t(o.matches),()=>o.removeListener(a)}})},62944(e,t,o){class a{start(e){const t=Date.now();this._startY=e,this._startTime=t,this._lastY=e,this._lastTime=t,this._delta=0}move(e){const t=Date.now();return this._delta=this._startY-e,this._lastY=e,this._lastTime=t,this._delta}end(){const e=this.getVelocity(),t=Math.abs(e)>this._velocityThreshold;return{velocity:e,delta:this._delta,isSwipe:t,isDownwardSwipe:e>0}}getDelta(){return this._delta}getVelocity(){if(Date.now()-this._lastTime>=this._movementTimeThreshold)return 0;const e=this._lastTime-this._startTime;return e>0?(this._lastY-this._startY)/e:0}reset(){this._startY=0,this._delta=0,this._startTime=0,this._lastY=0,this._lastTime=0}constructor(e={}){this._startY=0,this._delta=0,this._startTime=0,this._lastY=0,this._lastTime=0,this._velocityThreshold=e.velocitySwipeThreshold??.5,this._movementTimeThreshold=e.movementTimeThreshold??100}}o.d(t,{u:()=>a})},80570(e,t,o){o(64979);let a=!1;try{a="true"===window.localStorage.getItem("disableViewTransition")}catch{}const r=e=>{if(!(e=>(e instanceof DOMException||e instanceof Error)&&"AbortError"===e.name)(e))throw e};o.d(t,{},{D:e=>{a=e},J:e=>{if(!document.startViewTransition||a)return e(!1),Promise.resolve();let t=!1;try{const o=document.startViewTransition(()=>{t=!0,e(!0)});return o.ready.catch(r),o.finished.catch(r)}catch(o){return console.warn("View transition failed, falling back to direct execution.",o),t?Promise.reject(o):(e(!1),Promise.resolve())}}})},50878(e,t,o){o.a(e,async function(e,a){try{var r=o(28861),i=o(63018),s=o(11467),n=o(82476),l=o(85152),d=o(78813),h=o(17414),c=(o(60721),o(96007)),p=o(25395),u=e([h,c,p]);[h,c,p]=u.then?(await u)():u;const m="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",v="(max-width: 870px), (max-height: 500px)";class g extends s.WF{connectedCallback(){super.connectedCallback(),this._unsubMediaQuery=(0,l.m)(v,e=>{this._modeSet&&!this.allowModeChange||(this.mode=e?"bottom-sheet":"dialog",this._modeSet=!0)})}get _defaultAriaLabelledBy(){return this.ariaLabelledBy||(void 0!==this.headerTitle?"ha-dialog-title":void 0)}_renderCloseButton(e){return this.hideCloseButton?s.qy`<span slot=${e}></span>`:s.qy` <slot name="headerNavigationIcon" slot=${e}> <ha-icon-button data-dialog="close" .label=${this._i18n?.localize?.("ui.common.close")??"Close"} .path=${m}></ha-icon-button> </slot> `}_renderHeaderContent(){return s.qy` <ha-dialog-header .subtitlePosition=${this.headerSubtitlePosition}> ${this._renderCloseButton("navigationIcon")} ${void 0!==this.headerTitle?s.qy`<span slot="title" class="title" id="ha-dialog-title"> ${this.headerTitle} </span>`:s.qy`<slot name="headerTitle" slot="title"></slot>`} ${void 0!==this.headerSubtitle?s.qy`<span slot="subtitle">${this.headerSubtitle}</span>`:s.qy`<slot name="headerSubtitle" slot="subtitle"></slot>`} <slot name="headerActionItems" slot="actionItems"></slot> </ha-dialog-header> `}disconnectedCallback(){super.disconnectedCallback(),this._unsubMediaQuery?.(),this._unsubMediaQuery=void 0,this._modeSet=!1}render(){return"bottom-sheet"===this.mode?s.qy` <ha-bottom-sheet .ariaLabelledBy=${this._defaultAriaLabelledBy} .ariaDescribedBy=${this.ariaDescribedBy} .flexContent=${this.flexContent} .open=${this.open} .preventScrimClose=${this.preventScrimClose}> ${this.withoutHeader?s.s6:s.qy` <slot name="header" slot="header">${this._renderHeaderContent()}</slot> `} <slot></slot> <slot name="footer" slot="footer"></slot> </ha-bottom-sheet> `:s.qy` <ha-dialog .open=${this.open} .type=${this.type} .width=${this.width} .preventScrimClose=${this.preventScrimClose} .ariaLabelledBy=${this.ariaLabelledBy} .ariaDescribedBy=${this.ariaDescribedBy} .headerTitle=${this.headerTitle} .headerSubtitle=${this.headerSubtitle} .headerSubtitlePosition=${this.headerSubtitlePosition} .flexContent=${this.flexContent} .withoutHeader=${this.withoutHeader}> ${this._renderCloseButton("headerNavigationIcon")} <slot name="headerTitle" slot="headerTitle"></slot> <slot name="headerSubtitle" slot="headerSubtitle"></slot> <slot name="headerActionItems" slot="headerActionItems"></slot> <slot></slot> <slot name="footer" slot="footer"></slot> </ha-dialog> `}static get styles(){return[s.AH`ha-bottom-sheet{--ha-bottom-sheet-border-radius:var(--ha-border-radius-2xl);--ha-bottom-sheet-surface-background:var(--ha-dialog-surface-background,var(--card-background-color,var(--ha-color-surface-default)));--ha-bottom-sheet-padding:0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left);--ha-bottom-sheet-content-padding:var(--dialog-content-padding,0 var(--ha-space-6) var(--ha-space-6) var(--ha-space-6))}`]}constructor(...e){super(...e),this.open=!1,this.type="standard",this.width="medium",this.preventScrimClose=!1,this.headerSubtitlePosition="below",this.allowModeChange=!1,this.withoutHeader=!1,this.hideCloseButton=!1,this.flexContent=!1,this.mode="dialog",this._modeSet=!1}}(0,r.Cg)([(0,n.MZ)({attribute:"aria-labelledby"})],g.prototype,"ariaLabelledBy",void 0),(0,r.Cg)([(0,n.MZ)({attribute:"aria-describedby"})],g.prototype,"ariaDescribedBy",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],g.prototype,"open",void 0),(0,r.Cg)([(0,n.MZ)({reflect:!0})],g.prototype,"type",void 0),(0,r.Cg)([(0,n.MZ)({type:String,reflect:!0,attribute:"width"})],g.prototype,"width",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],g.prototype,"preventScrimClose",void 0),(0,r.Cg)([(0,n.MZ)({attribute:"header-title"})],g.prototype,"headerTitle",void 0),(0,r.Cg)([(0,n.MZ)({attribute:"header-subtitle"})],g.prototype,"headerSubtitle",void 0),(0,r.Cg)([(0,n.MZ)({type:String,attribute:"header-subtitle-position"})],g.prototype,"headerSubtitlePosition",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,attribute:"allow-mode-change"})],g.prototype,"allowModeChange",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,attribute:"without-header"})],g.prototype,"withoutHeader",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,attribute:"hide-close-button"})],g.prototype,"hideCloseButton",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],g.prototype,"flexContent",void 0),(0,r.Cg)([(0,n.wk)()],g.prototype,"mode",void 0),(0,r.Cg)([(0,n.wk)(),(0,i.Fg)({context:d.D5,subscribe:!0})],g.prototype,"_i18n",void 0),g=(0,r.Cg)([(0,n.EM)("ha-adaptive-dialog")],g),o.d(t,{r:()=>g}),a()}catch(e){a(e)}})},17414(e,t,o){o.a(e,async function(e,t){try{o(18111),o(13579),o(17642),o(15024),o(31698);var a=o(28861),r=o(91409),i=o(63018),s=o(11467),n=o(82476),l=o(62228),d=o(62944),h=o(78813),c=o(96309),p=o(7578),u=o(20455),m=e([r]);r=(m.then?(await m)():m)[0];const v=300,g=new Set(["ha-control-slider","ha-slider","ha-control-switch","ha-control-circular-slider","ha-hs-color-picker","ha-map","ha-more-info-control-select-container","ha-filter-chip"]),b=new Set(["volume-slider-container","forecast"]);class f extends((0,c.V)(s.WF)){get scrollableElement(){return this._bodyElement}connectedCallback(){super.connectedCallback(),this.addEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.addEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0})}updated(e){super.updated(e),e.has("open")&&(this._drawerOpen=this.open)}render(){return s.qy` <wa-drawer id="drawer" placement="bottom" .open=${this._drawerOpen} .lightDismiss=${!this.preventScrimClose} .ariaLabelledby=${this.ariaLabelledBy} .ariaDescribedby=${this.ariaDescribedBy} @keydown=${this._handleKeyDown} @wa-show=${this._handleShow} @wa-after-show=${this._handleAfterShow} @wa-hide=${this._handleHide} @wa-after-hide=${this._handleAfterHide} @click=${this._handleCloseAction} without-header @touchstart=${this._handleTouchStart}> <div class="handle-wrapper" aria-hidden="true"> <div class="handle"></div> </div> <slot name="header"></slot> <div class="content-wrapper"> <div id="body" class="body ha-scrollbar"> <slot></slot> </div> ${this.renderScrollableFades()} </div> <slot name="footer"></slot> </wa-drawer> `}_startResizing(e){document.addEventListener("touchmove",this._handleTouchMove,{passive:!1}),document.addEventListener("touchend",this._handleTouchEnd),document.addEventListener("touchcancel",this._handleTouchEnd),this._gestureRecognizer.start(e)}_animateSnapBack(){this.style.setProperty("--dialog-transition",`transform ${v}ms ease-out`),this.style.removeProperty("--dialog-transform"),setTimeout(()=>{this.style.removeProperty("--dialog-transition")},v)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.removeEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0}),this._unregisterResizeHandlers(),this._isDragging=!1}static get styles(){return[...super.styles,p.dp,s.AH`wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height,auto);--show-duration:${v}ms;--hide-duration:${v}ms}
2wa-drawer::part(dialog){max-height:min(var(--ha-bottom-sheet-max-height,90vh), calc(100vh - max(var(--safe-area-inset-top), 48px)));max-height:min(var(--ha-bottom-sheet-max-height,90dvh), calc(100dvh - max(var(--safe-area-inset-top), 48px)));transform:var(--dialog-transform);transition:var(--dialog-transition);align-items:center}@media (prefers-reduced-motion:reduce){wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height,auto);--show-duration:1ms;--hide-duration:1ms}wa-drawer::part(dialog){transition:all 1ms}}wa-drawer::part(dialog)::backdrop{backdrop-filter:var(--ha-bottom-sheet-scrim-backdrop-filter,var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none)));background-color:var(--ha-bottom-sheet-scrim-color,var(--mdc-dialog-scrim-color,none))}wa-drawer::part(body){max-width:var(--ha-bottom-sheet-max-width);border-top-left-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));border-top-right-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));background-color:var(--ha-bottom-sheet-surface-background,var(--ha-dialog-surface-background,var(--card-background-color,var(--ha-color-surface-default))));width:100%;backdrop-filter:var(--ha-bottom-sheet-surface-backdrop-filter,var(--ha-dialog-surface-backdrop-filter,none));padding:var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left));position:relative}:host([flexcontent]) wa-drawer::part(body){flex-direction:column;display:flex}:host([prevent-scrim-close]) .handle-wrapper{display:none}.handle-wrapper{top:0;pointer-events:none;z-index:1;justify-content:center;align-items:center;width:100%;padding-bottom:2px;display:flex;position:absolute;inset-inline-start:0}.handle-wrapper .handle{justify-content:center;align-items:center;width:200px;height:16px;display:flex}.handle-wrapper .handle:after{content:"";border-radius:var(--ha-border-radius-md);
2background:var(--ha-bottom-sheet-handle-color,var(--divider-color));width:40px;height:4px}.content-wrapper{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.body{padding:var(--ha-bottom-sheet-content-padding,0);box-sizing:border-box}:host([flexcontent]) .body{max-width:100%;padding:var(--ha-bottom-sheet-content-padding,var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left)));box-sizing:border-box;flex-direction:column;flex:1;display:flex}slot[name=footer]{padding:0;display:block}::slotted([slot=footer]){padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4) var(--ha-space-4);gap:var(--ha-space-3);box-sizing:border-box;justify-content:flex-end;align-items:center;width:100%;display:flex}:host([flexcontent]) slot[name=footer]{flex-shrink:0}`]}constructor(...e){super(...e),this.open=!1,this.flexContent=!1,this.preventScrimClose=!1,this._drawerOpen=!1,this._sliderInteractionActive=!1,this._gestureRecognizer=new d.u,this._isDragging=!1,this._escapePressed=!1,this._handleShow=async()=>{this._drawerOpen=!0,this.open=!0,(0,l.r)(this,"opened"),await this.updateComplete,requestAnimationFrame(()=>{const e=this._autofocusElement;this._hassConfig?.auth.external&&(0,u.V)(this._hassConfig.auth.external)?e&&(e.id||(e.id="ha-bottom-sheet-autofocus"),this._hassConfig.auth.external.fireMessage({type:"focus_element",payload:{element_id:e.id}})):e?.focus()})},this._handleAfterShow=()=>{(0,l.r)(this,"after-show")},this._handleSliderInteractionStart=()=>{this._sliderInteractionActive=!0},this._handleSliderInteractionStop=()=>{this._sliderInteractionActive=!1},this._handleAfterHide=e=>{if(this._sliderInteractionActive)return this._drawerOpen=!0,void(this.open=!0);e.eventPhase===Event.AT_TARGET&&(this.open=!1,this._drawerOpen=!1,(0,l.r)(this,"closed"))},this._handleHide=e=>{if(e.eventPhase!==Event.AT_TARGET)return;const t=e.detail.source===e.target.drawer;if(this._sliderInteractionActive)return e.preventDefault(),this._drawerOpen=!0,this.open=!0,void(this._escapePressed=!1);this.preventScrimClose&&this._escapePressed&&t&&e.preventDefault(),this._escapePressed=!1},this._handleKeyDown=e=>{"Escape"===e.key&&(this._escapePressed=!0,this.preventScrimClose&&e.preventDefault(),e.stopPropagation(),e.currentTarget.open=!1)},this._handleCloseAction=e=>{e.composedPath().some(e=>e instanceof HTMLElement&&("close"===e.getAttribute("data-dialog")||"close"===e.getAttribute("data-drawer")))&&(this._drawerOpen=!1)},this._handleTouchStart=e=>{if(this.preventScrimClose)return;const t=e.composedPath();for(const e of t){if(e===this._drawer)break;if(e instanceof HTMLElement&&(e.scrollTop>0||g.has(e.localName)||Array.from(e.classList).some(e=>b.has(e))))return}e.stopPropagation(),this._startResizing(e.touches[0].clientY)},this._handleTouchMove=e=>{const t=e.touches[0].clientY,o=this._gestureRecognizer.move(t);o<0&&(e.preventDefault(),this._isDragging=!0,requestAnimationFrame(()=>{this._isDragging&&this.style.setProperty("--dialog-transform",`translateY(${-1*o}px)`)}))},this._handleTouchEnd=()=>{this._unregisterResizeHandlers(),this._isDragging=!1;const e=this._gestureRecognizer.end();if(e.isSwipe)return void(e.isDownwardSwipe?this._drawerOpen=!1:this._animateSnapBack());const t=this._drawer.shadowRoot?.querySelector('[part="body"]'),o=t?.offsetHeight||0;o>0&&e.delta<0&&Math.abs(e.delta)>.5*o?this._drawerOpen=!1:this._animateSnapBack()},this._unregisterResizeHandlers=()=>{document.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),document.removeEventListener("touchcancel",this._handleTouchEnd)}}}(0,a.Cg)([(0,n.MZ)({attribute:"aria-labelledby"})],f.prototype,"ariaLabelledBy",void 0),(0,a.Cg)([(0,n.MZ)({attribute:"aria-describedby"})],f.prototype,"ariaDescribedBy",void 0),(0,a.Cg)([(0,n.MZ)({type:Boolean})],f.prototype,"open",void 0),(0,a.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],f.prototype,"flexContent",void 0),(0,a.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],f.prototype,"preventScrimClose",void 0),(0,a.Cg)([(0,n.wk)()],f.prototype,"_drawerOpen",void 0),(0,a.Cg)([(0,n.wk)()],f.prototype,"_sliderInteractionActive",void 0),(0,a.Cg)([(0,n.wk)(),(0,i.Fg)({context:h.WF,subscribe:!0})],f.prototype,"_hassConfig",void 0),(0,a.Cg)([(0,n.P)("#drawer")],f.prototype,"_drawer",void 0),(0,a.Cg)([(0,n.P)("#body")],f.prototype,"_bodyElement",void 0),(0,a.Cg)([(0,n.P)("[autofocus]")],f.prototype,"_autofocusElement",void 0),f=(0,a.Cg)([(0,n.EM)("ha-bottom-sheet")],f),t()}catch(e){t(e)}})},35883(e,t,o){var a=o(28861),r=o(11467),i=o(82476);class s extends r.WF{render(){return r.qy` <footer> <slot name="secondaryAction"></slot> <slot name="primaryAction"></slot> </footer> `}static get styles(){return[r.AH`footer{gap:var(--ha-space-3);justify-content:flex-end;align-items:center;width:100%;display:flex}`]}}s=(0,a.Cg)([(0,i.EM)("ha-dialog-footer")],s)},96309(e,t,o){var a=o(28861),r=o(73885),i=o(11467),s=o(5633),n=o(82476);o.d(t,{},{V:e=>{class t extends e{get scrollableElement(){return t.DEFAULT_SCROLLABLE_ELEMENT}firstUpdated(e){super.firstUpdated?.(e),this.scrollableElement&&this._updateScrollableState(this.scrollableElement),this._attachScrollableElement()}updated(e){super.updated?.(e),this._attachScrollableElement()}disconnectedCallback(){this._detachScrollableElement(),this._contentScrolled=!1,this._contentScrollable=!1,super.disconnectedCallback()}renderScrollableFades(e=!1){return i.qy` <div class=${(0,s.H)({"fade-top":!0,rounded:e,visible:this._contentScrolled})}></div> <div class=${(0,s.H)({"fade-bottom":!0,rounded:e,visible:this._contentScrollable})}></div> `}static get styles(){const e=Object.getPrototypeOf(this);var t;return[...void 0===(t=e?.styles??[])?[]:Array.isArray(t)?t:[t],i.AH`.fade-top,.fade-bottom{height:var(--ha-space-2);pointer-events:none;border-radius:var(--ha-border-radius-square);opacity:0;background:linear-gradient(to bottom, var(--ha-color-shadow-scrollable-fade), transparent);transition:opacity .18s ease-in-out;position:absolute;
2left:0;right:0}.fade-top{top:0}.fade-bottom{bottom:0;transform:rotate(180deg)}.fade-top.visible,.fade-bottom.visible{opacity:1}.fade-top.rounded,.fade-bottom.rounded{border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}.fade-top.rounded{border-top-left-radius:var(--ha-border-radius-square);border-top-right-radius:var(--ha-border-radius-square)}.fade-bottom.rounded{border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}`]}_attachScrollableElement(){const e=this.scrollableElement;e!==this._scrollTarget&&(this._detachScrollableElement(),e&&(this._scrollTarget=e,e.addEventListener("scroll",this._onScroll,{passive:!0}),this._resize.observe(e),this._updateScrollableState(e)))}_detachScrollableElement(){this._scrollTarget&&(this._scrollTarget.removeEventListener("scroll",this._onScroll),this._resize.unobserve?.(this._scrollTarget),this._scrollTarget=void 0)}_updateScrollableState(e){const t=parseFloat(getComputedStyle(e).getPropertyValue("--safe-area-inset-bottom"))||0,{scrollHeight:o=0,clientHeight:a=0,scrollTop:r=0}=e;this._contentScrollable=o-a>r+t+this.scrollFadeSafeAreaPadding}constructor(...e){super(...e),this._contentScrolled=!1,this._contentScrollable=!1,this._onScroll=e=>{const t=e.currentTarget;this._contentScrolled=(t.scrollTop??0)>this.scrollFadeThreshold,this._updateScrollableState(t)},this._resize=new r.P(this,{target:null,callback:e=>{const t=e[0]?.target;t&&this._updateScrollableState(t)}}),this.scrollFadeSafeAreaPadding=4,this.scrollFadeThreshold=4}}return t.DEFAULT_SCROLLABLE_ELEMENT=null,(0,a.Cg)([(0,n.wk)()],t.prototype,"_contentScrolled",void 0),(0,a.Cg)([(0,n.wk)()],t.prototype,"_contentScrollable",void 0),t}})},7578(e,t,o){var a=o(11467);const r=a.AH`button.link{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;outline:none;padding:0;text-decoration:underline}`,i=a.AH`:host{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}app-header div[sticky]{height:48px}app-toolbar [main-title]{margin-left:20px;margin-inline-start:20px;margin-inline-end:initial}.header{transition:box-shadow .2s linear, width var(--ha-animation-duration-normal) ease, padding-left var(--ha-animation-duration-normal) ease, padding-right var(--ha-animation-duration-normal) ease}@media (prefers-reduced-motion:reduce){.header{transition:box-shadow .2s linear}}h1{font-family:var(--ha-font-family-heading);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-2xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed)}h2{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);white-space:nowrap;text-overflow:ellipsis;font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-medium);line-height:var(--ha-line-height-normal);overflow:hidden}h3{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}a{color:var(--primary-color)}.secondary{color:var(--secondary-text-color)}.error,.warning{color:var(--error-color)}${r} .card-actions a{text-decoration: none;}.card-actions .warning{--mdc-theme-primary:var(--error-color)}.layout.horizontal,.layout.vertical{display:flex}.layout.inline{display:inline-flex}.layout.horizontal{flex-direction:row}.layout.vertical{flex-direction:column}.layout.wrap{flex-wrap:wrap}.layout.no-wrap{flex-wrap:nowrap}.layout.center,.layout.center-center{align-items:center}.layout.bottom{align-items:flex-end}.layout.center-justified,.layout.center-center{justify-content:center}.flex{flex:1e-9px}.flex-auto{flex:auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`,s=a.AH`ha-dialog,ha-adaptive-dialog{--mdc-dialog-min-width:400px;--mdc-dialog-max-width:min(600px, 95vw);--justify-action-buttons:space-between;--dialog-container-padding:var(--safe-area-inset-top,0) var(--safe-area-inset-right,0) var(--safe-area-inset-bottom,0) var(--safe-area-inset-left,0);--dialog-surface-padding:0px}ha-dialog .form,ha-adaptive-dialog .form{color:var(--primary-text-color)}a{color:var(--primary-color)}@media (width<=450px),(height<=500px){ha-dialog,ha-adaptive-dialog{--mdc-dialog-min-width:100vw;--mdc-dialog-max-width:100vw;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100svh;--dialog-container-padding:0px;--dialog-surface-padding:var(--safe-area-inset-top,0) var(--safe-area-inset-right,0) var(--safe-area-inset-bottom,0) var(--safe-area-inset-left,0);--vertical-align-dialog:flex-end}ha-dialog{--ha-dialog-border-radius:var(--ha-border-radius-square)}}.error{color:var(--error-color)}
2`,n=a.AH`ha-dialog,ha-adaptive-dialog{--vertical-align-dialog:flex-start;--dialog-surface-margin-top:var(--ha-space-10);--mdc-dialog-max-height:calc(100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(--safe-area-inset-y,0px));--ha-dialog-max-height:calc(100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(--safe-area-inset-y,0px))}@media (width<=450px),(height<=500px){ha-dialog,ha-adaptive-dialog{--dialog-surface-margin-top:0px;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100svh;--ha-dialog-max-height:100svh}}`,l=a.AH`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{border-radius:var(--ha-border-radius-sm);background:var(--scrollbar-thumb-color)}.ha-scrollbar{scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin;overflow-y:auto}`;a.AH`body{background-color:var(--primary-background-color);color:var(--primary-text-color);width:100vw;height:calc(100vh - 32px)}`;o.d(t,{},{RF:i,dp:l,kO:n,nA:s,og:r})},20455(e,t,o){var a=o(37184);o.d(t,{},{V:e=>!!e&&a.n})},37184(e,t,o){const a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);o.d(t,{},{n:a})},27712(e,t,o){var a=o(82476),r=o(71704),i=o(7922),s=o(11467).AH`:host{--color:var(--wa-color-surface-border);--width:var(--wa-border-width-s);--spacing:var(--wa-space-m)}:host(:not([orientation=vertical])){border-top:solid var(--width) var(--color);margin:var(--spacing) 0;display:block}:host([orientation=vertical]){border-inline-start:solid var(--width) var(--color);height:100%;margin:0 var(--spacing);min-block-size:1lh;display:inline-block}`,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=(e,t,o,a)=>{for(var r,i=a>1?void 0:a?l(t,o):t,s=e.length-1;s>=0;s--)(r=e[s])&&(i=(a?r(t,o,i):r(i))||i);return a&&i&&n(t,o,i),i};let h=class extends i.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,a.MZ)({reflect:!0})],h.prototype,"orientation",2),d([(0,r.w)("orientation")],h.prototype,"handleVerticalChange",1),h=d([(0,a.EM)("wa-divider")],h)},91409(e,t,o){o.a(e,async function(e,t){try{var a=o(11467),r=o(82476),i=o(5633),s=o(16635),n=o(35142),l=o(72075),d=o(2919),h=o(17946),c=o(6764),p=o(86614),u=o(23948),m=o(63127),v=o(77195),g=o(71704),b=o(7922),f=o(88571),w=o(32559),y=o(75493),_=e([w,f]);[w,f]=_.then?(await _)():_;var x=Object.defineProperty,C=Object.getOwnPropertyDescriptor,k=(e,t,o,a)=>{for(var r,i=a>1?void 0:a?C(t,o):t,s=e.length-1;s>=0;s--)(r=e[s])&&(i=(a?r(t,o,i):r(i))||i);return a&&i&&x(t,o,i),i};let S=class extends b.A{firstUpdated(){a.S$||this.open&&(this.addOpenListeners(),this.drawer.showModal(),(0,m.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,m.I7)(this),this.removeOpenListeners()}async requestClose(e){const t=new d.L({source:e});if(this.dispatchEvent(t),t.defaultPrevented)return this.open=!0,void(0,c.Ud)(this.drawer,"pulse");this.removeOpenListeners(),await(0,c.Ud)(this.drawer,"hide"),this.open=!1,this.drawer.close(),(0,m.I7)(this);const o=this.originalTrigger;"function"==typeof o?.focus&&setTimeout(()=>o.focus()),this.dispatchEvent(new n.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,c.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 h.k;this.dispatchEvent(e),e.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.drawer.showModal(),(0,m.JG)(this),requestAnimationFrame(()=>{const e=this.querySelector("[autofocus]");e&&"function"==typeof e.focus?e.focus():this.drawer.focus()}),await(0,c.Ud)(this.drawer,"show"),this.dispatchEvent(new l.q))}render(){const e=!this.withoutHeader,t=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return a.qy` <dialog aria-labelledby=${this.ariaLabelledby??"title"} aria-describedby=${(0,s.J)(this.ariaDescribedby)} part="dialog" class=${(0,i.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?a.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>
2 </div> </header> `:""} <div part="body" class="body"><slot></slot></div> ${t?a.qy` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `:""} </dialog> `}constructor(){super(...arguments),this.localize=new f.c(this),this.hasSlotController=new v.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))}}};S.css=y.A,k([(0,r.P)(".drawer")],S.prototype,"drawer",2),k([(0,r.MZ)({type:Boolean,reflect:!0})],S.prototype,"open",2),k([(0,r.MZ)({reflect:!0})],S.prototype,"label",2),k([(0,r.MZ)({reflect:!0})],S.prototype,"placement",2),k([(0,r.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],S.prototype,"withoutHeader",2),k([(0,r.MZ)({attribute:"light-dismiss",type:Boolean})],S.prototype,"lightDismiss",2),k([(0,r.MZ)({attribute:"aria-labelledby"})],S.prototype,"ariaLabelledby",2),k([(0,r.MZ)({attribute:"aria-describedby"})],S.prototype,"ariaDescribedby",2),k([(0,r.MZ)({attribute:"with-footer",type:Boolean})],S.prototype,"withFooter",2),k([(0,g.w)("open",{waitUntilFirstUpdate:!0})],S.prototype,"handleOpenChange",1),S=k([(0,r.EM)("wa-drawer")],S),a.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)}})},75493(e,t,o){var a=o(11467).AH`:host{--size:25rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:.2s;--hide-duration:.2s;display:none}:host([open]){display:block}.drawer{top:0;width:100%;max-width:100%;height:100%;max-height:100%;color:inherit;background-color:var(--wa-color-surface-raised);box-shadow:var(--wa-shadow-l);animation-duration:var(--show-duration);border:none;flex-direction:column;margin:0;padding:0;animation-timing-function:ease;display:flex;inset-inline-start:0;overflow:auto}.drawer.show::backdrop{animation:show-backdrop var(--show-duration,.2s) ease}.drawer.hide::backdrop{animation:show-backdrop var(--hide-duration,.2s) 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:.25s pulse}.drawer:focus{outline:none}.top{top:0;inset-inline-end:auto;bottom:auto;width:100%;height:var(--size);inset-inline-start:0}.end{top:0;inset-inline-end:0;bottom:auto;width:var(--size);height:100%;inset-inline-start:auto}.bottom{top:auto;inset-inline-end:auto;bottom:0;width:100%;height:var(--size);inset-inline-start:0}.start{top:0;inset-inline-end:auto;bottom:auto;width:var(--size);height:100%;inset-inline-start:0}.header{flex-wrap:nowrap;padding-block-start:calc(var(--spacing) - var(--wa-form-control-padding-block));padding-block-end:0;padding-inline-start:var(--spacing);padding-inline-end:calc(var(--spacing) - var(--wa-form-control-padding-block));display:flex}.title{font:inherit;font-size:var(--wa-font-size-l);font-weight:var(--wa-font-weight-heading);line-height:var(--wa-line-height-condensed);flex:auto;align-self:center;margin:0}.header-actions{justify-content:end;align-self:start;gap:var(--wa-space-2xs);flex-wrap:wrap;flex-shrink:0;padding-inline-start:var(--spacing);display:flex}.header-actions wa-button,.header-actions ::slotted(wa-button){flex:none;align-items:center;display:flex}.body{padding:var(--spacing);-webkit-overflow-scrolling:touch;flex:auto;display:block;overflow:auto}.body:focus{outline:none}.body:focus-visible{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.footer{gap:var(--wa-space-xs);padding:var(--spacing);flex-wrap:wrap;justify-content:end;padding-block-start:0;display:flex}.footer ::slotted(wa-button:not(:last-of-type)){margin-inline-end:var(--wa-spacing-xs)}.drawer::backdrop{background-color:var(--wa-color-overlay-modal,#00000040);backdrop-filter:var(--backdrop-filter)}@keyframes pulse{0%{scale:1}50%{scale:1.01}to{scale:1}}@keyframes show-drawer{0%{opacity:0;scale:.8}to{opacity:1;scale:1}}@keyframes show-drawer-from-top{0%{opacity:0;translate:0 -100%}to{opacity:1;translate:0}}@keyframes show-drawer-from-end{0%{opacity:0;translate:100%}to{opacity:1;translate:0}}@keyframes show-drawer-from-bottom{0%{opacity:0;translate:0 100%}to{opacity:1;translate:0}}@keyframes show-drawer-from-start{0%{opacity:0;translate:-100%}to{opacity:1;translate:0}}@keyframes show-backdrop{0%{opacity:0}
2to{opacity:1}}@media (forced-colors:active){.drawer{border:1px solid #fff}}`;o.d(t,{A:()=>a})},54009(e,t,o){o.a(e,async function(e,t){try{o(74423),o(17642),o(15024),o(31698);var a=o(11467),r=o(82476),i=o(5633),s=o(16635),n=o(35142),l=o(72075),d=o(2919),h=o(17946),c=o(6764),p=o(86614),u=o(73095),m=o(94113),v=o(71704),g=o(7922),b=o(68233),f=o(58413),w=e([b]);b=(w.then?(await w)():w)[0];var y=Object.defineProperty,_=Object.getOwnPropertyDescriptor,x=(e,t,o,a)=>{for(var r,i=a>1?void 0:a?_(t,o):t,s=e.length-1;s>=0;s--)(r=e[s])&&(i=(a?r(t,o,i):r(i))||i);return a&&i&&y(t,o,i),i};const C=new Set;let k=class extends g.A{connectedCallback(){super.connectedCallback(),this.id||(this.id=(0,m.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 h.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,c.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const e=new d.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,c.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.dialog.close(),this.dispatchEvent(new n.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:a}=this.eventController;t&&t.addEventListener("click",this.handleAnchorClick,{signal:a}),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 a.qy` <dialog aria-labelledby=${(0,s.J)(this.ariaLabelledby)} aria-describedby=${(0,s.J)(this.ariaDescribedby)} part="dialog" class="dialog" @cancel=${this.handleDialogCancel}> <wa-popup part="popup" exportparts=" 3 popup:popup__popup, 4 arrow:popup__arrow 5 " class=${(0,i.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)}}};k.css=f.A,k.dependencies={"wa-popup":b.A},x([(0,r.P)("dialog")],k.prototype,"dialog",2),x([(0,r.P)(".body")],k.prototype,"body",2),x([(0,r.P)("wa-popup")],k.prototype,"popup",2),x([(0,r.wk)()],k.prototype,"anchor",2),x([(0,r.MZ)()],k.prototype,"placement",2),x([(0,r.MZ)({type:Boolean,reflect:!0})],k.prototype,"open",2),x([(0,r.MZ)({type:Number})],k.prototype,"distance",2),x([(0,r.MZ)({type:Number})],k.prototype,"skidding",2),x([(0,r.MZ)()],k.prototype,"for",2),x([(0,r.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],k.prototype,"withoutArrow",2),x([(0,r.MZ)({attribute:"auto-size"})],k.prototype,"autoSize",2),x([(0,r.MZ)({attribute:"auto-size-padding",type:Number})],k.prototype,"autoSizePadding",2),x([(0,r.MZ)({attribute:"trap-focus",type:Boolean})],k.prototype,"trapFocus",2),x([(0,r.MZ)({attribute:"aria-labelledby"})],k.prototype,"ariaLabelledby",2),x([(0,r.MZ)({attribute:"aria-describedby"})],k.prototype,"ariaDescribedby",2),x([(0,v.w)("open",{waitUntilFirstUpdate:!0})],k.prototype,"handleOpenChange",1),x([(0,v.w)("for")],k.prototype,"handleForChange",1),x([(0,v.w)(["distance","placement","skidding"])],k.prototype,"handleOptionsChange",1),k=x([(0,r.EM)("wa-popover")],k),t()}catch(e){t(e)}})},58413(e,t,o){var a=o(11467).AH`:host{--arrow-size:.375rem;--max-width:25rem;--show-duration:.1s;--hide-duration:.1s;font-size:var(--wa-font-size-m);line-height:var(--wa-line-height-normal);text-align:start;white-space:normal;display:contents}.dialog{pointer-events:none;background:0 0;border:none;width:100%;height:100%;margin:0;padding:0;display:none;position:fixed;inset:0;overflow:visible}.dialog:focus{outline:none}.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:100%}.popover[placement^=right]::part(popup){transform-origin:0}.body{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);-webkit-user-select:none;user-select:none;flex-direction:column;display:flex}.popover[data-current-placement^=top] .body,.popover[data-current-placement^=bottom] .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)}`;o.d(t,{A:()=>a})},23948(e,t,o){o(18111),o(22489),o(61701);function a(e){return e.split(" ").map(e=>e.trim()).filter(e=>""!==e)}o.d(t,{v:()=>a})},63127(e,t,o){o.d(t,{JG:()=>r,Rt:()=>s,I7:()=>i});o(17642),o(15024),o(31698);const a=new Set;
5function r(e){if(a.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 i(e){a.delete(e),0===a.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function s(e,t,o="vertical",a="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),i=r.top+t.scrollTop,s=r.left+t.scrollLeft,n=t.scrollLeft,l=t.scrollLeft+t.offsetWidth,d=t.scrollTop,h=t.scrollTop+t.offsetHeight;"horizontal"!==o&&"both"!==o||(s<n?t.scrollTo({left:s,behavior:a}):s+e.clientWidth>l&&t.scrollTo({left:s-t.offsetWidth+e.clientWidth,behavior:a})),"vertical"!==o&&"both"!==o||(i<d?t.scrollTo({top:i,behavior:a}):i+e.clientHeight>h&&t.scrollTo({top:i-t.offsetHeight+e.clientHeight,behavior:a}))}},73885(e,t,o){o(17642),o(15024),o(31698);var a=o(96487),r=o(16014);class i{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 s(this,e)}constructor(e,{target:t,config:o,callback:a,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=a,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 s=(0,r.u$)(class extends a.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}});o.d(t,{P:()=>i})},96487(e,t,o){o(17642),o(15024),o(31698);var a=o(82466),r=o(16014);const i=(e,t)=>{const o=e._$AN;if(void 0===o)return!1;for(const e of o)e._$AO?.(t,!1),i(e,t);return!0},s=e=>{let t,o;do{if(void 0===(t=e._$AM))break;o=t._$AN,o.delete(e),e=t}while(0===o?.size)},n=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),h(t)}};function l(e){void 0!==this._$AN?(s(this),this._$AM=e,n(this)):this._$AM=e}function d(e,t=!1,o=0){const a=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(a))for(let e=o;e<a.length;e++)i(a[e],!1),s(a[e]);else null!=a&&(i(a,!1),s(a));else i(this,e)}const h=e=>{e.type==r.OA.CHILD&&(e._$AP??=d,e._$AQ??=l)};class c extends r.WL{_$AT(e,t,o){super._$AT(e,t,o),n(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(i(this,e),s(this))}setValue(e){if((0,a.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}}o.d(t,{Kq:()=>c})}}; 6//# sourceMappingURL=95937.afd7f896bbe144e7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.