"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("./query-assigned-elements-8EurZY45.js"),C=require("./property-DYTC_2-m.js"),J=require("./query-Dv2F3m_t.js"),Q=require("./utils-wMBJ9n_n.js"),A=require("./tslib.es6-CHeFCc6E.js"),F=require("./keyboard-CZlaSOb1.js"),Z=require("./foundation-pgmPu2iJ.js");/**
 * @license
 * Copyright 2020 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */var x;(function(o){o.RICH="mdc-tooltip--rich",o.SHOWN="mdc-tooltip--shown",o.SHOWING="mdc-tooltip--showing",o.SHOWING_TRANSITION="mdc-tooltip--showing-transition",o.HIDE="mdc-tooltip--hide",o.HIDE_TRANSITION="mdc-tooltip--hide-transition",o.MULTILINE_TOOLTIP="mdc-tooltip--multiline",o.SURFACE="mdc-tooltip__surface",o.SURFACE_ANIMATION="mdc-tooltip__surface-animation",o.TOOLTIP_CARET_TOP="mdc-tooltip__caret-surface-top",o.TOOLTIP_CARET_BOTTOM="mdc-tooltip__caret-surface-bottom"})(x||(x={}));var _={BOUNDED_ANCHOR_GAP:4,UNBOUNDED_ANCHOR_GAP:8,MIN_VIEWPORT_TOOLTIP_THRESHOLD:8,HIDE_DELAY_MS:600,SHOW_DELAY_MS:500,MIN_WIDTH:40,MIN_HEIGHT:24,MAX_WIDTH:200,CARET_INDENTATION:24,ANIMATION_SCALE:.8,RICH_MAX_WIDTH:320},W={ARIA_EXPANDED:"aria-expanded",ARIA_HASPOPUP:"aria-haspopup",PERSISTENT:"data-mdc-tooltip-persistent",HAS_CARET:"data-mdc-tooltip-has-caret"},K={HIDDEN:"MDCTooltip:hidden",SHOWN:"MDCTooltip:shown"},D;(function(o){o[o.DETECTED=0]="DETECTED",o[o.START=1]="START",o[o.CENTER=2]="CENTER",o[o.END=3]="END",o[o.SIDE_START=4]="SIDE_START",o[o.SIDE_END=5]="SIDE_END"})(D||(D={}));var H;(function(o){o[o.DETECTED=0]="DETECTED",o[o.ABOVE=1]="ABOVE",o[o.BELOW=2]="BELOW",o[o.SIDE=3]="SIDE"})(H||(H={}));var U;(function(o){o[o.BOUNDED=0]="BOUNDED",o[o.UNBOUNDED=1]="UNBOUNDED"})(U||(U={}));var c={LEFT:"left",RIGHT:"right",CENTER:"center",TOP:"top",BOTTOM:"bottom"},p;(function(o){o[o.DETECTED=0]="DETECTED",o[o.ABOVE_START=1]="ABOVE_START",o[o.ABOVE_CENTER=2]="ABOVE_CENTER",o[o.ABOVE_END=3]="ABOVE_END",o[o.TOP_SIDE_START=4]="TOP_SIDE_START",o[o.CENTER_SIDE_START=5]="CENTER_SIDE_START",o[o.BOTTOM_SIDE_START=6]="BOTTOM_SIDE_START",o[o.TOP_SIDE_END=7]="TOP_SIDE_END",o[o.CENTER_SIDE_END=8]="CENTER_SIDE_END",o[o.BOTTOM_SIDE_END=9]="BOTTOM_SIDE_END",o[o.BELOW_START=10]="BELOW_START",o[o.BELOW_CENTER=11]="BELOW_CENTER",o[o.BELOW_END=12]="BELOW_END"})(p||(p={}));var O;(function(o){o[o.ABOVE=1]="ABOVE",o[o.BELOW=2]="BELOW",o[o.SIDE_TOP=3]="SIDE_TOP",o[o.SIDE_CENTER=4]="SIDE_CENTER",o[o.SIDE_BOTTOM=5]="SIDE_BOTTOM"})(O||(O={}));var u;(function(o){o[o.START=1]="START",o[o.CENTER=2]="CENTER",o[o.END=3]="END",o[o.SIDE_START=4]="SIDE_START",o[o.SIDE_END=5]="SIDE_END"})(u||(u={}));/**
 * @license
 * Copyright 2016 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */var Y={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}};function X(o){return!!o.document&&typeof o.document.createElement=="function"}function $(o,r){if(X(o)&&r in Y){var t=o.document.createElement("div"),i=Y[r],e=i.standard,n=i.prefixed,a=e in t.style;return a?e:n}return r}/**
 * @license
 * Copyright 2020 Google Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */var tt=x.RICH,G=x.SHOWN,z=x.SHOWING,V=x.SHOWING_TRANSITION,M=x.HIDE,k=x.HIDE_TRANSITION,et=x.MULTILINE_TOOLTIP,q;(function(o){o.POLL_ANCHOR="poll_anchor"})(q||(q={}));var j=typeof window<"u",it=function(o){A.__extends(r,o);function r(t){var i=o.call(this,A.__assign(A.__assign({},r.defaultAdapter),t))||this;return i.tooltipShown=!1,i.anchorGap=_.BOUNDED_ANCHOR_GAP,i.xTooltipPos=D.DETECTED,i.yTooltipPos=H.DETECTED,i.tooltipPositionWithCaret=p.DETECTED,i.minViewportTooltipThreshold=_.MIN_VIEWPORT_TOOLTIP_THRESHOLD,i.hideDelayMs=_.HIDE_DELAY_MS,i.showDelayMs=_.SHOW_DELAY_MS,i.anchorRect=null,i.parentRect=null,i.frameId=null,i.hideTimeout=null,i.showTimeout=null,i.addAncestorScrollEventListeners=new Array,i.removeAncestorScrollEventListeners=new Array,i.animFrame=new F.AnimationFrame,i.anchorBlurHandler=function(e){i.handleAnchorBlur(e)},i.documentClickHandler=function(e){i.handleDocumentClick(e)},i.documentKeydownHandler=function(e){i.handleKeydown(e)},i.tooltipMouseEnterHandler=function(){i.handleTooltipMouseEnter()},i.tooltipMouseLeaveHandler=function(){i.handleTooltipMouseLeave()},i.richTooltipFocusOutHandler=function(e){i.handleRichTooltipFocusOut(e)},i.windowScrollHandler=function(){i.handleWindowScrollEvent()},i.windowResizeHandler=function(){i.handleWindowChangeEvent()},i}return Object.defineProperty(r,"defaultAdapter",{get:function(){return{getAttribute:function(){return null},setAttribute:function(){},removeAttribute:function(){},addClass:function(){},hasClass:function(){return!1},removeClass:function(){},getComputedStyleProperty:function(){return""},setStyleProperty:function(){},setSurfaceAnimationStyleProperty:function(){},getViewportWidth:function(){return 0},getViewportHeight:function(){return 0},getTooltipSize:function(){return{width:0,height:0}},getAnchorBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getParentBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getAnchorAttribute:function(){return null},setAnchorAttribute:function(){return null},isRTL:function(){return!1},anchorContainsElement:function(){return!1},tooltipContainsElement:function(){return!1},focusAnchorElement:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerAnchorEventHandler:function(){},deregisterAnchorEventHandler:function(){},registerDocumentEventHandler:function(){},deregisterDocumentEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){},notifyHidden:function(){},notifyShown:function(){},getTooltipCaretBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setTooltipCaretStyle:function(){},clearTooltipCaretStyles:function(){},getActiveElement:function(){return null},isInstanceOfElement:function(){return!1}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){this.richTooltip=this.adapter.hasClass(tt),this.persistentTooltip=this.adapter.getAttribute(W.PERSISTENT)==="true",this.interactiveTooltip=!!this.adapter.getAnchorAttribute(W.ARIA_EXPANDED)&&this.adapter.getAnchorAttribute(W.ARIA_HASPOPUP)==="dialog",this.hasCaret=this.richTooltip&&this.adapter.getAttribute(W.HAS_CARET)==="true"},r.prototype.isShown=function(){return this.tooltipShown},r.prototype.isRich=function(){return this.richTooltip},r.prototype.isPersistent=function(){return this.persistentTooltip},r.prototype.handleAnchorMouseEnter=function(){var t=this;this.tooltipShown?this.show():(this.clearHideTimeout(),this.showTimeout=setTimeout(function(){t.show()},this.showDelayMs))},r.prototype.handleAnchorTouchstart=function(){var t=this;this.showTimeout=setTimeout(function(){t.show()},this.showDelayMs),this.adapter.registerWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},r.prototype.preventContextMenuOnLongTouch=function(t){t.preventDefault()},r.prototype.tooltipContainsRelatedTargetElement=function(t){return this.adapter.isInstanceOfElement(t)&&this.adapter.tooltipContainsElement(t)},r.prototype.anchorOrTooltipContainsTargetElement=function(t){return this.adapter.isInstanceOfElement(t)&&(this.adapter.tooltipContainsElement(t)||this.adapter.anchorContainsElement(t))},r.prototype.handleAnchorTouchend=function(){this.clearShowTimeout(),this.isShown()||this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},r.prototype.handleAnchorFocus=function(t){var i=this;this.tooltipContainsRelatedTargetElement(t.relatedTarget)||(this.showTimeout=setTimeout(function(){i.show()},this.showDelayMs))},r.prototype.handleAnchorMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},r.prototype.handleAnchorClick=function(){this.tooltipShown?this.hide():this.show()},r.prototype.handleDocumentClick=function(t){this.richTooltip&&this.persistentTooltip&&this.anchorOrTooltipContainsTargetElement(t.target)||this.hide()},r.prototype.handleKeydown=function(t){var i=F.normalizeKey(t);if(i===F.KEY.ESCAPE){var e=this.adapter.getActiveElement(),n=!1;return this.adapter.isInstanceOfElement(e)&&(n=this.adapter.tooltipContainsElement(e)),n&&this.adapter.focusAnchorElement(),this.hide(),t.stopPropagation(),!1}return!0},r.prototype.handleAnchorBlur=function(t){this.richTooltip&&(t.relatedTarget===null||this.tooltipContainsRelatedTargetElement(t.relatedTarget))||this.hide()},r.prototype.handleTooltipMouseEnter=function(){this.show()},r.prototype.handleTooltipMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},r.prototype.handleRichTooltipFocusOut=function(t){this.anchorOrTooltipContainsTargetElement(t.relatedTarget)||t.relatedTarget===null&&this.interactiveTooltip||this.hide()},r.prototype.handleWindowScrollEvent=function(){this.persistentTooltip||this.hide()},r.prototype.handleWindowChangeEvent=function(){var t=this;this.animFrame.request(q.POLL_ANCHOR,function(){t.repositionTooltipOnAnchorMove()})},r.prototype.show=function(){var t,i,e=this;if(this.clearHideTimeout(),this.clearShowTimeout(),!this.tooltipShown){this.tooltipShown=!0,this.adapter.removeAttribute("aria-hidden"),this.richTooltip&&(this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","true"),this.adapter.registerEventHandler("focusout",this.richTooltipFocusOutHandler)),this.persistentTooltip||(this.adapter.registerEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.registerEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.removeClass(M),this.adapter.addClass(z),this.isTooltipMultiline()&&!this.richTooltip&&this.adapter.addClass(et),this.anchorRect=this.adapter.getAnchorBoundingRect(),this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip(),this.adapter.registerAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.registerDocumentEventHandler("click",this.documentClickHandler),this.adapter.registerDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.registerWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler);try{for(var n=A.__values(this.addAncestorScrollEventListeners),a=n.next();!a.done;a=n.next()){var d=a.value;d()}}catch(h){t={error:h}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}this.frameId=requestAnimationFrame(function(){e.clearAllAnimationClasses(),e.adapter.addClass(G),e.adapter.addClass(V)})}},r.prototype.hide=function(){var t,i;if(this.clearHideTimeout(),this.clearShowTimeout(),!!this.tooltipShown){this.frameId&&cancelAnimationFrame(this.frameId),this.tooltipShown=!1,this.adapter.setAttribute("aria-hidden","true"),this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.richTooltip&&this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","false"),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.clearAllAnimationClasses(),this.adapter.addClass(M),this.adapter.addClass(k),this.adapter.removeClass(G),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch);try{for(var e=A.__values(this.removeAncestorScrollEventListeners),n=e.next();!n.done;n=e.next()){var a=n.value;a()}}catch(d){t={error:d}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(t)throw t.error}}}},r.prototype.handleTransitionEnd=function(){var t=this.adapter.hasClass(M);this.adapter.removeClass(z),this.adapter.removeClass(V),this.adapter.removeClass(M),this.adapter.removeClass(k),t&&this.showTimeout===null?this.adapter.notifyHidden():t||this.adapter.notifyShown()},r.prototype.clearAllAnimationClasses=function(){this.adapter.removeClass(V),this.adapter.removeClass(k)},r.prototype.setTooltipPosition=function(t){var i=t.xPos,e=t.yPos,n=t.withCaretPos;if(this.hasCaret&&n){this.tooltipPositionWithCaret=n;return}i&&(this.xTooltipPos=i),e&&(this.yTooltipPos=e)},r.prototype.setAnchorBoundaryType=function(t){t===U.UNBOUNDED?this.anchorGap=_.UNBOUNDED_ANCHOR_GAP:this.anchorGap=_.BOUNDED_ANCHOR_GAP},r.prototype.setShowDelay=function(t){this.showDelayMs=t},r.prototype.setHideDelay=function(t){this.hideDelayMs=t},r.prototype.isTooltipMultiline=function(){var t=this.adapter.getTooltipSize();return t.height>_.MIN_HEIGHT&&t.width>=_.MAX_WIDTH},r.prototype.positionPlainTooltip=function(){var t=this.calculateTooltipStyles(this.anchorRect),i=t.top,e=t.yTransformOrigin,n=t.left,a=t.xTransformOrigin,d=j?$(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(d+"-origin",a+" "+e),this.adapter.setStyleProperty("top",i+"px"),this.adapter.setStyleProperty("left",n+"px")},r.prototype.positionRichTooltip=function(){var t,i,e,n;this.adapter.setStyleProperty("width",""),this.adapter.setStyleProperty("left","-"+_.RICH_MAX_WIDTH+"px");var a=Number(this.adapter.getComputedStyleProperty("width").slice(0,-2)),d=isFinite(a)?a:_.RICH_MAX_WIDTH,h=Math.max(this.adapter.getViewportWidth()-2*_.MIN_VIEWPORT_TOOLTIP_THRESHOLD,_.MIN_WIDTH),s=Math.min(h,d);this.adapter.setStyleProperty("width",s+"px");var l=this.hasCaret?this.calculateTooltipWithCaretStyles(this.anchorRect):this.calculateTooltipStyles(this.anchorRect),m=l.top,y=l.yTransformOrigin,v=l.left,f=l.xTransformOrigin,E=j?$(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(E+"-origin",f+" "+y);var g=v-((i=(t=this.parentRect)===null||t===void 0?void 0:t.left)!==null&&i!==void 0?i:0),T=m-((n=(e=this.parentRect)===null||e===void 0?void 0:e.top)!==null&&n!==void 0?n:0);this.adapter.setStyleProperty("top",T+"px"),this.adapter.setStyleProperty("left",g+"px")},r.prototype.calculateTooltipStyles=function(t){if(!t)return{top:0,left:0};var i=this.adapter.getTooltipSize(),e=this.calculateYTooltipDistance(t,i.height),n=this.calculateXTooltipDistance(t,i.width);return{top:e.distance,yTransformOrigin:e.yTransformOrigin,left:n.distance,xTransformOrigin:n.xTransformOrigin}},r.prototype.calculateXTooltipDistance=function(t,i){var e=!this.adapter.isRTL(),n,a,d,h,s,l,m;if(this.richTooltip)n=e?t.left-i:t.right,a=e?t.right:t.left-i,l=e?c.RIGHT:c.LEFT,m=e?c.LEFT:c.RIGHT;else{n=e?t.left:t.right-i,a=e?t.right-i:t.left,d=t.left+(t.width-i)/2;var y=t.left-(i+this.anchorGap),v=t.right+this.anchorGap;h=e?y:v,s=e?v:y,l=e?c.LEFT:c.RIGHT,m=e?c.RIGHT:c.LEFT}var f=[n,d,a];this.xTooltipPos===D.SIDE_START?f.push(h):this.xTooltipPos===D.SIDE_END&&f.push(s);var E=this.richTooltip?this.determineValidPositionOptions(n,a):this.determineValidPositionOptions.apply(this,A.__spreadArray([],A.__read(f)));if(this.xTooltipPos===D.START&&E.has(n))return{distance:n,xTransformOrigin:l};if(this.xTooltipPos===D.END&&E.has(a))return{distance:a,xTransformOrigin:m};if(this.xTooltipPos===D.CENTER&&E.has(d))return{distance:d,xTransformOrigin:c.CENTER};if(this.xTooltipPos===D.SIDE_START&&E.has(h))return{distance:h,xTransformOrigin:m};if(this.xTooltipPos===D.SIDE_END&&E.has(s))return{distance:s,xTransformOrigin:l};var g=this.richTooltip?[{distance:a,xTransformOrigin:m},{distance:n,xTransformOrigin:l}]:[{distance:d,xTransformOrigin:c.CENTER},{distance:n,xTransformOrigin:l},{distance:a,xTransformOrigin:m}],T=g.find(function(I){var b=I.distance;return E.has(b)});if(T)return T;if(t.left<0)return{distance:this.minViewportTooltipThreshold,xTransformOrigin:c.LEFT};var w=this.adapter.getViewportWidth(),R=w-(i+this.minViewportTooltipThreshold);return{distance:R,xTransformOrigin:c.RIGHT}},r.prototype.determineValidPositionOptions=function(){for(var t,i,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var a=new Set,d=new Set;try{for(var h=A.__values(e),s=h.next();!s.done;s=h.next()){var l=s.value;this.positionHonorsViewportThreshold(l)?a.add(l):this.positionDoesntCollideWithViewport(l)&&d.add(l)}}catch(m){t={error:m}}finally{try{s&&!s.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return a.size?a:d},r.prototype.positionHonorsViewportThreshold=function(t){var i=this.adapter.getViewportWidth(),e=this.adapter.getTooltipSize().width;return t+e<=i-this.minViewportTooltipThreshold&&t>=this.minViewportTooltipThreshold},r.prototype.positionDoesntCollideWithViewport=function(t){var i=this.adapter.getViewportWidth(),e=this.adapter.getTooltipSize().width;return t+e<=i&&t>=0},r.prototype.calculateYTooltipDistance=function(t,i){var e=t.bottom+this.anchorGap,n=t.top-(this.anchorGap+i),a=t.top+t.height/2,d=a-i/2,h=[n,e];this.yTooltipPos===H.SIDE&&h.push(d);var s=this.determineValidYPositionOptions.apply(this,A.__spreadArray([],A.__read(h)));return this.yTooltipPos===H.ABOVE&&s.has(n)?{distance:n,yTransformOrigin:c.BOTTOM}:this.yTooltipPos===H.BELOW&&s.has(e)?{distance:e,yTransformOrigin:c.TOP}:this.yTooltipPos===H.SIDE&&s.has(d)?{distance:d,yTransformOrigin:c.CENTER}:s.has(e)?{distance:e,yTransformOrigin:c.TOP}:s.has(n)?{distance:n,yTransformOrigin:c.BOTTOM}:{distance:e,yTransformOrigin:c.TOP}},r.prototype.determineValidYPositionOptions=function(){for(var t,i,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var a=new Set,d=new Set;try{for(var h=A.__values(e),s=h.next();!s.done;s=h.next()){var l=s.value;this.yPositionHonorsViewportThreshold(l)?a.add(l):this.yPositionDoesntCollideWithViewport(l)&&d.add(l)}}catch(m){t={error:m}}finally{try{s&&!s.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return a.size?a:d},r.prototype.yPositionHonorsViewportThreshold=function(t){var i=this.adapter.getViewportHeight(),e=this.adapter.getTooltipSize().height;return t+e+this.minViewportTooltipThreshold<=i&&t>=this.minViewportTooltipThreshold},r.prototype.yPositionDoesntCollideWithViewport=function(t){var i=this.adapter.getViewportHeight(),e=this.adapter.getTooltipSize().height;return t+e<=i&&t>=0},r.prototype.calculateTooltipWithCaretStyles=function(t){this.adapter.clearTooltipCaretStyles();var i=this.adapter.getTooltipCaretBoundingRect();if(!t||!i)return{position:p.DETECTED,top:0,left:0};var e=i.width/_.ANIMATION_SCALE,n=i.height/_.ANIMATION_SCALE/2,a=this.adapter.getTooltipSize(),d=this.calculateYWithCaretDistanceOptions(t,a.height,{caretWidth:e,caretHeight:n}),h=this.calculateXWithCaretDistanceOptions(t,a.width,{caretWidth:e,caretHeight:n}),s=this.validateTooltipWithCaretDistances(d,h);s.size<1&&(s=this.generateBackupPositionOption(t,a,{caretWidth:e,caretHeight:n}));var l=this.determineTooltipWithCaretDistance(s),m=l.position,y=l.xDistance,v=l.yDistance,f=this.setCaretPositionStyles(m,{caretWidth:e,caretHeight:n}),E=f.yTransformOrigin,g=f.xTransformOrigin;return{yTransformOrigin:E,xTransformOrigin:g,top:v,left:y}},r.prototype.calculateXWithCaretDistanceOptions=function(t,i,e){var n=e.caretWidth,a=e.caretHeight,d=!this.adapter.isRTL(),h=t.left+t.width/2,s=t.left-(i+this.anchorGap+a),l=t.right+this.anchorGap+a,m=d?s:l,y=d?l:s,v=h-(_.CARET_INDENTATION+n/2),f=h-(i-_.CARET_INDENTATION-n/2),E=d?v:f,g=d?f:v,T=h-i/2,w=new Map([[u.START,E],[u.CENTER,T],[u.END,g],[u.SIDE_END,y],[u.SIDE_START,m]]);return w},r.prototype.calculateYWithCaretDistanceOptions=function(t,i,e){var n=e.caretWidth,a=e.caretHeight,d=t.top+t.height/2,h=t.bottom+this.anchorGap+a,s=t.top-(this.anchorGap+i+a),l=d-(_.CARET_INDENTATION+n/2),m=d-i/2,y=d-(i-_.CARET_INDENTATION-n/2),v=new Map([[O.ABOVE,s],[O.BELOW,h],[O.SIDE_TOP,l],[O.SIDE_CENTER,m],[O.SIDE_BOTTOM,y]]);return v},r.prototype.repositionTooltipOnAnchorMove=function(){var t=this.adapter.getAnchorBoundingRect();if(!(!t||!this.anchorRect)){var i=this.adapter.getViewportHeight();t.top+t.height<0||t.bottom-t.height>=i||(t.top!==this.anchorRect.top||t.left!==this.anchorRect.left||t.height!==this.anchorRect.height||t.width!==this.anchorRect.width)&&(this.anchorRect=t,this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip())}},r.prototype.validateTooltipWithCaretDistances=function(t,i){var e,n,a,d,h,s,l=new Map,m=new Map,y=new Map([[O.ABOVE,[u.START,u.CENTER,u.END]],[O.BELOW,[u.START,u.CENTER,u.END]],[O.SIDE_TOP,[u.SIDE_START,u.SIDE_END]],[O.SIDE_CENTER,[u.SIDE_START,u.SIDE_END]],[O.SIDE_BOTTOM,[u.SIDE_START,u.SIDE_END]]]);try{for(var v=A.__values(y.keys()),f=v.next();!f.done;f=v.next()){var E=f.value,g=t.get(E);if(this.yPositionHonorsViewportThreshold(g))try{for(var T=(a=void 0,A.__values(y.get(E))),w=T.next();!w.done;w=T.next()){var R=w.value,I=i.get(R);if(this.positionHonorsViewportThreshold(I)){var b=this.caretPositionOptionsMapping(R,E);l.set(b,{xDistance:I,yDistance:g})}}}catch(L){a={error:L}}finally{try{w&&!w.done&&(d=T.return)&&d.call(T)}finally{if(a)throw a.error}}if(this.yPositionDoesntCollideWithViewport(g))try{for(var B=(h=void 0,A.__values(y.get(E))),P=B.next();!P.done;P=B.next()){var R=P.value,I=i.get(R);if(this.positionDoesntCollideWithViewport(I)){var b=this.caretPositionOptionsMapping(R,E);m.set(b,{xDistance:I,yDistance:g})}}}catch(L){h={error:L}}finally{try{P&&!P.done&&(s=B.return)&&s.call(B)}finally{if(h)throw h.error}}}}catch(L){e={error:L}}finally{try{f&&!f.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}return l.size?l:m},r.prototype.generateBackupPositionOption=function(t,i,e){var n=!this.adapter.isRTL(),a,d;if(t.left<0)a=this.minViewportTooltipThreshold+e.caretHeight,d=n?u.END:u.START;else{var h=this.adapter.getViewportWidth();a=h-(i.width+this.minViewportTooltipThreshold+e.caretHeight),d=n?u.START:u.END}var s,l;if(t.top<0)s=this.minViewportTooltipThreshold+e.caretHeight,l=O.BELOW;else{var m=this.adapter.getViewportHeight();s=m-(i.height+this.minViewportTooltipThreshold+e.caretHeight),l=O.ABOVE}var y=this.caretPositionOptionsMapping(d,l);return new Map([[y,{xDistance:a,yDistance:s}]])},r.prototype.determineTooltipWithCaretDistance=function(t){if(t.has(this.tooltipPositionWithCaret)){var i=t.get(this.tooltipPositionWithCaret);return{position:this.tooltipPositionWithCaret,xDistance:i.xDistance,yDistance:i.yDistance}}var e=[p.ABOVE_START,p.ABOVE_CENTER,p.ABOVE_END,p.TOP_SIDE_START,p.CENTER_SIDE_START,p.BOTTOM_SIDE_START,p.TOP_SIDE_END,p.CENTER_SIDE_END,p.BOTTOM_SIDE_END,p.BELOW_START,p.BELOW_CENTER,p.BELOW_END],n=e.find(function(d){return t.has(d)}),a=t.get(n);return{position:n,xDistance:a.xDistance,yDistance:a.yDistance}},r.prototype.caretPositionOptionsMapping=function(t,i){switch(i){case O.ABOVE:if(t===u.START)return p.ABOVE_START;if(t===u.CENTER)return p.ABOVE_CENTER;if(t===u.END)return p.ABOVE_END;break;case O.BELOW:if(t===u.START)return p.BELOW_START;if(t===u.CENTER)return p.BELOW_CENTER;if(t===u.END)return p.BELOW_END;break;case O.SIDE_TOP:if(t===u.SIDE_START)return p.TOP_SIDE_START;if(t===u.SIDE_END)return p.TOP_SIDE_END;break;case O.SIDE_CENTER:if(t===u.SIDE_START)return p.CENTER_SIDE_START;if(t===u.SIDE_END)return p.CENTER_SIDE_END;break;case O.SIDE_BOTTOM:if(t===u.SIDE_START)return p.BOTTOM_SIDE_START;if(t===u.SIDE_END)return p.BOTTOM_SIDE_END;break}throw new Error("MDCTooltipFoundation: Invalid caret position of "+t+", "+i)},r.prototype.setCaretPositionStyles=function(t,i){var e,n,a=this.calculateCaretPositionOnTooltip(t,i);if(!a)return{yTransformOrigin:0,xTransformOrigin:0};this.adapter.clearTooltipCaretStyles(),this.adapter.setTooltipCaretStyle(a.yAlignment,a.yAxisPx),this.adapter.setTooltipCaretStyle(a.xAlignment,a.xAxisPx);var d=a.skew*(Math.PI/180),h=Math.cos(d);this.adapter.setTooltipCaretStyle("transform","rotate("+a.rotation+"deg) skewY("+a.skew+"deg) scaleX("+h+")"),this.adapter.setTooltipCaretStyle("transform-origin",a.xAlignment+" "+a.yAlignment);try{for(var s=A.__values(a.caretCorners),l=s.next();!l.done;l=s.next()){var m=l.value;this.adapter.setTooltipCaretStyle(m,"0")}}catch(y){e={error:y}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return{yTransformOrigin:a.yTransformOrigin,xTransformOrigin:a.xTransformOrigin}},r.prototype.calculateCaretPositionOnTooltip=function(t,i){var e=!this.adapter.isRTL(),n=this.adapter.getComputedStyleProperty("width"),a=this.adapter.getComputedStyleProperty("height");if(!(!n||!a||!i)){var d="calc(("+n+" - "+i.caretWidth+"px) / 2)",h="calc(("+a+" - "+i.caretWidth+"px) / 2)",s="0",l=_.CARET_INDENTATION+"px",m="calc("+n+" - "+l+")",y="calc("+a+" - "+l+")",v=35,f=Math.abs(90-v),E=["border-bottom-right-radius","border-top-left-radius"],g=["border-bottom-left-radius","border-top-right-radius"],T=20;switch(t){case p.BELOW_CENTER:return{yAlignment:c.TOP,xAlignment:c.LEFT,yAxisPx:s,xAxisPx:d,rotation:-1*v,skew:-1*T,xTransformOrigin:d,yTransformOrigin:s,caretCorners:E};case p.BELOW_END:return{yAlignment:c.TOP,xAlignment:e?c.RIGHT:c.LEFT,yAxisPx:s,xAxisPx:l,rotation:e?v:-1*v,skew:e?T:-1*T,xTransformOrigin:e?m:l,yTransformOrigin:s,caretCorners:e?g:E};case p.BELOW_START:return{yAlignment:c.TOP,xAlignment:e?c.LEFT:c.RIGHT,yAxisPx:s,xAxisPx:l,rotation:e?-1*v:v,skew:e?-1*T:T,xTransformOrigin:e?l:m,yTransformOrigin:s,caretCorners:e?E:g};case p.TOP_SIDE_END:return{yAlignment:c.TOP,xAlignment:e?c.LEFT:c.RIGHT,yAxisPx:l,xAxisPx:s,rotation:e?f:-1*f,skew:e?-1*T:T,xTransformOrigin:e?s:n,yTransformOrigin:l,caretCorners:e?E:g};case p.CENTER_SIDE_END:return{yAlignment:c.TOP,xAlignment:e?c.LEFT:c.RIGHT,yAxisPx:h,xAxisPx:s,rotation:e?f:-1*f,skew:e?-1*T:T,xTransformOrigin:e?s:n,yTransformOrigin:h,caretCorners:e?E:g};case p.BOTTOM_SIDE_END:return{yAlignment:c.BOTTOM,xAlignment:e?c.LEFT:c.RIGHT,yAxisPx:l,xAxisPx:s,rotation:e?-1*f:f,skew:e?T:-1*T,xTransformOrigin:e?s:n,yTransformOrigin:y,caretCorners:e?g:E};case p.TOP_SIDE_START:return{yAlignment:c.TOP,xAlignment:e?c.RIGHT:c.LEFT,yAxisPx:l,xAxisPx:s,rotation:e?-1*f:f,skew:e?T:-1*T,xTransformOrigin:e?n:s,yTransformOrigin:l,caretCorners:e?g:E};case p.CENTER_SIDE_START:return{yAlignment:c.TOP,xAlignment:e?c.RIGHT:c.LEFT,yAxisPx:h,xAxisPx:s,rotation:e?-1*f:f,skew:e?T:-1*T,xTransformOrigin:e?n:s,yTransformOrigin:h,caretCorners:e?g:E};case p.BOTTOM_SIDE_START:return{yAlignment:c.BOTTOM,xAlignment:e?c.RIGHT:c.LEFT,yAxisPx:l,xAxisPx:s,rotation:e?f:-1*f,skew:e?-1*T:T,xTransformOrigin:e?n:s,yTransformOrigin:y,caretCorners:e?E:g};case p.ABOVE_CENTER:return{yAlignment:c.BOTTOM,xAlignment:c.LEFT,yAxisPx:s,xAxisPx:d,rotation:v,skew:T,xTransformOrigin:d,yTransformOrigin:a,caretCorners:g};case p.ABOVE_END:return{yAlignment:c.BOTTOM,xAlignment:e?c.RIGHT:c.LEFT,yAxisPx:s,xAxisPx:l,rotation:e?-1*v:v,skew:e?-1*T:T,xTransformOrigin:e?m:l,yTransformOrigin:a,caretCorners:e?E:g};default:case p.ABOVE_START:return{yAlignment:c.BOTTOM,xAlignment:e?c.LEFT:c.RIGHT,yAxisPx:s,xAxisPx:l,rotation:e?v:-1*v,skew:e?T:-1*T,xTransformOrigin:e?l:m,yTransformOrigin:a,caretCorners:e?g:E}}}},r.prototype.clearShowTimeout=function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)},r.prototype.clearHideTimeout=function(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},r.prototype.attachScrollHandler=function(t){var i=this;this.addAncestorScrollEventListeners.push(function(){t("scroll",i.windowScrollHandler)})},r.prototype.removeScrollHandler=function(t){var i=this;this.removeAncestorScrollEventListeners.push(function(){t("scroll",i.windowScrollHandler)})},r.prototype.destroy=function(){var t,i;this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.clearHideTimeout(),this.clearShowTimeout(),this.adapter.removeClass(G),this.adapter.removeClass(V),this.adapter.removeClass(z),this.adapter.removeClass(M),this.adapter.removeClass(k),this.richTooltip&&this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler);try{for(var e=A.__values(this.removeAncestorScrollEventListeners),n=e.next();!n.done;n=e.next()){var a=n.value;a()}}catch(d){t={error:d}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(t)throw t.error}}this.animFrame.cancelAll()},r}(Z.MDCFoundation);const rt='.mdc-tooltip__surface,.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-tooltip__surface{color:#fff;color:var(--mdc-theme-text-primary-on-dark, white)}.mdc-tooltip__surface{background-color:#0009}.mdc-tooltip__title{color:#000000de;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, .87))}.mdc-tooltip__content{color:#0009}.mdc-tooltip__content-link{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tooltip__interactive-content{overflow-x:unset;overflow-y:auto}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:#fff}.mdc-tooltip__surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip--rich .mdc-tooltip__surface{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:4px;line-height:20px}.mdc-tooltip__surface .mdc-tooltip__title{display:block}.mdc-tooltip__surface .mdc-tooltip__title:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-tooltip__surface .mdc-tooltip__title{margin-top:0;line-height:20px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-tooltip__surface .mdc-tooltip__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity .15s 0ms cubic-bezier(0,0,.2,1),transform .15s 0ms cubic-bezier(0,0,.2,1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface:before{border-color:CanvasText}}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:184px;margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:304px;align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(.9396926208)}.mdc-tooltip__caret-surface-bottom{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;outline:1px solid transparent;z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:var(--cv-theme-surface-container)}.mdc-tooltip .mdc-tooltip__title,.mdc-tooltip .mdc-tooltip__content{color:var(--cv-theme-on-surface-variant)}.mdc-tooltip .mdc-tooltip__content-link{color:var(--mdc-theme-accent)}';var ot=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,S=(o,r,t,i)=>{for(var e=i>1?void 0:i?nt(r,t):r,n=o.length-1,a;n>=0;n--)(a=o[n])&&(e=(i?a(r,t,e):a(e))||e);return i&&e&&ot(r,t,e),e};exports.CovalentTooltip=class extends N.s{constructor(){super(...arguments),this.mdcFoundationClass=it}createAdapter(){return{...Q.addHasRemoveClass(this.mdcRoot),getAttribute:r=>this.mdcRoot.getAttribute(r),setAttribute:(r,t)=>this.mdcRoot.setAttribute(r,t),removeAttribute:r=>this.mdcRoot.removeAttribute(r),getComputedStyleProperty:r=>getComputedStyle(this.mdcRoot,r).cssText,setStyleProperty:(r,t)=>this.mdcRoot.style.setProperty(r,t),setSurfaceAnimationStyleProperty:(r,t)=>this.mdcSurface.style.setProperty(r,t),getViewportWidth:()=>Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),getViewportHeight:()=>Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),getTooltipSize:()=>Object.assign({width:this.mdcRoot.clientWidth,height:this.mdcRoot.clientHeight}),getTooltipCaretBoundingRect:()=>this.mdcRoot.getBoundingClientRect()??null,getAnchorBoundingRect:()=>{var r;return((r=this.anchor)==null?void 0:r.getBoundingClientRect())??null},getParentBoundingRect:()=>{var r;return((r=this.renderRoot.getRootNode().parentElement)==null?void 0:r.getBoundingClientRect())??null},getAnchorAttribute:r=>{var t;return((t=this.anchor)==null?void 0:t.getAttribute(r))??null},setAnchorAttribute:(r,t)=>{var i;return(i=this.anchor)==null?void 0:i.setAttribute(r,t)},isRTL:()=>!1,isInstanceOfElement:r=>r instanceof Element,anchorContainsElement:r=>{var t;return((t=this.anchor)==null?void 0:t.contains(r))??!1},tooltipContainsElement:r=>this.contains(r),focusAnchorElement:()=>{var r;return(r=this.anchor)==null?void 0:r.focus()},registerEventHandler:(r,t)=>{var i;return(i=this.mdcRoot)==null?void 0:i.addEventListener(r,t)},deregisterEventHandler:(r,t)=>{var i;return(i=this.mdcRoot)==null?void 0:i.removeEventListener(r,t)},registerAnchorEventHandler:(r,t)=>{var i;return(i=this.anchor)==null?void 0:i.addEventListener(r,t)},deregisterAnchorEventHandler:(r,t)=>{var i;return(i=this.anchor)==null?void 0:i.removeEventListener(r,t)},registerDocumentEventHandler:(r,t)=>document.addEventListener(r,t),deregisterDocumentEventHandler:(r,t)=>document.removeEventListener(r,t),registerWindowEventHandler:(r,t)=>window.addEventListener(r,t),deregisterWindowEventHandler:(r,t)=>window.removeEventListener(r,t),notifyHidden:()=>this.dispatchEvent(new Event(K.HIDDEN)),notifyShown:()=>this.dispatchEvent(new Event(K.SHOWN)),setTooltipCaretStyle:()=>{},clearTooltipCaretStyles:()=>{},getActiveElement:()=>document.activeElement}}updated(r){super.updated(r),this.showDelay!==void 0&&!isNaN(this.showDelay)&&this.mdcFoundation.setShowDelay(this.showDelay),this.hideDelay!==void 0&&!isNaN(this.hideDelay)&&this.mdcFoundation.setHideDelay(this.hideDelay)}async firstUpdated(){var r,t,i,e,n;this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),(r=this.anchor)==null||r.addEventListener("click",()=>this.mdcFoundation.handleAnchorClick()),(t=this.anchor)==null||t.addEventListener("mouseenter",()=>this.mdcFoundation.handleAnchorMouseEnter()),(i=this.anchor)==null||i.addEventListener("touchstart",()=>this.mdcFoundation.handleAnchorTouchstart()),this.persistent||((e=this.anchor)==null||e.addEventListener("mouseleave",()=>this.mdcFoundation.handleAnchorMouseLeave()),(n=this.anchor)==null||n.addEventListener("touchend",()=>this.mdcFoundation.handleAnchorTouchend()))}disconnectedCallback(){var r,t,i,e,n;super.connectedCallback(),(r=this.anchor)==null||r.removeEventListener("click",()=>this.mdcFoundation.handleAnchorClick()),(t=this.anchor)==null||t.removeEventListener("mouseenter",()=>this.mdcFoundation.handleAnchorMouseEnter()),(i=this.anchor)==null||i.removeEventListener("mouseleave",()=>this.mdcFoundation.handleAnchorMouseLeave()),(e=this.anchor)==null||e.removeEventListener("touchstart",()=>this.mdcFoundation.handleAnchorTouchstart()),(n=this.anchor)==null||n.removeEventListener("touchend",()=>this.mdcFoundation.handleAnchorTouchend())}render(){return N.x`
      <div
        class="mdc-tooltip ${this.rich?"mdc-tooltip--rich":""}"
        role="tooltip"
        aria-hidden="true"
        data-mdc-tooltip-persistent="true"
      >
        <div class="mdc-tooltip__surface mdc-tooltip__surface-animation">
          ${this.rich?N.x`<div class="mdc-tooltip__title">${this.richTitle}</div>
                <div class="mdc-tooltip__content">
                  <slot></slot>
                </div>
                <div class="mdc-tooltip--rich-actions">
                  <slot name="actionItems"></slot>
                </div>`:N.x`<slot></slot>`}
        </div>
      </div>
    `}};exports.CovalentTooltip.styles=[N.i`
      ${N.r(rt)}
    `];S([J.i(".mdc-tooltip")],exports.CovalentTooltip.prototype,"mdcRoot",2);S([J.i(".mdc-tooltip__surface")],exports.CovalentTooltip.prototype,"mdcSurface",2);S([C.n({type:Object})],exports.CovalentTooltip.prototype,"anchor",2);S([C.n()],exports.CovalentTooltip.prototype,"richTitle",2);S([C.n({type:Boolean,reflect:!0})],exports.CovalentTooltip.prototype,"rich",2);S([C.n({type:Boolean,reflect:!0})],exports.CovalentTooltip.prototype,"persistent",2);S([C.n({type:Number})],exports.CovalentTooltip.prototype,"showDelay",2);S([C.n({type:Number})],exports.CovalentTooltip.prototype,"hideDelay",2);exports.CovalentTooltip=S([N.e("cv-tooltip")],exports.CovalentTooltip);const at=exports.CovalentTooltip;exports.default=at;
