@watermarkinsights/ripple 6.0.0-alpha.2 → 6.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-LJjOu6YB.js → app-globals-sgBnp-Gl.js} +1 -1
- package/dist/cjs/{chartFunctions-aNMk1XKY.js → chartFunctions-QY-zDbe-.js} +1 -1
- package/dist/cjs/{index-Fc5N6lyN.js → index-DzGJyL8k.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +3 -3
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +1 -1
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-button.cjs.entry.js +2 -2
- package/dist/cjs/priv-navigator-item.cjs.entry.js +2 -2
- package/dist/cjs/priv-option-list.cjs.entry.js +2 -2
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-bar.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-column.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-stack.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart.cjs.entry.js +2 -2
- package/dist/cjs/wm-date-range.cjs.entry.js +4 -4
- package/dist/cjs/wm-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/wm-file-list.cjs.entry.js +2 -2
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-flyout.cjs.entry.js +2 -2
- package/dist/cjs/wm-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +5 -5
- package/dist/cjs/wm-modal_3.cjs.entry.js +5 -5
- package/dist/cjs/wm-navigation_3.cjs.entry.js +5 -5
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +4 -4
- package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/wm-option_2.cjs.entry.js +6 -6
- package/dist/cjs/wm-pagination.cjs.entry.js +2 -2
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +3 -3
- package/dist/cjs/wm-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
- package/dist/cjs/wm-tag-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +2 -2
- package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
- package/dist/cjs/wm-uploader.cjs.entry.js +3 -3
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/components/datepickers/datepicker.css +11 -2
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/wm-date-range.js +2 -2
- package/dist/collection/components/datepickers/wm-datepicker.js +2 -2
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
- package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
- package/dist/collection/components/selects/wm-select/wm-select.js +4 -4
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +3 -3
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-flyout/wm-flyout.js +1 -1
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +3 -3
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +2 -2
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/date-range.js +43 -3
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BW-qlQCp.js → p-B-aJInYV.js} +1 -1
- package/dist/components/{p-UYnG2Dmh.js → p-BEjz-Tyd.js} +1 -1
- package/dist/components/{p-CQvIfFRy.js → p-BOrvrHcb.js} +1 -1
- package/dist/components/{p-LLEX4jRa.js → p-BpcEWE0C.js} +1 -1
- package/dist/components/{p-CKwHtEBQ.js → p-C0tBuxqB.js} +1 -1
- package/dist/components/{p-B1AjbQdq.js → p-CrQBLPn0.js} +1 -1
- package/dist/components/{p-hQXl7ulO.js → p-D8mwP8Na.js} +1 -1
- package/dist/components/{p-CkrOkrrd.js → p-FcmS53yG.js} +1 -1
- package/dist/components/priv-calendar.js +1 -1
- package/dist/components/priv-navigator-button.js +1 -1
- package/dist/components/priv-navigator-item.js +1 -1
- package/dist/components/priv-option-list.js +1 -1
- package/dist/components/wm-action-menu.js +1 -1
- package/dist/components/wm-button.js +1 -1
- package/dist/components/wm-date-range.js +1 -1
- package/dist/components/wm-datepicker.js +1 -1
- package/dist/components/wm-file-list.js +1 -1
- package/dist/components/wm-file.js +1 -1
- package/dist/components/wm-flyout.js +1 -1
- package/dist/components/wm-input.js +1 -1
- package/dist/components/wm-line-chart.js +1 -1
- package/dist/components/wm-menuitem.js +1 -1
- package/dist/components/wm-modal-footer.js +1 -1
- package/dist/components/wm-modal-header.js +1 -1
- package/dist/components/wm-modal-pss-footer.js +1 -1
- package/dist/components/wm-modal-pss-header.js +1 -1
- package/dist/components/wm-modal-pss.js +1 -1
- package/dist/components/wm-modal.js +1 -1
- package/dist/components/wm-navigation-hamburger.js +1 -1
- package/dist/components/wm-navigation-item.js +1 -1
- package/dist/components/wm-navigation.js +1 -1
- package/dist/components/wm-navigator.js +1 -1
- package/dist/components/wm-nested-select.js +1 -1
- package/dist/components/wm-optgroup.js +1 -1
- package/dist/components/wm-option.js +1 -1
- package/dist/components/wm-pagination.js +1 -1
- package/dist/components/wm-search.js +1 -1
- package/dist/components/wm-select.js +1 -1
- package/dist/components/wm-snackbar.js +1 -1
- package/dist/components/wm-tab-item.js +1 -1
- package/dist/components/wm-tab-list.js +1 -1
- package/dist/components/wm-tab-panel.js +1 -1
- package/dist/components/wm-tag-input.js +1 -1
- package/dist/components/wm-textarea.js +1 -1
- package/dist/components/wm-timepicker.js +1 -1
- package/dist/components/wm-toggletip.js +1 -1
- package/dist/components/wm-uploader.js +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/esm/{app-globals-6f98lpqY.js → app-globals-BNDLe8FS.js} +1 -1
- package/dist/esm/{chartFunctions-BIFNqIjd.js → chartFunctions-P0ULA818.js} +1 -1
- package/dist/esm/{index-BFdpYP3s.js → index-BIsCCYMI.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/priv-calendar.entry.js +3 -3
- package/dist/esm/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm/priv-navigator-button.entry.js +2 -2
- package/dist/esm/priv-navigator-item.entry.js +2 -2
- package/dist/esm/priv-option-list.entry.js +2 -2
- package/dist/esm/ripple.js +3 -3
- package/dist/esm/wm-action-menu_2.entry.js +5 -5
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart-bar.entry.js +2 -2
- package/dist/esm/wm-chart-column.entry.js +2 -2
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart-stack.entry.js +2 -2
- package/dist/esm/wm-chart.entry.js +2 -2
- package/dist/esm/wm-date-range.entry.js +4 -4
- package/dist/esm/wm-datepicker.entry.js +4 -4
- package/dist/esm/wm-file-list.entry.js +2 -2
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-flyout.entry.js +2 -2
- package/dist/esm/wm-input.entry.js +2 -2
- package/dist/esm/wm-line-chart.entry.js +2 -2
- package/dist/esm/wm-modal-pss_3.entry.js +5 -5
- package/dist/esm/wm-modal_3.entry.js +5 -5
- package/dist/esm/wm-navigation_3.entry.js +5 -5
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +4 -4
- package/dist/esm/wm-optgroup.entry.js +2 -2
- package/dist/esm/wm-option_2.entry.js +6 -6
- package/dist/esm/wm-pagination.entry.js +2 -2
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +3 -3
- package/dist/esm/wm-snackbar.entry.js +3 -3
- package/dist/esm/wm-tab-item_3.entry.js +7 -7
- package/dist/esm/wm-tag-input.entry.js +3 -3
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +2 -2
- package/dist/esm/wm-timepicker.entry.js +3 -3
- package/dist/esm/wm-toggletip.entry.js +4 -4
- package/dist/esm/wm-uploader.entry.js +3 -3
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/ripple/{p-16ce7920.entry.js → p-00b1c5f5.entry.js} +1 -1
- package/dist/ripple/{p-b30bf53b.entry.js → p-042adbbe.entry.js} +1 -1
- package/dist/ripple/{p-ac012c03.entry.js → p-0677af98.entry.js} +1 -1
- package/dist/ripple/{p-97a0d3ae.entry.js → p-085fe812.entry.js} +1 -1
- package/dist/ripple/{p-1a4f22ac.entry.js → p-0a35303c.entry.js} +1 -1
- package/dist/ripple/{p-44cdb9d4.entry.js → p-0c3f26c8.entry.js} +1 -1
- package/dist/ripple/{p-c200c74f.entry.js → p-1bcf03c2.entry.js} +1 -1
- package/dist/ripple/{p-7d5b0aee.entry.js → p-1c13a8b1.entry.js} +1 -1
- package/dist/ripple/{p-e6fbfb6e.entry.js → p-1c63f397.entry.js} +1 -1
- package/dist/ripple/{p-63b00121.entry.js → p-1e5f1bbc.entry.js} +1 -1
- package/dist/ripple/{p-08411b99.entry.js → p-1fedde87.entry.js} +1 -1
- package/dist/ripple/{p-43910594.entry.js → p-29fa4aa2.entry.js} +1 -1
- package/dist/ripple/{p-525bcd17.entry.js → p-2c1de7b2.entry.js} +1 -1
- package/dist/ripple/{p-d7ea8e23.entry.js → p-2dca41df.entry.js} +1 -1
- package/dist/ripple/{p-2bcb474d.entry.js → p-3645a86e.entry.js} +1 -1
- package/dist/ripple/{p-fc0082db.entry.js → p-387542e7.entry.js} +1 -1
- package/dist/ripple/{p-13cfcd0b.entry.js → p-3a6afddd.entry.js} +1 -1
- package/dist/ripple/{p-a8933443.entry.js → p-3d839286.entry.js} +1 -1
- package/dist/ripple/p-3ea6097d.entry.js +1 -0
- package/dist/ripple/{p-859bb496.entry.js → p-48ff2aad.entry.js} +1 -1
- package/dist/ripple/p-502ee663.entry.js +1 -0
- package/dist/ripple/{p-c8c775c6.entry.js → p-5243f5bf.entry.js} +1 -1
- package/dist/ripple/{p-8a828541.entry.js → p-65d8cdbf.entry.js} +1 -1
- package/dist/ripple/{p-3c0f781f.entry.js → p-680e4605.entry.js} +1 -1
- package/dist/ripple/{p-19c80d39.entry.js → p-6cf44653.entry.js} +1 -1
- package/dist/ripple/{p-f0c898d8.entry.js → p-711c1496.entry.js} +1 -1
- package/dist/ripple/{p-92ad6c4c.entry.js → p-747dc058.entry.js} +1 -1
- package/dist/ripple/{p-460ea8a2.entry.js → p-75b75bca.entry.js} +1 -1
- package/dist/ripple/{p-defb273d.entry.js → p-967aabf3.entry.js} +1 -1
- package/dist/ripple/{p-54f519d5.entry.js → p-9aef68cf.entry.js} +1 -1
- package/dist/ripple/{p-BFdpYP3s.js → p-BIsCCYMI.js} +1 -1
- package/dist/ripple/p-BweDyZco.js +1 -0
- package/dist/ripple/{p-rj8q8CUE.js → p-DISt5Eik.js} +1 -1
- package/dist/ripple/{p-7b29e1ea.entry.js → p-aa09a8c4.entry.js} +1 -1
- package/dist/ripple/{p-60913476.entry.js → p-b298823b.entry.js} +1 -1
- package/dist/ripple/{p-be15641e.entry.js → p-bafcd994.entry.js} +1 -1
- package/dist/ripple/{p-1e184bdd.entry.js → p-c260a0b0.entry.js} +1 -1
- package/dist/ripple/{p-93a72f0f.entry.js → p-d7c4e336.entry.js} +1 -1
- package/dist/ripple/{p-7083f007.entry.js → p-daf28eca.entry.js} +1 -1
- package/dist/ripple/{p-e90bb871.entry.js → p-e543b9dc.entry.js} +1 -1
- package/dist/ripple/{p-5b55e739.entry.js → p-f00e0d07.entry.js} +1 -1
- package/dist/ripple/{p-8c73d3d4.entry.js → p-f5aab54f.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/package.json +1 -1
- package/dist/ripple/p-0de2f77a.entry.js +0 -1
- package/dist/ripple/p-COu7Nm-4.js +0 -1
- package/dist/ripple/p-a21a90cb.entry.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
window.navigator.plugins.length>0&&console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold","6.0.0-alpha.2");const t=document.createElement("style");t.textContent=".hydrated{visibility:inherit}",document.head.appendChild(t),window.addEventListener("keydown",(function(t){if("Tab"==t.key){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-tabbing")}"ArrowLeft"!=t.key&&"ArrowUp"!=t.key&&"ArrowRight"!=t.key&&"ArrowDown"!=t.key||(n=new Event("wmUserIsKeying"),window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-keying"))})),window.addEventListener("mousedown",(function(){var t=new Event("wmUserIsNotTabbing");window.dispatchEvent(t),document.querySelector("body").classList.remove("wmcl-user-is-tabbing"),document.querySelector("body").classList.remove("wmcl-user-is-keying")}));var n=()=>{};const e=document.createElement("div");e.id="wm-tooltip-container";const o=document.createElement("div");o.id="wm-tooltip",o.classList.add("wm-tooltip"),o.setAttribute("popover","manual"),o.setAttribute("aria-hidden","true");const l=document.createElement("style");l.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n";const i=document.querySelector("body");function s(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}i?(document.head.appendChild(l),e.appendChild(o),i.appendChild(e)):document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelector("body");document.head.appendChild(l),e.appendChild(o),t.appendChild(e)}));var r,c=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=s(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},u=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},a=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&c(t,n))},f=(t,n)=>n in t,d=(t,n)=>(0,console.error)(t,n),p=new Map,m=new Map,v=new Map,h="slot-fb{display:contents}slot-fb[hidden]{display:none}",w="http://www.w3.org/1999/xlink",y="undefined"!=typeof window?window:{},b={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},g=t=>Promise.resolve(t),$=(()=>{try{return!!y.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),j=!!$&&(()=>!!y.document&&Object.getOwnPropertyDescriptor(y.document.adoptedStyleSheets,"length").writable)(),O=!1,S=[],k=[],N=()=>{var t;return(null==(t=y.document)?void 0:t.hidden)?x(M):b.raf(M)},T=(t,n)=>e=>{t.push(e),O||(O=!0,n&&4&b.u?x(M):N())},E=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){d(t)}t.length=0},M=()=>{E(S),E(k),(O=S.length>0)&&N()},x=t=>g().then(t),C=T(k,!0);function L(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.u);const e=this.attachShadow(n);void 0===r&&(r=null),r&&(j?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r])}var A=t=>{const n=P(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&R(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!U(t,F(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&P(t,"childNodes").length&&A(t)}};function R(t,n,e){let o,l=0,i=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||F(o)===e)&&(i.push(o),void 0!==e))return i;i=[...i,...R(P(o,"childNodes"),n,e)]}return i}var U=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)F(l)!==n||!e&&l["s-sr"]||o.push(l);return o},D=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,F=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function P(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function H(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var z,I,W=new WeakMap,_=t=>"sc-"+t.m,B=t=>"object"==(t=typeof t)||"function"===t,V=(t,n,...e)=>{let o=null,l=null,i=null,s=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)if(o=n[e],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(s="function"!=typeof t&&!B(o))o+="";else if("function"!=typeof t&&void 0===o.u){d("Invalid vNode child");continue}s&&r?c[c.length-1].v+=o:c.push(s?q(null,o):o),r=s}};if(u(e),n){n.key&&(l=n.key),n.name&&(i=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const a=q(t,null);return a.h=n,c.length>0&&(a.$=c),a.j=l,a.O=i,a},q=(t,n)=>({u:0,S:t,v:null!=n?n:null,k:null,$:null,h:null,j:null,O:null}),Y={},Z=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},G=(t,n)=>null==t||B(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,K=t=>{var n;return null==(n=u(t))?void 0:n.$hostElement$},J=(t,n,e)=>{const o=K(t);return{emit:t=>Q(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},Q=(t,n,e)=>{const o=b.ce(n,e);return t.dispatchEvent(o),o},X=(t,n,e,o,l,i)=>{if(e===o)return;let s=f(t,n),r=n.toLowerCase();if("class"===n){const n=t.classList,l=ot(e);let i=ot(o);n.remove(...l.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&kt(o,t);else if(s||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=u(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const c=B(o);if((s||c&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?s=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let u=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(n=r,u=!0),null==o||!1===o?(!1!==o||""===t.getAttribute(n)||4&i&&!nt(n))&&(u?t.removeAttributeNS(w,n):t.removeAttribute(n)):(!s||4&i||l)&&!c&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(w,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):f(y,r)?r.slice(2):r[2]+n.slice(3),e||o){const l=n.endsWith(lt);n=n.replace(it,""),e&&b.rel(t,n,e,l),o&&b.ael(t,n,o,l)}},tt=new Set(["draggable","contenteditable","spellcheck"]),nt=t=>tt.has(t)||t.startsWith("aria-"),et=/\s/,ot=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(et):[]),lt="Capture",it=RegExp(lt+"$"),st=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.h||{},i=n.h||{};for(const t of rt(Object.keys(l)))t in i||X(o,t,l[t],void 0,e,n.u);for(const t of rt(Object.keys(i)))X(o,t,l[t],i[t],e,n.u)};function rt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ct=!1,ut=!1,at=!1,ft=!1,dt=[],pt=[],mt=(t,n,e)=>{var o;const l=n.$[e];let i,s,r,c=0;if(ct||(at=!0,"slot"===l.S&&(l.u|=l.$?2:1)),null!=l.v)i=l.k=y.document.createTextNode(l.v);else if(1&l.u)i=l.k=y.document.createTextNode(""),st(null,l,ft);else{if(ft||(ft="svg"===l.S),!y.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=l.k=y.document.createElementNS(ft?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ct&&2&l.u?"slot-fb":l.S),ft&&"foreignObject"===l.S&&(ft=!1),st(null,l,ft),l.$){const n="template"===l.S?i.content:i;for(c=0;c<l.$.length;++c)s=mt(t,l,c),s&&n.appendChild(s)}"svg"===l.S?ft=!1:"foreignObject"===i.tagName&&(ft=!0)}return i["s-hn"]=I,3&l.u&&(i["s-sr"]=!0,i["s-cr"]=z,i["s-sn"]=l.O||"",i["s-rf"]=null==(o=l.h)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===F(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(i),r=t&&t.$&&t.$[e],r&&r.S===l.S&&t.k&&vt(t.k)),i},vt=t=>{b.u|=1;const n=t.closest(I.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Nt(n,t,null!=e?e:null),t["s-sh"]=void 0,at=!0)}b.u&=-2},ht=(t,n)=>{b.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===I&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==I&&o["s-ol"]&&(Nt(gt(o).parentNode,o,gt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,at=!0),n&&ht(o,n)}b.u&=-2},wt=(t,n,e,o,l,i)=>{let s,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===I&&(r=r.shadowRoot),"template"===e.S&&(r=r.content);l<=i;++l)o[l]&&(s=mt(null,e,l),s&&(o[l].k=s,Nt(r,s,gt(n))))},yt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;St(n),t&&(ut=!0,t["s-ol"]?t["s-ol"].remove():ht(t,!0),t.remove())}}},bt=(t,n,e=!1)=>t.S===n.S&&("slot"===t.S?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),gt=t=>t&&t["s-ol"]||t,$t=(t,n,e=!1)=>{const o=n.k=t.k,l=t.$,i=n.$,s=n.S,r=n.v;let c;null==r?(ft="svg"===s||"foreignObject"!==s&&ft,"slot"!==s||ct||t.O!==n.O&&(n.k["s-sn"]=n.O||"",vt(n.k.parentElement)),st(t,n,ft),null!==l&&null!==i?((t,n,e,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=n.length-1,d=n[0],p=n[f],m=o.length-1,v=o[0],h=o[m];const w="template"===e.S?t.content:t;for(;r<=f&&c<=m;)if(null==d)d=n[++r];else if(null==p)p=n[--f];else if(null==v)v=o[++c];else if(null==h)h=o[--m];else if(bt(d,v,l))$t(d,v,l),d=n[++r],v=o[++c];else if(bt(p,h,l))$t(p,h,l),p=n[--f],h=o[--m];else if(bt(d,h,l))"slot"!==d.S&&"slot"!==h.S||ht(d.k.parentNode,!1),$t(d,h,l),Nt(w,d.k,p.k.nextSibling),d=n[++r],h=o[--m];else if(bt(p,v,l))"slot"!==d.S&&"slot"!==h.S||ht(p.k.parentNode,!1),$t(p,v,l),Nt(w,p.k,d.k),p=n[--f],v=o[++c];else{for(u=-1,a=r;a<=f;++a)if(n[a]&&null!==n[a].j&&n[a].j===v.j){u=a;break}u>=0?(s=n[u],s.S!==v.S?i=mt(n&&n[c],e,u):($t(s,v,l),n[u]=void 0,i=s.k),v=o[++c]):(i=mt(n&&n[c],e,c),v=o[++c]),i&&Nt(gt(d.k).parentNode,i,gt(d.k))}r>f?wt(t,null==o[m+1]?null:o[m+1].k,e,o,c,m):c>m&&yt(n,r,f)})(o,l,n,i,e):null!==i?(null!==t.v&&(o.textContent=""),wt(o,null,n,i,0,i.length-1)):!e&&null!==l&&yt(l,0,l.length-1),ft&&"svg"===s&&(ft=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.v!==r&&(o.data=r)},jt=[],Ot=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(!n["s-sh"]||n["s-sh"]!==t["s-hn"]||""!==l&&F(n)===l))if(D(n,l)){let e=jt.find((t=>t.N===n));ut=!0,n["s-sn"]=n["s-sn"]||l,e?(e.N["s-sh"]=t["s-hn"],e.T=t):(n["s-sh"]=t["s-hn"],jt.push({T:t,N:n})),n["s-sr"]&&jt.map((t=>{D(t.N,n["s-sn"])&&(e=jt.find((t=>t.N===n)),e&&!t.T&&(t.T=e.T))}))}else jt.some((t=>t.N===n))||jt.push({N:n})}1===t.nodeType&&Ot(t)}},St=t=>{t.h&&t.h.ref&&dt.push((()=>t.h.ref(null))),t.$&&t.$.map(St)},kt=(t,n)=>{pt.push((()=>t(n)))},Nt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=F(t)||"";return{slotNode:R(P(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return(null==t?void 0:t.__insertBefore)?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},Tt=(t,n)=>{if(n&&!t.M&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.M=()=>{n["s-p"].splice(e-1,1),o()})))}},Et=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Tt(t,t.C);const e=()=>Mt(t,n);if(!n)return C(e);queueMicrotask((()=>{e()}))},Mt=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.L&&(t.L=!1,Ft(o,"connectedCallback",void 0,e)),t.u|=256,t.A&&(t.A.map((([t,n])=>Ft(o,t,n,e))),t.A=void 0),t.R.length&&t.R.forEach((t=>t(e))),l=Ft(o,"componentWillLoad",void 0,e)):l=Ft(o,"componentWillUpdate",void 0,e),l=xt(l,(()=>Ft(o,"componentWillRender",void 0,e))),xt(l,(()=>Lt(t,o,n)))},xt=(t,n)=>Ct(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Ct=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Lt=async(t,n,e)=>{var o;const l=t.$hostElement$,i=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,l=((t,n)=>{var e,o,l;const i=_(n),s=v.get(i);if(!y.document)return i;if(t=11===t.nodeType?t:y.document,s)if("string"==typeof s){let l,r=W.get(t=t.head||t);if(r||W.set(t,r=new Set),!r.has(i)){l=y.document.createElement("style"),l.textContent=s;const c=null!=(e=b.U)?e:H(y.document);if(null!=c&&l.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if($){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(s),j?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=s+n.textContent:t.prepend(l)}else t.append(l);1&n.u&&t.insertBefore(l,null),4&n.u&&(l.textContent+=h),r&&r.add(i)}}else{let n=W.get(t);if(n||W.set(t,n=new Set),!n.has(i)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===e.CSSStyleSheet)o=s;else{o=new e.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}j?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(i)}}return i})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);At(t,n,l,e),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>Rt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},At=(t,n,e,o)=>{try{n=n.render&&n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,i,s,r;const c=t.$hostElement$,u=t.o,a=t.D||q(null,null),f=(t=>t&&t.S===Y)(n)?n:V(null,null,n);if(I=c.tagName,u.F&&(f.h=f.h||{},u.F.forEach((([t,n])=>{f.h[n]=c[t]}))),e&&f.h)for(const t of Object.keys(f.h))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.h[t]=c[t]);if(f.S=null,f.u|=4,t.D=f,f.k=a.k=c.shadowRoot||c,ct=!(!(1&u.u)||128&u.u),z=c["s-cr"],ut=!1,$t(a,f,e),b.u|=1,at){Ot(f.k);for(const t of jt){const n=t.N;if(!n["s-ol"]&&y.document){const t=y.document.createTextNode("");t["s-nr"]=n,Nt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of jt){const n=t.N,r=t.T;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(i=e["s-nr"])?i:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Nt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=y.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Nt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(s=n["s-ih"])&&s)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(ut&&A(f.k),b.u&=-2,jt.length=0,!ct&&!(1&u.u)&&c["s-cr"]){const t=f.k.__childNodes||f.k.childNodes;for(const n of t)if(n["s-hn"]!==I&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=y.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Nt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}z=void 0,dt.forEach((t=>t())),dt.length=0,pt.forEach((t=>t())),pt.length=0})(t,n,o)}catch(n){d(n,t.$hostElement$)}return null},Rt=t=>{const n=t.$hostElement$,e=t.i,o=t.C;Ft(e,"componentDidRender",void 0,n),64&t.u?Ft(e,"componentDidUpdate",void 0,n):(t.u|=64,Pt(n),Ft(e,"componentDidLoad",void 0,n),t.P(n),o||Dt()),t.H(n),t.M&&(t.M(),t.M=void 0),512&t.u&&x((()=>Et(t,!1))),t.u&=-517},Ut=t=>{var n;{const e=u(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.u)&&Et(e,!1),o}},Dt=()=>{x((()=>Q(y,"appload",{detail:{namespace:"ripple"}})))},Ft=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){d(t,o)}},Pt=t=>t.classList.add("hydrated"),Ht=(t,n,e,o)=>{const l=u(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=l.$hostElement$,s=l.l.get(n),r=l.u,c=l.i;if(e=G(e,o.t[n][0]),!(8&r&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e))){if(l.l.set(n,e),o.I){const t=o.I[n];t&&t.map((t=>{try{const[[o,i]]=Object.entries(t);(128&r||1&i)&&(c?c[o](e,s,n):l.R.push((()=>{l.i[o](e,s,n)})))}catch(t){d(t,i)}}))}if(2&r){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,s,n)&&!(16&r))return;16&r||Et(l,!1)}}},zt=(t,n,e)=>{var o,l;const i=t.prototype;{t.watchers&&!n.I&&(n.I=Z(t.watchers)),t.deserializers&&!n.W&&(n.W=t.deserializers),t.serializers&&!n._&&(n._=t.serializers);const r=Object.entries(null!=(o=n.t)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:r}=s(i,t)||{};l&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),(1&e||!l)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>u(this).l.get(n))(0,t);const e=u(this),o=e?e.i:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(l){const i=u(this);if(i){if(r)return void 0===(32&o?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(l=i.l.get(t)),r.call(this,G(l,o)),void Ht(this,t,l=32&o?this[t]:i.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return Ht(this,t,l,n),void(1&e&&!i.i&&i.R.push((()=>{4096&n.t[t][0]&&i.i[t]!==i.l.get(t)&&(i.i[t]=l)})));const s=()=>{const e=i.i[t];!i.l.get(t)&&e&&i.l.set(t,e),i.i[t]=G(l,o),Ht(this,t,i.i[t],n)};i.i?s():i.R.push((()=>{s()}))}}}})}else 1&e&&64&o&&Object.defineProperty(i,t,{value(...n){var e;const o=u(this);return null==(e=null==o?void 0:o.B)?void 0:e.then((()=>{var e;return null==(e=o.i)?void 0:e[t](...n)}))}})})),1&e){const e=new Map;i.attributeChangedCallback=function(t,o,l){b.jmp((()=>{var s;const c=e.get(t),a=u(this);if(this.hasOwnProperty(c)&&(l=this[c],delete this[c]),i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const e=null==a?void 0:a.u;if(a&&e&&!(8&e)&&l!==o){const i=a.i,r=null==(s=n.I)?void 0:s[t];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=i[s]&&(128&e||1&r)&&i[s].call(i,l,o,t)}))}return}const f=r.find((([t])=>t===c)),d=f?f[1][0]:0,p=4&d;if(512&d&&8&d&&!B(this[c])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[c])===l)return;const m=p&&null===l&&void 0===this[c];p&&(l=null!==l&&"false"!==l);const v=Object.getOwnPropertyDescriptor(i,c);m||l==this[c]||v.get&&!v.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.I)?l:{}),...r.filter((([t,n])=>31&n[0])).map((([t,o])=>{var l;const i=o[1]||t;return e.set(i,t),512&o[0]&&(null==(l=n.F)||l.push([t,i])),i}))]))}}return t},It=async(t,n,e)=>{var o;let l;try{if(!(32&n.u)){if(n.u|=32,n.u&=-1025,e.V){const i=((t,n)=>{var e;const o=t.m.replace(/-/g,"_"),l=t.V;if(!l)return;const i=p.get(l);if(i)return i[o];const s=null!=(e=m.get(l))?e:0,r=[s>0?"s-retry="+s:"",""].filter(Boolean).join("&");
|
|
1
|
+
window.navigator.plugins.length>0&&console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold","6.0.0-alpha.4");const t=document.createElement("style");t.textContent=".hydrated{visibility:inherit}",document.head.appendChild(t),window.addEventListener("keydown",(function(t){if("Tab"==t.key){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-tabbing")}"ArrowLeft"!=t.key&&"ArrowUp"!=t.key&&"ArrowRight"!=t.key&&"ArrowDown"!=t.key||(n=new Event("wmUserIsKeying"),window.dispatchEvent(n),document.querySelector("body").classList.add("wmcl-user-is-keying"))})),window.addEventListener("mousedown",(function(){var t=new Event("wmUserIsNotTabbing");window.dispatchEvent(t),document.querySelector("body").classList.remove("wmcl-user-is-tabbing"),document.querySelector("body").classList.remove("wmcl-user-is-keying")}));var n=()=>{};const e=document.createElement("div");e.id="wm-tooltip-container";const o=document.createElement("div");o.id="wm-tooltip",o.classList.add("wm-tooltip"),o.setAttribute("popover","manual"),o.setAttribute("aria-hidden","true");const l=document.createElement("style");l.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n";const i=document.querySelector("body");function s(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}i?(document.head.appendChild(l),e.appendChild(o),i.appendChild(e)):document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelector("body");document.head.appendChild(l),e.appendChild(o),t.appendChild(e)}));var r,c=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=s(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},u=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},a=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&c(t,n))},f=(t,n)=>n in t,d=(t,n)=>(0,console.error)(t,n),p=new Map,m=new Map,v=new Map,h="slot-fb{display:contents}slot-fb[hidden]{display:none}",w="http://www.w3.org/1999/xlink",y="undefined"!=typeof window?window:{},b={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},g=t=>Promise.resolve(t),$=(()=>{try{return!!y.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),j=!!$&&(()=>!!y.document&&Object.getOwnPropertyDescriptor(y.document.adoptedStyleSheets,"length").writable)(),O=!1,S=[],k=[],N=()=>{var t;return(null==(t=y.document)?void 0:t.hidden)?x(M):b.raf(M)},T=(t,n)=>e=>{t.push(e),O||(O=!0,n&&4&b.u?x(M):N())},E=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){d(t)}t.length=0},M=()=>{E(S),E(k),(O=S.length>0)&&N()},x=t=>g().then(t),C=T(k,!0);function L(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.u);const e=this.attachShadow(n);void 0===r&&(r=null),r&&(j?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r])}var A=t=>{const n=P(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&R(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!U(t,F(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&P(t,"childNodes").length&&A(t)}};function R(t,n,e){let o,l=0,i=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||F(o)===e)&&(i.push(o),void 0!==e))return i;i=[...i,...R(P(o,"childNodes"),n,e)]}return i}var U=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)F(l)!==n||!e&&l["s-sr"]||o.push(l);return o},D=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,F=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function P(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function H(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var z,I,W=new WeakMap,_=t=>"sc-"+t.m,B=t=>"object"==(t=typeof t)||"function"===t,V=(t,n,...e)=>{let o=null,l=null,i=null,s=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)if(o=n[e],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(s="function"!=typeof t&&!B(o))o+="";else if("function"!=typeof t&&void 0===o.u){d("Invalid vNode child");continue}s&&r?c[c.length-1].v+=o:c.push(s?q(null,o):o),r=s}};if(u(e),n){n.key&&(l=n.key),n.name&&(i=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const a=q(t,null);return a.h=n,c.length>0&&(a.$=c),a.j=l,a.O=i,a},q=(t,n)=>({u:0,S:t,v:null!=n?n:null,k:null,$:null,h:null,j:null,O:null}),Y={},Z=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},G=(t,n)=>null==t||B(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,K=t=>{var n;return null==(n=u(t))?void 0:n.$hostElement$},J=(t,n,e)=>{const o=K(t);return{emit:t=>Q(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},Q=(t,n,e)=>{const o=b.ce(n,e);return t.dispatchEvent(o),o},X=(t,n,e,o,l,i)=>{if(e===o)return;let s=f(t,n),r=n.toLowerCase();if("class"===n){const n=t.classList,l=ot(e);let i=ot(o);n.remove(...l.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&kt(o,t);else if(s||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=u(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const c=B(o);if((s||c&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?s=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let u=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(n=r,u=!0),null==o||!1===o?(!1!==o||""===t.getAttribute(n)||4&i&&!nt(n))&&(u?t.removeAttributeNS(w,n):t.removeAttribute(n)):(!s||4&i||l)&&!c&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(w,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):f(y,r)?r.slice(2):r[2]+n.slice(3),e||o){const l=n.endsWith(lt);n=n.replace(it,""),e&&b.rel(t,n,e,l),o&&b.ael(t,n,o,l)}},tt=new Set(["draggable","contenteditable","spellcheck"]),nt=t=>tt.has(t)||t.startsWith("aria-"),et=/\s/,ot=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(et):[]),lt="Capture",it=RegExp(lt+"$"),st=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.h||{},i=n.h||{};for(const t of rt(Object.keys(l)))t in i||X(o,t,l[t],void 0,e,n.u);for(const t of rt(Object.keys(i)))X(o,t,l[t],i[t],e,n.u)};function rt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ct=!1,ut=!1,at=!1,ft=!1,dt=[],pt=[],mt=(t,n,e)=>{var o;const l=n.$[e];let i,s,r,c=0;if(ct||(at=!0,"slot"===l.S&&(l.u|=l.$?2:1)),null!=l.v)i=l.k=y.document.createTextNode(l.v);else if(1&l.u)i=l.k=y.document.createTextNode(""),st(null,l,ft);else{if(ft||(ft="svg"===l.S),!y.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=l.k=y.document.createElementNS(ft?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ct&&2&l.u?"slot-fb":l.S),ft&&"foreignObject"===l.S&&(ft=!1),st(null,l,ft),l.$){const n="template"===l.S?i.content:i;for(c=0;c<l.$.length;++c)s=mt(t,l,c),s&&n.appendChild(s)}"svg"===l.S?ft=!1:"foreignObject"===i.tagName&&(ft=!0)}return i["s-hn"]=I,3&l.u&&(i["s-sr"]=!0,i["s-cr"]=z,i["s-sn"]=l.O||"",i["s-rf"]=null==(o=l.h)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===F(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(i),r=t&&t.$&&t.$[e],r&&r.S===l.S&&t.k&&vt(t.k)),i},vt=t=>{b.u|=1;const n=t.closest(I.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Nt(n,t,null!=e?e:null),t["s-sh"]=void 0,at=!0)}b.u&=-2},ht=(t,n)=>{b.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===I&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==I&&o["s-ol"]&&(Nt(gt(o).parentNode,o,gt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,at=!0),n&&ht(o,n)}b.u&=-2},wt=(t,n,e,o,l,i)=>{let s,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===I&&(r=r.shadowRoot),"template"===e.S&&(r=r.content);l<=i;++l)o[l]&&(s=mt(null,e,l),s&&(o[l].k=s,Nt(r,s,gt(n))))},yt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;St(n),t&&(ut=!0,t["s-ol"]?t["s-ol"].remove():ht(t,!0),t.remove())}}},bt=(t,n,e=!1)=>t.S===n.S&&("slot"===t.S?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),gt=t=>t&&t["s-ol"]||t,$t=(t,n,e=!1)=>{const o=n.k=t.k,l=t.$,i=n.$,s=n.S,r=n.v;let c;null==r?(ft="svg"===s||"foreignObject"!==s&&ft,"slot"!==s||ct||t.O!==n.O&&(n.k["s-sn"]=n.O||"",vt(n.k.parentElement)),st(t,n,ft),null!==l&&null!==i?((t,n,e,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=n.length-1,d=n[0],p=n[f],m=o.length-1,v=o[0],h=o[m];const w="template"===e.S?t.content:t;for(;r<=f&&c<=m;)if(null==d)d=n[++r];else if(null==p)p=n[--f];else if(null==v)v=o[++c];else if(null==h)h=o[--m];else if(bt(d,v,l))$t(d,v,l),d=n[++r],v=o[++c];else if(bt(p,h,l))$t(p,h,l),p=n[--f],h=o[--m];else if(bt(d,h,l))"slot"!==d.S&&"slot"!==h.S||ht(d.k.parentNode,!1),$t(d,h,l),Nt(w,d.k,p.k.nextSibling),d=n[++r],h=o[--m];else if(bt(p,v,l))"slot"!==d.S&&"slot"!==h.S||ht(p.k.parentNode,!1),$t(p,v,l),Nt(w,p.k,d.k),p=n[--f],v=o[++c];else{for(u=-1,a=r;a<=f;++a)if(n[a]&&null!==n[a].j&&n[a].j===v.j){u=a;break}u>=0?(s=n[u],s.S!==v.S?i=mt(n&&n[c],e,u):($t(s,v,l),n[u]=void 0,i=s.k),v=o[++c]):(i=mt(n&&n[c],e,c),v=o[++c]),i&&Nt(gt(d.k).parentNode,i,gt(d.k))}r>f?wt(t,null==o[m+1]?null:o[m+1].k,e,o,c,m):c>m&&yt(n,r,f)})(o,l,n,i,e):null!==i?(null!==t.v&&(o.textContent=""),wt(o,null,n,i,0,i.length-1)):!e&&null!==l&&yt(l,0,l.length-1),ft&&"svg"===s&&(ft=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.v!==r&&(o.data=r)},jt=[],Ot=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(!n["s-sh"]||n["s-sh"]!==t["s-hn"]||""!==l&&F(n)===l))if(D(n,l)){let e=jt.find((t=>t.N===n));ut=!0,n["s-sn"]=n["s-sn"]||l,e?(e.N["s-sh"]=t["s-hn"],e.T=t):(n["s-sh"]=t["s-hn"],jt.push({T:t,N:n})),n["s-sr"]&&jt.map((t=>{D(t.N,n["s-sn"])&&(e=jt.find((t=>t.N===n)),e&&!t.T&&(t.T=e.T))}))}else jt.some((t=>t.N===n))||jt.push({N:n})}1===t.nodeType&&Ot(t)}},St=t=>{t.h&&t.h.ref&&dt.push((()=>t.h.ref(null))),t.$&&t.$.map(St)},kt=(t,n)=>{pt.push((()=>t(n)))},Nt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=F(t)||"";return{slotNode:R(P(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return(null==t?void 0:t.__insertBefore)?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},Tt=(t,n)=>{if(n&&!t.M&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.M=()=>{n["s-p"].splice(e-1,1),o()})))}},Et=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Tt(t,t.C);const e=()=>Mt(t,n);if(!n)return C(e);queueMicrotask((()=>{e()}))},Mt=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.L&&(t.L=!1,Ft(o,"connectedCallback",void 0,e)),t.u|=256,t.A&&(t.A.map((([t,n])=>Ft(o,t,n,e))),t.A=void 0),t.R.length&&t.R.forEach((t=>t(e))),l=Ft(o,"componentWillLoad",void 0,e)):l=Ft(o,"componentWillUpdate",void 0,e),l=xt(l,(()=>Ft(o,"componentWillRender",void 0,e))),xt(l,(()=>Lt(t,o,n)))},xt=(t,n)=>Ct(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Ct=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Lt=async(t,n,e)=>{var o;const l=t.$hostElement$,i=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,l=((t,n)=>{var e,o,l;const i=_(n),s=v.get(i);if(!y.document)return i;if(t=11===t.nodeType?t:y.document,s)if("string"==typeof s){let l,r=W.get(t=t.head||t);if(r||W.set(t,r=new Set),!r.has(i)){l=y.document.createElement("style"),l.textContent=s;const c=null!=(e=b.U)?e:H(y.document);if(null!=c&&l.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if($){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(s),j?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=s+n.textContent:t.prepend(l)}else t.append(l);1&n.u&&t.insertBefore(l,null),4&n.u&&(l.textContent+=h),r&&r.add(i)}}else{let n=W.get(t);if(n||W.set(t,n=new Set),!n.has(i)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===e.CSSStyleSheet)o=s;else{o=new e.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}j?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(i)}}return i})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);At(t,n,l,e),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>Rt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},At=(t,n,e,o)=>{try{n=n.render&&n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,i,s,r;const c=t.$hostElement$,u=t.o,a=t.D||q(null,null),f=(t=>t&&t.S===Y)(n)?n:V(null,null,n);if(I=c.tagName,u.F&&(f.h=f.h||{},u.F.forEach((([t,n])=>{f.h[n]=c[t]}))),e&&f.h)for(const t of Object.keys(f.h))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.h[t]=c[t]);if(f.S=null,f.u|=4,t.D=f,f.k=a.k=c.shadowRoot||c,ct=!(!(1&u.u)||128&u.u),z=c["s-cr"],ut=!1,$t(a,f,e),b.u|=1,at){Ot(f.k);for(const t of jt){const n=t.N;if(!n["s-ol"]&&y.document){const t=y.document.createTextNode("");t["s-nr"]=n,Nt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of jt){const n=t.N,r=t.T;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(i=e["s-nr"])?i:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Nt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=y.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Nt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(s=n["s-ih"])&&s)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(ut&&A(f.k),b.u&=-2,jt.length=0,!ct&&!(1&u.u)&&c["s-cr"]){const t=f.k.__childNodes||f.k.childNodes;for(const n of t)if(n["s-hn"]!==I&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=y.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Nt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}z=void 0,dt.forEach((t=>t())),dt.length=0,pt.forEach((t=>t())),pt.length=0})(t,n,o)}catch(n){d(n,t.$hostElement$)}return null},Rt=t=>{const n=t.$hostElement$,e=t.i,o=t.C;Ft(e,"componentDidRender",void 0,n),64&t.u?Ft(e,"componentDidUpdate",void 0,n):(t.u|=64,Pt(n),Ft(e,"componentDidLoad",void 0,n),t.P(n),o||Dt()),t.H(n),t.M&&(t.M(),t.M=void 0),512&t.u&&x((()=>Et(t,!1))),t.u&=-517},Ut=t=>{var n;{const e=u(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.u)&&Et(e,!1),o}},Dt=()=>{x((()=>Q(y,"appload",{detail:{namespace:"ripple"}})))},Ft=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){d(t,o)}},Pt=t=>t.classList.add("hydrated"),Ht=(t,n,e,o)=>{const l=u(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=l.$hostElement$,s=l.l.get(n),r=l.u,c=l.i;if(e=G(e,o.t[n][0]),!(8&r&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e))){if(l.l.set(n,e),o.I){const t=o.I[n];t&&t.map((t=>{try{const[[o,i]]=Object.entries(t);(128&r||1&i)&&(c?c[o](e,s,n):l.R.push((()=>{l.i[o](e,s,n)})))}catch(t){d(t,i)}}))}if(2&r){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,s,n)&&!(16&r))return;16&r||Et(l,!1)}}},zt=(t,n,e)=>{var o,l;const i=t.prototype;{t.watchers&&!n.I&&(n.I=Z(t.watchers)),t.deserializers&&!n.W&&(n.W=t.deserializers),t.serializers&&!n._&&(n._=t.serializers);const r=Object.entries(null!=(o=n.t)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:r}=s(i,t)||{};l&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),(1&e||!l)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>u(this).l.get(n))(0,t);const e=u(this),o=e?e.i:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(l){const i=u(this);if(i){if(r)return void 0===(32&o?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(l=i.l.get(t)),r.call(this,G(l,o)),void Ht(this,t,l=32&o?this[t]:i.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return Ht(this,t,l,n),void(1&e&&!i.i&&i.R.push((()=>{4096&n.t[t][0]&&i.i[t]!==i.l.get(t)&&(i.i[t]=l)})));const s=()=>{const e=i.i[t];!i.l.get(t)&&e&&i.l.set(t,e),i.i[t]=G(l,o),Ht(this,t,i.i[t],n)};i.i?s():i.R.push((()=>{s()}))}}}})}else 1&e&&64&o&&Object.defineProperty(i,t,{value(...n){var e;const o=u(this);return null==(e=null==o?void 0:o.B)?void 0:e.then((()=>{var e;return null==(e=o.i)?void 0:e[t](...n)}))}})})),1&e){const e=new Map;i.attributeChangedCallback=function(t,o,l){b.jmp((()=>{var s;const c=e.get(t),a=u(this);if(this.hasOwnProperty(c)&&(l=this[c],delete this[c]),i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const e=null==a?void 0:a.u;if(a&&e&&!(8&e)&&l!==o){const i=a.i,r=null==(s=n.I)?void 0:s[t];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=i[s]&&(128&e||1&r)&&i[s].call(i,l,o,t)}))}return}const f=r.find((([t])=>t===c)),d=f?f[1][0]:0,p=4&d;if(512&d&&8&d&&!B(this[c])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[c])===l)return;const m=p&&null===l&&void 0===this[c];p&&(l=null!==l&&"false"!==l);const v=Object.getOwnPropertyDescriptor(i,c);m||l==this[c]||v.get&&!v.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.I)?l:{}),...r.filter((([t,n])=>31&n[0])).map((([t,o])=>{var l;const i=o[1]||t;return e.set(i,t),512&o[0]&&(null==(l=n.F)||l.push([t,i])),i}))]))}}return t},It=async(t,n,e)=>{var o;let l;try{if(!(32&n.u)){if(n.u|=32,n.u&=-1025,e.V){const i=((t,n)=>{var e;const o=t.m.replace(/-/g,"_"),l=t.V;if(!l)return;const i=p.get(l);if(i)return i[o];const s=null!=(e=m.get(l))?e:0,r=[s>0?"s-retry="+s:"",""].filter(Boolean).join("&");
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
3
3
|
return import(`./${l}.entry.js${r?"?"+r:""}`).then((t=>(m.delete(l),p.set(l,t),t[o])),(t=>{m.set(l,s+1),d(t,n.$hostElement$)}))})(e,n);if(i&&"then"in i){const t=()=>{};l=await i,t()}else l=i;if(!l)throw n.u&=-33,n.q=(null!=(o=n.q)?o:0)+1,n.q<3&&(n.u|=1024),Error(`Constructor for "${e.m}#${n.Y}" was not found`);l.isProxied||(e.I=Z(l.watchers),e._=l.serializers,e.W=l.deserializers,zt(l,e,2),l.isProxied=!0);const s=()=>{};n.u|=8;try{new l(n)}catch(n){d(n,t)}n.u&=-9,n.u|=128,s(),4&e.u?n.L=!0:Wt(n.i,t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const n=_(e);if(!v.has(n)){const o=()=>{};((t,n,e)=>{let o=v.get(t);$&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,v.set(t,o)})(n,t,!!(1&e.u)),o()}}}const i=n.C,s=()=>Et(n,!0);i&&i["s-rc"]?i["s-rc"].push(s):s()}catch(e){d(e,t),n.M&&(n.M(),n.M=void 0),!n.P||1024&n.u||n.P(t)}},Wt=(t,n)=>{Ft(t,"connectedCallback",void 0,n)},_t=(t,n)=>{Ft(t,"disconnectedCallback",void 0,n||t)},Bt=(t,n={})=>{var e;if(!y.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],i=y.customElements,s=y.document.head,r=s.querySelector("meta[charset]"),c=y.document.createElement("style"),a=[];let f,d=!0;Object.assign(b,n),b.p=new URL(n.resourcesUrl||"./",y.document.baseURI).href;let p=!1;if(t.map((t=>{t[1].map((n=>{var e,s;const r={u:n[0],m:n[1],t:n[2],Z:n[3]};4&r.u&&(p=!0),r.t=n[2],r.Z=n[3],r.F=[],r.I=Z(n[4]),r._=null!=(e=n[5])?e:{},r.W=null!=(s=n[6])?s:{};const c=r.m,m=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,G:new Map};e.B=new Promise((t=>e.H=t)),e.K=new Promise((t=>e.P=t)),t["s-p"]=[],t["s-rc"]=[],e.R=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.m}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else L.call(t,r)}connectedCallback(){const t=u(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Vt(this,t,r.Z)),f&&(clearTimeout(f),f=null),d?a.push(this):b.jmp((()=>(t=>{if(!(1&b.u)){const n=u(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.u)Vt(t,n,e.Z),(null==n?void 0:n.i)?Wt(n.i,t):1024&n.u?setTimeout((()=>It(t,n,e)),1e3):(null==n?void 0:n.K)&&n.K.then((()=>Wt(n.i,t)));else{n.u|=1,12&e.u&&(t=>{if(!y.document)return;const n=t["s-cr"]=y.document.createComment("");n["s-cn"]=!0,Nt(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Tt(n,n.C=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),It(t,n,e)}o()}})(this))))}disconnectedCallback(){b.jmp((()=>(async t=>{if(!(1&b.u)){const n=u(t);(null==n?void 0:n.J)&&(n.J.map((t=>t())),n.J=void 0),(null==n?void 0:n.i)?_t(n.i,t):(null==n?void 0:n.K)&&n.K.then((()=>_t(n.i,t)))}W.has(t)&&W.delete(t),t.shadowRoot&&W.has(t.shadowRoot)&&W.delete(t.shadowRoot)})(this))),x((()=>{var t;const n=u(this);if(!n)return;const e=a.findIndex((t=>t===this));e>-1&&a.splice(e,1),(null==(t=null==n?void 0:n.D)?void 0:t.k)instanceof Node&&!n.D.k.isConnected&&delete n.D.k}))}componentOnReady(){var t;return null==(t=u(this))?void 0:t.K}};r.V=t[0],l.includes(c)||i.get(c)||(o.push(c),i.define(c,zt(m,r,1)))}))})),o.length>0&&(p&&(c.textContent+=h),c.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(e=b.U)?e:H(y.document);null!=t&&c.setAttribute("nonce",t),s.insertBefore(c,r?r.nextSibling:s.firstChild)}d=!1,a.length?a.map((t=>t.connectedCallback())):b.jmp((()=>f=setTimeout(Dt,30)))},Vt=(t,n,e)=>{e&&y.document&&e.map((([e,o,l])=>{const i=Yt(y.document,t,e),s=qt(n,l),r=Zt(e);b.ael(i,o,s,r),(n.J=n.J||[]).push((()=>b.rel(i,o,s,r)))}))},qt=(t,n)=>e=>{var o;try{256&t.u?null==(o=t.i)||o[n](e):(t.A=t.A||[]).push([n,e])}catch(n){d(n,t.$hostElement$)}},Yt=(t,n,e)=>4&e?t:8&e?y:n,Zt=t=>({passive:!!(1&t),capture:!!(2&t)}),Gt=t=>b.U=t;export{Y as H,K as a,Bt as b,J as c,Ut as f,n as g,V as h,g as p,a as r,Gt as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as s}from"./p-BIsCCYMI.js";const o=s||(()=>{});export{o as g}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-BFdpYP3s.js";import{i as s,s as e,c as i,a as n}from"./p-BhI1sXbu.js";const a="#ff5f4e",r="#19a1a9",o="#088000",h="#2e1b46",c="#8b86ca",u="#575195",d="#6b6b6b",l={doughnut:{size:155,colors:[o,d],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[c,h,d],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[u,r,h,a,d],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[o,d],padding:0,category:"stackedBar"},bar2:{size:400,colors:[d,c,u,h,r,a],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",r,"#8e4129",a],padding:0,category:"stackedBar"},bar4:{size:400,colors:[a,r,u],padding:0,category:"stackedBar"},bar5:{size:400,colors:[d,c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[c],padding:0,category:"simpleBar"},bar7:{size:400,colors:[u,r,a,d],padding:0,category:"simpleBar"}};function f(t){return"percentage"===t||"amount"===t?"show-values":""}const p=s.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"}),g=s.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function b(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function m(t,s,e){return e?Math.round(100*t/s):Math.round(1e4*t/s)/100}function v(t,s){return 360*t/s}function x(t){return parseFloat((Math.floor(100*t)/100).toFixed(2))}function w(t,s,e,i){var n=x(t+t*s*Math.cos(Math.PI*e/180)),a=x(t+t*s*Math.sin(Math.PI*e/180));return void 0!==i?{x1:n,y1:a,x2:x(t+t*s*Math.cos(Math.PI*i/180)),y2:x(t+t*s*Math.sin(Math.PI*i/180))}:{x:n,y:a}}function $(t,s,e,i,n){var a=x(n/2*t);return`A ${a}, ${a} 0 ${s} ${x(e)}, ${x(i)}`}function M(t){return Math.round(t/function(t){return function(t){let s=80*(t-300)/600+70;return s<70?70:s>150?150:s}(t)}(t))}function k(t,s){const e=t/s,i=10**Math.floor(Math.log10(e)),n=e/i;let a;return a=n>5?10*i:n>3?5*i:n>2?3*i:n>1.5?2*i:n>1?1.5*i:i,a}function y(t){if(this.popoverEl&&this.popoverEl.open&&"Enter"===t.key){const t=this.popoverEl.querySelector("button");t&&t.click()}}function z(t,s){this.popoverEl&&!this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),s.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,s),O(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function A(t,s){this.popoverEl&&this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),this.focusedSliceId=s.id,s.coords=n(t.target),s.coords.x=s.coords.x+30,s.coords.y=s.coords.y+30,C(this.popoverEl,s),O(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function B(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this.isTabbing=!0,T.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.isTabbing=!0,I.call(this);break;case"Tab":S.call(this);break;case"Escape":this.popoverEl.open=!1,this.userIsNavigating=!1}}function C(t,s){t.open=!1,s.title&&s.text&&(t.sliceDetails=Object.assign({},s),window.setTimeout((()=>t.open=!0),30))}function I(){const t=i(document.activeElement),s=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;F.call(this,s)}function T(){if(this.sliceEls){const t=i(document.activeElement);let s=this.sliceEls.indexOf(t);-1===s?s=0:0===s?s=this.sliceEls.length-1:s-=1,F.call(this,s)}}function F(t){this.sliceEls&&this.el&&(this.userIsNavigating=!0,this.componentWrapperEl.tabIndex=-1,this.el.focusable=!1,this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.sliceEls[t].tabIndex=0,this.sliceEls[t].focusable=!0,this.sliceEls[t].focus(),this.focusedSliceId=this.sliceEls[t].id,window.setTimeout((()=>{this.popoverEl&&(this.popoverEl.open=!0)}),10))}function S(){this.focusedSliceId=void 0,this.sliceEls&&this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.userIsNavigating=!1,window.setTimeout((()=>{this.componentWrapperEl.tabIndex=0,this.el.focusable=!0,this.popoverEl&&(this.popoverEl.open=!1)}),100)}function D(t,s,e){const i=t[s];return null!=i&&""!==i?String(i):t.getAttribute(e)}async function j(t){this.slicesDetails=[];let s=0;const e=Array.from(this.el.children);this.total=e.reduce(((t,s)=>t+parseInt(D(s,"amount","amount")||"0")),0);let i=[...l[t].colors];"bar2"===this.chartType&&(e.length<=5&&i.splice(1,1),e.length<=4&&i.splice(2,1)),"bar3"===t&&2===e.length&&(i=[i[1],i[3]]),"doughnut2"===t&&e.length<5&&(i.splice(2,1),e.length<4&&i.shift()),"bar5"!==t||this.notStartedColor||i.shift();let n=0;e.forEach(((e,a)=>{const r=D(e,"amount","amount");if(null==r)return;const o=parseInt(r||"0"),h=m(o,this.total,!0);let c=a;"bar6"===t&&(c=0);const u={amount:o,visualAmount:o,perc:h,legend:D(e,"legend","legend"),color:i[c]||d,offset:s,id:`${this.uid}-${n+1}`,title:D(e,"popoverTitle","popover-title"),text:D(e,"popoverText","popover-text"),buttonText:D(e,"popoverButtonText","popover-button-text"),sliceRef:e,inSmallCluster:!1,index:n};s+=o,this.slicesDetails.push(u),n++}))}function K(t,s,e){const i=v(s,this.total)-90,n=t/this.total*360;let a=i+n;const r=n>180?"1 1":"0 1",o=n>180?"1 0":"0 0",h=this.chartDetails.size/2,c=this.chartDetails.thickness,u="doughnut"===e?2.25:3;360===n&&(a-=.01);const d=w(h,1,i+1.5,a),l=w(h,c,i+u,a);return`M ${d.x1}, ${d.y1} `+$(1,r,d.x2,d.y2,this.chartDetails.size)+` L ${l.x2}, ${l.y2} `+$(c,o,l.x1,l.y1,this.chartDetails.size)+" z"}function N(){const e=s.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return t("div",{id:"chart-instructions"},e)}function H(s){const e=this.chartDetails.size+this.chartDetails.padding,i="doughnut"===s;let n=i?this.slicesDetails:function(t,s){let e=[...t].sort(((t,s)=>t.amount===s.amount?0:t.amount>s.amount?-1:1)),i=0;return e.filter((t=>t.amount>0)).forEach(((t,n)=>{const a=e[n===e.length-1?0:n+1],r=m(e[0===n?e.length-1:n-1].amount,s,!0),o=m(a.amount,s,!0),h=0===t.perc?8:5;t.inSmallCluster=t.perc<4&&(r<h||o<h),t.offset=i,i+=t.amount})),e}(this.slicesDetails,this.total);n=function(t,s,e){const i=s.map((t=>v(t.amount,e)));if(i.some((t=>0!==t&&t<7))){const t=i.map((t=>0==t?t:Math.max(t,7))),n=t.reduce(((t,s)=>t+(s>7&&0!==s?s:0)),0),a=360-t.reduce(((t,s)=>t+(s>7&&0!==s?0:s)),0),r=(n-a)/a,o=t.map((t=>t>7?t-r*t:0==t?0:7));let h=0;s=s.map(((t,s)=>{const i=o[s]/360*e,n=h;return h+=i,Object.assign(Object.assign({},t),{visualAmount:i,offset:n})}))}return s}(0,n,this.total);const a=n[0].amount;let r=m(a,this.total,!0);return 0===r&&a>0?r="<1%":100===r&&a<this.total?r=">99%":r+="%",t("div",{class:"chart-wrapper doughnut-wrapper"},t("svg",{width:e+"px",height:e+"px",id:`graphic-${this.uid}`,class:"doughnut-svg"},t("defs",null,t("filter",{id:"wmHoverDropShadow"},t("feGaussianBlur",{stdDeviation:"3"}),t("feOffset",{result:"offsetblur"}),t("feFlood",{"flood-color":"#333"}),t("feComposite",{operator:"in",in2:"offsetblur"}),t("feMerge",null,t("feMergeNode",null),t("feMergeNode",{in:"SourceGraphic"})))),n.map((t=>q.call(this,t,s))),E.call(this),i?t("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},r):t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`,"text-anchor":"middle","dominant-baseline":"middle"},n.map((t=>t.amount>0&&!t.inSmallCluster?G.call(this,t):"")))))}function O(t,s){t.forEach((t=>{t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==s.index?t.classList.add("faded"):t.classList.remove("faded")}))}function W(t){t.forEach((t=>{t.classList.remove("faded")}))}function q(s,e){const i=m(s.amount,this.total,!0)+"%";return!isNaN(s.amount)&&t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("path",{id:s.id,class:"segment doughnut-segment",fill:s.visualAmount?s.color:"transparent",d:K.call(this,s.visualAmount,s.offset,e),onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),role:"img","aria-label":`${s.legend}, ${i}`,"data-segmentindex":s.index}))}function E(){return this.isTabbing?t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("use",{tabindex:-1,id:"kfbg1",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfstroke",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfbg2",xlinkHref:`#${this.focusedSliceId}`})):""}function G(s){const e=v(s.offset+s.visualAmount/2,this.total);let i,{x:n,y:a}=w(this.chartDetails.size/2,1.4,e-90);return i=0===s.perc&&s.amount>0?"<1%":100===s.perc&&s.amount<this.total?">99%":s.perc+"%",t("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":s.index},i)}function L(s){const e="bar"===s,i=this.el.shadowRoot.querySelectorAll(".value");return i.length>0&&requestAnimationFrame((()=>{let t=[],s=!1;i.forEach((e=>{e.classList.remove("hidden");const i=parseInt(e.dataset.value);if(t.length>0&&0!=i){const n=e.getBoundingClientRect().left-4;t.forEach((t=>{const a=parseInt(t.dataset.value);t.getBoundingClientRect().right>n&&((i<a?e:t).classList.add("hidden"),s=!0)}))}!e.classList.contains("hidden")&&i>0&&t.push(e)})),(this.isBar||this.isDoughnut)&&this.showHiddenValuesMessage(s)})),t("div",{class:"chart-wrapper bar-wrapper"},e?t("div",{class:"single-perc"},m(this.slicesDetails[0].amount,this.total,!0)+"%"):"","bar3"===this.chartType&&this.drawAxis(),t("div",{class:`inner-stacked-bar-wrapper ${f(this.valueFormat)}`},e?"":t("div",{class:`values ${this.valueFormat}`},this.slicesDetails.map((t=>this.renderBarText(t,5)))),t("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((t=>R.call(this,t,5)))),e?Y.call(this):""),"bar3"===this.chartType?t("div",{class:"bar3-axis-label","aria-hidden":"true"},t("span",null,"0%"),t("span",null,"100%")):"")}function R(s,e){const i=m(s.amount,this.total,!1),n=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper"),a=i/100*(n?n.offsetWidth:this.el.offsetWidth)>=e,r=a||0==s.amount?`${i}%`:`${e}px`;let o="";return"percentage"==this.valueFormat?o=`${m(s.amount,this.total,!0)} %`:"amount"==this.valueFormat&&(o=s.amount.toString()),t("div",{class:`segment stacked-bar-segment ${0===m(s.amount,this.total,!1)?"zero":""} ${a?"":"fixed-width"}`,style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("span",{class:"sr-only"},`${s.legend} ${o}`))}function U(s){const i=this.slicesDetails.map((t=>t.amount)).reduce(((t,s)=>t>s?t:s)),n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);let a=M(this.el.getBoundingClientRect().width-n-48),r=k(i,a);const o=Math.floor((a*r-i)/r);a-=o,this.el.style.setProperty("--backgroundSize",100/a+"%"),this.el.style.setProperty("--labelWidth",this.labelWidth),"bar7"!==s||this.showBarLegend||this.el.style.setProperty("--labelWidth","0px");const h=[];this.slicesDetails.forEach((e=>{e.legend&&h.push(function(s,e,i){return t("label",{class:`label${"bar7"!==i||e?"":" hidden"}`},s)}(e.legend,this.showBarLegend,s)),h.push(V.call(this,e,r,a,i))}));const c=[];for(let s=1;s<=a;s++){const i=b(e(s,r));c.push(t("div",{class:"tick"},t("span",null,i)))}const u="bar6"===s&&this.showGrid&&this.el.getBoundingClientRect().width>300;return t("div",{class:"chart-wrapper simple-bar-wrapper"},t("div",{class:`chart ${f(this.valueFormat)}`},u&&t("div",{class:"gridlines"}),t("div",{class:"rows"},h)),u&&t("div",{class:"x-axis","aria-hidden":"true"},t("div",{class:"zero"},t("span",null,"0")),c))}function V(s,e,i,n){const a=m(s.amount,"bar6"===this.currentChartType?e*i:n,!1),r=a?a+"%":"1px",o=b(s.amount);let h="amount"===this.valueFormat?o:"";return"bar6"===this.currentChartType&&"percentage"===this.valueFormat?h=s.amount+"%":"bar7"===this.currentChartType&&"percentage"===this.valueFormat&&(h=(0===this.total?"0":m(s.amount,this.total,!0))+"%"),t("div",{class:"bar segment",style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>A.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("div",{class:"value"},h))}function P(s){if(this.showLegend){const e=this.slicesDetails.reduce(((t,s)=>!!s.inSmallCluster||t),!1);return this.isDoughnut&&this.showHiddenValuesMessage(e),t("div",{class:"legend-wrapper"},t("div",{class:`legend ${s} ${"bar"===this.mode?"--top":"--bottom"}`,"aria-hidden":"true"},this.slicesDetails.map((t=>{const s="amount"==this.printModeFormat?`${t.amount}/${this.total}`:`${m(t.amount,this.total,!0)}%`;if(t.amount||t.legend)return X.call(this,{key:t.legend,color:t.color},s,t)}))),this.isDoughnut&&!this.printMode&&J())}}function X(s,e="",i=null){const n=t=>{i&&(i.coords={x:t.clientX,y:t.clientY},C(this.popoverEl,i),O(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),i))};return t("div",{class:"legend-item",onClick:t=>n(t),"data-segmentindex":i?i.index:null},t("div",{class:"legend-color",style:{backgroundColor:s.color}}),t("div",{class:"legend-text"},s.key,e&&t("span",{class:"print-value "+(this.printMode?"force-visible":"")},": ",e)))}function Y(){if(this.completionMessage)return t("div",{class:"completion-message"},this.completionMessage)}function J(){return t("div",{class:"hidden-values-warning hidden"},p,t("br",null),g)}function Q(t,s,e,i=0){switch(e){case"amount":return t.toFixed(i);case"percentage":const e=t/s*100;return t>0&&e<1?"<1%":e>99&&t!==s?">99%":`${Math.round(e).toFixed(0)}%`;default:return""}}function Z(t,s=[1,1.5,2,2.5,3,5,10]){const e=t/Math.pow(10,Math.floor(Math.log10(t)));return s.some((t=>Math.abs(e-t)<1e-4))}function _(t){if(0===t||!Number.isFinite(t))return 0;let s=Math.abs(t);for(let t=0;t<=15;t++){const e=Math.round(s),i=1e-9;if(Math.abs(s-e)<i)return t;s*=10}return 2}function tt(t){if(0===t||!Number.isFinite(t))return 0;const s=Math.abs(t);let e=s;return s>=1e6?e=s/1e6:s>=1e3&&(e=s/1e3),Math.max(_(s),_(e))}function st(t,s){const e=void 0!==s;if(t>=1e6){const i=t/1e6;return e?`${i.toFixed(s)}M`:`${i.toFixed(t%1e6==0?0:1)}M`}if(t>=1e3){const i=t/1e3;return e?`${i.toFixed(s)}K`:`${i.toFixed(t%1e3==0?0:1)}K`}return e?t.toFixed(s):t.toString()}function et(t,s){for(let e=t;e>=1;e--){const t=s/e;if(Z(t))return{numIntervals:e,interval:t}}return{numIntervals:1,interval:s}}function it(t){if(t<=0)return 0;const s=[1,1.5,2,2.5,3,5,10],e=Math.pow(10,Math.floor(Math.log10(t))),i=t/e;for(const t of s)if(t>=i)return t*e;return 10*e}function nt(t){const s=new Set,e=[];return t.forEach((t=>{t.forEach((t=>{s.has(t.barLegend)||(s.add(t.barLegend),e.push(t))}))})),e}function at(t){const s=new Map;return t.forEach((t=>{var e;let i=null!==(e=t.groupName)&&void 0!==e?e:null;s.has(i)||s.set(i,[]),s.get(i).push(t)})),s}function rt(t){const s=[...t],e=[];s.forEach((t=>{t.groupName&&!e.includes(t.groupName)&&e.push(t.groupName)}));const i=s.filter((t=>t.groupName===e[0])).map((t=>t.barLegend));return s.sort(((t,s)=>{const n=e.indexOf(t.groupName||""),a=e.indexOf(s.groupName||"");return n!==a?n-a:i.indexOf(t.barLegend)-i.indexOf(s.barLegend)}))}export{l as a,m as b,U as c,L as d,H as e,N as f,j as g,B as h,P as i,J as j,S as k,Q as l,it as m,nt as n,at as o,et as p,st as q,W as r,rt as s,M as t,tt as u,k as v,Y as w,X as x}
|
|
1
|
+
import{h as t}from"./p-BIsCCYMI.js";import{i as s,s as e,c as i,a as n}from"./p-BhI1sXbu.js";const a="#ff5f4e",r="#19a1a9",o="#088000",h="#2e1b46",c="#8b86ca",u="#575195",l="#6b6b6b",d={doughnut:{size:155,colors:[o,l],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[c,h,l],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[u,r,h,a,l],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[o,l],padding:0,category:"stackedBar"},bar2:{size:400,colors:[l,c,u,h,r,a],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",r,"#8e4129",a],padding:0,category:"stackedBar"},bar4:{size:400,colors:[a,r,u],padding:0,category:"stackedBar"},bar5:{size:400,colors:[l,c,h,"#0089e4",o,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[c],padding:0,category:"simpleBar"},bar7:{size:400,colors:[u,r,a,l],padding:0,category:"simpleBar"}};function f(t){return"percentage"===t||"amount"===t?"show-values":""}const p=s.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"}),g=s.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function b(t){return t>999||t<-999?Math.round(t/100)/10+"K":t}function m(t,s,e){return e?Math.round(100*t/s):Math.round(1e4*t/s)/100}function v(t,s){return 360*t/s}function x(t){return parseFloat((Math.floor(100*t)/100).toFixed(2))}function w(t,s,e,i){var n=x(t+t*s*Math.cos(Math.PI*e/180)),a=x(t+t*s*Math.sin(Math.PI*e/180));return void 0!==i?{x1:n,y1:a,x2:x(t+t*s*Math.cos(Math.PI*i/180)),y2:x(t+t*s*Math.sin(Math.PI*i/180))}:{x:n,y:a}}function $(t,s,e,i,n){var a=x(n/2*t);return`A ${a}, ${a} 0 ${s} ${x(e)}, ${x(i)}`}function M(t){return Math.round(t/function(t){return function(t){let s=80*(t-300)/600+70;return s<70?70:s>150?150:s}(t)}(t))}function k(t,s){const e=t/s,i=10**Math.floor(Math.log10(e)),n=e/i;let a;return a=n>5?10*i:n>3?5*i:n>2?3*i:n>1.5?2*i:n>1?1.5*i:i,a}function y(t){if(this.popoverEl&&this.popoverEl.open&&"Enter"===t.key){const t=this.popoverEl.querySelector("button");t&&t.click()}}function z(t,s){this.popoverEl&&!this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),s.coords={x:t.clientX,y:t.clientY},B(this.popoverEl,s),O(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function C(t,s){this.popoverEl&&this.isTabbing&&(this.componentWrapperEl.classList.toggle("interactive-popover",!!s.buttonText),this.focusedSliceId=s.id,s.coords=n(t.target),s.coords.x=s.coords.x+30,s.coords.y=s.coords.y+30,B(this.popoverEl,s),O(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),s))}function A(t){switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this.isTabbing=!0,T.call(this);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.isTabbing=!0,I.call(this);break;case"Tab":D.call(this);break;case"Escape":this.popoverEl.open=!1,this.userIsNavigating=!1}}function B(t,s){t.open=!1,s.title&&s.text&&(t.sliceDetails=Object.assign({},s),window.setTimeout((()=>t.open=!0),30))}function I(){const t=i(document.activeElement),s=(this.sliceEls.indexOf(t)+1)%this.sliceEls.length;S.call(this,s)}function T(){if(this.sliceEls){const t=i(document.activeElement);let s=this.sliceEls.indexOf(t);-1===s?s=0:0===s?s=this.sliceEls.length-1:s-=1,S.call(this,s)}}function S(t){this.sliceEls&&this.el&&(this.userIsNavigating=!0,this.componentWrapperEl.tabIndex=-1,this.el.focusable=!1,this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.sliceEls[t].tabIndex=0,this.sliceEls[t].focusable=!0,this.sliceEls[t].focus(),this.focusedSliceId=this.sliceEls[t].id,window.setTimeout((()=>{this.popoverEl&&(this.popoverEl.open=!0)}),10))}function D(){this.focusedSliceId=void 0,this.sliceEls&&this.sliceEls.map((t=>{t.tabIndex=-1,t.focusable=!1})),this.userIsNavigating=!1,window.setTimeout((()=>{this.componentWrapperEl.tabIndex=0,this.el.focusable=!0,this.popoverEl&&(this.popoverEl.open=!1)}),100)}function F(t,s,e){const i=t[s];return null!=i&&""!==i?String(i):t.getAttribute(e)}async function j(t){this.slicesDetails=[];let s=0;const e=Array.from(this.el.children);this.total=e.reduce(((t,s)=>t+parseInt(F(s,"amount","amount")||"0")),0);let i=[...d[t].colors];"bar2"===this.chartType&&(e.length<=5&&i.splice(1,1),e.length<=4&&i.splice(2,1)),"bar3"===t&&2===e.length&&(i=[i[1],i[3]]),"doughnut2"===t&&e.length<5&&(i.splice(2,1),e.length<4&&i.shift()),"bar5"!==t||this.notStartedColor||i.shift();let n=0;e.forEach(((e,a)=>{const r=F(e,"amount","amount");if(null==r)return;const o=parseInt(r||"0"),h=m(o,this.total,!0);let c=a;"bar6"===t&&(c=0);const u={amount:o,visualAmount:o,perc:h,legend:F(e,"legend","legend"),color:i[c]||l,offset:s,id:`${this.uid}-${n+1}`,title:F(e,"popoverTitle","popover-title"),text:F(e,"popoverText","popover-text"),buttonText:F(e,"popoverButtonText","popover-button-text"),sliceRef:e,inSmallCluster:!1,index:n};s+=o,this.slicesDetails.push(u),n++}))}function K(t,s,e){const i=v(s,this.total)-90,n=t/this.total*360;let a=i+n;const r=n>180?"1 1":"0 1",o=n>180?"1 0":"0 0",h=this.chartDetails.size/2,c=this.chartDetails.thickness,u="doughnut"===e?2.25:3;360===n&&(a-=.01);const l=w(h,1,i+1.5,a),d=w(h,c,i+u,a);return`M ${l.x1}, ${l.y1} `+$(1,r,l.x2,l.y2,this.chartDetails.size)+` L ${d.x2}, ${d.y2} `+$(c,o,d.x1,d.y1,this.chartDetails.size)+" z"}function N(){const e=s.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return t("div",{id:"chart-instructions"},e)}function H(s){const e=this.chartDetails.size+this.chartDetails.padding,i="doughnut"===s;let n=i?this.slicesDetails:function(t,s){let e=[...t].sort(((t,s)=>t.amount===s.amount?0:t.amount>s.amount?-1:1)),i=0;return e.filter((t=>t.amount>0)).forEach(((t,n)=>{const a=e[n===e.length-1?0:n+1],r=m(e[0===n?e.length-1:n-1].amount,s,!0),o=m(a.amount,s,!0),h=0===t.perc?8:5;t.inSmallCluster=t.perc<4&&(r<h||o<h),t.offset=i,i+=t.amount})),e}(this.slicesDetails,this.total);n=function(t,s,e){const i=s.map((t=>v(t.amount,e)));if(i.some((t=>0!==t&&t<7))){const t=i.map((t=>0==t?t:Math.max(t,7))),n=t.reduce(((t,s)=>t+(s>7&&0!==s?s:0)),0),a=360-t.reduce(((t,s)=>t+(s>7&&0!==s?0:s)),0),r=(n-a)/a,o=t.map((t=>t>7?t-r*t:0==t?0:7));let h=0;s=s.map(((t,s)=>{const i=o[s]/360*e,n=h;return h+=i,Object.assign(Object.assign({},t),{visualAmount:i,offset:n})}))}return s}(0,n,this.total);const a=n[0].amount;let r=m(a,this.total,!0);return 0===r&&a>0?r="<1%":100===r&&a<this.total?r=">99%":r+="%",t("div",{class:"chart-wrapper doughnut-wrapper"},t("svg",{width:e+"px",height:e+"px",id:`graphic-${this.uid}`,class:"doughnut-svg"},t("defs",null,t("filter",{id:"wmHoverDropShadow"},t("feGaussianBlur",{stdDeviation:"3"}),t("feOffset",{result:"offsetblur"}),t("feFlood",{"flood-color":"#333"}),t("feComposite",{operator:"in",in2:"offsetblur"}),t("feMerge",null,t("feMergeNode",null),t("feMergeNode",{in:"SourceGraphic"})))),n.map((t=>q.call(this,t,s))),E.call(this),i?t("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},r):t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`,"text-anchor":"middle","dominant-baseline":"middle"},n.map((t=>t.amount>0&&!t.inSmallCluster?G.call(this,t):"")))))}function O(t,s){t.forEach((t=>{t.dataset.segmentindex&&parseInt(t.dataset.segmentindex)!==s.index?t.classList.add("faded"):t.classList.remove("faded")}))}function W(t){t.forEach((t=>{t.classList.remove("faded")}))}function q(s,e){const i=m(s.amount,this.total,!0)+"%";return!isNaN(s.amount)&&t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("path",{id:s.id,class:"segment doughnut-segment",fill:s.visualAmount?s.color:"transparent",d:K.call(this,s.visualAmount,s.offset,e),onClick:t=>z.call(this,t,s),onFocus:t=>C.call(this,t,s),onKeyDown:t=>y.call(this,t),role:"img","aria-label":`${s.legend}, ${i}`,"data-segmentindex":s.index}))}function E(){return this.isTabbing?t("g",{transform:`translate(${this.chartDetails.padding/2}, ${this.chartDetails.padding/2})`},t("use",{tabindex:-1,id:"kfbg1",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfstroke",xlinkHref:`#${this.focusedSliceId}`}),t("use",{tabindex:-1,id:"kfbg2",xlinkHref:`#${this.focusedSliceId}`})):""}function G(s){const e=v(s.offset+s.visualAmount/2,this.total);let i,{x:n,y:a}=w(this.chartDetails.size/2,1.4,e-90);return i=0===s.perc&&s.amount>0?"<1%":100===s.perc&&s.amount<this.total?">99%":s.perc+"%",t("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":s.index},i)}function L(s){const e="bar"===s,i=this.el.shadowRoot.querySelectorAll(".value");return i.length>0&&requestAnimationFrame((()=>{let t=[],s=!1;i.forEach((e=>{e.classList.remove("hidden");const i=parseInt(e.dataset.value);if(t.length>0&&0!=i){const n=e.getBoundingClientRect().left-4;t.forEach((t=>{const a=parseInt(t.dataset.value);t.getBoundingClientRect().right>n&&((i<a?e:t).classList.add("hidden"),s=!0)}))}!e.classList.contains("hidden")&&i>0&&t.push(e)})),(this.isBar||this.isDoughnut)&&this.showHiddenValuesMessage(s)})),t("div",{class:"chart-wrapper bar-wrapper"},e?t("div",{class:"single-perc"},m(this.slicesDetails[0].amount,this.total,!0)+"%"):"","bar3"===this.chartType&&this.drawAxis(),t("div",{class:`inner-stacked-bar-wrapper ${f(this.valueFormat)}`},e?"":t("div",{class:`values ${this.valueFormat}`},this.slicesDetails.map((t=>this.renderBarText(t,5)))),t("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((t=>R.call(this,t,5)))),e?J.call(this):""),"bar3"===this.chartType?t("div",{class:"bar3-axis-label","aria-hidden":"true"},t("span",null,"0%"),t("span",null,"100%")):"")}function R(s,e){const i=m(s.amount,this.total,!1),n=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper"),a=i/100*(n?n.offsetWidth:this.el.offsetWidth)>=e,r=a||0==s.amount?`${i}%`:`${e}px`;let o="";return"percentage"==this.valueFormat?o=`${m(s.amount,this.total,!0)} %`:"amount"==this.valueFormat&&(o=s.amount.toString()),t("div",{class:`segment stacked-bar-segment ${0===m(s.amount,this.total,!1)?"zero":""} ${a?"":"fixed-width"}`,style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>C.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("span",{class:"sr-only"},`${s.legend} ${o}`))}function U(s){const i=this.slicesDetails.map((t=>t.amount)).reduce(((t,s)=>t>s?t:s)),n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);let a=M(this.el.getBoundingClientRect().width-n-48),r=k(i,a);const o=Math.floor((a*r-i)/r);a-=o,this.el.style.setProperty("--backgroundSize",100/a+"%"),this.el.style.setProperty("--labelWidth",this.labelWidth),"bar7"!==s||this.showBarLegend||this.el.style.setProperty("--labelWidth","0px");const h=[];this.slicesDetails.forEach((e=>{e.legend&&h.push(function(s,e,i){return t("label",{class:`label${"bar7"!==i||e?"":" hidden"}`},s)}(e.legend,this.showBarLegend,s)),h.push(V.call(this,e,r,a,i))}));const c=[];for(let s=1;s<=a;s++){const i=b(e(s,r));c.push(t("div",{class:"tick"},t("span",null,i)))}const u="bar6"===s&&this.showGrid&&this.el.getBoundingClientRect().width>300;return t("div",{class:"chart-wrapper simple-bar-wrapper"},t("div",{class:`chart ${f(this.valueFormat)}`},u&&t("div",{class:"gridlines"}),t("div",{class:"rows"},h)),u&&t("div",{class:"x-axis","aria-hidden":"true"},t("div",{class:"zero"},t("span",null,"0")),c))}function V(s,e,i,n){const a=m(s.amount,"bar6"===this.currentChartType?e*i:n,!1),r=a?a+"%":"1px",o=b(s.amount);let h="amount"===this.valueFormat?o:"";return"bar6"===this.currentChartType&&"percentage"===this.valueFormat?h=s.amount+"%":"bar7"===this.currentChartType&&"percentage"===this.valueFormat&&(h=(0===this.total?"0":m(s.amount,this.total,!0))+"%"),t("div",{class:"bar segment",style:{backgroundColor:s.color,width:r},onClick:t=>z.call(this,t,s),onFocus:t=>C.call(this,t,s),onKeyDown:t=>y.call(this,t),"data-segmentindex":s.index},t("div",{class:"value"},h))}function X(s){if(this.showLegend){const e=this.slicesDetails.reduce(((t,s)=>!!s.inSmallCluster||t),!1);return this.isDoughnut&&this.showHiddenValuesMessage(e),t("div",{class:"legend-wrapper"},t("div",{class:`legend ${s} ${"bar"===this.mode?"--top":"--bottom"}`,"aria-hidden":"true"},this.slicesDetails.map((t=>{const s="amount"==this.printModeFormat?`${t.amount}/${this.total}`:`${m(t.amount,this.total,!0)}%`;if(t.amount||t.legend)return Y.call(this,{key:t.legend,color:t.color},s,t)}))),this.isDoughnut&&!this.printMode&&P())}}function Y(s,e="",i=null){const n=t=>{i&&(i.coords={x:t.clientX,y:t.clientY},B(this.popoverEl,i),O(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),i))};return t("div",{class:"legend-item",onClick:t=>n(t),"data-segmentindex":i?i.index:null},t("div",{class:"legend-color",style:{backgroundColor:s.color}}),t("div",{class:"legend-text"},s.key,e&&t("span",{class:"print-value "+(this.printMode?"force-visible":"")},": ",e)))}function J(){if(this.completionMessage)return t("div",{class:"completion-message"},this.completionMessage)}function P(){return t("div",{class:"hidden-values-warning hidden"},p,t("br",null),g)}function Q(t,s,e,i=0){switch(e){case"amount":return t.toFixed(i);case"percentage":const e=t/s*100;return t>0&&e<1?"<1%":e>99&&t!==s?">99%":`${Math.round(e).toFixed(0)}%`;default:return""}}function Z(t,s=[1,1.5,2,2.5,3,5,10]){const e=t/Math.pow(10,Math.floor(Math.log10(t)));return s.some((t=>Math.abs(e-t)<1e-4))}function _(t){if(0===t||!Number.isFinite(t))return 0;let s=Math.abs(t);for(let t=0;t<=15;t++){const e=Math.round(s),i=1e-9;if(Math.abs(s-e)<i)return t;s*=10}return 2}function tt(t){if(0===t||!Number.isFinite(t))return 0;const s=Math.abs(t);let e=s;return s>=1e6?e=s/1e6:s>=1e3&&(e=s/1e3),Math.max(_(s),_(e))}function st(t,s){const e=void 0!==s;if(t>=1e6){const i=t/1e6;return e?`${i.toFixed(s)}M`:`${i.toFixed(t%1e6==0?0:1)}M`}if(t>=1e3){const i=t/1e3;return e?`${i.toFixed(s)}K`:`${i.toFixed(t%1e3==0?0:1)}K`}return e?t.toFixed(s):t.toString()}function et(t,s){for(let e=t;e>=1;e--){const t=s/e;if(Z(t))return{numIntervals:e,interval:t}}return{numIntervals:1,interval:s}}function it(t){if(t<=0)return 0;const s=[1,1.5,2,2.5,3,5,10],e=Math.pow(10,Math.floor(Math.log10(t))),i=t/e;for(const t of s)if(t>=i)return t*e;return 10*e}function nt(t){const s=new Set,e=[];return t.forEach((t=>{t.forEach((t=>{s.has(t.barLegend)||(s.add(t.barLegend),e.push(t))}))})),e}function at(t){const s=new Map;return t.forEach((t=>{var e;let i=null!==(e=t.groupName)&&void 0!==e?e:null;s.has(i)||s.set(i,[]),s.get(i).push(t)})),s}function rt(t){const s=[...t],e=[];s.forEach((t=>{t.groupName&&!e.includes(t.groupName)&&e.push(t.groupName)}));const i=s.filter((t=>t.groupName===e[0])).map((t=>t.barLegend));return s.sort(((t,s)=>{const n=e.indexOf(t.groupName||""),a=e.indexOf(s.groupName||"");return n!==a?n-a:i.indexOf(t.barLegend)-i.indexOf(s.barLegend)}))}export{d as a,m as b,U as c,L as d,H as e,N as f,j as g,A as h,X as i,P as j,D as k,Q as l,it as m,nt as n,at as o,et as p,st as q,W as r,rt as s,M as t,tt as u,k as v,J as w,Y as x}
|