3 lines
46 KiB
JavaScript
3 lines
46 KiB
JavaScript
/*! For license information please see 963.d3J9s2XnePY.js.LICENSE.txt */
|
|
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[963],{54279:function(e,t,o){"use strict";o.d(t,{P:function(){return i}});o(95737),o(33822),o(39790),o(99019),o(253),o(54846),o(66555),o(96858);var i=function(e){return function(t,o){if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){var i=t.constructor._observers;t.constructor._observers=new Map,i.forEach((function(e,o){return t.constructor._observers.set(o,e)}))}}else{t.constructor._observers=new Map;var n=t.updated;t.updated=function(e){var t=this;n.call(this,e),e.forEach((function(e,o){var i=t.constructor._observers.get(o);void 0!==i&&i.call(t,t[o],e)}))}}t.constructor._observers.set(o,e)}}},54653:function(e,t,o){"use strict";o.d(t,{u:function(){return I}});var i,n=o(64599),a=o(14842),r=o(64782),d=o(71008),s=o(35806),c=o(62193),l=o(35890),u=o(2816),m=(o(13025),o(79243),o(89655),o(26098),o(39790),o(253),o(2075),o(79192)),h=(o(37153),o(69091),{CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"}),g={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},f={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150},p=(o(95737),o(33822),o(99019),o(54846),o(66555),o(96858),function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var o=this;this.cancel(e);var i=requestAnimationFrame((function(i){o.rafIDs.delete(e),t(i)}));this.rafIDs.set(e,i)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach((function(t,o){e.cancel(o)}))},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach((function(t,o){e.push(o)})),e},e}()),_=o(11468);!function(e){e.POLL_SCROLL_POS="poll_scroll_position",e.POLL_LAYOUT_CHANGE="poll_layout_change"}(i||(i={}));var v=function(e){function t(o){var i=e.call(this,(0,m.__assign)((0,m.__assign)({},t.defaultAdapter),o))||this;return i.dialogOpen=!1,i.isFullscreen=!1,i.animationFrame=0,i.animationTimer=0,i.escapeKeyAction=g.CLOSE_ACTION,i.scrimClickAction=g.CLOSE_ACTION,i.autoStackButtons=!0,i.areButtonsStacked=!1,i.suppressDefaultPressSelector=g.SUPPRESS_DEFAULT_PRESS_SELECTOR,i.animFrame=new p,i.contentScrollHandler=function(){i.handleScrollEvent()},i.windowResizeHandler=function(){i.layout()},i.windowOrientationChangeHandler=function(){i.layout()},i}return(0,m.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){},registerContentEventHandler:function(){},deregisterContentEventHandler:function(){},isScrollableContentAtTop:function(){return!1},isScrollableContentAtBottom:function(){return!1},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.hasClass(h.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(h.FULLSCREEN)},t.prototype.destroy=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd()),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll(),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},t.prototype.open=function(e){var t=this;this.dialogOpen=!0,this.adapter.notifyOpening(),this.adapter.addClass(h.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),e&&e.isAboveFullscreenDialog&&this.adapter.addClass(h.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame((function(){t.adapter.addClass(h.OPEN),t.adapter.addBodyClass(h.SCROLL_LOCK),t.layout(),t.animationTimer=setTimeout((function(){t.handleAnimationTimerEnd(),t.adapter.trapFocus(t.adapter.getInitialFocusEl()),t.adapter.notifyOpened()}),f.DIALOG_ANIMATION_OPEN_TIME_MS)}))},t.prototype.close=function(e){var t=this;void 0===e&&(e=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(e),this.adapter.addClass(h.CLOSING),this.adapter.removeClass(h.OPEN),this.adapter.removeBodyClass(h.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout((function(){t.adapter.releaseFocus(),t.handleAnimationTimerEnd(),t.adapter.notifyClosed(e)}),f.DIALOG_ANIMATION_CLOSE_TIME_MS))},t.prototype.showSurfaceScrim=function(){var e=this;this.adapter.addClass(h.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame((function(){e.adapter.addClass(h.SURFACE_SCRIM_SHOWN)}))},t.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(h.SURFACE_SCRIM_SHOWN),this.adapter.addClass(h.SURFACE_SCRIM_HIDING)},t.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(h.SURFACE_SCRIM_HIDING),this.adapter.removeClass(h.SURFACE_SCRIM_SHOWING)},t.prototype.isOpen=function(){return this.dialogOpen},t.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction},t.prototype.setEscapeKeyAction=function(e){this.escapeKeyAction=e},t.prototype.getScrimClickAction=function(){return this.scrimClickAction},t.prototype.setScrimClickAction=function(e){this.scrimClickAction=e},t.prototype.getAutoStackButtons=function(){return this.autoStackButtons},t.prototype.setAutoStackButtons=function(e){this.autoStackButtons=e},t.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector},t.prototype.setSuppressDefaultPressSelector=function(e){this.suppressDefaultPressSelector=e},t.prototype.layout=function(){var e=this;this.animFrame.request(i.POLL_LAYOUT_CHANGE,(function(){e.layoutInternal()}))},t.prototype.handleClick=function(e){if(this.adapter.eventTargetMatches(e.target,g.SCRIM_SELECTOR)&&""!==this.scrimClickAction)this.close(this.scrimClickAction);else{var t=this.adapter.getActionFromEvent(e);t&&this.close(t)}},t.prototype.handleKeydown=function(e){var t="Enter"===e.key||13===e.keyCode;if(t&&!this.adapter.getActionFromEvent(e)){var o=e.composedPath?e.composedPath()[0]:e.target,i=!this.suppressDefaultPressSelector||!this.adapter.eventTargetMatches(o,this.suppressDefaultPressSelector);t&&i&&this.adapter.clickDefaultButton()}},t.prototype.handleDocumentKeydown=function(e){("Escape"===e.key||27===e.keyCode)&&""!==this.escapeKeyAction&&this.close(this.escapeKeyAction)},t.prototype.handleScrollEvent=function(){var e=this;this.animFrame.request(i.POLL_SCROLL_POS,(function(){e.toggleScrollDividerHeader(),e.toggleScrollDividerFooter()}))},t.prototype.layoutInternal=function(){this.autoStackButtons&&this.detectStackedButtons(),this.toggleScrollableClasses()},t.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(h.OPENING),this.adapter.removeClass(h.CLOSING)},t.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},t.prototype.detectStackedButtons=function(){this.adapter.removeClass(h.STACKED);var e=this.adapter.areButtonsStacked();e&&this.adapter.addClass(h.STACKED),e!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=e)},t.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(h.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(h.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},t.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(h.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(h.SCROLL_DIVIDER_HEADER):this.adapter.addClass(h.SCROLL_DIVIDER_HEADER)},t.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(h.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(h.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(h.SCROLL_DIVIDER_FOOTER)},t}(_.I);function y(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var o={get passive(){return t=!0,!1}},i=function(){};e.document.addEventListener("test",i,o),e.document.removeEventListener("test",i,o)}catch(n){t=!1}return t}(e)&&{passive:!0}}var b,x,E,S=o(83723),w=o(19637),A=o(54279),C=o(70663),k=o(15224),N=o(85323),T=document.$blockingElements,I=function(e){function t(){var e;return(0,d.A)(this,t),(e=(0,c.A)(this,t,arguments)).hideActions=!1,e.stacked=!1,e.heading="",e.scrimClickAction="close",e.escapeKeyAction="close",e.open=!1,e.defaultAction="close",e.actionAttribute="dialogAction",e.initialFocusAttribute="dialogInitialFocus",e.initialSupressDefaultPressSelector="",e.mdcFoundationClass=v,e.boundHandleClick=null,e.boundHandleKeydown=null,e.boundHandleDocumentKeydown=null,e}return(0,u.A)(t,e),(0,s.A)(t,[{key:"suppressDefaultPressSelector",get:function(){return this.mdcFoundation?this.mdcFoundation.getSuppressDefaultPressSelector():this.initialSupressDefaultPressSelector},set:function(e){this.mdcFoundation?this.mdcFoundation.setSuppressDefaultPressSelector(e):this.initialSupressDefaultPressSelector=e}},{key:"primaryButton",get:function(){var e=this.primarySlot.assignedNodes(),t=(e=e.filter((function(e){return e instanceof HTMLElement})))[0];return t||null}},{key:"emitNotification",value:function(e,t){var o=new CustomEvent(e,{detail:t?{action:t}:{}});this.dispatchEvent(o)}},{key:"getInitialFocusEl",value:function(){var e="[".concat(this.initialFocusAttribute,"]"),t=this.querySelector(e);if(t)return t;var o=this.primarySlot.assignedNodes({flatten:!0}),i=this.searchNodeTreesForAttribute(o,this.initialFocusAttribute);if(i)return i;var n=this.secondarySlot.assignedNodes({flatten:!0}),a=this.searchNodeTreesForAttribute(n,this.initialFocusAttribute);if(a)return a;var r=this.contentSlot.assignedNodes({flatten:!0});return this.searchNodeTreesForAttribute(r,this.initialFocusAttribute)}},{key:"searchNodeTreesForAttribute",value:function(e,t){var o,i=(0,r.A)(e);try{for(i.s();!(o=i.n()).done;){var n=o.value;if(n instanceof HTMLElement){if(n.hasAttribute(t))return n;var a=n.querySelector("[".concat(t,"]"));if(a)return a}}}catch(d){i.e(d)}finally{i.f()}return null}},{key:"createAdapter",value:function(){var e=this;return Object.assign(Object.assign({},(0,w.i)(this.mdcRoot)),{addBodyClass:function(){return document.body.style.overflow="hidden"},removeBodyClass:function(){return document.body.style.overflow=""},areButtonsStacked:function(){return e.stacked},clickDefaultButton:function(){var t=e.primaryButton;t&&t.click()},eventTargetMatches:function(e,t){return!!e&&(0,S.cK)(e,t)},getActionFromEvent:function(t){if(!t.target)return"";var o=(0,S.kp)(t.target,"[".concat(e.actionAttribute,"]"));return o&&o.getAttribute(e.actionAttribute)},getInitialFocusEl:function(){return e.getInitialFocusEl()},isContentScrollable:function(){var t=e.contentElement;return!!t&&t.scrollHeight>t.offsetHeight},notifyClosed:function(t){return e.emitNotification("closed",t)},notifyClosing:function(t){e.closingDueToDisconnect||(e.open=!1),e.emitNotification("closing",t)},notifyOpened:function(){return e.emitNotification("opened")},notifyOpening:function(){e.open=!0,e.emitNotification("opening")},reverseButtons:function(){},releaseFocus:function(){T.remove(e)},trapFocus:function(t){e.isConnected&&(T.push(e),t&&t.focus())},registerContentEventHandler:function(t,o){e.contentElement.addEventListener(t,o)},deregisterContentEventHandler:function(t,o){e.contentElement.removeEventListener(t,o)},isScrollableContentAtTop:function(){var t=e.contentElement;return!!t&&0===t.scrollTop},isScrollableContentAtBottom:function(){var t=e.contentElement;return!!t&&Math.ceil(t.scrollHeight-t.scrollTop)===t.clientHeight},registerWindowEventHandler:function(e,t){window.addEventListener(e,t,y())},deregisterWindowEventHandler:function(e,t){window.removeEventListener(e,t,y())}})}},{key:"render",value:function(){var e=(0,a.A)({},h.STACKED,this.stacked),t=(0,C.qy)(b||(b=(0,n.A)([""])));this.heading&&(t=this.renderHeading());var o={"mdc-dialog__actions":!this.hideActions};return(0,C.qy)(x||(x=(0,n.A)([' <div class="mdc-dialog ','" role="alertdialog" aria-modal="true" aria-labelledby="title" aria-describedby="content"> <div class="mdc-dialog__container"> <div class="mdc-dialog__surface"> ',' <div id="content" class="mdc-dialog__content"> <slot id="contentSlot"></slot> </div> <footer id="actions" class="','"> <span> <slot name="secondaryAction"></slot> </span> <span> <slot name="primaryAction"></slot> </span> </footer> </div> </div> <div class="mdc-dialog__scrim"></div> </div>'])),(0,N.H)(e),t,(0,N.H)(o))}},{key:"renderHeading",value:function(){return(0,C.qy)(E||(E=(0,n.A)([' <h2 id="title" class="mdc-dialog__title">',"</h2>"])),this.heading)}},{key:"firstUpdated",value:function(){(0,l.A)(t,"firstUpdated",this,3)([]),this.mdcFoundation.setAutoStackButtons(!0),this.initialSupressDefaultPressSelector?this.suppressDefaultPressSelector=this.initialSupressDefaultPressSelector:this.suppressDefaultPressSelector=[this.suppressDefaultPressSelector,"mwc-textarea","mwc-menu mwc-list-item","mwc-select mwc-list-item"].join(", "),this.boundHandleClick=this.mdcFoundation.handleClick.bind(this.mdcFoundation),this.boundHandleKeydown=this.mdcFoundation.handleKeydown.bind(this.mdcFoundation),this.boundHandleDocumentKeydown=this.mdcFoundation.handleDocumentKeydown.bind(this.mdcFoundation)}},{key:"connectedCallback",value:function(){(0,l.A)(t,"connectedCallback",this,3)([]),this.open&&this.mdcFoundation&&!this.mdcFoundation.isOpen()&&(this.setEventListeners(),this.mdcFoundation.open())}},{key:"disconnectedCallback",value:function(){(0,l.A)(t,"disconnectedCallback",this,3)([]),this.open&&this.mdcFoundation&&(this.removeEventListeners(),this.closingDueToDisconnect=!0,this.mdcFoundation.close(this.currentAction||this.defaultAction),this.closingDueToDisconnect=!1,this.currentAction=void 0,T.remove(this))}},{key:"forceLayout",value:function(){this.mdcFoundation.layout()}},{key:"focus",value:function(){var e=this.getInitialFocusEl();e&&e.focus()}},{key:"blur",value:function(){if(this.shadowRoot){var e=this.shadowRoot.activeElement;if(e)e instanceof HTMLElement&&e.blur();else{var t=this.getRootNode(),o=t instanceof Document?t.activeElement:null;o instanceof HTMLElement&&o.blur()}}}},{key:"setEventListeners",value:function(){this.boundHandleClick&&this.mdcRoot.addEventListener("click",this.boundHandleClick),this.boundHandleKeydown&&this.mdcRoot.addEventListener("keydown",this.boundHandleKeydown,y()),this.boundHandleDocumentKeydown&&document.addEventListener("keydown",this.boundHandleDocumentKeydown,y())}},{key:"removeEventListeners",value:function(){this.boundHandleClick&&this.mdcRoot.removeEventListener("click",this.boundHandleClick),this.boundHandleKeydown&&this.mdcRoot.removeEventListener("keydown",this.boundHandleKeydown),this.boundHandleDocumentKeydown&&document.removeEventListener("keydown",this.boundHandleDocumentKeydown)}},{key:"close",value:function(){this.open=!1}},{key:"show",value:function(){this.open=!0}}])}(w.O);(0,m.__decorate)([(0,k.P)(".mdc-dialog")],I.prototype,"mdcRoot",void 0),(0,m.__decorate)([(0,k.P)('slot[name="primaryAction"]')],I.prototype,"primarySlot",void 0),(0,m.__decorate)([(0,k.P)('slot[name="secondaryAction"]')],I.prototype,"secondarySlot",void 0),(0,m.__decorate)([(0,k.P)("#contentSlot")],I.prototype,"contentSlot",void 0),(0,m.__decorate)([(0,k.P)(".mdc-dialog__content")],I.prototype,"contentElement",void 0),(0,m.__decorate)([(0,k.P)(".mdc-container")],I.prototype,"conatinerElement",void 0),(0,m.__decorate)([(0,k.MZ)({type:Boolean})],I.prototype,"hideActions",void 0),(0,m.__decorate)([(0,k.MZ)({type:Boolean}),(0,A.P)((function(){this.forceLayout()}))],I.prototype,"stacked",void 0),(0,m.__decorate)([(0,k.MZ)({type:String})],I.prototype,"heading",void 0),(0,m.__decorate)([(0,k.MZ)({type:String}),(0,A.P)((function(e){this.mdcFoundation.setScrimClickAction(e)}))],I.prototype,"scrimClickAction",void 0),(0,m.__decorate)([(0,k.MZ)({type:String}),(0,A.P)((function(e){this.mdcFoundation.setEscapeKeyAction(e)}))],I.prototype,"escapeKeyAction",void 0),(0,m.__decorate)([(0,k.MZ)({type:Boolean,reflect:!0}),(0,A.P)((function(e){this.mdcFoundation&&this.isConnected&&(e?(this.setEventListeners(),this.mdcFoundation.open()):(this.removeEventListeners(),this.mdcFoundation.close(this.currentAction||this.defaultAction),this.currentAction=void 0))}))],I.prototype,"open",void 0),(0,m.__decorate)([(0,k.MZ)()],I.prototype,"defaultAction",void 0),(0,m.__decorate)([(0,k.MZ)()],I.prototype,"actionAttribute",void 0),(0,m.__decorate)([(0,k.MZ)()],I.prototype,"initialFocusAttribute",void 0)},34599:function(e,t,o){"use strict";o.d(t,{R:function(){return a}});var i,n=o(64599),a=(0,o(70663).AH)(i||(i=(0,n.A)(['.mdc-dialog .mdc-dialog__surface{background-color:#fff;background-color:var(--mdc-theme-surface,#fff)}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0,0,0,.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0,0,0,.6)}.mdc-dialog .mdc-dialog__close{color:#000;color:var(--mdc-theme-on-surface,#000)}.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::after,.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::before{background-color:#000;background-color:var(--mdc-ripple-color,var(--mdc-theme-on-surface,#000))}.mdc-dialog .mdc-dialog__close.mdc-ripple-surface--hover .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:hover .mdc-icon-button__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:rgba(0,0,0,.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:0}.mdc-dialog.mdc-dialog-scroll-divider-header.mdc-dialog--fullscreen .mdc-dialog__header{box-shadow:0px 3px 1px -2px rgba(0,0,0,.2),0px 2px 2px 0px rgba(0,0,0,.14),0px 1px 5px 0px rgba(0,0,0,.12)}.mdc-dialog .mdc-dialog__surface{border-radius:4px;border-radius:var(--mdc-shape-medium,4px)}.mdc-dialog__surface{box-shadow:0px 11px 15px -7px rgba(0,0,0,.2),0px 24px 38px 3px rgba(0,0,0,.14),0px 9px 46px 8px rgba(0,0,0,.12)}.mdc-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight,500);letter-spacing:.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, .0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform,inherit)}.mdc-dialog__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight,400);letter-spacing:.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform,inherit)}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(.4, 0, .2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color,#fff)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:7;z-index:var(--mdc-dialog-z-index,7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width:592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width:592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width:960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width:720px)and (max-width:672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width:720px)and (min-width:672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width:720px)and (max-height:720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width:720px)and (min-height:720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width:720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width:720px)and (max-height:400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(max-width:600px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width:960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-dialog__surface[dir=rtl],[dir=rtl] .mdc-dialog__surface{text-align:right}@media screen and (forced-colors:active),(-ms-high-contrast:active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors:active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-dialog__title[dir=rtl],[dir=rtl] .mdc-dialog__title{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid transparent;display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors:active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid transparent}@media screen and (forced-colors:active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__header+.mdc-dialog__content,.mdc-dialog__title+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}@media screen and (forced-colors:active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}.mdc-dialog__button[dir=rtl],[dir=rtl] .mdc-dialog__button{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}.mdc-dialog__button:first-child[dir=rtl],[dir=rtl] .mdc-dialog__button:first-child{margin-left:0;margin-right:0}.mdc-dialog__button[dir=rtl],[dir=rtl] .mdc-dialog__button{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--closing,.mdc-dialog--open,.mdc-dialog--opening{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0s cubic-bezier(0, 0, .2, 1)}.mdc-dialog--closing .mdc-dialog__container,.mdc-dialog--closing .mdc-dialog__scrim{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1;z-index:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%}.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}#actions:not(.mdc-dialog__actions){display:none}.mdc-dialog__surface{box-shadow:var(--mdc-dialog-box-shadow,0px 11px 15px -7px rgba(0,0,0,.2),0px 24px 38px 3px rgba(0,0,0,.14),0px 9px 46px 8px rgba(0,0,0,.12))}@media(min-width:560px){.mdc-dialog .mdc-dialog__surface{max-width:560px;max-width:var(--mdc-dialog-max-width,560px)}}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0,0,0,.32);background-color:var(--mdc-dialog-scrim-color,rgba(0,0,0,.32))}.mdc-dialog .mdc-dialog__title{color:rgba(0,0,0,.87);color:var(--mdc-dialog-heading-ink-color,rgba(0,0,0,.87))}.mdc-dialog .mdc-dialog__content{color:rgba(0,0,0,.6);color:var(--mdc-dialog-content-ink-color,rgba(0,0,0,.6))}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-color:rgba(0,0,0,.12);border-color:var(--mdc-dialog-scroll-divider-color,rgba(0,0,0,.12))}.mdc-dialog .mdc-dialog__surface{min-width:280px;min-width:var(--mdc-dialog-min-width,280px)}.mdc-dialog .mdc-dialog__surface{max-height:var(--mdc-dialog-max-height,calc(100% - 32px))}#actions ::slotted(*){margin-left:8px;margin-right:0;max-width:100%;text-align:right}#actions ::slotted([dir=rtl]),[dir=rtl] #actions ::slotted(*){margin-left:0;margin-right:8px}#actions ::slotted([dir=rtl]),[dir=rtl] #actions ::slotted(*){text-align:left}.mdc-dialog--stacked #actions{flex-direction:column-reverse}.mdc-dialog--stacked #actions :not(:last-child) ::slotted(*){flex-basis:.000000001px;margin-top:12px}'])))},37153:function(e,t,o){var i,n,a,r,d,s,c,l,u,m,h,g,f,p,_,v,y,b=o(99556).default,x=o(71922).default,E=o(67620).default;o(42942),o(48062),o(71499),o(39805),o(95737),o(89655),o(18193),o(97099),o(39790),o(36016),o(98185),o(74268),o(24545),o(51855),o(82130),o(31743),o(22328),o(4959),o(62435),o(99019),o(96858),r=Symbol(),d=Symbol(),s=Symbol(),c=Symbol(),l=Symbol(),u=Symbol(),m=Symbol(),h=Symbol(),g=Symbol(),f=Symbol(),p=Symbol(),_=Symbol(),v=Symbol(),y=function(e){"use strict";return E((function e(){x(this,e),this[i]=[],this[n]=[],this[a]=new Set}),[{key:"destructor",value:function(){this[g](this[s]);var e=this;e[r]=null,e[s]=null,e[d]=null}},{key:"top",get:function(){var e=this[r];return e[e.length-1]||null}},{key:"push",value:function(e){e&&e!==this.top&&(this.remove(e),this[u](e),this[r].push(e))}},{key:"remove",value:function(e){var t=this[r].indexOf(e);return-1!==t&&(this[r].splice(t,1),t===this[r].length&&this[u](this.top),!0)}},{key:"pop",value:function(){var e=this.top;return e&&this.remove(e),e}},{key:"has",value:function(e){return-1!==this[r].indexOf(e)}},{key:e,value:function(e){var t=this[d],o=this[s];if(!e)return this[g](o),t.clear(),void(this[s]=[]);var i=this[f](e);if(i[i.length-1].parentNode!==document.body)throw Error("Non-connected element cannot be a blocking element");this[s]=i;var n=this[p](e);if(o.length){for(var a=o.length-1,r=i.length-1;a>0&&r>0&&o[a]===i[r];)a--,r--;o[a]!==i[r]&&this[m](o[a],i[r]),a>0&&this[g](o.slice(0,a)),r>0&&this[h](i.slice(0,r),n,null)}else this[h](i,n,t)}},{key:m,value:function(e,t){var o=e[c];this[_](e)&&!e.inert&&(e.inert=!0,o.add(e)),o.has(t)&&(t.inert=!1,o.delete(t)),t[l]=e[l],t[c]=o,e[l]=void 0,e[c]=void 0}},{key:g,value:function(e){var t,o=b(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;i[l].disconnect(),i[l]=void 0;var n,a=i[c],r=b(a);try{for(r.s();!(n=r.n()).done;)n.value.inert=!1}catch(d){r.e(d)}finally{r.f()}i[c]=void 0}}catch(d){o.e(d)}finally{o.f()}}},{key:h,value:function(e,t,o){var i,n=b(e);try{for(n.s();!(i=n.n()).done;){for(var a=i.value,r=a.parentNode,d=r.children,s=new Set,u=0;u<d.length;u++){var m=d[u];m===a||!this[_](m)||t&&t.has(m)||(o&&m.inert?o.add(m):(m.inert=!0,s.add(m)))}a[c]=s;var h=new MutationObserver(this[v].bind(this));a[l]=h;var g=r,f=g;f.__shady&&f.host&&(g=f.host),h.observe(g,{childList:!0})}}catch(p){n.e(p)}finally{n.f()}}},{key:v,value:function(e){var t,o=this[s],i=this[d],n=b(e);try{for(n.s();!(t=n.n()).done;){for(var a=t.value,r=a.target.host||a.target,l=r===document.body?o.length:o.indexOf(r),u=o[l-1],m=u[c],h=0;h<a.removedNodes.length;h++){var g=a.removedNodes[h];if(g===u)return console.info("Detected removal of the top Blocking Element."),void this.pop();m.has(g)&&(g.inert=!1,m.delete(g))}for(var f=0;f<a.addedNodes.length;f++){var p=a.addedNodes[f];this[_](p)&&(i&&p.inert?i.add(p):(p.inert=!0,m.add(p)))}}}catch(v){n.e(v)}finally{n.f()}}},{key:_,value:function(e){return!1===/^(style|template|script)$/.test(e.localName)}},{key:f,value:function(e){for(var t=[],o=e;o&&o!==document.body;)if(o.nodeType===Node.ELEMENT_NODE&&t.push(o),o.assignedSlot){for(;o=o.assignedSlot;)t.push(o);o=t.pop()}else o=o.parentNode||o.host;return t}},{key:p,value:function(e){var t=e.shadowRoot;if(!t)return null;var o,i,n,a=new Set,r=t.querySelectorAll("slot");if(r.length&&r[0].assignedNodes)for(o=0;o<r.length;o++)for(n=r[o].assignedNodes({flatten:!0}),i=0;i<n.length;i++)n[i].nodeType===Node.ELEMENT_NODE&&a.add(n[i]);return a}}])}((i=r,n=s,a=d,u)),document.$blockingElements=new y},69091:function(e,t,o){o(71499),o(95737),o(79243),o(18193),o(54774),o(33822),o(39790),o(74268),o(24545),o(51855),o(82130),o(31743),o(22328),o(4959),o(62435),o(99019),o(253),o(54846),o(66555),o(96858);var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}();function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(){if("undefined"!=typeof window&&"undefined"!=typeof Element){var e=Array.prototype.slice,t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","video","[contenteditable]"].join(","),a=function(){function a(e,t){n(this,a),this._inertManager=t,this._rootElement=e,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return i(a,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach((function(e){this._unmanageNode(e.node)}),this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var t=this;c(e,(function(e){return t._visitNode(e)}));var o=document.activeElement;if(!document.body.contains(e)){for(var i=e,n=void 0;i;){if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){n=i;break}i=i.parentNode}n&&(o=n.activeElement)}e.contains(o)&&(o.blur(),o===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){if(e.nodeType===Node.ELEMENT_NODE){var i=e;i!==this._rootElement&&i.hasAttribute("inert")&&this._adoptInertRoot(i),(t.call(i,o)||i.hasAttribute("tabindex"))&&this._manageNode(i)}}},{key:"_manageNode",value:function(e){var t=this._inertManager.register(e,this);this._managedNodes.add(t)}},{key:"_unmanageNode",value:function(e){var t=this._inertManager.deregister(e,this);t&&this._managedNodes.delete(t)}},{key:"_unmanageSubtree",value:function(e){var t=this;c(e,(function(e){return t._unmanageNode(e)}))}},{key:"_adoptInertRoot",value:function(e){var t=this._inertManager.getInertRoot(e);t||(this._inertManager.setInert(e,!0),t=this._inertManager.getInertRoot(e)),t.managedNodes.forEach((function(e){this._manageNode(e.node)}),this)}},{key:"_onMutation",value:function(t,o){t.forEach((function(t){var o=t.target;if("childList"===t.type)e.call(t.addedNodes).forEach((function(e){this._makeSubtreeUnfocusable(e)}),this),e.call(t.removedNodes).forEach((function(e){this._unmanageSubtree(e)}),this);else if("attributes"===t.type)if("tabindex"===t.attributeName)this._manageNode(o);else if(o!==this._rootElement&&"inert"===t.attributeName&&o.hasAttribute("inert")){this._adoptInertRoot(o);var i=this._inertManager.getInertRoot(o);this._managedNodes.forEach((function(e){o.contains(e.node)&&i._manageNode(e.node)}))}}),this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),a}(),r=function(){function e(t,o){n(this,e),this._node=t,this._overrodeFocusMethod=!1,this._inertRoots=new Set([o]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return i(e,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var e=this._node;null!==this._savedTabIndex?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var e=this.node;if(t.call(e,o)){if(-1===e.tabIndex&&this.hasSavedTabIndex)return;e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)}else e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),e}(),d=function(){function o(e){if(n(this,o),!e)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=e,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),l(e.head||e.body||e.documentElement),"loading"===e.readyState?e.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return i(o,[{key:"setInert",value:function(e,t){if(t){if(this._inertRoots.has(e))return;var o=new a(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,o),!this._document.body.contains(e))for(var i=e.parentNode;i;)11===i.nodeType&&l(i),i=i.parentNode}else{if(!this._inertRoots.has(e))return;this._inertRoots.get(e).destructor(),this._inertRoots.delete(e),e.removeAttribute("inert")}}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,t){var o=this._managedNodes.get(e);return void 0!==o?o.addInertRoot(t):o=new r(e,t),this._managedNodes.set(e,o),o}},{key:"deregister",value:function(e,t){var o=this._managedNodes.get(e);return o?(o.removeInertRoot(t),o.destroyed&&this._managedNodes.delete(e),o):null}},{key:"_onDocumentLoaded",value:function(){e.call(this._document.querySelectorAll("[inert]")).forEach((function(e){this.setInert(e,!0)}),this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(o,i){var n=this;o.forEach((function(o){switch(o.type){case"childList":e.call(o.addedNodes).forEach((function(o){if(o.nodeType===Node.ELEMENT_NODE){var i=e.call(o.querySelectorAll("[inert]"));t.call(o,"[inert]")&&i.unshift(o),i.forEach((function(e){this.setInert(e,!0)}),n)}}),n);break;case"attributes":if("inert"!==o.attributeName)return;var i=o.target,a=i.hasAttribute("inert");n.setInert(i,a)}}),this)}}]),o}();if(!HTMLElement.prototype.hasOwnProperty("inert")){var s=new d(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(e){s.setInert(this,e)}})}}function c(e,t,o){if(e.nodeType==Node.ELEMENT_NODE){var i=e;t&&t(i);var n=i.shadowRoot;if(n)return void c(n,t,n);if("content"==i.localName){for(var a=i,r=a.getDistributedNodes?a.getDistributedNodes():[],d=0;d<r.length;d++)c(r[d],t,o);return}if("slot"==i.localName){for(var s=i,l=s.assignedNodes?s.assignedNodes({flatten:!0}):[],u=0;u<l.length;u++)c(l[u],t,o);return}}for(var m=e.firstChild;null!=m;)c(m,t,o),m=m.nextSibling}function l(e){if(!e.querySelector("style#inert-style, link#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style"),t.textContent="\n[inert] {\n pointer-events: none;\n cursor: default;\n}\n\n[inert], [inert] * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n",e.appendChild(t)}}}()},28498:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=Array(t);o<t;o++)i[o]=e[o];return i},e.exports.__esModule=!0,e.exports.default=e.exports},71922:function(e,t,o){o(71499),e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},67620:function(e,t,o){var i=o(37571);function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}e.exports=function(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},99556:function(e,t,o){o(42942),o(48062),o(67336),o(71499),o(95737),o(39790),o(99019),o(96858);var i=o(28747);e.exports=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=i(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,d=!0,s=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return d=e.done,e},e:function(e){s=!0,r=e},f:function(){try{d||null==o.return||o.return()}finally{if(s)throw r}}}},e.exports.__esModule=!0,e.exports.default=e.exports},19822:function(e,t,o){o(67187),o(71499),o(6587),o(29193);var i=o(22711).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},37571:function(e,t,o){var i=o(22711).default,n=o(19822);e.exports=function(e){var t=n(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},22711:function(e,t,o){function i(t){return e.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}o(42942),o(48062),o(67336),o(95737),o(39790),o(99019),o(96858),e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},28747:function(e,t,o){o(52427),o(18193),o(50693),o(39790),o(36016),o(98185),o(7760),o(99019);var i=o(28498);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
|
|
//# sourceMappingURL=963.d3J9s2XnePY.js.map
|