1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2166],{26869:(e,t,n)=>{n.d(t,{H:()=>o});var i=n(13667);let o=(e,t)=>{let n=e.level?`h${e.level}`:"div";return delete e.level,(0,i.h)(n,{class:e.class,key:e.key},t)}},38127:(e,t,n)=>{n.d(t,{a:()=>g,c:()=>m,d:()=>E,u:()=>y});var i=n(12516),o=n(94047);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){var i,o;i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},l=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},c=function(e){return l(e)&&!e.shiftKey},d=function(e){return l(e)&&e.shiftKey},u=function(e){return setTimeout(e,0)},h=function(e,t){var n=-1;return e.every(function(e,i){return!t(e)||(n=i,!1)}),n},f=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},p=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},v=[],b=function(e,t){var n,o=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||v,b=r({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:c,isKeyBackward:d},t),m={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},g=function(e,t,n){return e&&void 0!==e[t]?e[t]:b[n||t]},E=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return m.containerGroups.findIndex(function(t){var i=t.container,o=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||o.find(function(t){return t===e})})},y=function(e){var t=b[e];if("function"==typeof t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var r=t;if("string"==typeof t&&!(r=o.querySelector(t)))throw Error("`".concat(e,"` as selector refers to no known node"));return r},w=function(){var e=y("initialFocus");if(!1===e)return!1;if(void 0===e||!(0,i.h)(e,b.tabbableOptions))if(E(o.activeElement)>=0)e=o.activeElement;else{var t=m.tabbableGroups[0];e=t&&t.firstTabbableNode||y("fallbackFocus")}if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},k=function(){if(m.containerGroups=m.containers.map(function(e){var t=(0,i.j)(e,b.tabbableOptions),n=(0,i.k)(e,b.tabbableOptions),o=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,r=n.find(function(e){return(0,i.l)(e)}),s=n.slice().reverse().find(function(e){return(0,i.l)(e)}),l=!!t.find(function(e){return(0,i.m)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:o,lastTabbableNode:a,firstDomTabbableNode:r,lastDomTabbableNode:s,nextTabbableNode:function(e){var o=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=t.indexOf(e);return a<0?o?n.slice(n.indexOf(e)+1).find(function(e){return(0,i.l)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,i.l)(e)}):t[a+(o?1:-1)]}}}),m.tabbableGroups=m.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),m.tabbableGroups.length<=0&&!y("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(m.containerGroups.find(function(e){return e.posTabIndexesFound})&&m.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},x=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?x(t.shadowRoot):t},P=function(e){if(!1!==e&&e!==x(document)){if(!e||!e.focus)return void P(w());e.focus({preventScroll:!!b.preventScroll}),m.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},O=function(e){var t=y("setReturnFocus",e);return t||!1!==t&&e},D=function(e){var t=e.target,n=e.event,o=e.isBackward,a=void 0!==o&&o;t=t||p(n),k();var r=null;if(m.tabbableGroups.length>0){var s=E(t,n),c=s>=0?m.containerGroups[s]:void 0;if(s<0)r=a?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode;else if(a){var d=h(m.tabbableGroups,function(e){var n=e.firstTabbableNode;return t===n});if(d<0&&(c.container===t||(0,i.h)(t,b.tabbableOptions)&&!(0,i.l)(t,b.tabbableOptions)&&!c.nextTabbableNode(t,!1))&&(d=s),d>=0){var u=0===d?m.tabbableGroups.length-1:d-1,f=m.tabbableGroups[u];r=(0,i.m)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else l(n)||(r=c.nextTabbableNode(t,!1))}else{var v=h(m.tabbableGroups,function(e){var n=e.lastTabbableNode;return t===n});if(v<0&&(c.container===t||(0,i.h)(t,b.tabbableOptions)&&!(0,i.l)(t,b.tabbableOptions)&&!c.nextTabbableNode(t))&&(v=s),v>=0){var g=v===m.tabbableGroups.length-1?0:v+1,w=m.tabbableGroups[g];r=(0,i.m)(t)>=0?w.firstTabbableNode:w.firstDomTabbableNode}else l(n)||(r=c.nextTabbableNode(t))}}else r=y("fallbackFocus");return r},C=function(e){if(!(E(p(e),e)>
1=0)){if(f(b.clickOutsideDeactivates,e))return void n.deactivate({returnFocus:b.returnFocusOnDeactivate});f(b.allowOutsideClick,e)||e.preventDefault()}},T=function(e){var t=p(e),n=E(t,e)>=0;if(n||t instanceof Document)n&&(m.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var o,a=!0;if(m.mostRecentlyFocusedNode)if((0,i.m)(m.mostRecentlyFocusedNode)>0){var r=E(m.mostRecentlyFocusedNode),s=m.containerGroups[r].tabbableNodes;if(s.length>0){var l=s.findIndex(function(e){return e===m.mostRecentlyFocusedNode});l>=0&&(b.isKeyForward(m.recentNavEvent)?l+1<s.length&&(o=s[l+1],a=!1):l-1>=0&&(o=s[l-1],a=!1))}}else m.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,i.m)(e)>0})})||(a=!1);else a=!1;a&&(o=D({target:m.mostRecentlyFocusedNode,isBackward:b.isKeyBackward(m.recentNavEvent)})),o?P(o):P(m.mostRecentlyFocusedNode||w())}m.recentNavEvent=void 0},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.recentNavEvent=e;var n=D({event:e,isBackward:t});n&&(l(e)&&e.preventDefault(),P(n))},B=function(e){(b.isKeyForward(e)||b.isKeyBackward(e))&&F(e,b.isKeyBackward(e))},A=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==f(b.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},I=function(e){!(E(p(e),e)>=0||f(b.clickOutsideDeactivates,e))&&(f(b.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation()))},L=function(){if(m.active)return s.activateTrap(a,n),m.delayInitialFocusTimer=b.delayInitialFocus?u(function(){P(w())}):P(w()),o.addEventListener("focusin",T,!0),o.addEventListener("mousedown",C,{capture:!0,passive:!1}),o.addEventListener("touchstart",C,{capture:!0,passive:!1}),o.addEventListener("click",I,{capture:!0,passive:!1}),o.addEventListener("keydown",B,{capture:!0,passive:!1}),o.addEventListener("keydown",A),n},H=function(){if(m.active)return o.removeEventListener("focusin",T,!0),o.removeEventListener("mousedown",C,!0),o.removeEventListener("touchstart",C,!0),o.removeEventListener("click",I,!0),o.removeEventListener("keydown",B,!0),o.removeEventListener("keydown",A),n},N="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===m.mostRecentlyFocusedNode})})&&P(w())}):void 0,M=function(){N&&(N.disconnect(),m.active&&!m.paused&&m.containers.map(function(e){N.observe(e,{subtree:!0,childList:!0})}))};return(n={get active(){return m.active},get paused(){return m.paused},activate:function(e){if(m.active)return this;var t=g(e,"onActivate"),n=g(e,"onPostActivate"),i=g(e,"checkCanFocusTrap");i||k(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=o.activeElement,null==t||t();var a=function(){i&&k(),L(),M(),null==n||n()};return i?i(m.containers.concat()).then(a,a):a(),this},deactivate:function(e){if(!m.active)return this;var t=r({onDeactivate:b.onDeactivate,onPostDeactivate:b.onPostDeactivate,checkCanReturnFocus:b.checkCanReturnFocus},e);clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,H(),m.active=!1,m.paused=!1,M(),s.deactivateTrap(a,n);var i=g(t,"onDeactivate"),o=g(t,"onPostDeactivate"),l=g(t,"checkCanReturnFocus"),c=g(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var d=function(){u(function(){c&&P(O(m.nodeFocusedBeforeActivation)),null==o||o()})};return c&&l?l(O(m.nodeFocusedBeforeActivation)).then(d,d):d(),this},pause:function(e){if(m.paused||!m.active)return this;var t=g(e,"onPause"),n=g(e,"onPostPause");return m.paused=!0,null==t||t(),H(),M(),null==n||n(),this},unpause:function(e){if(!m.paused||!m.active)return this;var t=g(e,"onUnpause"),n=g(e,"onPostUnpause");return m.paused=!1,null==t||t(),k(),L(),M(),null==n||n(),this},updateContainerElements:function(e){return m.containers=[].concat(e).filter(
1Boolean).map(function(e){return"string"==typeof e?o.querySelector(e):e}),m.active&&k(),M(),this}}).updateContainerElements(e),n};function m(e,t){let{el:n}=e,a=t?.focusTrapEl||n;if(!a)return;let r={clickOutsideDeactivates:!0,escapeDeactivates:!1,fallbackFocus:a,setReturnFocus:e=>((0,i.e)(e),!1),...t?.focusTrapOptions,document:n.ownerDocument,tabbableOptions:i.n,trapStack:o.f};e.focusTrap=b(a,r)}function g(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function E(e,t){e.focusTrap?.deactivate(t)}function y(e){e.focusTrap?.updateContainerElements(e.el)}},74760:(e,t,n)=>{n.d(t,{F:()=>r});var i=n(13667);let o={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},a={width:12,height:6,strokeWidth:1},r=({floatingLayout:e,key:t,ref:n})=>{let{width:r,height:s,strokeWidth:l}=a,c=r/2,d="vertical"===e,u=`M0,0 H${r} L${r-c},${s} Q${c},${s} ${c},${s} Z`;return(0,i.h)("svg",{"aria-hidden":"true",class:o.arrow,height:r,key:t,ref:n,viewBox:`0 0 ${r} ${r+(!d?l:0)}`,width:r+(d?l:0)},l>0&&(0,i.h)("path",{class:o.arrowStroke,d:u,fill:"none","stroke-width":l+1}),(0,i.h)("path",{d:u,stroke:"none"}))}},82166:(e,t,n)=>{n.d(t,{S:()=>f,d:()=>m});var i=n(13667),o=n(12516),a=n(48340),r=n(38872),s=n(43661),l=n(37359),c=n(74992),d=n(38454),u=n(98770);let h={menu:"menu",defaultTrigger:"default-trigger"},f={tooltip:"tooltip",trigger:"trigger"},p={menu:"ellipsis"},v=["ArrowUp","ArrowDown","End","Home"],b=(0,i.w$)(class extends i.wt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteActionMenuOpen=(0,i.lh)(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${(0,a.g)()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{let{menuButtonId:e,menuId:t,open:n,label:i}=this,a=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==a&&(this.disconnectMenuButtonEl(),this.menuButtonEl=a,this.setTooltipReferenceElement(),a&&(a.active=n,a.setAttribute("aria-controls",t),a.setAttribute("aria-expanded",(0,o.t)(n)),a.setAttribute("aria-haspopup","true"),a.id||(a.id=e),a.label||(a.label=i),a.text||(a.text=i),a.addEventListener("click",this.menuButtonClick),a.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{let{menuButtonEl:e}=this;e&&(e.removeEventListener("click",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=e=>{let t=e.target.assignedElements({flatten:!0}).filter(e=>e?.matches("calcite-action"));
1this.slottedMenuButtonEl=t[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=e=>{this.defaultMenuButtonEl=e,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=()=>{this.toggleOpen()},this.updateTooltip=e=>{let t=e.target.assignedElements({flatten:!0}).filter(e=>e?.matches("calcite-tooltip"));this.tooltipEl=t[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{let{tooltipEl:e,expanded:t,menuButtonEl:n,open:i}=this;e&&(e.referenceElement=t||i?null:n)},this.updateAction=(e,t)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${t}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=o),e.toggleAttribute("data-active",t===i)},this.updateActions=e=>{e?.forEach(this.updateAction)},this.handleDefaultSlotChange=e=>{let t=e.target.assignedElements({flatten:!0}).reduce((e,t)=>t?.matches("calcite-action")?(e.push(t),e):t?.matches("calcite-action-group")?e.concat(Array.from(t.querySelectorAll("calcite-action"))):e,[]);this.actionElements=t.filter(e=>!e.disabled&&!e.hidden)},this.menuButtonKeyDown=e=>{let{key:t}=e,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if((0,r.i)(t)){if(e.preventDefault(),!o)return void this.toggleOpen();let t=n[i];t?t.click():this.toggleOpen(!1)}if("Tab"===t){this.open=!1;return}if("Escape"===t){this.toggleOpen(!1),e.preventDefault();return}this.handleActionNavigation(e,t,n)}},this.handleActionNavigation=(e,t,n)=>{var i,o;if(!this.isValidKey(t,v))return;if(e.preventDefault(),!this.open){this.toggleOpen(),("Home"===t||"ArrowDown"===t)&&(this.activeMenuItemIndex=0),("End"===t||"ArrowUp"===t)&&(this.activeMenuItemIndex=n.length-1);return}"Home"===t&&(this.activeMenuItemIndex=0),"End"===t&&(this.activeMenuItemIndex=n.length-1);let a=this.activeMenuItemIndex;"ArrowUp"===t&&(this.activeMenuItemIndex=(Math.max(a-1,-1)+(i=n.length))%i),"ArrowDown"===t&&(this.activeMenuItemIndex=(a+1+(o=n.length))%o)},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(e=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=e},this.handlePopoverOpen=()=>{this.open=!0},this.handlePopoverClose=()=>{this.open=!1},this.appearance="solid",this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}connectedCallback(){this.connectMenuButtonEl()}componentWillLoad(){(0,s.s)(this)}componentDidLoad(){(0,s.a)(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=e),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await (0,s.c)(this),(0,o.e)(this.menuButtonEl)}renderMenuButton(){let{appearance:e,label:t,scale:n,expanded:o}=this;return(0,i.h)("slot",{name:f.trigger,onSlotchange:this.setMenuButtonEl},(0,i.h)("calcite-action",{appearance:e,class:h.defaultTrigger,icon:p.menu,ref:this.setDefaultMenuButtonEl,scale:n,text:t,textEnabled:o}))}renderMenuItems(){let{actionElements:e,activeMenuItemIndex:t,open:n,menuId:o,menuButtonEl:a,label:r,placement:s,overlayPositioning:l,flipPlacements:c}=this,d=e[t],u=d?.id||null;return(0,i.h)("calcite-popover",{autoClose:!0,flipPlacements:c,focusTrapDisabled:!0,label:r,offsetDistance:0,onCalcitePopoverClose:this.handlePopoverClose,onCalcitePopoverOpen:this.handlePopoverOpen,open:n,overlayPositioning:l,placement:s,pointerDisabled:!0,referenceElement:a},(0,i.h)("div",{"aria-activedescendant":u,"aria-labelledby":a?.id,class:h.menu,id:o,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},(0,i.h)("slot",{onSlotchange:this.handleDefaultSlotChange}
1)))}render(){return(0,i.h)(i.FK,{key:"d13aa4f3d43fb5651c0487ccfa456813f69955d2"},this.renderMenuButton(),this.renderMenuItems(),(0,i.h)("slot",{key:"b63d187516c766db6a1b1db3df34050fdec9e6ce",name:f.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(e,t){return!!t.find(t=>t===e)}get el(){return this}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}static get style(){return":host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}"}},[1,"calcite-action-menu",{appearance:[513],expanded:[516],flipPlacements:[16],label:[1],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],scale:[513],menuButtonEl:[32],activeMenuItemIndex:[32],setFocus:[64]},void 0,{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}]);function m(){"undefined"!=typeof customElements&&["calcite-action-menu","calcite-action","calcite-icon","calcite-loader","calcite-popover"].forEach(e=>{switch(e){case"calcite-action-menu":customElements.get(e)||customElements.define(e,b);break;case"calcite-action":customElements.get(e)||(0,l.d)();break;case"calcite-icon":customElements.get(e)||(0,c.d)();break;case"calcite-loader":customElements.get(e)||(0,d.d)();break;case"calcite-popover":customElements.get(e)||(0,u.d)()}})}m()},98770:(e,t,n)=>{n.d(t,{d:()=>D});var i=n(13667),o=n(27772),a=n(38127),r=n(12516),s=n(48340),l=n(38998),c=n(26869),d=n(65763),u=n(89612),h=n(43661),f=n(23936),p=n(74760),v=n(23804),b=n(38872),m=n(37359),g=n(74992),E=n(38454);class y{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{let{registeredElements:t}=this,n=e.find(e=>t.has(e));return t.get(n)},this.togglePopovers=e=>{let t=e.composedPath(),n=this.queryPopover(t);n&&!n.triggerDisabled&&(n.open=!n.open),Array.from(this.registeredElements.values()).filter(e=>e!==n&&e.autoClose&&e.open&&!t.includes(e)).forEach(e=>e.open=!1)},this.keyDownHandler=e=>{!e.defaultPrevented&&("Escape"===e.key?this.closeAllPopovers():(0,b.i)(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{(0,r.i)(e)||this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),1===this.registeredElementCount&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(e=>e.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}}let w={container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",heading:"heading"},k="aria-controls",x="aria-expanded",P=new y,O=(0,i.w$)(class extends i.wt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePopoverBeforeClose=(0,i.lh)(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=(0,i.lh)(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=(0,i.lh)(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=(0,i.lh)(this,"calcitePopoverOpen",6),this.mutationObserver=(0,f.c)("mutation",()=>this.updateFocusTrapElements()),this.guid=`calcite-popover-${(0,s.g)()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e},this.setFilteredPlacements=()=>{let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?(0,o.f)(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),(0,o.c)(this,this.effectiveReferenceElement,this.el);let{el:t,referenceElement:n,effectiveReferenceElement:i}=this;e&&n&&!i&&console.warn(`${t.tagName}: reference-element id "${n}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>
1this.el.id||this.guid,this.setExpandedAttr=()=>{let{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(x,(0,r.t)(t))},this.addReferences=()=>{let{effectiveReferenceElement:e}=this;if(!e)return;let t=this.getId();"setAttribute"in e&&e.setAttribute(k,t),P.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{let{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(k),e.removeAttribute(x)),P.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=o.d,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(e){this.open&&(e?(0,a.d)(this):(0,a.a)(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(){(0,l.o)(this),this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){(0,u.u)(this,this.effectiveLocale)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),(0,d.c)(this),(0,u.c)(this),(0,a.c)(this),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async componentWillLoad(){await (0,u.s)(this),(0,h.s)(this)}componentDidLoad(){(0,h.a)(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.open&&(0,l.o)(this),this.hasLoaded=!0}disconnectedCallback(){this.mutationObserver?.disconnect(),this.removeReferences(),(0,d.d)(this),(0,u.d)(this),(0,o.a)(this,this.effectiveReferenceElement,this.el),(0,a.d)(this)}async reposition(e=!1){let{el:t,effectiveReferenceElement:n,placement:i,overlayPositioning:a,flipDisabled:r,filteredFlipPlacements:s,offsetDistance:l,offsetSkidding:c,arrowEl:d}=this;return(0,o.r)(this,{floatingEl:t,referenceEl:n,overlayPositioning:a,placement:i,flipDisabled:r,flipPlacements:s,offsetDistance:l,offsetSkidding:c,arrowEl:d,type:"popover"},e)}async setFocus(){await (0,h.c)(this),(0,i.$x)(this.el),(0,r.f)(this.el)}async updateFocusTrapElements(){(0,a.u)(this)}getReferenceElement(){let{referenceElement:e,el:t}=this;return("string"==typeof e?(0,r.q)(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),(0,a.a)(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),(0,a.d)(this)}renderCloseButton(){let{messages:e,closable:t}=this;return t?(0,i.h)("div",{class:w.closeButtonContainer,key:w.closeButtonContainer},(0,i.h)("calcite-action",{appearance:"transparent",class:w.closeButton,onClick:this.hide,ref:e=>this.closeButtonEl=e,scale:this.scale,text:e.close},(0,i.h)("calcite-icon",{icon:"x",scale:(0,v.g)(this.scale)}))):null}renderHeader(){let{heading:e,headingLevel:t}=this,n=e?(0,i.h)(c.H,{class:w.heading,level:t},e):null;return n?(0,i.h)("div",{class:w.header,key:w.header},n,this.renderCloseButton()):null}render(){let{effectiveReferenceElement:e,heading:t,label:n,open:a,pointerDisabled:s,floatingLayout:l}=this,c=e&&a,d=!c,u=s?null:(0,i.h)(p.F,{floatingLayout:l,key:"floating-arrow",ref:this.storeArrowEl});return(0,i.h)(i.xr,{key:"a563d48090d6e6c0c138023e169667834f657c4c","aria-hidden":(0,r.t)(d),"aria-label":n,"aria-live":"polite","calcite-hydrated-hidden":d,id:this.getId(),role:"dialog"},(0,i.h)("div",{key:"73053dbdce2cfc68fcd42667089d611e81010955",class:{[w.container]:!0,[o.F.animation]:!0,[o.F.animationActive]:c},ref:this.setTransitionEl},u,(0,i.h)("div",{key:"1fbcd45ee42b10a67881ced74db2db051231c94d",class:{[w.hasHeader]:!!t,[w.headerContainer]:!0}},this.renderHeader(),(0,i.h)("div",{key:"522abe801b98787863aac14d990b948d2d286156",class:w.content},(0,i.h)("slot",{key:"022a8f690288acdbac4ec1b3eccf807ffe382d5d"})),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset, left, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{inset-block-start:-5px}:host([data-placement^=top]) .calcite-floating-ui-anim{inset-block-start:5px}:host([data-placement^=left]) .calcite-floating-ui-anim{left:5px}:host([data-placement^=right]) .calcite-floating-ui-anim{left:-5px}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;inset-block:0;left:0}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);
1fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}"}},[1,"calcite-popover",{autoClose:[516,"auto-close"],closable:[516],flipDisabled:[516,"flip-disabled"],focusTrapDisabled:[516,"focus-trap-disabled"],pointerDisabled:[516,"pointer-disabled"],flipPlacements:[16],heading:[1],headingLevel:[514,"heading-level"],label:[1],messageOverrides:[1040],messages:[1040],offsetDistance:[514,"offset-distance"],offsetSkidding:[514,"offset-skidding"],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],referenceElement:[1,"reference-element"],scale:[513],triggerDisabled:[516,"trigger-disabled"],effectiveLocale:[32],floatingLayout:[32],effectiveReferenceElement:[32],defaultMessages:[32],reposition:[64],setFocus:[64],updateFocusTrapElements:[64]},void 0,{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}]);function D(){"undefined"!=typeof customElements&&["calcite-popover","calcite-action","calcite-icon","calcite-loader"].forEach(e=>{switch(e){case"calcite-popover":customElements.get(e)||customElements.define(e,O);break;case"calcite-action":customElements.get(e)||(0,m.d)();break;case"calcite-icon":customElements.get(e)||(0,g.d)();break;case"calcite-loader":customElements.get(e)||(0,E.d)()}})}D()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.