@kong-ui-public/analytics-chart 10.10.6 → 10.11.0
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/style.css +1 -1
- package/dist/vitals-chart.es.js +111 -111
- package/dist/vitals-chart.umd.js +2 -2
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zoom-timerange-container[data-v-0e972e3c]{line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-timerange-container .zoom-timerange-details[data-v-0e972e3c]{display:grid;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:2px;gap:var(--kui-space-10, 2px);grid-template-columns:35px 1fr;margin:6px 2px;margin:var(--kui-space-30, 6px) var(--kui-space-10, 2px)}.zoom-timerange-container .zoom-timerange-details .label[data-v-0e972e3c]{color:#52596e;color:var(--kui-color-text-netural-strong, #52596e)}.zoom-actions-container[data-v-179abac7]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column;line-height:16px;line-height:var(--kui-line-height-20, 16px)}.zoom-actions-container .zoom-actions-heading[data-v-179abac7]{align-items:top;display:flex}.zoom-actions-container .zoom-actions-heading .zoom-actions-close-icon[data-v-179abac7]{cursor:pointer;margin-right:6px;margin-right:var(--kui-space-30, 6px);margin-top:6px;margin-top:var(--kui-space-30, 6px)}.zoom-actions-container .zoom-actions-heading-divider[data-v-179abac7]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-select .zoom-action-item[data-v-179abac7]:first-child{margin-top:4px;margin-top:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);cursor:pointer;font-size:12px;font-size:var(--kui-font-size-20, 12px);padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);transition:background-color .2s}.zoom-actions-container .zoom-action-item[data-v-179abac7]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kui-border-radius-20, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px);margin-bottom:4px;margin-bottom:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item .zoom-action-link[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);display:block;text-decoration:none}.zoom-actions-container .zoom-action-item.disabled[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5);pointer-events:none}.zoom-actions-container .zoom-action-item.disabled a[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5)}.zoom-actions-container .zoom-action-item[data-v-179abac7]:hover{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea)}.locked[data-v-078294a6]{cursor:move}.tooltip-container[data-v-078294a6]{background-color:#fff;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 5px 15px #0000001f,0 5px 10px #0000003d;max-width:425px;position:fixed;transition:all .2s cubic-bezier(.25,.8,.25,1);z-index:1}.tooltip-container .tooltip-title[data-v-078294a6]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;margin:6px 6px 0;margin:var(--kui-space-30, 6px) var(--kui-space-30, 6px) 0 var(--kui-space-30, 6px);min-height:24px;padding-bottom:4px;padding-bottom:var(--kui-space-20, 4px)}.tooltip-container .tooltip-title .title[data-v-078294a6]{display:flex;font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);justify-content:space-between}.tooltip-container .tooltip-title .title .drag-icon[data-v-078294a6]{margin-top:6px;margin-top:var(--kui-space-30, 6px);right:0;top:0}.tooltip-container .tooltip-title .subtitle[data-v-078294a6]{display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:8px;gap:var(--kui-space-40, 8px);justify-content:space-between;margin-top:6px;margin-top:var(--kui-space-30, 6px)}.tooltip-container .tooltip[data-v-078294a6]{list-style:none;margin:6px;margin:var(--kui-space-30, 6px);max-height:300px;min-width:250px;overflow-y:auto;overflow-y:var(--kui-space-auto, auto);padding-left:0;padding-left:var(--kui-space-0, 0px)}.tooltip-container .tooltip[data-v-078294a6]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar-track{background:transparent}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.tooltip-container .tooltip li[data-v-078294a6]{align-items:center;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:20px;line-height:var(--kui-line-height-30, 20px)}.tooltip-container .tooltip .display-label[data-v-078294a6]{flex:1;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tooltip-container .tooltip .display-label.empty[data-v-078294a6]{font-style:italic}.tooltip-container .tooltip .display-value[data-v-078294a6]{margin-left:auto;margin-left:var(--kui-space-auto, auto);padding-left:8px;padding-left:var(--kui-space-40, 8px);white-space:nowrap}.tooltip-container .tooltip .square-marker[data-v-078294a6]{display:inline-flex;flex-direction:row;height:12px;margin-right:6px;margin-right:var(--kui-space-30, 6px);width:12px}.no-select{-webkit-user-select:none;user-select:none}.legend-container[data-v-1d512515]{box-sizing:border-box;display:flex;flex-grow:1;flex-wrap:wrap;gap:8px 9px;justify-content:center;margin:0;max-height:inherit;overflow:auto;-ms-overflow-style:thin;padding:8px calc(5% + 4px);width:100%}.legend-container[data-v-1d512515]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.legend-container[data-v-1d512515] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.legend-container[data-v-1d512515] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-1d512515] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.legend-container li[data-v-1d512515]{align-items:center;cursor:pointer;display:flex;line-height:1;margin:0}.legend-container li .square-marker[data-v-1d512515]{height:8px;margin:0 6px 0 0;width:8px}.legend-container li .label[data-v-1d512515]{font-size:12px;white-space:nowrap}.legend-container li .label.truncate-label[data-v-1d512515]{max-width:20ch;overflow:hidden;text-overflow:ellipsis}.legend-container li .sub-label[data-v-1d512515]{font-size:12px;line-height:16px;word-break:none}.legend-container li .strike-through[data-v-1d512515]{text-decoration:line-through}.legend-container li .empty[data-v-1d512515]{font-style:italic}.legend-container li .tooltip-content[data-v-1d512515]{max-width:40ch}.chart-parent[data-v-3fd2579c]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-3fd2579c]{flex-direction:column}.chart-parent.column .chart-container[data-v-3fd2579c]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-3fd2579c]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-3fd2579c]{height:calc(100% - 80px)}.chart-container[data-v-3fd2579c]{overflow:auto}.chart-container[data-v-3fd2579c]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.chart-container[data-v-3fd2579c] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.chart-container[data-v-3fd2579c] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-3fd2579c] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container .chart-body[data-v-3fd2579c]{height:100%}.chart-container[data-v-3fd2579c]::-webkit-scrollbar-track{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container[data-v-3fd2579c]::-webkit-scrollbar{width:10px}.chart-container[data-v-3fd2579c]::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.axis[data-v-3fd2579c]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-3fd2579c]{background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#fff;color:var(--kui-color-text-inverse, #ffffff);max-width:40ch;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);position:absolute;width:max-content;z-index:100}.axis-tooltip .axis-tooltip-content[data-v-3fd2579c]{color:#fff;color:var(--kui-color-text-inverse, #ffffff);font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px)}.tooltip-boundary[data-v-3fd2579c]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-9503582a]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-9503582a]{flex-direction:column}.chart-parent.column .chart-container[data-v-9503582a]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-9503582a]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-9503582a]{height:calc(100% - 80px)}.chart-parent[data-v-0a32a7ca]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-0a32a7ca]{flex-direction:column}.chart-parent.column .chart-container[data-v-0a32a7ca]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-0a32a7ca]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-0a32a7ca]{height:calc(100% - 80px)}.analytics-chart-shell[data-v-b2eeb763],.simple-chart-shell[data-v-b2eeb763]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-b2eeb763],.simple-chart-shell .chart-empty-state[data-v-b2eeb763]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-b2eeb763]{height:100%;position:relative;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-b2eeb763]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-b2eeb763]{padding:20px 0 16px;padding:var(--kui-space-70, 20px) var(--kui-space-0, 0px) var(--kui-space-60, 16px) var(--kui-space-0, 0px)}.analytics-chart-shell .chart-truncation-warning[data-v-b2eeb763]{align-items:center;background-color:#fff;display:flex;justify-content:flex-start;left:0;position:absolute;top:0;transform:translate(-4px);z-index:999}.chart-parent[data-v-32e7f9e0]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-32e7f9e0]{flex-direction:column}.chart-parent.column .chart-container[data-v-32e7f9e0]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-32e7f9e0]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-32e7f9e0]{height:calc(100% - 80px)}.chart-parent[data-v-32e7f9e0]{height:auto;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:auto}.chart-parent .chart-container[data-v-32e7f9e0]{margin:0;margin:var(--kui-space-0, 0px);max-height:100px;max-width:100px;padding:0;padding:var(--kui-space-0, 0px)}.chart-parent .chart-totals-flex[data-v-32e7f9e0]{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:center;padding:24px 0 0;padding:var(--kui-space-80, 24px) var(--kui-space-0, 0px) var(--kui-space-0, 0px);position:absolute;width:100px;z-index:2}.chart-parent .chart-totals-flex .metric-large[data-v-32e7f9e0]{font-size:20px;font-size:var(--kui-font-size-60, 20px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:28px;line-height:var(--kui-line-height-50, 28px)}.chart-parent .chart-totals-flex .metric-small[data-v-32e7f9e0]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:10px;font-size:var(--kui-font-size-10, 10px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:12px;line-height:var(--kui-line-height-10, 12px)}.chart-parent[data-v-8fd9e5ef]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-8fd9e5ef]{flex-direction:column}.chart-parent.column .chart-container[data-v-8fd9e5ef]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-8fd9e5ef]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-8fd9e5ef]{height:calc(100% - 80px)}.chart-parent[data-v-8fd9e5ef]{container-type:inline-size}.chart-parent .single-value-error[data-v-8fd9e5ef] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.chart-parent .single-value-wrapper[data-v-8fd9e5ef]{align-items:baseline;display:inline-flex}.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{color:#000933;font-size:24px;font-weight:700;line-height:36px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{color:#000933;font-size:20px;font-weight:700;line-height:32px}@container (min-width: 300px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:48px;line-height:56px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:40px;line-height:48px}}@container (min-width: 500px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:48px;line-height:56px}}@container (min-width: 700px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:56px;line-height:64px}}@container (min-width: 1000px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:64px;line-height:72px}}@container (min-width: 1200px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:96px;line-height:104px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:80px;line-height:88px}}.analytics-chart-shell[data-v-471652c8],.simple-chart-shell[data-v-471652c8]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-471652c8],.simple-chart-shell .chart-empty-state[data-v-471652c8]{display:flex;flex-direction:column;height:100%;justify-content:center}.simple-chart-shell[data-v-471652c8]{margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:100%}.simple-chart-shell .chart-empty-state[data-v-471652c8]{display:flex;flex-direction:column;justify-content:center}.simple-chart-shell .chart-empty-state[data-v-471652c8] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-top-n-table[data-v-27e5b22c]{border:none!important;max-height:100%;padding:0!important;width:100%}.kong-ui-public-top-n-table .top-n-card-description[data-v-27e5b22c]{color:#6c7489;font-size:12px;text-align:right}.kong-ui-public-top-n-table[data-v-27e5b22c] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content{overflow-y:auto}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.kong-ui-public-top-n-table .top-n-table[data-v-27e5b22c]{display:flex;flex-direction:column;max-height:100%;overflow-x:auto}.kong-ui-public-top-n-table .top-n-table-table[data-v-27e5b22c]{border-collapse:collapse;table-layout:auto}.kong-ui-public-top-n-table .top-n-table-header-row[data-v-27e5b22c]{border-bottom:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-27e5b22c]{padding:0 24px 12px 0;padding:0 var(--kui-space-80, 24px) var(--kui-space-50, 12px) 0;text-align:left}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-27e5b22c]:last-child{padding-right:0}.kong-ui-public-top-n-table .top-n-table-header-cell .table-header-label[data-v-27e5b22c]{color:#000933;font-size:14px;font-weight:600;line-height:24px}.kong-ui-public-top-n-table .top-n-table-row[data-v-27e5b22c]{border-bottom:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table-row[data-v-27e5b22c]:first-of-type{border-top:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table-row[data-v-27e5b22c]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table-header-cell-metric[data-v-27e5b22c],.kong-ui-public-top-n-table .top-n-table-cell-metric[data-v-27e5b22c]{white-space:nowrap;width:1%}.kong-ui-public-top-n-table .top-n-table-cell[data-v-27e5b22c]{min-width:110px;padding:12px 0;padding:var(--kui-space-50, 12px) var(--kui-space-0, 0px)}.kong-ui-public-top-n-table .top-n-table-cell--name[data-v-27e5b22c]{color:#3a3f51;font-size:14px;min-width:200px;padding-right:24px;padding-right:var(--kui-space-80, 24px)}.kong-ui-public-top-n-table[data-v-27e5b22c] a{color:#0044f4;font-weight:700;text-decoration:none}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;margin-bottom:20px;margin-top:6px;width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #e0e4ea;height:auto}.kong-ui-public-csv-export-modal .modal-container .modal-footer .vitals-report-export-button{display:inline-flex}.kong-ui-public-csv-export-modal .modal-container .preview-tooltip{display:inline-flex;margin:auto 0 auto 4px;margin:var(--kui-space-auto, auto) var(--kui-space-0, 0px) var(--kui-space-auto, auto) var(--kui-space-20, 4px);vertical-align:middle}.container[data-v-e18e899f]{align-items:center;border:1px solid #e0e4ea;border-radius:4px;display:flex;height:30px;justify-content:center;overflow:hidden;padding-top:1px;position:relative}.container .no-data[data-v-e18e899f]{color:#6c7489;cursor:default;font-size:12px;-webkit-user-select:none;user-select:none}.container .label[data-v-e18e899f]{background-color:#ecfcff;border-bottom:1px solid #e0e4ea;border-radius:4px 0;border-right:1px solid #e0e4ea;color:#0044f4;cursor:default;font-size:10px;left:0;line-height:9px;max-width:90%;overflow:hidden;padding:2px 6px;position:absolute;text-overflow:ellipsis;top:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.container .tooltip[data-v-e18e899f]{z-index:10}
|
|
1
|
+
.zoom-timerange-container[data-v-0e972e3c]{line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-timerange-container .zoom-timerange-details[data-v-0e972e3c]{display:grid;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:2px;gap:var(--kui-space-10, 2px);grid-template-columns:35px 1fr;margin:6px 2px;margin:var(--kui-space-30, 6px) var(--kui-space-10, 2px)}.zoom-timerange-container .zoom-timerange-details .label[data-v-0e972e3c]{color:#52596e;color:var(--kui-color-text-netural-strong, #52596e)}.zoom-actions-container[data-v-179abac7]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column;line-height:16px;line-height:var(--kui-line-height-20, 16px)}.zoom-actions-container .zoom-actions-heading[data-v-179abac7]{align-items:top;display:flex}.zoom-actions-container .zoom-actions-heading .zoom-actions-close-icon[data-v-179abac7]{cursor:pointer;margin-right:6px;margin-right:var(--kui-space-30, 6px);margin-top:6px;margin-top:var(--kui-space-30, 6px)}.zoom-actions-container .zoom-actions-heading-divider[data-v-179abac7]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);margin:0 4px;margin:0 var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-select .zoom-action-item[data-v-179abac7]:first-child{margin-top:4px;margin-top:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);cursor:pointer;font-size:12px;font-size:var(--kui-font-size-20, 12px);padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);transition:background-color .2s}.zoom-actions-container .zoom-action-item[data-v-179abac7]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kui-border-radius-20, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px);margin-bottom:4px;margin-bottom:var(--kui-space-20, 4px)}.zoom-actions-container .zoom-action-item .zoom-action-link[data-v-179abac7]{color:#000933;color:var(--kui-color-text, #000933);display:block;text-decoration:none}.zoom-actions-container .zoom-action-item.disabled[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5);pointer-events:none}.zoom-actions-container .zoom-action-item.disabled a[data-v-179abac7]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5)}.zoom-actions-container .zoom-action-item[data-v-179abac7]:hover{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea)}.locked[data-v-078294a6]{cursor:move}.tooltip-container[data-v-078294a6]{background-color:#fff;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 5px 15px #0000001f,0 5px 10px #0000003d;max-width:425px;position:fixed;transition:all .2s cubic-bezier(.25,.8,.25,1);z-index:1}.tooltip-container .tooltip-title[data-v-078294a6]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;margin:6px 6px 0;margin:var(--kui-space-30, 6px) var(--kui-space-30, 6px) 0 var(--kui-space-30, 6px);min-height:24px;padding-bottom:4px;padding-bottom:var(--kui-space-20, 4px)}.tooltip-container .tooltip-title .title[data-v-078294a6]{display:flex;font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);justify-content:space-between}.tooltip-container .tooltip-title .title .drag-icon[data-v-078294a6]{margin-top:6px;margin-top:var(--kui-space-30, 6px);right:0;top:0}.tooltip-container .tooltip-title .subtitle[data-v-078294a6]{display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:8px;gap:var(--kui-space-40, 8px);justify-content:space-between;margin-top:6px;margin-top:var(--kui-space-30, 6px)}.tooltip-container .tooltip[data-v-078294a6]{list-style:none;margin:6px;margin:var(--kui-space-30, 6px);max-height:300px;min-width:250px;overflow-y:auto;overflow-y:var(--kui-space-auto, auto);padding-left:0;padding-left:var(--kui-space-0, 0px)}.tooltip-container .tooltip[data-v-078294a6]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar-track{background:transparent}.tooltip-container .tooltip[data-v-078294a6] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.tooltip-container .tooltip li[data-v-078294a6]{align-items:center;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:20px;line-height:var(--kui-line-height-30, 20px)}.tooltip-container .tooltip .display-label[data-v-078294a6]{flex:1;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tooltip-container .tooltip .display-label.empty[data-v-078294a6]{font-style:italic}.tooltip-container .tooltip .display-value[data-v-078294a6]{margin-left:auto;margin-left:var(--kui-space-auto, auto);padding-left:8px;padding-left:var(--kui-space-40, 8px);white-space:nowrap}.tooltip-container .tooltip .square-marker[data-v-078294a6]{display:inline-flex;flex-direction:row;height:12px;margin-right:6px;margin-right:var(--kui-space-30, 6px);width:12px}.no-select{-webkit-user-select:none;user-select:none}.legend-container[data-v-1d512515]{box-sizing:border-box;display:flex;flex-grow:1;flex-wrap:wrap;gap:8px 9px;justify-content:center;margin:0;max-height:inherit;overflow:auto;-ms-overflow-style:thin;padding:8px calc(5% + 4px);width:100%}.legend-container[data-v-1d512515]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.legend-container[data-v-1d512515] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.legend-container[data-v-1d512515] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-1d512515] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.legend-container li[data-v-1d512515]{align-items:center;cursor:pointer;display:flex;line-height:1;margin:0}.legend-container li .square-marker[data-v-1d512515]{height:8px;margin:0 6px 0 0;width:8px}.legend-container li .label[data-v-1d512515]{font-size:12px;white-space:nowrap}.legend-container li .label.truncate-label[data-v-1d512515]{max-width:20ch;overflow:hidden;text-overflow:ellipsis}.legend-container li .sub-label[data-v-1d512515]{font-size:12px;line-height:16px;word-break:none}.legend-container li .strike-through[data-v-1d512515]{text-decoration:line-through}.legend-container li .empty[data-v-1d512515]{font-style:italic}.legend-container li .tooltip-content[data-v-1d512515]{max-width:40ch}.chart-parent[data-v-3fd2579c]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-3fd2579c]{flex-direction:column}.chart-parent.column .chart-container[data-v-3fd2579c]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-3fd2579c]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-3fd2579c]{height:calc(100% - 80px)}.chart-container[data-v-3fd2579c]{overflow:auto}.chart-container[data-v-3fd2579c]{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.chart-container[data-v-3fd2579c] ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.chart-container[data-v-3fd2579c] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-3fd2579c] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container .chart-body[data-v-3fd2579c]{height:100%}.chart-container[data-v-3fd2579c]::-webkit-scrollbar-track{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.chart-container[data-v-3fd2579c]::-webkit-scrollbar{width:10px}.chart-container[data-v-3fd2579c]::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.axis[data-v-3fd2579c]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-3fd2579c]{background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#fff;color:var(--kui-color-text-inverse, #ffffff);max-width:40ch;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);position:absolute;width:max-content;z-index:100}.axis-tooltip .axis-tooltip-content[data-v-3fd2579c]{color:#fff;color:var(--kui-color-text-inverse, #ffffff);font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px)}.tooltip-boundary[data-v-3fd2579c]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-9503582a]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-9503582a]{flex-direction:column}.chart-parent.column .chart-container[data-v-9503582a]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-9503582a]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-9503582a]{height:calc(100% - 80px)}.chart-parent[data-v-0a32a7ca]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-0a32a7ca]{flex-direction:column}.chart-parent.column .chart-container[data-v-0a32a7ca]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-0a32a7ca]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-0a32a7ca]{height:calc(100% - 80px)}.analytics-chart-shell[data-v-de2b8f0e],.simple-chart-shell[data-v-de2b8f0e]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-de2b8f0e],.simple-chart-shell .chart-empty-state[data-v-de2b8f0e]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-de2b8f0e]{height:100%;position:relative;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-de2b8f0e]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-de2b8f0e]{padding:20px 0 16px;padding:var(--kui-space-70, 20px) var(--kui-space-0, 0px) var(--kui-space-60, 16px) var(--kui-space-0, 0px)}.analytics-chart-shell .chart-truncation-warning[data-v-de2b8f0e]{align-items:center;background-color:#fff;display:flex;justify-content:flex-start;left:0;position:absolute;top:0;transform:translate(-4px);z-index:999}.chart-parent[data-v-32e7f9e0]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-32e7f9e0]{flex-direction:column}.chart-parent.column .chart-container[data-v-32e7f9e0]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-32e7f9e0]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-32e7f9e0]{height:calc(100% - 80px)}.chart-parent[data-v-32e7f9e0]{height:auto;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:auto}.chart-parent .chart-container[data-v-32e7f9e0]{margin:0;margin:var(--kui-space-0, 0px);max-height:100px;max-width:100px;padding:0;padding:var(--kui-space-0, 0px)}.chart-parent .chart-totals-flex[data-v-32e7f9e0]{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:center;padding:24px 0 0;padding:var(--kui-space-80, 24px) var(--kui-space-0, 0px) var(--kui-space-0, 0px);position:absolute;width:100px;z-index:2}.chart-parent .chart-totals-flex .metric-large[data-v-32e7f9e0]{font-size:20px;font-size:var(--kui-font-size-60, 20px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:28px;line-height:var(--kui-line-height-50, 28px)}.chart-parent .chart-totals-flex .metric-small[data-v-32e7f9e0]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:10px;font-size:var(--kui-font-size-10, 10px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:12px;line-height:var(--kui-line-height-10, 12px)}.chart-parent[data-v-8fd9e5ef]{align-items:center;display:flex;height:100%;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-8fd9e5ef]{flex-direction:column}.chart-parent.column .chart-container[data-v-8fd9e5ef]{flex-shrink:0;height:calc(100% - 49px);width:100%}.chart-parent .chart-container[data-v-8fd9e5ef]{flex:1 1 auto;height:100%;position:relative}.analytics-chart-shell.show-values .chart-parent.column .chart-container[data-v-8fd9e5ef]{height:calc(100% - 80px)}.chart-parent[data-v-8fd9e5ef]{container-type:inline-size}.chart-parent .single-value-error[data-v-8fd9e5ef] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.chart-parent .single-value-wrapper[data-v-8fd9e5ef]{align-items:baseline;display:inline-flex}.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{color:#000933;font-size:24px;font-weight:700;line-height:36px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{color:#000933;font-size:20px;font-weight:700;line-height:32px}@container (min-width: 300px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:48px;line-height:56px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:40px;line-height:48px}}@container (min-width: 500px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:56px;line-height:64px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:48px;line-height:56px}}@container (min-width: 700px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:64px;line-height:72px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:56px;line-height:64px}}@container (min-width: 1000px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:80px;line-height:88px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:64px;line-height:72px}}@container (min-width: 1200px){.chart-parent .single-value-wrapper .single-value[data-v-8fd9e5ef]{font-size:96px;line-height:104px}.chart-parent .single-value-wrapper .single-value-unit[data-v-8fd9e5ef]{font-size:80px;line-height:88px}}.analytics-chart-shell[data-v-471652c8],.simple-chart-shell[data-v-471652c8]{border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-471652c8],.simple-chart-shell .chart-empty-state[data-v-471652c8]{display:flex;flex-direction:column;height:100%;justify-content:center}.simple-chart-shell[data-v-471652c8]{margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px);width:100%}.simple-chart-shell .chart-empty-state[data-v-471652c8]{display:flex;flex-direction:column;justify-content:center}.simple-chart-shell .chart-empty-state[data-v-471652c8] .empty-state-title{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-top-n-table[data-v-27e5b22c]{border:none!important;max-height:100%;padding:0!important;width:100%}.kong-ui-public-top-n-table .top-n-card-description[data-v-27e5b22c]{color:#6c7489;font-size:12px;text-align:right}.kong-ui-public-top-n-table[data-v-27e5b22c] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content{overflow-y:auto}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content{-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-color:var(--kui-color-background-disabled, #e0e4ea) var(--kui-color-background-transparent, transparent);scrollbar-width:auto}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content ::-webkit-scrollbar{width:40,8px;width:var(--kui-space, 40, 8px)}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-27e5b22c] .card-content ::-webkit-scrollbar-thumb{background-color:#e0e4ea;background-color:var(--kui-color-background-disabled, #e0e4ea);border-radius:10px;border-radius:var(--kui-border-radius-50, 10px)}.kong-ui-public-top-n-table .top-n-table[data-v-27e5b22c]{display:flex;flex-direction:column;max-height:100%;overflow-x:auto}.kong-ui-public-top-n-table .top-n-table-table[data-v-27e5b22c]{border-collapse:collapse;table-layout:auto}.kong-ui-public-top-n-table .top-n-table-header-row[data-v-27e5b22c]{border-bottom:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-27e5b22c]{padding:0 24px 12px 0;padding:0 var(--kui-space-80, 24px) var(--kui-space-50, 12px) 0;text-align:left}.kong-ui-public-top-n-table .top-n-table-header-cell[data-v-27e5b22c]:last-child{padding-right:0}.kong-ui-public-top-n-table .top-n-table-header-cell .table-header-label[data-v-27e5b22c]{color:#000933;font-size:14px;font-weight:600;line-height:24px}.kong-ui-public-top-n-table .top-n-table-row[data-v-27e5b22c]{border-bottom:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table-row[data-v-27e5b22c]:first-of-type{border-top:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table-row[data-v-27e5b22c]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table-header-cell-metric[data-v-27e5b22c],.kong-ui-public-top-n-table .top-n-table-cell-metric[data-v-27e5b22c]{white-space:nowrap;width:1%}.kong-ui-public-top-n-table .top-n-table-cell[data-v-27e5b22c]{min-width:110px;padding:12px 0;padding:var(--kui-space-50, 12px) var(--kui-space-0, 0px)}.kong-ui-public-top-n-table .top-n-table-cell--name[data-v-27e5b22c]{color:#3a3f51;font-size:14px;min-width:200px;padding-right:24px;padding-right:var(--kui-space-80, 24px)}.kong-ui-public-top-n-table[data-v-27e5b22c] a{color:#0044f4;font-weight:700;text-decoration:none}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;margin-bottom:20px;margin-top:6px;width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #e0e4ea;height:auto}.kong-ui-public-csv-export-modal .modal-container .modal-footer .vitals-report-export-button{display:inline-flex}.kong-ui-public-csv-export-modal .modal-container .preview-tooltip{display:inline-flex;margin:auto 0 auto 4px;margin:var(--kui-space-auto, auto) var(--kui-space-0, 0px) var(--kui-space-auto, auto) var(--kui-space-20, 4px);vertical-align:middle}.container[data-v-e18e899f]{align-items:center;border:1px solid #e0e4ea;border-radius:4px;display:flex;height:30px;justify-content:center;overflow:hidden;padding-top:1px;position:relative}.container .no-data[data-v-e18e899f]{color:#6c7489;cursor:default;font-size:12px;-webkit-user-select:none;user-select:none}.container .label[data-v-e18e899f]{background-color:#ecfcff;border-bottom:1px solid #e0e4ea;border-radius:4px 0;border-right:1px solid #e0e4ea;color:#0044f4;cursor:default;font-size:10px;left:0;line-height:9px;max-width:90%;overflow:hidden;padding:2px 6px;position:absolute;text-overflow:ellipsis;top:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.container .tooltip[data-v-e18e899f]{z-index:10}
|
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var dm = Object.defineProperty;
|
|
2
2
|
var hm = (n, t, e) => t in n ? dm(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var P = (n, t, e) => hm(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { computed as N, getCurrentInstance as tc, onUnmounted as ei, shallowRef as Ge, onMounted as ni, onBeforeUnmount as Eh, watch as ce, inject as er, nextTick as Ah, isRef as fm, toRefs as gm, customRef as mm, toValue as Gt, getCurrentScope as pm, onScopeDispose as ym, ref as Lt, unref as
|
|
4
|
+
import { computed as N, getCurrentInstance as tc, onUnmounted as ei, shallowRef as Ge, onMounted as ni, onBeforeUnmount as Eh, watch as ce, inject as er, nextTick as Ah, isRef as fm, toRefs as gm, customRef as mm, toValue as Gt, getCurrentScope as pm, onScopeDispose as ym, ref as Lt, unref as K, watchEffect as jc, defineComponent as de, createElementBlock as ct, openBlock as V, createElementVNode as dt, toDisplayString as ht, createVNode as Kt, Fragment as xi, renderList as Ki, normalizeClass as On, createCommentVNode as Zt, normalizeStyle as wi, createBlock as Nt, resolveComponent as Re, createSlots as Rh, withCtx as Ht, useTemplateRef as Gi, reactive as nr, toRef as It, Teleport as Ih, h as bl, toRaw as _l, version as bm, isProxy as Lh, provide as Uc, createTextVNode as Be, renderSlot as ir, withKeys as _m } from "vue";
|
|
5
5
|
import { createI18n as xm, i18nTComponent as vm } from "@kong-ui-public/i18n";
|
|
6
6
|
import { CloseIcon as wm, DragIcon as Mm, WarningIcon as Sm, InfoIcon as Tm } from "@kong/icons";
|
|
7
|
-
const Dm = "No data in the current time frame", km = "Once there is traffic, it will display here", Cm = "
|
|
7
|
+
const Dm = "No data in the current time frame", km = "Once there is traffic, it will display here", Cm = "Grouped value limit exceeded, showing the top {maxReturned}", Om = "no-name", Pm = "debug", Em = "Total", Am = "Open in explorer", Rm = "More actions", Im = "Requests that do not have a value for the selected group", Lm = {
|
|
8
8
|
ms: "ms",
|
|
9
9
|
bytes: "Byte{plural}",
|
|
10
10
|
count: "request{plural}",
|
|
@@ -14658,7 +14658,7 @@ Ca.exports;
|
|
|
14658
14658
|
function B(x, I) {
|
|
14659
14659
|
return x.set(I[0], I[1]), x;
|
|
14660
14660
|
}
|
|
14661
|
-
function
|
|
14661
|
+
function G(x, I) {
|
|
14662
14662
|
return x.add(I), x;
|
|
14663
14663
|
}
|
|
14664
14664
|
function J(x, I) {
|
|
@@ -14930,7 +14930,7 @@ Ca.exports;
|
|
|
14930
14930
|
}
|
|
14931
14931
|
function xo(x, I, F) {
|
|
14932
14932
|
var nt = I ? F(ne(x), !0) : ne(x);
|
|
14933
|
-
return Z(nt,
|
|
14933
|
+
return Z(nt, G, new x.constructor());
|
|
14934
14934
|
}
|
|
14935
14935
|
function vo(x) {
|
|
14936
14936
|
return Dr ? Object(Dr.call(x)) : {};
|
|
@@ -16937,7 +16937,7 @@ function Js(...n) {
|
|
|
16937
16937
|
return [
|
|
16938
16938
|
(l = (o = s.value) == null ? void 0 : o.map((c) => ss(c))) != null ? l : [Ba].filter((c) => c != null),
|
|
16939
16939
|
ua(Gt(s.value ? n[1] : n[0])),
|
|
16940
|
-
ua(
|
|
16940
|
+
ua(K(s.value ? n[2] : n[1])),
|
|
16941
16941
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
16942
16942
|
Gt(s.value ? n[3] : n[2])
|
|
16943
16943
|
];
|
|
@@ -18929,9 +18929,9 @@ const sk = { class: "zoom-timerange-container" }, rk = { class: "zoom-timerange-
|
|
|
18929
18929
|
r(a, o);
|
|
18930
18930
|
}, { immediate: !0 }), (a, o) => (V(), ct("div", sk, [
|
|
18931
18931
|
dt("div", rk, [
|
|
18932
|
-
dt("div", ak, ht(
|
|
18932
|
+
dt("div", ak, ht(K(e).t("zoom_time_range.from")), 1),
|
|
18933
18933
|
dt("div", null, ht(i.value), 1),
|
|
18934
|
-
dt("div", ok, ht(
|
|
18934
|
+
dt("div", ok, ht(K(e).t("zoom_time_range.to")), 1),
|
|
18935
18935
|
dt("div", null, ht(s.value), 1)
|
|
18936
18936
|
])
|
|
18937
18937
|
]));
|
|
@@ -18960,10 +18960,10 @@ const sk = { class: "zoom-timerange-container" }, rk = { class: "zoom-timerange-
|
|
|
18960
18960
|
granularity: n.granularity,
|
|
18961
18961
|
start: n.newTimeRange.start
|
|
18962
18962
|
}, null, 8, ["end", "granularity", "start"]),
|
|
18963
|
-
Kt(
|
|
18963
|
+
Kt(K(wm), {
|
|
18964
18964
|
class: "zoom-actions-close-icon",
|
|
18965
|
-
color:
|
|
18966
|
-
size:
|
|
18965
|
+
color: K(kc),
|
|
18966
|
+
size: K(Cc),
|
|
18967
18967
|
onClick: a[0] || (a[0] = (o) => r.$emit("onAction"))
|
|
18968
18968
|
}, null, 8, ["color", "size"])
|
|
18969
18969
|
]),
|
|
@@ -19048,11 +19048,11 @@ const sk = { class: "zoom-timerange-container" }, rk = { class: "zoom-timerange-
|
|
|
19048
19048
|
dt("div", bk, [
|
|
19049
19049
|
dt("div", _k, [
|
|
19050
19050
|
dt("div", null, ht(n.tooltipTitle), 1),
|
|
19051
|
-
h.value ? (V(), Nt(
|
|
19051
|
+
h.value ? (V(), Nt(K(Mm), {
|
|
19052
19052
|
key: 0,
|
|
19053
19053
|
class: "drag-icon",
|
|
19054
|
-
color:
|
|
19055
|
-
size:
|
|
19054
|
+
color: K(kc),
|
|
19055
|
+
size: K(Cc)
|
|
19056
19056
|
}, null, 8, ["color", "size"])) : Zt("", !0)
|
|
19057
19057
|
]),
|
|
19058
19058
|
u.value || d.value ? (V(), ct("div", xk, [
|
|
@@ -19114,7 +19114,7 @@ const sk = { class: "zoom-timerange-container" }, rk = { class: "zoom-timerange-
|
|
|
19114
19114
|
};
|
|
19115
19115
|
return (l, c) => {
|
|
19116
19116
|
const u = Re("KTooltip");
|
|
19117
|
-
return
|
|
19117
|
+
return K(r) !== K(Ye).Hidden ? (V(), ct("ul", {
|
|
19118
19118
|
key: 0,
|
|
19119
19119
|
ref_key: "legendContainerRef",
|
|
19120
19120
|
ref: i,
|
|
@@ -19133,10 +19133,10 @@ const sk = { class: "zoom-timerange-container" }, rk = { class: "zoom-timerange-
|
|
|
19133
19133
|
default: Ht(() => [
|
|
19134
19134
|
dt("div", {
|
|
19135
19135
|
class: On(["label-container", { "strike-through": !o(g, b) }]),
|
|
19136
|
-
title: _ &&
|
|
19136
|
+
title: _ && K(s) ? `${f}: ${_.formatted}` : f
|
|
19137
19137
|
}, [
|
|
19138
19138
|
dt("div", Ok, ht(f), 1),
|
|
19139
|
-
_ &&
|
|
19139
|
+
_ && K(s) ? (V(), ct("div", Pk, ht(_.formatted), 1)) : Zt("", !0)
|
|
19140
19140
|
], 10, Ck)
|
|
19141
19141
|
]),
|
|
19142
19142
|
_: 2
|
|
@@ -19144,7 +19144,7 @@ const sk = { class: "zoom-timerange-container" }, rk = { class: "zoom-timerange-
|
|
|
19144
19144
|
v ? {
|
|
19145
19145
|
name: "content",
|
|
19146
19146
|
fn: Ht(() => [
|
|
19147
|
-
dt("div", Ek, ht(
|
|
19147
|
+
dt("div", Ek, ht(K(e).t("emptyEntityInfo")), 1)
|
|
19148
19148
|
]),
|
|
19149
19149
|
key: "0"
|
|
19150
19150
|
} : void 0
|
|
@@ -19241,15 +19241,15 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19241
19241
|
setup(n) {
|
|
19242
19242
|
const t = n, { i18n: e } = _t.useI18n(), { translateUnit: i } = _t.useTranslatedUnits(), s = crypto.randomUUID(), r = crypto.randomUUID(), a = new Jg(), o = Gi("chartContainer"), l = Gi("chartParent"), c = ({ chart: $ }, B) => {
|
|
19243
19243
|
var tt;
|
|
19244
|
-
const
|
|
19245
|
-
return
|
|
19244
|
+
const G = $.data, J = (tt = G.labels) == null ? void 0 : tt.indexOf(B);
|
|
19245
|
+
return G.datasets.reduce((Z, bt, Tt) => {
|
|
19246
19246
|
if ($.isDatasetVisible(Tt)) {
|
|
19247
19247
|
const rt = bt.data[J];
|
|
19248
19248
|
return isNaN(rt) ? Z : Z + rt;
|
|
19249
19249
|
} else
|
|
19250
19250
|
return Z;
|
|
19251
19251
|
}, 0);
|
|
19252
|
-
}, u = ($, B,
|
|
19252
|
+
}, u = ($, B, G, J) => {
|
|
19253
19253
|
const tt = J === "horizontal";
|
|
19254
19254
|
B === null && (B = e.t("entityNoName"));
|
|
19255
19255
|
const Z = {
|
|
@@ -19260,12 +19260,12 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19260
19260
|
...Z,
|
|
19261
19261
|
position: tt ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19262
19262
|
yAdjust: () => tt ? 0 : -Math.abs(fS()),
|
|
19263
|
-
content: (rt) => Wd(c(rt, B),
|
|
19263
|
+
content: (rt) => Wd(c(rt, B), G)
|
|
19264
19264
|
}, Tt = {
|
|
19265
19265
|
...Z,
|
|
19266
19266
|
content: (rt) => mS(c(rt, B), gS(rt.chart, $)),
|
|
19267
19267
|
position: tt ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19268
|
-
xAdjust: (rt) => tt ? hS(Wd(c(rt, B),
|
|
19268
|
+
xAdjust: (rt) => tt ? hS(Wd(c(rt, B), G)) : 0,
|
|
19269
19269
|
color: aS
|
|
19270
19270
|
};
|
|
19271
19271
|
return {
|
|
@@ -19304,7 +19304,7 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19304
19304
|
), D = Lt(0), m = () => {
|
|
19305
19305
|
var $;
|
|
19306
19306
|
return t.annotations && (($ = t.chartData.labels) == null ? void 0 : $.reduce(
|
|
19307
|
-
(B,
|
|
19307
|
+
(B, G) => Object.assign(B, u(t.chartData, G, M.value, t.orientation)),
|
|
19308
19308
|
{}
|
|
19309
19309
|
));
|
|
19310
19310
|
}, y = {
|
|
@@ -19324,9 +19324,9 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19324
19324
|
// args any because it is not typed by chartjs
|
|
19325
19325
|
// https://www.chartjs.org/docs/latest/api/interfaces/Plugin.html#parameters
|
|
19326
19326
|
afterEvent($, B) {
|
|
19327
|
-
var
|
|
19327
|
+
var G;
|
|
19328
19328
|
if (v.show = !1, B.event.type === "mousemove") {
|
|
19329
|
-
const J = B.event, tt = $.options.indexAxis, Z = $.scales, bt = $.scales[tt].getLabelForValue(Number($.scales[tt].getValueForPixel(J[tt]))), rt = $.scales[tt].getLabels().indexOf(bt), wt = (
|
|
19329
|
+
const J = B.event, tt = $.options.indexAxis, Z = $.scales, bt = $.scales[tt].getLabelForValue(Number($.scales[tt].getValueForPixel(J[tt]))), rt = $.scales[tt].getLabels().indexOf(bt), wt = (G = t.chartData.isLabelEmpty) == null ? void 0 : G[rt];
|
|
19330
19330
|
if (((ne) => ne === "x" ? J.y > Z.x.top : J.x < Z.y.right)(tt)) {
|
|
19331
19331
|
k.interactionMode !== "interactive" && (k.showTooltip = !1);
|
|
19332
19332
|
const lt = $.canvas.getContext("2d").measureText(bt).width, Dt = Math.abs(Math.round(J.x - lt * 0.5)), he = Math.round(J.x + lt * 0.5), pe = $.canvas.getBoundingClientRect(), ie = 40;
|
|
@@ -19341,12 +19341,12 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19341
19341
|
], R = N(() => t.chartData.labels && t.chartData.labels.length || 0), z = Lt(0), q = Lt(0), et = new ResizeObserver(pg(($) => {
|
|
19342
19342
|
z.value = $[0].contentRect.width, q.value = $[0].contentRect.height;
|
|
19343
19343
|
}, 100)), j = N(() => {
|
|
19344
|
-
var B,
|
|
19345
|
-
const $ = (
|
|
19344
|
+
var B, G;
|
|
19345
|
+
const $ = (G = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : G.length;
|
|
19346
19346
|
return d.value && $ && !S.value ? `${Math.max($ * (Yk + Sh), z.value)}px` : Bk;
|
|
19347
19347
|
}), ut = N(() => {
|
|
19348
|
-
var B,
|
|
19349
|
-
const $ = (
|
|
19348
|
+
var B, G;
|
|
19349
|
+
const $ = (G = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : G.length;
|
|
19350
19350
|
return d.value && $ && S.value ? `${Math.max($ * ($k + Sh), q.value)}px` : Wk;
|
|
19351
19351
|
});
|
|
19352
19352
|
_t.useReportChartDataForSynthetics(It(t, "chartData"), It(t, "syntheticsDataKey")), ni(() => {
|
|
@@ -19388,10 +19388,10 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19388
19388
|
[Ye.Bottom]: "column"
|
|
19389
19389
|
}, U = N(() => {
|
|
19390
19390
|
if (h.value && Q.value) {
|
|
19391
|
-
const $ = window.devicePixelRatio, B = Q.value,
|
|
19392
|
-
return tt.scale($, $), tt.canvas.width =
|
|
19391
|
+
const $ = window.devicePixelRatio, B = Q.value, G = B.scales.y.width * $ + qk, J = (B.scales.y.height + B.scales.y.top + B.scales.x.height) * $, tt = h.value.getContext("2d");
|
|
19392
|
+
return tt.scale($, $), tt.canvas.width = G, tt.canvas.height = J, tt.canvas.style.width = `${G / $}px`, tt.canvas.style.height = `${J / $}px`, {
|
|
19393
19393
|
scale: $,
|
|
19394
|
-
width:
|
|
19394
|
+
width: G * $,
|
|
19395
19395
|
height: J * $,
|
|
19396
19396
|
targetCtx: tt
|
|
19397
19397
|
};
|
|
@@ -19400,8 +19400,8 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19400
19400
|
}), Y = ($) => {
|
|
19401
19401
|
const B = $.target;
|
|
19402
19402
|
if (U.value && Q.value && !S.value) {
|
|
19403
|
-
const
|
|
19404
|
-
J.fillStyle = "white", B.scrollLeft >= jk && B.scrollLeft <= Uk ? (J.globalCompositeOperation = "source-over", J.clearRect(0, 0, tt, Z), J.drawImage(Tt, 0, 0, tt, Z, 0, 0, tt, Z), J.globalCompositeOperation = "destination-over", J.fillRect(0, 0, tt, Z)) : (J.globalCompositeOperation = "source-over", J.fillRect(0, (bt.scales.y.height + bt.scales.y.top + Vk) *
|
|
19403
|
+
const G = U.value.scale, J = U.value.targetCtx, tt = U.value.width, Z = U.value.height, bt = Q.value, Tt = bt.canvas;
|
|
19404
|
+
J.fillStyle = "white", B.scrollLeft >= jk && B.scrollLeft <= Uk ? (J.globalCompositeOperation = "source-over", J.clearRect(0, 0, tt, Z), J.drawImage(Tt, 0, 0, tt, Z, 0, 0, tt, Z), J.globalCompositeOperation = "destination-over", J.fillRect(0, 0, tt, Z)) : (J.globalCompositeOperation = "source-over", J.fillRect(0, (bt.scales.y.height + bt.scales.y.top + Vk) * G, tt, bt.scales.x.height * G));
|
|
19405
19405
|
}
|
|
19406
19406
|
k.offsetY = B.scrollTop, k.offsetX = B.scrollLeft, v.offset = B.scrollLeft;
|
|
19407
19407
|
}, vt = ({ width: $, height: B }) => {
|
|
@@ -19410,8 +19410,8 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19410
19410
|
ce(() => t.orientation, () => {
|
|
19411
19411
|
var $;
|
|
19412
19412
|
if (h.value && U.value) {
|
|
19413
|
-
const B = U.value.width,
|
|
19414
|
-
(($ = h.value) == null ? void 0 : $.getContext("2d")).clearRect(0, 0, B,
|
|
19413
|
+
const B = U.value.width, G = U.value.height;
|
|
19414
|
+
(($ = h.value) == null ? void 0 : $.getContext("2d")).clearRect(0, 0, B, G);
|
|
19415
19415
|
}
|
|
19416
19416
|
k.showTooltip = !1, k.interactionMode = "idle";
|
|
19417
19417
|
}), ce(() => t.annotations, ($) => {
|
|
@@ -19422,17 +19422,17 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19422
19422
|
};
|
|
19423
19423
|
return ($, B) => (V(), ct("div", {
|
|
19424
19424
|
ref: "chartParent",
|
|
19425
|
-
class: On(["chart-parent", H[
|
|
19425
|
+
class: On(["chart-parent", H[K(_)]])
|
|
19426
19426
|
}, [
|
|
19427
19427
|
dt("canvas", {
|
|
19428
|
-
id:
|
|
19428
|
+
id: K(s),
|
|
19429
19429
|
ref: "axis",
|
|
19430
19430
|
class: "axis"
|
|
19431
19431
|
}, null, 8, Fk),
|
|
19432
19432
|
dt("div", {
|
|
19433
19433
|
ref: "chartContainer",
|
|
19434
19434
|
class: "chart-container",
|
|
19435
|
-
onClick: B[0] || (B[0] = (
|
|
19435
|
+
onClick: B[0] || (B[0] = (G) => Mt()),
|
|
19436
19436
|
onScroll: Y
|
|
19437
19437
|
}, [
|
|
19438
19438
|
dt("div", {
|
|
@@ -19440,7 +19440,7 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19440
19440
|
style: wi({ width: j.value, height: ut.value })
|
|
19441
19441
|
}, [
|
|
19442
19442
|
dt("canvas", {
|
|
19443
|
-
id:
|
|
19443
|
+
id: K(r),
|
|
19444
19444
|
ref: "canvas",
|
|
19445
19445
|
class: "chart-canvas"
|
|
19446
19446
|
}, null, 8, zk)
|
|
@@ -19456,8 +19456,8 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19456
19456
|
dt("div", Hk, ht(v.text), 1)
|
|
19457
19457
|
], 4)) : Zt("", !0),
|
|
19458
19458
|
Kt(Xa, {
|
|
19459
|
-
"absolute-left":
|
|
19460
|
-
"absolute-top":
|
|
19459
|
+
"absolute-left": K(E),
|
|
19460
|
+
"absolute-top": K(O),
|
|
19461
19461
|
"chart-parent-ref": l.value,
|
|
19462
19462
|
state: k,
|
|
19463
19463
|
"tooltip-title": n.tooltipTitle,
|
|
@@ -19465,8 +19465,8 @@ const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "10
|
|
|
19465
19465
|
}, null, 8, ["absolute-left", "absolute-top", "chart-parent-ref", "state", "tooltip-title"])
|
|
19466
19466
|
])),
|
|
19467
19467
|
Kt(Hc, {
|
|
19468
|
-
id:
|
|
19469
|
-
"chart-instance":
|
|
19468
|
+
id: K(f),
|
|
19469
|
+
"chart-instance": K(Q),
|
|
19470
19470
|
items: b.value
|
|
19471
19471
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
19472
19472
|
], 2));
|
|
@@ -19812,18 +19812,18 @@ const im = /* @__PURE__ */ Bc("bar", qs), sm = /* @__PURE__ */ Bc("doughnut", Cn
|
|
|
19812
19812
|
"data-testid": "donut-chart-parent"
|
|
19813
19813
|
}, [
|
|
19814
19814
|
dt("div", sC, [
|
|
19815
|
-
Kt(
|
|
19815
|
+
Kt(K(sm), {
|
|
19816
19816
|
ref_key: "chartInstance",
|
|
19817
19817
|
ref: b,
|
|
19818
|
-
"chart-id":
|
|
19818
|
+
"chart-id": K(s),
|
|
19819
19819
|
data: f.value,
|
|
19820
|
-
options:
|
|
19820
|
+
options: K(g),
|
|
19821
19821
|
plugins: d.value
|
|
19822
19822
|
}, null, 8, ["chart-id", "data", "options", "plugins"]),
|
|
19823
19823
|
(V(), Nt(Ih, { to: "body" }, [
|
|
19824
19824
|
Kt(Xa, {
|
|
19825
|
-
"absolute-left":
|
|
19826
|
-
"absolute-top":
|
|
19825
|
+
"absolute-left": K(l),
|
|
19826
|
+
"absolute-top": K(c),
|
|
19827
19827
|
state: o,
|
|
19828
19828
|
"tooltip-title": n.tooltipTitle,
|
|
19829
19829
|
unit: n.metricUnit,
|
|
@@ -19832,7 +19832,7 @@ const im = /* @__PURE__ */ Bc("bar", qs), sm = /* @__PURE__ */ Bc("doughnut", Cn
|
|
|
19832
19832
|
]))
|
|
19833
19833
|
]),
|
|
19834
19834
|
Kt(Hc, {
|
|
19835
|
-
id:
|
|
19835
|
+
id: K(i),
|
|
19836
19836
|
"chart-instance": b.value,
|
|
19837
19837
|
items: r.value,
|
|
19838
19838
|
position: n.legendPosition
|
|
@@ -20243,40 +20243,40 @@ const bC = /* @__PURE__ */ de({
|
|
|
20243
20243
|
(H = u.value) != null && H.chart && (u.value.chart.canvas.removeEventListener("dragSelect", ut), u.value.chart.canvas.removeEventListener("dragSelectMove", X)), document.removeEventListener("click", Q, !0);
|
|
20244
20244
|
}), (H, U) => (V(), ct("div", {
|
|
20245
20245
|
ref: "chartParent",
|
|
20246
|
-
class: On(["chart-parent", A(
|
|
20246
|
+
class: On(["chart-parent", A(K(b))]),
|
|
20247
20247
|
"data-testid": "line-chart-parent"
|
|
20248
20248
|
}, [
|
|
20249
20249
|
dt("div", {
|
|
20250
20250
|
class: "chart-container",
|
|
20251
20251
|
onClick: U[0] || (U[0] = (Y) => j())
|
|
20252
20252
|
}, [
|
|
20253
|
-
n.type === "timeseries_line" ? (V(), Nt(
|
|
20253
|
+
n.type === "timeseries_line" ? (V(), Nt(K(rm), {
|
|
20254
20254
|
key: m.value,
|
|
20255
20255
|
ref_key: "chartInstance",
|
|
20256
20256
|
ref: u,
|
|
20257
|
-
"chart-id":
|
|
20257
|
+
"chart-id": K(h),
|
|
20258
20258
|
class: "chart-canvas",
|
|
20259
20259
|
data: n.chartData,
|
|
20260
20260
|
"data-testid": "time-series-line-chart",
|
|
20261
|
-
options:
|
|
20261
|
+
options: K(C),
|
|
20262
20262
|
plugins: D.value
|
|
20263
|
-
}, null, 8, ["chart-id", "data", "options", "plugins"])) : n.type === "timeseries_bar" ? (V(), Nt(
|
|
20263
|
+
}, null, 8, ["chart-id", "data", "options", "plugins"])) : n.type === "timeseries_bar" ? (V(), Nt(K(im), {
|
|
20264
20264
|
key: y.value,
|
|
20265
20265
|
ref_key: "chartInstance",
|
|
20266
20266
|
ref: u,
|
|
20267
|
-
"chart-id":
|
|
20267
|
+
"chart-id": K(h),
|
|
20268
20268
|
class: "chart-canvas",
|
|
20269
20269
|
data: n.chartData,
|
|
20270
20270
|
"data-testid": "time-series-bar-chart",
|
|
20271
|
-
options:
|
|
20271
|
+
options: K(C),
|
|
20272
20272
|
plugins: D.value
|
|
20273
20273
|
}, null, 8, ["chart-id", "data", "options", "plugins"])) : Zt("", !0)
|
|
20274
20274
|
]),
|
|
20275
20275
|
Kt(Xa, {
|
|
20276
20276
|
ref_key: "tooltipElement",
|
|
20277
20277
|
ref: g,
|
|
20278
|
-
"absolute-left":
|
|
20279
|
-
"absolute-top":
|
|
20278
|
+
"absolute-left": K(k),
|
|
20279
|
+
"absolute-top": K(E),
|
|
20280
20280
|
"data-testid": "tooltip",
|
|
20281
20281
|
granularity: n.granularity,
|
|
20282
20282
|
state: S,
|
|
@@ -20287,7 +20287,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20287
20287
|
onOnAction: U[1] || (U[1] = () => z(!1))
|
|
20288
20288
|
}, null, 8, ["absolute-left", "absolute-top", "granularity", "state", "tooltip-title", "zoom-action-items", "zoom-time-range"]),
|
|
20289
20289
|
Kt(Hc, {
|
|
20290
|
-
id:
|
|
20290
|
+
id: K(d),
|
|
20291
20291
|
"chart-instance": u.value,
|
|
20292
20292
|
"data-testid": "legend",
|
|
20293
20293
|
items: f.value
|
|
@@ -20343,7 +20343,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20343
20343
|
}), h = N(() => {
|
|
20344
20344
|
var R, z;
|
|
20345
20345
|
return i.chartOptions.hideTruncationWarning ? !1 : ((z = (R = i.chartData) == null ? void 0 : R.meta) == null ? void 0 : z.truncated) || !1;
|
|
20346
|
-
}), f = s.t("limitedResultsShown", { maxReturned: d.value }), g = N(() => [
|
|
20346
|
+
}), f = N(() => s.t("limitedResultsShown", { maxReturned: d.value })), g = N(() => [
|
|
20347
20347
|
"vertical_bar",
|
|
20348
20348
|
"horizontal_bar"
|
|
20349
20349
|
].includes(i.chartOptions.type)), b = N(() => ["timeseries_bar", "timeseries_line"].some((R) => R === i.chartOptions.type)), _ = N(() => i.chartOptions.type === "donut"), v = N(() => i.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), M = N(() => {
|
|
@@ -20417,12 +20417,12 @@ const bC = /* @__PURE__ */ de({
|
|
|
20417
20417
|
placement: "right"
|
|
20418
20418
|
}, {
|
|
20419
20419
|
content: Ht(() => [
|
|
20420
|
-
dt("div", vC, ht(
|
|
20420
|
+
dt("div", vC, ht(f.value), 1)
|
|
20421
20421
|
]),
|
|
20422
20422
|
default: Ht(() => [
|
|
20423
|
-
Kt(
|
|
20424
|
-
color: `var(--kui-color-text-warning, ${
|
|
20425
|
-
size:
|
|
20423
|
+
Kt(K(Sm), {
|
|
20424
|
+
color: `var(--kui-color-text-warning, ${K(eS)})`,
|
|
20425
|
+
size: K(iS)
|
|
20426
20426
|
}, null, 8, ["color", "size"])
|
|
20427
20427
|
]),
|
|
20428
20428
|
_: 1
|
|
@@ -20438,7 +20438,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20438
20438
|
"dimension-axes-title": E.value,
|
|
20439
20439
|
fill: n.chartOptions.stacked,
|
|
20440
20440
|
granularity: y.value,
|
|
20441
|
-
"legend-values":
|
|
20441
|
+
"legend-values": K(u),
|
|
20442
20442
|
"metric-axes-title": S.value,
|
|
20443
20443
|
"metric-unit": l.value,
|
|
20444
20444
|
stacked: n.chartOptions.stacked,
|
|
@@ -20459,7 +20459,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20459
20459
|
"chart-tooltip-sort-fn": C.value,
|
|
20460
20460
|
"data-testid": "bar-chart-container",
|
|
20461
20461
|
"dimension-axes-title": k.value,
|
|
20462
|
-
"legend-values":
|
|
20462
|
+
"legend-values": K(u),
|
|
20463
20463
|
"metric-axes-title": S.value,
|
|
20464
20464
|
"metric-unit": l.value,
|
|
20465
20465
|
orientation: v.value,
|
|
@@ -20470,9 +20470,9 @@ const bC = /* @__PURE__ */ de({
|
|
|
20470
20470
|
}, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-metric-display", "tooltip-title"])) : _.value ? (V(), Nt(aC, {
|
|
20471
20471
|
key: 2,
|
|
20472
20472
|
"chart-data": r.value,
|
|
20473
|
-
"dataset-colors": n.chartOptions.chartDatasetColors ||
|
|
20473
|
+
"dataset-colors": n.chartOptions.chartDatasetColors || K(al),
|
|
20474
20474
|
"legend-position": n.legendPosition,
|
|
20475
|
-
"legend-values":
|
|
20475
|
+
"legend-values": K(u),
|
|
20476
20476
|
"metric-unit": l.value,
|
|
20477
20477
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20478
20478
|
"tooltip-dimension-display": k.value,
|
|
@@ -20496,7 +20496,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20496
20496
|
], 2);
|
|
20497
20497
|
};
|
|
20498
20498
|
}
|
|
20499
|
-
}), iP = /* @__PURE__ */ $e(MC, [["__scopeId", "data-v-
|
|
20499
|
+
}), iP = /* @__PURE__ */ $e(MC, [["__scopeId", "data-v-de2b8f0e"]]), SC = {
|
|
20500
20500
|
class: "chart-parent",
|
|
20501
20501
|
"data-testid": "gauge-chart-parent"
|
|
20502
20502
|
}, TC = { class: "chart-totals-flex" }, DC = {
|
|
@@ -20581,13 +20581,13 @@ const bC = /* @__PURE__ */ de({
|
|
|
20581
20581
|
"data-testid": "gauge-chart-metric",
|
|
20582
20582
|
style: wi(u.value)
|
|
20583
20583
|
}, ht(l.value), 5)) : Zt("", !0),
|
|
20584
|
-
h.value ? (V(), ct("div", DC, ht(
|
|
20584
|
+
h.value ? (V(), ct("div", DC, ht(K(e).t("total")) + ": " + ht(c.value), 1)) : Zt("", !0)
|
|
20585
20585
|
]),
|
|
20586
20586
|
dt("div", {
|
|
20587
20587
|
class: "chart-container",
|
|
20588
20588
|
style: wi({ height: n.height, width: n.width })
|
|
20589
20589
|
}, [
|
|
20590
|
-
Kt(
|
|
20590
|
+
Kt(K(sm), {
|
|
20591
20591
|
ref_key: "chartInstance",
|
|
20592
20592
|
ref: o,
|
|
20593
20593
|
"chart-id": i.value,
|
|
@@ -20665,7 +20665,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20665
20665
|
class: "single-value-error",
|
|
20666
20666
|
"data-testid": "single-value-error",
|
|
20667
20667
|
"icon-variant": "error",
|
|
20668
|
-
title:
|
|
20668
|
+
title: K(t).t("singleValue.valueError")
|
|
20669
20669
|
}, null, 8, ["title"])) : (V(), ct("div", PC, [
|
|
20670
20670
|
dt("span", EC, ht(c.value), 1),
|
|
20671
20671
|
o.value ? (V(), ct("span", AC, " " + ht(a.value), 1)) : Zt("", !0)
|
|
@@ -20884,7 +20884,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20884
20884
|
"icon-variant": "error"
|
|
20885
20885
|
}, {
|
|
20886
20886
|
title: Ht(() => [
|
|
20887
|
-
Be(ht(
|
|
20887
|
+
Be(ht(K(e).t("topNTable.defaultErrorStateTitle")), 1)
|
|
20888
20888
|
]),
|
|
20889
20889
|
default: Ht(() => [
|
|
20890
20890
|
Be(ht(S.value), 1)
|
|
@@ -20949,7 +20949,7 @@ const bC = /* @__PURE__ */ de({
|
|
|
20949
20949
|
"data-testid": "top-n-empty-state"
|
|
20950
20950
|
}, {
|
|
20951
20951
|
title: Ht(() => [
|
|
20952
|
-
Be(ht(n.emptyStateTitle ||
|
|
20952
|
+
Be(ht(n.emptyStateTitle || K(e).t("topNTable.defaultEmptyStateTitle")), 1)
|
|
20953
20953
|
]),
|
|
20954
20954
|
_: 1
|
|
20955
20955
|
}))
|
|
@@ -20979,7 +20979,7 @@ Ra.exports;
|
|
|
20979
20979
|
(function(n, t) {
|
|
20980
20980
|
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", b = "[object Map]", _ = "[object Number]", v = "[object Object]", M = "[object Promise]", S = "[object RegExp]", k = "[object Set]", E = "[object String]", O = "[object Symbol]", D = "[object WeakMap]", m = "[object ArrayBuffer]", y = "[object DataView]", w = "[object Float32Array]", C = "[object Float64Array]", A = "[object Int8Array]", R = "[object Int16Array]", z = "[object Int32Array]", q = "[object Uint8Array]", et = "[object Uint8ClampedArray]", j = "[object Uint16Array]", ut = "[object Uint32Array]", X = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Q = /^\w*$/, H = /^\./, U = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Y = /[\\^$.*+?()[\]{}|]/g, vt = /\\(\\)?/g, Mt = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, B = {};
|
|
20981
20981
|
B[w] = B[C] = B[A] = B[R] = B[z] = B[q] = B[et] = B[j] = B[ut] = !0, B[l] = B[c] = B[m] = B[u] = B[y] = B[d] = B[h] = B[f] = B[b] = B[_] = B[v] = B[S] = B[k] = B[E] = B[D] = !1;
|
|
20982
|
-
var
|
|
20982
|
+
var G = typeof Le == "object" && Le && Le.Object === Object && Le, J = typeof self == "object" && self && self.Object === Object && self, tt = G || J || Function("return this")(), Z = t && !t.nodeType && t, bt = Z && !0 && n && !n.nodeType && n, Tt = bt && bt.exports === Z, rt = Tt && G.process, wt = function() {
|
|
20983
20983
|
try {
|
|
20984
20984
|
return rt && rt.binding("util");
|
|
20985
20985
|
} catch {
|
|
@@ -21849,8 +21849,8 @@ License: MIT
|
|
|
21849
21849
|
}
|
|
21850
21850
|
function b(m) {
|
|
21851
21851
|
var y, w, C, A, R = Math.pow(2, 53), z = -R, q = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, et = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, j = this, ut = 0, X = 0, Q = !1, H = !1, U = [], Y = { data: [], errors: [], meta: {} };
|
|
21852
|
-
function vt(
|
|
21853
|
-
return m.skipEmptyLines === "greedy" ?
|
|
21852
|
+
function vt(G) {
|
|
21853
|
+
return m.skipEmptyLines === "greedy" ? G.join("").trim() === "" : G.length === 1 && G[0].length === 0;
|
|
21854
21854
|
}
|
|
21855
21855
|
function Mt() {
|
|
21856
21856
|
if (Y && C && (B("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + c.DefaultDelimiter + "'"), C = !1), m.skipEmptyLines && (Y.data = Y.data.filter(function(Z) {
|
|
@@ -21860,7 +21860,7 @@ License: MIT
|
|
|
21860
21860
|
D(m.transformHeader) && (bt = m.transformHeader(bt, Tt)), U.push(bt);
|
|
21861
21861
|
};
|
|
21862
21862
|
if (Y) if (Array.isArray(Y.data[0])) {
|
|
21863
|
-
for (var
|
|
21863
|
+
for (var G = 0; $() && G < Y.data.length; G++) Y.data[G].forEach(Z);
|
|
21864
21864
|
Y.data.splice(0, 1);
|
|
21865
21865
|
} else Y.data.forEach(Z);
|
|
21866
21866
|
}
|
|
@@ -21880,13 +21880,13 @@ License: MIT
|
|
|
21880
21880
|
function $() {
|
|
21881
21881
|
return m.header && U.length === 0;
|
|
21882
21882
|
}
|
|
21883
|
-
function B(
|
|
21884
|
-
|
|
21883
|
+
function B(G, J, tt, Z) {
|
|
21884
|
+
G = { type: G, code: J, message: tt }, Z !== void 0 && (G.row = Z), Y.errors.push(G);
|
|
21885
21885
|
}
|
|
21886
|
-
D(m.step) && (A = m.step, m.step = function(
|
|
21887
|
-
Y =
|
|
21888
|
-
}), this.parse = function(
|
|
21889
|
-
var Z = m.quoteChar || '"', Z = (m.newline || (m.newline = this.guessLineEndings(
|
|
21886
|
+
D(m.step) && (A = m.step, m.step = function(G) {
|
|
21887
|
+
Y = G, $() ? Mt() : (Mt(), Y.data.length !== 0 && (ut += G.data.length, m.preview && ut > m.preview ? w.abort() : (Y.data = Y.data[0], A(Y, j))));
|
|
21888
|
+
}), this.parse = function(G, J, tt) {
|
|
21889
|
+
var Z = m.quoteChar || '"', Z = (m.newline || (m.newline = this.guessLineEndings(G, Z)), C = !1, m.delimiter ? D(m.delimiter) && (m.delimiter = m.delimiter(G), Y.meta.delimiter = m.delimiter) : ((Z = ((bt, Tt, rt, wt, gt) => {
|
|
21890
21890
|
var ne, lt, Dt, he;
|
|
21891
21891
|
gt = gt || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
21892
21892
|
for (var pe = 0; pe < gt.length; pe++) {
|
|
@@ -21894,8 +21894,8 @@ License: MIT
|
|
|
21894
21894
|
0 < se.data.length && (fe /= se.data.length - $t), (lt === void 0 || At <= lt) && (he === void 0 || he < fe) && 1.99 < fe && (lt = At, ne = sn, he = fe);
|
|
21895
21895
|
}
|
|
21896
21896
|
return { successful: !!(m.delimiter = ne), bestDelimiter: ne };
|
|
21897
|
-
})(
|
|
21898
|
-
return m.preview && m.header && Z.preview++, y =
|
|
21897
|
+
})(G, m.newline, m.skipEmptyLines, m.comments, m.delimitersToGuess)).successful ? m.delimiter = Z.bestDelimiter : (C = !0, m.delimiter = c.DefaultDelimiter), Y.meta.delimiter = m.delimiter), E(m));
|
|
21898
|
+
return m.preview && m.header && Z.preview++, y = G, w = new v(Z), Y = w.parse(y, J, tt), Mt(), Q ? { meta: { paused: !0 } } : Y || { meta: { paused: !1 } };
|
|
21899
21899
|
}, this.paused = function() {
|
|
21900
21900
|
return Q;
|
|
21901
21901
|
}, this.pause = function() {
|
|
@@ -21931,14 +21931,14 @@ License: MIT
|
|
|
21931
21931
|
var X = 0, Q = !1;
|
|
21932
21932
|
this.parse = function(H, U, Y) {
|
|
21933
21933
|
if (typeof H != "string") throw new Error("Input must be a string");
|
|
21934
|
-
var vt = H.length, Mt = y.length, $ = w.length, B = C.length,
|
|
21934
|
+
var vt = H.length, Mt = y.length, $ = w.length, B = C.length, G = D(A), J = [], tt = [], Z = [], bt = X = 0;
|
|
21935
21935
|
if (!H) return At();
|
|
21936
21936
|
if (z || z !== !1 && H.indexOf(j) === -1) {
|
|
21937
21937
|
for (var Tt = H.split(w), rt = 0; rt < Tt.length; rt++) {
|
|
21938
21938
|
if (Z = Tt[rt], X += Z.length, rt !== Tt.length - 1) X += w.length;
|
|
21939
21939
|
else if (Y) return At();
|
|
21940
21940
|
if (!C || Z.substring(0, B) !== C) {
|
|
21941
|
-
if (
|
|
21941
|
+
if (G) {
|
|
21942
21942
|
if (J = [], he(Z.split(y)), fe(), Q) return At();
|
|
21943
21943
|
} else he(Z.split(y));
|
|
21944
21944
|
if (R && R <= rt) return J = J.slice(0, R), At(!0);
|
|
@@ -21958,7 +21958,7 @@ License: MIT
|
|
|
21958
21958
|
break;
|
|
21959
21959
|
}
|
|
21960
21960
|
if (Dt = pe(gt), H.substring(lt + 1 + Dt, lt + 1 + Dt + $) === w) {
|
|
21961
|
-
if (Z.push(H.substring(X, lt).replace(ne, j)), sn(lt + 1 + Dt + $), wt = H.indexOf(y, X), lt = H.indexOf(j, X),
|
|
21961
|
+
if (Z.push(H.substring(X, lt).replace(ne, j)), sn(lt + 1 + Dt + $), wt = H.indexOf(y, X), lt = H.indexOf(j, X), G && (fe(), Q)) return At();
|
|
21962
21962
|
if (R && J.length >= R) return At(!0);
|
|
21963
21963
|
break;
|
|
21964
21964
|
}
|
|
@@ -21971,7 +21971,7 @@ License: MIT
|
|
|
21971
21971
|
} else if (wt !== -1 && (wt < gt || gt === -1)) Z.push(H.substring(X, wt)), X = wt + Mt, wt = H.indexOf(y, X);
|
|
21972
21972
|
else {
|
|
21973
21973
|
if (gt === -1) break;
|
|
21974
|
-
if (Z.push(H.substring(X, gt)), sn(gt + $),
|
|
21974
|
+
if (Z.push(H.substring(X, gt)), sn(gt + $), G && (fe(), Q)) return At();
|
|
21975
21975
|
if (R && J.length >= R) return At(!0);
|
|
21976
21976
|
}
|
|
21977
21977
|
return ie();
|
|
@@ -21983,7 +21983,7 @@ License: MIT
|
|
|
21983
21983
|
return se = $t !== -1 && ($t = H.substring(lt + 1, $t)) && $t.trim() === "" ? $t.length : se;
|
|
21984
21984
|
}
|
|
21985
21985
|
function ie($t) {
|
|
21986
|
-
return Y || ($t === void 0 && ($t = H.substring(X)), Z.push($t), X = vt, he(Z),
|
|
21986
|
+
return Y || ($t === void 0 && ($t = H.substring(X)), Z.push($t), X = vt, he(Z), G && fe()), At();
|
|
21987
21987
|
}
|
|
21988
21988
|
function sn($t) {
|
|
21989
21989
|
X = $t, he(Z), Z = [], gt = H.indexOf(w, X);
|
|
@@ -22080,7 +22080,7 @@ License: MIT
|
|
|
22080
22080
|
function Q(U, Y, vt) {
|
|
22081
22081
|
var Mt = "", $ = (typeof U == "string" && (U = JSON.parse(U)), typeof Y == "string" && (Y = JSON.parse(Y)), Array.isArray(U) && 0 < U.length), B = !Array.isArray(Y[0]);
|
|
22082
22082
|
if ($ && C) {
|
|
22083
|
-
for (var
|
|
22083
|
+
for (var G = 0; G < U.length; G++) 0 < G && (Mt += A), Mt += H(U[G], G);
|
|
22084
22084
|
0 < Y.length && (Mt += R);
|
|
22085
22085
|
}
|
|
22086
22086
|
for (var J = 0; J < Y.length; J++) {
|
|
@@ -22106,7 +22106,7 @@ License: MIT
|
|
|
22106
22106
|
function H(U, Y) {
|
|
22107
22107
|
var vt, Mt;
|
|
22108
22108
|
return U == null ? "" : U.constructor === Date ? JSON.stringify(U).slice(1, 25) : (Mt = !1, ut && typeof U == "string" && ut.test(U) && (U = "'" + U, Mt = !0), vt = U.toString().replace(X, q), (Mt = Mt || w === !0 || typeof w == "function" && w(U, Y) || Array.isArray(w) && w[Y] || (($, B) => {
|
|
22109
|
-
for (var
|
|
22109
|
+
for (var G = 0; G < B.length; G++) if (-1 < $.indexOf(B[G])) return !0;
|
|
22110
22110
|
return !1;
|
|
22111
22111
|
})(vt, c.BAD_DELIMITERS) || -1 < vt.indexOf(A) || vt.charAt(0) === " " || vt.charAt(vt.length - 1) === " ") ? z + vt + z : vt);
|
|
22112
22112
|
}
|
|
@@ -22360,7 +22360,7 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22360
22360
|
class: "vitals-report",
|
|
22361
22361
|
"data-testid": "csv-export-modal",
|
|
22362
22362
|
"show-dismiss-icon": "",
|
|
22363
|
-
title:
|
|
22363
|
+
title: K(e).t("csvExport.exportPreview"),
|
|
22364
22364
|
visible: "",
|
|
22365
22365
|
onCancel: d,
|
|
22366
22366
|
onKeyup: _m(d, ["esc"])
|
|
@@ -22370,8 +22370,8 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22370
22370
|
return [
|
|
22371
22371
|
dt("div", null, [
|
|
22372
22372
|
n.exportState.status === "success" && l.value ? (V(), ct("div", IO, [
|
|
22373
|
-
dt("p", null, ht(n.modalDescription ? n.modalDescription :
|
|
22374
|
-
dt("p", null, ht(
|
|
22373
|
+
dt("p", null, ht(n.modalDescription ? n.modalDescription : K(e).t("csvExport.exportDescription")), 1),
|
|
22374
|
+
dt("p", null, ht(K(e).t("csvExport.exportTimeRange")) + ": " + ht(c.value), 1)
|
|
22375
22375
|
])) : Zt("", !0),
|
|
22376
22376
|
n.exportState.status === "loading" ? (V(), Nt(_, {
|
|
22377
22377
|
key: 1,
|
|
@@ -22390,10 +22390,10 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22390
22390
|
"empty-state": Ht(() => [
|
|
22391
22391
|
Kt(v, { "action-button-visible": !1 }, {
|
|
22392
22392
|
title: Ht(() => [
|
|
22393
|
-
dt("h5", null, ht(
|
|
22393
|
+
dt("h5", null, ht(K(e).t("csvExport.noDataRange")), 1)
|
|
22394
22394
|
]),
|
|
22395
22395
|
default: Ht(() => [
|
|
22396
|
-
dt("p", null, ht(
|
|
22396
|
+
dt("p", null, ht(K(e).t("csvExport.noDataRetry")), 1)
|
|
22397
22397
|
]),
|
|
22398
22398
|
_: 1
|
|
22399
22399
|
})
|
|
@@ -22404,7 +22404,7 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22404
22404
|
"action-button-visible": !1
|
|
22405
22405
|
}, {
|
|
22406
22406
|
title: Ht(() => [
|
|
22407
|
-
dt("h5", null, ht(
|
|
22407
|
+
dt("h5", null, ht(K(e).t("csvExport.dataError")), 1)
|
|
22408
22408
|
]),
|
|
22409
22409
|
_: 1
|
|
22410
22410
|
})) : Zt("", !0),
|
|
@@ -22413,12 +22413,12 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22413
22413
|
Kt(S, {
|
|
22414
22414
|
class: "preview-tooltip",
|
|
22415
22415
|
placement: "right",
|
|
22416
|
-
text:
|
|
22416
|
+
text: K(e).t("csvExport.maximumRecordAmount", { value: K(Fw) })
|
|
22417
22417
|
}, {
|
|
22418
22418
|
default: Ht(() => [
|
|
22419
|
-
Kt(
|
|
22420
|
-
color: `var(--kui-color-text-neutral, ${
|
|
22421
|
-
size:
|
|
22419
|
+
Kt(K(Tm), {
|
|
22420
|
+
color: `var(--kui-color-text-neutral, ${K(kc)})`,
|
|
22421
|
+
size: K(Cc)
|
|
22422
22422
|
}, null, 8, ["color", "size"])
|
|
22423
22423
|
]),
|
|
22424
22424
|
_: 1
|
|
@@ -22434,7 +22434,7 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22434
22434
|
onClick: d
|
|
22435
22435
|
}, {
|
|
22436
22436
|
default: Ht(() => [
|
|
22437
|
-
Be(ht(
|
|
22437
|
+
Be(ht(K(e).t("csvExport.cancelButton")), 1)
|
|
22438
22438
|
]),
|
|
22439
22439
|
_: 1
|
|
22440
22440
|
}),
|
|
@@ -22451,7 +22451,7 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22451
22451
|
disabled: n.exportState.status !== "success" || !l.value
|
|
22452
22452
|
}, {
|
|
22453
22453
|
default: Ht(() => [
|
|
22454
|
-
Be(ht(
|
|
22454
|
+
Be(ht(K(e).t("csvExport.downloadButton")), 1)
|
|
22455
22455
|
]),
|
|
22456
22456
|
_: 1
|
|
22457
22457
|
}, 8, ["disabled"])
|
|
@@ -22631,23 +22631,23 @@ const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
|
22631
22631
|
}), ei(() => {
|
|
22632
22632
|
We.positioners[S] && delete We.positioners[S];
|
|
22633
22633
|
}), (D, m) => (V(), ct("div", NO, [
|
|
22634
|
-
_.value ? n.type === "sparkline_bar" ? (V(), Nt(
|
|
22634
|
+
_.value ? n.type === "sparkline_bar" ? (V(), Nt(K(im), {
|
|
22635
22635
|
key: 1,
|
|
22636
|
-
"chart-id":
|
|
22636
|
+
"chart-id": K(t),
|
|
22637
22637
|
data: v.value,
|
|
22638
22638
|
"data-testId": "sparkline-bar",
|
|
22639
22639
|
options: k.value,
|
|
22640
22640
|
plugins: h.value
|
|
22641
|
-
}, null, 8, ["chart-id", "data", "options", "plugins"])) : n.type === "sparkline_line" || n.type === "sparkline_step" ? (V(), Nt(
|
|
22641
|
+
}, null, 8, ["chart-id", "data", "options", "plugins"])) : n.type === "sparkline_line" || n.type === "sparkline_step" ? (V(), Nt(K(rm), {
|
|
22642
22642
|
key: 2,
|
|
22643
|
-
"chart-id":
|
|
22643
|
+
"chart-id": K(t),
|
|
22644
22644
|
data: v.value,
|
|
22645
22645
|
"data-testId": n.type === "sparkline_line" ? "sparkline-line" : "sparkline-step",
|
|
22646
22646
|
options: k.value,
|
|
22647
22647
|
plugins: h.value
|
|
22648
22648
|
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Zt("", !0) : (V(), ct("div", FO, [
|
|
22649
22649
|
ir(D.$slots, "empty", {}, () => [
|
|
22650
|
-
Be(ht(
|
|
22650
|
+
Be(ht(K(e).t("sparkline_no_data")), 1)
|
|
22651
22651
|
], !0)
|
|
22652
22652
|
])),
|
|
22653
22653
|
n.disableTooltip ? Zt("", !0) : (V(), Nt(Xa, {
|
package/dist/vitals-chart.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(at,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","@kong/icons"],d):(at=typeof globalThis<"u"?globalThis:at||self,d(at["kong-ui-publicvitals-chart"]={},at.Vue,at["kong-ui-public-i18n"],at.KongIcons))})(this,function(at,d,zn,Qs){"use strict";var vC=Object.defineProperty;var MC=(at,d,zn)=>d in at?vC(at,d,{enumerable:!0,configurable:!0,writable:!0,value:zn}):at[d]=zn;var P=(at,d,zn)=>MC(at,typeof d!="symbol"?d+"":d,zn);var Rn;const Fm={noDataAvailableTitle:"No data in the current time frame",noDataAvailableDescription:"Once there is traffic, it will display here",limitedResultsShown:"Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.",entityNoName:"no-name",debug:"debug",total:"Total",jumpToExplore:"Open in explorer",more_actions:"More actions",emptyEntityInfo:"Requests that do not have a value for the selected group",chartUnits:{ms:"ms",bytes:"Byte{plural}",count:"request{plural}","count/minute":"rpm",requests:"request{plural}","token count":"token{plural}"},csvExport:{dataError:"Error loading data",noDataRange:"No data in selected range",noDataRetry:"Please adjust the time period and try again",timeRangeSelected:"selected",exportPreview:"Export preview",exportAsCsv:"Export as CSV",exportTimeRange:"Time range",exportDescription:"Exports a CSV of the data represented in the chart.",maximumRecordAmount:"The number of groups is limited to {value}",previewRows:"Previewing {rowsMax} of {rowsTotal} row{plural}",downloadButton:"Export",cancelButton:"Cancel",UtcOffset:"UTC offset",Timestamp:"Timestamp"},query_errors:{forbidden:{message:"Data request forbidden",details:"To access this data, either filter for an entity you have access to or request analytics viewer access from your administrator."},time_range_exceeded:{message:"Time range exceeded",details:"The time range for this report is outside of your organization's data retention period"},timeout:{message:"Data request timed out",details:"We're sorry, the request timed out. Please consider using a shorter time period or try again later."},other:{message:"Bad request"}},legend:{datapointValueDisplay:"{value} {unit}"},chartLabels:{ai_count:"LLM request count",ai_plugin:"AI plugin",ai_provider:"Provider",ai_request_model:"Request model",ai_response_model:"Response model",request_count:"Request count",request_per_minute:"Requests per minute",requests_per_minute:"Requests per minute",response_latency_average:"Response latency (avg)",response_latency_p99:"Response latency (p99)",response_latency_p95:"Response latency (p95)",response_latency_p50:"Response latency (p50)",kong_latency_average:"Kong latency (avg)",kong_latency_p99:"Kong latency (p99)",kong_latency_p95:"Kong latency (p95)",kong_latency_p50:"Kong latency (p50)",llm_cache_status:"Cache status",llm_embeddings_model:"Embeddings model",llm_embeddings_provider:"Embeddings provider",upstream_latency_average:"Upstream latency (avg)",upstream_latency_p99:"Upstream latency (p99)",upstream_latency_p95:"Upstream latency (p95)",upstream_latency_p50:"Upstream latency (p50)",response_size_p99:"Response size (p99)",response_size_p95:"Response size (p95)",response_size_p50:"Response size (p50)",response_size_average:"Response size (avg)",response_size_sum:"Response size (sum)",response_source:"Response source",request_size_p99:"Request size (p99)",request_size_p95:"Request size (p95)",request_size_p50:"Request size (p50)",request_size_average:"Request size (avg)",request_size_sum:"Request size (sum)",control_plane:"Control plane",control_plane_group:"Control plane group",consumer:"Consumer",country_code:"Country",country:"Country",data_plane_node:"Data plane node",data_plane_node_version:"Data plane node version",api_product:"API product",api_product_version:"API product version",portal:"Portal",realm:"Realm",runtime_group:"Runtime group",gateway_service:"Gateway service",route:"Route",application:"Application",status_code:"Status code",status_code_grouped:"Status code (grouped)",upstream_status_code:"Upstream status code",upstream_status_code_grouped:"Upstream status code group",time:"Time",Service:"Service",ServiceVersion:"Service version",Route:"Route",Application:"Application",RuntimeGroup:"Runtime group",GatewayService:"Gateway service",StatusCode:"Status code",CodeClass:"Status code (grouped)",Time:"Time",API_PRODUCT:"Api product",API_PRODUCT_VERSION:"Api product version",RUNTIME_GROUP:"Runtime group",GATEWAY_SERVICE:"Gateway service",ROUTE:"Route",APPLICATION:"Application",STATUS_CODE:"Status code",STATUS_CODE_GROUPED:"Status code (grouped)",TIME:"Time",ORGANIZATION:"Organization",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99)",LatencyP95:"Response latency (p95)",LatencyP50:"Response latency (p50)",LatencyAverage:"Response latency (avg)",UpstreamLatencyP99:"Upstream latency (p99)",UpstreamLatencyP95:"Upstream latency (p95)",UpstreamLatencyP50:"Upstream latency (p50)",UpstreamLatencyAverage:"Upstream latency (avg)",KongLatencyP99:"Kong latency (p99)",KongLatencyP95:"Kong latency (p95)",KongLatencyP50:"Kong latency (p50)",KongLatencyAverage:"Kong latency (avg)",ResponseSizeP99:"Response size (p99)",ResponseSizeP95:"Response size (p95)",ResponseSizeP50:"Response size (p50)",RequestSizeP99:"Request size (p99)",RequestSizeP95:"Request size (p95)",RequestSizeP50:"Request size (p50)",SuccessfulRequests:"Successful requests",SUCCESS:"Successful requests",FailedRequests:"Failed requests",FAILURE:"Failed requests","5XX":"5xx","4XX":"4xx","3XX":"3xx","2XX":"2xx","1XX":"1xx",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency",RESPONSE_LATENCY_P95:"Response latency",RESPONSE_LATENCY_P50:"Response latency",RESPONSE_SIZE_P99:"Response size (p99)",RESPONSE_SIZE_P95:"Response size (p95)",RESPONSE_SIZE_P50:"Response size (p50)",REQUEST_SIZE_P99:"Request size (p99)",REQUEST_SIZE_P95:"Request size (p95)",REQUEST_SIZE_P50:"Request size (p50)",CONTROL_PLANE:"Control plane",____OTHER____:"Others",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)","threshold-warning":"Warning threshold: {value}","threshold-error":"Error threshold: {value}","thatreshold-neutral":"Alert threshold: {value}",api:"API",vulnerability_count:"Vulnerability count"},metricAxisTitles:{request_count:"Request count",requests_per_minute:"Requests per minute",latency_in:"Latency in {unit}",size_in:"Size in {unit}",response_latency_p99:"Response latency (p99) in {unit}",response_latency_p95:"Response latency (p95) in {unit}",response_latency_p50:"Response latency (p50) in {unit}",upstream_latency_p99:"Upstream latency (p99) in {unit}",upstream_latency_p95:"Upstream latency (p95) in {unit}",upstream_latency_p50:"Upstream latency (p50) in {unit}",kong_latency_p99:"Kong latency (p99) in {unit}",kong_latency_p95:"Kong latency (p95) in {unit}",kong_latency_p50:"Kong latency (p50) in {unit}",response_size_p99:"Response size (p99) in {unit}",response_size_p95:"Response size (p95) in {unit}",response_size_p50:"Response size (p50) in {unit}",request_size_p99:"Request size (p99) in {unit}",request_size_p95:"Request size (p95) in {unit}",request_size_p50:"Request size (p50) in {unit}",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency (p99) in {unit}",RESPONSE_LATENCY_P95:"Response latency (p95) in {unit}",RESPONSE_LATENCY_P50:"Response latency (p50) in {unit}",RESPONSE_SIZE_P99:"Response size (p99) in {unit}",RESPONSE_SIZE_P95:"Response size (p95) in {unit}",RESPONSE_SIZE_P50:"Response size (p50) in {unit}",REQUEST_SIZE_P99:"Request size (p99) in {unit}",REQUEST_SIZE_P95:"Request size (p95) in {unit}",REQUEST_SIZE_P50:"Request size (p50) in {unit}",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99) in {unit}",LatencyP95:"Response latency (p95) in {unit}",LatencyP50:"Response latency (p50) in {unit}",LatencyAverage:"Response latency (avg) in {unit}",UpstreamLatencyP99:"Upstream latency (p99) in {unit}",UpstreamLatencyP95:"Upstream latency (p95) in {unit}",UpstreamLatencyP50:"Upstream latency (p50) in {unit}",UpstreamLatencyAverage:"Upstream latency (avg) in {unit}",KongLatencyP99:"Kong latency (p99) in {unit}",KongLatencyP95:"Kong latency (p95) in {unit}",KongLatencyP50:"Kong latency (p50) in {unit}",KongLatencyAverage:"Kong latency (avg) in {unit}",ResponseSizeP99:"Response size (p99) in {unit}",ResponseSizeP95:"Response size (p95) in {unit}",ResponseSizeP50:"Response size (p50) in {unit}",RequestSizeP99:"Request size (p99) in {unit}",RequestSizeP95:"Request size (p95) in {unit}",RequestSizeP50:"Request size (p50) in {unit}",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)",api:"API"},granularityAxisTitles:{tenSecondly:"@timestamp per 10 seconds",thirtySecondly:"@timestamp per 30 seconds",minutely:"@timestamp per minute",fiveMinutely:"@timestamp per 5 minutes",tenMinutely:"@timestamp per 10 minutes",thirtyMinutely:"@timestamp per 30 minutes",hourly:"@timestamp per hour",twoHourly:"@timestamp per 2 hours",twelveHourly:"@timestamp per 12 hours",daily:"@timestamp per day",weekly:"@timestamp per week"},topNTable:{nameLabel:"Name",defaultEmptyStateTitle:"No data to display",defaultErrorStateTitle:"Something went wrong",errors:{meta:"Error: response must contain 'meta'",display:"Error: 'display' response incorrectly formatted (must have at least one key)",metricNames:"Error: 'metricNames' response incorrectly formatted (must have at least one entry)"}},singleValue:{valueError:"Invalid configuration"},new_timerange_label:"Time range",sparkline_no_data:"No data",zoom_action_items:{zoom:"Zoom in",view_requests:"View requests",cancel:"Cancel",explore:"Explore"},zoom_time_range:{from:"From",to:"To"}};function Bm(){const n=zn.createI18n("en-us",Fm);return{i18n:n,i18nT:zn.i18nTComponent(n)}}/*!
|
|
1
|
+
(function(at,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","@kong/icons"],d):(at=typeof globalThis<"u"?globalThis:at||self,d(at["kong-ui-publicvitals-chart"]={},at.Vue,at["kong-ui-public-i18n"],at.KongIcons))})(this,function(at,d,zn,Qs){"use strict";var vC=Object.defineProperty;var MC=(at,d,zn)=>d in at?vC(at,d,{enumerable:!0,configurable:!0,writable:!0,value:zn}):at[d]=zn;var P=(at,d,zn)=>MC(at,typeof d!="symbol"?d+"":d,zn);var Rn;const Fm={noDataAvailableTitle:"No data in the current time frame",noDataAvailableDescription:"Once there is traffic, it will display here",limitedResultsShown:"Grouped value limit exceeded, showing the top {maxReturned}",entityNoName:"no-name",debug:"debug",total:"Total",jumpToExplore:"Open in explorer",more_actions:"More actions",emptyEntityInfo:"Requests that do not have a value for the selected group",chartUnits:{ms:"ms",bytes:"Byte{plural}",count:"request{plural}","count/minute":"rpm",requests:"request{plural}","token count":"token{plural}"},csvExport:{dataError:"Error loading data",noDataRange:"No data in selected range",noDataRetry:"Please adjust the time period and try again",timeRangeSelected:"selected",exportPreview:"Export preview",exportAsCsv:"Export as CSV",exportTimeRange:"Time range",exportDescription:"Exports a CSV of the data represented in the chart.",maximumRecordAmount:"The number of groups is limited to {value}",previewRows:"Previewing {rowsMax} of {rowsTotal} row{plural}",downloadButton:"Export",cancelButton:"Cancel",UtcOffset:"UTC offset",Timestamp:"Timestamp"},query_errors:{forbidden:{message:"Data request forbidden",details:"To access this data, either filter for an entity you have access to or request analytics viewer access from your administrator."},time_range_exceeded:{message:"Time range exceeded",details:"The time range for this report is outside of your organization's data retention period"},timeout:{message:"Data request timed out",details:"We're sorry, the request timed out. Please consider using a shorter time period or try again later."},other:{message:"Bad request"}},legend:{datapointValueDisplay:"{value} {unit}"},chartLabels:{ai_count:"LLM request count",ai_plugin:"AI plugin",ai_provider:"Provider",ai_request_model:"Request model",ai_response_model:"Response model",request_count:"Request count",request_per_minute:"Requests per minute",requests_per_minute:"Requests per minute",response_latency_average:"Response latency (avg)",response_latency_p99:"Response latency (p99)",response_latency_p95:"Response latency (p95)",response_latency_p50:"Response latency (p50)",kong_latency_average:"Kong latency (avg)",kong_latency_p99:"Kong latency (p99)",kong_latency_p95:"Kong latency (p95)",kong_latency_p50:"Kong latency (p50)",llm_cache_status:"Cache status",llm_embeddings_model:"Embeddings model",llm_embeddings_provider:"Embeddings provider",upstream_latency_average:"Upstream latency (avg)",upstream_latency_p99:"Upstream latency (p99)",upstream_latency_p95:"Upstream latency (p95)",upstream_latency_p50:"Upstream latency (p50)",response_size_p99:"Response size (p99)",response_size_p95:"Response size (p95)",response_size_p50:"Response size (p50)",response_size_average:"Response size (avg)",response_size_sum:"Response size (sum)",response_source:"Response source",request_size_p99:"Request size (p99)",request_size_p95:"Request size (p95)",request_size_p50:"Request size (p50)",request_size_average:"Request size (avg)",request_size_sum:"Request size (sum)",control_plane:"Control plane",control_plane_group:"Control plane group",consumer:"Consumer",country_code:"Country",country:"Country",data_plane_node:"Data plane node",data_plane_node_version:"Data plane node version",api_product:"API product",api_product_version:"API product version",portal:"Portal",realm:"Realm",runtime_group:"Runtime group",gateway_service:"Gateway service",route:"Route",application:"Application",status_code:"Status code",status_code_grouped:"Status code (grouped)",upstream_status_code:"Upstream status code",upstream_status_code_grouped:"Upstream status code group",time:"Time",Service:"Service",ServiceVersion:"Service version",Route:"Route",Application:"Application",RuntimeGroup:"Runtime group",GatewayService:"Gateway service",StatusCode:"Status code",CodeClass:"Status code (grouped)",Time:"Time",API_PRODUCT:"Api product",API_PRODUCT_VERSION:"Api product version",RUNTIME_GROUP:"Runtime group",GATEWAY_SERVICE:"Gateway service",ROUTE:"Route",APPLICATION:"Application",STATUS_CODE:"Status code",STATUS_CODE_GROUPED:"Status code (grouped)",TIME:"Time",ORGANIZATION:"Organization",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99)",LatencyP95:"Response latency (p95)",LatencyP50:"Response latency (p50)",LatencyAverage:"Response latency (avg)",UpstreamLatencyP99:"Upstream latency (p99)",UpstreamLatencyP95:"Upstream latency (p95)",UpstreamLatencyP50:"Upstream latency (p50)",UpstreamLatencyAverage:"Upstream latency (avg)",KongLatencyP99:"Kong latency (p99)",KongLatencyP95:"Kong latency (p95)",KongLatencyP50:"Kong latency (p50)",KongLatencyAverage:"Kong latency (avg)",ResponseSizeP99:"Response size (p99)",ResponseSizeP95:"Response size (p95)",ResponseSizeP50:"Response size (p50)",RequestSizeP99:"Request size (p99)",RequestSizeP95:"Request size (p95)",RequestSizeP50:"Request size (p50)",SuccessfulRequests:"Successful requests",SUCCESS:"Successful requests",FailedRequests:"Failed requests",FAILURE:"Failed requests","5XX":"5xx","4XX":"4xx","3XX":"3xx","2XX":"2xx","1XX":"1xx",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency",RESPONSE_LATENCY_P95:"Response latency",RESPONSE_LATENCY_P50:"Response latency",RESPONSE_SIZE_P99:"Response size (p99)",RESPONSE_SIZE_P95:"Response size (p95)",RESPONSE_SIZE_P50:"Response size (p50)",REQUEST_SIZE_P99:"Request size (p99)",REQUEST_SIZE_P95:"Request size (p95)",REQUEST_SIZE_P50:"Request size (p50)",CONTROL_PLANE:"Control plane",____OTHER____:"Others",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)","threshold-warning":"Warning threshold: {value}","threshold-error":"Error threshold: {value}","thatreshold-neutral":"Alert threshold: {value}",api:"API",vulnerability_count:"Vulnerability count"},metricAxisTitles:{request_count:"Request count",requests_per_minute:"Requests per minute",latency_in:"Latency in {unit}",size_in:"Size in {unit}",response_latency_p99:"Response latency (p99) in {unit}",response_latency_p95:"Response latency (p95) in {unit}",response_latency_p50:"Response latency (p50) in {unit}",upstream_latency_p99:"Upstream latency (p99) in {unit}",upstream_latency_p95:"Upstream latency (p95) in {unit}",upstream_latency_p50:"Upstream latency (p50) in {unit}",kong_latency_p99:"Kong latency (p99) in {unit}",kong_latency_p95:"Kong latency (p95) in {unit}",kong_latency_p50:"Kong latency (p50) in {unit}",response_size_p99:"Response size (p99) in {unit}",response_size_p95:"Response size (p95) in {unit}",response_size_p50:"Response size (p50) in {unit}",request_size_p99:"Request size (p99) in {unit}",request_size_p95:"Request size (p95) in {unit}",request_size_p50:"Request size (p50) in {unit}",REQUEST_COUNT:"Request count",REQUEST_PER_MINUTE:"Requests per minute",RESPONSE_LATENCY_P99:"Response latency (p99) in {unit}",RESPONSE_LATENCY_P95:"Response latency (p95) in {unit}",RESPONSE_LATENCY_P50:"Response latency (p50) in {unit}",RESPONSE_SIZE_P99:"Response size (p99) in {unit}",RESPONSE_SIZE_P95:"Response size (p95) in {unit}",RESPONSE_SIZE_P50:"Response size (p50) in {unit}",REQUEST_SIZE_P99:"Request size (p99) in {unit}",REQUEST_SIZE_P95:"Request size (p95) in {unit}",REQUEST_SIZE_P50:"Request size (p50) in {unit}",TotalRequests:"Request count",RequestsPerMinute:"Requests per minute",LatencyP99:"Response latency (p99) in {unit}",LatencyP95:"Response latency (p95) in {unit}",LatencyP50:"Response latency (p50) in {unit}",LatencyAverage:"Response latency (avg) in {unit}",UpstreamLatencyP99:"Upstream latency (p99) in {unit}",UpstreamLatencyP95:"Upstream latency (p95) in {unit}",UpstreamLatencyP50:"Upstream latency (p50) in {unit}",UpstreamLatencyAverage:"Upstream latency (avg) in {unit}",KongLatencyP99:"Kong latency (p99) in {unit}",KongLatencyP95:"Kong latency (p95) in {unit}",KongLatencyP50:"Kong latency (p50) in {unit}",KongLatencyAverage:"Kong latency (avg) in {unit}",ResponseSizeP99:"Response size (p99) in {unit}",ResponseSizeP95:"Response size (p95) in {unit}",ResponseSizeP50:"Response size (p50) in {unit}",RequestSizeP99:"Request size (p99) in {unit}",RequestSizeP95:"Request size (p95) in {unit}",RequestSizeP50:"Request size (p50) in {unit}",ai_request_count:"Request count",total_tokens:"Total token count",prompt_tokens:"Prompt token count",completion_tokens:"Completion token count",cost:"Costs",llm_cache_embeddings_latency_average:"Embeddings latency (avg)",llm_cache_fetch_latency_average:"Fetch latency (avg)",llm_latency_average:"Llm latency (avg)",api:"API"},granularityAxisTitles:{tenSecondly:"@timestamp per 10 seconds",thirtySecondly:"@timestamp per 30 seconds",minutely:"@timestamp per minute",fiveMinutely:"@timestamp per 5 minutes",tenMinutely:"@timestamp per 10 minutes",thirtyMinutely:"@timestamp per 30 minutes",hourly:"@timestamp per hour",twoHourly:"@timestamp per 2 hours",twelveHourly:"@timestamp per 12 hours",daily:"@timestamp per day",weekly:"@timestamp per week"},topNTable:{nameLabel:"Name",defaultEmptyStateTitle:"No data to display",defaultErrorStateTitle:"Something went wrong",errors:{meta:"Error: response must contain 'meta'",display:"Error: 'display' response incorrectly formatted (must have at least one key)",metricNames:"Error: 'metricNames' response incorrectly formatted (must have at least one entry)"}},singleValue:{valueError:"Invalid configuration"},new_timerange_label:"Time range",sparkline_no_data:"No data",zoom_action_items:{zoom:"Zoom in",view_requests:"View requests",cancel:"Cancel",explore:"Explore"},zoom_time_range:{from:"From",to:"To"}};function Bm(){const n=zn.createI18n("en-us",Fm);return{i18n:n,i18nT:zn.i18nTComponent(n)}}/*!
|
|
2
2
|
* @kurkle/color v0.3.4
|
|
3
3
|
* https://github.com/kurkle/color#readme
|
|
4
4
|
* (c) 2024 Jukka Kurkela
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* https://www.chartjs.org
|
|
26
26
|
* (c) 2022 chartjs-adapter-date-fns Contributors
|
|
27
27
|
* Released under the MIT license
|
|
28
|
-
*/const OD={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Su._date.override({_id:"date-fns",formats:function(){return OD},parse:function(n,t){if(n===null||typeof n>"u")return null;const e=typeof n;return e==="number"||n instanceof Date?n=ct(n):e==="string"&&(typeof t=="string"?n=ew(n,t,new Date,this.options):n=oh(n,this.options)),Do(n)?n.getTime():null},format:function(n,t){return Fr(n,t,this.options)},add:function(n,t,e){switch(e){case"millisecond":return So(n,t);case"second":return K0(n,t);case"minute":return X0(n,t);case"hour":return j0(n,t);case"day":return Lr(n,t);case"week":return Z0(n,t);case"month":return Mo(n,t);case"quarter":return G0(n,t);case"year":return Q0(n,t);default:return n}},diff:function(n,t,e){switch(e){case"millisecond":return To(n,t);case"second":return a_(n,t);case"minute":return i_(n,t);case"hour":return n_(n,t);case"day":return Hd(n,t);case"week":return o_(n,t);case"month":return $d(n,t);case"quarter":return r_(n,t);case"year":return l_(n,t);default:return 0}},startOf:function(n,t,e){switch(t){case"second":return rw(n);case"minute":return sw(n);case"hour":return iw(n);case"day":return ko(n);case"week":return $e(n);case"isoWeek":return $e(n,{weekStartsOn:+e});case"month":return u_(n);case"quarter":return c_(n);case"year":return jd(n);default:return n}},endOf:function(n,t){switch(t){case"second":return p_(n);case"minute":return m_(n);case"hour":return h_(n);case"day":return Yd(n);case"week":return f_(n);case"month":return Vd(n);case"quarter":return g_(n);case"year":return d_(n);default:return n}}});const xm={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},PD={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...xm,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},AD=d.version[0]==="2"?(n,t)=>Object.assign(n,{attrs:t}):(n,t)=>Object.assign(n,t);function Ri(n){return d.isProxy(n)?d.toRaw(n):n}function RD(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n;return d.isProxy(t)?new Proxy(n,{}):n}function ID(n,t){const e=n.options;e&&t&&Object.assign(e,t)}function wm(n,t){n.labels=t}function vm(n,t,e){const i=[];n.datasets=t.map(s=>{const r=n.datasets.find(a=>a[e]===s[e]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function LD(n,t){const e={labels:[],datasets:[]};return wm(e,n.labels),vm(e,n.datasets,t),e}const ND=d.defineComponent({props:PD,setup(n,t){let{expose:e,slots:i}=t;const s=d.ref(null),r=d.shallowRef(null);e({chart:r});const a=()=>{if(!s.value)return;const{type:c,data:u,options:h,plugins:f,datasetIdKey:m}=n,g=LD(u,m),_=RD(g,u);r.value=new ye(s.value,{type:c,data:_,options:{...h},plugins:f})},o=()=>{const c=d.toRaw(r.value);c&&(n.destroyDelay>0?setTimeout(()=>{c.destroy(),r.value=null},n.destroyDelay):(c.destroy(),r.value=null))},l=c=>{c.update(n.updateMode)};return d.onMounted(a),d.onUnmounted(o),d.watch([()=>n.options,()=>n.data],(c,u)=>{let[h,f]=c,[m,g]=u;const _=d.toRaw(r.value);if(!_)return;let x=!1;if(h){const v=Ri(h),S=Ri(m);v&&v!==S&&(ID(_,v),x=!0)}if(f){const v=Ri(f.labels),S=Ri(g.labels),k=Ri(f.datasets),C=Ri(g.datasets);v!==S&&(wm(_.config.data,v),x=!0),k&&k!==C&&(vm(_.config.data,k,n.datasetIdKey),x=!0)}x&&d.nextTick(()=>{l(_)})},{deep:!0}),()=>d.h("canvas",{role:"img",ariaLabel:n.ariaLabel,ariaDescribedby:n.ariaDescribedby,ref:s},[d.h("p",{},[i.default?i.default():""])])}});function Al(n,t){return ye.register(t),d.defineComponent({props:xm,setup(e,i){let{expose:s}=i;const r=d.shallowRef(null),a=o=>{r.value=o==null?void 0:o.chart};return s({chart:r}),()=>d.h(ND,AD({ref:a},{type:n,...e}))}})}const Mm=Al("bar",is),Sm=Al("doughnut",nn),km=Al("line",ss),FD={class:"chart-container"},BD=d.defineComponent({__name:"DonutChart",props:{chartData:{},tooltipTitle:{},metricUnit:{default:""},legendPosition:{default:we.Bottom},legendValues:{default:void 0},syntheticsDataKey:{default:""},datasetColors:{default:()=>on},tooltipDimensionDisplay:{default:""},tooltipMetricDisplay:{default:""}},setup(n){const t=n,{translateUnit:e}=mt.useTranslatedUnits(),i=crypto.randomUUID(),s=crypto.randomUUID(),r=d.ref([]),a=d.useTemplateRef("chartParent"),o=d.reactive({showTooltip:!1,tooltipContext:"",metricDisplay:t.tooltipMetricDisplay,dimensionDisplay:t.tooltipDimensionDisplay,tooltipSeries:[],left:"",top:"",units:d.toRef(t,"metricUnit"),translateUnit:e,offsetX:0,offsetY:0,width:0,height:0,chartID:s,chartType:"donut",interactionMode:"idle"}),{tooltipAbsoluteLeft:l,tooltipAbsoluteTop:c}=mt.useTooltipAbsolutePosition(a,o),u={id:i,afterUpdate(S){r.value=S.options.plugins.legend.labels.generateLabels(S).map(k=>({...k,value:t.legendValues&&t.legendValues[k.text],hidden:!1}))}},h=d.computed(()=>[u]),f=d.computed(()=>[t.chartData.datasets.reduce((k,C)=>(k.labels.push(C.label),k.backgroundColor.push(C.backgroundColor),k.borderColor.push(Zh(C.backgroundColor,50)),k.data.push(C.data.reduce((A,O)=>A+O,0)),k),{labels:[],backgroundColor:[],borderColor:[],data:[]})]),m=d.computed(()=>({...t.chartData,datasets:f.value}));mt.useReportChartDataForSynthetics(d.toRef(t,"chartData"),d.toRef(t,"syntheticsDataKey"));const{options:g}=mt.useDonutChartOptions({tooltipState:o,legendID:i}),_=d.ref(),x=S=>({[we.Bottom]:"column",[we.Hidden]:"hidden"})[S],v=({width:S,height:k})=>{o.width=S,o.height=k};return(S,k)=>(d.openBlock(),d.createElementBlock("div",{ref:"chartParent",class:d.normalizeClass(["chart-parent",x(n.legendPosition)]),"data-testid":"donut-chart-parent"},[d.createElementVNode("div",FD,[d.createVNode(d.unref(Sm),{ref_key:"chartInstance",ref:_,"chart-id":d.unref(s),data:m.value,options:d.unref(g),plugins:h.value},null,8,["chart-id","data","options","plugins"]),(d.openBlock(),d.createBlock(d.Teleport,{to:"body"},[d.createVNode(ua,{"absolute-left":d.unref(l),"absolute-top":d.unref(c),state:o,"tooltip-title":n.tooltipTitle,unit:n.metricUnit,onDimensions:v},null,8,["absolute-left","absolute-top","state","tooltip-title","unit"])]))]),d.createVNode(El,{id:d.unref(i),"chart-instance":_.value,items:r.value,position:n.legendPosition},null,8,["id","chart-instance","items","position"])],2))}}),zD=Ce(BD,[["__scopeId","data-v-9503582a"]]),Rl=(n,t,e,i,s="#0275d8")=>{n.save(),n.beginPath(),n.moveTo(t,e),n.lineTo(t,i),n.lineWidth=1,n.strokeStyle=s,n.stroke(),n.restore()},fe={},HD=()=>{fe.x=void 0,fe.chart=void 0,fe.strategy=void 0,fe.group=void 0},WD=10;class Dm{constructor({brushGroup:t=void 0,brushStrategy:e=void 0,enableBrushing:i=!1}={}){P(this,"id","verticalLinePlugin");P(this,"_clickedSegment");P(this,"_pause",!1);P(this,"_useBrushingState",!1);P(this,"_brushStrategy");P(this,"_brushGroup");P(this,"_lastMouseBrushEvent",0);let s=!1;e==="group"&&(s=t!==void 0),this._useBrushingState=i&&s,this._brushStrategy=e,this._brushGroup=t}afterEvent(t,e){if(!this._useBrushingState)return;const{event:i}=e;(i.type==="mousemove"||i.type==="mouseout")&&requestAnimationFrame(s=>this.onMouseBrush(i.type,t,s))}onMouseBrush(t,e,i){if(t==="mousemove"&&i-this._lastMouseBrushEvent<WD)return;const s=()=>{fe.chart=e,fe.strategy=this._brushStrategy,fe.group=this._brushGroup;for(const r of Object.values(ye.instances))r!==e&&r.update("none")};t==="mousemove"?e.tooltip&&e.tooltip.getActiveElements()&&e.tooltip.getActiveElements().length&&(fe.x=e.tooltip.dataPoints[0].element.x,s()):t==="mouseout"&&(fe.x=void 0,s()),this._lastMouseBrushEvent=i}afterDatasetsDraw(t){if(this.isPaused)return;const e=t.tooltip&&t.tooltip.getActiveElements()&&t.tooltip.getActiveElements().length,i=t.ctx;if(this._clickedSegment){const{x:s}=this._clickedSegment.element;Rl(i,s,t.scales.y.top,t.scales.y.bottom)}else if(this._useBrushingState)this.drawByBrush(t);else if(e){const{x:s}=t.tooltip.dataPoints[0].element;Rl(i,s,t.scales.y.top,t.scales.y.bottom)}}drawByBrush(t){if(fe.x===void 0)return;const e=fe.chart===t?"#0275d8":"rgba(2, 117, 216, 0.3)";this._brushStrategy==="group"&&fe.group===this._brushGroup&&Rl(t.ctx,fe.x,t.scales.y.top,t.scales.y.bottom,e)}pause(){this._pause=!0}resume(){this._pause=!1}get isPaused(){return this._pause}set clickedSegment(t){this._clickedSegment=t}get clickedSegment(){return this._clickedSegment}destroyClickedSegment(){delete this._clickedSegment}beforeDestroy(t){if(this._clickedSegment&&this.destroyClickedSegment(),this._useBrushingState&&fe.chart===t){const e=fe.x!==void 0;if(HD(),e)for(const i of Object.values(ye.instances))i!==t&&i.update("none")}}}const YD=(n,t,e)=>{const i=n.ctx;i.save(),i.strokeStyle="rgba(95, 154, 255, 1)",i.lineWidth=2,i.beginPath(),i.moveTo(t,n.chartArea.top),i.lineTo(t,n.chartArea.bottom),i.moveTo(e,n.chartArea.top),i.lineTo(e,n.chartArea.bottom),i.stroke(),i.restore()},VD=(n,t,e)=>{const i=n.ctx;i.save(),i.fillStyle="rgba(143, 193, 255, 0.3)",i.fillRect(t,n.chartArea.top,e-t,n.chartArea.bottom-n.chartArea.top),i.restore()},Tm=(n,t,e)=>{const i=t.scales.x.getValueForPixel(e.startX),s=t.scales.x.getValueForPixel(e.endX);i&&s&&t.canvas.dispatchEvent(new CustomEvent(n,{detail:{xStart:Math.min(i,s),xEnd:Math.max(i,s)}}))};class $D{constructor(){P(this,"id","dragSelectPlugin");P(this,"_isDragging",!1);P(this,"_startX",0);P(this,"_endX",0);P(this,"_dragTimeout");P(this,"_clearSelectionArea",!0);P(this,"_chart",null);P(this,"_dragSelectHandlers")}get startX(){return this._startX}get endX(){return this._endX}beforeInit(t){this._chart=t;const e=t.canvas;let i=!1;const s=o=>{this._dragTimeout=window.setTimeout(()=>{const l=e.getBoundingClientRect();this._isDragging=!0,this._clearSelectionArea=!1,i=!0,this._startX=o.clientX-l.left},150)},r=o=>{const l=e.getBoundingClientRect();i&&this._isDragging&&(this._endX=o.clientX-l.left,Tm("dragSelectMove",t,this))},a=o=>{const l=e.getBoundingClientRect();clearTimeout(this._dragTimeout),i&&this._isDragging&&(this._endX=o.clientX-l.left,Tm("dragSelect",t,this),i=!1,this._isDragging=!1)};e.addEventListener("mousedown",s),e.addEventListener("mousemove",r),e.addEventListener("mouseup",a),this._dragSelectHandlers={onMouseDown:s,onMouseMove:r,onMouseUp:a}}beforeDestroy(t){const e=t.canvas;if(this._dragSelectHandlers){const{onMouseDown:i,onMouseMove:s,onMouseUp:r}=this._dragSelectHandlers;e.removeEventListener("mousedown",i),e.removeEventListener("mousemove",s),e.removeEventListener("mouseup",r)}this._isDragging=!1,this._dragTimeout&&clearTimeout(this._dragTimeout)}afterDatasetsDraw(t){(this._isDragging||!this._clearSelectionArea)&&(VD(t,this._startX,this._endX),YD(t,this._startX,this._endX))}clearSelectionArea(){this._clearSelectionArea=!0,this._chart&&this._chart.update()}}const jD=["hidden","single","full"];var ii=(n=>(n.String="string",n.Number="number",n.Boolean="boolean",n.Object="object",n.Undefined="undefined",n))(ii||{});const UD=["donut","horizontal_bar","vertical_bar","timeseries_line","timeseries_bar"],qD=["gauge","top_n","single_value"],XD=20,GD="rgba(255, 171, 171, 0.4)",KD="rgba(255, 196, 0, 0.2)",Cm=(n,t,e)=>{const i=t.y-n.y;if(i===0)return t.x;const s=(e-n.y)/i;return n.x+s*(t.x-n.x)},ZD=(n,t)=>{const e=[];return n.data.datasets.forEach(i=>{if(!n.getDatasetMeta(n.data.datasets.indexOf(i)).visible)return;const r=i.data;r!=null&&r.length&&t.filter(a=>a.highlightIntersections).forEach(a=>{const o=r.map(c=>({ts:c.x,aboveThreshold:c.y>=a.value}));let l=o[0].aboveThreshold?r[0].x:void 0;for(let c=1;c<o.length;c++)!o[c-1].aboveThreshold&&o[c].aboveThreshold?l=Cm(r[c-1],r[c],a.value):o[c-1].aboveThreshold&&!o[c].aboveThreshold&&l!==void 0&&(e.push({start:l,end:Cm(r[c-1],r[c],a.value),type:a.type}),l=void 0);l!==void 0&&e.push({start:l,end:o[o.length-1].ts,type:a.type})})}),e},QD=n=>{if(!n.length)return[];n.sort((e,i)=>e.type.localeCompare(i.type)||e.start-i.start);const t=[];for(const e of n){const i=t.findLast(({type:s})=>s===e.type);i&&e.start<=i.end?i.end=Math.max(i.end,e.end):t.push({...e})}return t};class JD{constructor(t){P(this,"id","thresholdPlugin");P(this,"_thresholds");P(this,"_mouseMoveHandler");this.i18n=t}_syncThresholds(t){var e,i;for(const s of Object.keys(t.threshold||{})){const r=(e=t.threshold)==null?void 0:e[s];r&&(this._thresholds={...this._thresholds,[s]:r.map(a=>({...a,hovered:!1}))})}if(this._thresholds)for(const s of Object.keys(this._thresholds))(i=t.threshold)!=null&&i[s]||delete this._thresholds[s]}get thresholds(){return this._thresholds}beforeUpdate(t,e,i){this._syncThresholds(i)}beforeInit(t,e,i){const s=t.canvas;this._syncThresholds(i);const r=a=>{var o;if(t){const l=a.clientY,c=t.scales.y,u=s.getBoundingClientRect(),h=c.getValueForPixel(l-u.top);if(h)for(const f of Object.keys(this._thresholds||{})){const m=(o=this._thresholds)==null?void 0:o[f];m&&m.forEach(g=>{g.hovered=Math.abs(g.value-h)<XD})}}};s.addEventListener("mousemove",r),this._mouseMoveHandler=r}afterDatasetsDraw(t,e){var s;const i=t.ctx;for(const r of Object.keys(this._thresholds||{})){const a=(s=this._thresholds)==null?void 0:s[r];if(a){a.forEach(c=>{const h=t.scales.y.getPixelForValue(c.value);i.save(),i.beginPath(),i.moveTo(t.chartArea.left,h),i.lineTo(t.chartArea.right,h),i.lineWidth=1,i.strokeStyle=Gr(c.type),i.setLineDash([5,5]),i.stroke(),i.restore();let f="";c.label?f=`${c.label}: ${c.value}`:c.type==="warning"?f=this.i18n.t("chartLabels.threshold-warning",{value:c.value}):c.type==="error"?f=this.i18n.t("chartLabels.threshold-error",{value:c.value}):f=this.i18n.t("chartLabels.thatreshold-neutral",{value:c.value}),c.hovered&&(i.save(),i.fillStyle=Gr(c.type),i.font=W1,i.fillText(f,t.chartArea.left,h-4),i.restore())});const o=ZD(t,a);QD(o).forEach(c=>{const u=t.scales.x.getPixelForValue(c.start),h=t.scales.x.getPixelForValue(c.end);i.save(),i.fillStyle=c.type==="error"?GD:KD,i.fillRect(u,t.chartArea.top,h-u,t.chartArea.bottom-t.chartArea.top),i.restore(),i.save(),i.beginPath(),i.moveTo(u,t.chartArea.bottom),i.lineTo(h,t.chartArea.bottom),i.lineWidth=2,i.strokeStyle=Gr(c.type),i.stroke(),i.restore()})}}}beforeDestroy(t){this._mouseMoveHandler&&t.canvas.removeEventListener("mousemove",this._mouseMoveHandler)}}const tT=Ce(d.defineComponent({__name:"TimeSeriesChart",props:{chartData:{default:void 0},type:{default:"timeseries_line"},fill:{type:Boolean,default:!1},tooltipTitle:{},metricUnit:{default:""},timeRangeMs:{default:void 0},granularity:{},stacked:{type:Boolean,default:!0},legendValues:{default:void 0},metricAxesTitle:{default:void 0},dimensionAxesTitle:{default:void 0},syntheticsDataKey:{default:""},chartLegendSortFn:{type:Function,default:(n,t)=>n.value&&t.value&&t.value.raw-n.value.raw},chartTooltipSortFn:{type:Function,default:(n,t)=>t.rawValue-n.rawValue},brush:{type:Boolean,default:!1},zoomActionItems:{default:void 0},tooltipMetricDisplay:{default:""},threshold:{default:void 0}},emits:["zoom-time-range","select-chart-range"],setup(n,{emit:t}){const e=n,i=t,{i18n:s}=mt.useI18n(),r=new Dm,a=new bm,o=new $D,l=new JD(s),{translateUnit:c}=mt.useTranslatedUnits(),u=d.ref(),h=crypto.randomUUID(),f=crypto.randomUUID(),m=d.ref([]),g=d.ref(),_=d.inject("legendPosition",we.Bottom),x=d.useTemplateRef("chartParent"),v=d.ref(void 0),S=d.ref(!1),k=d.reactive({showTooltip:!1,tooltipContext:0,metricDisplay:e.tooltipMetricDisplay,tooltipSeries:[],left:"",top:"",units:e.metricUnit,translateUnit:c,offsetX:0,offsetY:0,width:0,height:0,chartType:e.type,chartID:f,chartTooltipSortFn:e.chartTooltipSortFn,interactionMode:"idle"}),{tooltipAbsoluteLeft:C,tooltipAbsoluteTop:A}=mt.useTooltipAbsolutePosition(x,k),O={id:h,afterUpdate(z){m.value=Uh(z,e.legendValues,e.chartLegendSortFn)}},T=d.computed(()=>[O,a,...e.brush?[o]:[],...e.type==="timeseries_line"?[r]:[],...e.threshold?[l]:[]]),p=d.computed(()=>`line-${T.value.map(z=>z.id).join("-")}`),b=d.computed(()=>`bar-${T.value.map(z=>z.id).join("-")}`),M=d.computed(()=>e.chartData&&R1(e.chartData)),{options:E}=mt.useLineChartOptions({tooltipState:k,timeRangeMs:d.toRef(e,"timeRangeMs"),granularity:d.toRef(e,"granularity"),legendID:h,stacked:d.toRef(e,"stacked"),metricAxesTitle:d.toRef(e,"metricAxesTitle"),dimensionAxesTitle:d.toRef(e,"dimensionAxesTitle"),pointsWithoutHover:M,threshold:d.toRef(e,"threshold")});mt.useReportChartDataForSynthetics(d.toRef(e,"chartData"),d.toRef(e,"syntheticsDataKey"));const R=z=>({[we.Bottom]:"column",[we.Hidden]:"hidden"})[z],I=({width:z,height:j})=>{k.width=z,k.height=j},B=(z=!0)=>{k.interactionMode="idle",k.showTooltip=!1,o.clearSelectionArea(),a.isPaused&&a.resume(z),r.isPaused&&r.resume()},U=()=>{k.interactionMode="interactive"},J=()=>{var z,j;!u.value||!((j=(z=u.value.chart.tooltip)==null?void 0:z.dataPoints)!=null&&j.length)||(k.interactionMode==="interactive"?r.clickedSegment=u.value.chart.tooltip.dataPoints[0]:r.destroyClickedSegment())},$=()=>{if(S.value){S.value=!1;return}k.interactionMode!=="idle"?B():U(),J()};d.watch(()=>e.type,()=>{k.interactionMode="idle",k.showTooltip=!1,r.destroyClickedSegment()});const lt=z=>{z.preventDefault(),z.stopPropagation();const{xStart:j,xEnd:Y}=z.detail;j&&Y&&(v.value={start:new Date(j),end:new Date(Y),type:"absolute"},k.interactionMode="zoom-interactive",i("select-chart-range",v.value))},q=z=>{k.interactionMode="selecting-chart-area",S.value=!0,r.pause(),a.pause();const{xStart:j,xEnd:Y}=z.detail;j&&Y&&(v.value={start:new Date(j),end:new Date(Y),type:"absolute"})},K=z=>{if(!x.value||k.interactionMode==="idle")return;const j=z.target;j&&x.value.contains(j)||S.value||B(!1)};return d.watch(()=>{var z;return(z=u.value)==null?void 0:z.chart},()=>{var z;(z=u.value)!=null&&z.chart&&(u.value.chart.canvas.removeEventListener("dragSelect",lt),u.value.chart.canvas.removeEventListener("dragSelectMove",q),u.value.chart.canvas.addEventListener("dragSelect",lt),u.value.chart.canvas.addEventListener("dragSelectMove",q))}),d.onMounted(()=>{document.addEventListener("click",K,!0)}),d.onUnmounted(()=>{var z;(z=u.value)!=null&&z.chart&&(u.value.chart.canvas.removeEventListener("dragSelect",lt),u.value.chart.canvas.removeEventListener("dragSelectMove",q)),document.removeEventListener("click",K,!0)}),(z,j)=>(d.openBlock(),d.createElementBlock("div",{ref:"chartParent",class:d.normalizeClass(["chart-parent",R(d.unref(_))]),"data-testid":"line-chart-parent"},[d.createElementVNode("div",{class:"chart-container",onClick:j[0]||(j[0]=Y=>$())},[n.type==="timeseries_line"?(d.openBlock(),d.createBlock(d.unref(km),{key:p.value,ref_key:"chartInstance",ref:u,"chart-id":d.unref(f),class:"chart-canvas",data:n.chartData,"data-testid":"time-series-line-chart",options:d.unref(E),plugins:T.value},null,8,["chart-id","data","options","plugins"])):n.type==="timeseries_bar"?(d.openBlock(),d.createBlock(d.unref(Mm),{key:b.value,ref_key:"chartInstance",ref:u,"chart-id":d.unref(f),class:"chart-canvas",data:n.chartData,"data-testid":"time-series-bar-chart",options:d.unref(E),plugins:T.value},null,8,["chart-id","data","options","plugins"])):d.createCommentVNode("",!0)]),d.createVNode(ua,{ref_key:"tooltipElement",ref:g,"absolute-left":d.unref(C),"absolute-top":d.unref(A),"data-testid":"tooltip",granularity:n.granularity,state:k,"tooltip-title":n.tooltipTitle,"zoom-action-items":n.zoomActionItems,"zoom-time-range":v.value,onDimensions:I,onOnAction:j[1]||(j[1]=()=>B(!1))},null,8,["absolute-left","absolute-top","granularity","state","tooltip-title","zoom-action-items","zoom-time-range"]),d.createVNode(El,{id:d.unref(h),"chart-instance":u.value,"data-testid":"legend",items:m.value},null,8,["id","chart-instance","items"])],2))}}),[["__scopeId","data-v-0a32a7ca"]]),eT={key:0,class:"chart-truncation-warning","data-testid":"truncation-warning"},nT={class:"tooltip-content"},iT={key:2,class:"analytics-chart-parent"},sT=d.defineComponent({__name:"AnalyticsChart",props:{chartData:{},chartOptions:{},tooltipTitle:{default:""},emptyStateTitle:{default:""},emptyStateDescription:{default:""},legendPosition:{default:we.Bottom},syntheticsDataKey:{default:""},showLegendValues:{type:Boolean,default:!1},showAnnotations:{type:Boolean,default:!0},timeseriesZoom:{type:Boolean,default:!1},requestsLink:{default:void 0},exploreLink:{default:void 0}},emits:["zoom-time-range","select-chart-range"],setup(n,{emit:t}){const e=t,i=n,{i18n:s}=mt.useI18n(),r=d.computed(()=>_.value?mt.useExploreResultToTimeDataset({fill:i.chartOptions.stacked,colorPalette:i.chartOptions.chartDatasetColors||Kr},d.toRef(i,"chartData")).value:mt.useExploreResultToDatasets({fill:i.chartOptions.stacked,colorPalette:i.chartOptions.chartDatasetColors||Kr},d.toRef(i,"chartData")).value),a=d.computed(()=>i.timeseriesZoom||!!i.exploreLink||!!i.requestsLink),o=d.computed(()=>{var I;return(I=i.chartData)!=null&&I.meta?"start_ms"in i.chartData.meta?i.chartData.meta.end_ms-i.chartData.meta.start_ms:void 0:0}),l=d.computed(()=>{var I;return(I=i.chartData.meta)!=null&&I.metric_units?Object.values(i.chartData.meta.metric_units)[0]:""}),c=d.computed(()=>i.showLegendValues&&i.legendPosition!==we.Hidden),{legendValues:u}=mt.useChartLegendValues(r,i.chartOptions.type,l),h=d.computed(()=>{var I,B,U;return((U=(B=(I=i.chartData)==null?void 0:I.meta)==null?void 0:B.limit)==null?void 0:U.toString())||null}),f=d.computed(()=>{var I,B;return i.chartOptions.hideTruncationWarning?!1:((B=(I=i.chartData)==null?void 0:I.meta)==null?void 0:B.truncated)||!1}),m=s.t("limitedResultsShown",{maxReturned:h.value}),g=d.computed(()=>["vertical_bar","horizontal_bar"].includes(i.chartOptions.type)),_=d.computed(()=>["timeseries_bar","timeseries_line"].some(I=>I===i.chartOptions.type)),x=d.computed(()=>i.chartOptions.type==="donut"),v=d.computed(()=>i.chartOptions.type.includes("vertical")?"vertical":"horizontal"),S=d.computed(()=>{var U,J;if(!((U=i.chartData)!=null&&U.meta.metric_names)||!((J=i.chartData)!=null&&J.meta.metric_units))return;const I=i.chartData.meta.metric_names[0],B=i.chartData.meta.metric_units[I];if(i.chartData.meta.metric_names.length>1){if(I.includes("latency"))return s.t("metricAxisTitles.latency_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})});if(I.includes("size"))return s.t("metricAxisTitles.size_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})})}if(I)return s.te(`chartLabels.${I}`)?s.t(`chartLabels.${I}`):I}),k=d.computed(()=>{var U,J,$,lt;if((U=i.chartOptions)!=null&&U.metricAxesTitle)return(J=i.chartOptions)==null?void 0:J.metricAxesTitle;if(!(($=i.chartData)!=null&&$.meta.metric_names)||!((lt=i.chartData)!=null&<.meta.metric_units))return;const I=i.chartData.meta.metric_names[0],B=i.chartData.meta.metric_units[I];if(i.chartData.meta.metric_names.length>1){if(I.includes("latency"))return s.t("metricAxisTitles.latency_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})});if(I.includes("size"))return s.t("metricAxisTitles.size_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})})}return s.te(`metricAxisTitles.${I}`)&&s.te(`chartUnits.${B}`)?s.t(`metricAxisTitles.${I}`,{unit:s.t(`chartUnits.${B}`,{plural:"s"})})||void 0:I||void 0}),C=d.computed(()=>{var B;if((B=i.chartOptions)!=null&&B.dimensionAxesTitle)return i.chartOptions.dimensionAxesTitle;const I=_.value?"Time":Object.keys(i.chartData.meta.display||i.chartData.meta.metric_names)[0];if(I)return s.te(`chartLabels.${I}`)?s.t(`chartLabels.${I}`):I}),A=d.computed(()=>{const I=jo(Number(i.chartData.meta.granularity_ms));if(I)return s.te(`granularityAxisTitles.${I}`)?s.t(`granularityAxisTitles.${I}`):I}),O=d.computed(()=>i.emptyStateTitle||s.t("noDataAvailableTitle")),T=d.computed(()=>i.emptyStateDescription||s.t("noDataAvailableDescription")),p=d.computed(()=>_.value?I1(r.value):i.chartData&&i.chartData.meta&&i.chartData.data.length),b=d.computed(()=>i.chartData.meta.granularity_ms?jo(i.chartData.meta.granularity_ms)||"hourly":jo(new Date(i.chartData.data[1].timestamp).getTime()-new Date(i.chartData.data[0].timestamp).getTime())||"hourly"),M=d.computed(()=>i.chartOptions.chartLegendSortFn?i.chartOptions.chartLegendSortFn:(I,B)=>I.text===s.t("chartLabels.____OTHER____")?1:B.text===s.t("chartLabels.____OTHER____")?-1:!isNaN(parseInt(I.text,10))&&!isNaN(parseInt(B.text,10))?I.text<B.text?-1:1:I.value&&B.value?B.value.raw-I.value.raw:0),E=d.computed(()=>i.chartOptions.chartTooltipSortFn?i.chartOptions.chartTooltipSortFn:(I,B)=>I.label===s.t("chartLabels.____OTHER____")?1:B.label===s.t("chartLabels.____OTHER____")?-1:!isNaN(parseInt(I.label,10))&&!isNaN(parseInt(B.label,10))?I.label<B.label?-1:1:I.value&&B.value?B.rawValue-I.rawValue:0),R=d.computed(()=>[...i.timeseriesZoom?[{label:s.t("zoom_action_items.zoom"),key:"zoom-in",action:I=>e("zoom-time-range",I)}]:[],...i.exploreLink?[{label:s.t("zoom_action_items.explore"),key:"explore",href:i.exploreLink.href}]:[],...i.requestsLink?[{label:s.t("zoom_action_items.view_requests"),key:"view-requests",href:i.requestsLink.href}]:[]]);return d.provide("showLegendValues",c),d.provide("legendPosition",d.toRef(i,"legendPosition")),(I,B)=>{const U=d.resolveComponent("KTooltip"),J=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["analytics-chart-shell",{"show-values":c.value}])},[p.value&&f.value&&h.value?(d.openBlock(),d.createElementBlock("div",eT,[d.createVNode(U,{class:"tooltip","max-width":"500",placement:"right"},{content:d.withCtx(()=>[d.createElementVNode("div",nT,d.toDisplayString(d.unref(m)),1)]),default:d.withCtx(()=>[d.createVNode(d.unref(Qs.WarningIcon),{color:`var(--kui-color-text-warning, ${d.unref(B1)})`,size:d.unref(H1)},null,8,["color","size"])]),_:1})])):d.createCommentVNode("",!0),p.value?(d.openBlock(),d.createElementBlock("div",iT,[_.value?(d.openBlock(),d.createBlock(tT,{key:0,brush:a.value,"chart-data":r.value,"chart-legend-sort-fn":M.value,"chart-tooltip-sort-fn":E.value,"dimension-axes-title":A.value,fill:n.chartOptions.stacked,granularity:b.value,"legend-values":d.unref(u),"metric-axes-title":k.value,"metric-unit":l.value,stacked:n.chartOptions.stacked,"synthetics-data-key":n.syntheticsDataKey,threshold:n.chartOptions.threshold,"time-range-ms":o.value,"tooltip-metric-display":S.value,"tooltip-title":n.tooltipTitle,type:n.chartOptions.type,"zoom-action-items":R.value,onSelectChartRange:B[0]||(B[0]=$=>e("select-chart-range",$)),onZoomTimeRange:B[1]||(B[1]=$=>e("zoom-time-range",$))},null,8,["brush","chart-data","chart-legend-sort-fn","chart-tooltip-sort-fn","dimension-axes-title","fill","granularity","legend-values","metric-axes-title","metric-unit","stacked","synthetics-data-key","threshold","time-range-ms","tooltip-metric-display","tooltip-title","type","zoom-action-items"])):g.value?(d.openBlock(),d.createBlock(ED,{key:1,annotations:n.showAnnotations,"chart-data":r.value,"chart-legend-sort-fn":M.value,"chart-tooltip-sort-fn":E.value,"data-testid":"bar-chart-container","dimension-axes-title":C.value,"legend-values":d.unref(u),"metric-axes-title":k.value,"metric-unit":l.value,orientation:v.value,stacked:n.chartOptions.stacked,"synthetics-data-key":n.syntheticsDataKey,"tooltip-metric-display":S.value,"tooltip-title":n.tooltipTitle},null,8,["annotations","chart-data","chart-legend-sort-fn","chart-tooltip-sort-fn","dimension-axes-title","legend-values","metric-axes-title","metric-unit","orientation","stacked","synthetics-data-key","tooltip-metric-display","tooltip-title"])):x.value?(d.openBlock(),d.createBlock(zD,{key:2,"chart-data":r.value,"dataset-colors":n.chartOptions.chartDatasetColors||d.unref(Kr),"legend-position":n.legendPosition,"legend-values":d.unref(u),"metric-unit":l.value,"synthetics-data-key":n.syntheticsDataKey,"tooltip-dimension-display":C.value,"tooltip-metric-display":S.value,"tooltip-title":n.tooltipTitle},null,8,["chart-data","dataset-colors","legend-position","legend-values","metric-unit","synthetics-data-key","tooltip-dimension-display","tooltip-metric-display","tooltip-title"])):d.createCommentVNode("",!0)])):(d.openBlock(),d.createBlock(J,{key:1,"action-button-visible":!1,class:"chart-empty-state","data-testid":"no-data-in-report"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(O.value),1)]),default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(T.value),1)]),_:1}))],2)}}}),rT=Ce(sT,[["__scopeId","data-v-b2eeb763"]]),aT={class:"chart-parent","data-testid":"gauge-chart-parent"},oT={class:"chart-totals-flex"},lT={key:1,class:"metric-small","data-testid":"gauge-chart-total"},cT=Ce(d.defineComponent({__name:"GaugeChart",props:{chartData:{type:Object,required:!1,default:null},metricDisplay:{type:String,required:!1,default:"hidden"},numerator:{type:Number,required:!1,default:0},syntheticsDataKey:{type:String,required:!1,default:""},datasetColors:{type:Object,required:!1,default:on},height:{type:String,required:!1,default:"400px",validator:n=>/(\d *)(px|%)/.test(n)},width:{type:String,required:!1,default:"100%",validator:n=>/(\d *)(px|%)/.test(n)}},setup(n){const t=n,{i18n:e}=mt.useI18n(),i=d.ref(Pl()),s=d.computed(()=>[t.chartData.datasets.reduce((g,_)=>(g.labels.push(_.label),g.borderColor.push(_.backgroundColor),g.backgroundColor.push(_.backgroundColor),g.data.push(_.data.reduce((x,v)=>x+v,0)),g),{labels:[],backgroundColor:[],borderColor:[],data:[]})]),r=d.computed(()=>({...t.chartData,datasets:s.value}));mt.useReportChartDataForSynthetics(d.toRef(t,"chartData"),d.toRef(t,"syntheticsDataKey"));const a={responsive:!0,maintainAspectRatio:!0,cutout:"78%",circumference:"200",rotation:"260",plugins:{legend:{display:!1}}},o=d.ref(),l=d.computed(()=>{var m;return Qr((m=s==null?void 0:s.value[0])==null?void 0:m.data[t.numerator],{capital:!0})}),c=d.computed(()=>{var m,g;return Qr(((m=s==null?void 0:s.value[0])==null?void 0:m.data[0])+((g=s==null?void 0:s.value[0])==null?void 0:g.data[1]),{capital:!0})}),u=d.computed(()=>{var m;return`color: ${(m=s==null?void 0:s.value[0])==null?void 0:m.backgroundColor[t.numerator]}`}),h=d.computed(()=>["full","single"].includes(t.metricDisplay)),f=d.computed(()=>t.metricDisplay==="full");return(m,g)=>(d.openBlock(),d.createElementBlock("div",aT,[d.createElementVNode("div",oT,[h.value?(d.openBlock(),d.createElementBlock("div",{key:0,class:"metric-large","data-testid":"gauge-chart-metric",style:d.normalizeStyle(u.value)},d.toDisplayString(l.value),5)):d.createCommentVNode("",!0),f.value?(d.openBlock(),d.createElementBlock("div",lT,d.toDisplayString(d.unref(e).t("total"))+": "+d.toDisplayString(c.value),1)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"chart-container",style:d.normalizeStyle({height:n.height,width:n.width})},[d.createVNode(d.unref(Sm),{ref_key:"chartInstance",ref:o,"chart-id":i.value,data:r.value,options:a},null,8,["chart-id","data","options"])],4)]))}}),[["__scopeId","data-v-32e7f9e0"]]),uT={class:"chart-parent","data-testid":"single-value-parent"},dT={key:1,class:"single-value-wrapper"},hT={class:"single-value","data-testid":"single-value-chart"},fT={key:0,class:"single-value-unit"},mT=Ce(d.defineComponent({__name:"SingleValue",props:{data:{type:Object,required:!0},decimalPoints:{type:Number,default:xf}},setup(n){const{i18n:t}=mt.useI18n(),{formatBytes:e}=ki({i18n:t}),i=n,s=d.computed(()=>i.data.data[0]),r=d.computed(()=>{var u,h;return(h=(u=i.data.meta)==null?void 0:u.metric_names)==null?void 0:h[0]}),a=d.computed(()=>{var h,f;const u=r.value?(f=(h=i.data.meta)==null?void 0:h.metric_units)==null?void 0:f[r.value]:void 0;if(u)return t.t(`chartUnits.${u}`,{plural:""})}),o=d.computed(()=>{var u;return r.value==="request_per_minute"||!!((u=r.value)!=null&&u.includes("_latency_"))}),l=d.computed(()=>!s.value||!r.value||typeof s.value.event[r.value]!="number"?null:s.value.event[r.value]),c=d.computed(()=>{var f;const u=l.value;if(u===null)return"";if((f=r.value)!=null&&f.includes("_size_"))return e(u);if(u>=1e9){const m=(u/1e9).toFixed(1);return m.endsWith(".0")?`${Math.floor(u/1e9)}B`:`${m}B`}if(u>=1e7){const m=(u/1e6).toFixed(1);return m.endsWith(".0")?`${Math.floor(u/1e6)}M`:`${m}M`}const h=i.decimalPoints&&typeof i.decimalPoints=="number"?i.decimalPoints:xf;return u.toLocaleString("en-US",{maximumFractionDigits:h})});return d.onMounted(()=>{var u,h;((h=(u=i.data)==null?void 0:u.data)==null?void 0:h.length)>1&&console.warn("SingleValue chart should only be used with a single data point. Data length:",i.data.data.length)}),(u,h)=>{const f=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",uT,[l.value===null?(d.openBlock(),d.createBlock(f,{key:0,class:"single-value-error","data-testid":"single-value-error","icon-variant":"error",title:d.unref(t).t("singleValue.valueError")},null,8,["title"])):(d.openBlock(),d.createElementBlock("div",dT,[d.createElementVNode("span",hT,d.toDisplayString(c.value),1),o.value?(d.openBlock(),d.createElementBlock("span",fT," "+d.toDisplayString(a.value),1)):d.createCommentVNode("",!0)]))])}}}),[["__scopeId","data-v-8fd9e5ef"]]),gT={class:"simple-chart-shell"},pT={key:1,class:"analytics-chart-parent"},yT=Ce(d.defineComponent({__name:"SimpleChart",props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,required:!0},emptyStateTitle:{type:String,required:!1,default:""},syntheticsDataKey:{type:String,required:!1,default:""},height:{type:String,required:!1,default:"400px",validator:n=>/(\d *)(px|%)/.test(n)},width:{type:String,required:!1,default:"100%",validator:n=>/(\d *)(px|%)/.test(n)}},setup(n){const t=n,{i18n:e}=mt.useI18n(),i=d.computed(()=>{var u;const c=mt.useExploreResultToDatasets({colorPalette:t.chartOptions.chartDatasetColors||on},d.toRef(t,"chartData")).value;return(u=t.chartOptions)!=null&&u.reverseDataset&&(c==null||c.datasets.reverse()),c}),s=d.computed(()=>{var c;return(c=t.chartData.meta)!=null&&c.metric_units?Object.values(t.chartData.meta.metric_units)[0]:""}),r=d.computed(()=>t.chartOptions.type==="gauge"),a=d.computed(()=>t.chartOptions.type==="single_value"),o=d.computed(()=>t.emptyStateTitle||e.t("noDataAvailableTitle")),l=d.computed(()=>{var u,h;const c=t.chartData&&t.chartData.meta&&t.chartData.data.length;if(a.value){const f=(h=(u=t.chartData.meta)==null?void 0:u.metric_names)==null?void 0:h[0];return c&&t.chartData.data[0].event[f]!==null}return c});return(c,u)=>{const h=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",gT,[l.value?(d.openBlock(),d.createElementBlock("div",pT,[r.value?(d.openBlock(),d.createBlock(cT,{key:0,"chart-data":i.value,"dataset-colors":n.chartOptions.chartDatasetColors,"is-simple":"","metric-display":n.chartOptions.metricDisplay,"metric-unit":s.value,numerator:n.chartOptions.numerator,"synthetics-data-key":n.syntheticsDataKey,width:n.width},null,8,["chart-data","dataset-colors","metric-display","metric-unit","numerator","synthetics-data-key","width"])):d.createCommentVNode("",!0),a.value?(d.openBlock(),d.createBlock(mT,{key:1,data:n.chartData,"decimal-points":n.chartOptions.decimalPoints},null,8,["data","decimal-points"])):d.createCommentVNode("",!0)])):(d.openBlock(),d.createBlock(h,{key:0,"action-button-visible":!0,class:"chart-empty-state","data-testid":"no-data-in-report"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1}))])}}}),[["__scopeId","data-v-471652c8"]]),bT={class:"top-n-card-title","data-testid":"top-n-card-title"},_T={class:"top-n-card-description","data-testid":"top-n-card-description"},xT={key:3,class:"top-n-table","data-testid":"top-n-table"},wT={class:"top-n-table-table"},vT={"data-testid":"top-n-table-header"},MT={class:"top-n-table-header-row"},ST={class:"table-header-label"},kT={class:"top-n-table-cell top-n-table-cell--name"},DT=["data-testid"],TT=["data-testid"],CT=["data-testid"],ET=Ce(d.defineComponent({__name:"TopNTable",props:{title:{default:""},description:{default:""},data:{},emptyStateTitle:{default:""},isLoading:{type:Boolean,default:!1},titleTag:{default:"h2"}},setup(n){const t=n,{i18n:e}=mt.useI18n(),{formatUnit:i}=ki({i18n:e}),s=d.computed(()=>t.data.data),r=d.computed(()=>{var O;return!!((O=s.value)!=null&&O.length)}),a=d.computed(()=>{var O,T;return(O=t.data.meta)!=null&&O.display&&((T=Object.keys(t.data.meta.display))==null?void 0:T[0])||""}),o=d.computed(()=>a.value?t.data.meta.display[a.value]:{}),l=d.computed(()=>{var O,T;return(T=(O=t.data.meta)==null?void 0:O.metric_names)!=null&&T.length?t.data.meta.metric_names:[]}),c=d.computed(()=>l.value[0]),u=d.computed(()=>c.value?e.t(`chartLabels.${c.value}`)||c.value:""),h=d.computed(()=>{const O=[{key:"name",label:e.t("topNTable.nameLabel")}];return c.value&&O.push({key:"value",label:u.value}),l.value.forEach((T,p)=>{if(p===0)return;const b=e.t(`chartLabels.${T}`)||T;O.push({key:T,label:b})}),O}),f=d.computed(()=>h.value.filter(O=>O.key!=="name")),m=O=>{const T=O.event;return String(T[a.value])},g=O=>{const T=m(O),p=o.value&&o.value[T];return p?p.name:"-"},_=O=>{const T=m(O),p=o.value&&o.value[T];return p?!!p.deleted:!1},x=(O,T)=>{var R,I;const p=O.event[T];if(p==null)return"–";const b=typeof p=="number"?p:Number(p);if(Number.isNaN(b))return"–";const M=((I=(R=t.data.meta)==null?void 0:R.metric_units)==null?void 0:I[T])||"count",E=["count","count/minute","token count"].includes(M);return i(b,M,{approximate:E,isBytes1024:!0,translateUnit:B=>A(B,b)})},v=O=>c.value?x(O,c.value):"–",S=d.computed(()=>{var O;return(O=s.value)!=null&&O.length?s.value.map(T=>{const b={id:m(T),name:g(T),deleted:_(T),original:T};return c.value&&(b.value=v(T)),l.value.forEach((M,E)=>{E!==0&&(b[M]=x(T,M))}),b}):[]}),k=d.computed(()=>{if(!r.value)return"";if(t.data.meta){if(a.value&&!Object.keys(o.value).length)return e.t("topNTable.errors.display");if(!c.value)return e.t("topNTable.errors.metricNames")}else return e.t("topNTable.errors.meta");return""}),C=(O,T)=>{const p=O[T];return typeof p=="string"?p:p==null?"–":String(p)},A=(O,T)=>{if(O==="count"||O==="requests")return"";const p=T===1?"":"s";return e.te(`chartUnits.${O}`)?e.t(`chartUnits.${O}`,{plural:p}):O};return(O,T)=>{const p=d.resolveComponent("KEmptyState"),b=d.resolveComponent("KSkeleton"),M=d.resolveComponent("KCard");return d.openBlock(),d.createBlock(M,{class:"kong-ui-public-top-n-table","title-tag":n.titleTag},d.createSlots({default:d.withCtx(()=>[k.value?(d.openBlock(),d.createBlock(p,{key:0,"action-button-visible":!1,"data-testid":"top-n-error-state","icon-variant":"error"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(e).t("topNTable.defaultErrorStateTitle")),1)]),default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.value),1)]),_:1})):n.isLoading?(d.openBlock(),d.createBlock(b,{key:1,"table-columns":2,type:"table"})):r.value?(d.openBlock(),d.createElementBlock("div",xT,[d.createElementVNode("table",wT,[d.createElementVNode("thead",vT,[d.createElementVNode("tr",MT,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(h.value,E=>(d.openBlock(),d.createElementBlock("th",{key:E.key,class:d.normalizeClass(["top-n-table-header-cell",{"top-n-table-header-cell-metric":E.key!=="name"}]),"data-testid":"top-n-table-header-column"},[d.createElementVNode("span",ST,d.toDisplayString(E.label),1)],2))),128))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(S.value,E=>(d.openBlock(),d.createElementBlock("tr",{key:E.id,class:"top-n-table-row"},[d.createElementVNode("td",kT,[d.createElementVNode("span",{"data-testid":`row-${E.id}`},[d.renderSlot(O.$slots,"name",{record:{id:E.id,name:E.name,deleted:E.deleted,dimension:a.value}},()=>[d.createTextVNode(d.toDisplayString(E.name),1)],!0)],8,DT)]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(f.value,R=>(d.openBlock(),d.createElementBlock("td",{key:R.key,class:"top-n-table-cell top-n-table-cell-metric"},[R.key==="value"?(d.openBlock(),d.createElementBlock("span",{key:0,"data-testid":`row-${E.id}`},d.toDisplayString(C(E,R.key)),9,TT)):(d.openBlock(),d.createElementBlock("span",{key:1,"data-testid":`row-${E.id}-${R.key}`},d.toDisplayString(C(E,R.key)),9,CT))]))),128))]))),128))])])])):(d.openBlock(),d.createBlock(p,{key:2,"action-button-visible":!1,"data-testid":"top-n-empty-state"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(n.emptyStateTitle||d.unref(e).t("topNTable.defaultEmptyStateTitle")),1)]),_:1}))]),_:2},[n.title?{name:"title",fn:d.withCtx(()=>[d.createElementVNode("span",bT,d.toDisplayString(n.title),1)]),key:"0"}:void 0,n.description?{name:"actions",fn:d.withCtx(()=>[d.createElementVNode("div",_T,d.toDisplayString(n.description),1)]),key:"1"}:void 0]),1032,["title-tag"])}}}),[["__scopeId","data-v-27e5b22c"]]);var da={exports:{}};da.exports,function(n,t){var e=200,i="Expected a function",s="__lodash_hash_undefined__",r=1,a=2,o=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",g="[object GeneratorFunction]",_="[object Map]",x="[object Number]",v="[object Object]",S="[object Promise]",k="[object RegExp]",C="[object Set]",A="[object String]",O="[object Symbol]",T="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",M="[object Float32Array]",E="[object Float64Array]",R="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",U="[object Uint8Array]",J="[object Uint8ClampedArray]",$="[object Uint16Array]",lt="[object Uint32Array]",q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,z=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,yt=/\\(\\)?/g,_t=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,H={};H[M]=H[E]=H[R]=H[I]=H[B]=H[U]=H[J]=H[$]=H[lt]=!0,H[l]=H[c]=H[p]=H[u]=H[b]=H[h]=H[f]=H[m]=H[_]=H[x]=H[v]=H[k]=H[C]=H[A]=H[T]=!1;var X=typeof xe=="object"&&xe&&xe.Object===Object&&xe,Z=typeof self=="object"&&self&&self.Object===Object&&self,Q=X||Z||Function("return this")(),G=t&&!t.nodeType&&t,gt=G&&!0&&n&&!n.nodeType&&n,vt=gt&>.exports===G,rt=vt&&X.process,bt=function(){try{return rt&&rt.binding("util")}catch{}}(),dt=bt&&bt.isTypedArray;function jt(y,D){for(var N=-1,W=y?y.length:0;++N<W;)if(D(y[N],N,y))return!0;return!1}function ot(y){return function(D){return D==null?void 0:D[y]}}function Mt(y,D){for(var N=-1,W=Array(y);++N<y;)W[N]=D(N);return W}function te(y){return function(D){return y(D)}}function oe(y,D){return y==null?void 0:y[D]}function Ut(y){var D=!1;if(y!=null&&typeof y.toString!="function")try{D=!!(y+"")}catch{}return D}function qe(y){var D=-1,N=Array(y.size);return y.forEach(function(W,ht){N[++D]=[ht,W]}),N}function Et(y,D){return function(N){return y(D(N))}}function ee(y){var D=-1,N=Array(y.size);return y.forEach(function(W){N[++D]=W}),N}var Ft=Array.prototype,qt=Function.prototype,ne=Object.prototype,Xe=Q["__core-js_shared__"],si=function(){var y=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),Fe=qt.toString,Bt=ne.hasOwnProperty,ve=ne.toString,ri=RegExp("^"+Fe.call(Bt).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ha=Q.Symbol,fa=Q.Uint8Array,Ws=ne.propertyIsEnumerable,ai=Ft.splice,Ys=Et(Object.keys,Object),oi=fn(Q,"DataView"),cn=fn(Q,"Map"),un=fn(Q,"Promise"),Vs=fn(Q,"Set"),$s=fn(Q,"WeakMap"),li=fn(Object,"create"),Nl=gn(oi),Fl=gn(cn),ma=gn(un),ga=gn(Vs),dn=gn($s),Ii=ha?ha.prototype:void 0,js=Ii?Ii.valueOf:void 0,pa=Ii?Ii.toString:void 0;function hn(y){var D=-1,N=y?y.length:0;for(this.clear();++D<N;){var W=y[D];this.set(W[0],W[1])}}function Bl(){this.__data__=li?li(null):{}}function Be(y){return this.has(y)&&delete this.__data__[y]}function zl(y){var D=this.__data__;if(li){var N=D[y];return N===s?void 0:N}return Bt.call(D,y)?D[y]:void 0}function Hl(y){var D=this.__data__;return li?D[y]!==void 0:Bt.call(D,y)}function Wl(y,D){var N=this.__data__;return N[y]=li&&D===void 0?s:D,this}hn.prototype.clear=Bl,hn.prototype.delete=Be,hn.prototype.get=zl,hn.prototype.has=Hl,hn.prototype.set=Wl;function ze(y){var D=-1,N=y?y.length:0;for(this.clear();++D<N;){var W=y[D];this.set(W[0],W[1])}}function Yl(){this.__data__=[]}function In(y){var D=this.__data__,N=Fi(D,y);if(N<0)return!1;var W=D.length-1;return N==W?D.pop():ai.call(D,N,1),!0}function Vl(y){var D=this.__data__,N=Fi(D,y);return N<0?void 0:D[N][1]}function $l(y){return Fi(this.__data__,y)>-1}function jl(y,D){var N=this.__data__,W=Fi(N,y);return W<0?N.push([y,D]):N[W][1]=D,this}ze.prototype.clear=Yl,ze.prototype.delete=In,ze.prototype.get=Vl,ze.prototype.has=$l,ze.prototype.set=jl;function He(y){var D=-1,N=y?y.length:0;for(this.clear();++D<N;){var W=y[D];this.set(W[0],W[1])}}function Ul(){this.__data__={hash:new hn,map:new(cn||ze),string:new hn}}function Ln(y){return Hi(this,y).delete(y)}function ql(y){return Hi(this,y).get(y)}function Xl(y){return Hi(this,y).has(y)}function Gl(y,D){return Hi(this,y).set(y,D),this}He.prototype.clear=Ul,He.prototype.delete=Ln,He.prototype.get=ql,He.prototype.has=Xl,He.prototype.set=Gl;function Li(y){var D=-1,N=y?y.length:0;for(this.__data__=new He;++D<N;)this.add(y[D])}function Kl(y){return this.__data__.set(y,s),this}function Zl(y){return this.__data__.has(y)}Li.prototype.add=Li.prototype.push=Kl,Li.prototype.has=Zl;function Re(y){this.__data__=new ze(y)}function Ni(){this.__data__=new ze}function Ql(y){return this.__data__.delete(y)}function Us(y){return this.__data__.get(y)}function Jl(y){return this.__data__.has(y)}function tc(y,D){var N=this.__data__;if(N instanceof ze){var W=N.__data__;if(!cn||W.length<e-1)return W.push([y,D]),this;N=this.__data__=new He(W)}return N.set(y,D),this}Re.prototype.clear=Ni,Re.prototype.delete=Ql,Re.prototype.get=Us,Re.prototype.has=Jl,Re.prototype.set=tc;function ec(y,D){var N=w(y)||Ma(y)?Mt(y.length,String):[],W=N.length,ht=!!W;for(var et in y)Bt.call(y,et)&&!(ht&&(et=="length"||Xs(et,W)))&&N.push(et);return N}function Fi(y,D){for(var N=y.length;N--;)if(va(y[N][0],D))return N;return-1}var nc=hc();function ic(y,D){return y&&nc(y,D,ui)}function Bi(y,D){D=Wi(D,y)?[D]:Ge(D);for(var N=0,W=D.length;y!=null&&N<W;)y=y[mn(D[N++])];return N&&N==W?y:void 0}function sc(y){return ve.call(y)}function rc(y,D){return y!=null&&D in Object(y)}function qs(y,D,N,W,ht){return y===D?!0:y==null||D==null||!Xt(y)&&!Me(D)?y!==y&&D!==D:ac(y,D,qs,N,W,ht)}function ac(y,D,N,W,ht,et){var pt=w(y),Gt=w(D),zt=c,ce=c;pt||(zt=le(y),zt=zt==l?v:zt),Gt||(ce=le(D),ce=ce==l?v:ce);var Se=zt==v&&!Ut(y),ke=ce==v&&!Ut(D),me=zt==ce;if(me&&!Se)return et||(et=new Re),pt||Sa(y)?_a(y,D,N,W,ht,et):fc(y,D,zt,N,W,ht,et);if(!(ht&a)){var Ie=Se&&Bt.call(y,"__wrapped__"),Le=ke&&Bt.call(D,"__wrapped__");if(Ie||Le){var Bn=Ie?y.value():y,pn=Le?D.value():D;return et||(et=new Re),N(Bn,pn,W,ht,et)}}return me?(et||(et=new Re),mc(y,D,N,W,ht,et)):!1}function oc(y,D,N,W){var ht=N.length,et=ht;if(y==null)return!et;for(y=Object(y);ht--;){var pt=N[ht];if(pt[2]?pt[1]!==y[pt[0]]:!(pt[0]in y))return!1}for(;++ht<et;){pt=N[ht];var Gt=pt[0],zt=y[Gt],ce=pt[1];if(pt[2]){if(zt===void 0&&!(Gt in y))return!1}else{var Se=new Re,ke;if(!(ke===void 0?qs(ce,zt,W,r|a,Se):ke))return!1}}return!0}function lc(y){if(!Xt(y)||xa(y))return!1;var D=tt(y)||Ut(y)?ri:_t;return D.test(gn(y))}function cc(y){return Me(y)&&Yt(y.length)&&!!H[ve.call(y)]}function ya(y){return typeof y=="function"?y:y==null?Yi:typeof y=="object"?w(y)?zi(y[0],y[1]):dc(y):wC(y)}function uc(y){if(!yc(y))return Ys(y);var D=[];for(var N in Object(y))Bt.call(y,N)&&N!="constructor"&&D.push(N);return D}function dc(y){var D=gc(y);return D.length==1&&D[0][2]?Ks(D[0][0],D[0][1]):function(N){return N===y||oc(N,y,D)}}function zi(y,D){return Wi(y)&&wa(D)?Ks(mn(y),D):function(N){var W=ka(N,y);return W===void 0&&W===D?Da(N,y):qs(D,W,void 0,r|a)}}function Nn(y){return function(D){return Bi(D,y)}}function ba(y){if(typeof y=="string")return y;if(Qt(y))return pa?pa.call(y):"";var D=y+"";return D=="0"&&1/y==-1/0?"-0":D}function Ge(y){return w(y)?y:bc(y)}function hc(y){return function(D,N,W){for(var ht=-1,et=Object(D),pt=W(D),Gt=pt.length;Gt--;){var zt=pt[++ht];if(N(et[zt],zt,et)===!1)break}return D}}function _a(y,D,N,W,ht,et){var pt=ht&a,Gt=y.length,zt=D.length;if(Gt!=zt&&!(pt&&zt>Gt))return!1;var ce=et.get(y);if(ce&&et.get(D))return ce==D;var Se=-1,ke=!0,me=ht&r?new Li:void 0;for(et.set(y,D),et.set(D,y);++Se<Gt;){var Ie=y[Se],Le=D[Se];if(W)var Bn=pt?W(Le,Ie,Se,D,y,et):W(Ie,Le,Se,y,D,et);if(Bn!==void 0){if(Bn)continue;ke=!1;break}if(me){if(!jt(D,function(pn,di){if(!me.has(di)&&(Ie===pn||N(Ie,pn,W,ht,et)))return me.add(di)})){ke=!1;break}}else if(!(Ie===Le||N(Ie,Le,W,ht,et))){ke=!1;break}}return et.delete(y),et.delete(D),ke}function fc(y,D,N,W,ht,et,pt){switch(N){case b:if(y.byteLength!=D.byteLength||y.byteOffset!=D.byteOffset)return!1;y=y.buffer,D=D.buffer;case p:return!(y.byteLength!=D.byteLength||!W(new fa(y),new fa(D)));case u:case h:case x:return va(+y,+D);case f:return y.name==D.name&&y.message==D.message;case k:case A:return y==D+"";case _:var Gt=qe;case C:var zt=et&a;if(Gt||(Gt=ee),y.size!=D.size&&!zt)return!1;var ce=pt.get(y);if(ce)return ce==D;et|=r,pt.set(y,D);var Se=_a(Gt(y),Gt(D),W,ht,et,pt);return pt.delete(y),Se;case O:if(js)return js.call(y)==js.call(D)}return!1}function mc(y,D,N,W,ht,et){var pt=ht&a,Gt=ui(y),zt=Gt.length,ce=ui(D),Se=ce.length;if(zt!=Se&&!pt)return!1;for(var ke=zt;ke--;){var me=Gt[ke];if(!(pt?me in D:Bt.call(D,me)))return!1}var Ie=et.get(y);if(Ie&&et.get(D))return Ie==D;var Le=!0;et.set(y,D),et.set(D,y);for(var Bn=pt;++ke<zt;){me=Gt[ke];var pn=y[me],di=D[me];if(W)var Nm=pt?W(di,pn,me,D,y,et):W(pn,di,me,y,D,et);if(!(Nm===void 0?pn===di||N(pn,di,W,ht,et):Nm)){Le=!1;break}Bn||(Bn=me=="constructor")}if(Le&&!Bn){var Ta=y.constructor,Ca=D.constructor;Ta!=Ca&&"constructor"in y&&"constructor"in D&&!(typeof Ta=="function"&&Ta instanceof Ta&&typeof Ca=="function"&&Ca instanceof Ca)&&(Le=!1)}return et.delete(y),et.delete(D),Le}function Hi(y,D){var N=y.__data__;return Gs(D)?N[typeof D=="string"?"string":"hash"]:N.map}function gc(y){for(var D=ui(y),N=D.length;N--;){var W=D[N],ht=y[W];D[N]=[W,ht,wa(ht)]}return D}function fn(y,D){var N=oe(y,D);return lc(N)?N:void 0}var le=sc;(oi&&le(new oi(new ArrayBuffer(1)))!=b||cn&&le(new cn)!=_||un&&le(un.resolve())!=S||Vs&&le(new Vs)!=C||$s&&le(new $s)!=T)&&(le=function(y){var D=ve.call(y),N=D==v?y.constructor:void 0,W=N?gn(N):void 0;if(W)switch(W){case Nl:return b;case Fl:return _;case ma:return S;case ga:return C;case dn:return T}return D});function pc(y,D,N){D=Wi(D,y)?[D]:Ge(D);for(var W,ht=-1,pt=D.length;++ht<pt;){var et=mn(D[ht]);if(!(W=y!=null&&N(y,et)))break;y=y[et]}if(W)return W;var pt=y?y.length:0;return!!pt&&Yt(pt)&&Xs(et,pt)&&(w(y)||Ma(y))}function Xs(y,D){return D=D??o,!!D&&(typeof y=="number"||V.test(y))&&y>-1&&y%1==0&&y<D}function Wi(y,D){if(w(y))return!1;var N=typeof y;return N=="number"||N=="symbol"||N=="boolean"||y==null||Qt(y)?!0:K.test(y)||!q.test(y)||D!=null&&y in Object(D)}function Gs(y){var D=typeof y;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?y!=="__proto__":y===null}function xa(y){return!!si&&si in y}function yc(y){var D=y&&y.constructor,N=typeof D=="function"&&D.prototype||ne;return y===N}function wa(y){return y===y&&!Xt(y)}function Ks(y,D){return function(N){return N==null?!1:N[y]===D&&(D!==void 0||y in Object(N))}}var bc=ci(function(y){y=Fn(y);var D=[];return z.test(y)&&D.push(""),y.replace(j,function(N,W,ht,et){D.push(ht?et.replace(yt,"$1"):W||N)}),D});function mn(y){if(typeof y=="string"||Qt(y))return y;var D=y+"";return D=="0"&&1/y==-1/0?"-0":D}function gn(y){if(y!=null){try{return Fe.call(y)}catch{}try{return y+""}catch{}}return""}function ci(y,D){if(typeof y!="function"||D&&typeof D!="function")throw new TypeError(i);var N=function(){var W=arguments,ht=D?D.apply(this,W):W[0],et=N.cache;if(et.has(ht))return et.get(ht);var pt=y.apply(this,W);return N.cache=et.set(ht,pt),pt};return N.cache=new(ci.Cache||He),N}ci.Cache=He;function va(y,D){return y===D||y!==y&&D!==D}function Ma(y){return F(y)&&Bt.call(y,"callee")&&(!Ws.call(y,"callee")||ve.call(y)==l)}var w=Array.isArray;function L(y){return y!=null&&Yt(y.length)&&!tt(y)}function F(y){return Me(y)&&L(y)}function tt(y){var D=Xt(y)?ve.call(y):"";return D==m||D==g}function Yt(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function Xt(y){var D=typeof y;return!!y&&(D=="object"||D=="function")}function Me(y){return!!y&&typeof y=="object"}function Qt(y){return typeof y=="symbol"||Me(y)&&ve.call(y)==O}var Sa=dt?te(dt):cc;function Fn(y){return y==null?"":ba(y)}function ka(y,D,N){var W=y==null?void 0:Bi(y,D);return W===void 0?N:W}function Da(y,D){return y!=null&&pc(y,D,rc)}function ui(y){return L(y)?ec(y):uc(y)}function Zs(y,D){var N={};return D=ya(D),ic(y,function(W,ht,et){N[D(W,ht,et)]=W}),N}function Yi(y){return y}function wC(y){return Wi(y)?ot(mn(y)):Nn(y)}n.exports=Zs}(da,da.exports);var OT=da.exports;const PT=hl(OT);var AT=9007199254740991,RT="[object Arguments]",IT="[object Function]",LT="[object GeneratorFunction]",NT="[object Symbol]",FT=typeof xe=="object"&&xe&&xe.Object===Object&&xe,BT=typeof self=="object"&&self&&self.Object===Object&&self,zT=FT||BT||Function("return this")();function HT(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function WT(n,t){for(var e=-1,i=n?n.length:0,s=Array(i);++e<i;)s[e]=t(n[e],e,n);return s}function YT(n,t){for(var e=-1,i=t.length,s=n.length;++e<i;)n[s+e]=t[e];return n}var Il=Object.prototype,VT=Il.hasOwnProperty,Ll=Il.toString,Em=zT.Symbol,$T=Il.propertyIsEnumerable,Om=Em?Em.isConcatSpreadable:void 0,Pm=Math.max;function jT(n,t,e,i,s){var r=-1,a=n.length;for(e||(e=GT),s||(s=[]);++r<a;){var o=n[r];e(o)?YT(s,o):s[s.length]=o}return s}function UT(n,t){return n=Object(n),qT(n,t,function(e,i){return i in n})}function qT(n,t,e){for(var i=-1,s=t.length,r={};++i<s;){var a=t[i],o=n[a];e(o,a)&&(r[a]=o)}return r}function XT(n,t){return t=Pm(t===void 0?n.length-1:t,0),function(){for(var e=arguments,i=-1,s=Pm(e.length-t,0),r=Array(s);++i<s;)r[i]=e[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=e[i];return a[t]=r,HT(n,this,a)}}function GT(n){return QT(n)||ZT(n)||!!(Om&&n&&n[Om])}function KT(n){if(typeof n=="string"||sC(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function ZT(n){return tC(n)&&VT.call(n,"callee")&&(!$T.call(n,"callee")||Ll.call(n)==RT)}var QT=Array.isArray;function JT(n){return n!=null&&nC(n.length)&&!eC(n)}function tC(n){return Am(n)&&JT(n)}function eC(n){var t=iC(n)?Ll.call(n):"";return t==IT||t==LT}function nC(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=AT}function iC(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function Am(n){return!!n&&typeof n=="object"}function sC(n){return typeof n=="symbol"||Am(n)&&Ll.call(n)==NT}var rC=XT(function(n,t){return n==null?{}:UT(n,WT(jT(t),KT))}),aC=rC;const oC=hl(aC);var Rm={exports:{}};(function(n,t){(function(e,i){i()})(xe,function(){function e(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function i(c,u,h){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,h)},f.onerror=function(){console.error("could not download file")},f.send()}function s(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function r(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof xe=="object"&&xe.global===xe?xe:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(c,u,h){var f=a.URL||a.webkitURL,m=document.createElement("a");u=u||c.name||"download",m.download=u,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?r(m):s(m.href)?i(c,u,h):r(m,m.target="_blank")):(m.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(m.href)},4e4),setTimeout(function(){r(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,h){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(e(c,h),u);else if(s(c))i(c,u,h);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){r(f)})}}:function(c,u,h,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return i(c,u,h);var m=c.type==="application/octet-stream",g=/constructor/i.test(a.HTMLElement)||a.safari,_=/CriOS\/[\d]+/.test(navigator.userAgent);if((_||m&&g||o)&&typeof FileReader<"u"){var x=new FileReader;x.onloadend=function(){var k=x.result;k=_?k:k.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=k:location=k,f=null},x.readAsDataURL(c)}else{var v=a.URL||a.webkitURL,S=v.createObjectURL(c);f?f.location=S:location.href=S,f=null,setTimeout(function(){v.revokeObjectURL(S)},4e4)}});a.saveAs=l.saveAs=l,n.exports=l})})(Rm);var lC=Rm.exports,Im={exports:{}};/* @license
|
|
28
|
+
*/const OD={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Su._date.override({_id:"date-fns",formats:function(){return OD},parse:function(n,t){if(n===null||typeof n>"u")return null;const e=typeof n;return e==="number"||n instanceof Date?n=ct(n):e==="string"&&(typeof t=="string"?n=ew(n,t,new Date,this.options):n=oh(n,this.options)),Do(n)?n.getTime():null},format:function(n,t){return Fr(n,t,this.options)},add:function(n,t,e){switch(e){case"millisecond":return So(n,t);case"second":return K0(n,t);case"minute":return X0(n,t);case"hour":return j0(n,t);case"day":return Lr(n,t);case"week":return Z0(n,t);case"month":return Mo(n,t);case"quarter":return G0(n,t);case"year":return Q0(n,t);default:return n}},diff:function(n,t,e){switch(e){case"millisecond":return To(n,t);case"second":return a_(n,t);case"minute":return i_(n,t);case"hour":return n_(n,t);case"day":return Hd(n,t);case"week":return o_(n,t);case"month":return $d(n,t);case"quarter":return r_(n,t);case"year":return l_(n,t);default:return 0}},startOf:function(n,t,e){switch(t){case"second":return rw(n);case"minute":return sw(n);case"hour":return iw(n);case"day":return ko(n);case"week":return $e(n);case"isoWeek":return $e(n,{weekStartsOn:+e});case"month":return u_(n);case"quarter":return c_(n);case"year":return jd(n);default:return n}},endOf:function(n,t){switch(t){case"second":return p_(n);case"minute":return m_(n);case"hour":return h_(n);case"day":return Yd(n);case"week":return f_(n);case"month":return Vd(n);case"quarter":return g_(n);case"year":return d_(n);default:return n}}});const xm={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},PD={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...xm,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},AD=d.version[0]==="2"?(n,t)=>Object.assign(n,{attrs:t}):(n,t)=>Object.assign(n,t);function Ri(n){return d.isProxy(n)?d.toRaw(n):n}function RD(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n;return d.isProxy(t)?new Proxy(n,{}):n}function ID(n,t){const e=n.options;e&&t&&Object.assign(e,t)}function wm(n,t){n.labels=t}function vm(n,t,e){const i=[];n.datasets=t.map(s=>{const r=n.datasets.find(a=>a[e]===s[e]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function LD(n,t){const e={labels:[],datasets:[]};return wm(e,n.labels),vm(e,n.datasets,t),e}const ND=d.defineComponent({props:PD,setup(n,t){let{expose:e,slots:i}=t;const s=d.ref(null),r=d.shallowRef(null);e({chart:r});const a=()=>{if(!s.value)return;const{type:c,data:u,options:h,plugins:f,datasetIdKey:m}=n,g=LD(u,m),_=RD(g,u);r.value=new ye(s.value,{type:c,data:_,options:{...h},plugins:f})},o=()=>{const c=d.toRaw(r.value);c&&(n.destroyDelay>0?setTimeout(()=>{c.destroy(),r.value=null},n.destroyDelay):(c.destroy(),r.value=null))},l=c=>{c.update(n.updateMode)};return d.onMounted(a),d.onUnmounted(o),d.watch([()=>n.options,()=>n.data],(c,u)=>{let[h,f]=c,[m,g]=u;const _=d.toRaw(r.value);if(!_)return;let x=!1;if(h){const v=Ri(h),S=Ri(m);v&&v!==S&&(ID(_,v),x=!0)}if(f){const v=Ri(f.labels),S=Ri(g.labels),k=Ri(f.datasets),C=Ri(g.datasets);v!==S&&(wm(_.config.data,v),x=!0),k&&k!==C&&(vm(_.config.data,k,n.datasetIdKey),x=!0)}x&&d.nextTick(()=>{l(_)})},{deep:!0}),()=>d.h("canvas",{role:"img",ariaLabel:n.ariaLabel,ariaDescribedby:n.ariaDescribedby,ref:s},[d.h("p",{},[i.default?i.default():""])])}});function Al(n,t){return ye.register(t),d.defineComponent({props:xm,setup(e,i){let{expose:s}=i;const r=d.shallowRef(null),a=o=>{r.value=o==null?void 0:o.chart};return s({chart:r}),()=>d.h(ND,AD({ref:a},{type:n,...e}))}})}const Mm=Al("bar",is),Sm=Al("doughnut",nn),km=Al("line",ss),FD={class:"chart-container"},BD=d.defineComponent({__name:"DonutChart",props:{chartData:{},tooltipTitle:{},metricUnit:{default:""},legendPosition:{default:we.Bottom},legendValues:{default:void 0},syntheticsDataKey:{default:""},datasetColors:{default:()=>on},tooltipDimensionDisplay:{default:""},tooltipMetricDisplay:{default:""}},setup(n){const t=n,{translateUnit:e}=mt.useTranslatedUnits(),i=crypto.randomUUID(),s=crypto.randomUUID(),r=d.ref([]),a=d.useTemplateRef("chartParent"),o=d.reactive({showTooltip:!1,tooltipContext:"",metricDisplay:t.tooltipMetricDisplay,dimensionDisplay:t.tooltipDimensionDisplay,tooltipSeries:[],left:"",top:"",units:d.toRef(t,"metricUnit"),translateUnit:e,offsetX:0,offsetY:0,width:0,height:0,chartID:s,chartType:"donut",interactionMode:"idle"}),{tooltipAbsoluteLeft:l,tooltipAbsoluteTop:c}=mt.useTooltipAbsolutePosition(a,o),u={id:i,afterUpdate(S){r.value=S.options.plugins.legend.labels.generateLabels(S).map(k=>({...k,value:t.legendValues&&t.legendValues[k.text],hidden:!1}))}},h=d.computed(()=>[u]),f=d.computed(()=>[t.chartData.datasets.reduce((k,C)=>(k.labels.push(C.label),k.backgroundColor.push(C.backgroundColor),k.borderColor.push(Zh(C.backgroundColor,50)),k.data.push(C.data.reduce((A,O)=>A+O,0)),k),{labels:[],backgroundColor:[],borderColor:[],data:[]})]),m=d.computed(()=>({...t.chartData,datasets:f.value}));mt.useReportChartDataForSynthetics(d.toRef(t,"chartData"),d.toRef(t,"syntheticsDataKey"));const{options:g}=mt.useDonutChartOptions({tooltipState:o,legendID:i}),_=d.ref(),x=S=>({[we.Bottom]:"column",[we.Hidden]:"hidden"})[S],v=({width:S,height:k})=>{o.width=S,o.height=k};return(S,k)=>(d.openBlock(),d.createElementBlock("div",{ref:"chartParent",class:d.normalizeClass(["chart-parent",x(n.legendPosition)]),"data-testid":"donut-chart-parent"},[d.createElementVNode("div",FD,[d.createVNode(d.unref(Sm),{ref_key:"chartInstance",ref:_,"chart-id":d.unref(s),data:m.value,options:d.unref(g),plugins:h.value},null,8,["chart-id","data","options","plugins"]),(d.openBlock(),d.createBlock(d.Teleport,{to:"body"},[d.createVNode(ua,{"absolute-left":d.unref(l),"absolute-top":d.unref(c),state:o,"tooltip-title":n.tooltipTitle,unit:n.metricUnit,onDimensions:v},null,8,["absolute-left","absolute-top","state","tooltip-title","unit"])]))]),d.createVNode(El,{id:d.unref(i),"chart-instance":_.value,items:r.value,position:n.legendPosition},null,8,["id","chart-instance","items","position"])],2))}}),zD=Ce(BD,[["__scopeId","data-v-9503582a"]]),Rl=(n,t,e,i,s="#0275d8")=>{n.save(),n.beginPath(),n.moveTo(t,e),n.lineTo(t,i),n.lineWidth=1,n.strokeStyle=s,n.stroke(),n.restore()},fe={},HD=()=>{fe.x=void 0,fe.chart=void 0,fe.strategy=void 0,fe.group=void 0},WD=10;class Dm{constructor({brushGroup:t=void 0,brushStrategy:e=void 0,enableBrushing:i=!1}={}){P(this,"id","verticalLinePlugin");P(this,"_clickedSegment");P(this,"_pause",!1);P(this,"_useBrushingState",!1);P(this,"_brushStrategy");P(this,"_brushGroup");P(this,"_lastMouseBrushEvent",0);let s=!1;e==="group"&&(s=t!==void 0),this._useBrushingState=i&&s,this._brushStrategy=e,this._brushGroup=t}afterEvent(t,e){if(!this._useBrushingState)return;const{event:i}=e;(i.type==="mousemove"||i.type==="mouseout")&&requestAnimationFrame(s=>this.onMouseBrush(i.type,t,s))}onMouseBrush(t,e,i){if(t==="mousemove"&&i-this._lastMouseBrushEvent<WD)return;const s=()=>{fe.chart=e,fe.strategy=this._brushStrategy,fe.group=this._brushGroup;for(const r of Object.values(ye.instances))r!==e&&r.update("none")};t==="mousemove"?e.tooltip&&e.tooltip.getActiveElements()&&e.tooltip.getActiveElements().length&&(fe.x=e.tooltip.dataPoints[0].element.x,s()):t==="mouseout"&&(fe.x=void 0,s()),this._lastMouseBrushEvent=i}afterDatasetsDraw(t){if(this.isPaused)return;const e=t.tooltip&&t.tooltip.getActiveElements()&&t.tooltip.getActiveElements().length,i=t.ctx;if(this._clickedSegment){const{x:s}=this._clickedSegment.element;Rl(i,s,t.scales.y.top,t.scales.y.bottom)}else if(this._useBrushingState)this.drawByBrush(t);else if(e){const{x:s}=t.tooltip.dataPoints[0].element;Rl(i,s,t.scales.y.top,t.scales.y.bottom)}}drawByBrush(t){if(fe.x===void 0)return;const e=fe.chart===t?"#0275d8":"rgba(2, 117, 216, 0.3)";this._brushStrategy==="group"&&fe.group===this._brushGroup&&Rl(t.ctx,fe.x,t.scales.y.top,t.scales.y.bottom,e)}pause(){this._pause=!0}resume(){this._pause=!1}get isPaused(){return this._pause}set clickedSegment(t){this._clickedSegment=t}get clickedSegment(){return this._clickedSegment}destroyClickedSegment(){delete this._clickedSegment}beforeDestroy(t){if(this._clickedSegment&&this.destroyClickedSegment(),this._useBrushingState&&fe.chart===t){const e=fe.x!==void 0;if(HD(),e)for(const i of Object.values(ye.instances))i!==t&&i.update("none")}}}const YD=(n,t,e)=>{const i=n.ctx;i.save(),i.strokeStyle="rgba(95, 154, 255, 1)",i.lineWidth=2,i.beginPath(),i.moveTo(t,n.chartArea.top),i.lineTo(t,n.chartArea.bottom),i.moveTo(e,n.chartArea.top),i.lineTo(e,n.chartArea.bottom),i.stroke(),i.restore()},VD=(n,t,e)=>{const i=n.ctx;i.save(),i.fillStyle="rgba(143, 193, 255, 0.3)",i.fillRect(t,n.chartArea.top,e-t,n.chartArea.bottom-n.chartArea.top),i.restore()},Tm=(n,t,e)=>{const i=t.scales.x.getValueForPixel(e.startX),s=t.scales.x.getValueForPixel(e.endX);i&&s&&t.canvas.dispatchEvent(new CustomEvent(n,{detail:{xStart:Math.min(i,s),xEnd:Math.max(i,s)}}))};class $D{constructor(){P(this,"id","dragSelectPlugin");P(this,"_isDragging",!1);P(this,"_startX",0);P(this,"_endX",0);P(this,"_dragTimeout");P(this,"_clearSelectionArea",!0);P(this,"_chart",null);P(this,"_dragSelectHandlers")}get startX(){return this._startX}get endX(){return this._endX}beforeInit(t){this._chart=t;const e=t.canvas;let i=!1;const s=o=>{this._dragTimeout=window.setTimeout(()=>{const l=e.getBoundingClientRect();this._isDragging=!0,this._clearSelectionArea=!1,i=!0,this._startX=o.clientX-l.left},150)},r=o=>{const l=e.getBoundingClientRect();i&&this._isDragging&&(this._endX=o.clientX-l.left,Tm("dragSelectMove",t,this))},a=o=>{const l=e.getBoundingClientRect();clearTimeout(this._dragTimeout),i&&this._isDragging&&(this._endX=o.clientX-l.left,Tm("dragSelect",t,this),i=!1,this._isDragging=!1)};e.addEventListener("mousedown",s),e.addEventListener("mousemove",r),e.addEventListener("mouseup",a),this._dragSelectHandlers={onMouseDown:s,onMouseMove:r,onMouseUp:a}}beforeDestroy(t){const e=t.canvas;if(this._dragSelectHandlers){const{onMouseDown:i,onMouseMove:s,onMouseUp:r}=this._dragSelectHandlers;e.removeEventListener("mousedown",i),e.removeEventListener("mousemove",s),e.removeEventListener("mouseup",r)}this._isDragging=!1,this._dragTimeout&&clearTimeout(this._dragTimeout)}afterDatasetsDraw(t){(this._isDragging||!this._clearSelectionArea)&&(VD(t,this._startX,this._endX),YD(t,this._startX,this._endX))}clearSelectionArea(){this._clearSelectionArea=!0,this._chart&&this._chart.update()}}const jD=["hidden","single","full"];var ii=(n=>(n.String="string",n.Number="number",n.Boolean="boolean",n.Object="object",n.Undefined="undefined",n))(ii||{});const UD=["donut","horizontal_bar","vertical_bar","timeseries_line","timeseries_bar"],qD=["gauge","top_n","single_value"],XD=20,GD="rgba(255, 171, 171, 0.4)",KD="rgba(255, 196, 0, 0.2)",Cm=(n,t,e)=>{const i=t.y-n.y;if(i===0)return t.x;const s=(e-n.y)/i;return n.x+s*(t.x-n.x)},ZD=(n,t)=>{const e=[];return n.data.datasets.forEach(i=>{if(!n.getDatasetMeta(n.data.datasets.indexOf(i)).visible)return;const r=i.data;r!=null&&r.length&&t.filter(a=>a.highlightIntersections).forEach(a=>{const o=r.map(c=>({ts:c.x,aboveThreshold:c.y>=a.value}));let l=o[0].aboveThreshold?r[0].x:void 0;for(let c=1;c<o.length;c++)!o[c-1].aboveThreshold&&o[c].aboveThreshold?l=Cm(r[c-1],r[c],a.value):o[c-1].aboveThreshold&&!o[c].aboveThreshold&&l!==void 0&&(e.push({start:l,end:Cm(r[c-1],r[c],a.value),type:a.type}),l=void 0);l!==void 0&&e.push({start:l,end:o[o.length-1].ts,type:a.type})})}),e},QD=n=>{if(!n.length)return[];n.sort((e,i)=>e.type.localeCompare(i.type)||e.start-i.start);const t=[];for(const e of n){const i=t.findLast(({type:s})=>s===e.type);i&&e.start<=i.end?i.end=Math.max(i.end,e.end):t.push({...e})}return t};class JD{constructor(t){P(this,"id","thresholdPlugin");P(this,"_thresholds");P(this,"_mouseMoveHandler");this.i18n=t}_syncThresholds(t){var e,i;for(const s of Object.keys(t.threshold||{})){const r=(e=t.threshold)==null?void 0:e[s];r&&(this._thresholds={...this._thresholds,[s]:r.map(a=>({...a,hovered:!1}))})}if(this._thresholds)for(const s of Object.keys(this._thresholds))(i=t.threshold)!=null&&i[s]||delete this._thresholds[s]}get thresholds(){return this._thresholds}beforeUpdate(t,e,i){this._syncThresholds(i)}beforeInit(t,e,i){const s=t.canvas;this._syncThresholds(i);const r=a=>{var o;if(t){const l=a.clientY,c=t.scales.y,u=s.getBoundingClientRect(),h=c.getValueForPixel(l-u.top);if(h)for(const f of Object.keys(this._thresholds||{})){const m=(o=this._thresholds)==null?void 0:o[f];m&&m.forEach(g=>{g.hovered=Math.abs(g.value-h)<XD})}}};s.addEventListener("mousemove",r),this._mouseMoveHandler=r}afterDatasetsDraw(t,e){var s;const i=t.ctx;for(const r of Object.keys(this._thresholds||{})){const a=(s=this._thresholds)==null?void 0:s[r];if(a){a.forEach(c=>{const h=t.scales.y.getPixelForValue(c.value);i.save(),i.beginPath(),i.moveTo(t.chartArea.left,h),i.lineTo(t.chartArea.right,h),i.lineWidth=1,i.strokeStyle=Gr(c.type),i.setLineDash([5,5]),i.stroke(),i.restore();let f="";c.label?f=`${c.label}: ${c.value}`:c.type==="warning"?f=this.i18n.t("chartLabels.threshold-warning",{value:c.value}):c.type==="error"?f=this.i18n.t("chartLabels.threshold-error",{value:c.value}):f=this.i18n.t("chartLabels.thatreshold-neutral",{value:c.value}),c.hovered&&(i.save(),i.fillStyle=Gr(c.type),i.font=W1,i.fillText(f,t.chartArea.left,h-4),i.restore())});const o=ZD(t,a);QD(o).forEach(c=>{const u=t.scales.x.getPixelForValue(c.start),h=t.scales.x.getPixelForValue(c.end);i.save(),i.fillStyle=c.type==="error"?GD:KD,i.fillRect(u,t.chartArea.top,h-u,t.chartArea.bottom-t.chartArea.top),i.restore(),i.save(),i.beginPath(),i.moveTo(u,t.chartArea.bottom),i.lineTo(h,t.chartArea.bottom),i.lineWidth=2,i.strokeStyle=Gr(c.type),i.stroke(),i.restore()})}}}beforeDestroy(t){this._mouseMoveHandler&&t.canvas.removeEventListener("mousemove",this._mouseMoveHandler)}}const tT=Ce(d.defineComponent({__name:"TimeSeriesChart",props:{chartData:{default:void 0},type:{default:"timeseries_line"},fill:{type:Boolean,default:!1},tooltipTitle:{},metricUnit:{default:""},timeRangeMs:{default:void 0},granularity:{},stacked:{type:Boolean,default:!0},legendValues:{default:void 0},metricAxesTitle:{default:void 0},dimensionAxesTitle:{default:void 0},syntheticsDataKey:{default:""},chartLegendSortFn:{type:Function,default:(n,t)=>n.value&&t.value&&t.value.raw-n.value.raw},chartTooltipSortFn:{type:Function,default:(n,t)=>t.rawValue-n.rawValue},brush:{type:Boolean,default:!1},zoomActionItems:{default:void 0},tooltipMetricDisplay:{default:""},threshold:{default:void 0}},emits:["zoom-time-range","select-chart-range"],setup(n,{emit:t}){const e=n,i=t,{i18n:s}=mt.useI18n(),r=new Dm,a=new bm,o=new $D,l=new JD(s),{translateUnit:c}=mt.useTranslatedUnits(),u=d.ref(),h=crypto.randomUUID(),f=crypto.randomUUID(),m=d.ref([]),g=d.ref(),_=d.inject("legendPosition",we.Bottom),x=d.useTemplateRef("chartParent"),v=d.ref(void 0),S=d.ref(!1),k=d.reactive({showTooltip:!1,tooltipContext:0,metricDisplay:e.tooltipMetricDisplay,tooltipSeries:[],left:"",top:"",units:e.metricUnit,translateUnit:c,offsetX:0,offsetY:0,width:0,height:0,chartType:e.type,chartID:f,chartTooltipSortFn:e.chartTooltipSortFn,interactionMode:"idle"}),{tooltipAbsoluteLeft:C,tooltipAbsoluteTop:A}=mt.useTooltipAbsolutePosition(x,k),O={id:h,afterUpdate(z){m.value=Uh(z,e.legendValues,e.chartLegendSortFn)}},T=d.computed(()=>[O,a,...e.brush?[o]:[],...e.type==="timeseries_line"?[r]:[],...e.threshold?[l]:[]]),p=d.computed(()=>`line-${T.value.map(z=>z.id).join("-")}`),b=d.computed(()=>`bar-${T.value.map(z=>z.id).join("-")}`),M=d.computed(()=>e.chartData&&R1(e.chartData)),{options:E}=mt.useLineChartOptions({tooltipState:k,timeRangeMs:d.toRef(e,"timeRangeMs"),granularity:d.toRef(e,"granularity"),legendID:h,stacked:d.toRef(e,"stacked"),metricAxesTitle:d.toRef(e,"metricAxesTitle"),dimensionAxesTitle:d.toRef(e,"dimensionAxesTitle"),pointsWithoutHover:M,threshold:d.toRef(e,"threshold")});mt.useReportChartDataForSynthetics(d.toRef(e,"chartData"),d.toRef(e,"syntheticsDataKey"));const R=z=>({[we.Bottom]:"column",[we.Hidden]:"hidden"})[z],I=({width:z,height:j})=>{k.width=z,k.height=j},B=(z=!0)=>{k.interactionMode="idle",k.showTooltip=!1,o.clearSelectionArea(),a.isPaused&&a.resume(z),r.isPaused&&r.resume()},U=()=>{k.interactionMode="interactive"},J=()=>{var z,j;!u.value||!((j=(z=u.value.chart.tooltip)==null?void 0:z.dataPoints)!=null&&j.length)||(k.interactionMode==="interactive"?r.clickedSegment=u.value.chart.tooltip.dataPoints[0]:r.destroyClickedSegment())},$=()=>{if(S.value){S.value=!1;return}k.interactionMode!=="idle"?B():U(),J()};d.watch(()=>e.type,()=>{k.interactionMode="idle",k.showTooltip=!1,r.destroyClickedSegment()});const lt=z=>{z.preventDefault(),z.stopPropagation();const{xStart:j,xEnd:Y}=z.detail;j&&Y&&(v.value={start:new Date(j),end:new Date(Y),type:"absolute"},k.interactionMode="zoom-interactive",i("select-chart-range",v.value))},q=z=>{k.interactionMode="selecting-chart-area",S.value=!0,r.pause(),a.pause();const{xStart:j,xEnd:Y}=z.detail;j&&Y&&(v.value={start:new Date(j),end:new Date(Y),type:"absolute"})},K=z=>{if(!x.value||k.interactionMode==="idle")return;const j=z.target;j&&x.value.contains(j)||S.value||B(!1)};return d.watch(()=>{var z;return(z=u.value)==null?void 0:z.chart},()=>{var z;(z=u.value)!=null&&z.chart&&(u.value.chart.canvas.removeEventListener("dragSelect",lt),u.value.chart.canvas.removeEventListener("dragSelectMove",q),u.value.chart.canvas.addEventListener("dragSelect",lt),u.value.chart.canvas.addEventListener("dragSelectMove",q))}),d.onMounted(()=>{document.addEventListener("click",K,!0)}),d.onUnmounted(()=>{var z;(z=u.value)!=null&&z.chart&&(u.value.chart.canvas.removeEventListener("dragSelect",lt),u.value.chart.canvas.removeEventListener("dragSelectMove",q)),document.removeEventListener("click",K,!0)}),(z,j)=>(d.openBlock(),d.createElementBlock("div",{ref:"chartParent",class:d.normalizeClass(["chart-parent",R(d.unref(_))]),"data-testid":"line-chart-parent"},[d.createElementVNode("div",{class:"chart-container",onClick:j[0]||(j[0]=Y=>$())},[n.type==="timeseries_line"?(d.openBlock(),d.createBlock(d.unref(km),{key:p.value,ref_key:"chartInstance",ref:u,"chart-id":d.unref(f),class:"chart-canvas",data:n.chartData,"data-testid":"time-series-line-chart",options:d.unref(E),plugins:T.value},null,8,["chart-id","data","options","plugins"])):n.type==="timeseries_bar"?(d.openBlock(),d.createBlock(d.unref(Mm),{key:b.value,ref_key:"chartInstance",ref:u,"chart-id":d.unref(f),class:"chart-canvas",data:n.chartData,"data-testid":"time-series-bar-chart",options:d.unref(E),plugins:T.value},null,8,["chart-id","data","options","plugins"])):d.createCommentVNode("",!0)]),d.createVNode(ua,{ref_key:"tooltipElement",ref:g,"absolute-left":d.unref(C),"absolute-top":d.unref(A),"data-testid":"tooltip",granularity:n.granularity,state:k,"tooltip-title":n.tooltipTitle,"zoom-action-items":n.zoomActionItems,"zoom-time-range":v.value,onDimensions:I,onOnAction:j[1]||(j[1]=()=>B(!1))},null,8,["absolute-left","absolute-top","granularity","state","tooltip-title","zoom-action-items","zoom-time-range"]),d.createVNode(El,{id:d.unref(h),"chart-instance":u.value,"data-testid":"legend",items:m.value},null,8,["id","chart-instance","items"])],2))}}),[["__scopeId","data-v-0a32a7ca"]]),eT={key:0,class:"chart-truncation-warning","data-testid":"truncation-warning"},nT={class:"tooltip-content"},iT={key:2,class:"analytics-chart-parent"},sT=d.defineComponent({__name:"AnalyticsChart",props:{chartData:{},chartOptions:{},tooltipTitle:{default:""},emptyStateTitle:{default:""},emptyStateDescription:{default:""},legendPosition:{default:we.Bottom},syntheticsDataKey:{default:""},showLegendValues:{type:Boolean,default:!1},showAnnotations:{type:Boolean,default:!0},timeseriesZoom:{type:Boolean,default:!1},requestsLink:{default:void 0},exploreLink:{default:void 0}},emits:["zoom-time-range","select-chart-range"],setup(n,{emit:t}){const e=t,i=n,{i18n:s}=mt.useI18n(),r=d.computed(()=>_.value?mt.useExploreResultToTimeDataset({fill:i.chartOptions.stacked,colorPalette:i.chartOptions.chartDatasetColors||Kr},d.toRef(i,"chartData")).value:mt.useExploreResultToDatasets({fill:i.chartOptions.stacked,colorPalette:i.chartOptions.chartDatasetColors||Kr},d.toRef(i,"chartData")).value),a=d.computed(()=>i.timeseriesZoom||!!i.exploreLink||!!i.requestsLink),o=d.computed(()=>{var I;return(I=i.chartData)!=null&&I.meta?"start_ms"in i.chartData.meta?i.chartData.meta.end_ms-i.chartData.meta.start_ms:void 0:0}),l=d.computed(()=>{var I;return(I=i.chartData.meta)!=null&&I.metric_units?Object.values(i.chartData.meta.metric_units)[0]:""}),c=d.computed(()=>i.showLegendValues&&i.legendPosition!==we.Hidden),{legendValues:u}=mt.useChartLegendValues(r,i.chartOptions.type,l),h=d.computed(()=>{var I,B,U;return((U=(B=(I=i.chartData)==null?void 0:I.meta)==null?void 0:B.limit)==null?void 0:U.toString())||null}),f=d.computed(()=>{var I,B;return i.chartOptions.hideTruncationWarning?!1:((B=(I=i.chartData)==null?void 0:I.meta)==null?void 0:B.truncated)||!1}),m=d.computed(()=>s.t("limitedResultsShown",{maxReturned:h.value})),g=d.computed(()=>["vertical_bar","horizontal_bar"].includes(i.chartOptions.type)),_=d.computed(()=>["timeseries_bar","timeseries_line"].some(I=>I===i.chartOptions.type)),x=d.computed(()=>i.chartOptions.type==="donut"),v=d.computed(()=>i.chartOptions.type.includes("vertical")?"vertical":"horizontal"),S=d.computed(()=>{var U,J;if(!((U=i.chartData)!=null&&U.meta.metric_names)||!((J=i.chartData)!=null&&J.meta.metric_units))return;const I=i.chartData.meta.metric_names[0],B=i.chartData.meta.metric_units[I];if(i.chartData.meta.metric_names.length>1){if(I.includes("latency"))return s.t("metricAxisTitles.latency_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})});if(I.includes("size"))return s.t("metricAxisTitles.size_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})})}if(I)return s.te(`chartLabels.${I}`)?s.t(`chartLabels.${I}`):I}),k=d.computed(()=>{var U,J,$,lt;if((U=i.chartOptions)!=null&&U.metricAxesTitle)return(J=i.chartOptions)==null?void 0:J.metricAxesTitle;if(!(($=i.chartData)!=null&&$.meta.metric_names)||!((lt=i.chartData)!=null&<.meta.metric_units))return;const I=i.chartData.meta.metric_names[0],B=i.chartData.meta.metric_units[I];if(i.chartData.meta.metric_names.length>1){if(I.includes("latency"))return s.t("metricAxisTitles.latency_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})});if(I.includes("size"))return s.t("metricAxisTitles.size_in",{unit:s.t(`chartUnits.${B}`,{plural:"s"})})}return s.te(`metricAxisTitles.${I}`)&&s.te(`chartUnits.${B}`)?s.t(`metricAxisTitles.${I}`,{unit:s.t(`chartUnits.${B}`,{plural:"s"})})||void 0:I||void 0}),C=d.computed(()=>{var B;if((B=i.chartOptions)!=null&&B.dimensionAxesTitle)return i.chartOptions.dimensionAxesTitle;const I=_.value?"Time":Object.keys(i.chartData.meta.display||i.chartData.meta.metric_names)[0];if(I)return s.te(`chartLabels.${I}`)?s.t(`chartLabels.${I}`):I}),A=d.computed(()=>{const I=jo(Number(i.chartData.meta.granularity_ms));if(I)return s.te(`granularityAxisTitles.${I}`)?s.t(`granularityAxisTitles.${I}`):I}),O=d.computed(()=>i.emptyStateTitle||s.t("noDataAvailableTitle")),T=d.computed(()=>i.emptyStateDescription||s.t("noDataAvailableDescription")),p=d.computed(()=>_.value?I1(r.value):i.chartData&&i.chartData.meta&&i.chartData.data.length),b=d.computed(()=>i.chartData.meta.granularity_ms?jo(i.chartData.meta.granularity_ms)||"hourly":jo(new Date(i.chartData.data[1].timestamp).getTime()-new Date(i.chartData.data[0].timestamp).getTime())||"hourly"),M=d.computed(()=>i.chartOptions.chartLegendSortFn?i.chartOptions.chartLegendSortFn:(I,B)=>I.text===s.t("chartLabels.____OTHER____")?1:B.text===s.t("chartLabels.____OTHER____")?-1:!isNaN(parseInt(I.text,10))&&!isNaN(parseInt(B.text,10))?I.text<B.text?-1:1:I.value&&B.value?B.value.raw-I.value.raw:0),E=d.computed(()=>i.chartOptions.chartTooltipSortFn?i.chartOptions.chartTooltipSortFn:(I,B)=>I.label===s.t("chartLabels.____OTHER____")?1:B.label===s.t("chartLabels.____OTHER____")?-1:!isNaN(parseInt(I.label,10))&&!isNaN(parseInt(B.label,10))?I.label<B.label?-1:1:I.value&&B.value?B.rawValue-I.rawValue:0),R=d.computed(()=>[...i.timeseriesZoom?[{label:s.t("zoom_action_items.zoom"),key:"zoom-in",action:I=>e("zoom-time-range",I)}]:[],...i.exploreLink?[{label:s.t("zoom_action_items.explore"),key:"explore",href:i.exploreLink.href}]:[],...i.requestsLink?[{label:s.t("zoom_action_items.view_requests"),key:"view-requests",href:i.requestsLink.href}]:[]]);return d.provide("showLegendValues",c),d.provide("legendPosition",d.toRef(i,"legendPosition")),(I,B)=>{const U=d.resolveComponent("KTooltip"),J=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["analytics-chart-shell",{"show-values":c.value}])},[p.value&&f.value&&h.value?(d.openBlock(),d.createElementBlock("div",eT,[d.createVNode(U,{class:"tooltip","max-width":"500",placement:"right"},{content:d.withCtx(()=>[d.createElementVNode("div",nT,d.toDisplayString(m.value),1)]),default:d.withCtx(()=>[d.createVNode(d.unref(Qs.WarningIcon),{color:`var(--kui-color-text-warning, ${d.unref(B1)})`,size:d.unref(H1)},null,8,["color","size"])]),_:1})])):d.createCommentVNode("",!0),p.value?(d.openBlock(),d.createElementBlock("div",iT,[_.value?(d.openBlock(),d.createBlock(tT,{key:0,brush:a.value,"chart-data":r.value,"chart-legend-sort-fn":M.value,"chart-tooltip-sort-fn":E.value,"dimension-axes-title":A.value,fill:n.chartOptions.stacked,granularity:b.value,"legend-values":d.unref(u),"metric-axes-title":k.value,"metric-unit":l.value,stacked:n.chartOptions.stacked,"synthetics-data-key":n.syntheticsDataKey,threshold:n.chartOptions.threshold,"time-range-ms":o.value,"tooltip-metric-display":S.value,"tooltip-title":n.tooltipTitle,type:n.chartOptions.type,"zoom-action-items":R.value,onSelectChartRange:B[0]||(B[0]=$=>e("select-chart-range",$)),onZoomTimeRange:B[1]||(B[1]=$=>e("zoom-time-range",$))},null,8,["brush","chart-data","chart-legend-sort-fn","chart-tooltip-sort-fn","dimension-axes-title","fill","granularity","legend-values","metric-axes-title","metric-unit","stacked","synthetics-data-key","threshold","time-range-ms","tooltip-metric-display","tooltip-title","type","zoom-action-items"])):g.value?(d.openBlock(),d.createBlock(ED,{key:1,annotations:n.showAnnotations,"chart-data":r.value,"chart-legend-sort-fn":M.value,"chart-tooltip-sort-fn":E.value,"data-testid":"bar-chart-container","dimension-axes-title":C.value,"legend-values":d.unref(u),"metric-axes-title":k.value,"metric-unit":l.value,orientation:v.value,stacked:n.chartOptions.stacked,"synthetics-data-key":n.syntheticsDataKey,"tooltip-metric-display":S.value,"tooltip-title":n.tooltipTitle},null,8,["annotations","chart-data","chart-legend-sort-fn","chart-tooltip-sort-fn","dimension-axes-title","legend-values","metric-axes-title","metric-unit","orientation","stacked","synthetics-data-key","tooltip-metric-display","tooltip-title"])):x.value?(d.openBlock(),d.createBlock(zD,{key:2,"chart-data":r.value,"dataset-colors":n.chartOptions.chartDatasetColors||d.unref(Kr),"legend-position":n.legendPosition,"legend-values":d.unref(u),"metric-unit":l.value,"synthetics-data-key":n.syntheticsDataKey,"tooltip-dimension-display":C.value,"tooltip-metric-display":S.value,"tooltip-title":n.tooltipTitle},null,8,["chart-data","dataset-colors","legend-position","legend-values","metric-unit","synthetics-data-key","tooltip-dimension-display","tooltip-metric-display","tooltip-title"])):d.createCommentVNode("",!0)])):(d.openBlock(),d.createBlock(J,{key:1,"action-button-visible":!1,class:"chart-empty-state","data-testid":"no-data-in-report"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(O.value),1)]),default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(T.value),1)]),_:1}))],2)}}}),rT=Ce(sT,[["__scopeId","data-v-de2b8f0e"]]),aT={class:"chart-parent","data-testid":"gauge-chart-parent"},oT={class:"chart-totals-flex"},lT={key:1,class:"metric-small","data-testid":"gauge-chart-total"},cT=Ce(d.defineComponent({__name:"GaugeChart",props:{chartData:{type:Object,required:!1,default:null},metricDisplay:{type:String,required:!1,default:"hidden"},numerator:{type:Number,required:!1,default:0},syntheticsDataKey:{type:String,required:!1,default:""},datasetColors:{type:Object,required:!1,default:on},height:{type:String,required:!1,default:"400px",validator:n=>/(\d *)(px|%)/.test(n)},width:{type:String,required:!1,default:"100%",validator:n=>/(\d *)(px|%)/.test(n)}},setup(n){const t=n,{i18n:e}=mt.useI18n(),i=d.ref(Pl()),s=d.computed(()=>[t.chartData.datasets.reduce((g,_)=>(g.labels.push(_.label),g.borderColor.push(_.backgroundColor),g.backgroundColor.push(_.backgroundColor),g.data.push(_.data.reduce((x,v)=>x+v,0)),g),{labels:[],backgroundColor:[],borderColor:[],data:[]})]),r=d.computed(()=>({...t.chartData,datasets:s.value}));mt.useReportChartDataForSynthetics(d.toRef(t,"chartData"),d.toRef(t,"syntheticsDataKey"));const a={responsive:!0,maintainAspectRatio:!0,cutout:"78%",circumference:"200",rotation:"260",plugins:{legend:{display:!1}}},o=d.ref(),l=d.computed(()=>{var m;return Qr((m=s==null?void 0:s.value[0])==null?void 0:m.data[t.numerator],{capital:!0})}),c=d.computed(()=>{var m,g;return Qr(((m=s==null?void 0:s.value[0])==null?void 0:m.data[0])+((g=s==null?void 0:s.value[0])==null?void 0:g.data[1]),{capital:!0})}),u=d.computed(()=>{var m;return`color: ${(m=s==null?void 0:s.value[0])==null?void 0:m.backgroundColor[t.numerator]}`}),h=d.computed(()=>["full","single"].includes(t.metricDisplay)),f=d.computed(()=>t.metricDisplay==="full");return(m,g)=>(d.openBlock(),d.createElementBlock("div",aT,[d.createElementVNode("div",oT,[h.value?(d.openBlock(),d.createElementBlock("div",{key:0,class:"metric-large","data-testid":"gauge-chart-metric",style:d.normalizeStyle(u.value)},d.toDisplayString(l.value),5)):d.createCommentVNode("",!0),f.value?(d.openBlock(),d.createElementBlock("div",lT,d.toDisplayString(d.unref(e).t("total"))+": "+d.toDisplayString(c.value),1)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"chart-container",style:d.normalizeStyle({height:n.height,width:n.width})},[d.createVNode(d.unref(Sm),{ref_key:"chartInstance",ref:o,"chart-id":i.value,data:r.value,options:a},null,8,["chart-id","data","options"])],4)]))}}),[["__scopeId","data-v-32e7f9e0"]]),uT={class:"chart-parent","data-testid":"single-value-parent"},dT={key:1,class:"single-value-wrapper"},hT={class:"single-value","data-testid":"single-value-chart"},fT={key:0,class:"single-value-unit"},mT=Ce(d.defineComponent({__name:"SingleValue",props:{data:{type:Object,required:!0},decimalPoints:{type:Number,default:xf}},setup(n){const{i18n:t}=mt.useI18n(),{formatBytes:e}=ki({i18n:t}),i=n,s=d.computed(()=>i.data.data[0]),r=d.computed(()=>{var u,h;return(h=(u=i.data.meta)==null?void 0:u.metric_names)==null?void 0:h[0]}),a=d.computed(()=>{var h,f;const u=r.value?(f=(h=i.data.meta)==null?void 0:h.metric_units)==null?void 0:f[r.value]:void 0;if(u)return t.t(`chartUnits.${u}`,{plural:""})}),o=d.computed(()=>{var u;return r.value==="request_per_minute"||!!((u=r.value)!=null&&u.includes("_latency_"))}),l=d.computed(()=>!s.value||!r.value||typeof s.value.event[r.value]!="number"?null:s.value.event[r.value]),c=d.computed(()=>{var f;const u=l.value;if(u===null)return"";if((f=r.value)!=null&&f.includes("_size_"))return e(u);if(u>=1e9){const m=(u/1e9).toFixed(1);return m.endsWith(".0")?`${Math.floor(u/1e9)}B`:`${m}B`}if(u>=1e7){const m=(u/1e6).toFixed(1);return m.endsWith(".0")?`${Math.floor(u/1e6)}M`:`${m}M`}const h=i.decimalPoints&&typeof i.decimalPoints=="number"?i.decimalPoints:xf;return u.toLocaleString("en-US",{maximumFractionDigits:h})});return d.onMounted(()=>{var u,h;((h=(u=i.data)==null?void 0:u.data)==null?void 0:h.length)>1&&console.warn("SingleValue chart should only be used with a single data point. Data length:",i.data.data.length)}),(u,h)=>{const f=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",uT,[l.value===null?(d.openBlock(),d.createBlock(f,{key:0,class:"single-value-error","data-testid":"single-value-error","icon-variant":"error",title:d.unref(t).t("singleValue.valueError")},null,8,["title"])):(d.openBlock(),d.createElementBlock("div",dT,[d.createElementVNode("span",hT,d.toDisplayString(c.value),1),o.value?(d.openBlock(),d.createElementBlock("span",fT," "+d.toDisplayString(a.value),1)):d.createCommentVNode("",!0)]))])}}}),[["__scopeId","data-v-8fd9e5ef"]]),gT={class:"simple-chart-shell"},pT={key:1,class:"analytics-chart-parent"},yT=Ce(d.defineComponent({__name:"SimpleChart",props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,required:!0},emptyStateTitle:{type:String,required:!1,default:""},syntheticsDataKey:{type:String,required:!1,default:""},height:{type:String,required:!1,default:"400px",validator:n=>/(\d *)(px|%)/.test(n)},width:{type:String,required:!1,default:"100%",validator:n=>/(\d *)(px|%)/.test(n)}},setup(n){const t=n,{i18n:e}=mt.useI18n(),i=d.computed(()=>{var u;const c=mt.useExploreResultToDatasets({colorPalette:t.chartOptions.chartDatasetColors||on},d.toRef(t,"chartData")).value;return(u=t.chartOptions)!=null&&u.reverseDataset&&(c==null||c.datasets.reverse()),c}),s=d.computed(()=>{var c;return(c=t.chartData.meta)!=null&&c.metric_units?Object.values(t.chartData.meta.metric_units)[0]:""}),r=d.computed(()=>t.chartOptions.type==="gauge"),a=d.computed(()=>t.chartOptions.type==="single_value"),o=d.computed(()=>t.emptyStateTitle||e.t("noDataAvailableTitle")),l=d.computed(()=>{var u,h;const c=t.chartData&&t.chartData.meta&&t.chartData.data.length;if(a.value){const f=(h=(u=t.chartData.meta)==null?void 0:u.metric_names)==null?void 0:h[0];return c&&t.chartData.data[0].event[f]!==null}return c});return(c,u)=>{const h=d.resolveComponent("KEmptyState");return d.openBlock(),d.createElementBlock("div",gT,[l.value?(d.openBlock(),d.createElementBlock("div",pT,[r.value?(d.openBlock(),d.createBlock(cT,{key:0,"chart-data":i.value,"dataset-colors":n.chartOptions.chartDatasetColors,"is-simple":"","metric-display":n.chartOptions.metricDisplay,"metric-unit":s.value,numerator:n.chartOptions.numerator,"synthetics-data-key":n.syntheticsDataKey,width:n.width},null,8,["chart-data","dataset-colors","metric-display","metric-unit","numerator","synthetics-data-key","width"])):d.createCommentVNode("",!0),a.value?(d.openBlock(),d.createBlock(mT,{key:1,data:n.chartData,"decimal-points":n.chartOptions.decimalPoints},null,8,["data","decimal-points"])):d.createCommentVNode("",!0)])):(d.openBlock(),d.createBlock(h,{key:0,"action-button-visible":!0,class:"chart-empty-state","data-testid":"no-data-in-report"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1}))])}}}),[["__scopeId","data-v-471652c8"]]),bT={class:"top-n-card-title","data-testid":"top-n-card-title"},_T={class:"top-n-card-description","data-testid":"top-n-card-description"},xT={key:3,class:"top-n-table","data-testid":"top-n-table"},wT={class:"top-n-table-table"},vT={"data-testid":"top-n-table-header"},MT={class:"top-n-table-header-row"},ST={class:"table-header-label"},kT={class:"top-n-table-cell top-n-table-cell--name"},DT=["data-testid"],TT=["data-testid"],CT=["data-testid"],ET=Ce(d.defineComponent({__name:"TopNTable",props:{title:{default:""},description:{default:""},data:{},emptyStateTitle:{default:""},isLoading:{type:Boolean,default:!1},titleTag:{default:"h2"}},setup(n){const t=n,{i18n:e}=mt.useI18n(),{formatUnit:i}=ki({i18n:e}),s=d.computed(()=>t.data.data),r=d.computed(()=>{var O;return!!((O=s.value)!=null&&O.length)}),a=d.computed(()=>{var O,T;return(O=t.data.meta)!=null&&O.display&&((T=Object.keys(t.data.meta.display))==null?void 0:T[0])||""}),o=d.computed(()=>a.value?t.data.meta.display[a.value]:{}),l=d.computed(()=>{var O,T;return(T=(O=t.data.meta)==null?void 0:O.metric_names)!=null&&T.length?t.data.meta.metric_names:[]}),c=d.computed(()=>l.value[0]),u=d.computed(()=>c.value?e.t(`chartLabels.${c.value}`)||c.value:""),h=d.computed(()=>{const O=[{key:"name",label:e.t("topNTable.nameLabel")}];return c.value&&O.push({key:"value",label:u.value}),l.value.forEach((T,p)=>{if(p===0)return;const b=e.t(`chartLabels.${T}`)||T;O.push({key:T,label:b})}),O}),f=d.computed(()=>h.value.filter(O=>O.key!=="name")),m=O=>{const T=O.event;return String(T[a.value])},g=O=>{const T=m(O),p=o.value&&o.value[T];return p?p.name:"-"},_=O=>{const T=m(O),p=o.value&&o.value[T];return p?!!p.deleted:!1},x=(O,T)=>{var R,I;const p=O.event[T];if(p==null)return"–";const b=typeof p=="number"?p:Number(p);if(Number.isNaN(b))return"–";const M=((I=(R=t.data.meta)==null?void 0:R.metric_units)==null?void 0:I[T])||"count",E=["count","count/minute","token count"].includes(M);return i(b,M,{approximate:E,isBytes1024:!0,translateUnit:B=>A(B,b)})},v=O=>c.value?x(O,c.value):"–",S=d.computed(()=>{var O;return(O=s.value)!=null&&O.length?s.value.map(T=>{const b={id:m(T),name:g(T),deleted:_(T),original:T};return c.value&&(b.value=v(T)),l.value.forEach((M,E)=>{E!==0&&(b[M]=x(T,M))}),b}):[]}),k=d.computed(()=>{if(!r.value)return"";if(t.data.meta){if(a.value&&!Object.keys(o.value).length)return e.t("topNTable.errors.display");if(!c.value)return e.t("topNTable.errors.metricNames")}else return e.t("topNTable.errors.meta");return""}),C=(O,T)=>{const p=O[T];return typeof p=="string"?p:p==null?"–":String(p)},A=(O,T)=>{if(O==="count"||O==="requests")return"";const p=T===1?"":"s";return e.te(`chartUnits.${O}`)?e.t(`chartUnits.${O}`,{plural:p}):O};return(O,T)=>{const p=d.resolveComponent("KEmptyState"),b=d.resolveComponent("KSkeleton"),M=d.resolveComponent("KCard");return d.openBlock(),d.createBlock(M,{class:"kong-ui-public-top-n-table","title-tag":n.titleTag},d.createSlots({default:d.withCtx(()=>[k.value?(d.openBlock(),d.createBlock(p,{key:0,"action-button-visible":!1,"data-testid":"top-n-error-state","icon-variant":"error"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(e).t("topNTable.defaultErrorStateTitle")),1)]),default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.value),1)]),_:1})):n.isLoading?(d.openBlock(),d.createBlock(b,{key:1,"table-columns":2,type:"table"})):r.value?(d.openBlock(),d.createElementBlock("div",xT,[d.createElementVNode("table",wT,[d.createElementVNode("thead",vT,[d.createElementVNode("tr",MT,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(h.value,E=>(d.openBlock(),d.createElementBlock("th",{key:E.key,class:d.normalizeClass(["top-n-table-header-cell",{"top-n-table-header-cell-metric":E.key!=="name"}]),"data-testid":"top-n-table-header-column"},[d.createElementVNode("span",ST,d.toDisplayString(E.label),1)],2))),128))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(S.value,E=>(d.openBlock(),d.createElementBlock("tr",{key:E.id,class:"top-n-table-row"},[d.createElementVNode("td",kT,[d.createElementVNode("span",{"data-testid":`row-${E.id}`},[d.renderSlot(O.$slots,"name",{record:{id:E.id,name:E.name,deleted:E.deleted,dimension:a.value}},()=>[d.createTextVNode(d.toDisplayString(E.name),1)],!0)],8,DT)]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(f.value,R=>(d.openBlock(),d.createElementBlock("td",{key:R.key,class:"top-n-table-cell top-n-table-cell-metric"},[R.key==="value"?(d.openBlock(),d.createElementBlock("span",{key:0,"data-testid":`row-${E.id}`},d.toDisplayString(C(E,R.key)),9,TT)):(d.openBlock(),d.createElementBlock("span",{key:1,"data-testid":`row-${E.id}-${R.key}`},d.toDisplayString(C(E,R.key)),9,CT))]))),128))]))),128))])])])):(d.openBlock(),d.createBlock(p,{key:2,"action-button-visible":!1,"data-testid":"top-n-empty-state"},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(n.emptyStateTitle||d.unref(e).t("topNTable.defaultEmptyStateTitle")),1)]),_:1}))]),_:2},[n.title?{name:"title",fn:d.withCtx(()=>[d.createElementVNode("span",bT,d.toDisplayString(n.title),1)]),key:"0"}:void 0,n.description?{name:"actions",fn:d.withCtx(()=>[d.createElementVNode("div",_T,d.toDisplayString(n.description),1)]),key:"1"}:void 0]),1032,["title-tag"])}}}),[["__scopeId","data-v-27e5b22c"]]);var da={exports:{}};da.exports,function(n,t){var e=200,i="Expected a function",s="__lodash_hash_undefined__",r=1,a=2,o=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Function]",g="[object GeneratorFunction]",_="[object Map]",x="[object Number]",v="[object Object]",S="[object Promise]",k="[object RegExp]",C="[object Set]",A="[object String]",O="[object Symbol]",T="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",M="[object Float32Array]",E="[object Float64Array]",R="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",U="[object Uint8Array]",J="[object Uint8ClampedArray]",$="[object Uint16Array]",lt="[object Uint32Array]",q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,z=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,yt=/\\(\\)?/g,_t=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,H={};H[M]=H[E]=H[R]=H[I]=H[B]=H[U]=H[J]=H[$]=H[lt]=!0,H[l]=H[c]=H[p]=H[u]=H[b]=H[h]=H[f]=H[m]=H[_]=H[x]=H[v]=H[k]=H[C]=H[A]=H[T]=!1;var X=typeof xe=="object"&&xe&&xe.Object===Object&&xe,Z=typeof self=="object"&&self&&self.Object===Object&&self,Q=X||Z||Function("return this")(),G=t&&!t.nodeType&&t,gt=G&&!0&&n&&!n.nodeType&&n,vt=gt&>.exports===G,rt=vt&&X.process,bt=function(){try{return rt&&rt.binding("util")}catch{}}(),dt=bt&&bt.isTypedArray;function jt(y,D){for(var N=-1,W=y?y.length:0;++N<W;)if(D(y[N],N,y))return!0;return!1}function ot(y){return function(D){return D==null?void 0:D[y]}}function Mt(y,D){for(var N=-1,W=Array(y);++N<y;)W[N]=D(N);return W}function te(y){return function(D){return y(D)}}function oe(y,D){return y==null?void 0:y[D]}function Ut(y){var D=!1;if(y!=null&&typeof y.toString!="function")try{D=!!(y+"")}catch{}return D}function qe(y){var D=-1,N=Array(y.size);return y.forEach(function(W,ht){N[++D]=[ht,W]}),N}function Et(y,D){return function(N){return y(D(N))}}function ee(y){var D=-1,N=Array(y.size);return y.forEach(function(W){N[++D]=W}),N}var Ft=Array.prototype,qt=Function.prototype,ne=Object.prototype,Xe=Q["__core-js_shared__"],si=function(){var y=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),Fe=qt.toString,Bt=ne.hasOwnProperty,ve=ne.toString,ri=RegExp("^"+Fe.call(Bt).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ha=Q.Symbol,fa=Q.Uint8Array,Ws=ne.propertyIsEnumerable,ai=Ft.splice,Ys=Et(Object.keys,Object),oi=fn(Q,"DataView"),cn=fn(Q,"Map"),un=fn(Q,"Promise"),Vs=fn(Q,"Set"),$s=fn(Q,"WeakMap"),li=fn(Object,"create"),Nl=gn(oi),Fl=gn(cn),ma=gn(un),ga=gn(Vs),dn=gn($s),Ii=ha?ha.prototype:void 0,js=Ii?Ii.valueOf:void 0,pa=Ii?Ii.toString:void 0;function hn(y){var D=-1,N=y?y.length:0;for(this.clear();++D<N;){var W=y[D];this.set(W[0],W[1])}}function Bl(){this.__data__=li?li(null):{}}function Be(y){return this.has(y)&&delete this.__data__[y]}function zl(y){var D=this.__data__;if(li){var N=D[y];return N===s?void 0:N}return Bt.call(D,y)?D[y]:void 0}function Hl(y){var D=this.__data__;return li?D[y]!==void 0:Bt.call(D,y)}function Wl(y,D){var N=this.__data__;return N[y]=li&&D===void 0?s:D,this}hn.prototype.clear=Bl,hn.prototype.delete=Be,hn.prototype.get=zl,hn.prototype.has=Hl,hn.prototype.set=Wl;function ze(y){var D=-1,N=y?y.length:0;for(this.clear();++D<N;){var W=y[D];this.set(W[0],W[1])}}function Yl(){this.__data__=[]}function In(y){var D=this.__data__,N=Fi(D,y);if(N<0)return!1;var W=D.length-1;return N==W?D.pop():ai.call(D,N,1),!0}function Vl(y){var D=this.__data__,N=Fi(D,y);return N<0?void 0:D[N][1]}function $l(y){return Fi(this.__data__,y)>-1}function jl(y,D){var N=this.__data__,W=Fi(N,y);return W<0?N.push([y,D]):N[W][1]=D,this}ze.prototype.clear=Yl,ze.prototype.delete=In,ze.prototype.get=Vl,ze.prototype.has=$l,ze.prototype.set=jl;function He(y){var D=-1,N=y?y.length:0;for(this.clear();++D<N;){var W=y[D];this.set(W[0],W[1])}}function Ul(){this.__data__={hash:new hn,map:new(cn||ze),string:new hn}}function Ln(y){return Hi(this,y).delete(y)}function ql(y){return Hi(this,y).get(y)}function Xl(y){return Hi(this,y).has(y)}function Gl(y,D){return Hi(this,y).set(y,D),this}He.prototype.clear=Ul,He.prototype.delete=Ln,He.prototype.get=ql,He.prototype.has=Xl,He.prototype.set=Gl;function Li(y){var D=-1,N=y?y.length:0;for(this.__data__=new He;++D<N;)this.add(y[D])}function Kl(y){return this.__data__.set(y,s),this}function Zl(y){return this.__data__.has(y)}Li.prototype.add=Li.prototype.push=Kl,Li.prototype.has=Zl;function Re(y){this.__data__=new ze(y)}function Ni(){this.__data__=new ze}function Ql(y){return this.__data__.delete(y)}function Us(y){return this.__data__.get(y)}function Jl(y){return this.__data__.has(y)}function tc(y,D){var N=this.__data__;if(N instanceof ze){var W=N.__data__;if(!cn||W.length<e-1)return W.push([y,D]),this;N=this.__data__=new He(W)}return N.set(y,D),this}Re.prototype.clear=Ni,Re.prototype.delete=Ql,Re.prototype.get=Us,Re.prototype.has=Jl,Re.prototype.set=tc;function ec(y,D){var N=w(y)||Ma(y)?Mt(y.length,String):[],W=N.length,ht=!!W;for(var et in y)Bt.call(y,et)&&!(ht&&(et=="length"||Xs(et,W)))&&N.push(et);return N}function Fi(y,D){for(var N=y.length;N--;)if(va(y[N][0],D))return N;return-1}var nc=hc();function ic(y,D){return y&&nc(y,D,ui)}function Bi(y,D){D=Wi(D,y)?[D]:Ge(D);for(var N=0,W=D.length;y!=null&&N<W;)y=y[mn(D[N++])];return N&&N==W?y:void 0}function sc(y){return ve.call(y)}function rc(y,D){return y!=null&&D in Object(y)}function qs(y,D,N,W,ht){return y===D?!0:y==null||D==null||!Xt(y)&&!Me(D)?y!==y&&D!==D:ac(y,D,qs,N,W,ht)}function ac(y,D,N,W,ht,et){var pt=w(y),Gt=w(D),zt=c,ce=c;pt||(zt=le(y),zt=zt==l?v:zt),Gt||(ce=le(D),ce=ce==l?v:ce);var Se=zt==v&&!Ut(y),ke=ce==v&&!Ut(D),me=zt==ce;if(me&&!Se)return et||(et=new Re),pt||Sa(y)?_a(y,D,N,W,ht,et):fc(y,D,zt,N,W,ht,et);if(!(ht&a)){var Ie=Se&&Bt.call(y,"__wrapped__"),Le=ke&&Bt.call(D,"__wrapped__");if(Ie||Le){var Bn=Ie?y.value():y,pn=Le?D.value():D;return et||(et=new Re),N(Bn,pn,W,ht,et)}}return me?(et||(et=new Re),mc(y,D,N,W,ht,et)):!1}function oc(y,D,N,W){var ht=N.length,et=ht;if(y==null)return!et;for(y=Object(y);ht--;){var pt=N[ht];if(pt[2]?pt[1]!==y[pt[0]]:!(pt[0]in y))return!1}for(;++ht<et;){pt=N[ht];var Gt=pt[0],zt=y[Gt],ce=pt[1];if(pt[2]){if(zt===void 0&&!(Gt in y))return!1}else{var Se=new Re,ke;if(!(ke===void 0?qs(ce,zt,W,r|a,Se):ke))return!1}}return!0}function lc(y){if(!Xt(y)||xa(y))return!1;var D=tt(y)||Ut(y)?ri:_t;return D.test(gn(y))}function cc(y){return Me(y)&&Yt(y.length)&&!!H[ve.call(y)]}function ya(y){return typeof y=="function"?y:y==null?Yi:typeof y=="object"?w(y)?zi(y[0],y[1]):dc(y):wC(y)}function uc(y){if(!yc(y))return Ys(y);var D=[];for(var N in Object(y))Bt.call(y,N)&&N!="constructor"&&D.push(N);return D}function dc(y){var D=gc(y);return D.length==1&&D[0][2]?Ks(D[0][0],D[0][1]):function(N){return N===y||oc(N,y,D)}}function zi(y,D){return Wi(y)&&wa(D)?Ks(mn(y),D):function(N){var W=ka(N,y);return W===void 0&&W===D?Da(N,y):qs(D,W,void 0,r|a)}}function Nn(y){return function(D){return Bi(D,y)}}function ba(y){if(typeof y=="string")return y;if(Qt(y))return pa?pa.call(y):"";var D=y+"";return D=="0"&&1/y==-1/0?"-0":D}function Ge(y){return w(y)?y:bc(y)}function hc(y){return function(D,N,W){for(var ht=-1,et=Object(D),pt=W(D),Gt=pt.length;Gt--;){var zt=pt[++ht];if(N(et[zt],zt,et)===!1)break}return D}}function _a(y,D,N,W,ht,et){var pt=ht&a,Gt=y.length,zt=D.length;if(Gt!=zt&&!(pt&&zt>Gt))return!1;var ce=et.get(y);if(ce&&et.get(D))return ce==D;var Se=-1,ke=!0,me=ht&r?new Li:void 0;for(et.set(y,D),et.set(D,y);++Se<Gt;){var Ie=y[Se],Le=D[Se];if(W)var Bn=pt?W(Le,Ie,Se,D,y,et):W(Ie,Le,Se,y,D,et);if(Bn!==void 0){if(Bn)continue;ke=!1;break}if(me){if(!jt(D,function(pn,di){if(!me.has(di)&&(Ie===pn||N(Ie,pn,W,ht,et)))return me.add(di)})){ke=!1;break}}else if(!(Ie===Le||N(Ie,Le,W,ht,et))){ke=!1;break}}return et.delete(y),et.delete(D),ke}function fc(y,D,N,W,ht,et,pt){switch(N){case b:if(y.byteLength!=D.byteLength||y.byteOffset!=D.byteOffset)return!1;y=y.buffer,D=D.buffer;case p:return!(y.byteLength!=D.byteLength||!W(new fa(y),new fa(D)));case u:case h:case x:return va(+y,+D);case f:return y.name==D.name&&y.message==D.message;case k:case A:return y==D+"";case _:var Gt=qe;case C:var zt=et&a;if(Gt||(Gt=ee),y.size!=D.size&&!zt)return!1;var ce=pt.get(y);if(ce)return ce==D;et|=r,pt.set(y,D);var Se=_a(Gt(y),Gt(D),W,ht,et,pt);return pt.delete(y),Se;case O:if(js)return js.call(y)==js.call(D)}return!1}function mc(y,D,N,W,ht,et){var pt=ht&a,Gt=ui(y),zt=Gt.length,ce=ui(D),Se=ce.length;if(zt!=Se&&!pt)return!1;for(var ke=zt;ke--;){var me=Gt[ke];if(!(pt?me in D:Bt.call(D,me)))return!1}var Ie=et.get(y);if(Ie&&et.get(D))return Ie==D;var Le=!0;et.set(y,D),et.set(D,y);for(var Bn=pt;++ke<zt;){me=Gt[ke];var pn=y[me],di=D[me];if(W)var Nm=pt?W(di,pn,me,D,y,et):W(pn,di,me,y,D,et);if(!(Nm===void 0?pn===di||N(pn,di,W,ht,et):Nm)){Le=!1;break}Bn||(Bn=me=="constructor")}if(Le&&!Bn){var Ta=y.constructor,Ca=D.constructor;Ta!=Ca&&"constructor"in y&&"constructor"in D&&!(typeof Ta=="function"&&Ta instanceof Ta&&typeof Ca=="function"&&Ca instanceof Ca)&&(Le=!1)}return et.delete(y),et.delete(D),Le}function Hi(y,D){var N=y.__data__;return Gs(D)?N[typeof D=="string"?"string":"hash"]:N.map}function gc(y){for(var D=ui(y),N=D.length;N--;){var W=D[N],ht=y[W];D[N]=[W,ht,wa(ht)]}return D}function fn(y,D){var N=oe(y,D);return lc(N)?N:void 0}var le=sc;(oi&&le(new oi(new ArrayBuffer(1)))!=b||cn&&le(new cn)!=_||un&&le(un.resolve())!=S||Vs&&le(new Vs)!=C||$s&&le(new $s)!=T)&&(le=function(y){var D=ve.call(y),N=D==v?y.constructor:void 0,W=N?gn(N):void 0;if(W)switch(W){case Nl:return b;case Fl:return _;case ma:return S;case ga:return C;case dn:return T}return D});function pc(y,D,N){D=Wi(D,y)?[D]:Ge(D);for(var W,ht=-1,pt=D.length;++ht<pt;){var et=mn(D[ht]);if(!(W=y!=null&&N(y,et)))break;y=y[et]}if(W)return W;var pt=y?y.length:0;return!!pt&&Yt(pt)&&Xs(et,pt)&&(w(y)||Ma(y))}function Xs(y,D){return D=D??o,!!D&&(typeof y=="number"||V.test(y))&&y>-1&&y%1==0&&y<D}function Wi(y,D){if(w(y))return!1;var N=typeof y;return N=="number"||N=="symbol"||N=="boolean"||y==null||Qt(y)?!0:K.test(y)||!q.test(y)||D!=null&&y in Object(D)}function Gs(y){var D=typeof y;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?y!=="__proto__":y===null}function xa(y){return!!si&&si in y}function yc(y){var D=y&&y.constructor,N=typeof D=="function"&&D.prototype||ne;return y===N}function wa(y){return y===y&&!Xt(y)}function Ks(y,D){return function(N){return N==null?!1:N[y]===D&&(D!==void 0||y in Object(N))}}var bc=ci(function(y){y=Fn(y);var D=[];return z.test(y)&&D.push(""),y.replace(j,function(N,W,ht,et){D.push(ht?et.replace(yt,"$1"):W||N)}),D});function mn(y){if(typeof y=="string"||Qt(y))return y;var D=y+"";return D=="0"&&1/y==-1/0?"-0":D}function gn(y){if(y!=null){try{return Fe.call(y)}catch{}try{return y+""}catch{}}return""}function ci(y,D){if(typeof y!="function"||D&&typeof D!="function")throw new TypeError(i);var N=function(){var W=arguments,ht=D?D.apply(this,W):W[0],et=N.cache;if(et.has(ht))return et.get(ht);var pt=y.apply(this,W);return N.cache=et.set(ht,pt),pt};return N.cache=new(ci.Cache||He),N}ci.Cache=He;function va(y,D){return y===D||y!==y&&D!==D}function Ma(y){return F(y)&&Bt.call(y,"callee")&&(!Ws.call(y,"callee")||ve.call(y)==l)}var w=Array.isArray;function L(y){return y!=null&&Yt(y.length)&&!tt(y)}function F(y){return Me(y)&&L(y)}function tt(y){var D=Xt(y)?ve.call(y):"";return D==m||D==g}function Yt(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function Xt(y){var D=typeof y;return!!y&&(D=="object"||D=="function")}function Me(y){return!!y&&typeof y=="object"}function Qt(y){return typeof y=="symbol"||Me(y)&&ve.call(y)==O}var Sa=dt?te(dt):cc;function Fn(y){return y==null?"":ba(y)}function ka(y,D,N){var W=y==null?void 0:Bi(y,D);return W===void 0?N:W}function Da(y,D){return y!=null&&pc(y,D,rc)}function ui(y){return L(y)?ec(y):uc(y)}function Zs(y,D){var N={};return D=ya(D),ic(y,function(W,ht,et){N[D(W,ht,et)]=W}),N}function Yi(y){return y}function wC(y){return Wi(y)?ot(mn(y)):Nn(y)}n.exports=Zs}(da,da.exports);var OT=da.exports;const PT=hl(OT);var AT=9007199254740991,RT="[object Arguments]",IT="[object Function]",LT="[object GeneratorFunction]",NT="[object Symbol]",FT=typeof xe=="object"&&xe&&xe.Object===Object&&xe,BT=typeof self=="object"&&self&&self.Object===Object&&self,zT=FT||BT||Function("return this")();function HT(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function WT(n,t){for(var e=-1,i=n?n.length:0,s=Array(i);++e<i;)s[e]=t(n[e],e,n);return s}function YT(n,t){for(var e=-1,i=t.length,s=n.length;++e<i;)n[s+e]=t[e];return n}var Il=Object.prototype,VT=Il.hasOwnProperty,Ll=Il.toString,Em=zT.Symbol,$T=Il.propertyIsEnumerable,Om=Em?Em.isConcatSpreadable:void 0,Pm=Math.max;function jT(n,t,e,i,s){var r=-1,a=n.length;for(e||(e=GT),s||(s=[]);++r<a;){var o=n[r];e(o)?YT(s,o):s[s.length]=o}return s}function UT(n,t){return n=Object(n),qT(n,t,function(e,i){return i in n})}function qT(n,t,e){for(var i=-1,s=t.length,r={};++i<s;){var a=t[i],o=n[a];e(o,a)&&(r[a]=o)}return r}function XT(n,t){return t=Pm(t===void 0?n.length-1:t,0),function(){for(var e=arguments,i=-1,s=Pm(e.length-t,0),r=Array(s);++i<s;)r[i]=e[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=e[i];return a[t]=r,HT(n,this,a)}}function GT(n){return QT(n)||ZT(n)||!!(Om&&n&&n[Om])}function KT(n){if(typeof n=="string"||sC(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function ZT(n){return tC(n)&&VT.call(n,"callee")&&(!$T.call(n,"callee")||Ll.call(n)==RT)}var QT=Array.isArray;function JT(n){return n!=null&&nC(n.length)&&!eC(n)}function tC(n){return Am(n)&&JT(n)}function eC(n){var t=iC(n)?Ll.call(n):"";return t==IT||t==LT}function nC(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=AT}function iC(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function Am(n){return!!n&&typeof n=="object"}function sC(n){return typeof n=="symbol"||Am(n)&&Ll.call(n)==NT}var rC=XT(function(n,t){return n==null?{}:UT(n,WT(jT(t),KT))}),aC=rC;const oC=hl(aC);var Rm={exports:{}};(function(n,t){(function(e,i){i()})(xe,function(){function e(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function i(c,u,h){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,h)},f.onerror=function(){console.error("could not download file")},f.send()}function s(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function r(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof xe=="object"&&xe.global===xe?xe:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(c,u,h){var f=a.URL||a.webkitURL,m=document.createElement("a");u=u||c.name||"download",m.download=u,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?r(m):s(m.href)?i(c,u,h):r(m,m.target="_blank")):(m.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(m.href)},4e4),setTimeout(function(){r(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,h){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(e(c,h),u);else if(s(c))i(c,u,h);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){r(f)})}}:function(c,u,h,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return i(c,u,h);var m=c.type==="application/octet-stream",g=/constructor/i.test(a.HTMLElement)||a.safari,_=/CriOS\/[\d]+/.test(navigator.userAgent);if((_||m&&g||o)&&typeof FileReader<"u"){var x=new FileReader;x.onloadend=function(){var k=x.result;k=_?k:k.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=k:location=k,f=null},x.readAsDataURL(c)}else{var v=a.URL||a.webkitURL,S=v.createObjectURL(c);f?f.location=S:location.href=S,f=null,setTimeout(function(){v.revokeObjectURL(S)},4e4)}});a.saveAs=l.saveAs=l,n.exports=l})})(Rm);var lC=Rm.exports,Im={exports:{}};/* @license
|
|
29
29
|
Papa Parse
|
|
30
30
|
v5.5.3
|
|
31
31
|
https://github.com/mholt/PapaParse
|