diff --git a/ams/api/src/main/java/com/netease/arctic/ams/api/PropertyNames.java b/ams/api/src/main/java/com/netease/arctic/ams/api/OptimizerProperties.java similarity index 74% rename from ams/api/src/main/java/com/netease/arctic/ams/api/PropertyNames.java rename to ams/api/src/main/java/com/netease/arctic/ams/api/OptimizerProperties.java index a482100431..19ebc59a77 100644 --- a/ams/api/src/main/java/com/netease/arctic/ams/api/PropertyNames.java +++ b/ams/api/src/main/java/com/netease/arctic/ams/api/OptimizerProperties.java @@ -1,12 +1,16 @@ package com.netease.arctic.ams.api; -public class PropertyNames { +public class OptimizerProperties { + // Resource properties public static final String RESOURCE_ID = "resource-id"; - public static final String EXPORT_PROPERTY_PREFIX = "export."; - public static final String AMS_OPTIMIZER_URI = "ams-optimizing-uri"; public static final String AMS_HOME = "ams-home"; + + // Resource container properties + public static final String EXPORT_PROPERTY_PREFIX = "export."; + + // Resource group properties public static final String OPTIMIZER_EXECUTION_PARALLEL = "execution-parallel"; public static final String OPTIMIZER_MEMORY_SIZE = "memory-size"; public static final String OPTIMIZER_GROUP_NAME = "group-name"; @@ -15,4 +19,6 @@ public class PropertyNames { public static final boolean OPTIMIZER_EXTEND_DISK_STORAGE_DEFAULT = false; public static final String OPTIMIZER_DISK_STORAGE_PATH = "disk-storage-path"; public static final String OPTIMIZER_MEMORY_STORAGE_SIZE = "memory-storage-size"; + public static final String MAX_INPUT_FILE_SIZE_PER_THREAD = "max-input-file-size-per-thread"; + public static final Long MAX_INPUT_FILE_SIZE_PER_THREAD_DEFAULT = 512 * 1024 * 1024L; // 512MB } diff --git a/ams/api/src/main/java/com/netease/arctic/ams/api/properties/CatalogMetaProperties.java b/ams/api/src/main/java/com/netease/arctic/ams/api/properties/CatalogMetaProperties.java index 98782f7d26..8e2544ea5f 100644 --- a/ams/api/src/main/java/com/netease/arctic/ams/api/properties/CatalogMetaProperties.java +++ b/ams/api/src/main/java/com/netease/arctic/ams/api/properties/CatalogMetaProperties.java @@ -48,13 +48,8 @@ public class CatalogMetaProperties { // Deprecated from version v0.4.0, use KEY_WAREHOUSE @Deprecated public static final String KEY_WAREHOUSE_DIR = "warehouse.dir"; public static final String KEY_WAREHOUSE = "warehouse"; - /** - * @deprecated since 0.6.0, will be removed in 0.7.0; use {@link - * CatalogMetaProperties#KEY_TABLE_FILTER} instead. - */ - @Deprecated - public static final String KEY_DATABASE_FILTER_REGULAR_EXPRESSION = - "database.filter-regular-expression"; + + public static final String KEY_DATABASE_FILTER = "database-filter"; public static final String KEY_TABLE_FILTER = "table-filter"; diff --git a/ams/dashboard/src/components/tables-sub-menu/TablesMenu.vue b/ams/dashboard/src/components/tables-sub-menu/TablesMenu.vue index 1e80f1dc26..06bdef1e0f 100644 --- a/ams/dashboard/src/components/tables-sub-menu/TablesMenu.vue +++ b/ams/dashboard/src/components/tables-sub-menu/TablesMenu.vue @@ -240,7 +240,8 @@ export default defineComponent({ })) if (state.databaseList.length && !isSearch) { const index = state.databaseList.findIndex(ele => ele.id === storageCataDBTable.database) - state.database = index > -1 ? storageCataDBTable.database : (route.query?.db)?.toString() || state.databaseList[0].id || '' + // ISSUE 2413: If the current catalog is not the one in the query, the first db is selected by default. + state.database = index > -1 ? storageCataDBTable.database : state.curCatalog === (route.query?.catalog)?.toString() ? ((route.query?.db)?.toString() || state.databaseList[0].id || '') : state.databaseList[0].id || '' getAllTableList() } }).finally(() => { diff --git a/ams/dashboard/src/language/en.ts b/ams/dashboard/src/language/en.ts index 1e3cd793c8..2596f09317 100644 --- a/ams/dashboard/src/language/en.ts +++ b/ams/dashboard/src/language/en.ts @@ -72,6 +72,7 @@ export default { filterPlaceholder: 'Filter {inputPh}', basicInformation: 'Basic Information', partition: 'Partition', + taskId: 'Task ID', fileCount: 'File Count', fsn: 'FSN', commitTime: 'Commit Time', @@ -99,6 +100,9 @@ export default { optimizingStatus: 'Optimizing Status', optimzerGroup: 'Optimizer Group', allGroups: 'All Groups', + retry: 'Retry', + costTime: 'Cost Time', + thread: 'Thread', resourceOccupation: 'Resource Occupation', core: 'Core', scaleOut: 'Scale-Out', @@ -129,6 +133,7 @@ export default { ready: 'Ready', running: 'Running', cancel: 'Cancel', + cancelProcess: 'Cancel Process', finish: 'Finish', fail: 'Fail', loading: 'Loading', @@ -179,7 +184,7 @@ export default { cannotDeleteGroupModalTitle: "Can't remove this group.", cannotDeleteGroupModalContent: 'This group has been used.', deleteGroupModalTitle: 'Remove this group', - processId: 'Process Id', + processId: 'Process ID', tasks: 'Tasks', recordChartTitle: 'Table record count', fileChartTitle: 'Table file count', @@ -193,5 +198,6 @@ export default { tags: 'tags', nothingToShow: 'Nothing to show', filterBranchesOrTags: 'Filter branches/tags', - findATag: 'Find a tag' + findATag: 'Find a tag', + fileSearchPlaceholder: 'Filter partitions' } diff --git a/ams/dashboard/src/main/resources/static/css/chunk-06f4a222.1a818694.css b/ams/dashboard/src/main/resources/static/css/chunk-06f4a222.1a818694.css new file mode 100644 index 0000000000..2b5e6eab17 --- /dev/null +++ b/ams/dashboard/src/main/resources/static/css/chunk-06f4a222.1a818694.css @@ -0,0 +1 @@ +.table-detail .left-content[data-v-1a704e23],.table-detail .right-content[data-v-1a704e23]{padding:0 24px 12px;flex-shrink:0;flex-direction:column}.table-detail .left-content[data-v-1a704e23]{flex:2}.table-detail .right-content[data-v-1a704e23]{flex:1;padding-left:0}.table-detail .table-attrs[data-v-1a704e23]{margin-top:16px}.table-detail .attr-title[data-v-1a704e23]{font-size:16px;line-height:24px;font-weight:700;color:#102048;padding-bottom:12px}.table-partitons[data-v-6488dbec]{padding:18px 24px}.table-partitons .text-active[data-v-6488dbec]{color:#1890ff;cursor:pointer}.table-partitons .filter-wrap[data-v-6488dbec]{margin-bottom:12px}.table-partitons .filter-wrap .input-clear-icon[data-v-6488dbec]{font-size:12px}.table-partitons[data-v-6488dbec] .ant-input-group-addon{display:none}.table-operations{padding:12px}.table-operations .ant-table-tbody>tr>td{white-space:pre}.table-operations .text-active{color:#1890ff;cursor:pointer}.operation-wrap .ant-modal-body{max-height:360px;overflow-y:auto;white-space:pre}.echarts-loading{width:100%!important}.timeline-echarts .echarts-tooltip-dark{background-color:rgba(0,0,0,.7)!important;line-height:20px!important;border:1px solid #e9ebf1!important}.branch-selector{margin-top:32px;display:flex;align-items:center}.branch-selector .branch-btn{display:flex;align-items:center;color:#102048}.branch-selector .branch-btn .branch-btn-label{line-height:32px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-selector .ant-dropdown{background:#fff;width:300px;height:auto;max-height:480px;padding:8px 0 16px 0;font-size:12px;border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05)}.branch-selector .ant-dropdown .branch-selector-search{margin:0 12px 8px 12px}.branch-selector .ant-dropdown .ant-tabs{margin:0 12px}.branch-selector .ant-dropdown .ant-tabs .ant-tabs-tabpane{height:240px;overflow-y:auto}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item{display:flex;align-items:center;width:100%;padding:7px 16px;overflow:hidden;text-align:left;cursor:pointer}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item:hover{background-color:rgba(0,0,0,.04)}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-icon{margin-right:4px;width:16px}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#102048}.branch-selector .empty-tips{margin-top:12px;display:block;width:100%;text-align:center;color:#102048}.table-snapshots[data-v-4a105faf]{padding:18px 24px}.table-snapshots .text-active[data-v-4a105faf]{color:#1890ff;cursor:pointer}.table-snapshots[data-v-4a105faf] .ant-btn-link{padding:0}.table-snapshots .ant-table-wrapper[data-v-4a105faf]{margin-top:24px}.table-optimizing[data-v-66f12fbb]{padding:18px 24px}.table-optimizing[data-v-66f12fbb] .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{height:100%!important}.table-optimizing[data-v-66f12fbb] .ant-table-thead>tr:not(:last-child)>th[colspan]{border-bottom:1px solid #e8e8f0}.table-optimizing[data-v-66f12fbb] .ant-table-thead>tr>th{padding:4px 16px!important}.status-icon[data-v-66f12fbb]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.table-optimizing .text-active{color:#1890ff;cursor:pointer}.table-optimizing .ant-btn-link{padding:0}.table-failed-tip .ant-tooltip-content{width:800px}.table-failed-tip .tip-title{display:block;max-height:700px;overflow:auto;white-space:pre-wrap}.tables-wrap[data-v-4759e59e]{font-size:14px;border:1px solid #e8e8f0;padding:12px 0;min-height:100%}.tables-wrap .create-time[data-v-4759e59e]{margin-top:12px}.tables-wrap .tables-menu-wrap[data-v-4759e59e]{position:fixed;width:100%;height:100%;top:0;left:200px;z-index:100}.tables-wrap .table-name[data-v-4759e59e]{font-size:24px;line-height:1.5;margin-right:16px;max-width:400px;padding-left:24px}.tables-wrap .table-info[data-v-4759e59e]{padding:12px 24px 0 24px}.tables-wrap .table-info .text-color[data-v-4759e59e]{color:#7cb305}.tables-wrap .table-info .ant-divider-vertical[data-v-4759e59e]{height:1.2em;margin:0 12px}.tables-wrap .table-edit[data-v-4759e59e]{font-size:18px;padding-right:12px}.tables-wrap[data-v-4759e59e] .ant-tabs-nav{padding-left:12px;margin-bottom:0} \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/css/chunk-65d125fa.47f42312.css b/ams/dashboard/src/main/resources/static/css/chunk-65d125fa.47f42312.css deleted file mode 100644 index a71ec79403..0000000000 --- a/ams/dashboard/src/main/resources/static/css/chunk-65d125fa.47f42312.css +++ /dev/null @@ -1 +0,0 @@ -.table-detail .left-content[data-v-1a704e23],.table-detail .right-content[data-v-1a704e23]{padding:0 24px 12px;flex-shrink:0;flex-direction:column}.table-detail .left-content[data-v-1a704e23]{flex:2}.table-detail .right-content[data-v-1a704e23]{flex:1;padding-left:0}.table-detail .table-attrs[data-v-1a704e23]{margin-top:16px}.table-detail .attr-title[data-v-1a704e23]{font-size:16px;line-height:24px;font-weight:700;color:#102048;padding-bottom:12px}.table-partitons[data-v-a19b17ea]{padding:18px 24px}.table-partitons .text-active[data-v-a19b17ea]{color:#1890ff;cursor:pointer}.table-operations{padding:12px}.table-operations .ant-table-tbody>tr>td{white-space:pre}.table-operations .text-active{color:#1890ff;cursor:pointer}.operation-wrap .ant-modal-body{max-height:360px;overflow-y:auto;white-space:pre}.echarts-loading{width:100%!important}.timeline-echarts .echarts-tooltip-dark{background-color:rgba(0,0,0,.7)!important;line-height:20px!important;border:1px solid #e9ebf1!important}.branch-selector{margin-top:32px;display:flex;align-items:center}.branch-selector .branch-btn{display:flex;align-items:center;color:#102048}.branch-selector .branch-btn .branch-btn-label{line-height:32px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-selector .ant-dropdown{background:#fff;width:300px;height:auto;max-height:480px;padding:8px 0 16px 0;font-size:12px;border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05)}.branch-selector .ant-dropdown .branch-selector-search{margin:0 12px 8px 12px}.branch-selector .ant-dropdown .ant-tabs{margin:0 12px}.branch-selector .ant-dropdown .ant-tabs .ant-tabs-tabpane{height:240px;overflow-y:auto}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item{display:flex;align-items:center;width:100%;padding:7px 16px;overflow:hidden;text-align:left;cursor:pointer}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item:hover{background-color:rgba(0,0,0,.04)}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-icon{margin-right:4px;width:16px}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#102048}.branch-selector .empty-tips{margin-top:12px;display:block;width:100%;text-align:center;color:#102048}.table-snapshots[data-v-21a1677f]{padding:18px 24px}.table-snapshots .text-active[data-v-21a1677f]{color:#1890ff;cursor:pointer}.table-snapshots[data-v-21a1677f] .ant-btn-link{padding:0}.table-snapshots .ant-table-wrapper[data-v-21a1677f]{margin-top:24px}.table-optinize[data-v-7de44d54]{padding:18px 24px}.table-optinize[data-v-7de44d54] .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{height:100%!important}.table-optinize[data-v-7de44d54] .ant-table-thead>tr:not(:last-child)>th[colspan]{border-bottom:1px solid #e8e8f0}.table-optinize[data-v-7de44d54] .ant-table-thead>tr>th{padding:4px 16px!important}.status-icon[data-v-7de44d54]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.table-failed-tip .ant-tooltip-content{width:800px}.table-failed-tip .tip-title{display:block;max-height:700px;overflow:auto;white-space:pre-wrap}.tables-wrap[data-v-3ca83c09]{font-size:14px;border:1px solid #e8e8f0;padding:12px 0;min-height:100%}.tables-wrap .create-time[data-v-3ca83c09]{margin-top:12px}.tables-wrap .tables-menu-wrap[data-v-3ca83c09]{position:fixed;width:100%;height:100%;top:0;left:200px;z-index:100}.tables-wrap .table-name[data-v-3ca83c09]{font-size:24px;line-height:1.5;margin-right:16px;max-width:400px;padding-left:24px}.tables-wrap .table-info[data-v-3ca83c09]{padding:12px 24px 0 24px}.tables-wrap .table-info .text-color[data-v-3ca83c09]{color:#7cb305}.tables-wrap .table-info .ant-divider-vertical[data-v-3ca83c09]{height:1.2em;margin:0 12px}.tables-wrap .table-edit[data-v-3ca83c09]{font-size:18px;padding-right:12px}.tables-wrap[data-v-3ca83c09] .ant-tabs-nav{padding-left:12px;margin-bottom:0} \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/css/chunk-0e36844c.bbfed3ee.css b/ams/dashboard/src/main/resources/static/css/chunk-c4d29046.b7ea1baa.css similarity index 54% rename from ams/dashboard/src/main/resources/static/css/chunk-0e36844c.bbfed3ee.css rename to ams/dashboard/src/main/resources/static/css/chunk-c4d29046.b7ea1baa.css index bf5c242c9c..b444860fef 100644 --- a/ams/dashboard/src/main/resources/static/css/chunk-0e36844c.bbfed3ee.css +++ b/ams/dashboard/src/main/resources/static/css/chunk-c4d29046.b7ea1baa.css @@ -1 +1 @@ -.m-sql-editor.disabled .monaco-editor .view-lines[data-v-13c652ee],.m-sql-editor.disabled[data-v-13c652ee]{cursor:not-allowed!important}.sql-result-wrap[data-v-5e56b470]{height:100%;width:100%;overflow:auto;box-sizing:border-box}.sql-result-wrap .result-status[data-v-5e56b470]{padding:4px 12px}.sql-result-wrap .empty[data-v-5e56b470]{padding:6px 12px;color:#79809a}.sql-result-wrap .result-wrap[data-v-5e56b470]{padding:6px 12px;overflow-x:auto}.sql-result-wrap .sql-result-table[data-v-5e56b470]{height:100%;overflow:auto}.sql-result-wrap .sql-result-table .ant-table-tbody td .td-val[data-v-5e56b470]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:240px!important;display:inherit}.sql-log[data-v-d5f228ba]{padding:16px 16px 0;overflow:auto;height:100%}.console-wrap[data-v-9dc54ca4]{height:100%;padding:16px 24px}.console-wrap .console-content[data-v-9dc54ca4]{background-color:#fff;height:100%;width:100%}.console-wrap .console-content.fullscreen[data-v-9dc54ca4]{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99}.console-wrap .console-content.fullscreen .sql-wrap[data-v-9dc54ca4]{flex:1;display:flex}.console-wrap .console-content.fullscreen .sql-wrap .sql-block[data-v-9dc54ca4]{flex:1;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap[data-v-9dc54ca4]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:0;border:1px solid #e5e5e5;border-bottom:0}.console-wrap .console-content .sql-wrap .sql-block[data-v-9dc54ca4]{font-size:14px;display:inline-block;width:calc(100% - 200px);height:100%}.console-wrap .console-content .sql-wrap .sql-block .top-ops[data-v-9dc54ca4]{padding:6px 16px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-9dc54ca4]{color:#000;cursor:pointer}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-9dc54ca4]:hover{color:#1890ff}.console-wrap .console-content .sql-wrap .sql-block .select-catalog .label[data-v-9dc54ca4]{padding-right:8px}.console-wrap .console-content .sql-wrap .sql-block .title-right[data-v-9dc54ca4]{display:flex;justify-content:flex-end;height:32px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .sql-content[data-v-9dc54ca4]{height:calc(100% - 44px);border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;position:relative;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap .sql-block .sql-content .sql-raw[data-v-9dc54ca4]{height:100%;overflow:hidden;flex:1}.console-wrap .console-content .sql-wrap .sql-block .sql-content .run-status[data-v-9dc54ca4]{height:32px;flex-shrink:0}.console-wrap .console-content .sql-wrap .sql-block .result-full[data-v-9dc54ca4]{height:auto;position:absolute;top:0;right:0;left:0;bottom:0}.console-wrap .console-content .sql-wrap .sql-shortcuts[data-v-9dc54ca4]{font-size:14px;display:inline-block;vertical-align:top;width:200px;height:100%;border-left:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .shortcuts[data-v-9dc54ca4]{padding:0 16px;line-height:44px;border-bottom:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .code[data-v-9dc54ca4]{width:100px}.console-wrap .console-content .sql-wrap .sql-shortcuts .ant-btn[data-v-9dc54ca4]{text-align:left}.console-wrap .console-content .sql-result[data-v-9dc54ca4]{background-color:#fff;border:1px solid #e5e5e5;border-top:0;width:100%;padding-bottom:12px;display:flex;flex-direction:column;position:relative;flex:1}.console-wrap .console-content .sql-result .drag-line[data-v-9dc54ca4]{position:absolute;top:-1px;left:0;width:100%;height:6px;font-size:18px;border-top:1px solid #e5e5e5}.console-wrap .console-content .sql-result .drag-line .icon[data-v-9dc54ca4]{position:absolute;top:-12px;font-size:24px;left:50%;transform:rotate(90deg);z-index:3}.console-wrap .console-content .sql-result .drag-line[data-v-9dc54ca4]:hover{cursor:n-resize}.console-wrap .console-content .sql-result .debug-result[data-v-9dc54ca4]{flex:1;overflow:auto}.console-wrap .debug-icon[data-v-9dc54ca4]:hover{color:#1890ff}.console-wrap .run-status[data-v-9dc54ca4]{padding:6px 12px;position:absolute;left:0;bottom:0;width:100%;z-index:2;background-color:#fff}.console-wrap .tab-operation[data-v-9dc54ca4]{display:flex;justify-content:space-between;height:40px;line-height:40px;border-bottom:1px solid #e5e5e5;padding:0 20px 0 16px}.console-wrap .tab-operation .tab[data-v-9dc54ca4]{display:flex}.console-wrap .tab-operation .tab .tab-item[data-v-9dc54ca4]{padding:0 16px;text-align:center;cursor:pointer}.console-wrap .tab-operation .tab .tab-item.active[data-v-9dc54ca4]{border-bottom:2px solid #1890ff}.console-wrap .tab-operation .operation .icon-svg[data-v-9dc54ca4]{margin-right:16px;cursor:pointer}.console-wrap .tab-operation .operation .icon-svg[data-v-9dc54ca4]:hover{color:#1890ff}.console-wrap .loading-icon[data-v-9dc54ca4]{display:block;margin-top:80px} \ No newline at end of file +.m-sql-editor.disabled .monaco-editor .view-lines[data-v-13c652ee],.m-sql-editor.disabled[data-v-13c652ee]{cursor:not-allowed!important}.sql-result-wrap[data-v-5e56b470]{height:100%;width:100%;overflow:auto;box-sizing:border-box}.sql-result-wrap .result-status[data-v-5e56b470]{padding:4px 12px}.sql-result-wrap .empty[data-v-5e56b470]{padding:6px 12px;color:#79809a}.sql-result-wrap .result-wrap[data-v-5e56b470]{padding:6px 12px;overflow-x:auto}.sql-result-wrap .sql-result-table[data-v-5e56b470]{height:100%;overflow:auto}.sql-result-wrap .sql-result-table .ant-table-tbody td .td-val[data-v-5e56b470]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:240px!important;display:inherit}.sql-log[data-v-d5f228ba]{padding:16px 16px 0;overflow:auto;height:100%}.console-wrap[data-v-63042b65]{height:100%;padding:16px 24px}.console-wrap .console-content[data-v-63042b65]{background-color:#fff;height:100%;width:100%}.console-wrap .console-content.fullscreen[data-v-63042b65]{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99}.console-wrap .console-content.fullscreen .sql-wrap[data-v-63042b65]{flex:1;display:flex}.console-wrap .console-content.fullscreen .sql-wrap .sql-block[data-v-63042b65]{flex:1;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap[data-v-63042b65]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:0;border:1px solid #e5e5e5;border-bottom:0}.console-wrap .console-content .sql-wrap .sql-block[data-v-63042b65]{font-size:14px;display:inline-block;width:calc(100% - 200px);height:100%}.console-wrap .console-content .sql-wrap .sql-block .top-ops[data-v-63042b65]{padding:6px 16px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-63042b65]{color:#000;cursor:pointer}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-63042b65]:hover{color:#1890ff}.console-wrap .console-content .sql-wrap .sql-block .select-catalog .label[data-v-63042b65]{padding-right:8px}.console-wrap .console-content .sql-wrap .sql-block .title-right[data-v-63042b65]{display:flex;justify-content:flex-end;height:32px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .sql-content[data-v-63042b65]{height:calc(100% - 44px);border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;position:relative;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap .sql-block .sql-content .sql-raw[data-v-63042b65]{height:100%;overflow:hidden;flex:1}.console-wrap .console-content .sql-wrap .sql-block .sql-content .run-status[data-v-63042b65]{height:32px;flex-shrink:0}.console-wrap .console-content .sql-wrap .sql-block .result-full[data-v-63042b65]{height:auto;position:absolute;top:0;right:0;left:0;bottom:0}.console-wrap .console-content .sql-wrap .sql-shortcuts[data-v-63042b65]{font-size:14px;display:inline-block;vertical-align:top;width:200px;height:100%;border-left:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .shortcuts[data-v-63042b65]{padding:0 16px;line-height:44px;border-bottom:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .code[data-v-63042b65]{width:100px}.console-wrap .console-content .sql-wrap .sql-shortcuts .ant-btn[data-v-63042b65]{text-align:left}.console-wrap .console-content .sql-result[data-v-63042b65]{background-color:#fff;border:1px solid #e5e5e5;border-top:0;width:100%;padding-bottom:12px;display:flex;flex-direction:column;position:relative;flex:1}.console-wrap .console-content .sql-result .drag-line[data-v-63042b65]{position:absolute;top:-1px;left:0;width:100%;height:6px;font-size:18px;border-top:1px solid #e5e5e5}.console-wrap .console-content .sql-result .drag-line .icon[data-v-63042b65]{position:absolute;top:-12px;font-size:24px;left:50%;transform:rotate(90deg);z-index:3}.console-wrap .console-content .sql-result .drag-line[data-v-63042b65]:hover{cursor:n-resize}.console-wrap .console-content .sql-result .debug-result[data-v-63042b65]{flex:1;overflow:auto}.console-wrap .debug-icon[data-v-63042b65]:hover{color:#1890ff}.console-wrap .run-status[data-v-63042b65]{padding:6px 12px;position:absolute;left:0;bottom:0;width:100%;z-index:2;background-color:#fff}.console-wrap .tab-operation[data-v-63042b65]{display:flex;justify-content:space-between;height:40px;line-height:40px;border-bottom:1px solid #e5e5e5;padding:0 20px 0 16px}.console-wrap .tab-operation .tab[data-v-63042b65]{display:flex}.console-wrap .tab-operation .tab .tab-item[data-v-63042b65]{padding:0 16px;text-align:center;cursor:pointer}.console-wrap .tab-operation .tab .tab-item.active[data-v-63042b65]{border-bottom:2px solid #1890ff}.console-wrap .tab-operation .operation .icon-svg[data-v-63042b65]{margin-right:16px;cursor:pointer}.console-wrap .tab-operation .operation .icon-svg[data-v-63042b65]:hover{color:#1890ff}.console-wrap .loading-icon[data-v-63042b65]{display:block;margin-top:80px} \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/css/chunk-7746c7af.5a685f4b.css b/ams/dashboard/src/main/resources/static/css/chunk-c92af2b4.e5a3e4ae.css similarity index 76% rename from ams/dashboard/src/main/resources/static/css/chunk-7746c7af.5a685f4b.css rename to ams/dashboard/src/main/resources/static/css/chunk-c92af2b4.e5a3e4ae.css index 2a52de05c6..d73ac35615 100644 --- a/ams/dashboard/src/main/resources/static/css/chunk-7746c7af.5a685f4b.css +++ b/ams/dashboard/src/main/resources/static/css/chunk-c92af2b4.e5a3e4ae.css @@ -1 +1 @@ -.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{border:none;background-color:transparent;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;pointer-events:none;display:block;overflow:hidden}.scroller[data-v-abd9edf8]{height:calc(100% - 80px);padding:4px 0 0 4px;margin-top:4px;box-sizing:border-box}.scroller[data-v-abd9edf8] .vue-recycle-scroller__item-view{padding-right:4px}.desc[data-v-abd9edf8]{display:flex;justify-content:flex-start;align-items:center;padding:10px 12px;height:40px;color:hsla(0,0%,100%,.8);cursor:pointer}.desc.active[data-v-abd9edf8],.desc[data-v-abd9edf8]:hover{background-color:#2b354a;color:#fff}.desc .name[data-v-abd9edf8]{max-width:200px;margin-top:-2px}.desc .table-icon[data-v-abd9edf8]{font-size:14px}.tables-menu[data-v-059a481c]{box-sizing:border-box;height:100%;width:512px;background-color:#202a40;color:#fff;box-shadow:2px 0 6px rgba(0,21,41,.08)}.tables-menu .tables-wrap[data-v-059a481c]{height:calc(100% - 40px)}.tables-menu .filter-wrap[data-v-059a481c]{padding:4px 4px 0}.tables-menu .filter-wrap .input-clear-icon[data-v-059a481c]{font-size:12px}.tables-menu[data-v-059a481c] .ant-input-group-addon{display:none}.tables-menu .database-list[data-v-059a481c],.tables-menu .table-list[data-v-059a481c]{flex:1;padding-top:8px}.tables-menu .database-list .list-wrap[data-v-059a481c],.tables-menu .table-list[data-v-059a481c]{border-right:1px solid hsla(0,0%,100%,.12)}.tables-menu .list-wrap[data-v-059a481c]{height:calc(100% - 12px);position:relative}.tables-menu .list-wrap .u-loading[data-v-059a481c]{background:transparent;justify-content:flex-start;padding-top:200px}.tables-menu .add[data-v-059a481c],.tables-menu .select-catalog[data-v-059a481c]{align-items:center;height:40px;padding:0 12px}.tables-menu .database-list .select-catalog[data-v-059a481c]{padding-right:4px}.tables-menu .add[data-v-059a481c]{margin:4px 4px 0;background-color:#1a2232}.tables-menu[data-v-059a481c] .select-catalog .ant-select{width:240px;margin-left:12px}.tables-menu .icon[data-v-059a481c]{cursor:pointer}.tables-menu .select-catalog[data-v-059a481c]{padding-top:8px;border-right:1px solid hsla(0,0%,100%,.12)}.side-bar[data-v-c08cb56c]{position:relative;height:100%;transition:width .3s;display:flex;flex-direction:column;flex-shrink:0}.side-bar[data-v-c08cb56c] .ant-menu{height:100%;width:200px}.side-bar[data-v-c08cb56c] .ant-menu.ant-menu-inline-collapsed{width:64px}.side-bar[data-v-c08cb56c] .ant-menu.ant-menu-inline-collapsed .logo{padding-left:14px}.side-bar[data-v-c08cb56c] .ant-menu.ant-menu-inline-collapsed .toggle-btn{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar[data-v-c08cb56c] .ant-menu-item{margin:0;padding-left:22px!important}.side-bar[data-v-c08cb56c] .ant-menu-item .ant-menu-title-content{width:100%;margin-left:12px}.side-bar[data-v-c08cb56c] .ant-menu-item.active{background-color:#1890ff;color:#fff}.side-bar[data-v-c08cb56c] .ant-menu-item.active-color{color:#fff;background-color:#202a40}.side-bar[data-v-c08cb56c] .ant-menu-item:hover{color:#fff}.side-bar[data-v-c08cb56c] .ant-menu-item.table-item-tab:hover{background-color:#202a40}.side-bar .logo[data-v-c08cb56c]{padding:12px 0 12px 16px;overflow:hidden;background-color:#001529;cursor:pointer;padding:12px 20px}.side-bar .logo-img[data-v-c08cb56c]{width:24px;height:24px}.side-bar .arctic-name[data-v-c08cb56c]{width:66px;margin:4px 0 0 4px}.side-bar .toggle-btn[data-v-c08cb56c]{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar .svg-icon[data-v-c08cb56c]{font-size:16px}.tables-menu-wrap[data-v-c08cb56c]{position:absolute;top:0;left:200px;right:0;bottom:0;z-index:1100}.tables-menu-wrap.collapsed-sub-menu[data-v-c08cb56c]{left:64px}.custom-top-bar{height:48px;display:flex;flex:1;align-items:center;justify-content:flex-end;background:#fff;border-bottom:1px solid #e8e8e8;box-shadow:0 1px 2px rgba(0,21,41,.05);padding:0 12px 0 0;font-size:12px}.custom-top-bar .question-icon{font-size:12px;margin-top:-2px}.topbar-tooltip .ant-tooltip-inner{font-size:12px}.logout-button{border-color:transparent}.logout-button:hover{border-color:unset}.layout[data-v-148e5fa0]{display:flex;width:100%;height:100%;min-width:1200px}.layout .right-content[data-v-148e5fa0]{display:flex;flex:1;flex-direction:column;transition:width .3s;overflow:auto}.layout .right-content .content[data-v-148e5fa0]{height:calc(100% - 48px);overflow:auto} \ No newline at end of file +.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{border:none;background-color:transparent;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;pointer-events:none;display:block;overflow:hidden}.scroller[data-v-abd9edf8]{height:calc(100% - 80px);padding:4px 0 0 4px;margin-top:4px;box-sizing:border-box}.scroller[data-v-abd9edf8] .vue-recycle-scroller__item-view{padding-right:4px}.desc[data-v-abd9edf8]{display:flex;justify-content:flex-start;align-items:center;padding:10px 12px;height:40px;color:hsla(0,0%,100%,.8);cursor:pointer}.desc.active[data-v-abd9edf8],.desc[data-v-abd9edf8]:hover{background-color:#2b354a;color:#fff}.desc .name[data-v-abd9edf8]{max-width:200px;margin-top:-2px}.desc .table-icon[data-v-abd9edf8]{font-size:14px}.tables-menu[data-v-03551ced]{box-sizing:border-box;height:100%;width:512px;background-color:#202a40;color:#fff;box-shadow:2px 0 6px rgba(0,21,41,.08)}.tables-menu .tables-wrap[data-v-03551ced]{height:calc(100% - 40px)}.tables-menu .filter-wrap[data-v-03551ced]{padding:4px 4px 0}.tables-menu .filter-wrap .input-clear-icon[data-v-03551ced]{font-size:12px}.tables-menu[data-v-03551ced] .ant-input-group-addon{display:none}.tables-menu .database-list[data-v-03551ced],.tables-menu .table-list[data-v-03551ced]{flex:1;padding-top:8px}.tables-menu .database-list .list-wrap[data-v-03551ced],.tables-menu .table-list[data-v-03551ced]{border-right:1px solid hsla(0,0%,100%,.12)}.tables-menu .list-wrap[data-v-03551ced]{height:calc(100% - 12px);position:relative}.tables-menu .list-wrap .u-loading[data-v-03551ced]{background:transparent;justify-content:flex-start;padding-top:200px}.tables-menu .add[data-v-03551ced],.tables-menu .select-catalog[data-v-03551ced]{align-items:center;height:40px;padding:0 12px}.tables-menu .database-list .select-catalog[data-v-03551ced]{padding-right:4px}.tables-menu .add[data-v-03551ced]{margin:4px 4px 0;background-color:#1a2232}.tables-menu[data-v-03551ced] .select-catalog .ant-select{width:240px;margin-left:12px}.tables-menu .icon[data-v-03551ced]{cursor:pointer}.tables-menu .select-catalog[data-v-03551ced]{padding-top:8px;border-right:1px solid hsla(0,0%,100%,.12)}.side-bar[data-v-c08cb56c]{position:relative;height:100%;transition:width .3s;display:flex;flex-direction:column;flex-shrink:0}.side-bar[data-v-c08cb56c] .ant-menu{height:100%;width:200px}.side-bar[data-v-c08cb56c] .ant-menu.ant-menu-inline-collapsed{width:64px}.side-bar[data-v-c08cb56c] .ant-menu.ant-menu-inline-collapsed .logo{padding-left:14px}.side-bar[data-v-c08cb56c] .ant-menu.ant-menu-inline-collapsed .toggle-btn{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar[data-v-c08cb56c] .ant-menu-item{margin:0;padding-left:22px!important}.side-bar[data-v-c08cb56c] .ant-menu-item .ant-menu-title-content{width:100%;margin-left:12px}.side-bar[data-v-c08cb56c] .ant-menu-item.active{background-color:#1890ff;color:#fff}.side-bar[data-v-c08cb56c] .ant-menu-item.active-color{color:#fff;background-color:#202a40}.side-bar[data-v-c08cb56c] .ant-menu-item:hover{color:#fff}.side-bar[data-v-c08cb56c] .ant-menu-item.table-item-tab:hover{background-color:#202a40}.side-bar .logo[data-v-c08cb56c]{padding:12px 0 12px 16px;overflow:hidden;background-color:#001529;cursor:pointer;padding:12px 20px}.side-bar .logo-img[data-v-c08cb56c]{width:24px;height:24px}.side-bar .arctic-name[data-v-c08cb56c]{width:66px;margin:4px 0 0 4px}.side-bar .toggle-btn[data-v-c08cb56c]{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar .svg-icon[data-v-c08cb56c]{font-size:16px}.tables-menu-wrap[data-v-c08cb56c]{position:absolute;top:0;left:200px;right:0;bottom:0;z-index:1100}.tables-menu-wrap.collapsed-sub-menu[data-v-c08cb56c]{left:64px}.custom-top-bar{height:48px;display:flex;flex:1;align-items:center;justify-content:flex-end;background:#fff;border-bottom:1px solid #e8e8e8;box-shadow:0 1px 2px rgba(0,21,41,.05);padding:0 12px 0 0;font-size:12px}.custom-top-bar .question-icon{font-size:12px;margin-top:-2px}.topbar-tooltip .ant-tooltip-inner{font-size:12px}.logout-button{border-color:transparent}.logout-button:hover{border-color:unset}.layout[data-v-148e5fa0]{display:flex;width:100%;height:100%;min-width:1200px}.layout .right-content[data-v-148e5fa0]{display:flex;flex:1;flex-direction:column;transition:width .3s;overflow:auto}.layout .right-content .content[data-v-148e5fa0]{height:calc(100% - 48px);overflow:auto} \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/index.html b/ams/dashboard/src/main/resources/static/index.html index 424a10e883..a55ada8a75 100644 --- a/ams/dashboard/src/main/resources/static/index.html +++ b/ams/dashboard/src/main/resources/static/index.html @@ -1 +1 @@ -Amoro
\ No newline at end of file +Amoro
\ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/app.617b494a.js b/ams/dashboard/src/main/resources/static/js/app.617b494a.js new file mode 100644 index 0000000000..a4c9417c97 --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/app.617b494a.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var C,E,i=t[0],o=t[1],A=t[2],c=0,s=[];c'});r.a.add(i);t["default"]=i},"0613":function(e,t,n){"use strict";var C=n("be92"),E=function(){return{userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}},a={getShowTablesMenu:function(e){return e.isShowTablesMenu}};t["a"]=Object(C["b"])("datalake",{state:E,getters:a,actions:{updateTablesMenu:function(e){this.isShowTablesMenu=e},updateUserInfo:function(e){this.userInfo=e},setHistoryPath:function(e){this.historyPathInfo=e}}})},"0b37":function(e,t,n){"use strict";n("86eb")},"0beb":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-arctic",use:"icon-arctic-usage",viewBox:"0 0 16 16",content:''});r.a.add(i);t["default"]=i},"14b4":function(e,t,n){"use strict";var C=n("47e2"),E={overview:"Overview",catalogs:"Catalogs",catalog:"Catalog",tables:"Tables",optimizing:"Optimizing",terminal:"Terminal",settings:"Settings",resource:"Resource",optimizergroup:"Optimizer Groups",systemSetting:"System Settings",containerSetting:"Container Settings",backHome:"Back to Home",version:"Version",userGuide:"User Guide",logout:"Logout",logoutModalTitle:"Log out of the ams?",order:"Order",cluster:"Cluster",database:"Database | Databases",table:"Table | Tables",size:"Size",file:"File",files:"Files",field:"Field",type:"Type",implementation:"Implementation",required:"Required",createTime:"Create Time",primaryKey:"Primary Key",partitionKey:"Partition Key",schema:"Schema",mainMetrics:"Main Metrics",changeTableMetrics:"Change Table Metrics",baseTableMetrics:"Base Table Metrics",properties:"Properties",tableProperties:"Table Properties",sourceField:"Source Field",transform:"Transform",description:"Description",metric:"Metric",key:"Key",value:"Value",metricValue:"Metric Value",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time",quota:"Quota",createTable:"Create Table",createDatabase:"Create Database",databaseName:"Database Name",tableName:"Table Name",selectPlaceholder:"Please select {selectPh}",inputPlaceholder:"Please input {inputPh}",filterPlaceholder:"Filter {inputPh}",basicInformation:"Basic Information",partition:"Partition",taskId:"Task ID",fileCount:"File Count",fsn:"FSN",commitTime:"Commit Time",commitId:"Commit ID",path:"Path",snapshotId:"Snapshot ID",fileType:"File Type",fileContent:"File Content",startTime:"Start Time",finishTime:"Finish Time",duration:"Duration",optimizeType:"Optimize Type",parallelism:"Parallelism",input:"Input",output:"Output",count:"Count",time:"Time",operation:"Operation",operationDetails:"Operation Details",copy:"Copy",optimizer:"Optimizer",optimizers:"Optimizers",container:"Container",status:"Status",optimizingStatus:"Optimizing Status",optimzerGroup:"Optimizer Group",allGroups:"All Groups",retry:"Retry",costTime:"Cost Time",thread:"Thread",resourceOccupation:"Resource Occupation",core:"Core",scaleOut:"Scale-Out",release:"Release",optimizeStatus:"Optimize Status",fileSize:"File Size",records:"Records",occupation:"Occupation",optimizerGroup:"Optimizer Group",optimizerGroups:"Optimizer Groups",resourceAllocation:"Resource Allocation",resourceGroup:"Resource Group",releaseOptModalTitle:"Release this optimizer?",cancelOptimizingProcessOptModalTitle:"Cancel the optimizing process of this table?",welecomeTip:"Welcome to Amoro!",signin:"Sign in",username:"Username",password:"Password",pause:"Pause",run:"Run",maximize:"Maximize",format:"Format",fullscreen:"Full screen",recovery:"Recovery",result:"Result",noResult:"No results",log:"Log",ready:"Ready",running:"Running",cancel:"Cancel",cancelProcess:"Cancel Process",finish:"Finish",fail:"Fail",loading:"Loading",sqlShortcuts:"SQL Shortcuts",use:"Use",upgrade:"Upgrade",upgrading:"Upgrading",upgradeHiveTable:"Upgrade Hive Table",ok:"Ok",partitonField:"Partiton Field",otherProperties:"Other Properties",errorMessage:"Error Message",copySuccess:"Copy Success",duplicateKey:"duplicate key",lastUpgradingFailed:"Last Upgrading Failed",data:"Data",resourceCpu:"Resource Cpu",resourceMemory:"Resource Memory",resourceUsage:"Resource Usage",top10:"Top 10",numIndex:"No.",cpu:"CPU",memory:"Memory",lastTime:"Last {time}",list:"List",name:"Name",tableFormat:"Table Format",metastore:"Metastore",basic:"Basic",storageConfigName:"Storage",authenticationConfig:"Authentication",upload:"Upload",save:"Save",remove:"Remove",edit:"Edit",deleteCatalogModalTitle:"Remove this catalog?",cannotDeleteModalTitle:"Can't remove this catalog.",cannotDeleteModalContent:"This catalog has been used.",success:"Success",optimzeGroup:"Optimize Group",propertiesMemory:"properties.{type}.memory",leavePageModalTitle:"Leave this page?",leavePageModalContent:"Changes you made may not be saved.",leave:"Leave",invalidInput:"Invalid input",addgroup:"Add Group",editgroup:"Edit Group",cannotDeleteGroupModalTitle:"Can't remove this group.",cannotDeleteGroupModalContent:"This group has been used.",deleteGroupModalTitle:"Remove this group",processId:"Process ID",tasks:"Tasks",recordChartTitle:"Table record count",fileChartTitle:"Table file count",totalRecords:"total-records",totalEqualityDeletes:"eq-delete-records",totalPositionDeletes:"pos-delete-records",totalFiles:"total-files",totalDataFiles:"data-files",totalDeleteFiles:"delete-files",branches:"branches",tags:"tags",nothingToShow:"Nothing to show",filterBranchesOrTags:"Filter branches/tags",findATag:"Find a tag",fileSearchPlaceholder:"Filter partitions"},a={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},r={en:E,zh:a},i={en:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}},zh:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}}},o=Object(C["a"])({locale:"en",fallbackLocale:"zh",globalInjection:!0,legacy:!1,messages:r,datetimeFormats:i});t["a"]=o},"19ce":function(e,t,n){"use strict";n("2d6d")},"1d43":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-optimizing",use:"icon-optimizing-usage",viewBox:"0 0 14 14",content:'\n\n\n'});r.a.add(i);t["default"]=i},"23f1":function(e,t,n){var C={"./amoro.svg":"010b","./arctic.svg":"0beb","./branch.svg":"4b1e","./catalogs.svg":"5fbf","./database.svg":"e5fc","./format.svg":"494b","./hive.svg":"9ac0","./iceberg.svg":"bbf7","./optimizers.svg":"54e7","./optimizing.svg":"1d43","./overview.svg":"d5c0","./paimon.svg":"75b0","./settings.svg":"9c15","./slide.svg":"9246","./sqldebug.svg":"563a","./sqlinit.svg":"cf33","./sqlmax.svg":"e583","./sqlpause.svg":"7607","./tables.svg":"3590","./tag.svg":"ac42","./terminal.svg":"b789"};function E(e){var t=a(e);return n(t)}function a(e){if(!n.o(C,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return C[e]}E.keys=function(){return Object.keys(C)},E.resolve=a,e.exports=E,E.id="23f1"},"2d6d":function(e,t,n){},3590:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-tables",use:"icon-tables-usage",viewBox:"0 0 16 16",content:'\n\n'});r.a.add(i);t["default"]=i},"494b":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-format",use:"icon-format-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});r.a.add(i);t["default"]=i},"4b1e":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-branch",use:"icon-branch-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(i);t["default"]=i},"54e7":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-optimizers",use:"icon-optimizers-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});r.a.add(i);t["default"]=i},"563a":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-sqldebug",use:"icon-sqldebug-usage",viewBox:"0 0 16 16",content:'\n\n\n'});r.a.add(i);t["default"]=i},"5fbf":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-catalogs",use:"icon-catalogs-usage",viewBox:"0 0 16 16",content:'\n\n'});r.a.add(i);t["default"]=i},6170:function(e,t,n){"use strict";n("aea9")},"75b0":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-paimon",use:"icon-paimon-usage",viewBox:"0 0 307.34 218.61",content:'\n \n \n \n \n \n \n \n \n \n'});r.a.add(i);t["default"]=i},7607:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-sqlpause",use:"icon-sqlpause-usage",viewBox:"0 0 16 16",content:'\n\n\n'});r.a.add(i);t["default"]=i},8608:function(e,t,n){"use strict";n("d81d"),n("d3b7"),n("ddb0");var C=function(e){return e.keys().map(e)},E=n("23f1");C(E)},"86eb":function(e,t,n){},9246:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-slide",use:"icon-slide-usage",viewBox:"0 0 10 28",content:'\n \x3c!-- Generator: Sketch 56.2 (81672) - https://sketch.com --\x3e\n slide\n Created with Sketch.\n \n \n \n \n \n \n \n \n \n \n \n \n'});r.a.add(i);t["default"]=i},"9ac0":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-hive",use:"icon-hive-usage",viewBox:"0 0 16 16",content:''});r.a.add(i);t["default"]=i},"9c15":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-settings",use:"icon-settings-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n\n'});r.a.add(i);t["default"]=i},a4b1:function(e,t,n){},ac42:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(i);t["default"]=i},aea9:function(e,t,n){},afbc:function(e,t,n){"use strict";n("d3b7"),n("3ca3"),n("ddb0");var C=n("6c02"),E=function(){return n.e("chunk-c92af2b4").then(n.bind(null,"bb51"))},a=function(){return n.e("chunk-e27313ec").then(n.bind(null,"8cdb"))},r=function(){return n.e("chunk-7a087ab9").then(n.bind(null,"adb5"))},i=function(){return n.e("chunk-06f4a222").then(n.bind(null,"bfa3"))},o=function(){return n.e("chunk-ca733964").then(n.bind(null,"06e7"))},A=function(){return n.e("chunk-1909d840").then(n.bind(null,"4139"))},c=function(){return n.e("chunk-225a1827").then(n.bind(null,"1150"))},s=function(){return n.e("chunk-eb399e28").then(n.bind(null,"61c2"))},d=function(){return n.e("chunk-c4d29046").then(n.bind(null,"d323"))},l=function(){return n.e("chunk-6a44215d").then(n.bind(null,"9ed6"))},T=function(){return n.e("chunk-083d7ab6").then(n.bind(null,"67df"))},u=function(){return n.e("chunk-572c8fb5").then(n.bind(null,"2240"))},R=[{path:"/",name:"Home",redirect:"introduce",component:E,children:[{path:"catalogs",name:"Catalogs",component:r},{path:"tables",name:"Tables",component:i,children:[{path:"create",name:"Create",component:c}]},{path:"hive-tables",name:"HiveTables",component:o,children:[{path:"upgrade",name:"Upgrade",component:A}]},{path:"optimizing",name:"Optimizing",component:u},{path:"settings",name:"Settings",component:s},{path:"terminal",name:"Terminal",component:d},{path:"introduce",name:"Introduce",component:T}]},{path:"/login",name:"Login",component:l},{path:"/404",name:"Page404",component:a},{path:"/:pathMatch(.*)*",name:"Page404",component:a}],I=Object(C["a"])({history:Object(C["b"])(),routes:R});t["a"]=I},b32d:function(e,t,n){"use strict";n("3b18");var C=n("f64c"),E=n("1da1"),a=(n("96cf"),n("c740"),n("b0c0"),n("a434"),n("d3b7"),n("d9e2"),n("99af"),n("ac1f"),n("1276"),n("bc3a")),r=n.n(a),i=n("0613"),o=n("afbc"),A="/",c=[];function s(e){e.method||(e.method="get")}var d={baseURL:A,timeout:45e3,headers:{"Content-Type":"application/json"}},l={method:"get",useToken:!1,handleError:!0,returnCode:!1,supportCancel:!1,routeChangeCancel:!1},T=r.a.create(d),u=function(e){var t=c.findIndex((function(t){return t.name===e.requestMark}));t>-1&&c.splice(t,1)};T.interceptors.response.use(function(){var e=Object(E["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u(t.config),200!==t.status||!t.data){e.next=5;break}return e.abrupt("return",t);case 5:return e.abrupt("return",Promise.reject(new Error("网络错误")));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){var t;null!==e&&void 0!==e&&e.response&&u(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.config);return r.a.isCancel(e)?new Promise((function(){})):Promise.reject(e)}));var R=function(e){var t=Object.assign({},l,e),n="".concat(t.method,"-").concat((t.url||"").split("?")[0]);if(t.requestMark=n,t.supportCancel){var E=c.findIndex((function(e){return e.name===n}));E>-1&&(c[E].cancel(),c.splice(E,1))}var a=r.a.CancelToken.source();return t.cancelToken=a.token,c.push({name:n,cancel:a.cancel,routeChangeCancel:t.routeChangeCancel}),t.useToken&&s(t),T(t).then((function(e){var n=e.data,E=n.code,a=n.message;if(t.returnCode)return e.data;if(0===E||200===E)return e.data.result;if(403===E){var r=Object(i["a"])();return r.updateUserInfo({userName:""}),t.handleError&&C["a"].error(a||"need login"),o["a"].push({path:"/login"})}return Promise.reject(new Error(a||"error"))})).catch((function(e){return t.handleError&&C["a"].error(e.message),Promise.reject(e)}))};["get","delete"].forEach((function(e){R[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=Object.assign({},n,{url:t,method:e}),R(n)}})),["post","put"].forEach((function(e){R[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return C=Object.assign({},C,{url:t,method:e,data:n}),R(C)}})),t["a"]=R},b789:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-terminal",use:"icon-terminal-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});r.a.add(i);t["default"]=i},bbf7:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-iceberg",use:"icon-iceberg-usage",viewBox:"0 0 16 16",content:''});r.a.add(i);t["default"]=i},cd49:function(e,t,n){"use strict";n.r(t);var C=n("5530"),E=n("1da1"),a=(n("e260"),n("e6cf"),n("cca6"),n("a79df"),n("96cf"),n("7a23")),r=n("64aa"),i=n("eb60"),o=Object(a["defineComponent"])({setup:function(e){var t=Object(a["ref"])(r["a"].locale);return function(e,n){var C=Object(a["resolveComponent"])("router-view"),E=Object(a["resolveComponent"])("a-config-provider");return Object(a["openBlock"])(),Object(a["createBlock"])(E,{locale:"en"===t.value?Object(a["unref"])(r["a"]):Object(a["unref"])(i["a"])},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(C)]})),_:1},8,["locale"])}}});n("0b37");const A=o;var c=A,s=n("afbc"),d=n("be92"),l=n("0613"),T=n("14b4"),u=(n("9d5c"),n("a600")),R=(n("0032"),n("e32c")),I=(n("de6a"),n("9a63")),L=(n("7d24"),n("dfae")),O=(n("5783"),n("59a5")),S=(n("eb14"),n("39ab")),N=(n("06f4"),n("fc25")),f=(n("4955"),n("28da")),h=(n("ee00"),n("bb76")),g=(n("dd48"),n("2fc4")),p=(n("d88f"),n("fe2b")),M=(n("68c7"),n("de1b")),m=(n("f2ef"),n("3af3")),b=(n("cd17"),n("ed3b")),D=(n("5704"),n("b558")),P=(n("c68a"),n("0020")),w=(n("9a33"),n("f933")),U=(n("6ba6"),n("5efb")),F=(n("fbd8"),n("55f1")),v=(n("2ef0"),n("9839")),V=(n("922d"),n("09d9")),k=(n("d13f"),n("ccb9")),B=(n("55ec"),n("a79d")),y=(n("7f6b"),n("8592")),Y=(n("d2a3"),n("4df5")),G=(n("d3b7"),n("159b"),[Y["a"],y["a"],B["a"],k["a"],V["a"],v["a"],F["a"],U["a"],w["a"],P["a"],D["a"],b["a"],m["a"],M["a"],p["a"],g["a"],h["a"],f["a"],N["a"],S["a"],O["a"],L["a"],I["a"],R["a"],u["a"]]),H=function(e){G.forEach(e.use)};function X(e,t,n,C,E,r){var i=Object(a["resolveComponent"])("a-spin");return C.visible?Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,ref:"loadingRef",class:Object(a["normalizeClass"])(["u-loading",{fullscreen:n.fullscreen}])},[Object(a["createVNode"])(i,{tip:n.loadingText},null,8,["tip"])],2)),[[a["vShow"],C.visible]]):Object(a["createCommentVNode"])("",!0)}var _={name:"ULoading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup:function(){var e=Object(a["ref"])(!0),t=function(){e.value=!1};return Object(a["onBeforeUnmount"])((function(){e.value=!1})),{visible:e,hide:t}}},W=(n("19ce"),n("6b0d")),x=n.n(W);const K=x()(_,[["render",X],["__scopeId","data-v-15225de2"]]);var Z=K,Q={install:function(e){e.component("ULoading",Z)}};function q(e){e.use(H),e.use(Q)}n("a4b1"),n("ac1f"),n("466d"),n("2ca0"),n("a630"),n("3ca3"),n("6062"),n("ddb0"),n("5319");var j=n("c2c6"),z={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OVERWRITE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},J=n("db05"),$=n.n(J),ee=function(){j["languages"].registerCompletionItemProvider("sql",{provideCompletionItems:function(e,t,n,C){var E=e.getValueInRange({startLineNumber:t.lineNumber,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}),a=E.match(/(\S+)$/),r=[];if(a){var i=a[0].toUpperCase();z.keywords.forEach((function(e){e.startsWith(i)&&r.push({label:e,kind:j["languages"].CompletionItemKind.Keyword,insertText:e})})),z.operators.forEach((function(e){e.startsWith(i)&&r.push({label:e,kind:j["languages"].CompletionItemKind.Operator,insertText:e})})),z.builtinFunctions.forEach((function(e){e.startsWith(i)&&r.push({label:e,kind:j["languages"].CompletionItemKind.Function,insertText:e})}))}return{suggestions:Array.from(new Set(r))}}}),j["languages"].registerDocumentFormattingEditProvider("sql",{provideDocumentFormattingEdits:function(e){var t=$.a.format(e.getValue());return[{range:e.getFullModelRange(),text:t.replace(/\s-\s/g,"-")}]}});var e={base:"vs",inherit:!1,colors:{"editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#DEDEDE","editor.lineHighlightBackground":"#EFF8FF","editor.selectionBackground":"#D5D5EF","editorLineNumber.foreground":"#999999","editorSuggestWidget.background":"#FFFFFF","editorSuggestWidget.selectedBackground":"#EFF8FF"},rules:[{token:"comment",foreground:"8E908C"},{token:"comments",foreground:"8E908C"},{token:"keyword",foreground:"8959A8"},{token:"predefined",foreground:"11B7BE"},{token:"doubleString",foreground:"AB1010"},{token:"singleString",foreground:"AB1010"},{token:"number",foreground:"AB1010"},{token:"string.sql",foreground:"718C00"}]};j["editor"].defineTheme("arcticSql",e)},te=function(){j["languages"].register({id:"logLanguage"}),j["languages"].setMonarchTokensProvider("logLanguage",{tokenizer:{root:[[/INFO.*/,"custom-info"],[/ERROR.*/,"custom-error"],[/WARN.*/,"custom-warn"],[/DEBUG.*/,"custom-debug"],[/\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}/,"custom-date"]]}});var e={base:"vs",inherit:!1,colors:{"editor.background":"#f6f7f8"},rules:[{token:"custom-info",foreground:"808080"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"custom-warn",foreground:"ffa500"},{token:"custom-debug",foreground:"ffa500"},{token:"custom-date",foreground:"008800"},{token:"",background:"#f6f7f8"}]};j["editor"].defineTheme("logTheme",e)};ee(),te();n("8608");var ne=["stroke"],Ce=["xlink:href"],Ee=Object(a["defineComponent"])({props:{iconClass:null,className:null,isStroke:{type:Boolean},disabled:{type:Boolean}},emits:["click"],setup:function(e,t){var n=t.emit,C=e,E=Object(a["ref"])(!1),r=Object(a["computed"])((function(){return C.isStroke?C.disabled?"#999":E.value?"#1890ff":"#333":""})),i=Object(a["computed"])((function(){return"#icon-".concat(C.iconClass)})),o=Object(a["computed"])((function(){var e="svg-icon ";return C.disabled&&(e+="disabled "),C.className&&(e+=C.className),e}));function A(){C.disabled||n("click")}function c(){E.value=!0}function s(){E.value=!1}return function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",{class:Object(a["normalizeClass"])(Object(a["unref"])(o)),"aria-hidden":"true",onClick:A,stroke:Object(a["unref"])(r),onMouseover:c,onMouseout:s},[Object(a["createElementVNode"])("use",{"xlink:href":Object(a["unref"])(i)},null,8,Ce)],42,ne)}}});n("6170");const ae=x()(Ee,[["__scopeId","data-v-31b97cb0"]]);var re=ae,ie=n("e82a"),oe=n("d257"),Ae=Object(a["createApp"])(c).use(Object(d["a"])());Ae.component("svg-icon",re),Ae.use(T["a"]),q(Ae),Object(E["a"])(regeneratorRuntime.mark((function e(){var t,n,E,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=Object(l["a"])(),n=Object(oe["f"])("token")||"",e.next=5,ie["a"].getCurUserInfo(n);case 5:E=e.sent,E&&t.updateUserInfo({userName:E.userName});case 7:return e.prev=7,a=Object(l["a"])(),s["a"].beforeEach((function(e,t,n){if("/login"===e.fullPath){if(a.userInfo.userName)return n("/");a.setHistoryPath({path:t.path,query:Object(C["a"])({},t.query)})}n()})),Ae.use(s["a"]),Ae.mount("#app"),e.finish(7);case 13:case"end":return e.stop()}}),e,null,[[0,,7,13]])})))()},cf33:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-sqlinit",use:"icon-sqlinit-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});r.a.add(i);t["default"]=i},d257:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"h",(function(){return E})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return A})),n.d(t,"f",(function(){return c}));n("b680"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("a15b"),n("b64b"),n("5319"),n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),n("9861"),n("466d"),n("841c");var C=function(e){if(0===e)return"0";if(null===e||void 0===e)return"unknown";var t=1024;return e=C&&t=E&&t=a&&tC&&e<=E?"".concat(Math.floor(e/n)," min"):e>E&&e<=30*E?"".concat(Math.floor(e/C)," h"):">30 d"},i=function(){var e=function(e){var t=e||"";return t.length<2?"0".concat(t):t},t={yyyy:function(e){return e.getFullYear()},MM:function(t){return e(String(t.getMonth()+1))},dd:function(t){return e(String(t.getDate()))},HH:function(t){return e(String(t.getHours()))},mm:function(t){return e(String(t.getMinutes()))},ss:function(t){return e(String(t.getSeconds()))}},n=new RegExp(Object.keys(t).join("|"),"g");return function(e){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";var E=+e;return E=new Date(E),C.replace(n,(function(e){return t[e](E)}))}}();function o(e){var t,n=this,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var E=arguments.length,a=new Array(E),r=0;r\n\n\n\n\n\n\n\n\n'});r.a.add(i);t["default"]=i},e583:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-sqlmax",use:"icon-sqlmax-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});r.a.add(i);t["default"]=i},e5fc:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),r=n.n(a),i=new E.a({id:"icon-database",use:"icon-database-usage",viewBox:"0 0 16 16",content:'\n\n'});r.a.add(i);t["default"]=i},e82a:function(e,t,n){"use strict";var C=n("d4ec"),E=n("bee2"),a=n("b32d"),r=function(){function e(){Object(C["a"])(this,e)}return Object(E["a"])(e,[{key:"login",value:function(e){return a["a"].post("ams/v1/login",e,{returnCode:!0})}},{key:"logout",value:function(){return a["a"].post("ams/v1/logout",{handleError:!1,returnCode:!0})}},{key:"getCurUserInfo",value:function(e){return a["a"].get("ams/v1/login/current",{handleError:!1,params:{token:e}}).then((function(e){return e}))}}]),e}();t["a"]=new r}}); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/app.d31dfe91.js b/ams/dashboard/src/main/resources/static/js/app.d31dfe91.js deleted file mode 100644 index b733a3aaee..0000000000 --- a/ams/dashboard/src/main/resources/static/js/app.d31dfe91.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function n(n){for(var C,E,r=n[0],o=n[1],A=n[2],c=0,d=[];c'});i.a.add(r);n["default"]=r},"0613":function(e,n,t){"use strict";var C=t("be92"),E=function(){return{userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}},a={getShowTablesMenu:function(e){return e.isShowTablesMenu}};n["a"]=Object(C["b"])("datalake",{state:E,getters:a,actions:{updateTablesMenu:function(e){this.isShowTablesMenu=e},updateUserInfo:function(e){this.userInfo=e},setHistoryPath:function(e){this.historyPathInfo=e}}})},"0b37":function(e,n,t){"use strict";t("86eb")},"0beb":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-arctic",use:"icon-arctic-usage",viewBox:"0 0 16 16",content:''});i.a.add(r);n["default"]=r},"14b4":function(e,n,t){"use strict";var C=t("47e2"),E={overview:"Overview",catalogs:"Catalogs",catalog:"Catalog",tables:"Tables",optimizing:"Optimizing",terminal:"Terminal",settings:"Settings",resource:"Resource",optimizergroup:"Optimizer Groups",systemSetting:"System Settings",containerSetting:"Container Settings",backHome:"Back to Home",version:"Version",userGuide:"User Guide",logout:"Logout",logoutModalTitle:"Log out of the ams?",order:"Order",cluster:"Cluster",database:"Database | Databases",table:"Table | Tables",size:"Size",file:"File",files:"Files",field:"Field",type:"Type",implementation:"Implementation",required:"Required",createTime:"Create Time",primaryKey:"Primary Key",partitionKey:"Partition Key",schema:"Schema",mainMetrics:"Main Metrics",changeTableMetrics:"Change Table Metrics",baseTableMetrics:"Base Table Metrics",properties:"Properties",tableProperties:"Table Properties",sourceField:"Source Field",transform:"Transform",description:"Description",metric:"Metric",key:"Key",value:"Value",metricValue:"Metric Value",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time",quota:"Quota",createTable:"Create Table",createDatabase:"Create Database",databaseName:"Database Name",tableName:"Table Name",selectPlaceholder:"Please select {selectPh}",inputPlaceholder:"Please input {inputPh}",filterPlaceholder:"Filter {inputPh}",basicInformation:"Basic Information",partition:"Partition",fileCount:"File Count",fsn:"FSN",commitTime:"Commit Time",commitId:"Commit ID",path:"Path",snapshotId:"Snapshot ID",fileType:"File Type",fileContent:"File Content",startTime:"Start Time",finishTime:"Finish Time",duration:"Duration",optimizeType:"Optimize Type",parallelism:"Parallelism",input:"Input",output:"Output",count:"Count",time:"Time",operation:"Operation",operationDetails:"Operation Details",copy:"Copy",optimizer:"Optimizer",optimizers:"Optimizers",container:"Container",status:"Status",optimizingStatus:"Optimizing Status",optimzerGroup:"Optimizer Group",allGroups:"All Groups",resourceOccupation:"Resource Occupation",core:"Core",scaleOut:"Scale-Out",release:"Release",optimizeStatus:"Optimize Status",fileSize:"File Size",records:"Records",occupation:"Occupation",optimizerGroup:"Optimizer Group",optimizerGroups:"Optimizer Groups",resourceAllocation:"Resource Allocation",resourceGroup:"Resource Group",releaseOptModalTitle:"Release this optimizer?",cancelOptimizingProcessOptModalTitle:"Cancel the optimizing process of this table?",welecomeTip:"Welcome to Amoro!",signin:"Sign in",username:"Username",password:"Password",pause:"Pause",run:"Run",maximize:"Maximize",format:"Format",fullscreen:"Full screen",recovery:"Recovery",result:"Result",noResult:"No results",log:"Log",ready:"Ready",running:"Running",cancel:"Cancel",finish:"Finish",fail:"Fail",loading:"Loading",sqlShortcuts:"SQL Shortcuts",use:"Use",upgrade:"Upgrade",upgrading:"Upgrading",upgradeHiveTable:"Upgrade Hive Table",ok:"Ok",partitonField:"Partiton Field",otherProperties:"Other Properties",errorMessage:"Error Message",copySuccess:"Copy Success",duplicateKey:"duplicate key",lastUpgradingFailed:"Last Upgrading Failed",data:"Data",resourceCpu:"Resource Cpu",resourceMemory:"Resource Memory",resourceUsage:"Resource Usage",top10:"Top 10",numIndex:"No.",cpu:"CPU",memory:"Memory",lastTime:"Last {time}",list:"List",name:"Name",tableFormat:"Table Format",metastore:"Metastore",basic:"Basic",storageConfigName:"Storage",authenticationConfig:"Authentication",upload:"Upload",save:"Save",remove:"Remove",edit:"Edit",deleteCatalogModalTitle:"Remove this catalog?",cannotDeleteModalTitle:"Can't remove this catalog.",cannotDeleteModalContent:"This catalog has been used.",success:"Success",optimzeGroup:"Optimize Group",propertiesMemory:"properties.{type}.memory",leavePageModalTitle:"Leave this page?",leavePageModalContent:"Changes you made may not be saved.",leave:"Leave",invalidInput:"Invalid input",addgroup:"Add Group",editgroup:"Edit Group",cannotDeleteGroupModalTitle:"Can't remove this group.",cannotDeleteGroupModalContent:"This group has been used.",deleteGroupModalTitle:"Remove this group",processId:"Process Id",tasks:"Tasks",recordChartTitle:"Table record count",fileChartTitle:"Table file count",totalRecords:"total-records",totalEqualityDeletes:"eq-delete-records",totalPositionDeletes:"pos-delete-records",totalFiles:"total-files",totalDataFiles:"data-files",totalDeleteFiles:"delete-files",branches:"branches",tags:"tags",nothingToShow:"Nothing to show",filterBranchesOrTags:"Filter branches/tags",findATag:"Find a tag"},a={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},i={en:E,zh:a},r={en:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}},zh:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}}},o=Object(C["a"])({locale:"en",fallbackLocale:"zh",globalInjection:!0,legacy:!1,messages:i,datetimeFormats:r});n["a"]=o},"19ce":function(e,n,t){"use strict";t("2d6d")},"1d43":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-optimizing",use:"icon-optimizing-usage",viewBox:"0 0 14 14",content:'\n\n\n'});i.a.add(r);n["default"]=r},"23f1":function(e,n,t){var C={"./amoro.svg":"010b","./arctic.svg":"0beb","./branch.svg":"4b1e","./catalogs.svg":"5fbf","./database.svg":"e5fc","./format.svg":"494b","./hive.svg":"9ac0","./iceberg.svg":"bbf7","./optimizers.svg":"54e7","./optimizing.svg":"1d43","./overview.svg":"d5c0","./paimon.svg":"75b0","./settings.svg":"9c15","./slide.svg":"9246","./sqldebug.svg":"563a","./sqlinit.svg":"cf33","./sqlmax.svg":"e583","./sqlpause.svg":"7607","./tables.svg":"3590","./tag.svg":"ac42","./terminal.svg":"b789"};function E(e){var n=a(e);return t(n)}function a(e){if(!t.o(C,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return C[e]}E.keys=function(){return Object.keys(C)},E.resolve=a,e.exports=E,E.id="23f1"},"2d6d":function(e,n,t){},3590:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-tables",use:"icon-tables-usage",viewBox:"0 0 16 16",content:'\n\n'});i.a.add(r);n["default"]=r},"494b":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-format",use:"icon-format-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});i.a.add(r);n["default"]=r},"4b1e":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-branch",use:"icon-branch-usage",viewBox:"0 0 1024 1024",content:''});i.a.add(r);n["default"]=r},"54e7":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-optimizers",use:"icon-optimizers-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});i.a.add(r);n["default"]=r},"563a":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-sqldebug",use:"icon-sqldebug-usage",viewBox:"0 0 16 16",content:'\n\n\n'});i.a.add(r);n["default"]=r},"5fbf":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-catalogs",use:"icon-catalogs-usage",viewBox:"0 0 16 16",content:'\n\n'});i.a.add(r);n["default"]=r},6170:function(e,n,t){"use strict";t("aea9")},"75b0":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-paimon",use:"icon-paimon-usage",viewBox:"0 0 307.34 218.61",content:'\n \n \n \n \n \n \n \n \n \n'});i.a.add(r);n["default"]=r},7607:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-sqlpause",use:"icon-sqlpause-usage",viewBox:"0 0 16 16",content:'\n\n\n'});i.a.add(r);n["default"]=r},8608:function(e,n,t){"use strict";t("d81d"),t("d3b7"),t("ddb0");var C=function(e){return e.keys().map(e)},E=t("23f1");C(E)},"86eb":function(e,n,t){},9246:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-slide",use:"icon-slide-usage",viewBox:"0 0 10 28",content:'\n \x3c!-- Generator: Sketch 56.2 (81672) - https://sketch.com --\x3e\n slide\n Created with Sketch.\n \n \n \n \n \n \n \n \n \n \n \n \n'});i.a.add(r);n["default"]=r},"9ac0":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-hive",use:"icon-hive-usage",viewBox:"0 0 16 16",content:''});i.a.add(r);n["default"]=r},"9c15":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-settings",use:"icon-settings-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n\n'});i.a.add(r);n["default"]=r},a4b1:function(e,n,t){},ac42:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});i.a.add(r);n["default"]=r},aea9:function(e,n,t){},afbc:function(e,n,t){"use strict";t("d3b7"),t("3ca3"),t("ddb0");var C=t("6c02"),E=function(){return t.e("chunk-7746c7af").then(t.bind(null,"bb51"))},a=function(){return t.e("chunk-e27313ec").then(t.bind(null,"8cdb"))},i=function(){return t.e("chunk-7a087ab9").then(t.bind(null,"adb5"))},r=function(){return t.e("chunk-65d125fa").then(t.bind(null,"bfa3"))},o=function(){return t.e("chunk-ca733964").then(t.bind(null,"06e7"))},A=function(){return t.e("chunk-1909d840").then(t.bind(null,"4139"))},c=function(){return t.e("chunk-225a1827").then(t.bind(null,"1150"))},d=function(){return t.e("chunk-eb399e28").then(t.bind(null,"61c2"))},s=function(){return t.e("chunk-0e36844c").then(t.bind(null,"d323"))},l=function(){return t.e("chunk-6a44215d").then(t.bind(null,"9ed6"))},T=function(){return t.e("chunk-083d7ab6").then(t.bind(null,"67df"))},u=function(){return t.e("chunk-572c8fb5").then(t.bind(null,"2240"))},R=[{path:"/",name:"Home",redirect:"introduce",component:E,children:[{path:"catalogs",name:"Catalogs",component:i},{path:"tables",name:"Tables",component:r,children:[{path:"create",name:"Create",component:c}]},{path:"hive-tables",name:"HiveTables",component:o,children:[{path:"upgrade",name:"Upgrade",component:A}]},{path:"optimizing",name:"Optimizing",component:u},{path:"settings",name:"Settings",component:d},{path:"terminal",name:"Terminal",component:s},{path:"introduce",name:"Introduce",component:T}]},{path:"/login",name:"Login",component:l},{path:"/404",name:"Page404",component:a},{path:"/:pathMatch(.*)*",name:"Page404",component:a}],I=Object(C["a"])({history:Object(C["b"])(),routes:R});n["a"]=I},b32d:function(e,n,t){"use strict";t("3b18");var C=t("f64c"),E=t("1da1"),a=(t("96cf"),t("c740"),t("b0c0"),t("a434"),t("d3b7"),t("d9e2"),t("99af"),t("ac1f"),t("1276"),t("bc3a")),i=t.n(a),r=t("0613"),o=t("afbc"),A="/",c=[];function d(e){e.method||(e.method="get")}var s={baseURL:A,timeout:45e3,headers:{"Content-Type":"application/json"}},l={method:"get",useToken:!1,handleError:!0,returnCode:!1,supportCancel:!1,routeChangeCancel:!1},T=i.a.create(s),u=function(e){var n=c.findIndex((function(n){return n.name===e.requestMark}));n>-1&&c.splice(n,1)};T.interceptors.response.use(function(){var e=Object(E["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u(n.config),200!==n.status||!n.data){e.next=5;break}return e.abrupt("return",n);case 5:return e.abrupt("return",Promise.reject(new Error("网络错误")));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),(function(e){var n;null!==e&&void 0!==e&&e.response&&u(null===e||void 0===e||null===(n=e.response)||void 0===n?void 0:n.config);return i.a.isCancel(e)?new Promise((function(){})):Promise.reject(e)}));var R=function(e){var n=Object.assign({},l,e),t="".concat(n.method,"-").concat((n.url||"").split("?")[0]);if(n.requestMark=t,n.supportCancel){var E=c.findIndex((function(e){return e.name===t}));E>-1&&(c[E].cancel(),c.splice(E,1))}var a=i.a.CancelToken.source();return n.cancelToken=a.token,c.push({name:t,cancel:a.cancel,routeChangeCancel:n.routeChangeCancel}),n.useToken&&d(n),T(n).then((function(e){var t=e.data,E=t.code,a=t.message;if(n.returnCode)return e.data;if(0===E||200===E)return e.data.result;if(403===E){var i=Object(r["a"])();return i.updateUserInfo({userName:""}),n.handleError&&C["a"].error(a||"need login"),o["a"].push({path:"/login"})}return Promise.reject(new Error(a||"error"))})).catch((function(e){return n.handleError&&C["a"].error(e.message),Promise.reject(e)}))};["get","delete"].forEach((function(e){R[e]=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Object.assign({},t,{url:n,method:e}),R(t)}})),["post","put"].forEach((function(e){R[e]=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return C=Object.assign({},C,{url:n,method:e,data:t}),R(C)}})),n["a"]=R},b789:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-terminal",use:"icon-terminal-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});i.a.add(r);n["default"]=r},bbf7:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-iceberg",use:"icon-iceberg-usage",viewBox:"0 0 16 16",content:''});i.a.add(r);n["default"]=r},cd49:function(e,n,t){"use strict";t.r(n);var C=t("5530"),E=t("1da1"),a=(t("e260"),t("e6cf"),t("cca6"),t("a79df"),t("96cf"),t("7a23")),i=t("64aa"),r=t("eb60"),o=Object(a["defineComponent"])({setup:function(e){var n=Object(a["ref"])(i["a"].locale);return function(e,t){var C=Object(a["resolveComponent"])("router-view"),E=Object(a["resolveComponent"])("a-config-provider");return Object(a["openBlock"])(),Object(a["createBlock"])(E,{locale:"en"===n.value?Object(a["unref"])(i["a"]):Object(a["unref"])(r["a"])},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(C)]})),_:1},8,["locale"])}}});t("0b37");const A=o;var c=A,d=t("afbc"),s=t("be92"),l=t("0613"),T=t("14b4"),u=(t("9d5c"),t("a600")),R=(t("0032"),t("e32c")),I=(t("de6a"),t("9a63")),L=(t("7d24"),t("dfae")),O=(t("5783"),t("59a5")),S=(t("eb14"),t("39ab")),N=(t("06f4"),t("fc25")),f=(t("4955"),t("28da")),h=(t("ee00"),t("bb76")),g=(t("dd48"),t("2fc4")),p=(t("d88f"),t("fe2b")),M=(t("68c7"),t("de1b")),m=(t("f2ef"),t("3af3")),b=(t("cd17"),t("ed3b")),D=(t("5704"),t("b558")),P=(t("c68a"),t("0020")),w=(t("9a33"),t("f933")),U=(t("6ba6"),t("5efb")),F=(t("fbd8"),t("55f1")),v=(t("2ef0"),t("9839")),V=(t("922d"),t("09d9")),k=(t("d13f"),t("ccb9")),B=(t("55ec"),t("a79d")),y=(t("7f6b"),t("8592")),Y=(t("d2a3"),t("4df5")),G=(t("d3b7"),t("159b"),[Y["a"],y["a"],B["a"],k["a"],V["a"],v["a"],F["a"],U["a"],w["a"],P["a"],D["a"],b["a"],m["a"],M["a"],p["a"],g["a"],h["a"],f["a"],N["a"],S["a"],O["a"],L["a"],I["a"],R["a"],u["a"]]),H=function(e){G.forEach(e.use)};function X(e,n,t,C,E,i){var r=Object(a["resolveComponent"])("a-spin");return C.visible?Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,ref:"loadingRef",class:Object(a["normalizeClass"])(["u-loading",{fullscreen:t.fullscreen}])},[Object(a["createVNode"])(r,{tip:t.loadingText},null,8,["tip"])],2)),[[a["vShow"],C.visible]]):Object(a["createCommentVNode"])("",!0)}var _={name:"ULoading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup:function(){var e=Object(a["ref"])(!0),n=function(){e.value=!1};return Object(a["onBeforeUnmount"])((function(){e.value=!1})),{visible:e,hide:n}}},W=(t("19ce"),t("6b0d")),x=t.n(W);const K=x()(_,[["render",X],["__scopeId","data-v-15225de2"]]);var Z=K,Q={install:function(e){e.component("ULoading",Z)}};function q(e){e.use(H),e.use(Q)}t("a4b1"),t("ac1f"),t("466d"),t("2ca0"),t("a630"),t("3ca3"),t("6062"),t("ddb0"),t("5319");var j=t("c2c6"),z={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OVERWRITE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},J=t("db05"),$=t.n(J),ee=function(){j["languages"].registerCompletionItemProvider("sql",{provideCompletionItems:function(e,n,t,C){var E=e.getValueInRange({startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column}),a=E.match(/(\S+)$/),i=[];if(a){var r=a[0].toUpperCase();z.keywords.forEach((function(e){e.startsWith(r)&&i.push({label:e,kind:j["languages"].CompletionItemKind.Keyword,insertText:e})})),z.operators.forEach((function(e){e.startsWith(r)&&i.push({label:e,kind:j["languages"].CompletionItemKind.Operator,insertText:e})})),z.builtinFunctions.forEach((function(e){e.startsWith(r)&&i.push({label:e,kind:j["languages"].CompletionItemKind.Function,insertText:e})}))}return{suggestions:Array.from(new Set(i))}}}),j["languages"].registerDocumentFormattingEditProvider("sql",{provideDocumentFormattingEdits:function(e){var n=$.a.format(e.getValue());return[{range:e.getFullModelRange(),text:n.replace(/\s-\s/g,"-")}]}});var e={base:"vs",inherit:!1,colors:{"editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#DEDEDE","editor.lineHighlightBackground":"#EFF8FF","editor.selectionBackground":"#D5D5EF","editorLineNumber.foreground":"#999999","editorSuggestWidget.background":"#FFFFFF","editorSuggestWidget.selectedBackground":"#EFF8FF"},rules:[{token:"comment",foreground:"8E908C"},{token:"comments",foreground:"8E908C"},{token:"keyword",foreground:"8959A8"},{token:"predefined",foreground:"11B7BE"},{token:"doubleString",foreground:"AB1010"},{token:"singleString",foreground:"AB1010"},{token:"number",foreground:"AB1010"},{token:"string.sql",foreground:"718C00"}]};j["editor"].defineTheme("arcticSql",e)},ne=function(){j["languages"].register({id:"logLanguage"}),j["languages"].setMonarchTokensProvider("logLanguage",{tokenizer:{root:[[/INFO.*/,"custom-info"],[/ERROR.*/,"custom-error"],[/WARN.*/,"custom-warn"],[/DEBUG.*/,"custom-debug"],[/\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}/,"custom-date"]]}});var e={base:"vs",inherit:!1,colors:{"editor.background":"#f6f7f8"},rules:[{token:"custom-info",foreground:"808080"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"custom-warn",foreground:"ffa500"},{token:"custom-debug",foreground:"ffa500"},{token:"custom-date",foreground:"008800"},{token:"",background:"#f6f7f8"}]};j["editor"].defineTheme("logTheme",e)};ee(),ne();t("8608");var te=["stroke"],Ce=["xlink:href"],Ee=Object(a["defineComponent"])({props:{iconClass:null,className:null,isStroke:{type:Boolean},disabled:{type:Boolean}},emits:["click"],setup:function(e,n){var t=n.emit,C=e,E=Object(a["ref"])(!1),i=Object(a["computed"])((function(){return C.isStroke?C.disabled?"#999":E.value?"#1890ff":"#333":""})),r=Object(a["computed"])((function(){return"#icon-".concat(C.iconClass)})),o=Object(a["computed"])((function(){var e="svg-icon ";return C.disabled&&(e+="disabled "),C.className&&(e+=C.className),e}));function A(){C.disabled||t("click")}function c(){E.value=!0}function d(){E.value=!1}return function(e,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("svg",{class:Object(a["normalizeClass"])(Object(a["unref"])(o)),"aria-hidden":"true",onClick:A,stroke:Object(a["unref"])(i),onMouseover:c,onMouseout:d},[Object(a["createElementVNode"])("use",{"xlink:href":Object(a["unref"])(r)},null,8,Ce)],42,te)}}});t("6170");const ae=x()(Ee,[["__scopeId","data-v-31b97cb0"]]);var ie=ae,re=t("e82a"),oe=t("d257"),Ae=Object(a["createApp"])(c).use(Object(s["a"])());Ae.component("svg-icon",ie),Ae.use(T["a"]),q(Ae),Object(E["a"])(regeneratorRuntime.mark((function e(){var n,t,E,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n=Object(l["a"])(),t=Object(oe["f"])("token")||"",e.next=5,re["a"].getCurUserInfo(t);case 5:E=e.sent,E&&n.updateUserInfo({userName:E.userName});case 7:return e.prev=7,a=Object(l["a"])(),d["a"].beforeEach((function(e,n,t){if("/login"===e.fullPath){if(a.userInfo.userName)return t("/");a.setHistoryPath({path:n.path,query:Object(C["a"])({},n.query)})}t()})),Ae.use(d["a"]),Ae.mount("#app"),e.finish(7);case 13:case"end":return e.stop()}}),e,null,[[0,,7,13]])})))()},cf33:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-sqlinit",use:"icon-sqlinit-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});i.a.add(r);n["default"]=r},d257:function(e,n,t){"use strict";t.d(n,"a",(function(){return C})),t.d(n,"h",(function(){return E})),t.d(n,"e",(function(){return a})),t.d(n,"d",(function(){return i})),t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"g",(function(){return A})),t.d(n,"f",(function(){return c}));t("b680"),t("4d63"),t("c607"),t("ac1f"),t("2c3e"),t("25f0"),t("a15b"),t("b64b"),t("5319"),t("d3b7"),t("3ca3"),t("ddb0"),t("2b3d"),t("9861"),t("466d"),t("841c");var C=function(e){if(0===e)return"0";if(null===e||void 0===e)return"unknown";var n=1024;return e=C&&n=E&&n=a&&nC&&e<=E?"".concat(Math.floor(e/t)," min"):e>E&&e<=30*E?"".concat(Math.floor(e/C)," h"):">30 d"},r=function(){var e=function(e){var n=e||"";return n.length<2?"0".concat(n):n},n={yyyy:function(e){return e.getFullYear()},MM:function(n){return e(String(n.getMonth()+1))},dd:function(n){return e(String(n.getDate()))},HH:function(n){return e(String(n.getHours()))},mm:function(n){return e(String(n.getMinutes()))},ss:function(n){return e(String(n.getSeconds()))}},t=new RegExp(Object.keys(n).join("|"),"g");return function(e){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";var E=+e;return E=new Date(E),C.replace(t,(function(e){return n[e](E)}))}}();function o(e){var n,t=this,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var E=arguments.length,a=new Array(E),i=0;i\n\n\n\n\n\n\n\n\n'});i.a.add(r);n["default"]=r},e583:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-sqlmax",use:"icon-sqlmax-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});i.a.add(r);n["default"]=r},e5fc:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),a=t("21a1"),i=t.n(a),r=new E.a({id:"icon-database",use:"icon-database-usage",viewBox:"0 0 16 16",content:'\n\n'});i.a.add(r);n["default"]=r},e82a:function(e,n,t){"use strict";var C=t("d4ec"),E=t("bee2"),a=t("b32d"),i=function(){function e(){Object(C["a"])(this,e)}return Object(E["a"])(e,[{key:"login",value:function(e){return a["a"].post("ams/v1/login",e,{returnCode:!0})}},{key:"logout",value:function(){return a["a"].post("ams/v1/logout",{handleError:!1,returnCode:!0})}},{key:"getCurUserInfo",value:function(e){return a["a"].get("ams/v1/login/current",{handleError:!1,params:{token:e}}).then((function(e){return e}))}}]),e}();n["a"]=new i}}); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-06f4a222.b41b4c13.js b/ams/dashboard/src/main/resources/static/js/chunk-06f4a222.b41b4c13.js new file mode 100644 index 0000000000..5821895eca --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/chunk-06f4a222.b41b4c13.js @@ -0,0 +1,40 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06f4a222"],{"0300":function(t,e,n){"use strict";n("df0a")},"04d1":function(t,e,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"07ac":function(t,e,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},1448:function(t,e,n){"use strict";n("d360")},"1fb5":function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=f,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function u(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=c(t),a=r[0],s=r[1],l=new o(h(t,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function d(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"235c":function(t,e,n){"use strict";n("4adc")},2532:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),l=n("ab13"),c=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},"3c7f":function(t,e,n){"use strict";var r=n("7a23"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=i,a=n("b3f0");function s(t){for(var e=1;e255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function f(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new r["a"](20),g=null;function v(t,e){g&&d(g,e),g=p.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in i)return d(e,i[r]),v(t,e),e;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var u=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==h.length)return 3===h.length?f(e,+h[0],+h[1],+h[2],1):f(e,0,0,0,1);g=c(h.pop());case"rgb":return 3!==h.length?void f(e,0,0,0,1):(f(e,l(h[0]),l(h[1]),l(h[2]),g),v(t,e),e);case"hsla":return 4!==h.length?void f(e,0,0,0,1):(h[3]=c(h[3]),m(h,e),v(t,e),e);case"hsl":return 3!==h.length?void f(e,0,0,0,1):(m(h,e),v(t,e),e);default:return}}f(e,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(f(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),v(t,e),e):void f(e,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(f(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),v(t,e),e):void f(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=c(t[1]),i=c(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return e=e||[],f(e,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,c=(s+a)/2;if(0===l)e=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+u-f:o===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,c];return null!=t[3]&&d.push(t[3]),d}}function _(t,e){var n=y(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return M(n,4===n.length?"rgba":"rgb")}}function x(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=e[i],c=e[a],u=r-i;return n[0]=o(h(l[0],c[0],u)),n[1]=o(h(l[1],c[1],u)),n[2]=o(h(l[2],c[2],u)),n[3]=s(h(l[3],c[3],u)),n}}var w=O;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=y(e[i]),c=y(e[a]),u=r-i,f=M([o(h(l[0],c[0],u)),o(h(l[1],c[1],u)),o(h(l[2],c[2],u)),s(h(l[3],c[3],u))],"rgba");return n?{color:f,leftIndex:i,rightIndex:a,value:r}:f}}var j=S;function C(t,e,n,r){var i=y(t);if(t)return i=b(i),null!=e&&(i[0]=a(e)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),M(m(i),"rgba")}function T(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),M(n,"rgba")}function M(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function k(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return M([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},"4adc":function(t,e,n){},"4e82":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),l=n("577e"),c=n("d039"),u=n("addb"),h=n("a640"),f=n("04d1"),d=n("d998"),p=n("2d00"),g=n("512c"),v=[],y=i(v.sort),m=i(v.push),b=c((function(){v.sort(void 0)})),_=c((function(){v.sort(null)})),x=h("sort"),O=!c((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;rl(n)?1:-1}};r({target:"Array",proto:!0,forced:w},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(O)return void 0===t?y(e):y(e,t);var n,r,i=[],l=s(e);for(r=0;rh)n=s[h++],r&&!l(i,n)||c(f,t?[n,i[n]]:i[n]);return f}};t.exports={entries:u(!0),values:u(!1)}},"726e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return f}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n=0)c=l*n.length;else for(var f=0;f */ +e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+t[e+h],h+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+h],h+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*g}},"939f":function(t,e,n){},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),l=n("1a2d"),c=n("7156"),u=n("3a9b"),h=n("d9b5"),f=n("c04e"),d=n("d039"),p=n("241c").f,g=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",_=i[b],x=_.prototype,O=i.TypeError,w=o("".slice),S=o("".charCodeAt),j=function(t){var e=f(t,"number");return"bigint"==typeof e?e:C(e)},C=function(t){var e,n,r,i,o,a,s,l,c=f(t,"number");if(h(c))throw O("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=m(c),e=S(c,0),43===e||45===e){if(n=S(c,2),88===n||120===n)return NaN}else if(48===e){switch(S(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=w(c,2),a=o.length,s=0;si)return NaN;return parseInt(o,r)}return+c};if(a(b,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var T,M=function(t){var e=arguments.length<1?0:_(j(t)),n=this;return u(x,n)&&d((function(){y(n)}))?c(Object(e),n,M):e},k=r?p(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),I=0;k.length>I;I++)l(_,T=k[I])&&!l(M,T)&&v(M,T,g(_,T));M.prototype=x,x.constructor=M,s(i,b,M)}},b311:function(t,e,n){ +/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */ +(function(e,n){t.exports=n()})(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return A}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function c(t){try{return document.execCommand(t)}catch(e){return!1}}var u=function(t){var e=l()(t);return c("cut"),e},h=u;function f(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}var d=function(t,e){var n=f(t);e.container.appendChild(n);var r=l()(n);return c("copy"),n.remove(),r},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=d(t.value,e):(n=l()(t),c("copy")),n},g=p;function v(t){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==v(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?g(o,{container:r}):i?"cut"===n?h(i):g(i,{container:r}):void 0},m=y;function b(t){return b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===b(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=m({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return I("action",t)}},{key:"defaultTarget",value:function(t){var e=I("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return I("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return g(t,e)}},{key:"cut",value:function(t){return h(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),A=D},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),i=n(438);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return i(document.body,t,e,n)}t.exports=o},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r + * @license MIT + */ +var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),c.alloc(+t)}function _(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function O(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function w(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:S(t,e,n,r,i);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return L(r)}e.Buffer=c,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return f(null,t,e,n)},c.allocUnsafe=function(t){return d(null,t)},c.allocUnsafeSlow=function(t){return d(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),u=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return j(this,t,e,n);case"utf8":case"utf-8":return C(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function G(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,r,o){return o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(i*=256))r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return W(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(X(t))}function tt(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b6bbb:function(t,e,n){},bfa3:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"create",(function(){return Ct})),n.d(r,"copy",(function(){return Tt})),n.d(r,"clone",(function(){return Mt})),n.d(r,"set",(function(){return kt})),n.d(r,"add",(function(){return It})),n.d(r,"scaleAndAdd",(function(){return Dt})),n.d(r,"sub",(function(){return At})),n.d(r,"len",(function(){return Pt})),n.d(r,"length",(function(){return Lt})),n.d(r,"lenSquare",(function(){return Nt})),n.d(r,"lengthSquare",(function(){return Et})),n.d(r,"mul",(function(){return Rt})),n.d(r,"div",(function(){return Bt})),n.d(r,"dot",(function(){return zt})),n.d(r,"scale",(function(){return Ft})),n.d(r,"normalize",(function(){return Vt})),n.d(r,"distance",(function(){return Ht})),n.d(r,"dist",(function(){return Gt})),n.d(r,"distanceSquare",(function(){return Wt})),n.d(r,"distSquare",(function(){return Ut})),n.d(r,"negate",(function(){return Yt})),n.d(r,"lerp",(function(){return Xt})),n.d(r,"applyTransform",(function(){return qt})),n.d(r,"min",(function(){return Zt})),n.d(r,"max",(function(){return Kt}));var i={};n.r(i),n.d(i,"create",(function(){return Er})),n.d(i,"identity",(function(){return Rr})),n.d(i,"copy",(function(){return Br})),n.d(i,"mul",(function(){return zr})),n.d(i,"translate",(function(){return Fr})),n.d(i,"rotate",(function(){return Vr})),n.d(i,"scale",(function(){return Hr})),n.d(i,"invert",(function(){return Gr})),n.d(i,"clone",(function(){return Wr}));var o={};n.r(o),n.d(o,"init",(function(){return Yi})),n.d(o,"dispose",(function(){return Xi})),n.d(o,"disposeAll",(function(){return qi})),n.d(o,"getInstance",(function(){return Zi})),n.d(o,"registerPainter",(function(){return Ki})),n.d(o,"version",(function(){return $i}));var a={};n.r(a),n.d(a,"updateProps",(function(){return ou})),n.d(a,"initProps",(function(){return au})),n.d(a,"removeElement",(function(){return lu})),n.d(a,"removeElementWithFadeOut",(function(){return uu})),n.d(a,"isElementRemoved",(function(){return su})),n.d(a,"extendShape",(function(){return Oy})),n.d(a,"extendPath",(function(){return Sy})),n.d(a,"registerShape",(function(){return jy})),n.d(a,"getShapeClass",(function(){return Cy})),n.d(a,"makePath",(function(){return Ty})),n.d(a,"makeImage",(function(){return My})),n.d(a,"mergePath",(function(){return Iy})),n.d(a,"resizePath",(function(){return Dy})),n.d(a,"subPixelOptimizeLine",(function(){return Ay})),n.d(a,"subPixelOptimizeRect",(function(){return Py})),n.d(a,"subPixelOptimize",(function(){return Ly})),n.d(a,"getTransform",(function(){return Ny})),n.d(a,"applyTransform",(function(){return Ey})),n.d(a,"transformDirection",(function(){return Ry})),n.d(a,"groupTransition",(function(){return Fy})),n.d(a,"clipPointsByRect",(function(){return Vy})),n.d(a,"clipRectByRect",(function(){return Hy})),n.d(a,"createIcon",(function(){return Gy})),n.d(a,"linePolygonIntersect",(function(){return Wy})),n.d(a,"lineLineIntersect",(function(){return Uy})),n.d(a,"setTooltipConfig",(function(){return qy})),n.d(a,"traverseElements",(function(){return Ky})),n.d(a,"Group",(function(){return Fi})),n.d(a,"Image",(function(){return dl})),n.d(a,"Text",(function(){return Fl})),n.d(a,"Circle",(function(){return hv})),n.d(a,"Ellipse",(function(){return pv})),n.d(a,"Sector",(function(){return Av})),n.d(a,"Ring",(function(){return Nv})),n.d(a,"Polygon",(function(){return Fv})),n.d(a,"Polyline",(function(){return Gv})),n.d(a,"Rect",(function(){return Ol})),n.d(a,"Line",(function(){return Xv})),n.d(a,"BezierCurve",(function(){return Qv})),n.d(a,"Arc",(function(){return ey})),n.d(a,"IncrementalDisplayable",(function(){return my})),n.d(a,"CompoundPath",(function(){return ry})),n.d(a,"LinearGradient",(function(){return sy})),n.d(a,"RadialGradient",(function(){return cy})),n.d(a,"BoundingRect",(function(){return di})),n.d(a,"OrientedBoundingRect",(function(){return gy})),n.d(a,"Point",(function(){return ri})),n.d(a,"Path",(function(){return ol}));var s={};n.r(s),n.d(s,"createList",(function(){return CS})),n.d(s,"getLayoutRect",(function(){return of})),n.d(s,"createDimensions",(function(){return BO})),n.d(s,"dataStack",(function(){return TS})),n.d(s,"createSymbol",(function(){return vb})),n.d(s,"createScale",(function(){return MS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return kS})),n.d(s,"getECData",(function(){return Vl})),n.d(s,"enableHoverEmphasis",(function(){return Gc})),n.d(s,"createTextStyle",(function(){return IS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return eo})),n.d(l,"round",(function(){return ro})),n.d(l,"asc",(function(){return io})),n.d(l,"getPrecision",(function(){return oo})),n.d(l,"getPrecisionSafe",(function(){return ao})),n.d(l,"getPixelPrecision",(function(){return so})),n.d(l,"getPercentWithPrecision",(function(){return lo})),n.d(l,"MAX_SAFE_INTEGER",(function(){return uo})),n.d(l,"remRadian",(function(){return ho})),n.d(l,"isRadianAroundZero",(function(){return fo})),n.d(l,"parseDate",(function(){return go})),n.d(l,"quantity",(function(){return vo})),n.d(l,"quantityExponent",(function(){return yo})),n.d(l,"nice",(function(){return mo})),n.d(l,"quantile",(function(){return bo})),n.d(l,"reformIntervals",(function(){return _o})),n.d(l,"isNumeric",(function(){return Oo})),n.d(l,"numericToNumber",(function(){return xo}));var c={};n.r(c),n.d(c,"parse",(function(){return go})),n.d(c,"format",(function(){return _h}));var u={};n.r(u),n.d(u,"extendShape",(function(){return Oy})),n.d(u,"extendPath",(function(){return Sy})),n.d(u,"makePath",(function(){return Ty})),n.d(u,"makeImage",(function(){return My})),n.d(u,"mergePath",(function(){return Iy})),n.d(u,"resizePath",(function(){return Dy})),n.d(u,"createIcon",(function(){return Gy})),n.d(u,"updateProps",(function(){return ou})),n.d(u,"initProps",(function(){return au})),n.d(u,"getTransform",(function(){return Ny})),n.d(u,"clipPointsByRect",(function(){return Vy})),n.d(u,"clipRectByRect",(function(){return Hy})),n.d(u,"registerShape",(function(){return jy})),n.d(u,"getShapeClass",(function(){return Cy})),n.d(u,"Group",(function(){return Fi})),n.d(u,"Image",(function(){return dl})),n.d(u,"Text",(function(){return Fl})),n.d(u,"Circle",(function(){return hv})),n.d(u,"Ellipse",(function(){return pv})),n.d(u,"Sector",(function(){return Av})),n.d(u,"Ring",(function(){return Nv})),n.d(u,"Polygon",(function(){return Fv})),n.d(u,"Polyline",(function(){return Gv})),n.d(u,"Rect",(function(){return Ol})),n.d(u,"Line",(function(){return Xv})),n.d(u,"BezierCurve",(function(){return Qv})),n.d(u,"Arc",(function(){return ey})),n.d(u,"IncrementalDisplayable",(function(){return my})),n.d(u,"CompoundPath",(function(){return ry})),n.d(u,"LinearGradient",(function(){return sy})),n.d(u,"RadialGradient",(function(){return cy})),n.d(u,"BoundingRect",(function(){return di}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Bh})),n.d(h,"toCamelCase",(function(){return zh})),n.d(h,"normalizeCssArray",(function(){return Fh})),n.d(h,"encodeHTML",(function(){return Gh})),n.d(h,"formatTpl",(function(){return Xh})),n.d(h,"getTooltipMarker",(function(){return qh})),n.d(h,"formatTime",(function(){return Zh})),n.d(h,"capitalFirst",(function(){return Kh})),n.d(h,"truncateText",(function(){return ka})),n.d(h,"getTextRect",(function(){return YS}));var f={};n.r(f),n.d(f,"map",(function(){return wt["map"]})),n.d(f,"each",(function(){return wt["each"]})),n.d(f,"indexOf",(function(){return wt["indexOf"]})),n.d(f,"inherits",(function(){return wt["inherits"]})),n.d(f,"reduce",(function(){return wt["reduce"]})),n.d(f,"filter",(function(){return wt["filter"]})),n.d(f,"bind",(function(){return wt["bind"]})),n.d(f,"curry",(function(){return wt["curry"]})),n.d(f,"isArray",(function(){return wt["isArray"]})),n.d(f,"isString",(function(){return wt["isString"]})),n.d(f,"isObject",(function(){return wt["isObject"]})),n.d(f,"isFunction",(function(){return wt["isFunction"]})),n.d(f,"extend",(function(){return wt["extend"]})),n.d(f,"defaults",(function(){return wt["defaults"]})),n.d(f,"clone",(function(){return wt["clone"]})),n.d(f,"merge",(function(){return wt["merge"]}));var d={};n.r(d),n.d(d,"version",(function(){return y_})),n.d(d,"dependencies",(function(){return m_})),n.d(d,"PRIORITY",(function(){return N_})),n.d(d,"init",(function(){return kx})),n.d(d,"connect",(function(){return Ix})),n.d(d,"disConnect",(function(){return Dx})),n.d(d,"disconnect",(function(){return Ax})),n.d(d,"dispose",(function(){return Px})),n.d(d,"getInstanceByDom",(function(){return Lx})),n.d(d,"getInstanceById",(function(){return Nx})),n.d(d,"registerTheme",(function(){return Ex})),n.d(d,"registerPreprocessor",(function(){return Rx})),n.d(d,"registerProcessor",(function(){return Bx})),n.d(d,"registerPostInit",(function(){return zx})),n.d(d,"registerPostUpdate",(function(){return Fx})),n.d(d,"registerUpdateLifecycle",(function(){return Vx})),n.d(d,"registerAction",(function(){return Hx})),n.d(d,"registerCoordinateSystem",(function(){return Gx})),n.d(d,"getCoordinateSystemDimensions",(function(){return Wx})),n.d(d,"registerLocale",(function(){return nh})),n.d(d,"registerLayout",(function(){return Ux})),n.d(d,"registerVisual",(function(){return Yx})),n.d(d,"registerLoading",(function(){return Zx})),n.d(d,"setCanvasCreator",(function(){return Kx})),n.d(d,"registerMap",(function(){return $x})),n.d(d,"getMap",(function(){return Qx})),n.d(d,"registerTransform",(function(){return Jx})),n.d(d,"dataTool",(function(){return tO})),n.d(d,"zrender",(function(){return o})),n.d(d,"matrix",(function(){return i})),n.d(d,"vector",(function(){return r})),n.d(d,"zrUtil",(function(){return wt})),n.d(d,"color",(function(){return Nn})),n.d(d,"throttle",(function(){return cm})),n.d(d,"helper",(function(){return s})),n.d(d,"use",(function(){return rO})),n.d(d,"setPlatformAPI",(function(){return gi["d"]})),n.d(d,"parseGeoJSON",(function(){return US})),n.d(d,"parseGeoJson",(function(){return US})),n.d(d,"number",(function(){return l})),n.d(d,"time",(function(){return c})),n.d(d,"graphic",(function(){return u})),n.d(d,"format",(function(){return h})),n.d(d,"util",(function(){return f})),n.d(d,"env",(function(){return Ot["a"]})),n.d(d,"List",(function(){return RO})),n.d(d,"Model",(function(){return Hu})),n.d(d,"Axis",(function(){return fj})),n.d(d,"ComponentModel",(function(){return df})),n.d(d,"ComponentView",(function(){return Bg})),n.d(d,"SeriesModel",(function(){return Eg})),n.d(d,"ChartView",(function(){return om})),n.d(d,"innerDrawElementOnCanvas",(function(){return Qb})),n.d(d,"extendComponentModel",(function(){return dj})),n.d(d,"extendComponentView",(function(){return pj})),n.d(d,"extendSeriesModel",(function(){return gj})),n.d(d,"extendChartView",(function(){return vj}));n("99af");var p=n("7a23"),g={class:"tables-wrap"},v={key:0,class:"tables-content"},y={class:"g-flex-jsb"},m={class:"g-flex-col"},b={class:"g-flex"},_=["title"],x={key:0,class:"create-time"},O={class:"table-info g-flex-ac"},w={class:"text-color"},S={class:"text-color"},j={class:"text-color"},C={class:"text-color"},T={class:"content"};function M(t,e,n,r,i,o){var a=Object(p["resolveComponent"])("a-divider"),s=Object(p["resolveComponent"])("u-details"),l=Object(p["resolveComponent"])("a-tab-pane"),c=Object(p["resolveComponent"])("u-files"),u=Object(p["resolveComponent"])("a-tabs"),h=Object(p["resolveComponent"])("router-view");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",g,[t.isSecondaryNav?(Object(p["openBlock"])(),Object(p["createBlock"])(h,{key:1,onGoBack:t.goBack},null,8,["onGoBack"])):(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",v,[Object(p["createElementVNode"])("div",y,[Object(p["createElementVNode"])("div",m,[Object(p["createElementVNode"])("div",b,[Object(p["createElementVNode"])("span",{title:t.baseInfo.tableName,class:"table-name g-text-nowrap"},Object(p["toDisplayString"])(t.baseInfo.tableName),9,_),t.isIceberg?Object(p["createCommentVNode"])("",!0):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",x,Object(p["toDisplayString"])("".concat(t.$t("createTime"),": ").concat(t.baseInfo.createTime)),1))]),Object(p["createElementVNode"])("div",O,[Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])("".concat(t.$t("table")).concat(t.$t("size")))+": ",1),Object(p["createElementVNode"])("span",w,Object(p["toDisplayString"])(t.baseInfo.size),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("file"))+": ",1),Object(p["createElementVNode"])("span",S,Object(p["toDisplayString"])(t.baseInfo.file),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("averageFileSize"))+": ",1),Object(p["createElementVNode"])("span",j,Object(p["toDisplayString"])(t.baseInfo.averageFile),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("tableFormat"))+": ",1),Object(p["createElementVNode"])("span",C,Object(p["toDisplayString"])(t.baseInfo.tableFormat),1)])])])]),Object(p["createElementVNode"])("div",T,[Object(p["createVNode"])(u,{activeKey:t.activeKey,"onUpdate:activeKey":e[0]||(e[0]=function(e){return t.activeKey=e}),destroyInactiveTabPane:"",onChange:t.onChangeTab},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(l,{key:"Details",tab:"Details",forceRender:""},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(s,{onSetBaseDetailInfo:t.setBaseDetailInfo,ref:"detailRef"},null,8,["onSetBaseDetailInfo"])]})),_:1}),t.detailLoaded?(Object(p["openBlock"])(),Object(p["createBlock"])(l,{key:"Files",tab:"Files"},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(c,{hasPartition:t.baseInfo.hasPartition},null,8,["hasPartition"])]})),_:1})):Object(p["createCommentVNode"])("",!0),(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(t.tabConfigs,(function(t){return Object(p["openBlock"])(),Object(p["createBlock"])(l,{key:t.key,tab:"".concat(t.label)},{default:Object(p["withCtx"])((function(){return[(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["resolveDynamicComponent"])("U".concat(t.key))))]})),_:2},1032,["tab"])})),128))]})),_:1},8,["activeKey","onChange"])])]))])}var k=n("5530"),I=(n("ac1f"),n("5319"),n("1da1")),D=(n("96cf"),n("4de4"),n("d3b7"),n("d81d"),n("b64b"),n("47e2")),A=n("6c02"),P=n("5738"),L=n("d257"),N={class:"table-detail g-flex"},E={class:"left-content"},R={key:0,class:"table-attrs"},B={class:"attr-title"},z={key:1,class:"table-attrs"},F={class:"attr-title"},V={class:"table-attrs"},H={class:"attr-title"},G={class:"right-content"},W={key:0,class:"table-attrs"},U={class:"attr-title"},Y={class:"table-attrs"},X={class:"attr-title"},q={class:"table-attrs"},Z={class:"attr-title"},K=Object(p["defineComponent"])({emits:["setBaseDetailInfo"],setup:function(t,e){var n=e.expose,r=e.emit,i=Object(D["b"])(),o=i.t,a=Object(A["d"])(),s=Object(p["computed"])((function(){return Object(k["a"])({},a.query)}));Object(p["watch"])((function(){return a.query}),(function(t){(null===t||void 0===t?void 0:t.catalog)&&"/tables"===a.path&&f()}));var l={fileCount:"File Count",totalSize:"Total Size",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time"},c=Object(k["a"])(Object(k["a"])({},l),{},{baseWatermark:"Base Watermark"}),u=Object(k["a"])(Object(k["a"])({},l),{},{tableWatermark:"Table Watermark"}),h=Object(p["reactive"])({detailLoading:!1,baseDetailInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},pkList:[],partitionColumnList:[],properties:[],changeMetrics:[],baseMetrics:[],schema:[]}),f=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,i,o,a,l,f,d,p,g,v,y,m,b,_,x,O,w;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(w=function(){r("setBaseDetailInfo",h.baseDetailInfo)},t.prev=1,e=s.value,n=e.catalog,i=e.db,o=e.table,n&&i&&o){t.next=5;break}return t.abrupt("return");case 5:return h.detailLoading=!0,t.next=8,Object(P["l"])(Object(k["a"])({},s.value));case 8:a=t.sent,l=a.pkList,f=void 0===l?[]:l,d=a.tableType,p=a.partitionColumnList,g=void 0===p?[]:p,v=a.properties,y=a.changeMetrics,m=a.schema,b=a.createTime,_=a.tableIdentifier,x=a.baseMetrics,O=a.tableSummary,h.baseDetailInfo=Object(k["a"])(Object(k["a"])({},O),{},{tableType:d,tableName:(null===_||void 0===_?void 0:_.tableName)||"",createTime:b?Object(L["b"])(b):"",hasPartition:!(null===g||void 0===g||!g.length)}),h.pkList=f||[],h.partitionColumnList=g||[],h.schema=m||[],h.changeMetrics=Object.keys(u||{}).map((function(t){return{metric:u[t],value:"lastCommitTime"===t||"tableWatermark"===t?(y||{})[t]?Object(L["b"])((y||{})[t]):"":(y||{})[t]}})).filter((function(t){return t.value})),h.baseMetrics=Object.keys(c||{}).map((function(t){return{metric:c[t],value:"lastCommitTime"===t||"baseWatermark"===t?(x||{})[t]?Object(L["b"])((x||{})[t]):"":(x||{})[t]}})),h.properties=Object.keys(v||{}).map((function(t){return{key:t,value:v[t]}})),w(),t.next=22;break;case 20:t.prev=20,t.t0=t["catch"](1);case 22:return t.prev=22,h.detailLoading=!1,t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[1,20,22,25]])})));return function(){return t.apply(this,arguments)}}();Object(p["onMounted"])((function(){f()})),n({getTableDetails:f});var d=Object(p["shallowReactive"])([{title:o("field"),dataIndex:"field",width:"30%"},{title:o("type"),dataIndex:"type",width:"20%"},{title:o("required"),dataIndex:"required",width:"20%",customRender:function(t){return String(null===t||void 0===t?void 0:t.value)}},{title:o("description"),dataIndex:"comment",ellipsis:!0}]),g=Object(p["shallowReactive"])([{title:o("field"),dataIndex:"field",width:"30%"},{title:o("sourceField"),dataIndex:"sourceField",width:"30%"},{title:o("transform"),dataIndex:"transform",ellipsis:!0}]),v=Object(p["shallowReactive"])([{title:o("metric"),dataIndex:"metric",width:"50%",ellipsis:!0},{title:o("value"),dataIndex:"value",ellipsis:!0}]),y=Object(p["shallowReactive"])([{title:o("key"),dataIndex:"key",width:"50%",ellipsis:!0},{title:o("value"),dataIndex:"value",ellipsis:!0}]);return function(t,e){var n=Object(p["resolveComponent"])("a-table"),r=Object(p["resolveComponent"])("u-loading");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",N,[Object(p["createElementVNode"])("div",E,[Object(p["unref"])(h).pkList&&Object(p["unref"])(h).pkList.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",R,[Object(p["createElementVNode"])("p",B,Object(p["toDisplayString"])(t.$t("primaryKey")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(d),"data-source":Object(p["unref"])(h).pkList,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["unref"])(h).partitionColumnList&&Object(p["unref"])(h).partitionColumnList.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",z,[Object(p["createElementVNode"])("p",F,Object(p["toDisplayString"])(t.$t("partitionKey")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(g),"data-source":Object(p["unref"])(h).partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["createElementVNode"])("div",V,[Object(p["createElementVNode"])("p",H,Object(p["toDisplayString"])(t.$t("schema")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(d),"data-source":Object(p["unref"])(h).schema,pagination:!1},null,8,["columns","data-source"])])]),Object(p["createElementVNode"])("div",G,[Object(p["unref"])(h).changeMetrics&&Object(p["unref"])(h).changeMetrics.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",W,[Object(p["createElementVNode"])("p",U,Object(p["toDisplayString"])(t.$t("changeTableMetrics")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(v),"data-source":Object(p["unref"])(h).changeMetrics,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["createElementVNode"])("div",Y,[Object(p["createElementVNode"])("p",X,Object(p["toDisplayString"])(t.$t("baseTableMetrics")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(v),"data-source":Object(p["unref"])(h).baseMetrics,pagination:!1},null,8,["columns","data-source"])]),Object(p["createElementVNode"])("div",q,[Object(p["createElementVNode"])("p",Z,Object(p["toDisplayString"])(t.$t("properties")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(y),"data-source":Object(p["unref"])(h).properties,pagination:!1},null,8,["columns","data-source"])])]),Object(p["unref"])(h).detailLoading?(Object(p["openBlock"])(),Object(p["createBlock"])(r,{key:0})):Object(p["createCommentVNode"])("",!0)])}}}),$=(n("0300"),n("6b0d")),Q=n.n($);const J=Q()(K,[["__scopeId","data-v-1a704e23"]]);var tt=J,et=(n("159b"),n("b356")),nt=n("e9d5"),rt=n("411c"),it={class:"table-partitons"},ot={class:"filter-wrap"},at=Object(p["createTextVNode"])("All"),st=Object(p["defineComponent"])({props:{hasPartition:{type:Boolean}},setup:function(t){var e=t,n=Object(p["ref"])(!1),r=Object(D["b"])(),i=r.t,o=Object(p["shallowReactive"])([{title:i("partition"),dataIndex:"partition",ellipsis:!0},{title:i("fileCount"),dataIndex:"fileCount",width:120,ellipsis:!0},{title:i("size"),dataIndex:"size",width:120,ellipsis:!0},{title:i("lastCommitTime"),dataIndex:"lastCommitTime",width:200,ellipsis:!0}]),a=Object(p["shallowReactive"])([{title:i("file"),dataIndex:"file",ellipsis:!0},{title:i("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:i("size"),dataIndex:"size",width:120,ellipsis:!0},{title:i("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:i("commitId"),dataIndex:"commitId",width:200,ellipsis:!0},{title:i("path"),dataIndex:"path",ellipsis:!0,scopedSlots:{customRender:"path"}}]),s=Object(p["reactive"])([]),l=Object(p["reactive"])([]),c=Object(p["ref"])(""),u=Object(p["ref"])(0),h=Object(p["ref"])(!1),f=Object(p["reactive"])(Object(et["a"])()),d=Object(p["reactive"])(Object(et["a"])()),g=Object(A["d"])(),v=g.query,y=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},v)),m=Object(p["ref"])("");function b(t){return _.apply(this,arguments)}function _(){return _=Object(I["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return m.value=e,t.next=3,x();case 3:case"end":return t.stop()}}),t)}))),_.apply(this,arguments)}function x(){return O.apply(this,arguments)}function O(){return O=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,h.value=!0,s.length=0,t.next=5,Object(P["j"])(Object(k["a"])(Object(k["a"])({},y),{},{filter:m.value,page:f.current,pageSize:f.pageSize}));case 5:e=t.sent,n=e.list,r=e.total,f.total=r,(n||[]).forEach((function(t){t.lastCommitTime=t.lastCommitTime?Object(L["b"])(t.lastCommitTime):"",s.push(t)})),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](0);case 13:return t.prev=13,h.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,11,13,16]])}))),O.apply(this,arguments)}function w(t){var r=t.current,i=void 0===r?1:r,o=t.pageSize,a=void 0===o?25:o;!n.value&&e.hasPartition?(f.current=i,a!==f.pageSize&&(f.current=1),f.pageSize=a):(d.current=i,a!==d.pageSize&&(d.current=1),d.pageSize=a),S()}function S(){e.hasPartition?n.value?j():x():j()}function j(){return C.apply(this,arguments)}function C(){return C=Object(I["a"])(regeneratorRuntime.mark((function t(){var n,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,l.length=0,h.value=!0,n=Object(k["a"])(Object(k["a"])({},y),{},{partition:e.hasPartition?encodeURIComponent(c.value):null,specId:u.value,page:d.current,pageSize:d.pageSize}),t.next=6,Object(P["i"])(n);case 6:r=t.sent,i=r.list,o=r.total,d.total=o,(i||[]).forEach((function(t){t.commitTime=t.commitTime?Object(L["b"])(t.commitTime):"",l.push(t)})),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:return t.prev=14,h.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,12,14,17]])}))),C.apply(this,arguments)}function T(t){c.value=t.partition,u.value=t.specId,n.value=!n.value,n.value&&(d.current=1,j())}return Object(p["onMounted"])((function(){n.value=!1,e.hasPartition?x():j()})),function(e,r){var i=Object(p["resolveComponent"])("a-input-search"),u=Object(p["resolveComponent"])("a-button"),g=Object(p["resolveComponent"])("a-table"),v=Object(p["resolveComponent"])("a-breadcrumb-item"),y=Object(p["resolveComponent"])("a-breadcrumb"),_=Object(p["resolveComponent"])("a-tooltip");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",it,[!n.value&&t.hasPartition?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createElementVNode"])("div",ot,[Object(p["createVNode"])(i,{value:m.value,"onUpdate:value":r[1]||(r[1]=function(t){return m.value=t}),placeholder:e.$t("fileSearchPlaceholder"),onSearch:r[2]||(r[2]=function(t){return b(t)}),style:{width:"350px"}},Object(p["createSlots"])({prefix:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(Object(p["unref"])(nt["a"]))]})),_:2},[m.value?{name:"suffix",fn:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(Object(p["unref"])(rt["a"]),{onClick:r[0]||(r[0]=function(t){return b("")}),class:"input-clear-icon"})]}))}:void 0]),1032,["value","placeholder"])]),Object(p["createVNode"])(g,{rowKey:"partiton",columns:Object(p["unref"])(o),"data-source":Object(p["unref"])(s),pagination:Object(p["unref"])(f),onChange:w,loading:h.value},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["partition"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(u,{key:0,type:"link",onClick:function(t){return T(n)}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.partition),1)]})),_:2},1032,["onClick"])):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])],64)):(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[t.hasPartition?(Object(p["openBlock"])(),Object(p["createBlock"])(y,{key:0,separator:">"},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(v,{onClick:T,class:"text-active"},{default:Object(p["withCtx"])((function(){return[at]})),_:1}),Object(p["createVNode"])(v,null,{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])("".concat(e.$t("partition")," ").concat(c.value)),1)]})),_:1})]})),_:1})):Object(p["createCommentVNode"])("",!0),Object(p["createVNode"])(g,{rowKey:"file",columns:Object(p["unref"])(a),"data-source":Object(p["unref"])(l),pagination:Object(p["unref"])(d),onChange:w,loading:h.value},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["file"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(_,{key:0},{title:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.file),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.file),1)]})),_:2},1024)):Object(p["createCommentVNode"])("",!0),"path"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(_,{key:1},{title:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.path),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.path),1)]})),_:2},1024)):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("d5c2");const lt=Q()(st,[["__scopeId","data-v-6488dbec"]]);var ct=lt,ut=(n("3b18"),n("f64c")),ht=n("b311"),ft=n.n(ht),dt=t=>{const e=void 0===(null===t||void 0===t?void 0:t.appendToBody)||t.appendToBody;return{toClipboard(t,n){return new Promise((r,i)=>{const o=document.createElement("button"),a=new ft.a(o,{text:()=>t,action:()=>"copy",container:void 0!==n?n:document.body});a.on("success",t=>{a.destroy(),r(t)}),a.on("error",t=>{a.destroy(),i(t)}),e&&document.body.appendChild(o),o.click(),e&&document.body.removeChild(o)})}}},pt={class:"table-operations"},gt=["onClick"],vt=Object(p["defineComponent"])({setup:function(t){var e=dt(),n=e.toClipboard,r=Object(D["b"])(),i=r.t,o=Object(p["shallowReactive"])([{title:i("time"),dataIndex:"ts",width:"30%"},{title:i("operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]),a=Object(p["ref"])(!1),s=Object(p["ref"])(""),l=Object(p["reactive"])([]),c=Object(p["ref"])(!1),u=Object(p["reactive"])(Object(et["a"])()),h=Object(A["d"])(),f=h.query,d=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},f));function g(){return v.apply(this,arguments)}function v(){return v=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,c.value=!0,l.length=0,t.next=5,Object(P["g"])(Object(k["a"])(Object(k["a"])({},d),{},{page:u.current,pageSize:u.pageSize}));case 5:e=t.sent,n=e.total,r=e.list,u.total=n,(r||[]).forEach((function(t){t.ts=t.ts?Object(L["b"])(t.ts):"",l.push(t)})),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](0);case 13:return t.prev=13,c.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,11,13,16]])}))),v.apply(this,arguments)}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,e=t.current,n=void 0===e?1:e,r=t.pageSize,i=void 0===r?25:r;u.current=n,i!==u.pageSize&&(u.current=1),u.pageSize=i,g()}function m(t){a.value=!0,s.value=t.operation}function b(){a.value=!1}function _(){return x.apply(this,arguments)}function x(){return x=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n(s.value);case 3:ut["a"].success(i("copySuccess")),b(),t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])}))),x.apply(this,arguments)}return Object(p["onMounted"])((function(){g()})),function(t,e){var n=Object(p["resolveComponent"])("a-table"),r=Object(p["resolveComponent"])("a-button"),i=Object(p["resolveComponent"])("a-modal");return Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],null,[Object(p["createElementVNode"])("div",pt,[Object(p["createVNode"])(n,{rowKey:"partiton",columns:Object(p["unref"])(o),"data-source":Object(p["unref"])(l),pagination:Object(p["unref"])(u),onChange:y,loading:c.value},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["operation"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",{key:0,class:"text-active g-max-line-3",onClick:function(t){return m(n)}},Object(p["toDisplayString"])(n.operation),9,gt)):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])]),Object(p["createVNode"])(i,{visible:a.value,width:560,title:"".concat(t.$t("operationDetails")),onCancel:b,class:"operation-wrap"},{footer:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{type:"primary",onClick:_},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("copy")),1)]})),_:1})]})),default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(s.value)+" ",1)]})),_:1},8,["visible","title"])],64)}}});n("da03b");const yt=vt;var mt=yt;function bt(t,e,n,r,i,o){var a=Object(p["resolveComponent"])("a-spin");return Object(p["openBlock"])(),Object(p["createBlock"])(a,{spinning:t.loading,class:"echarts-loading"},{default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("div",{ref:"echart",style:Object(p["normalizeStyle"])({width:t.width,height:t.height}),class:"timeline-echarts"},null,4)]})),_:1},8,["spinning"])} +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var _t=function(t,e){return _t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},_t(t,e)};function xt(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}_t(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var Ot=n("22d1"),wt=n("6d8b"),St=function(t,e){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},St(t,e)};function jt(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}St(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function Ct(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Tt(t,e){return t[0]=e[0],t[1]=e[1],t}function Mt(t){return[t[0],t[1]]}function kt(t,e,n){return t[0]=e,t[1]=n,t}function It(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Dt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function At(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Pt(t){return Math.sqrt(Nt(t))}var Lt=Pt;function Nt(t){return t[0]*t[0]+t[1]*t[1]}var Et=Nt;function Rt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Bt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function zt(t,e){return t[0]*e[0]+t[1]*e[1]}function Ft(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Vt(t,e){var n=Pt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Ht(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Gt=Ht;function Wt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ut=Wt;function Yt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Xt(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function qt(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Zt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Kt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var $t=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Qt=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $t(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new $t(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new $t(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new $t(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new $t(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $t(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Jt=Qt,te=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function ue(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),h=2*c,f=u.left,d=u.top;a.push(f,d),l=l&&o&&f===o[h]&&d===o[h+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?ie(s,a):ie(a,s))}function he(t){return"CANVAS"===t.nodeName.toUpperCase()}var fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,de=[],pe=Ot["a"].browser.firefox&&+Ot["a"].browser.version.split(".")[0]<39;function ge(t,e,n,r){return n=n||{},r?ve(t,e,n):pe&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ve(t,e,n),n}function ve(t,e,n){if(Ot["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(he(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(le(de,t,r,i))return n.zrX=de[0],void(n.zrY=de[1])}n.zrX=n.zrY=0}function ye(t){return t||window.event}function me(t,e,n){if(e=ye(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&ge(t,o,e,n)}else{ge(t,e,e,n);var a=be(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&fe.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function be(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function _e(t,e,n,r){t.addEventListener(e,n,r)}function xe(t,e,n,r){t.removeEventListener(e,n,r)}var Oe=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var we=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&r&&r.length>1){var o=Se(r)/Se(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=je(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Te="silent";function Me(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ke}}function ke(){Oe(this.event)}var Ie=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return jt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ee),De=function(){function t(t,e){this.x=t,this.y=e}return t}(),Ae=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Pe=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hovered=new De(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new Ie,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Jt(o),o}return jt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(wt["each"](Ae,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Ne(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new De(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new De(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Me(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var r=this.storage.getDisplayList(),i=new De(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=Le(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),a!==Te)){i.target=r[o];break}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new we);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new De;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(ee);function Le(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||Te}return!1}function Ne(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}wt["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Pe.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Ne(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Gt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Ee=Pe,Re=32,Be=7;function ze(t){var e=0;while(t>=Re)e|=1&t,t>>=1;return t+e}function Fe(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i=0)i++;return i-e}function Ve(t,e,n){n--;while(e>>1,i(a,t[o])<0?l=o:s=o+1;var c=r-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=a}}function Ge(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}a++;while(a>>1);o(t,e[n+u])>0?a=u+1:l=u}return l}function We(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(t,e[n+u])<0?l=u:a=u+1}return l}function Ue(t,e){var n,r,i=Be,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,r[a]=e,a+=1}function c(){while(a>1){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}}function u(){while(a>1){var t=a-2;t>0&&r[t-1]=Be||d>=Be);if(p)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l=0;l--)t[d+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=s[u--],1===--a){y=!0;break}if(v=a-Ge(t[c],s,0,a,a-1,e),0!==v){for(h-=v,u-=v,a-=v,d=h+1,f=u+1,l=0;l=Be||v>=Be);if(y)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===a){for(h-=r,c-=r,d=h+1,f=c+1,l=r-1;l>=0;l--)t[d+l]=t[f+l];t[h]=s[u]}else{if(0===a)throw new Error;for(f=h-(a-1),l=0;l=0;l--)t[d+l]=t[f+l];t[h]=s[u]}else for(f=h-(a-1),l=0;ls&&(l=s),He(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var Xe=1,qe=2,Ze=4,Ke=!1;function $e(){Ke||(Ke=!0)}function Qe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Je,tn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qe}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&($e(),c.z=0),isNaN(c.z2)&&($e(),c.z2=0),isNaN(c.zlevel)&&($e(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),en=tn;Je=Ot["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var nn=Je,rn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-rn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*rn.bounceIn(2*t):.5*rn.bounceOut(2*t-1)+.5}},on=rn,an=Math.pow,sn=Math.sqrt,ln=1e-8,cn=1e-4,un=sn(3),hn=1/3,fn=Ct(),dn=Ct(),pn=Ct();function gn(t){return t>-ln&&tln||t<-ln}function yn(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function mn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function bn(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),c=t-i,u=s*s-3*a*l,h=s*l-9*a*c,f=l*l-3*s*c,d=0;if(gn(u)&&gn(h))if(gn(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[d++]=p)}else{var g=h*h-4*u*f;if(gn(g)){var v=h/u,y=(p=-s/a+v,-v/2);p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y)}else if(g>0){var m=sn(g),b=u*s+1.5*a*(-h+m),_=u*s+1.5*a*(-h-m);b=b<0?-an(-b,hn):an(b,hn),_=_<0?-an(-_,hn):an(_,hn);p=(-s-(b+_))/(3*a);p>=0&&p<=1&&(o[d++]=p)}else{var x=(2*u*s-3*a*h)/(2*sn(u*u*u)),O=Math.acos(x)/3,w=sn(u),S=Math.cos(O),j=(p=(-s-2*w*S)/(3*a),y=(-s+w*(S+un*Math.sin(O)))/(3*a),(-s+w*(S-un*Math.sin(O)))/(3*a));p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y),j>=0&&j<=1&&(o[d++]=j)}}return d}function _n(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(gn(a)){if(vn(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var u=o*o-4*a*s;if(gn(u))i[0]=-o/(2*a);else if(u>0){var h=sn(u),f=(c=(-o+h)/(2*a),(-o-h)/(2*a));c>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}function xn(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,h=(u-c)*i+c;o[0]=t,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=r}function On(t,e,n,r,i,o,a,s,l,c,u){var h,f,d,p,g,v=.005,y=1/0;fn[0]=l,fn[1]=c;for(var m=0;m<1;m+=.05)dn[0]=yn(t,n,i,a,m),dn[1]=yn(e,r,o,s,m),p=Ut(fn,dn),p=0&&p=0&&c<=1&&(i[l++]=c)}}else{var u=a*a-4*o*s;if(gn(u)){c=-a/(2*o);c>=0&&c<=1&&(i[l++]=c)}else if(u>0){var h=sn(u),f=(c=(-a+h)/(2*o),(-a-h)/(2*o));c>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}function Tn(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Mn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function kn(t,e,n,r,i,o,a,s,l){var c,u=.005,h=1/0;fn[0]=a,fn[1]=s;for(var f=0;f<1;f+=.05){dn[0]=Sn(t,n,i,f),dn[1]=Sn(e,r,o,f);var d=Ut(fn,dn);d=0&&d=1?1:bn(0,r,o,1,t,s)&&yn(0,i,a,1,s[0])}}}var Pn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||wt["noop"],this.ondestroy=t.ondestroy||wt["noop"],this.onrestart=t.onrestart||wt["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(wt["isFunction"])(t)?t:on[t]||An(t)},t}(),Ln=Pn,Nn=n("41ef"),En=n("7a29"),Rn=Array.prototype.slice;function Bn(t,e,n){return(e-t)*n+t}function zn(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=tr,s=e;if(Object(wt["isArrayLike"])(e)){var l=Xn(e);a=l,(1===l&&!Object(wt["isNumber"])(e[0])||2===l&&!Object(wt["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(wt["isNumber"])(e)&&!Object(wt["eqNaN"])(e))a=qn;else if(Object(wt["isString"])(e))if(isNaN(+e)){var c=Nn["parse"](e);c&&(s=c,a=$n)}else a=qn;else if(Object(wt["isGradientObject"])(e)){var u=Object(wt["extend"])({},s);u.colorStops=Object(wt["map"])(e.colorStops,(function(t){return{offset:t.offset,color:Nn["parse"](t.color)}})),Object(En["a"])(e)?a=Qn:Object(En["b"])(e)&&(a=Jn),s=u}0===i?this.valType=a:a===this.valType&&a!==tr||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(wt["isFunction"])(n)?n:on[n]||An(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=nr(r),l=er(r),c=0;c=0;n--)if(l[n].percent<=e)break;n=d(n,c-2)}else{for(n=f;ne)break;n=d(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:d((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?rr:t[u];if(!nr(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[u]=v<1?r.rawValue:i.rawValue;else if(nr(s))s===Zn?zn(y,r[a],i[a],v):Fn(y,r[a],i[a],v);else if(er(s)){var m=r[a],b=i[a],_=s===Qn;t[u]={type:_?"linear":"radial",x:Bn(m.x,b.x,v),y:Bn(m.y,b.y,v),colorStops:Object(wt["map"])(m.colorStops,(function(t,e){var n=b.colorStops[e];return{offset:Bn(t.offset,n.offset,v),color:Yn(zn([],t.color,n.color,v))}})),global:b.global},_?(t[u].x2=Bn(m.x2,b.x2,v),t[u].y2=Bn(m.y2,b.y2,v)):t[u].r=Bn(m.r,b.r,v)}else if(h)zn(y,r[a],i[a],v),o||(t[u]=Yn(y));else{var x=Bn(r[a],i[a],v);o?this._additiveValue=x:t[u]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===qn?t[n]=t[n]+r:e===$n?(Nn["parse"](t[n],rr),Vn(rr,rr,r,1),t[n]=Yn(rr)):e===Zn?Vn(t[n],t[n],r,1):e===Kn&&Hn(t[n],t[n],r,1)},t}(),or=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(wt["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(wt["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,Un(l),r),this._trackKeys.push(a)}s.addKeyframe(t,Un(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),ar=or;function sr(){return(new Date).getTime()}var lr=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return jt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=sr()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(nn(e),!t._paused&&t.update())}this._running=!0,nn(e)},e.prototype.start=function(){this._running||(this._time=sr(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=sr(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=sr()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new ar(t,e.loop);return this.addAnimator(n),n},e}(ee),cr=lr,ur=300,hr=Ot["a"].domSupported,fr=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=wt["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),dr={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},pr=!1;function gr(t){var e=t.pointerType;return"pen"===e||"touch"===e}function vr(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function yr(t){t&&(t.zrByTouch=!0)}function mr(t,e){return me(t.dom,new _r(t,e),!0)}function br(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var _r=function(){function t(t,e){this.stopPropagation=wt["noop"],this.stopImmediatePropagation=wt["noop"],this.preventDefault=wt["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),xr={mousedown:function(t){t=me(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=me(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=me(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=me(this.dom,t);var e=t.toElement||t.relatedTarget;br(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){pr=!0,t=me(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){pr||(t=me(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=me(this.dom,t),yr(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),xr.mousemove.call(this,t),xr.mousedown.call(this,t)},touchmove:function(t){t=me(this.dom,t),yr(t),this.handler.processGesture(t,"change"),xr.mousemove.call(this,t)},touchend:function(t){t=me(this.dom,t),yr(t),this.handler.processGesture(t,"end"),xr.mouseup.call(this,t),+new Date-+this.__lastTouchMomentYr||t<-Yr}var qr=[],Zr=[],Kr=Er(),$r=Math.abs,Qr=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Xr(this.rotation)||Xr(this.x)||Xr(this.y)||Xr(this.scaleX-1)||Xr(this.scaleY-1)||Xr(this.skewX)||Xr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Er(),e?this.getLocalTransform(n):Ur(n),t&&(e?zr(n,t,n):Br(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Ur(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(qr);var n=qr[0]<0?-1:1,r=qr[1]<0?-1:1,i=((qr[0]-n)*e+n)/qr[0]||0,o=((qr[1]-r)*e+r)/qr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Er(),Gr(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(zr(Zr,t.invTransform,e),e=Zr);var n=this.originX,r=this.originY;(n||r)&&(Kr[4]=n,Kr[5]=r,zr(Zr,e,Kr),Zr[4]-=n,Zr[5]-=r,e=Zr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&qt(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&qt(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&$r(t[0]-1)>1e-10&&$r(t[3]-1)>1e-10?Math.sqrt($r(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){ti(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,c=t.x,u=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var d=n+a,p=r+s;e[4]=-d*i-h*p*o,e[5]=-p*o-f*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&Vr(e,e,l),e[4]+=n+c,e[5]+=r+u,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Jr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ti(t,e){for(var n=0;np&&(p=b,gp&&(p=_,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}ai.x=li.x=n.x,ai.y=ci.y=n.y,si.x=ci.x=n.x+n.width,si.y=li.y=n.y+n.height,ai.transform(r),ci.transform(r),si.transform(r),li.transform(r),e.x=ii(ai.x,si.x,li.x,ci.x),e.y=ii(ai.y,si.y,li.y,ci.y);var l=oi(ai.x,si.x,li.x,ci.x),c=oi(ai.y,si.y,li.y,ci.y);e.width=l-e.x,e.height=c-e.y}else e!==n&&t.copy(e,n)},t}(),di=fi,pi=n("d51b"),gi=n("726e"),vi={};function yi(t,e){e=e||gi["a"];var n=vi[e];n||(n=vi[e]=new pi["a"](500));var r=n.get(t);return null==r&&(r=gi["c"].measureText(t,e).width,n.put(t,r)),r}function mi(t,e,n,r){var i=yi(t,e),o=Oi(e),a=_i(0,i,n),s=xi(0,o,r),l=new di(a,s,i,o);return l}function bi(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return mi(i[0],e,n,r);for(var a=new di(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function Si(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",h="top";if(r instanceof Array)l+=wi(r[0],n.width),c+=wi(r[1],n.height),u=null,h=null;else switch(r){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+a,c+=s,h="middle";break;case"top":l+=a/2,c-=i,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=a-i,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",h="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",h="bottom";break}return t=t||{},t.x=l,t.y=c,t.align=u,t.verticalAlign=h,t}var ji="__zr_normal__",Ci=Jr.concat(["ignore"]),Ti=Object(wt["reduce"])(Jr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Mi={},ki=new di(0,0,0,0),Ii=function(){function t(t){this.id=Object(wt["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var c=ki;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mi,n,c):Si(Mi,n,c),i.x=Mi.x,i.y=Mi.y,o=Mi.align,a=Mi.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var h=void 0,f=void 0;"center"===u?(h=.5*c.width,f=.5*c.height):(h=wi(u[0],c.width),f=wi(u[1],c.height)),l=!0,i.originX=-i.x+h+(r?0:c.x),i.originY=-i.y+f+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;p&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Xe,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Lr:Pr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Nn["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Nn["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(wt["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(wt["isObject"])(t))for(var n=t,r=Object(wt["keys"])(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(ji,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===ji,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(wt["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,c),h&&h.useState(t,e,n,c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xe),l}Object(wt["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xe)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(wt["indexOf"])(r,t),o=Object(wt["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f0||i.force&&!a.length){var S=void 0,j=void 0,C=void 0;if(s){j={},f&&(S={});for(_=0;_=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=wt["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=wt["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*c+a}function no(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return wt["isString"](t)?to(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ro(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ji),t=(+t).toFixed(e),n?t:+t}function io(t){return t.sort((function(t,e){return t-e})),t}function oo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ao(t)}function ao(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function so(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function lo(t,e,n){if(!t[e])return 0;var r=wt["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var i=Math.pow(10,n),o=wt["map"](t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=wt["map"](o,(function(t){return Math.floor(t)})),l=wt["reduce"](s,(function(t,e){return t+e}),0),c=wt["map"](o,(function(t,e){return t-s[e]}));while(lu&&(u=c[f],h=f);++s[h],c[h]=0,++l}return s[e]/i}function co(t,e){var n=Math.max(oo(t),oo(e)),r=t+e;return n>Ji?r:ro(r,n)}var uo=9007199254740991;function ho(t){var e=2*Math.PI;return(t%e+e)%e}function fo(t){return t>-Qi&&t=10&&e++,e}function mo(t,e){var n,r=yo(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function bo(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function _o(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r=0||i&&wt["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var _a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],xa=ba(_a),Oa=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return xa(this,t,e)},t}(),wa=new pi["a"](50);function Sa(t){if("string"===typeof t){var e=wa.get(t);return e&&e.image}return t}function ja(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=wa.get(t),a={hostEl:n,cb:r,cbPayload:i};if(o)e=o.image,!Ta(e)&&o.pending.push(a);else{var s=gi["c"].loadImage(t,Ca,Ca);s.__zrImageSrc=t,wa.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function Ca(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var c=yi(n,e);return c>s&&(n="",c=0),s=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=t,i}function Da(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=yi(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Aa(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=yi(t,r)}return""===t&&(t=e.placeholder),t}function Aa(t,e,n,r){for(var i=0,o=0,a=t.length;od&&u){var p=Math.floor(d/l);n=n.slice(0,p)}if(t&&a&&null!=h)for(var g=Ia(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vl&&Ba(n,t.substring(l,c),e,s),Ba(n,r[2],e,s,r[1]),l=Ma.lastIndex}lo){x>0?(m.tokens=m.tokens.slice(0,x),v(m,_,b),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var M=w.width,k=null==M||"auto"===M;if("string"===typeof M&&"%"===M.charAt(M.length-1))O.percentWidth=M,u.push(O),O.contentWidth=yi(O.text,C);else{if(k){var I=w.backgroundColor,D=I&&I.image;D&&(D=Sa(D),Ta(D)&&(O.width=Math.max(O.width,D.width*T/D.height)))}var A=p&&null!=i?i-_:null;null!=A&&A0&&p+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=p}else{var g=Ha(e,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=33&&e<=383}var Fa=Object(wt["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Va(t){return!za(t)||!!Fa[t]}function Ha(t,e,n,r,i){for(var o=[],a=[],s="",l="",c=0,u=0,h=0;hn:i+u+d>n)?u?(s||l)&&(p?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=f,c+=d,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=f,u=d)):p?(o.push(l),a.push(c),l=f,c=d):(o.push(f),a.push(d)):(u+=d,p?(l+=f,c+=d):(l&&(s+=l,l="",c=0),s+=f))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=t,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=i),{accumWidth:u,lines:o,linesWidths:a}}var Ga="__zr_style_"+Math.round(10*Math.random()),Wa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ua={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wa[Ga]=!0;var Ya=["z","z2","invisible"],Xa=["invisible"],qa=function(t){function e(e){return t.call(this,e)||this}return jt(e,t),e.prototype._init=function(e){for(var n=Object(wt["keys"])(e),r=0;r1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(is[0]=ns(i)*n+t,is[1]=es(i)*r+e,os[0]=ns(o)*n+t,os[1]=es(o)*r+e,c(s,is,os),u(l,is,os),i%=rs,i<0&&(i+=rs),o%=rs,o<0&&(o+=rs),i>o&&!a?o+=rs:ii&&(as[0]=ns(d)*n+t,as[1]=es(d)*r+e,c(s,as,s),u(l,as,l))}var ps={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},gs=[],vs=[],ys=[],ms=[],bs=[],_s=[],xs=Math.min,Os=Math.max,ws=Math.cos,Ss=Math.sin,js=Math.abs,Cs=Math.PI,Ts=2*Cs,Ms="undefined"!==typeof Float32Array,ks=[];function Is(t){var e=Math.round(t/Cs*1e8)/1e8;return e%2*Cs}function Ds(t,e){var n=Is(t[0]);n<0&&(n+=Ts);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ts?i=n+Ts:e&&n-i>=Ts?i=n-Ts:!e&&n>i?i=n+(Ts-Is(n-i)):e&&n0&&(this._ux=js(n/Dr/t)||0,this._uy=js(n/Dr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ps.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=js(t-this._xi),r=js(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(ps.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(ps.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(ps.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),ks[0]=r,ks[1]=i,Ds(ks,o),r=ks[0],i=ks[1];var a=i-r;return this.addData(ps.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=ws(i)*n+t,this._yi=Ss(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(ps.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ps.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ms||(this.data=new Float32Array(e));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,ms[0]=ms[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||js(m)>r||h===e-1)&&(p=Math.sqrt(y*y+m*m),i=g,o=v);break;case ps.C:var b=t[h++],_=t[h++],x=(g=t[h++],v=t[h++],t[h++]),O=t[h++];p=wn(i,o,b,_,g,v,x,O,10),i=x,o=O;break;case ps.Q:b=t[h++],_=t[h++],g=t[h++],v=t[h++];p=In(i,o,b,_,g,v,10),i=g,o=v;break;case ps.A:var w=t[h++],S=t[h++],j=t[h++],C=t[h++],T=t[h++],M=t[h++],k=M+T;h+=1;t[h++];d&&(a=ws(T)*j+w,s=Ss(T)*C+S),p=Os(j,C)*xs(Ts,Math.abs(M)),i=ws(k)*j+w,o=Ss(k)*C+S;break;case ps.R:a=i=t[h++],s=o=t[h++];var I=t[h++],D=t[h++];p=2*I+2*D;break;case ps.Z:y=a-i,m=s-o;p=Math.sqrt(y*y+m*m),i=a,o=s;break}p>=0&&(l[u++]=p,c+=p)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,c,u,h,f,d=this.data,p=this._ux,g=this._uy,v=this._len,y=e<1,m=0,b=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=e*c,u))t:for(var x=0;x0&&(t.lineTo(h,f),_=0),O){case ps.M:n=i=d[x++],r=o=d[x++],t.moveTo(i,o);break;case ps.L:a=d[x++],s=d[x++];var S=js(a-i),j=js(s-o);if(S>p||j>g){if(y){var C=l[b++];if(m+C>u){var T=(u-m)/C;t.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break t}m+=C}t.lineTo(a,s),i=a,o=s,_=0}else{var M=S*S+j*j;M>_&&(h=a,f=s,_=M)}break;case ps.C:var k=d[x++],I=d[x++],D=d[x++],A=d[x++],P=d[x++],L=d[x++];if(y){C=l[b++];if(m+C>u){T=(u-m)/C;xn(i,k,D,P,T,gs),xn(o,I,A,L,T,vs),t.bezierCurveTo(gs[1],vs[1],gs[2],vs[2],gs[3],vs[3]);break t}m+=C}t.bezierCurveTo(k,I,D,A,P,L),i=P,o=L;break;case ps.Q:k=d[x++],I=d[x++],D=d[x++],A=d[x++];if(y){C=l[b++];if(m+C>u){T=(u-m)/C;Mn(i,k,D,T,gs),Mn(o,I,A,T,vs),t.quadraticCurveTo(gs[1],vs[1],gs[2],vs[2]);break t}m+=C}t.quadraticCurveTo(k,I,D,A),i=D,o=A;break;case ps.A:var N=d[x++],E=d[x++],R=d[x++],B=d[x++],z=d[x++],F=d[x++],V=d[x++],H=!d[x++],G=R>B?R:B,W=js(R-B)>.001,U=z+F,Y=!1;if(y){C=l[b++];m+C>u&&(U=z+F*(u-m)/C,Y=!0),m+=C}if(W&&t.ellipse?t.ellipse(N,E,R,B,V,z,U,H):t.arc(N,E,G,z,U,H),Y)break t;w&&(n=ws(z)*R+N,r=Ss(z)*B+E),i=ws(U)*R+N,o=Ss(U)*B+E;break;case ps.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var X=d[x++],q=d[x++];if(y){C=l[b++];if(m+C>u){var Z=u-m;t.moveTo(a,s),t.lineTo(a+xs(Z,X),s),Z-=X,Z>0&&t.lineTo(a+X,s+xs(Z,q)),Z-=q,Z>0&&t.lineTo(a+Os(X-Z,0),s+q),Z-=X,Z>0&&t.lineTo(a,s+Os(q-Z,0));break t}m+=C}t.rect(a,s,X,q);break;case ps.Z:if(y){C=l[b++];if(m+C>u){T=(u-m)/C;t.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break t}m+=C}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=ps,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Ps=As;function Ls(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,c=t;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+h&&u>r+h&&u>o+h&&u>s+h||ut+h&&c>n+h&&c>i+h&&c>a+h||ce+c&&l>r+c&&l>o+c||lt+c&&s>n+c&&s>i+c||sn||u+ci&&(i+=zs);var f=Math.atan2(l,s);return f<0&&(f+=zs),f>=r&&f<=i||f+zs>=r&&f+zs<=i}function Vs(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var Hs=Ps.CMD,Gs=2*Math.PI,Ws=1e-4;function Us(t,e){return Math.abs(t-e)e&&c>r&&c>o&&c>s||c1&&qs(),d=yn(e,r,o,s,Xs[0]),f>1&&(p=yn(e,r,o,s,Xs[1]))),2===f?ve&&s>r&&s>o||s=0&&c<=1){for(var u=0,h=Sn(e,r,o,c),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ys[0]=-l,Ys[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=Gs-1e-4){r=0,i=Gs;var u=o?1:-1;return a>=Ys[0]+t&&a<=Ys[1]+t?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Gs,i+=Gs);for(var f=0,d=0;d<2;d++){var p=Ys[d];if(p+t>a){var g=Math.atan2(s,p);u=o?1:-1;g<0&&(g=Gs+g),(g>=r&&g<=i||g+Gs>=r&&g+Gs<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),f+=u)}}return f}function Qs(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),c=0,u=0,h=0,f=0,d=0,p=0;p1&&(n||(c+=Vs(u,h,f,d,r,i))),v&&(u=s[p],h=s[p+1],f=u,d=h),g){case Hs.M:f=s[p++],d=s[p++],u=f,h=d;break;case Hs.L:if(n){if(Ls(u,h,s[p],s[p+1],e,r,i))return!0}else c+=Vs(u,h,s[p],s[p+1],r,i)||0;u=s[p++],h=s[p++];break;case Hs.C:if(n){if(Ns(u,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else c+=Zs(u,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;u=s[p++],h=s[p++];break;case Hs.Q:if(n){if(Es(u,h,s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else c+=Ks(u,h,s[p++],s[p++],s[p],s[p+1],r,i)||0;u=s[p++],h=s[p++];break;case Hs.A:var y=s[p++],m=s[p++],b=s[p++],_=s[p++],x=s[p++],O=s[p++];p+=1;var w=!!(1-s[p++]);o=Math.cos(x)*b+y,a=Math.sin(x)*_+m,v?(f=o,d=a):c+=Vs(u,h,o,a,r,i);var S=(r-y)*_/b+y;if(n){if(Fs(y,m,_,x,x+O,w,e,S,i))return!0}else c+=$s(y,m,_,x,x+O,w,S,i);u=Math.cos(x+O)*b+y,h=Math.sin(x+O)*_+m;break;case Hs.R:f=u=s[p++],d=h=s[p++];var j=s[p++],C=s[p++];if(o=f+j,a=d+C,n){if(Ls(f,d,o,d,e,r,i)||Ls(o,d,o,a,e,r,i)||Ls(o,a,f,a,e,r,i)||Ls(f,a,f,d,e,r,i))return!0}else c+=Vs(o,d,o,a,r,i),c+=Vs(f,a,f,d,r,i);break;case Hs.Z:if(n){if(Ls(u,h,f,d,e,r,i))return!0}else c+=Vs(u,h,f,d,r,i);u=f,h=d;break}}return n||Us(h,d)||(c+=Vs(u,h,f,d,r,i)||0),0!==c}function Js(t,e,n){return Qs(t,0,!1,e,n)}function tl(t,e,n,r){return Qs(t,e,!0,n,r)}var el=Object(wt["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wa),nl={style:Object(wt["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ua.style)},rl=Jr.concat(["invisible","culling","z","z2","zlevel","parent"]),il=function(t){function e(e){return t.call(this,e)||this}return jt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Pr:e>.2?Nr:Lr}if(t)return Lr}return Pr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(wt["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(Nn["lum"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&Ze)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),tl(o,a/s,t,e)))return!0}if(this.hasFill())return Js(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ze,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(wt["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ze)},e.prototype.createStyle=function(t){return Object(wt["createObject"])(el,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(wt["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(wt["extend"])({},r.shape),Object(wt["extend"])(s,n.shape)):(s=Object(wt["extend"])({},i?this.shape:r.shape),Object(wt["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(wt["extend"])({},this.shape);for(var c={},u=Object(wt["keys"])(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(wt["createObject"])(al,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=bi(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Qa);sl.prototype.type="tspan";var ll=sl,cl=Object(wt["defaults"])({x:0,y:0},Wa),ul={style:Object(wt["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ua.style)};function hl(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var fl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.createStyle=function(t){return Object(wt["createObject"])(cl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=hl(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ul},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new di(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Qa);fl.prototype.type="image";var dl=fl;function pl(t,e){var n,r,i,o,a,s=e.x,l=e.y,c=e.width,u=e.height,h=e.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>c&&(a=n+r,n*=c/a,r*=c/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),r+i>u&&(a=r+i,r*=u/a,i*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),t.moveTo(s+n,l),t.lineTo(s+c-r,l),0!==r&&t.arc(s+c-r,l+r,r,-Math.PI/2,0),t.lineTo(s+c,l+u-i),0!==i&&t.arc(s+c-i,l+u-i,i,0,Math.PI/2),t.lineTo(s+o,l+u),0!==o&&t.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var gl=Math.round;function vl(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(gl(2*r)===gl(2*i)&&(t.x1=t.x2=ml(r,s,!0)),gl(2*o)===gl(2*a)&&(t.y1=t.y2=ml(o,s,!0)),t):t}}function yl(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ml(r,s,!0),t.y=ml(i,s,!0),t.width=Math.max(ml(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ml(i+a,s,!1)-t.y,0===a?0:1),t):t}}function ml(t,e,n){if(!e)return t;var r=gl(2*t);return(r+gl(e))%2===0?r/2:(r+(n?1:-1))/2}var bl=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),_l={},xl=function(t){function e(e){return t.call(this,e)||this}return jt(e,t),e.prototype.getDefaultShape=function(){return new bl},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=yl(_l,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?pl(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ol);xl.prototype.type="rect";var Ol=xl,wl={fill:"#000"},Sl=2,jl={style:Object(wt["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ua.style)},Cl=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=wl,n.attr(e),n}return jt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=i.calculatedLineHeight,M=0;M=0&&(M=_[T],"right"===M.align))this._placeToken(M,t,O,g,C,"right",y),w-=M.width,C-=M.width,T--;j+=(r-(j-p)-(v-C)-w)/2;while(S<=T)M=_[S],this._placeToken(M,t,O,g,j+M.width/2,"center",y),j+=M.width,S++;g+=O}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,c=r+n/2;"top"===l?c=r+t.height/2:"bottom"===l&&(c=r+n-t.height/2);var u=!t.isLineHolder&&zl(s);u&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,c-t.height/2,t.width,t.height);var h=!!s.backgroundColor,f=t.textPadding;f&&(i=Rl(i,o,f),c-=t.height/2-f[0]-t.innerHeight/2);var d=this._getOrCreateChild(ll),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,v=!1,y=0,m=El("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),b=Nl("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=Sl,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=i,p.y=c,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||gi["a"],p.opacity=Object(wt["retrieve3"])(s.opacity,e.opacity,1),Dl(p,s),b&&(p.lineWidth=Object(wt["retrieve3"])(s.lineWidth,e.lineWidth,y),p.lineDash=Object(wt["retrieve2"])(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=b),m&&(p.fill=m);var x=t.contentWidth,O=t.contentHeight;d.setBoundingRect(new di(_i(p.x,x,p.textAlign),xi(p.y,O,p.textBaseline),x,O))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,c=t.borderWidth,u=t.borderColor,h=l&&l.image,f=l&&!h,d=t.borderRadius,p=this;if(f||t.lineHeight||c&&u){a=this._getOrCreateChild(Ol),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=d,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=Object(wt["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(dl),s.onload=function(){p.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(c&&u){v=a.style;v.lineWidth=c,v.stroke=u,v.strokeOpacity=Object(wt["retrieve2"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(wt["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Al(t)&&(e=[t.fontStyle,t.fontWeight,Il(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(wt["trim"])(e)||t.textFont||t.font},e}(Qa),Tl={left:!0,right:1,center:1},Ml={top:1,bottom:1,middle:1},kl=["fontStyle","fontWeight","fontSize","fontFamily"];function Il(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?gi["b"]+"px":t+"px":t}function Dl(t,e){for(var n=0;n=0,o=!1;if(t instanceof ol){var a=Ul(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(oc(s)||oc(l)){r=r||{};var c=r.style||{};"inherit"===c.fill?(o=!0,r=Object(wt["extend"])({},r),c=Object(wt["extend"])({},c),c.fill=s):!oc(c.fill)&&oc(s)?(o=!0,r=Object(wt["extend"])({},r),c=Object(wt["extend"])({},c),c.fill=sc(s)):!oc(c.stroke)&&oc(l)&&(o||(r=Object(wt["extend"])({},r),c=Object(wt["extend"])({},c)),c.stroke=sc(l)),r.style=c}}if(r&&null==r.z2){o||(r=Object(wt["extend"])({},r));var u=t.z2EmphasisLift;r.z2=t.z2+(null!=u?u:Ql)}return r}function _c(t,e,n){if(n&&null==n.z2){n=Object(wt["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:Jl)}return n}function xc(t,e,n){var r=Object(wt["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:mc(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(wt["extend"])({},n),a=Object(wt["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Oc(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return bc(this,t,e,n);if("blur"===t)return xc(this,t,n);if("select"===t)return _c(this,t,n)}return n}function wc(t){t.stateProxy=Oc;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Oc),n&&(n.stateProxy=Oc)}function Sc(t,e){!Ac(t,e)&&!t.__highByOuter&&vc(t,cc)}function jc(t,e){!Ac(t,e)&&!t.__highByOuter&&vc(t,uc)}function Cc(t,e){t.__highByOuter|=1<<(e||0),vc(t,cc)}function Tc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&vc(t,uc)}function Mc(t){vc(t,hc)}function kc(t){vc(t,fc)}function Ic(t){vc(t,dc)}function Dc(t){vc(t,pc)}function Ac(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Pc(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Yl(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){fc(t)})),a&&n.push(i)),o.isBlured=!1})),Object(wt["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Lc(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Gc(t,e,n){Kc(t,!0),vc(t,wc),Yc(t,e,n)}function Wc(t){Kc(t,!1)}function Uc(t,e,n,r){r?Wc(t):Gc(t,e,n)}function Yc(t,e,n){var r=Vl(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Xc=["emphasis","blur","select"],qc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zc(t,e,n,r){n=n||"itemStyle";for(var i=0;i0){var h=u.duration,f=u.delay,d=u.easing,p={duration:h,delay:f||0,easing:d,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ou(t,e,n,r,i,o){iu("update",t,e,n,r,i,o)}function au(t,e,n,r,i,o){iu("enter",t,e,n,r,i,o)}function su(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};wt["each"](t,(function(t){l[t]=!0}));while(s.length){var c=s.pop(),u=a[c],h=!!l[c];h&&(r.call(i,c,u.originalDeps.slice()),delete l[c]),wt["each"](u.successor,h?d:f)}wt["each"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function d(t){l[t]=!0,f(t)}}}function Xu(t,e){return wt["merge"](wt["merge"]({},t,!0),e,!0)}var qu={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Zu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Ku="ZH",$u="EN",Qu=$u,Ju={},th={},eh=Ot["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Ku)>-1?Ku:Qu}():Qu;function nh(t,e){t=t.toUpperCase(),th[t]=new Hu(e),Ju[t]=e}function rh(t){if(Object(wt["isString"])(t)){var e=Ju[t.toUpperCase()]||{};return t===Ku||t===$u?Object(wt["clone"])(e):Object(wt["merge"])(Object(wt["clone"])(e),Object(wt["clone"])(Ju[Qu]),!1)}return Object(wt["merge"])(Object(wt["clone"])(t),Object(wt["clone"])(Ju[Qu]),!1)}function ih(t){return th[t]}function oh(){return th[Qu]}nh($u,qu),nh(Ku,Zu);var ah=1e3,sh=60*ah,lh=60*sh,ch=24*lh,uh=365*ch,hh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fh="{yyyy}-{MM}-{dd}",dh={year:"{yyyy}",month:"{yyyy}-{MM}",day:fh,hour:fh+" "+hh.hour,minute:fh+" "+hh.minute,second:fh+" "+hh.second,millisecond:hh.none},ph=["year","month","day","hour","minute","second","millisecond"],gh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function vh(t,e){return t+="","0000".substr(0,e-t.length)+t}function yh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function mh(t){return t===yh(t)}function bh(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _h(t,e,n,r){var i=go(t),o=i[Sh(n)](),a=i[jh(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Ch(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[Th(n)](),h=(u-1)%12+1,f=i[Mh(n)](),d=i[kh(n)](),p=i[Ih(n)](),g=r instanceof Hu?r:ih(r||eh)||oh(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),b=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,vh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,vh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[c]).replace(/{ee}/g,_[c]).replace(/{e}/g,c+"").replace(/{HH}/g,vh(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,vh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,vh(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,vh(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,vh(p,3)).replace(/{S}/g,p+"")}function xh(t,e,n,r,i){var o=null;if(wt["isString"](n))o=n;else if(wt["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=wt["extend"]({},hh);if(t.level>0)for(var s=0;s=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(wt["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return _h(new Date(t.value),o,i,r)}function Oh(t,e){var n=go(t),r=n[jh(e)]()+1,i=n[Ch(e)](),o=n[Th(e)](),a=n[Mh(e)](),s=n[kh(e)](),l=n[Ih(e)](),c=0===l,u=c&&0===s,h=u&&0===a,f=h&&0===o,d=f&&1===i,p=d&&1===r;return p?"year":d?"month":f?"day":h?"hour":u?"minute":c?"second":"millisecond"}function wh(t,e,n){var r=wt["isNumber"](t)?go(t):t;switch(e=e||Oh(t,n),e){case"year":return r[Sh(n)]();case"half-year":return r[jh(n)]()>=6?1:0;case"quarter":return Math.floor((r[jh(n)]()+1)/4);case"month":return r[jh(n)]();case"day":return r[Ch(n)]();case"half-day":return r[Th(n)]()/24;case"hour":return r[Th(n)]();case"minute":return r[Mh(n)]();case"second":return r[kh(n)]();case"millisecond":return r[Ih(n)]()}}function Sh(t){return t?"getUTCFullYear":"getFullYear"}function jh(t){return t?"getUTCMonth":"getMonth"}function Ch(t){return t?"getUTCDate":"getDate"}function Th(t){return t?"getUTCHours":"getHours"}function Mh(t){return t?"getUTCMinutes":"getMinutes"}function kh(t){return t?"getUTCSeconds":"getSeconds"}function Ih(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Dh(t){return t?"setUTCFullYear":"setFullYear"}function Ah(t){return t?"setUTCMonth":"setMonth"}function Ph(t){return t?"setUTCDate":"setDate"}function Lh(t){return t?"setUTCHours":"setHours"}function Nh(t){return t?"setUTCMinutes":"setMinutes"}function Eh(t){return t?"setUTCSeconds":"setSeconds"}function Rh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Bh(t){if(!Oo(t))return wt["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function zh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Fh=wt["normalizeCssArray"],Vh=/([&<>"'])/g,Hh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gh(t){return null==t?"":(t+"").replace(Vh,(function(t,e){return Hh[e]}))}function Wh(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&wt["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?go(t):t;if(!isNaN(+l))return _h(l,r,n);if(s)return"-"}if("ordinal"===e)return wt["isStringSafe"](t)?i(t):wt["isNumber"](t)&&o(t)?t+"":"-";var c=xo(t);return o(c)?Bh(c):wt["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Uh=["a","b","c","d","e","f","g"],Yh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Xh(t,e,n){wt["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Zh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=go(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),c=r[i+"Minutes"](),u=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",vh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",vh(s,2)).replace("d",s).replace("hh",vh(l,2)).replace("h",l).replace("mm",vh(c,2)).replace("m",c).replace("ss",vh(u,2)).replace("s",u).replace("SSS",vh(h,3)),t}function Kh(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function $h(t,e){return e=e||"transparent",wt["isString"](t)?t:wt["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Qh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Jh=wt["each"],tf=["left","right","top","bottom","width","height"],ef=[["width","left","right"],["height","top","bottom"]];function nf(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,c){var u,h,f=l.getBoundingRect(),d=e.childAt(c+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=f.width+(p?-p.x+f.x:0);u=o+g,u>r||l.newline?(o=0,u=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+n:a=h+n)}))}var rf=nf;wt["curry"](nf,"vertical"),wt["curry"](nf,"horizontal");function of(t,e,n){n=Fh(n||0);var r=e.width,i=e.height,o=no(t.left,r),a=no(t.top,i),s=no(t.right,r),l=no(t.bottom,i),c=no(t.width,r),u=no(t.height,i),h=n[2]+n[0],f=n[1]+n[3],d=t.aspect;switch(isNaN(c)&&(c=r-s-f-o),isNaN(u)&&(u=i-l-h-a),null!=d&&(isNaN(c)&&isNaN(u)&&(d>r/i?c=.8*r:u=.8*i),isNaN(c)&&(c=d*u),isNaN(u)&&(u=c/d)),isNaN(o)&&(o=r-s-c-f),isNaN(a)&&(a=i-l-u-h),t.left||t.right){case"center":o=r/2-c/2-n[3];break;case"right":o=r-c-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-u/2-n[0];break;case"bottom":a=i-u-h;break}o=o||0,a=a||0,isNaN(c)&&(c=r-f-o-(s||0)),isNaN(u)&&(u=i-h-a-(l||0));var p=new di(o+n[3],a+n[0],c,u);return p.margin=n,p}function af(t){var e=t.layoutMode||t.constructor.layoutMode;return wt["isObject"](e)?e:e?{type:e}:null}function sf(t,e,n){var r=n&&n.ignoreSize;!wt["isArray"](r)&&(r=[r,r]);var i=a(ef[0],0),o=a(ef[1],1);function a(n,i){var o={},a=0,c={},u=0,h=2;if(Jh(n,(function(e){c[e]=t[e]})),Jh(n,(function(t){s(e,t)&&(o[t]=c[t]=e[t]),l(o,t)&&a++,l(c,t)&&u++})),r[i])return l(e,n[1])?c[n[2]]=null:l(e,n[2])&&(c[n[1]]=null),c;if(u!==h&&a){if(a>=h)return o;for(var f=0;f=0;a--)o=wt["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return ta(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Hu);function ff(t){var e=[];return wt["each"](hf.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=wt["map"](e,(function(t){return la(t).main})),"dataset"!==t&&wt["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}da(hf,Hu),ma(hf),Uu(hf),Yu(hf,ff);var df=hf,pf="";"undefined"!==typeof navigator&&(pf=navigator.platform||"");var gf="rgba(0, 0, 0, 0.2)",vf={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pf.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},yf=Object(wt["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),mf="original",bf="arrayRows",_f="objectRows",xf="keyedColumns",Of="typedArray",wf="unknown",Sf="column",jf="row",Cf={Must:1,Might:2,Not:3},Tf=Zo();function Mf(t){Tf(t).datasetMap=Object(wt["createHashMap"])()}function kf(t,e,n){var r={},i=If(e);if(!i||!t)return r;var o,a,s=[],l=[],c=e.ecModel,u=Tf(c).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(wt["each"])(t,(function(e,n){var i=Object(wt["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var f=u.get(h)||u.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;re)return t[r];return t[n-1]}function zf(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=null!=a&&r?Bf(r,a):n;if(u=u||n,u&&u.length){var h=u[l];return i&&(c[i]=h),s.paletteIdx=(l+1)%u.length,h}}function Ff(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Vf,Hf,Gf;"undefined"!==typeof console&&console.warn&&console.log;function Wf(t){0}function Uf(t){throw new Error(t)}var Yf="\0_ec_inner",Xf=1;var qf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xt(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Hu(r),this._locale=new Hu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Jf(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Jf(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Gf(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(wt["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(wt["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Nf(this,e,ko(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=Lo(a,o,l);Yo(c,e,df),n[e]=null,r.set(e,null),i.set(e,0);var u,h=[],f=[],d=0;Object(wt["each"])(c,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=df.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return void 0;u=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(wt["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(wt["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),d++):(h.push(void 0),f.push(void 0))}),this),n[e]=h,r.set(e,f),i.set(e,d),"series"===e&&Vf(this)}Mf(this),Object(wt["each"])(t,(function(t,e){null!=t&&(df.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(wt["clone"])(t):Object(wt["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){df.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),df.topologicalTravel(o,df.getAllClassMainTypes(),l,this),this._seriesIndices||Vf(this)},e.prototype.getOption=function(){var t=Object(wt["clone"])(this.option);return Object(wt["each"])(t,(function(e,n){if(df.hasClass(n)){for(var r=ko(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Uo(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Yf],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=e:"max"===n?t<=e:t===e}function fd(t,e){return t.join(",")===e.join(",")}var dd=ld,pd=wt["each"],gd=wt["isObject"],vd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yd(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=vd.length;n=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,u)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(f>=0&&v>0||f<=0&&v<0){f=co(f,v),d=v;break}}}return r[0]=f,r[1]=d,r}))}))}var Fd,Vd,Hd,Gd,Wd,Ud=function(){function t(t){this.data=t.data||(t.sourceFormat===xf?{}:[]),this.sourceFormat=t.sourceFormat||wf,this.seriesLayoutBy=t.seriesLayoutBy||Sf,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nc&&(c=d)}s[0]=l,s[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return dp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function vp(t){var e,n;return wt["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function yp(t){return new mp(t)}var mp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;function u(t){return!(t>=1)&&(t=1),t}a===l&&s===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=c;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f1&&r>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},Sp=function(){function t(t,e){if(!Object(wt["isNumber"])(e)){var n="";0,Uf(n)}this._opFn=wp[t],this._rvalFloat=xo(e)}return t.prototype.evaluate=function(t){return Object(wt["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(xo(t),this._rvalFloat)},t}(),jp=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(wt["isNumber"])(t)?t:xo(t),r=Object(wt["isNumber"])(e)?e:xo(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(wt["isString"])(t),s=Object(wt["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return nr?-this._resultLT:0},t}(),Cp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=xo(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=xo(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Tp(t,e){return"eq"===t||"ne"===t?new Cp("eq"===t,e):Object(wt["hasOwn"])(wp,t)?new Sp(t,e):null}var Mp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return _p(t,e)},t}();function kp(t,e){var n=new Mp,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Sf&&Uf(a);var s=[],l={},c=t.dimensionsDefine;if(c)Object(wt["each"])(c,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(wt["hasOwn"])(l,n)&&Uf(i),l[n]=r}}));else for(var u=0;u65535?Vp:Hp}function Xp(){return[1/0,-1/0]}function qp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Zp(t,e,n,r,i){var o=Up[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),c=0;cg[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(wt["map"])(o,(function(t){return t.property})),c=0;cv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(a=d,s=f,l=0),f===s&&(o[l++]=c))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=u&&y<=h||isNaN(y))&&(s[l++]=p),p++}d=!0}else if(2===i){g=f[r[0]];var m=f[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(v=0;v=u&&y<=h||isNaN(y))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=p),p++}d=!0}}if(!d)if(1===i)for(v=0;v=u&&y<=h||isNaN(y))&&(s[l++]=O)}else for(v=0;vt[j][1])&&(w=!1)}w&&(s[l++]=e.getRawIndex(v))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),c=0,u=Math.floor(1/e),h=this.getRawIndex(0),f=new(Yp(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));f[c++]=h;for(var d=1;dn&&(n=r,i=b))}C>0&&Cc-d&&(s=c-d,a.length=s);for(var p=0;pu[1]&&(u[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();is&&(s=u)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return _p(t[r],this._dimensions[r])}zp={arrayRows:t,objectRows:function(t,e,n,r){return _p(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return _p(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),$p=Kp,Qp=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(tg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var c=r[0];c.prepareSource(),l=c.getSource(),a=l.data,s=l.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(wt["isTypedArray"])(a)?Of:mf,e=[];var u=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=Object(wt["retrieve2"])(u.seriesLayoutBy,h.seriesLayoutBy)||null,d=Object(wt["retrieve2"])(u.sourceHeader,h.sourceHeader),p=Object(wt["retrieve2"])(u.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!d!==!!h.sourceHeader||p;t=g?[Xd(a,{seriesLayoutBy:f,sourceHeader:d,dimensions:p},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[Xd(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&eg(o)}var a=[],s=[];return Object(wt["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||eg(n),a.push(e),s.push(t._getVersionSign())})),r?e=Ep(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Zd(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(wt["each"])(t.blocks,(function(t){var n=cg(t);n>=e&&(e=n+ +(r&&(!n||sg(t)&&!t.noHeader)))})),e}return 0}function ug(t,e,n,r){var i=e.noHeader,o=dg(cg(e)),a=[],s=e.blocks||[];Object(wt["assert"])(!s||Object(wt["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(wt["hasOwn"])(c,l)){var u=new jp(c[l],null);s.sort((function(t,e){return u.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(wt["each"])(s,(function(n,i){var s=e.valueFormatter,l=lg(n)(s?Object(wt["extend"])(Object(wt["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):pg(a.join(""),i?n:o.html);if(i)return h;var f=Wh(e.header,"ordinal",t.useUTC),d=rg(r,t.renderMode).nameStyle;return"richText"===t.renderMode?yg(t,f,d)+o.richText+h:pg('
'+Gh(f)+"
"+h,n)}function hg(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,u=e.valueFormatter||t.valueFormatter||function(t){return t=Object(wt["isArray"])(t)?t:[t],Object(wt["map"])(t,(function(t,e){return Wh(t,Object(wt["isArray"])(d)?d[e]:d,c)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Wh(l,"ordinal",c),d=e.valueType,p=a?[]:u(e.value),g=!s||!o,v=!s&&o,y=rg(r,i),m=y.nameStyle,b=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":yg(t,f,m))+(a?"":mg(t,p,g,v,b)):pg((s?"":h)+(o?"":gg(f,!s,m))+(a?"":vg(p,g,v,b)),n)}}function fg(t,e,n,r,i,o){if(t){var a=lg(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function dg(t){return{html:ig[t],richText:og[t]}}function pg(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function gg(t,e,n){var r=e?"margin-left:2px":"";return''+Gh(t)+""}function vg(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(wt["isArray"])(t)?t:[t],''+Object(wt["map"])(t,(function(t){return Gh(t)})).join("  ")+""}function yg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function mg(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(wt["isArray"])(e)?e.join(" "):e,o)}function bg(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return $h(r)}function _g(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var xg=function(){function t(){this.richTextStyles={},this._nextStyleNameId=wo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=qh({color:e,type:t,renderMode:n,markerId:r});return Object(wt["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(wt["isArray"])(e)?Object(wt["each"])(e,(function(t){return Object(wt["extend"])(n,t)})):Object(wt["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Og(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,h=o.getRawValue(a),f=Object(wt["isArray"])(h),d=bg(o,a);if(u>1||f&&!u){var p=wg(h,o,a,c,d);e=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(u){var g=l.getDimensionInfo(c[0]);i=e=dp(l,a,c[0]),n=g.type}else i=e=f?h[0]:h;var v=Wo(o),y=v&&o.name||"",m=l.getName(a),b=s?y:m;return ag("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[ag("nameValue",{markerType:"item",markerColor:d,name:b,noName:!Object(wt["trim"])(b),value:e,valueType:n})].concat(r||[])})}function wg(t,e,n,r,i){var o=e.getData(),a=Object(wt["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],c=[];function u(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(ag("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(wt["each"])(r,(function(t){u(dp(o,n,t),t)})):Object(wt["each"])(t,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}var Sg=Zo();function jg(t,e){return t.getName(e)||t.getId(e)}var Cg="__universalTransitionEnabled",Tg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return xt(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=yp({count:Ig,reset:Dg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=Sg(this).sourceManager=new Qp(this);r.prepareSource();var i=this.getInitialData(t,n);Pg(i,this),this.dataTask.context.data=i,Sg(this).dataBeforeProcessed=i,Mg(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=af(this),r=n?lf(t):{},i=this.subType;df.hasClass(i)&&(i+="Series"),wt["merge"](t,e.getTheme().get(this.subType)),wt["merge"](t,this.getDefaultOption()),Io(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&sf(t,r,n)},e.prototype.mergeOption=function(t,e){t=wt["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=af(this);n&&sf(this.option,t,n);var r=Sg(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Pg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Sg(this).dataBeforeProcessed=i,Mg(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!wt["isTypedArray"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Rf.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[jg(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Cg])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){wt["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return df.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(df);function Mg(t){var e=t.name;Wo(t)||(t.name=kg(t)||e)}function kg(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return wt["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Ig(t){return t.model.getRawData().count()}function Dg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Ag}function Ag(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Pg(t,e){wt["each"](wt["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,wt["curry"](Lg,e))}))}function Lg(t,e){var n=Ng(t);return n&&n.setOutputEnd((e||this).count()),e}function Ng(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}wt["mixin"](Tg,gp),wt["mixin"](Tg,Rf),da(Tg,df);var Eg=Tg,Rg=function(){function t(){this.group=new Fi,this.uid=Wu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();ha(Rg),ma(Rg);var Bg=Rg;function zg(){var t=Zo();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Fg=Ps.CMD,Vg=[[],[],[]],Hg=Math.sqrt,Gg=Math.atan2;function Wg(t,e){if(e){var n,r,i,o,a,s,l=t.data,c=t.len(),u=Fg.M,h=Fg.C,f=Fg.L,d=Fg.R,p=Fg.A,g=Fg.Q;for(i=0,o=0;i1&&(a*=Ug(p),s*=Ug(p));var g=(i===o?-1:1)*Ug((a*a*(s*s)-a*a*(d*d)-s*s*(f*f))/(a*a*(d*d)+s*s*(f*f)))||0,v=g*a*d/s,y=g*-s*f/a,m=(t+n)/2+Xg(h)*v-Yg(h)*y,b=(e+r)/2+Yg(h)*v+Xg(h)*y,_=$g([1,0],[(f-v)/a,(d-y)/s]),x=[(f-v)/a,(d-y)/s],O=[(-1*f-v)/a,(-1*d-y)/s],w=$g(x,O);if(Kg(x,O)<=-1&&(w=qg),Kg(x,O)>=1&&(w=0),w<0){var S=Math.round(w/qg*1e6)/1e6;w=2*qg+S%2*qg}u.addData(c,m,b,a,s,_,w,h,o)}var Jg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,tv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ev(t){var e=new Ps;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Ps.CMD,l=t.match(Jg);if(!l)return e;for(var c=0;cI*I+D*D&&(S=C,j=T),{cx:S,cy:j,x0:-u,y0:-h,x1:S*(i/x-1),y1:j*(i/x-1)}}function Mv(t){var e;if(Object(wt["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function kv(t,e){var n,r=wv(e.r,0),i=wv(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,c=e.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=e.cx,h=e.cy,f=!!e.clockwise,d=xv(c-l),p=d>vv&&d%vv;if(p>jv&&(d=p),r>jv)if(d>vv-jv)t.moveTo(u+r*mv(l),h+r*yv(l)),t.arc(u,h,r,l,c,!f),i>jv&&(t.moveTo(u+i*mv(c),h+i*yv(c)),t.arc(u,h,i,c,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,O=void 0,w=void 0,S=void 0,j=void 0,C=void 0,T=void 0,M=void 0,k=void 0,I=void 0,D=r*mv(l),A=r*yv(l),P=i*mv(c),L=i*yv(c),N=d>jv;if(N){var E=e.cornerRadius;E&&(n=Mv(E),g=n[0],v=n[1],y=n[2],m=n[3]);var R=xv(r-i)/2;if(b=Sv(R,y),_=Sv(R,m),x=Sv(R,g),O=Sv(R,v),j=w=wv(b,_),C=S=wv(x,O),(w>jv||S>jv)&&(T=r*mv(c),M=r*yv(c),k=i*mv(l),I=i*yv(l),djv){var U=Sv(y,j),Y=Sv(m,j),X=Tv(k,I,D,A,r,U,f),q=Tv(T,M,P,L,r,Y,f);t.moveTo(u+X.cx+X.x0,h+X.cy+X.y0),j0&&t.arc(u+X.cx,h+X.cy,U,_v(X.y0,X.x0),_v(X.y1,X.x1),!f),t.arc(u,h,r,_v(X.cy+X.y1,X.cx+X.x1),_v(q.cy+q.y1,q.cx+q.x1),!f),Y>0&&t.arc(u+q.cx,h+q.cy,Y,_v(q.y1,q.x1),_v(q.y0,q.x0),!f))}else t.moveTo(u+D,h+A),t.arc(u,h,r,l,c,!f);else t.moveTo(u+D,h+A);if(i>jv&&N)if(C>jv){U=Sv(g,C),Y=Sv(v,C),X=Tv(P,L,T,M,i,-Y,f),q=Tv(D,A,k,I,i,-U,f);t.lineTo(u+X.cx+X.x0,h+X.cy+X.y0),C0&&t.arc(u+X.cx,h+X.cy,Y,_v(X.y0,X.x0),_v(X.y1,X.x1),!f),t.arc(u,h,i,_v(X.cy+X.y1,X.cx+X.x1),_v(q.cy+q.y1,q.cx+q.x1),f),U>0&&t.arc(u+q.cx,h+q.cy,U,_v(q.y1,q.x1),_v(q.y0,q.x0),!f))}else t.lineTo(u+P,h+L),t.arc(u,h,i,c,l,f);else t.lineTo(u+P,h+L)}else t.moveTo(u,h);t.closePath()}}}var Iv=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Dv=function(t){function e(e){return t.call(this,e)||this}return jt(e,t),e.prototype.getDefaultShape=function(){return new Iv},e.prototype.buildPath=function(t,e){kv(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ol);Dv.prototype.type="sector";var Av=Dv,Pv=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Lv=function(t){function e(e){return t.call(this,e)||this}return jt(e,t),e.prototype.getDefaultShape=function(){return new Pv},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ol);Lv.prototype.type="ring";var Nv=Lv;function Ev(t,e,n,r){var i,o,a,s,l=[],c=[],u=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,d=t.length;f=2){if(r){var o=Ev(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],c=o[2*s+1],u=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;shy[1]){if(a=!1,i)return a;var c=Math.abs(hy[0]-uy[1]),u=Math.abs(uy[0]-hy[1]);Math.min(c,u)>r.len()&&(cMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function By(t){return!t.isGroup}function zy(t){return null!=t.shape}function Fy(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(By(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),ou(t,i,n,Vl(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){By(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return zy(t)&&(e.shape=Object(wt["extend"])({},t.shape)),e}}function Vy(t,e){return Object(wt["map"])(t,(function(t){var n=t[0];n=by(n,e.x),n=_y(n,e.x+e.width);var r=t[1];return r=by(r,e.y),r=_y(r,e.y+e.height),[n,r]}))}function Hy(t,e){var n=by(t.x,e.x),r=_y(t.x+t.width,e.x+e.width),i=by(t.y,e.y),o=_y(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Gy(t,e,n){var r=Object(wt["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(wt["defaults"])(i,n),new dl(r)):Ty(t.replace("path://",""),r,n,"center")}function Wy(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var v=Yy(d,p,u,h)/f;return!(v<0||v>1)}function Yy(t,e,n,r){return t*r-n*e}function Xy(t){return t<=1e-6&&t>=-1e-6}function qy(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(wt["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(wt["each"])(Object(wt["keys"])(l),(function(t){Object(wt["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var c=Vl(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:Object(wt["defaults"])({content:r,formatterParams:s},i)}}function Zy(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ky(t,e){if(t)if(Object(wt["isArray"])(t))for(var n=0;n=0?h():u=setTimeout(h,-i),l=r};return f.clear=function(){u&&(clearTimeout(u),u=null)},f.debounceNextCall=function(t){s=t},f}function um(t,e,n,r){var i=t[e];if(i){var o=i[am]||i,a=i[lm],s=i[sm];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=cm(o,n,"debounce"===r),i[am]=o,i[lm]=r,i[sm]=n}return i}}function hm(t,e){var n=t[e];n&&n[am]&&(n.clear&&n.clear(),t[e]=n[am])}var fm=Zo(),dm={itemStyle:ba(Bu,!0),lineStyle:ba(Nu,!0)},pm={lineStyle:"stroke",itemStyle:"fill"};function gm(t,e){var n=t.visualStyleMapper||dm[e];return n||dm.itemStyle}function vm(t,e){var n=t.visualDrawType||pm[e];return n||"fill"}var ym={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=gm(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=vm(t,r),c=a[l],u=Object(wt["isFunction"])(c)?c:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||u||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(wt["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(wt["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(wt["extend"])({},a);i[l]=u(r),e.setItemVisual(n,"style",i)}}}},mm=new Hu,bm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=gm(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){mm.option=n[r];var a=i(mm),s=t.ensureUniqueItemVisual(e,"style");Object(wt["extend"])(s,a),mm.option.decal&&(t.setItemVisual(e,"decal",mm.option.decal),mm.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},_m={performRawSeries:!0,overallReset:function(t){var e=Object(wt["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),fm(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=fm(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=vm(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var c=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();c[s]=e.getColorFromPalette(u,o,h)}}))}}))}},xm=Math.PI;function Om(t,e){e=e||{},wt["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Fi,r=new Ol({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Fl({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ol({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new ey({shape:{startAngle:-xm/2,endAngle:-xm/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*xm/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*xm/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),c=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var wm=function(){function t(t,e,n,r){this._stageTaskMap=Object(wt["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(wt["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(wt["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(wt["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(wt["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,f=u.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&u.dirty(),o.updatePayload(u,n);var d=o.getPerformArgs(u,r.block);f.each((function(t){t.perform(d)})),u.perform(d)&&(i=!0)}else c&&c.each((function(s,l){a(r,s)&&s.dirty();var c=o.getPerformArgs(s,r.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(wt["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||yp({plan:Mm,reset:km,count:Am}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,r).each(c)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||yp({reset:Sm});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(wt["createHashMap"])(),l=t.seriesType,c=t.getTargetSeries,u=!0,h=!1,f="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,yp({reset:jm,onDirty:Tm})));n.context={model:t,overallProgress:u},n.agent=o,n.__block=u,i._pipe(t,n)}Object(wt["assert"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,d):c?c(n,r).each(d):(u=!1,Object(wt["each"])(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(wt["isFunction"])(t)&&(t={overallReset:t,seriesType:Pm(t)}),t.uid=Wu("stageHandler"),e&&(t.visualType=e),t},t}();function Sm(t){t.overallReset(t.ecModel,t.api,t.payload)}function jm(t){return t.overallProgress&&Cm}function Cm(){this.agent.dirty(),this.getDownstream().dirty()}function Tm(){this.agent&&this.agent.dirty()}function Mm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function km(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ko(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(wt["map"])(e,(function(t,e){return Dm(e)})):Im}var Im=Dm(0);function Dm(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&u===i.length-c.length){var h=i.slice(0,u);"data"!==h&&(e.mainType=h,e[c.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,i,"name")&&c(l,i,"dataIndex")&&c(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function c(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),qm=["symbol","symbolSize","symbolRotate","symbolOffset"],Zm=qm.concat(["symbolKeepAspect"]),Km={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(wt["isNumber"])(t)?[t]:Object(wt["isArray"])(t)?t:null:null}function Cb(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&jb(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(wt["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var Tb=new Ps(!0);function Mb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function kb(t){return"string"===typeof t&&"none"!==t}function Ib(t){var e=t.fill;return null!=e&&"none"!==e}function Db(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ab(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Pb(t,e,n){var r=ja(e.image,e.__image,n);if(Ta(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*wt["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Lb(t,e,n,r){var i,o=Mb(n),a=Ib(n),s=n.strokePercent,l=s<1,c=!e.path;e.silent&&!l||!c||e.createPathProxy();var u=e.path||Tb,h=e.__dirty;if(!r){var f=n.fill,d=n.stroke,p=a&&!!f.colorStops,g=o&&!!d.colorStops,v=a&&!!f.image,y=o&&!!d.image,m=void 0,b=void 0,_=void 0,x=void 0,O=void 0;(p||g)&&(O=e.getBoundingRect()),p&&(m=h?xb(t,f,O):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?xb(t,d,O):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?Pb(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(x=h||!e.__canvasStrokePattern?Pb(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=m:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:y&&(x?t.strokeStyle=x:o=!1)}var w,S,j=e.getGlobalScale();u.setScale(j[0],j[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=Cb(e),w=i[0],S=i[1]);var C=!0;(c||h&Ze)&&(u.setDPR(t.dpr),l?u.setContext(null):(u.setContext(t),C=!1),u.reset(),e.buildPath(u,e.shape,r),u.toStatic(),e.pathUpdated()),C&&u.rebuildPath(t,l?s:1),w&&(t.setLineDash(w),t.lineDashOffset=S),r||(n.strokeFirst?(o&&Ab(t,n),a&&Db(t,n)):(a&&Db(t,n),o&&Ab(t,n))),w&&t.setLineDash([])}function Nb(t,e,n){var r=e.__image=ja(n.image,e.__image,e,e.onload);if(r&&Ta(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;t.drawImage(r,c,u,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){c=n.sx,u=n.sy;var h=a-c,f=s-u;t.drawImage(r,c,u,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Eb(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||gi["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Cb(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Mb(n)&&t.strokeText(i,n.x,n.y),Ib(n)&&t.fillText(i,n.x,n.y)):(Ib(n)&&t.fillText(i,n.x,n.y),Mb(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Rb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Bb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zb(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Kb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Wa.opacity:a}(r||e.blend!==n.blend)&&(o||(Kb(t,i),o=!0),t.globalCompositeOperation=e.blend||Wa.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[E_])if(this._disposed)vx(this.id);else{var r,i,o;if(Object(wt["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[E_]=!0,!this._model||e){var a=new dd(this._api),s=this._theme,l=this._model=new td;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},_x);var c={seriesTransition:o,optionChanged:!0};if(n)this[R_]={silent:r,updateParams:c},this[E_]=!1,this.getZr().wakeUp();else{try{X_(this),K_.update.call(this,null,c)}catch(u){throw this[R_]=null,this[E_]=!1,u}this._ssr||this._zr.flush(),this[R_]=null,this[E_]=!1,tx.call(this,r),ex.call(this,r)}}},e.prototype.setTheme=function(){Wf("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||v_&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ot["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(wt["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(wt["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(wt["each"])(r,(function(t){t.group.ignore=!1})),o}vx(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(jx[n]){var a=o,s=o,l=-o,c=-o,u=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(wt["each"])(Sx,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(wt["clone"])(t)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),c=i(d.bottom,c),u.push({dom:f,left:d.left,top:d.top})}})),a*=h,s*=h,l*=h,c*=h;var f=l-a,d=c-s,p=gi["c"].createCanvas(),g=Yi(p,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:d}),e){var v="";return Object(wt["each"])(u,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ol({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),Object(wt["each"])(u,(function(t){var e=new dl({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}vx(this.id)},e.prototype.convertToPixel=function(t,e){return $_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return $_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=$o(r,t);return Object(wt["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(wt["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}vx(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=$o(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Qm(o,a,e):Jm(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(wt["each"])(gx,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&nb(o,(function(t){var e=Vl(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(wt["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var c=s&&null!=l&&i.getComponent(s,l),u=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:c,view:u},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(wt["each"])(mx,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(wt["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),eb(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?vx(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)vx(this.id);else{this._disposed=!0;var t=this.getDom();t&&ea(this.getDom(),Mx,"");var e=this,n=e._api,r=e._model;Object(wt["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(wt["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Sx[e.id]}},e.prototype.resize=function(t){if(!this[E_])if(this._disposed)vx(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[R_]&&(null==r&&(r=this[R_].silent),n=!0,this[R_]=null),this[E_]=!0;try{n&&X_(this),K_.update.call(this,{type:"resize",animation:Object(wt["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[E_]=!1,i}this[E_]=!1,tx.call(this,r),ex.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)vx(this.id);else if(Object(wt["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),wx[t]){var n=wx[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?vx(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(wt["extend"])({},t);return e.type=mx[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)vx(this.id);else if(Object(wt["isObject"])(e)||(e={silent:!!e}),yx[t.type]&&this._model)if(this[E_])this._pendingActions.push(t);else{var n=e.silent;J_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&Ot["a"].browser.weChat&&this._throttledZrFlush(),tx.call(this,n),ex.call(this,n)}},e.prototype.updateLabelLayout=function(){f_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)vx(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);Ye(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(wt["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!Ot["a"].node&&!Ot["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),c=0;c0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(su(t))return;if(t instanceof ol&&eu(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}X_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),q_(t,!0),q_(t,!1),e.plan()},q_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){Xx.push(n);var o=Bm.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Zx(t,e){wx[t]=e}function Kx(t){Object(gi["d"])({createCanvas:t})}function $x(t,e,n){var r=g_("registerMap");r&&r(t,e,n)}function Qx(t){var e=g_("getMap");return e&&e(t)}var Jx=Np;Yx(T_,ym),Yx(I_,bm),Yx(I_,_m),Yx(T_,Km),Yx(I_,$m),Yx(L_,u_),Rx(Rd),Bx(x_,Bd),Zx("default",Om),Hx({type:tc,event:tc,update:tc},wt["noop"]),Hx({type:ec,event:ec,update:ec},wt["noop"]),Hx({type:nc,event:nc,update:nc},wt["noop"]),Hx({type:rc,event:rc,update:rc},wt["noop"]),Hx({type:ic,event:ic,update:ic},wt["noop"]),Ex("light",Fm),Ex("dark",Ym);var tO={},eO=[],nO={registerPreprocessor:Rx,registerProcessor:Bx,registerPostInit:zx,registerPostUpdate:Fx,registerUpdateLifecycle:Vx,registerAction:Hx,registerCoordinateSystem:Gx,registerLayout:Ux,registerVisual:Yx,registerTransform:Jx,registerLoading:Zx,registerMap:$x,registerImpl:p_,PRIORITY:N_,ComponentModel:df,ComponentView:Bg,SeriesModel:Eg,ChartView:om,registerComponentModel:function(t){df.registerClass(t)},registerComponentView:function(t){Bg.registerClass(t)},registerSeriesModel:function(t){Eg.registerClass(t)},registerChartView:function(t){om.registerClass(t)},registerSubTypeDefaulter:function(t,e){df.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ki(t,e)}};function rO(t){Object(wt["isArray"])(t)?Object(wt["each"])(t,(function(t){rO(t)})):Object(wt["indexOf"])(eO,t)>=0||(eO.push(t),Object(wt["isFunction"])(t)&&(t={install:t}),t.install(nO))}function iO(t){return null==t?0:t.length||1}function oO(t){return t}var aO=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||oO,this._newKeyGetter=r||oO,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),r[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),r[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),r[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),r[s]=null;else if(u>1)for(var f=0;f1)for(var a=0;a30}var OO,wO,SO,jO,CO,TO,MO,kO=wt["isObject"],IO=wt["map"],DO="undefined"===typeof Int32Array?Array:Int32Array,AO="e\0\0",PO=-1,LO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],NO=["_approximateExtent"],EO=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;mO(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},c=0;c=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===mf;if(s&&!r.pure)for(var l=[],c=t;c0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),wt["isArray"](i)?i=i.slice():kO(i)&&(i=wt["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,kO(e)?wt["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){kO(t)?wt["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?wt["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Hl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){wt["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:IO(this.dimensions,this._getDimInfo,this),this.hostModel)),CO(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];wt["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(wt["slice"](arguments)))})},t.internalField=function(){OO=function(t){var e=t._invertedIndicesMap;wt["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new DO(o.categories.length);for(var s=0;s1&&(s+="__ec__"+c),r[e]=s}}}(),t}(),RO=EO;function BO(t,e){return zO(t,e).dimensions}function zO(t,e){Yd(t)||(t=qd(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(wt["createHashMap"])(),o=[],a=VO(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&xO(a),l=r===t.dimensionsDefine,c=l?_O(t):bO(r),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(t,a));for(var h=Object(wt["createHashMap"])(u),f=new Gp(a),d=0;d0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function VO(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(wt["each"])(e,(function(t){var e;Object(wt["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function HO(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){var i=0;while(r.hasOwnProperty(t+i))i++;t+=i}return e.set(t,!0),t}var GO=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(wt["createHashMap"])(),this.categoryAxisMap=Object(wt["createHashMap"])(),this.coordSysName=t}return t}();function WO(t){var e=t.get("coordinateSystem"),n=new GO(e),r=UO[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var UO={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Jo).models[0],o=t.getReferringComponents("yAxis",Jo).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),YO(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),YO(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Jo).models[0];e.coordSysDims=["single"],n.set("single",i),YO(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Jo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),YO(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),YO(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(wt["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),YO(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function YO(t){return"category"===t.get("type")}function XO(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;qO(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,c,u,h,f=!(!t||!t.get("stack"));if(Object(wt["each"])(r,(function(t,e){Object(wt["isString"])(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),c||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(c=t))})),!c||a||l||(a=!0),c){u="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=c.coordDim,p=c.type,g=0;Object(wt["each"])(r,(function(t){t.coordDim===d&&g++}));var v={name:u,coordDim:d,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,p),y.storeDimIndex=o.ensureCalculationDimension(u,p)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:u}}function qO(t){return!mO(t.schema)}function ZO(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function KO(t,e){return ZO(t,e)?t.getCalculationInfo("stackResultDimension"):e}function $O(t,e){var n,r=t.get("coordinateSystem"),i=ad.get(r);return e&&e.coordSysDims&&(n=wt["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=hO(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function QO(t,e,n){var r,i;return n&&wt["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function JO(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=qd(t)):(r=i.getSource(),o=r.sourceFormat===mf);var a=WO(e),s=$O(e,a),l=n.useEncodeDefaulter,c=wt["isFunction"](l)?l:l?wt["curry"](kf,s,e):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},h=zO(r,u),f=QO(h.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(h),p=XO(e,{schema:h,store:d}),g=new RO(h,e);g.setCalculationInfo(p);var v=null!=f&&tw(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:d,null,v),g}function tw(t){if(t.sourceFormat===mf){var e=ew(t.data||[]);return!wt["isArray"](Ao(e))}}function ew(t){var e=0;while(ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ma(rw);var iw=rw,ow=0,aw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ow}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(wt["map"])(r,sw);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(wt["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(wt["createHashMap"])(this.categories))},t}();function sw(t){return Object(wt["isObject"])(t)&&null!=t.value?t.value:t+""}var lw=aw;function cw(t){return"interval"===t.type||"log"===t.type}function uw(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=mo(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=fw(a),l=i.niceTickExtent=[ro(Math.ceil(t[0]/a)*a,s),ro(Math.floor(t[1]/a)*a,s)];return pw(l,t),i}function hw(t){var e=Math.pow(10,yo(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ro(n*e)}function fw(t){return oo(t)+2}function dw(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function pw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),dw(t,0,e),dw(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function gw(t,e){return t>=e[0]&&t<=e[1]}function vw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function yw(t,e){return t*(e[1]-e[0])+e[0]}var mw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new lw({})),Object(wt["isArray"])(r)&&(r=new lw({categories:Object(wt["map"])(r,(function(t){return Object(wt["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return xt(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(wt["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),gw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),vw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(yw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(iw);iw.registerClass(mw);var bw=mw,_w=ro,xw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return xt(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return gw(t,this._extent)},e.prototype.normalize=function(t){return vw(t,this._extent)},e.prototype.scale=function(t){return yw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=fw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:_w(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function Dw(t){var e=Iw(t),n=[];return Object(wt["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],c=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),h=Math.abs(u[1]-u[0]);r=l?c/h*l:c}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var d=no(t.get("barWidth"),r),p=no(t.get("barMaxWidth"),r),g=no(t.get("barMinWidth")||(Rw(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Mw(o),stackId:Tw(t)})})),Aw(n)}function Aw(t){var e={};Object(wt["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=t.barMaxWidth;c&&(a[s].maxWidth=c);var u=t.barMinWidth;u&&(a[s].minWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(wt["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(wt["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=no(o,i),l=no(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),Object(wt["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,c-=r+l*r,u--}else{var r=h;e&&er&&(r=n),r!==h&&(t.width=r,c-=r+l*r,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var f,d=0;Object(wt["each"])(r,(function(t,e){t.width||(t.width=h),f=t,d+=t.width*(1+l)})),f&&(d-=f.width*l);var p=-d/2;Object(wt["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function Pw(t,e,n){if(t&&e){var r=t[Mw(e)];return null!=r&&null!=n?r[Tw(n)]:r}}function Lw(t,e){var n=kw(t,e),r=Dw(n);Object(wt["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=Tw(t),a=r[Mw(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function Nw(t){return{seriesType:t,plan:zg(),reset:function(t){if(Ew(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),u=ZO(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=Bw(r,i),d=Rw(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=d&&jw(3*i),c=d&&s&&jw(3*i),m=d&&jw(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),O=0;while(null!=(r=t.next())){var w=x.get(u?g:o,r),S=x.get(a,r),j=f,C=void 0;u&&(C=+w-x.get(o,r));var T=void 0,M=void 0,k=void 0,I=void 0;if(h){var D=n.dataToPoint([w,S]);if(u){var A=n.dataToPoint([C,S]);j=A[0]}T=j,M=D[1]+y,k=D[0]-j,I=v,Math.abs(k)>>1;t[i][1]n&&(this._approxInterval=n);var o=Vw.length,a=Math.min(zw(Vw,this._approxInterval,0,o),o-1);this._interval=Vw[a][1],this._minLevelUnit=Vw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(wt["isNumber"])(t)?t:+go(t)},e.prototype.contain=function(t){return gw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return vw(this.parse(t),this._extent)},e.prototype.scale=function(t){return yw(t,this._extent)},e.type="time",e}(Ow),Vw=[["second",ah],["minute",sh],["hour",lh],["quarter-day",6*lh],["half-day",12*lh],["day",1.2*ch],["half-week",3.5*ch],["week",7*ch],["month",31*ch],["quarter",95*ch],["half-year",uh/2],["year",uh]];function Hw(t,e,n,r){var i=go(e),o=go(n),a=function(t){return wh(i,t,r)===wh(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},h=function(){return u()&&a("minute")},f=function(){return h()&&a("second")},d=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return f();case"millisecond":return d()}}function Gw(t,e){return t/=ch,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Ww(t){var e=30*ch;return t/=e,t>6?6:t>3?3:t>2?2:1}function Uw(t){return t/=lh,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Yw(t,e){return t/=e?sh:ah,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Xw(t){return mo(t,!0)}function qw(t,e,n){var r=new Date(t);switch(yh(e)){case"year":case"month":r[Ah(n)](0);case"day":r[Ph(n)](1);case"hour":r[Lh(n)](0);case"minute":r[Nh(n)](0);case"second":r[Eh(n)](0),r[Rh(n)](0)}return r.getTime()}function Zw(t,e,n,r){var i=1e4,o=gh,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),c=e,u=l[i]();while(c1&&0===c&&o.unshift({value:o[0].value-f})}}for(c=0;c=r[0]&&m<=r[1]&&h++)}var b=(r[1]-r[0])/e;if(h>1.5*b&&f>b/1.5)break;if(c.push(v),h>b||t===o[d])break}u=[]}}}var _=Object(wt["filter"])(Object(wt["map"])(c,(function(t){return Object(wt["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],O=_.length-1;for(d=0;d<_.length;++d)for(var w=_[d],S=0;S0)r*=10;var o=[ro(eS(e[0]/r)*r),ro(tS(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Qw.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=rS(t)/rS(this.base),gw(t,this._extent)},e.prototype.normalize=function(t){return t=rS(t)/rS(this.base),vw(t,this._extent)},e.prototype.scale=function(t){return t=yw(t,this._extent),nS(this.base,t)},e.type="log",e}(iw),oS=iS.prototype;function aS(t,e){return Jw(t,oo(e))}oS.getMinorTicks=Qw.getMinorTicks,oS.getLabel=Qw.getLabel,iw.registerClass(iS);var sS=iS,lS=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[uS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=cS[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),cS={min:"_determinedMin",max:"_determinedMax"},uS={min:"_dataMin",max:"_dataMax"};function hS(t,e,n){var r=t.rawExtentInfo;return r||(r=new lS(t,e,n),t.rawExtentInfo=r,r)}function fS(t,e){return null==e?null:Object(wt["eqNaN"])(e)?NaN:t.parse(e)}function dS(t,e){var n=t.type,r=hS(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=kw("bar",a),l=!1;if(wt["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var c=Dw(s),u=pS(i,o,e,c);i=u.min,o=u.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function pS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Pw(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;wt["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;wt["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,h=1-(s+l)/o,f=u/h-u;return e+=f*(l/c),t-=f*(s/c),{min:t,max:e}}function gS(t,e){var n=e,r=dS(t,n),i=r.extent,o=n.get("splitNumber");t instanceof sS&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function vS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new bw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Kw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(iw.getClass(e)||Ow)}}function yS(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function mS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):wt["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):wt["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(bS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function bS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function _S(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof bw?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=mS(t),c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;un&&(t=i,n=a)}if(t)return RS(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(wt["each"])(i,(function(e){"polygon"===e.type?ES(e.exterior,n,r,t):Object(wt["each"])(e.points,(function(e){ES(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new di(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function US(t,e){return t=HS(t),wt["map"](wt["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new zS(o[0],o.slice(1)));break;case"MultiPolygon":wt["each"](r.coordinates,(function(t){t[0]&&i.push(new zS(t[0],t.slice(1)))}));break;case"LineString":i.push(new FS([r.coordinates]));break;case"MultiLineString":i.push(new FS(r.coordinates))}var a=new VS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function YS(t,e,n,r,i,o,a,s){var l=new Fl({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var XS=Zo();function qS(t){return"category"===t.type?KS(t):JS(t)}function ZS(t,e){return"category"===t.type?QS(t,e):{ticks:wt["map"](t.scale.getTicks(),(function(t){return t.value}))}}function KS(t){var e=t.getLabelModel(),n=$S(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function $S(t,e){var n,r,i=tj(t,"labels"),o=OS(e),a=ej(i,o);return a||(wt["isFunction"](o)?n=sj(t,o):(r="auto"===o?rj(t):o,n=aj(t,r)),nj(i,o,{labels:n,labelCategoryInterval:r}))}function QS(t,e){var n,r,i=tj(t,"ticks"),o=OS(e),a=ej(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),wt["isFunction"](o))n=sj(t,o,!0);else if("auto"===o){var s=$S(t,t.getLabelModel());r=s.labelCategoryInterval,n=wt["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=aj(t,r,!0);return nj(i,o,{ticks:n,tickCategoryInterval:r})}function JS(t){var e=t.scale.getTicks(),n=mS(t);return{labels:wt["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function tj(t,e){return XS(t)[e]||(XS(t)[e]=[])}function ej(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(r)),h=Math.abs(c*Math.sin(r)),f=0,d=0;l<=o[1];l+=s){var p=0,g=0,v=bi(n({value:l}),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,f=Math.max(f,p,7),d=Math.max(d,g,7)}var y=f/u,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),_=XS(t.model),x=t.getExtent(),O=_.lastAutoInterval,w=_.lastTickCount;return null!=O&&null!=w&&Math.abs(O-b)<=1&&Math.abs(w-a)<=1&&O>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=O:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function oj(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function aj(t,e,n){var r=mS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=o[0],u=i.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=wS(t),f=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;f&&c!==o[0]&&g(o[0]);for(var p=c;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return d&&p-l!==o[1]&&g(o[1]),s}function sj(t,e,n){var r=t.scale,i=mS(t),o=[];return wt["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var lj=[0,1],cj=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return so(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),uj(n,r.count())),eo(t,lj,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),uj(n,r.count()));var i=eo(t,n,lj,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=ZS(this,e),r=n.ticks,i=Object(wt["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return hj(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(wt["map"])(n,(function(t){return Object(wt["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return qS(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return ij(this)},t}();function uj(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function hj(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,c=(e[i-1].coord-e[0].coord)/l;Object(wt["each"])(e,(function(t){t.coord-=c/2}));var u=t.scale.getExtent();a=1+u[1]-e[i-1].tickValue,o={coord:e[i-1].coord+c*a},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=ro(t),e=ro(e),h?t>e:ti&&(i+=yj);var d=Math.atan2(s,a);if(d<0&&(d+=yj),d>=r&&d<=i||d+yj>=r&&d+yj<=i)return l[0]=u,l[1]=h,c-n;var p=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(p-a)*(p-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,Tj.fromArray(t[0]),Mj.fromArray(t[1]),kj.fromArray(t[2]),ri.sub(Ij,Tj,Mj),ri.sub(Dj,kj,Mj);var n=Ij.len(),r=Dj.len();if(!(n<.001||r<.001)){Ij.scale(1/n),Dj.scale(1/r);var i=Ij.dot(Dj),o=Math.cos(e);if(o1&&ri.copy(Lj,kj),Lj.toArray(t[1])}}}}function Ej(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function Rj(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Gt(r[0],r[1]),o=Gt(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Xt([],r[1],r[0],a/i),l=Xt([],r[1],r[2],a/o),c=Xt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u0&&o&&O(-h/a,0,a);var v,y,m=t[0],b=t[a-1];return _(),v<0&&w(-v,.8),y<0&&w(y,.8),_(),x(v,y,1),x(y,v,-1),_(),v<0&&S(-v),y<0&&S(y),c}function _(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){O(r*n,0,a);var i=r+t;i<0&&w(-i*n,1)}else w(-t*n,1)}}function O(n,r,i){0!==n&&(c=!0);for(var o=r;o0)for(l=0;l0;l--){f=o[l-1]*h;O(-f,l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?O(n,0,r+1):O(-n,a-r-1,a),t-=n,t<=0)return}}function Hj(t,e,n,r){return Vj(t,"x","width",e,n,r)}function Gj(t,e,n,r){return Vj(t,"y","height",e,n,r)}function Wj(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new di(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(wt["indexOf"])(u,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ou(n,l,e,s)}else if(n.attr(l),!Tu(n).valueAnimation){var h=Object(wt["retrieve2"])(n.style.opacity,1);n.style.opacity=0,au(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};$j(f,l,Qj),$j(f,n.states.select,Qj)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};$j(d,l,Qj),$j(d,n.states.emphasis,Qj)}ku(n,s,c,e,e)}if(r&&!r.ignore&&!r.invisible){i=Kj(r),o=i.oldLayout;var p={points:r.shape.points};o?(r.attr({shape:o}),ou(r,{shape:p},e)):(r.setShape(p),r.style.strokePercent=0,au(r,{style:{strokePercent:1}},e)),i.oldLayout=p}},t}(),tC=Jj,eC=Zo();function nC(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=eC(e).labelManager;r||(r=eC(e).labelManager=new tC),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=eC(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}rO(nC);var rC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return xt(e,t),e.prototype.getInitialData=function(t){return nw(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Fi,n=vb("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=vb(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Eg),iC=rC;function oC(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=dp(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}var sC=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return xt(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=vb(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=lC,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Cc(this.childAt(0))},e.prototype.downplay=function(){Tc(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,c=i&&i.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(f):ou(h,f,a,n),hu(h)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!c){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,au(h,f,a,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,c,u,h,f,d,p=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,c=r.blurScope,h=r.labelStatesModels,f=r.hoverScale,d=r.cursorStyle,u=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),c=y.get("blurScope"),u=y.get("disabled"),h=yu(v),f=y.getShallow("scale"),d=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(m||0)*Math.PI/180||0);var b=mb(t.getItemVisual(e,"symbolOffset"),n);b&&(p.x=b[0],p.y=b[1]),d&&p.attr("cursor",d);var _=t.getItemVisual(e,"style"),x=_.fill;if(p instanceof dl){var O=p.style;p.useStyle(Object(wt["extend"])({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},_))}else p.__isEmptyBrush?p.useStyle(Object(wt["extend"])({},_)):p.useStyle(_),p.style.decal=null,p.setColor(x,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var w=t.getItemVisual(e,"liftZ"),S=this._z2;null!=w?null==S&&(this._z2=p.z2,p.z2+=w):null!=S&&(p.z2=S,this._z2=null);var j=i&&i.useNameLabel;function C(e){return j?t.getName(e):oC(t,e)}vu(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:C,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=p.ensureState("emphasis");if(T.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a,f){var M=Math.max(Object(wt["isNumber"])(f)?f:1.1,3/this._sizeY);T.scaleX=this._sizeX*M,T.scaleY=this._sizeY*M}this.setSymbolScale(1),Uc(this,l,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Vl(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&lu(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();lu(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return yb(t.getItemVisual(e,"symbolSize"))},e}(Fi);function lC(t,e){this.parent.drift(t,e)}var cC=sC;function uC(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function hC(t){return null==t||Object(wt["isObject"])(t)||(t={isIgnore:t}),t||{}}function fC(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:yu(e),cursorStyle:e.get("cursor")}}var dC=function(){function t(t){this.group=new Fi,this._SymbolCtor=t||cC}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=hC(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=fC(t),l={disableAnimation:a},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=c(r);if(uC(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(u,h){var f=i.getItemGraphicEl(h),d=c(u);if(uC(t,d,u,e)){var p=t.getItemVisual(u,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==p)n.remove(f),f=new o(t,u,s,l),f.setPosition(d);else{f.updateData(t,u,s,l);var v={x:d[0],y:d[1]};a?f.attr(v):ou(f,v,r)}n.add(f),t.setItemGraphicEl(u,f)}else n.remove(f)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=fC(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=hC(n);for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function yC(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function mC(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function bC(t,e,n,r,i,o,a,s){for(var l=mC(t,e),c=[],u=[],h=[],f=[],d=[],p=[],g=[],v=gC(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=i||g<0)break;if(OC(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,f=m;else{var b=y-c,_=m-u;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,O=e[2*x],w=e[2*x+1];while(O===y&&w===m&&v=r||OC(O,w))d=y,p=m;else{C=O-c,T=w-u;var I=y-c,D=O-y,A=m-u,P=w-m,L=void 0,N=void 0;if("x"===s){L=Math.abs(I),N=Math.abs(D);var E=C>0?1:-1;d=y-E*L*a,p=m,M=y+E*N*a,k=m}else if("y"===s){L=Math.abs(A),N=Math.abs(P);var R=T>0?1:-1;d=y,p=m-R*L*a,M=y,k=m+R*N*a}else L=Math.sqrt(I*I+A*A),N=Math.sqrt(D*D+P*P),j=N/(N+L),d=y-C*a*(1-j),p=m-T*a*(1-j),M=y+C*a*j,k=m+T*a*j,M=_C(M,xC(O,y)),k=_C(k,xC(w,m)),M=xC(M,_C(O,y)),k=xC(k,_C(w,m)),C=M-y,T=k-m,d=y-C*L/N,p=m-T*L/N,d=_C(d,xC(c,y)),p=_C(p,xC(u,m)),d=xC(d,_C(c,y)),p=xC(p,_C(u,m)),C=y-d,T=m-p,M=y+C*N/L,k=m+T*N/L}t.bezierCurveTo(h,f,d,p,y,m),h=M,f=k}else t.lineTo(y,m)}c=y,u=m,g+=o}return v}var SC=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),jC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return xt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new SC},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!OC(n[2*i-2],n[2*i-1]))break;for(;r=0){var m=s?(f-r)*y+r:(h-n)*y+n;return s?[t,m]:[m,t]}n=h,r=f;break;case a.C:h=o[c++],f=o[c++],d=o[c++],p=o[c++],g=o[c++],v=o[c++];var b=s?bn(n,h,d,g,t,l):bn(r,f,p,v,t,l);if(b>0)for(var _=0;_=0){m=s?yn(r,f,p,v,x):yn(n,h,d,g,x);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(ol),CC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xt(e,t),e}(SC),TC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return xt(e,t),e.prototype.getDefaultShape=function(){return new CC},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!OC(n[2*o-2],n[2*o-1]))break;for(;ie){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function zC(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),c=wt["map"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),u=c.length,h=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var f=BC(c,"x"===i?n.getWidth():n.getHeight()),d=f.length;if(!d&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var p=10,g=f[0].coord-p,v=f[d-1].coord+p,y=v-g;if(y<.001)return"transparent";wt["each"](f,(function(t){t.offset=(t.coord-g)/y})),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var m=new sy(0,0,0,0,f,!0);return m[i]=g,m[i+"2"]=v,m}}}function FC(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!VC(o,e))){var a=e.mapDimension(o.dim),s={};return wt["each"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function VC(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function HC(t,e){return isNaN(t)||isNaN(e)}function GC(t){for(var e=t.length/2;e>0;e--)if(!HC(t[2*e-2],t[2*e-1]))break;return e-1}function WC(t,e){return[t[2*e],t[2*e+1]]}function UC(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c=e||r>=e&&i<=e){l=c;break}s=c,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function YC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var L=d.getState("emphasis").style;L.lineWidth=+d.style.lineWidth+1}Vl(d).seriesIndex=t.seriesIndex,Uc(d,D,A,P);var N=NC(t.get("smooth")),E=t.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:E,connectNulls:O}),p){var R=a.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(wt["defaults"](l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(B=NC(R.get("smooth"))),p.setShape({smooth:N,stackedOnSmooth:B,smoothMonotone:E,connectNulls:O}),Zc(p,t,"areaStyle"),Vl(p).seriesIndex=t.seriesIndex,Uc(p,D,A,P)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=c,this._step=C,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){Vl(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=qo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel"),h=t.get("z");s=new cC(i,o),s.x=l,s.y=c,s.setZ(u,h);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=h,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else om.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=qo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else om.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;yc(this._polyline,t),e&&yc(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new jC({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new TC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");wt["isFunction"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=wt["isFunction"](c)?c(null):c;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],f=void 0,d=void 0,p=void 0;if(n)if(i){var g=n,v=e.pointToCoord(h);r?(f=g.startAngle,d=g.endAngle,p=-v[1]/180*Math.PI):(f=g.r0,d=g.r,p=v[0])}else{var y=n;r?(f=y.x,d=y.x+y.width,p=t.x):(f=y.y+y.height,d=y.y,p=t.y)}var m=d===f?0:(p-f)/(d-f);a&&(m=1-m);var b=wt["isFunction"](c)?c(o):l*m+u,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(YC(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Fl({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=GC(a);l>=0&&(vu(o,yu(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?aC(i,n):oC(i,t)},enableTextSetter:!0},qC(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),f=o.get("precision"),d=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),x=g?"x":"y",O=UC(c,m,x),w=O.range,S=w[1]-w[0],j=void 0;if(S>=1){if(S>1&&!h){var C=WC(c,w[0]);s.attr({x:C[0]+b,y:C[1]+_}),i&&(j=u.getRawValue(w[0]))}else{C=l.getPointOn(m,x);C&&s.attr({x:C[0]+b,y:C[1]+_});var T=u.getRawValue(w[0]),M=u.getRawValue(w[1]);i&&(j=ia(n,f,T,M,O.t))}r.lastFrameIndex=w[0]}else{var k=1===t||r.lastFrameIndex>0?w[0]:0;C=WC(c,k);i&&(j=u.getRawValue(k)),s.attr({x:C[0]+b,y:C[1]+_})}i&&Tu(s).setLabelText(j)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,c=t.hostModel,u=bC(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=u.current,f=u.stackedOnCurrent,d=u.next,p=u.stackedOnNext;if(i&&(h=RC(u.current,n,i,a),f=RC(u.stackedOnCurrent,n,i,a),d=RC(u.next,n,i,a),p=RC(u.stackedOnNext,n,i,a)),LC(h,d)>3e3||l&&LC(f,p)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:p})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:d}};u.current!==h&&(g.shape.__points=u.next),s.stopAnimation(),ou(s,g,c),l&&(l.setShape({points:h,stackedOnPoints:f}),l.stopAnimation(),ou(l,{shape:{stackedOnPoints:p}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=u.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),f=Math.round(a/h);if(isFinite(f)&&f>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f));var d=void 0;Object(wt["isString"])(i)?d=QC[i]:Object(wt["isFunction"])(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/f,d,JC))}}}}}function eT(t){t.registerChartView(KC),t.registerSeriesModel(iC),t.registerLayout($C("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,tT("line"))}var nT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xt(e,t),e.prototype.getInitialData=function(t,e){return nw(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Eg);Eg.registerClass(nT);var rT=nT,iT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xt(e,t),e.prototype.getInitialData=function(){return nw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Xu(rT.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(rT),oT=iT,aT=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),sT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return xt(e,t),e.prototype.getDefaultShape=function(){return new aT},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=2*Math.PI,f=u?c-lMath.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}}function hT(t,e,n){return e*Math.sin(t)*(n?-1:1)}function fT(t,e,n){return e*Math.cos(t)*(n?1:-1)}var dT=Math.max,pT=Math.min;function gT(t,e){var n=t.getArea&&t.getArea();if(DC(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var vT=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return xt(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Ky(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?i=c.isHorizontal():"polar"===l.type&&(i="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,h=bT(t,l);h&&this._enableRealtimeSort(h,a,n);var f=t.get("clip",!0)||h,d=gT(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function O(t){var e=jT[l.type](a,t),n=ET(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=jT[l.type](a,e,n);if(g&&O(e),a.hasValue(e)&&ST[l.type](r)){var s=!1;f&&(s=yT[l.type](d,r));var v=mT[l.type](t,a,e,r,i,u,c.model,!1,p);h&&(v.forceLabelAnimation=!0),MT(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?_T(h,u,v,r,e,i,!1,!1):au(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),w=jT[l.type](a,e,r);if(g){var S=void 0;0===b.length?S=O(n):(S=b[n],S.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&S.setShape("r",y),m[e]=S);var j=jT[l.type](a,e),C=NT(i,j,l);ou(S,{shape:C},u,e)}var T=s.getItemGraphicEl(n);if(a.hasValue(e)&&ST[l.type](w)){var M=!1;if(f&&(M=yT[l.type](d,w),M&&o.remove(T)),T?hu(T):T=mT[l.type](t,a,e,w,i,u,c.model,!!T,p),h&&(T.forceLabelAnimation=!0),x){var k=T.getTextContent();if(k){var I=Tu(k);null!=I.prevValue&&(I.prevValue=I.value)}}else MT(T,a,e,r,w,t,i,"polar"===l.type);_?T.attr({shape:w}):h?_T(h,u,T,w,e,i,!0,x):ou(T,{shape:w},t,e,null),a.setItemGraphicEl(e,T),T.ignore=M,o.add(T)}else o.remove(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&uu(n,t,e)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Fi);w.removeAll();for(var S=0;So)return!0;o=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){uu(e,t,Vl(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(om),yT={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=dT(e.x,t.x),s=pT(e.x+e.width,i),l=dT(e.y,t.y),c=pT(e.y+e.height,o),u=si?s:a,e.y=h&&l>o?c:l,e.width=u?0:s-a,e.height=h?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=pT(e.r,t.r),o=dT(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},mT={cartesian2d:function(t,e,n,r,i,o,a,s,l){var c=new Ol({shape:Object(wt["extend"])({},r),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,h=i?"height":"width";u[h]=0}return c},polar:function(t,e,n,r,i,o,a,s,l){var c=!i&&l?lT:Av,u=new c({shape:r,z2:1});u.name="item";var h=TT(i);if(u.calculateTextPosition=cT(h,{isRoundCap:c===lT}),o){var f=u.shape,d=i?"r":"endAngle",p={};f[d]=i?0:r.startAngle,p[d]=r[d],(s?ou:au)(u,{shape:p},o)}return u}};function bT(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function _T(t,e,n,r,i,o,a,s){var l,c;o?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?ou:au)(n,{shape:l},e,i,null);var u=e?t.baseAxis.model:null;(a?ou:au)(n,{shape:c},u,i)}function xT(t,e){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function CT(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function TT(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function MT(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var c=r.getShallow("cursor");c&&t.attr("cursor",c);var u=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=yu(r);vu(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:oC(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u});var f=t.getTextContent();if(s&&f){var d=r.get(["label","position"]);t.textConfig.inside="middle"===d||null,uT(t,"outside"===d?u:d,TT(a),r.get(["label","rotate"]))}Mu(f,h,o.getRawValue(n),(function(t){return aC(e,t)}));var p=r.getModel(["emphasis"]);Uc(t,p.get("focus"),p.get("blurScope"),p.get("disabled")),Zc(t,r),CT(i)&&(t.style.fill="none",t.style.stroke="none",Object(wt["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function kT(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var IT=function(){function t(){}return t}(),DT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return xt(e,t),e.prototype.getDefaultShape=function(){return new IT},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function LT(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,h=o.length/3;u=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function NT(t,e,n){if(DC(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function ET(t,e,n){var r="polar"===t.type?Av:Ol;return new r({shape:NT(e,n,t),silent:!0,z2:0})}var RT=vT;function BT(t){t.registerChartView(RT),t.registerSeriesModel(oT),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,wt["curry"](Lw,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nw("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,tT("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var zT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return xt(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(df),FT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=wt["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new Fl({style:mu(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=t.get("subtext"),h=new Fl({style:mu(o,{text:u,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),d=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!f&&!p,h.silent=!d&&!p,f&&l.on("click",(function(){Qh(f,"_"+t.get("target"))})),d&&h.on("click",(function(){Qh(d,"_"+t.get("subtarget"))})),Vl(l).eventData=Vl(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),u&&r.add(h);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=of(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var b=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new Ol({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(x)}},e.type="title",e}(Bg);function VT(t){t.registerComponentModel(zT),t.registerComponentView(FT)}function HT(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return GT(n,t,e),n.seriesInvolved&&UT(n,t),n}function GT(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(wt["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=QT(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",r);if(Object(wt["each"])(n.getAxes(),Object(wt["curry"])(p,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var h="axis"===u.get("trigger"),f="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||f)&&Object(wt["each"])(d.baseAxes,Object(wt["curry"])(p,!f||"cross",h)),f&&Object(wt["each"])(d.otherAxes,Object(wt["curry"])(p,"cross",!1))}}function p(r,s,c){var h=c.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||$T(h))){null==s&&(s=h.get("triggerTooltip")),h=r?WT(c,u,i,e,r,s):h;var d=h.get("snap"),p=QT(c.model),g=s||d||"category"===c.type,v=t.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:d,useHandle:$T(h),seriesModels:[],linkGroup:null};l[p]=v,t.seriesInvolved=t.seriesInvolved||g;var y=YT(o,c);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[p]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function WT(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(wt["each"])(s,(function(t){l[t]=Object(wt["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===i){var u=a.get(["label","show"]);if(c.show=null==u||u,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(wt["defaults"])(c,h.textStyle)}}return t.model.getModel("axisPointer",new Hu(l,n,r))}function UT(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(wt["each"])(t.coordSysAxesInfo[QT(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function YT(t,e){for(var n=e.model,r=e.dim,i=0;i=0||t===e}function qT(t){var e=ZT(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=$T(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),aa)return!0;if(o){var s=ZT(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=nM(t).pointerEl=new a[i.type](rM(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=nM(t).labelEl=new Fl(rM(e.label));t.add(i),lM(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=nM(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=nM(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),lM(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Gy(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Oe(t.event)},onmousedown:iM(this._onHandleDragMove,this,0,0),drift:iM(this._onHandleDragMove,this),ondragend:iM(this._onHandleDragEnd,this)}),r.add(i)),uM(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");wt["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,um(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){aM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,cM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(cM(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(cM(r)),nM(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),hm(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function aM(t,e,n,r){sM(nM(n).lastProp,r)||(nM(n).lastProp=r,e?ou(n,r,t):(n.stopAnimation(),n.attr(r)))}function sM(t,e){if(wt["isObject"](t)&&wt["isObject"](e)){var n=!0;return wt["each"](e,(function(e,r){n=n&&sM(t[r],e)})),!!n}return t===e}function lM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function cM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function uM(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var hM=oM,fM=Math.PI,dM=function(){function t(t,e){this.group=new Fi,this.opt=e,this.axisModel=t,Object(wt["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Fi({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!pM[t]},t.prototype.add=function(t){pM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=ho(e-t);return fo(o)?(i=n>0?"top":"bottom",r="center"):fo(o-fM)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),pM={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(qt(s,s,a),qt(l,l,a));var c=Object(wt["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new Xv({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});u.anid="line",n.add(u);var h=e.get(["axisLine","symbol"]);if(null!=h){var f=e.get(["axisLine","symbolSize"]);Object(wt["isString"])(h)&&(h=[h,h]),(Object(wt["isString"])(f)||Object(wt["isNumber"])(f))&&(f=[f,f]);var d=mb(e.get(["axisLine","symbolOffset"])||0,f),p=f[0],g=f[1];Object(wt["each"])([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==h[r]&&null!=h[r]){var i=vb(h[r],-p/2,-g/2,p,g,c.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=xM(n,r,e,t),o=wM(n,r,e,t);if(vM(e,o,i),OM(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Fj(Object(wt["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Wj(a)}},axisName:function(t,e,n,r){var i=Object(wt["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),f=h[0]>h[1]?-1:1,d=["start"===s?h[0]-f*u:"end"===s?h[1]+f*u:(h[0]+h[1])/2,bM(s)?t.labelOffset+l*u:0],p=e.get("nameRotate");null!=p&&(p=p*fM/180),bM(s)?o=dM.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=gM(t.rotation,s,p||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Object(wt["retrieve"])(t.nameTruncateMaxWidth,v.maxWidth,a),b=new Fl({x:d[0],y:d[1],rotation:o.rotation,silent:dM.isLabelSilent(e),style:mu(c,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(qy({el:b,componentModel:e,itemName:i}),b.__fullText=i,b.anid="name",e.get("triggerEvent")){var _=dM.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Vl(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function gM(t,e,n,r){var i,o,a=ho(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return fo(a-fM/2)?(o=l?"bottom":"top",i="center"):fo(a-1.5*fM)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*fM&&a>fM/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function vM(t,e,n){if(!wS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(yM(o),yM(c)):mM(o,a)&&(r?(yM(a),yM(u)):(yM(o),yM(c))),!1===i?(yM(s),yM(h)):mM(l,s)&&(i?(yM(l),yM(f)):(yM(s),yM(h)))}}function yM(t){t&&(t.ignore=!0)}function mM(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Rr([]);return Vr(i,i,-t.rotation),n.applyTransform(zr([],i,t.getLocalTransform())),r.applyTransform(zr([],i,e.getLocalTransform())),n.intersect(r)}}function bM(t){return"middle"===t||"center"===t}function _M(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){$M("axisPointer",e)},e.prototype.dispose=function(t,e){$M("axisPointer",e)},e.type="axisPointer",e}(Bg),JM=QM;function tk(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=qo(o,t);if(null==a||a<0||wt["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,f=c.dim,d="x"===h||"radius"===h?1:0,p=o.mapDimension(f),g=[];g[d]=o.get(p,a),g[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(wt["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var ek=Zo();function nk(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(wt["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){fk(i)&&(i=tk({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=fk(i),c=o.axesInfo,u=s.axesInfo,h="leave"===r||fk(i),f={},d={},p={list:[],map:{}},g={showPointer:Object(wt["curry"])(ok,d),showTooltip:Object(wt["curry"])(ak,p)};Object(wt["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(wt["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=uk(c,t);if(!h&&n&&(!c||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&rk(t,a,g,!1,f)}}))}));var v={};return Object(wt["each"])(u,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(wt["each"])(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,hk(e),hk(t)))),v[t.key]=o}}))})),Object(wt["each"])(v,(function(t,e){rk(u[e],t,g,!0,f)})),sk(d,u,f),lk(p,i,t,a),ck(u,a,n),f}}function rk(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=ik(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(wt["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function ik(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(wt["each"])(e.seriesModels,(function(e,l){var c,u,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);u=f.dataIndices,c=f.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;c=e.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var d=t-c,p=Math.abs(d);p<=a&&((p=0&&s<0)&&(a=p,s=d,i=c,o.length=0),Object(wt["each"])(u,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function ok(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function ak(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,c=QT(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function sk(t,e,n){var r=n.axesInfo=[];Object(wt["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function lk(t,e,n,r){if(!fk(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function ck(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=ek(r)[i]||{},a=ek(r)[i]={};Object(wt["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(wt["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(wt["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(wt["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function uk(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function hk(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function fk(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function dk(t){eM.registerAxisPointerClass("CartesianAxisPointer",FM),t.registerComponentModel(HM),t.registerComponentView(JM),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(wt["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=HT(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},nk)}var pk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return xt(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(df),gk=pk;function vk(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function yk(t){if(Ot["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var u=o*Math.PI/180,h=s+i,f=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),d=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;l+=";"+a+":-"+d+"px";var p=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Tk(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=Ot["a"].transformSupported?","+wk+r:",left"+r+",top"+r),Ok+":"+i}function Mk(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Ot["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Ot["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+wk+":"+a+";":[["top",0],["left",0],[mk,a]]}function kk(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(wt["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function Ik(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),u=t.getModel("textStyle"),h=_g(t,"html"),f=l+"px "+c+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(Tk(i,n)),o&&r.push("background-color:"+o),Object(wt["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=zh(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(kk(u)),null!=h&&r.push("padding:"+Fh(h).join("px ")+"px"),r.join(";")+";"}function Dk(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&se(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Ak=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ot["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Dk(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();me(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=xk(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=Sk+Ik(t,!this._firstShow,this._longHide)+Mk(i[0],i[1],!0)+"border-color:"+$h(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(wt["isString"])(i)&&"item"===n.get("trigger")&&!vk(n)&&(a=Ck(n,r,i)),Object(wt["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(wt["isArray"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!Ot["a"].node&&n.getDom()){var i=Hk(r,n);this._ticket="";var o=r.dataByCoordSys,a=Xk(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=zk;l.x=r.x,l.y=r.y,l.update(),Vl(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var c=tk(r,e),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(Hk(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),c=Vk([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,nb(n,(function(t){return null!=Vl(t).dataIndex?(o=t,!0):null!=Vl(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(wt["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=Vk([e.tooltipOption],r),a=this._renderMode,s=[],l=ag("section",{blocks:[],noHeader:!0}),c=[],u=new xg;Object(wt["each"])(t,(function(t){Object(wt["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=MM(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=ag("section",{header:o,noHeader:!Object(wt["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(wt["each"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=f.getDataParams(d);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=bS(e.axis,{value:i}),p.axisValueLabel=o,p.marker=u.makeTooltipMarker("item",$h(p.color),a);var g=vp(f.formatTooltip(d,!0,null)),v=g.frag;if(v){var y=Vk([f],r).get("valueFormatter");h.blocks.push(y?Object(wt["extend"])({valueFormatter:y},v):v)}g.text&&c.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),c.reverse();var h=e.position,f=o.get("order"),d=fg(l,u,a,f,n.get("useUTC"),o.get("textStyle"));d&&c.unshift(d);var p="richText"===a?"\n\n":"
",g=c.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,u)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Vl(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,c=i.dataType,u=s.getData(c),h=this._renderMode,f=t.positionDefault,d=Vk([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=d.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,c),v=new xg;g.marker=v.makeTooltipMarker("item",$h(g.color),h);var y=vp(s.formatTooltip(l,!1,c)),m=d.get("order"),b=d.get("valueFormatter"),_=y.frag,x=_?fg(b?Object(wt["extend"])({valueFormatter:b},_):_,v,h,m,r.get("useUTC"),d.get("textStyle")):y.text,O="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,x,g,O,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Vl(e),i=r.tooltipConfig,o=i.option||{};if(Object(wt["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var c=t.positionDefault,u=Vk(s,this._tooltipModel,c?{position:c}:null),h=u.get("content"),f=Math.random()+"",d=new xg;this._showOrMove(u,(function(){var n=Object(wt["clone"])(u.get("formatterParams")||{});this._showTooltipContent(u,h,n,f,t.offsetX,t.offsetY,t.position,e,d)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var u=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),d=f.color;if(u)if(Object(wt["isString"])(u)){var p=t.ecModel.get("useUTC"),g=Object(wt["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=u,v&&(h=_h(g.axisValue,h,p)),h=Xh(h,n,!0)}else if(Object(wt["isFunction"])(u)){var y=Object(wt["bind"])((function(e,r){e===this._ticket&&(c.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,c,n,s))}),this);this._ticket=r,h=u(n,r,y)}else h=u;c.setContent(h,l,t,d,a),c.show(t,d),this._updatePosition(t,a,i,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(wt["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(wt["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=i.getSize(),u=t.get("align"),h=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(wt["isFunction"])(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:c.slice()})),Object(wt["isArray"])(e))n=no(e[0],s),r=no(e[1],l);else if(Object(wt["isObject"])(e)){var d=e;d.width=c[0],d.height=c[1];var p=of(d,{width:s,height:l});n=p.x,r=p.y,u=null,h=null}else if(Object(wt["isString"])(e)&&a){var g=Uk(e,f,c,t.get("borderWidth"));n=g[0],r=g[1]}else{g=Gk(n,r,i,s,l,u?null:20,h?null:20);n=g[0],r=g[1]}if(u&&(n-=Yk(u)?c[0]/2:"right"===u?c[0]:0),h&&(r-=Yk(h)?c[1]/2:"bottom"===h?c[1]:0),vk(t)){g=Wk(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(wt["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(wt["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(wt["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(wt["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Ot["a"].node&&e.getDom()&&(hm(this,"_updatePosition"),this._tooltipContent.dispose(),$M("itemTooltip",e))},e.type="tooltip",e}(Bg);function Vk(t,e,n){var r,i=e.ecModel;n?(r=new Hu(n,i,i),r=new Hu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Hu&&(a=a.get("tooltip",!0)),Object(wt["isString"])(a)&&(a={formatter:a}),a&&(r=new Hu(a,r,i)))}return r}function Hk(t,e){return t.dispatchAction||Object(wt["bind"])(e.dispatchAction,e)}function Gk(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],c=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+c+a>i?e-=c+a:e+=a),[t,e]}function Wk(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Uk(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-i/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-i/2,l=e.y+u+a;break;case"left":s=e.x-i-a,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a,l=e.y+u/2-o/2}return[s,l]}function Yk(t){return"center"===t||"middle"===t}function Xk(t,e,n){var r=Qo(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=ta(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Vl(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var qk=Fk;function Zk(t){rO(dk),t.registerComponentModel(gk),t.registerComponentView(qk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},wt["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},wt["noop"])}var Kk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xt(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(df),$k=Kk,Qk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Jo).models[0]},e.type="cartesian2dAxis",e}(df);wt["mixin"](Qk,jS);var Jk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},tI=wt["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Jk),eI=wt["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Jk),nI=wt["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eI),rI=wt["defaults"]({logBase:10},eI),iI={category:tI,value:eI,time:nI,log:rI},oI={value:1,category:1,time:1,log:1};function aI(t,e,n,r){Object(wt["each"])(oI,(function(i,o){var a=Object(wt["merge"])(Object(wt["merge"])({},iI[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return xt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=af(this),r=n?lf(t):{},i=e.getTheme();Object(wt["merge"])(t,i.get(o+"Axis")),Object(wt["merge"])(t,this.getDefaultOption()),t.type=sI(t),n&&sf(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=lw.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",sI)}function sI(t){return t.type||(t.data?"category":"value")}var lI=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return wt["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),wt["filter"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),cI=lI,uI=["x","y"];function hI(t){return"interval"===t.type||"time"===t.type}var fI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=uI,e}return xt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(hI(t)&&hI(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,c=(o[1]-i[1])/s,u=i[0]-n[0]*l,h=i[1]-r[0]*c,f=this._transform=[l,0,0,c,u,h];this._invTransform=Gr([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return qt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return qt(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new di(n,r,i,o)},e}(cI),dI=fI,pI=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return xt(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(fj),gI=pI,vI=Math.log;function yI(t,e,n){var r=Ow.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=dS(t,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===t.type){var f=vI(t.base);c=[vI(c[0])/f,vI(c[1])/f]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:h});var d=r.getExtent.call(t);u&&(c[0]=d[0]),h&&(c[1]=d[1]);var p=r.getInterval.call(t),g=c[0],v=c[1];if(u&&h)p=(v-g)/a;else if(u){v=c[0]+p*a;while(vc[0]&&isFinite(g)&&isFinite(c[0]))p=hw(p),g=c[1]-p*a}else{var y=t.getTicks().length-1;y>a&&(p=hw(p));var m=p*a;v=Math.ceil(c[1]/p)*p,g=ro(v-m),g<0&&c[0]>=0?(g=0,v=ro(m)):v>0&&c[1]<=0&&(v=0,g=-ro(m))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+p*b,v+p*_),r.setInterval.call(t,p),(b||_)&&r.setNiceExtent.call(t,g+p,v-p)}var mI=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=uI,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(wt["keys"])(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,c=s.scale;cw(c)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(gS(c,l),cw(c)&&(e=s))}i.length&&(e||(e=i.pop(),gS(e.scale,e.model)),Object(wt["each"])(i,(function(t){yI(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(wt["each"])(n.x,(function(t){_I(n,"y",t,i)})),Object(wt["each"])(n.y,(function(t){_I(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=of(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(wt["each"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),OI(t,e?o.x:o.y)}))}s(),i&&(Object(wt["each"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=_S(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Object(wt["each"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(wt["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},VI=function(){function t(t){var e=this._condVal=Object(wt["isString"])(t)?new RegExp(t):Object(wt["isRegExp"])(t)?t:null;if(null==e){var n="";0,Uf(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(wt["isString"])(e)?this._condVal.test(t):!!Object(wt["isNumber"])(e)&&this._condVal.test(t+"")},t}(),HI=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),GI=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(df),oD=iD;function aD(t,e){var n=Fh(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Ol({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var sD=wt["curry"],lD=wt["each"],cD=Fi,uD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return xt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new cD),this.group.add(this._selectorGroup=new cD),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=t.get("padding"),h=of(l,c,u),f=this.layoutInner(t,i,h,r,a,s),d=of(wt["defaults"]({width:f.width,height:f.height},l),c,u);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=aD(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=wt["createHashMap"](),c=e.get("selectedMode"),u=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&u.push(t.id)})),lD(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new cD;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var d=f.getData(),p=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style"),y=this._createItem(f,a,o,i,e,t,p,v,g,c);y.on("click",sD(dD,a,null,r,u)).on("mouseover",sD(gD,f.name,null,r,u)).on("mouseout",sD(vD,f.name,null,r,u)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),f=s.getItemVisual(h,"style"),d=s.getItemVisual(h,"legendIcon"),p=Object(Nn["parse"])(f.fill);p&&0===p[3]&&(p[3]=.2,f=wt["extend"](wt["extend"]({},f),{fill:Object(Nn["stringify"])(p,"rgba")}));var g=this._createItem(n,a,o,i,e,t,{},f,d,c);g.on("click",sD(dD,null,a,r,u)).on("mouseover",sD(gD,null,a,r,u)).on("mouseout",sD(vD,null,a,r,u)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();lD(t,(function(t){var r=t.type,i=new Fl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);vu(i,{normal:a,emphasis:s},{defaultText:t.title}),Gc(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,c){var u=t.visualDrawType,h=i.get("itemWidth"),f=i.get("itemHeight"),d=i.isSelected(e),p=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),v=r.get("icon");l=v||l||"roundRect";var y=hD(l,r,a,s,u,d),m=new cD,b=r.getModel("textStyle");if(!wt["isFunction"](t.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===p?t.getData().getVisual("symbolRotate"):p:0;m.add(fD({itemWidth:h,itemHeight:f,icon:l,iconRotate:_,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else m.add(t.getLegendIcon({itemWidth:h,itemHeight:f,icon:l,iconRotate:p,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var x="left"===o?h+5:-5,O=o,w=i.get("formatter"),S=e;wt["isString"](w)&&w?S=w.replace("{name}",null!=e?e:""):wt["isFunction"](w)&&(S=w(e));var j=r.get("inactiveColor");m.add(new Fl({style:mu(b,{text:S,x:x,y:f/2,fill:d?b.getTextColor():j,align:O,verticalAlign:"middle"})}));var C=new Ol({shape:m.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&qy({el:C,componentModel:i,itemName:e,itemTooltipOption:T.option}),m.add(C),m.eachChild((function(t){t.silent=!0})),C.silent=!c,this.getContentGroup().add(m),Gc(m),m.__legendDataIndex=n,m},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();rf(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){rf("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],f=t.get("selectorButtonGap",!0),d=t.getOrient().index,p=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?h[d]+=l[p]+f:c[d]+=u[p]+f,h[1-d]+=l[g]/2-u[g]/2,s.x=h[0],s.y=h[1],a.x=c[0],a.y=c[1];var y={x:0,y:0};return y[p]=l[p]+f+u[p],y[g]=Math.max(l[g],u[g]),y[v]=Math.min(0,u[v]+h[1-d]),y}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Bg);function hD(t,e,n,r,i,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),lD(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var s=e.getModel("itemStyle"),l=s.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke";l.decal=r.decal,"inherit"===l.fill&&(l.fill=r[i]),"inherit"===l.stroke&&(l.stroke=r[c]),"inherit"===l.opacity&&(l.opacity=("fill"===i?r:n).opacity),a(l,r);var u=e.getModel("lineStyle"),h=u.getLineStyle();if(a(h,n),"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),d=l[c];l.lineWidth="auto"===f?r.lineWidth>0&&d?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=u.get("inactiveColor"),h.lineWidth=u.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function fD(t){var e=t.icon||"roundRect",n=vb(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function dD(t,e,n,r){vD(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),gD(t,e,n,r)}function pD(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],p=[-h.x,-h.y];e||(p[r]=l[s]);var g=[0,0],v=[-f.x,-f.y],y=wt["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=h[o]/2-f[o]/2,l.setPosition(p),c.setPosition(g),u.setPosition(v);var b={x:0,y:0};if(b[i]=d?n[i]:h[i],b[o]=Math.max(h[o],f[o]),b[a]=Math.min(0,f[a]+v[1-r]),c.__rectSize=n[i],d){var _={x:0,y:0};_[i]=Math.max(n[i]-f[i]-y,0),_[o]=b[o],c.setClipPath(new Ol({shape:_})),c.__rectSize=_[i]}else u.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&ou(l,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;wt["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",wt["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=CD[i],a=TD[i],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,h=u?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var d=m(c);f.contentPosition[i]=-d.s;for(var p=s+1,g=d,v=d,y=null;p<=u;++p)y=m(l[p]),(!y&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(p=s-1,g=d,v=d,y=null;p>=-1;--p)y=m(l[p]),y&&b(v,y.s)||!(g.i=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(yD),kD=MD;function ID(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function DD(t){rO(xD),t.registerComponentModel(SD),t.registerComponentView(kD),ID(t)}function AD(t){rO(xD),rO(DD)}var PD=Ps.CMD;function LD(t,e){return Math.abs(t-e)<1e-5}function ND(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],c=0,u=0,h=0,f=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,r,i){LD(t,r)&&LD(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,c=nS:T2&&l.push(e),l}function ED(t,e,n,r,i,o,a,s,l,c){if(LD(t,n)&&LD(e,r)&&LD(i,a)&&LD(o,s))l.push(a,s);else{var u=2/c,h=u*u,f=a-t,d=s-e,p=Math.sqrt(f*f+d*d);f/=p,d/=p;var g=n-t,v=r-e,y=i-a,m=o-s,b=g*g+v*v,_=y*y+m*m;if(b=0&&S=0)l.push(a,s);else{var j=[],C=[];xn(t,n,i,a,.5,j),xn(e,r,o,s,.5,C),ED(j[0],C[0],j[1],C[1],j[2],C[2],j[3],C[3],l,c),ED(j[4],C[4],j[5],C[5],j[6],C[6],j[7],C[7],l,c)}}}}function RD(t,e){var n=ND(t),r=[];e=e||1;for(var i=0;i0)for(c=0;cMath.abs(c),h=BD([l,c],u?0:1,e),f=(u?s:c)/h.length,d=0;di,a=BD([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=t[s]/a.length,f=0;f1?null:new ri(g*l+t,g*c+e)}function GD(t,e,n){var r=new ri;ri.sub(r,n,e),r.normalize();var i=new ri;ri.sub(i,t,e);var o=i.dot(r);return o}function WD(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function UD(t,e,n){for(var r=t.length,i=[],o=0;oa?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),UD(e,c,u)}function XD(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);XD(t,o[0],i,r),XD(t,o[1],n-i,r)}return r}function qD(t,e){for(var n=[],r=0;r0)for(var x=r/n,O=-r/2;O<=r/2;O+=x){var w=Math.sin(O),S=Math.cos(O),j=0;for(b=0;b0;c/=2){var u=0,h=0;(t&c)>0&&(u=1),(e&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(t=c-1-t,e=c-1-e),s=t,t=e,e=s)}return l}function dA(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(wt["map"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(wt["map"])(o,(function(o,a){return{cp:o,z:fA(o[0],o[1],e,n,r,i),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function pA(t){return $D(t.path,t.count)}function gA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function vA(t,e,n){var r=[];function i(t){for(var e=0;e=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var c=Math.ceil(o/2);n[i].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var _A={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var s,l,c=r.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);mA(t)&&(s=t,l=e),mA(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,f=s?bA(l,s):bA(h?e:t,[h?t:e]),d=0,p=0;pwA))for(var r=n.getIndices(),i=jA(n),o=0;o0&&i.group.traverse((function(t){t instanceof ol&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function PA(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function LA(t){return Object(wt["isArray"])(t)?t.sort().join(","):t}function NA(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function EA(t,e){var n=Object(wt["createHashMap"])(),r=Object(wt["createHashMap"])(),i=Object(wt["createHashMap"])();return Object(wt["each"])(t.oldSeries,(function(e,n){var o=t.oldData[n],a=PA(e),s=LA(a);r.set(s,o),Object(wt["isArray"])(a)&&Object(wt["each"])(a,(function(t){i.set(t,{data:o,key:s})}))})),Object(wt["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=PA(t),a=LA(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:NA(s),data:s}],newSeries:[{divide:NA(e),data:e}]});else if(Object(wt["isArray"])(o)){0;var l=[];Object(wt["each"])(o,(function(t){var e=r.get(t);e&&l.push({divide:NA(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:NA(e)}]})}else{var c=i.get(o);if(c){var u=n.get(c.key);u||(u={oldSeries:[{data:c.data,divide:NA(c.data)}],newSeries:[]},n.set(c.key,u)),u.newSeries.push({data:e,divide:NA(e)})}}}})),n}function RA(t,e){for(var n=0;n=0&&i.push({data:e.oldData[n],divide:NA(e.oldData[n]),dim:t.dimension})})),Object(wt["each"])(ko(t.to),(function(t){var e=RA(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:NA(r),dim:t.dimension})}})),i.length>0&&o.length>0&&AA(i,o,r)}function zA(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(wt["each"])(ko(n.seriesTransition),(function(t){Object(wt["each"])(ko(t.to),(function(t){for(var e=n.updatedSeries,r=0;r=a)}}for(var u=this.__startIndex;u15)break}}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=f.dpr,x=0;x0&&t>r[0]){for(s=0;st)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?UA:0),this._needsManuallyCompositing),c.__builtin__||wt["logError"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),a=c),r.__dirty&Xe&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,wt["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?wt["merge"](n[t],e,!0):n[t]=e;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return Number(t)-Number(e)},n=Object.keys(t);if(!n.length)return{};var r={};return n.sort(e).forEach((function(e){return r[e]=t[e]})),r},iP=function(t,e){if(!e)return{};e=rP(e);var n=Object.keys(e),r={tooltip:{trigger:"axis"},yAxis:{type:"value"},xAxis:{type:"category",data:n.map((function(t){return Object(L["b"])(t)})),axisTick:{alignWithLabel:!0,interval:0}},grid:{top:40,bottom:50}};t&&(r.title={left:"center",text:t});var i={};return Object.values(e).forEach((function(t){var e=Object.keys(t);e.forEach((function(e){var n=nP["a"].global.t(e);i[n]||(i[n]=[]),i[n].push(t[e])}))})),r.legend={top:"bottom",data:Object.keys(i),lineStyle:{opacity:0}},r.series=Object.keys(i).map((function(t){return{name:t,type:"line",symbol:"circle",data:i[t]}})),r},oP=(n("caad"),n("2532"),n("b0c0"),n("3ca3"),n("ddb0"),n("434d")),aP=n("35c8"),sP=n("f38b"),lP={class:"branch-selector"},cP={class:"branch-btn-label"},uP={class:"branch-selector-search"},hP=["onClick"],fP={class:"item-icon"},dP={class:"item-label"},pP={key:1,class:"empty-tips"},gP=["onClick"],vP={class:"item-icon"},yP={class:"item-label"},mP={key:1,class:"empty-tips"},bP={class:"g-mr-4"},_P={class:"g-mr-4"},xP={class:"g-ml-24"},OP=Object(p["defineComponent"])({props:{catalog:String,db:String,table:String,disabled:Boolean},emits:["refChange"],setup:function(t,e){var n=e.emit,r=t,i=Object(D["b"])(),o=(i.t,Object(p["computed"])((function(){return r.disabled}))),a=Object(p["ref"])({value:"",type:sP["a"].BRANCH,label:""}),s=Object(p["ref"])(""),l=Object(p["ref"])(""),c=Object(p["ref"])(sP["a"].BRANCH),u=Object(p["ref"])([]),h=Object(p["ref"])([]),f=Object(p["computed"])((function(){return u.value.filter((function(t){return!s.value||t.label.includes(s.value)}))})),d=Object(p["computed"])((function(){return h.value.filter((function(t){return!l.value||t.label.includes(l.value)}))})),g=Object(p["ref"])(sP["c"].ALL),v=Object(p["reactive"])([sP["c"].ALL,sP["c"].OPTIMIZING,sP["c"].NONOPTIMIZING]),y=function(t){t.stopPropagation()},m=function(t){return t.parentNode||document.body},b=function(t){a.value=t,g.value=sP["c"].ALL,n("refChange",{ref:t.value,operation:sP["c"].ALL})},_=function(t){n("refChange",{ref:a.value.value,operation:t})},x=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(P["b"])(r);case 2:e=t.sent,u.value=(e.list||[]).map((function(t){return{value:t.name,label:t.name,type:sP["a"].BRANCH}})),u.value.length&&b(u.value[0]);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),O=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(P["n"])(r);case 2:e=t.sent,h.value=(e.list||[]).map((function(t){return{value:t.name,label:t.name,type:sP["a"].TAG}}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),w=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([x(),O()]);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(p["onMounted"])((function(){c.value=sP["a"].BRANCH,w()})),function(t,e){var n=Object(p["resolveComponent"])("svg-icon"),r=Object(p["resolveComponent"])("a-button"),i=Object(p["resolveComponent"])("a-input"),x=Object(p["resolveComponent"])("a-tab-pane"),O=Object(p["resolveComponent"])("a-tabs"),w=Object(p["resolveComponent"])("a-dropdown"),S=Object(p["resolveComponent"])("a-select-option"),j=Object(p["resolveComponent"])("a-select");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",lP,[Object(p["createVNode"])(w,{trigger:["click"],placement:"bottomLeft",getPopupContainer:m},{overlay:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("div",null,[Object(p["createElementVNode"])("div",uP,[Object(p["withDirectives"])(Object(p["createVNode"])(i,{value:s.value,"onUpdate:value":e[0]||(e[0]=function(t){return s.value=t}),placeholder:t.$t("Filter branches/tags"),onClick:y},null,8,["value","placeholder"]),[[p["vShow"],c.value===Object(p["unref"])(sP["a"]).BRANCH]]),Object(p["withDirectives"])(Object(p["createVNode"])(i,{value:l.value,"onUpdate:value":e[1]||(e[1]=function(t){return l.value=t}),placeholder:t.$t("Filter branches/tags"),onClick:y},null,8,["value","placeholder"]),[[p["vShow"],c.value===Object(p["unref"])(sP["a"]).TAG]])]),Object(p["createVNode"])(O,{activeKey:c.value,"onUpdate:activeKey":e[2]||(e[2]=function(t){return c.value=t}),type:"card"},{default:Object(p["withCtx"])((function(){return[(Object(p["openBlock"])(),Object(p["createBlock"])(x,{key:Object(p["unref"])(sP["a"]).BRANCH,tab:"Branches"},{default:Object(p["withCtx"])((function(){return[Object(p["unref"])(f).length?(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],{key:0},Object(p["renderList"])(Object(p["unref"])(f),(function(t,e){return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:function(e){return b(t)}},[Object(p["createElementVNode"])("div",fP,[t.value===a.value.value?(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["unref"])(oP["a"]),{key:0})):Object(p["createCommentVNode"])("",!0)]),Object(p["createElementVNode"])("span",dP,Object(p["toDisplayString"])(t.label),1)],8,hP)})),128)):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",pP,Object(p["toDisplayString"])(t.$t("nothingToShow")),1))]})),_:1})),(Object(p["openBlock"])(),Object(p["createBlock"])(x,{key:Object(p["unref"])(sP["a"]).TAG,tab:"Tags"},{default:Object(p["withCtx"])((function(){return[Object(p["unref"])(d).length?(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],{key:0},Object(p["renderList"])(Object(p["unref"])(d),(function(t,e){return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:function(e){return b(t)}},[Object(p["createElementVNode"])("div",vP,[t.value===a.value.value?(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["unref"])(oP["a"]),{key:0})):Object(p["createCommentVNode"])("",!0)]),Object(p["createElementVNode"])("span",yP,Object(p["toDisplayString"])(t.label),1)],8,gP)})),128)):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",mP,Object(p["toDisplayString"])(t.$t("nothingToShow")),1))]})),_:1}))]})),_:1},8,["activeKey"])])]})),default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{class:"branch-btn",disabled:!a.value.value||Object(p["unref"])(o)},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":a.value.type,class:"g-mr-8"},null,8,["icon-class"]),Object(p["createElementVNode"])("span",cP,Object(p["toDisplayString"])(a.value.label),1),Object(p["createVNode"])(Object(p["unref"])(aP["a"]))]})),_:1},8,["disabled"])]})),_:1}),Object(p["createElementVNode"])("div",null,[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":"branch",class:"g-mr-4 g-ml-16"}),Object(p["createElementVNode"])("span",bP,Object(p["toDisplayString"])(u.value.length),1),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(t.$t("branches")),1)]),Object(p["createElementVNode"])("div",null,[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":"tag",class:"g-mr-4 g-ml-16"}),Object(p["createElementVNode"])("span",_P,Object(p["toDisplayString"])(h.value.length),1),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(t.$t("tags")),1)]),Object(p["createElementVNode"])("div",xP,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("operation"))+": ",1),Object(p["createVNode"])(j,{class:"g-ml-8",value:g.value,"onUpdate:value":e[3]||(e[3]=function(t){return g.value=t}),style:{width:"160px"},disabled:Object(p["unref"])(o),onChange:_},{default:Object(p["withCtx"])((function(){return[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(Object(p["unref"])(v),(function(t){return Object(p["openBlock"])(),Object(p["createBlock"])(S,{value:t,key:t},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value","disabled"])])])}}});n("1448");const wP=OP;var SP=wP,jP={class:"table-snapshots"},CP=Object(p["createTextVNode"])("All"),TP=Object(p["defineComponent"])({setup:function(t){var e=Object(p["ref"])(!1),n=Object(D["b"])(),r=n.t,i=Object(p["shallowReactive"])([{title:r("snapshotId"),dataIndex:"snapshotId",ellipsis:!0},{title:r("operation"),dataIndex:"operation"},{title:r("records"),dataIndex:"records"},{title:r("fileCount"),dataIndex:"fileCount"},{title:r("commitTime"),dataIndex:"commitTime"}]),o=Object(p["shallowReactive"])([{title:r("operation"),dataIndex:"operation",width:120,ellipsis:!0},{title:r("file"),dataIndex:"file",ellipsis:!0},{title:r("partition"),dataIndex:"partition",width:120},{title:r("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:r("size"),dataIndex:"size",width:120},{title:r("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:r("path"),dataIndex:"path",ellipsis:!0}]),a=Object(p["reactive"])([]),s=Object(p["reactive"])([]),l=Object(p["ref"])(""),c=Object(p["ref"])(!1),u=Object(p["reactive"])(Object(et["a"])()),h=Object(p["reactive"])(Object(et["a"])()),f=Object(A["d"])(),d=f.query,g=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},d)),v=Object(p["ref"])({}),y=Object(p["ref"])({}),m=Object(p["ref"])(""),b=Object(p["ref"])(""),_=function(t){m.value=t.ref,b.value=t.operation,x()};function x(){return O.apply(this,arguments)}function O(){return O=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,i,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,c.value=!0,a.length=0,t.next=5,Object(P["k"])(Object(k["a"])(Object(k["a"])({},g),{},{ref:m.value,operation:b.value,page:u.current,pageSize:u.pageSize}));case 5:e=t.sent,n=e.list,i=void 0===n?[]:n,o=e.total,s={},l={},i.forEach((function(t){var e=t.recordsSummaryForChart,n=t.filesSummaryForChart,r=t.commitTime;s[r]=e||{},l[r]=n||{},"OPTIMIZE"===t.producer&&(t.operation=t.operation+"(optimizing)"),t.commitTime=t.commitTime?Object(L["b"])(t.commitTime):"-",a.push(t)})),v.value=iP(r("recordChartTitle"),s),y.value=iP(r("fileChartTitle"),l),u.total=o,t.next=17;break;case 15:t.prev=15,t.t0=t["catch"](0);case 17:return t.prev=17,c.value=!1,t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[0,15,17,20]])}))),O.apply(this,arguments)}function w(t){var n=t.current,r=void 0===n?1:n,i=t.pageSize,o=void 0===i?25:i;e.value?(h.current=r,o!==h.pageSize&&(h.current=1),h.pageSize=o):(u.current=r,o!==u.pageSize&&(u.current=1),u.pageSize=o),S()}function S(){e.value?j():x()}function j(){return C.apply(this,arguments)}function C(){return C=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,s.length=0,c.value=!0,e=Object(k["a"])(Object(k["a"])({},g),{},{snapshotId:l.value,page:h.current,pageSize:h.pageSize}),t.next=6,Object(P["e"])(e);case 6:n=t.sent,r=n.list,i=n.total,h.total=i,r.forEach((function(t){t.commitTime=t.commitTime?Object(L["b"])(t.commitTime):"",s.push(t)})),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:return t.prev=14,c.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,12,14,17]])}))),C.apply(this,arguments)}function T(t){l.value=t.snapshotId,e.value=!e.value,e.value&&(h.current=1,j())}return Object(p["onMounted"])((function(){e.value=!1})),function(t,n){var r=Object(p["resolveComponent"])("a-col"),f=Object(p["resolveComponent"])("a-row"),d=Object(p["resolveComponent"])("a-button"),m=Object(p["resolveComponent"])("a-table"),b=Object(p["resolveComponent"])("a-breadcrumb-item"),x=Object(p["resolveComponent"])("a-breadcrumb"),O=Object(p["resolveComponent"])("a-tooltip");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",jP,[e.value?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createVNode"])(x,{separator:">"},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(b,{onClick:T,class:"text-active"},{default:Object(p["withCtx"])((function(){return[CP]})),_:1}),Object(p["createVNode"])(b,null,{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])("".concat(t.$t("snapshotId")," ").concat(l.value)),1)]})),_:1})]})),_:1}),Object(p["createVNode"])(m,{rowKey:"file",columns:Object(p["unref"])(o),"data-source":Object(p["unref"])(s),pagination:Object(p["unref"])(h),loading:c.value,onChange:w,class:"g-mt-8"},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["path"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(O,{key:0},{title:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.path),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.path),1)]})),_:2},1024)):Object(p["createCommentVNode"])("",!0),"file"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(O,{key:1},{title:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.file),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.file),1)]})),_:2},1024)):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])],64)):(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createVNode"])(f,null,{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{span:12},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(eP,{loading:c.value,options:v.value},null,8,["loading","options"])]})),_:1}),Object(p["createVNode"])(r,{span:12},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(eP,{loading:c.value,options:y.value},null,8,["loading","options"])]})),_:1})]})),_:1}),Object(p["createVNode"])(SP,{catalog:Object(p["unref"])(g).catalog,db:Object(p["unref"])(g).db,table:Object(p["unref"])(g).table,disabled:c.value,onRefChange:_},null,8,["catalog","db","table","disabled"]),Object(p["createVNode"])(m,{rowKey:"snapshotId",columns:Object(p["unref"])(i),"data-source":Object(p["unref"])(a),pagination:Object(p["unref"])(u),loading:c.value,onChange:w},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["snapshotId"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(d,{key:0,type:"link",onClick:function(t){return T(n)}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.snapshotId),1)]})),_:2},1032,["onClick"])):Object(p["createCommentVNode"])("",!0)]})),expandedRowRender:Object(p["withCtx"])((function(t){var e=t.record;return[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(e.summary,(function(t,e){return Object(p["openBlock"])(),Object(p["createBlock"])(f,{type:"flex",gutter:16,key:e},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{flex:"220px",style:{"text-align":"right"}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e)+" :",1)]})),_:2},1024),Object(p["createVNode"])(r,{flex:"auto"},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]})),_:2},1024)]})),_:2},1024)})),128))]})),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("e884");const MP=Q()(TP,[["__scopeId","data-v-4a105faf"]]);var kP=MP,IP=(n("cd17"),n("ed3b")),DP=n("2909"),AP=n("3c7f"),PP=function(t){return Object(p["pushScopeId"])("data-v-66f12fbb"),t=t(),Object(p["popScopeId"])(),t},LP={class:"table-optimizing"},NP={class:""},EP=PP((function(){return Object(p["createElementVNode"])("div",{class:""},"success / total",-1)})),RP={class:""},BP=PP((function(){return Object(p["createElementVNode"])("div",{class:""},"size / count",-1)})),zP={class:""},FP=PP((function(){return Object(p["createElementVNode"])("div",{class:""},"size / count",-1)})),VP={key:1,class:"g-flex-ac"},HP={class:"tip-title"},GP=Object(p["createTextVNode"])("All"),WP={class:""},UP=PP((function(){return Object(p["createElementVNode"])("div",{class:""},"size / count",-1)})),YP={class:""},XP=PP((function(){return Object(p["createElementVNode"])("div",{class:""},"size / count",-1)})),qP={key:1,class:"g-flex-ac"},ZP={class:"tip-title"},KP=Object(p["defineComponent"])({setup:function(t){var e=Object(p["ref"])(!1),n=Object(p["shallowReactive"])({RUNNING:{title:"RUNNING",color:"#1890ff"},CLOSED:{title:"CLOSED",color:"#c9cdd4"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},FAILED:{title:"FAILED",color:"#f5222d"}}),r=Object(p["shallowReactive"])({PLANNED:{title:"PLANNED",color:"#ffcc00"},SCHEDULED:{title:"SCHEDULED",color:"#4169E1"},ACKED:{title:"ACKED",color:"#1890ff"},FAILED:{title:"FAILED",color:"#f5222d"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},CANCELED:{title:"CANCELED",color:"#c9cdd4"}}),i=Object(D["b"])(),o=i.t,a=Object(p["shallowReactive"])([{title:o("processId"),dataIndex:"processId"},{title:o("startTime"),dataIndex:"startTime",width:172},{title:o("type"),dataIndex:"optimizingType"},{title:o("status"),dataIndex:"status"},{title:o("duration"),dataIndex:"duration",width:120},{title:o("tasks"),dataIndex:"tasks"},{title:o("finishTime"),dataIndex:"finishTime",width:172},{title:o("input"),dataIndex:"inputFiles"},{title:o("output"),dataIndex:"outputFiles"}]),s=Object(p["shallowReactive"])([{title:o("taskId"),dataIndex:"taskId",width:82},{title:o("partition"),dataIndex:"partitionData",ellipsis:!0},{title:o("startTime"),dataIndex:"startTime",width:172},{title:o("status"),dataIndex:"status",width:124},{title:o("costTime"),dataIndex:"formatCostTime",width:120},{title:o("finishTime"),dataIndex:"endTime",width:172},{title:o("input"),dataIndex:"inputFilesDesc"},{title:o("output"),dataIndex:"outputFilesDesc"}]),l=Object(p["reactive"])([]),c=Object(p["ref"])(0),u=Object(p["reactive"])([]),h=Object(p["ref"])(!1),f=Object(p["ref"])(!0),d=Object(p["reactive"])(Object(et["a"])()),g=Object(p["reactive"])(Object(et["a"])()),v=Object(A["d"])(),y=v.query,m=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},y));function b(){return _.apply(this,arguments)}function _(){return _=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,h.value=!0,l.length=0,t.next=5,Object(P["h"])(Object(k["a"])(Object(k["a"])({},m),{},{page:d.current,pageSize:d.pageSize}));case 5:e=t.sent,n=e.list,r=e.total,i=void 0===r?0:r,d.total=i,l.push.apply(l,Object(DP["a"])(Object(DP["a"])(n||[]).map((function(t){var e=t.inputFiles,n=void 0===e?{}:e,r=t.outputFiles,i=void 0===r?{}:r;return Object(k["a"])(Object(k["a"])({},t),{},{startTime:t.startTime?Object(L["b"])(t.startTime):"-",finishTime:t.finishTime?Object(L["b"])(t.finishTime):"-",optimizingType:t.optimizingType?t.optimizingType:"-",duration:Object(L["e"])(t.duration||"-"),inputFiles:"".concat(Object(L["a"])(n.totalSize)," / ").concat(n.fileCnt),outputFiles:"".concat(Object(L["a"])(i.totalSize)," / ").concat(i.fileCnt),tasks:"".concat(t.successTasks||"0"," / ").concat(t.totalTasks||"0").concat(t.runningTasks?" (".concat(t.runningTasks," running)"):"")})})))),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](0);case 13:return t.prev=13,h.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,11,13,16]])}))),_.apply(this,arguments)}function x(){return O.apply(this,arguments)}function O(){return O=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:IP["a"].confirm({title:o("cancelOptimizingProcessOptModalTitle"),content:"",okText:"",cancelText:"",onOk:function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,h.value=!0,t.next=4,Object(P["a"])(Object(k["a"])(Object(k["a"])({},m),{},{processId:c.value}));case 4:t.sent,f.value=!0,S(),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:return t.prev=11,h.value=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,9,11,14]])})));function e(){return t.apply(this,arguments)}return e}()});case 1:case"end":return t.stop()}}),t)}))),O.apply(this,arguments)}function w(t){var n=t.current,r=void 0===n?1:n,i=t.pageSize,o=void 0===i?25:i;e.value?(g.current=r,o!==g.pageSize&&(g.current=1),g.pageSize=o):(d.current=r,o!==d.pageSize&&(d.current=1),d.pageSize=o),S()}function S(){e.value?j():b()}function j(){return C.apply(this,arguments)}function C(){return C=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,u.length=0,h.value=!0,e=Object(k["a"])(Object(k["a"])({},m),{},{processId:c.value,page:g.current,pageSize:g.pageSize}),t.next=6,Object(P["o"])(e);case 6:n=t.sent,r=n.list,i=n.total,g.total=i,r.forEach((function(t){t.startTime=t.startTime?Object(L["b"])(t.startTime):"-",t.endTime=t.endTime?Object(L["b"])(t.endTime):"-",t.formatCostTime=Object(L["e"])(t.costTime),t.thread=t.optimizerToken?"("+t.threadId+")"+t.optimizerToken:"-",t.partitionData=t.partitionData?t.partitionData:"-",t.inputFilesDesc="".concat(Object(L["a"])(t.inputFiles.totalSize)," / ").concat(t.inputFiles.fileCnt),t.outputFilesDesc="".concat(Object(L["a"])(t.outputFiles.totalSize)," / ").concat(t.outputFiles.fileCnt),u.push(t)})),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:return t.prev=14,h.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,12,14,17]])}))),C.apply(this,arguments)}function T(t,n){c.value=t,f.value="RUNNING"!==n,e.value=!e.value,e.value&&(g.current=1),S()}return Object(p["onMounted"])((function(){e.value=!1,S()})),function(t,i){var v=Object(p["resolveComponent"])("a-button"),y=Object(p["resolveComponent"])("a-tooltip"),m=Object(p["resolveComponent"])("a-col"),b=Object(p["resolveComponent"])("a-row"),_=Object(p["resolveComponent"])("a-table"),O=Object(p["resolveComponent"])("a-breadcrumb-item"),S=Object(p["resolveComponent"])("a-breadcrumb");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",LP,[e.value?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createVNode"])(b,null,{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(m,{span:18},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(S,{separator:">"},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(O,{onClick:T,class:"text-active"},{default:Object(p["withCtx"])((function(){return[GP]})),_:1}),Object(p["createVNode"])(O,null,{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])("".concat(t.$t("processId")," ").concat(c.value)),1)]})),_:1})]})),_:1})]})),_:1}),Object(p["createVNode"])(m,{span:6},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(v,{type:"primary",disabled:f.value,"onUpdate:disabled":i[0]||(i[0]=function(t){return f.value=t}),class:"g-mb-16",onClick:x,style:{float:"right"}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(Object(p["unref"])(o)("cancelProcess")),1)]})),_:1},8,["disabled"])]})),_:1})]})),_:1}),Object(p["createVNode"])(_,{rowKey:"taskId",columns:Object(p["unref"])(s),"data-source":Object(p["unref"])(u),pagination:Object(p["unref"])(g),loading:h.value,onChange:w,class:"g-mt-8"},{headerCell:Object(p["withCtx"])((function(t){var e=t.column;return["inputFilesDesc"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createElementVNode"])("div",WP,Object(p["toDisplayString"])(e.title),1),UP],64)):Object(p["createCommentVNode"])("",!0),"outputFilesDesc"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createElementVNode"])("div",YP,Object(p["toDisplayString"])(e.title),1),XP],64)):Object(p["createCommentVNode"])("",!0)]})),bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["partitionData"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(y,{key:0},{title:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.partitionData),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.partitionData),1)]})),_:2},1024)):Object(p["createCommentVNode"])("",!0),"status"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",qP,[Object(p["createElementVNode"])("span",{style:Object(p["normalizeStyle"])({"background-color":(Object(p["unref"])(r)[n.status]||{}).color}),class:"status-icon"},null,4),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.status),1),"FAILED"===n.status?(Object(p["openBlock"])(),Object(p["createBlock"])(y,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("div",ZP,Object(p["toDisplayString"])(n.failReason),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(Object(p["unref"])(AP["a"]))]})),_:2},1024)):Object(p["createCommentVNode"])("",!0)])):Object(p["createCommentVNode"])("",!0)]})),expandedRowRender:Object(p["withCtx"])((function(t){var e=t.record;return[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(e.summary,(function(t,e){return Object(p["openBlock"])(),Object(p["createBlock"])(b,{type:"flex",gutter:16,key:e},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(m,{flex:"220px",style:{"text-align":"right"}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e)+" :",1)]})),_:2},1024),Object(p["createVNode"])(m,{flex:"auto"},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]})),_:2},1024)]})),_:2},1024)})),128))]})),_:1},8,["columns","data-source","pagination","loading"])],64)):(Object(p["openBlock"])(),Object(p["createBlock"])(_,{key:0,rowKey:"processId",columns:Object(p["unref"])(a),"data-source":Object(p["unref"])(l),pagination:Object(p["unref"])(d),loading:h.value,onChange:w},{headerCell:Object(p["withCtx"])((function(t){var e=t.column;return["tasks"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createElementVNode"])("div",NP,Object(p["toDisplayString"])(e.title),1),EP],64)):Object(p["createCommentVNode"])("",!0),"inputFiles"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createElementVNode"])("div",RP,Object(p["toDisplayString"])(e.title),1),BP],64)):Object(p["createCommentVNode"])("",!0),"outputFiles"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:2},[Object(p["createElementVNode"])("div",zP,Object(p["toDisplayString"])(e.title),1),FP],64)):Object(p["createCommentVNode"])("",!0)]})),bodyCell:Object(p["withCtx"])((function(t){var e=t.record,r=t.column;return["processId"===r.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(v,{key:0,type:"link",onClick:function(t){return T(e.processId,e.status)}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e.processId),1)]})),_:2},1032,["onClick"])):Object(p["createCommentVNode"])("",!0),"status"===r.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",VP,[Object(p["createElementVNode"])("span",{style:Object(p["normalizeStyle"])({"background-color":(Object(p["unref"])(n)[e.status]||{}).color}),class:"status-icon"},null,4),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(e.status),1),"FAILED"===e.status?(Object(p["openBlock"])(),Object(p["createBlock"])(y,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("div",HP,Object(p["toDisplayString"])(e.failReason),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(Object(p["unref"])(AP["a"]))]})),_:2},1024)):Object(p["createCommentVNode"])("",!0)])):Object(p["createCommentVNode"])("",!0)]})),expandedRowRender:Object(p["withCtx"])((function(t){var e=t.record;return[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(e.summary,(function(t,e){return Object(p["openBlock"])(),Object(p["createBlock"])(b,{type:"flex",gutter:16,key:e},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(m,{flex:"220px",style:{"text-align":"right"}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e)+" :",1)]})),_:2},1024),Object(p["createVNode"])(m,{flex:"auto"},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]})),_:2},1024)]})),_:2},1024)})),128))]})),_:1},8,["columns","data-source","pagination","loading"]))])}}});n("235c"),n("d7b7");const $P=Q()(KP,[["__scopeId","data-v-66f12fbb"]]);var QP=$P,JP=n("0613"),tL=Object(p["defineComponent"])({name:"Tables",components:{UDetails:tt,UFiles:ct,UOperations:mt,USnapshots:kP,UOptimizing:QP},setup:function(){var t=Object(A["e"])(),e=Object(A["d"])(),n=Object(JP["a"])(),r=Object(p["ref"])(),i=Object(p["shallowReactive"])([{key:"Snapshots",label:"Snapshots"},{key:"Optimizing",label:"Optimizing"},{key:"Operations",label:"Operations"}]),o=Object(p["reactive"])({activeKey:"Details",isSecondaryNav:!1,baseInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},detailLoaded:!1}),a=Object(p["computed"])((function(){return"ICEBERG"===o.baseInfo.tableType})),s=function(t){o.detailLoaded=!0,o.baseInfo=Object(k["a"])({},t)},l=function(n){var r=Object(k["a"])({},e.query);r.tab=n,t.replace({query:Object(k["a"])({},r)})},c=function(){},u=function(){},h=function(){n.updateTablesMenu(!1)},f=function(){o.isSecondaryNav=!1,t.back()};return Object(p["watch"])((function(){return e.path}),(function(){o.isSecondaryNav=!!(e.path.indexOf("create")>-1)}),{immediate:!0}),Object(p["watch"])((function(){return e.query}),(function(t,e){var n=t.catalog,r=t.db,i=t.table,a=e.catalog,s=e.db,l=e.table;"".concat(n).concat(r).concat(i)==="".concat(a).concat(s).concat(l)?o.activeKey=t.tab:o.activeKey="Details"})),Object(p["onMounted"])((function(){var t;o.activeKey=(null===(t=e.query)||void 0===t?void 0:t.tab)||"Details",Object(p["nextTick"])((function(){r.value&&r.value.getTableDetails()}))})),Object(k["a"])(Object(k["a"])({},Object(p["toRefs"])(o)),{},{tabConfigs:i,store:n,isIceberg:a,editTable:c,delTable:u,setBaseDetailInfo:s,hideTablesMenu:h,goBack:f,onChangeTab:l})}});n("8c8c");const eL=Q()(tL,[["render",M],["__scopeId","data-v-4759e59e"]]);e["default"]=eL},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},d360:function(t,e,n){},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},d5c2:function(t,e,n){"use strict";n("939f")},d7b7:function(t,e,n){"use strict";n("61c6")},d998:function(t,e,n){var r=n("342f");t.exports=/MSIE|Trident/.test(r)},da03b:function(t,e,n){"use strict";n("ef8b")},df0a:function(t,e,n){},df32:function(t,e,n){},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e884:function(t,e,n){"use strict";n("df32")},ef8b:function(t,e,n){},f38b:function(t,e,n){"use strict";var r,i,o,a,s;n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),function(t){t["Created"]="#f5f5f5",t["Failed"]="#fff2f0",t["Finished"]="#f6ffed",t["Canceled"]="#f5f5f5"}(r||(r={})),function(t){t["failed"]="FAILED",t["upgrading"]="UPGRADING",t["success"]="SUCCESS",t["none"]="NONE"}(i||(i={})),function(t){t["ICEBERG"]="iceberg",t["ARCTIC"]="amoro",t["HIVE"]="hive",t["PAIMON"]="paimon"}(o||(o={})),function(t){t["BRANCH"]="branch",t["TAG"]="tag"}(a||(a={})),function(t){t["ALL"]="all",t["OPTIMIZING"]="optimizing",t["NONOPTIMIZING"]="non-optimizing"}(s||(s={}))},fa3c:function(t,e,n){}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.9ff80e11.js b/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.9ff80e11.js deleted file mode 100644 index 4c8cfa01ef..0000000000 --- a/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.9ff80e11.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e36844c"],{"0014":function(e,t,n){},"06d7":function(e,t,n){},"43c2":function(e,t,n){"use strict";n("06d7")},5738:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"m",(function(){return r})),n.d(t,"l",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"p",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"k",(function(){return b})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return v})),n.d(t,"q",(function(){return m})),n.d(t,"o",(function(){return g})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"n",(function(){return h}));n("99af");var a=n("b32d");function c(){return a["a"].get("ams/v1/catalogs")}function o(e){var t=e.catalog,n=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:n}})}function r(e){var t=e.catalog,n=e.db,c=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(n,"/tables"),{params:{keywords:c}})}function l(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r,u=e.token,i=void 0===u?"":u;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/details"),{params:{token:i}})}function u(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/hive/details"))}function i(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/upgrade/status"))}function s(e){var t=e.catalog,n=e.db,c=e.table,o=e.page,r=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions"),{params:{page:o,pageSize:r,token:l}})}function d(e){var t=e.catalog,n=e.db,c=e.table,o=e.partition,r=e.specId,l=e.page,u=e.pageSize,i=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions/").concat(o,"/files"),{params:{specId:r,page:l,pageSize:u,token:i}})}function b(e){var t=e.catalog,n=e.db,c=e.table,o=e.page,r=e.pageSize,l=e.token,u=e.ref,i=e.operation;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots"),{params:{page:o,pageSize:r,token:l,ref:u,operation:i}})}function p(e){var t=e.catalog,n=e.db,c=e.table,o=e.snapshotId,r=e.page,l=e.pageSize,u=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots/").concat(o,"/detail"),{params:{page:r,pageSize:l,token:u}})}function f(e){var t=e.catalog,n=e.db,c=e.table,o=e.page,r=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/operations"),{params:{page:o,pageSize:r,token:l}})}function v(e){var t=e.catalog,n=e.db,c=e.table,o=e.page,r=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/optimizing-processes"),{params:{page:o,pageSize:r,token:l}})}function m(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r,u=e.properties,i=void 0===u?{}:u,s=e.pkList,d=void 0===s?[]:s;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/upgrade"),{properties:i,pkList:d})}function g(){return a["a"].get("ams/v1/upgrade/properties")}function O(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r,u=e.processId,i=void 0===u?"":u;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/optimizing-processes/").concat(i,"/cancel"))}function j(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/branches"))}function h(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/tags"))}},8552:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n("7a23"),c=n("47e2");function o(){var e=Object(c["b"])(),t=e.t,n=Object(a["computed"])((function(){return t("catalog")})).value,o=Object(a["computed"])((function(){return t("databaseName")})).value,r=Object(a["computed"])((function(){return t("tableName")})).value,l=Object(a["computed"])((function(){return t("optimzerGroup")})).value,u=Object(a["computed"])((function(){return t("resourceGroup")})).value,i=Object(a["computed"])((function(){return t("parallelism")})).value,s=Object(a["computed"])((function(){return t("username")})).value,d=Object(a["computed"])((function(){return t("password")})).value,b=Object(a["computed"])((function(){return t("database",2)})).value,p=Object(a["computed"])((function(){return t("table",2)})).value,f=Object(a["computed"])((function(){return t("name")})).value,v=Object(a["computed"])((function(){return t("container")})).value;return{selectPh:t("selectPlaceholder"),inputPh:t("inputPlaceholder"),selectClPh:t("selectPlaceholder",{selectPh:n}),selectDBPh:t("selectPlaceholder",{selectPh:o}),inputDBPh:t("inputPlaceholder",{inputPh:o}),inputClPh:t("inputPlaceholder",{inputPh:n}),inputTNPh:t("inputPlaceholder",{inputPh:r}),selectOptGroupPh:t("inputPlaceholder",{inputPh:l}),resourceGroupPh:t("inputPlaceholder",{inputPh:u}),parallelismPh:t("inputPlaceholder",{inputPh:i}),usernamePh:t("inputPlaceholder",{inputPh:s}),passwordPh:t("inputPlaceholder",{inputPh:d}),filterDBPh:t("filterPlaceholder",{inputPh:b}),filterTablePh:t("filterPlaceholder",{inputPh:p}),groupNamePh:t("inputPlaceholder",{inputPh:f}),groupContainer:t("selectPlaceholder",{selectPh:v})}}},9065:function(e,t,n){"use strict";n("0014")},b0b0:function(e,t,n){"use strict";n("d9da")},d323:function(e,t,n){"use strict";n.r(t);var a=n("7a23"),c={class:"console-wrap"},o={class:"sql-block"},r={class:"top-ops g-flex-jsb"},l={class:"title-left g-flex-ac"},u={class:"select-catalog g-mr-12"},i={class:"label"},s={class:"title-right"},d={class:"sql-content"},b={class:"sql-raw"},p={class:"g-ml-12"},f={class:"sql-shortcuts"},v={class:"shortcuts"},m={class:"tab-operation"},g={class:"tab"},O=["onClick"],j={class:"debug-result"};function h(e,t,n,h,k,C){var y=Object(a["resolveComponent"])("a-select"),w=Object(a["resolveComponent"])("svg-icon"),B=Object(a["resolveComponent"])("a-tooltip"),N=Object(a["resolveComponent"])("sql-editor"),S=Object(a["resolveComponent"])("loading-outlined"),E=Object(a["resolveComponent"])("close-circle-outlined"),V=Object(a["resolveComponent"])("check-circle-outlined"),x=Object(a["resolveComponent"])("a-button"),P=Object(a["resolveComponent"])("sql-log"),q=Object(a["resolveComponent"])("sql-result"),R=Object(a["resolveComponent"])("u-loading");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",c,[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["console-content",{fullscreen:e.fullscreen}])},[Object(a["createElementVNode"])("div",{style:Object(a["normalizeStyle"])({height:"".concat(e.sqlResultHeight,"px")}),class:"sql-wrap"},[Object(a["createElementVNode"])("div",o,[Object(a["createElementVNode"])("div",r,[Object(a["createElementVNode"])("div",l,[Object(a["createElementVNode"])("div",u,[Object(a["createElementVNode"])("span",i,Object(a["toDisplayString"])(e.$t("use")),1),Object(a["createVNode"])(y,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=function(t){return e.curCatalog=t}),style:{width:"200px"},options:e.catalogOptions,onChange:e.changeUseCatalog},null,8,["value","options","onChange"])]),"Running"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(B,{key:0,title:e.$t("pause"),placement:"bottom"},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg","icon-class":"sqlpause",onClick:t[1]||(t[1]=function(t){return e.handleIconClick("pause")}),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]})),_:1},8,["title"])):(Object(a["openBlock"])(),Object(a["createBlock"])(B,{key:1,title:e.$t("run"),placement:"bottom"},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg","icon-class":"sqldebug",onClick:t[2]||(t[2]=function(t){return e.handleIconClick("debug")}),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]})),_:1},8,["title"])),Object(a["createVNode"])(B,{title:e.$t("format"),placement:"bottom"},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg",isStroke:!0,"icon-class":"format",onClick:t[3]||(t[3]=function(t){return e.handleIconClick("format")}),disabled:e.readOnly},null,8,["disabled"])]})),_:1},8,["title"])]),Object(a["createElementVNode"])("div",s,[Object(a["createVNode"])(B,{title:e.fullscreen?e.$t("recovery"):e.$t("fullscreen"),placement:"bottom",getPopupContainer:e.getPopupContainer},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg",isStroke:!0,"icon-class":e.fullscreen?"sqlinit":"sqlmax",onClick:e.handleFull,disabled:!1,class:"g-ml-12"},null,8,["icon-class","onClick"])]})),_:1},8,["title","getPopupContainer"])])]),Object(a["createElementVNode"])("div",d,[Object(a["createElementVNode"])("div",b,[Object(a["createVNode"])(N,{ref:"sqlEditorRef",sqlValue:e.sqlSource,value:e.sqlSource,"onUpdate:value":t[4]||(t[4]=function(t){return e.sqlSource=t}),readOnly:e.readOnly,options:{readOnly:e.readOnly,minimap:{enabled:!1}}},null,8,["sqlValue","value","readOnly","options"])]),e.runStatus?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:"run-status",style:Object(a["normalizeStyle"])({background:e.bgcMap[e.runStatus]})},["Running"===e.runStatus||"Canceling"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(S,{key:0,style:{color:"#1890ff"}})):Object(a["createCommentVNode"])("",!0),"Canceled"===e.runStatus||"Failed"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(E,{key:1,style:{color:"#ff4d4f"}})):Object(a["createCommentVNode"])("",!0),"Finished"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(V,{key:2,style:{color:"#52c41a"}})):Object(a["createCommentVNode"])("",!0),"Created"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(E,{key:3,style:{color:"#333"}})):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("span",p,Object(a["toDisplayString"])(e.$t(e.runStatus)),1)],4)):Object(a["createCommentVNode"])("",!0)])]),Object(a["createElementVNode"])("div",f,[Object(a["createElementVNode"])("div",v,Object(a["toDisplayString"])(e.$t("sqlShortcuts")),1),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.shortcuts,(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])(x,{key:t,type:"link",disabled:"Running"===e.runStatus||"Canceling"===e.runStatus,onClick:function(n){return e.generateCode(t)},class:"code"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(t),1)]})),_:2},1032,["disabled","onClick"])})),128))])],4),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["sql-result",e.resultFullscreen?"result-full":""]),style:Object(a["normalizeStyle"])({height:"calc(100% - ".concat(e.sqlResultHeight,"px)")})},[Object(a["createElementVNode"])("span",{class:"drag-line",onMousedown:t[5]||(t[5]=function(){return e.dragMounseDown&&e.dragMounseDown.apply(e,arguments)})},[Object(a["createVNode"])(w,{class:"icon","icon-class":"slide"})],32),Object(a["createElementVNode"])("div",m,[Object(a["createElementVNode"])("div",g,[Object(a["createElementVNode"])("span",{class:Object(a["normalizeClass"])([{active:"log"===e.operationActive},"tab-item"]),onClick:t[6]||(t[6]=function(t){return e.operationActive="log"})},Object(a["toDisplayString"])(e.$t("log")),3),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.resultTabList,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("span",{key:t.id,class:Object(a["normalizeClass"])([{active:e.operationActive===t.id},"tab-item"]),onClick:function(n){return e.operationActive=t.id}},Object(a["toDisplayString"])(t.id),11,O)})),128))])]),Object(a["createElementVNode"])("div",j,[Object(a["withDirectives"])(Object(a["createVNode"])(P,{ref:"sqlLogRef"},null,512),[[a["vShow"],"log"===e.operationActive]]),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.resultTabList,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],{key:t.id},[e.operationActive===t.id?(Object(a["openBlock"])(),Object(a["createBlock"])(q,{key:0,info:t},null,8,["info"])):Object(a["createCommentVNode"])("",!0)],64)})),128))])],6)],2),e.loading?(Object(a["openBlock"])(),Object(a["createBlock"])(R,{key:0})):Object(a["createCommentVNode"])("",!0)])}n("3b18");var k=n("f64c"),C=n("2909"),y=n("1da1"),w=(n("96cf"),n("d3b7"),n("159b"),n("c740"),n("a15b"),n("5530")),B=n("c2c6"),N={theme:"arcticSql",language:"sql",fontSize:12,lineHeight:24,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',folding:!0,suggestLineHeight:20,autoIndent:!0,renderLineHighlight:"all",scrollBeyondLastLine:!1,contextmenu:!1,readOnly:!0,fixedOverflowWidgets:!0},S=Object.assign({},N,{theme:"arcticSql",language:"sql",readOnly:!1,lineHeight:24,fontSize:12,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',lineNumbersMinChars:3,wordWrap:"on",renderLineHighlight:"all",minimap:{enabled:!1},contextmenu:!1,automaticLayout:!0,scrollBeyondLastLine:!1}),E=Object(a["defineComponent"])({props:{sqlValue:null,options:null,readOnly:{type:Boolean}},emits:["save","update:value","change"],setup:function(e,t){var n,c=t.expose,o=t.emit,r=e,l="",u={};function i(){n&&n.layout()}function s(){if(n){var e=n.addCommand(B["KeyMod"].CtrlCmd|B["KeyCode"].KEY_S,(function(){o("save")}));u.save=e;var t=n.addCommand(B["KeyMod"].Alt|B["KeyMod"].Shift|B["KeyCode"].KEY_F,(function(){d()}));u.format=t}}function d(){var e=n&&n.getAction("editor.action.formatDocument");e&&e.run()}return Object(a["watch"])((function(){return r.sqlValue}),(function(e){e&&l!==e&&n&&n.setValue(e)})),window.addEventListener("resize",i),c({executeCommand:function(e){var t=u[e],a=n;t&&a&&a._commandService.executeCommand(t)},updateOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n&&n.updateOptions(e)}}),Object(a["onBeforeUnmount"])((function(){window.removeEventListener("resize",i),n&&n.dispose()})),Object(a["onMounted"])((function(){var e=document.getElementsByClassName("m-sql-editor")[0];Object(a["nextTick"])((function(){var t=n=B["editor"].create(e,Object(w["a"])(Object(w["a"])({},S),r.options));s(),t.setValue(r.sqlValue||""),t.onDidChangeModelContent((function(e){var t=n.getValue();o("update:value",t),o("change",t),l=t}))}))})),function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["m-sql-editor",{disabled:e.readOnly}]),style:{height:"100%",width:"100%"}},null,2)}}}),V=(n("fea2"),n("6b0d")),x=n.n(V);const P=x()(E,[["__scopeId","data-v-13c652ee"]]);var q=P,R=n("f38b"),L=n("8fe6"),I=n("411c"),z=n("d34f"),D={class:"sql-result-wrap"},M={class:"g-ml-8"},F={key:0,class:"empty"},H={key:1,class:"result-wrap"},T={class:"ant-table sql-result-table",style:{width:"100%"}},A={class:"ant-table-thead"},_={class:"ant-table-tbody"},G=["title"],U=Object(a["defineComponent"])({props:{info:null},setup:function(e){var t=e,n=Object(a["computed"])((function(){var e;return!t.info||!(null!==(e=t.info)&&void 0!==e&&e.columns)})),c=Object(a["computed"])((function(){var e;return null===(e=t.info)||void 0===e?void 0:e.status}));return function(e,o){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",D,[Object(a["createElementVNode"])("div",{class:"result-status",style:Object(a["normalizeStyle"])({background:Object(a["unref"])(R["b"])[Object(a["unref"])(c)]})},["Running"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(L["a"]),{key:0,style:{color:"#1890ff"}})):Object(a["createCommentVNode"])("",!0),"Canceled"===Object(a["unref"])(c)||"Failed"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(I["a"]),{key:1,style:{color:"#ff4d4f"}})):Object(a["createCommentVNode"])("",!0),"Finished"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(z["a"]),{key:2,style:{color:"#52c41a"}})):Object(a["createCommentVNode"])("",!0),"Created"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(I["a"]),{key:3,style:{color:"#333"}})):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("span",M,Object(a["toDisplayString"])(Object(a["unref"])(c)),1)],4),Object(a["unref"])(n)?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",F,Object(a["toDisplayString"])(e.$t("noResult")),1)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",H,[Object(a["createElementVNode"])("table",T,[Object(a["createElementVNode"])("thead",A,[Object(a["createElementVNode"])("tr",null,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(t.info.columns,(function(e){return Object(a["openBlock"])(),Object(a["createElementBlock"])("th",{key:e},Object(a["toDisplayString"])(e),1)})),128))])]),Object(a["createElementVNode"])("tbody",_,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(t.info.rowData,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("tr",{key:t+1},[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e,(function(e,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("td",{key:t+e+n},[Object(a["createElementVNode"])("span",{class:"td-val",title:e},Object(a["toDisplayString"])(e),9,G)])})),128))])})),128))])])]))])}}});n("9065");const $=x()(U,[["__scopeId","data-v-5e56b470"]]);var K=$,Y={class:"sql-log"},J=["innerHTML"],W=Object(a["defineComponent"])({setup:function(e,t){var n=t.expose,c=Object(a["ref"])("");return n({initData:function(e){c.value=e}}),function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Y,[Object(a["createElementVNode"])("div",{innerHTML:c.value,style:{"white-space":"pre-wrap","font-size":"12px"}},null,8,J)])}}});n("b0b0");const Z=x()(W,[["__scopeId","data-v-d5f228ba"]]);var Q=Z,X=n("b32d");function ee(e){return X["a"].get("ams/v1/terminal/".concat(e,"/result"))}function te(){return X["a"].get("ams/v1/terminal/examples")}function ne(e){return X["a"].get("ams/v1/terminal/examples/".concat(e))}function ae(e){var t=e.catalog,n=e.sql;return X["a"].post("ams/v1/terminal/catalogs/".concat(t,"/execute"),{sql:n})}function ce(e){return X["a"].put("ams/v1/terminal/".concat(e,"/stop"))}function oe(e){return X["a"].get("ams/v1/terminal/".concat(e,"/logs"))}function re(){return X["a"].get("ams/v1/terminal/latestInfos")}var le=n("5738"),ue=n("8552"),ie=Object(a["defineComponent"])({name:"Terminal",components:{SqlEditor:q,SqlResult:K,SqlLog:Q,CheckCircleOutlined:z["a"],CloseCircleOutlined:I["a"],LoadingOutlined:L["a"]},setup:function(){var e=Object(a["reactive"])(Object(ue["a"])()),t=Object(a["ref"])(!1),n=Object(a["ref"])(null),c=Object(a["ref"])(null),o=Object(a["ref"])(!1),r=Object(a["ref"])(""),l=Object(a["ref"])(!1),u=Object(a["ref"])(""),i=Object(a["ref"])(),s=Object(a["ref"])(!1),d=Object(a["ref"])(!1),b=Object(a["ref"])("log"),p=Object(a["reactive"])([]),f=Object(a["reactive"])([]),v=Object(a["ref"])(""),m=Object(a["ref"])(),g=Object(a["reactive"])([]),O=Object(a["ref"])(476),j=Object(a["shallowReactive"])(R["b"]),h="easylake-sql-source",w="easylake-use-catalog";Object(a["watch"])((function(){return o}),(function(){n.value.updateOptions({readOnly:o})}));var B=function(e){"debug"!==e?"format"!==e?"pause"===e&&L():n.value&&n.value.executeCommand("format"):q()},N=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(le["c"])();case 2:t=e.sent,(t||[]).forEach((function(e){p.push({value:e.catalogName,label:e.catalogName})})),p.length&&(n=K(w),a=p.findIndex((function(e){return e.value===n})),v.value=a>-1?n:p[0].value);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,te();case 2:t=e.sent,f.push.apply(f,Object(C["a"])(t||[]));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){$(w,v.value)},V=function(){s.value=!s.value},x=function(){d.value=!d.value},P=function(){g.length=0,c.value.initData("")},q=function(){var t=Object(y["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,v.value){t.next=4;break}return k["a"].error(e.selectClPh),t.abrupt("return");case 4:return l.value=!0,P(),u.value="Running",t.next=9,ae({catalog:v.value,sql:r.value});case 9:n=t.sent,i.value=n.sessionId||"0",z(),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](0),u.value="Failed",k["a"].error(t.t0.message||"error");case 18:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}(),L=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.value){e.next=9;break}return b.value="log",m.value&&clearTimeout(m.value),l.value=!1,u.value="Canceling",P(),o.value=!0,e.next=9,ce(i.value).then((function(){u.value="Canceled"})).catch((function(){u.value="Failed"})).finally((function(){o.value=!1}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,g.length=0,e.next=4,ee(i.value||"0");case 4:t=e.sent,t&&t.length&&g.push.apply(g,Object(C["a"])(t)),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t,n,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(m.value&&clearTimeout(m.value),"Running"===u.value){e.next=3;break}return e.abrupt("return");case 3:if(!i.value){e.next=20;break}return e.next=6,oe(i.value);case 6:return t=e.sent,b.value="log",n=t||{},a=n.logStatus,o=n.logs,null!==o&&void 0!==o&&o.length&&c.value.initData(o.join("\n")),"Canceled"!==u.value&&(u.value=a),e.next=13,I();case 13:if("Finished"!==a&&"Canceled"!==a){e.next=17;break}g.length&&(b.value=g[0].id),e.next=20;break;case 17:if("Canceled"!==u.value){e.next=19;break}return e.abrupt("return");case 19:m.value=setTimeout((function(){z()}),1500);case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,b.value="log","Running"!==u.value){e.next=4;break}return e.abrupt("return");case 4:return clearTimeout(m.value),t.value=!0,e.next=8,ne(n);case 8:a=e.sent,r.value=a,l.value=!1,u.value="",P(),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](0),k["a"].error(e.t0.message);case 18:return e.prev=18,t.value=!1,e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[0,15,18,21]])})));return function(t){return e.apply(this,arguments)}}(),M=function(){return document.body},F=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n.value&&(r.value=K(h)),t.value=!0,e.next=5,re();case 5:a=e.sent,i.value=a.sessionId,a.sessionId>"0"&&(n.value&&!r.value&&(r.value=a.sql||""),u.value="Running",l.value=!0,z()),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),k["a"].error(e.t0.message);case 13:return e.prev=13,t.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])})));return function(){return e.apply(this,arguments)}}(),H={topbarHeight:48,optionHeight:44,resultTabHeight:40,runStatusHeight:32,gap:48},T=0,A=0,_=function(e){T=e.clientY,A=O.value,window.addEventListener("mousemove",G),window.addEventListener("mouseup",U)},G=function(e){var t=e.clientY,n=t-T,a=s.value?0:H.topbarHeight,c=u.value?H.runStatusHeight:0,o=A+n;o=Math.max(o,H.optionHeight+c),o=Math.min(o,window.innerHeight-a-(s.value?0:H.gap)-H.optionHeight-4),O.value=o},U=function e(){window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",e)},$=function(e,t){localStorage.setItem(e,t)},K=function(e){return localStorage.getItem(e)||""};return Object(a["onBeforeUnmount"])((function(){clearTimeout(m.value),$(h,r.value)})),Object(a["onMounted"])((function(){F(),S(),N()})),{loading:t,bgcMap:j,sqlLogRef:c,sqlEditorRef:n,fullscreen:s,resultFullscreen:d,operationActive:b,resultTabList:g,runStatus:u,shortcuts:f,curCatalog:v,catalogOptions:p,handleIconClick:B,handleFull:V,resultFull:x,showDebug:l,sqlSource:r,readOnly:o,generateCode:D,getPopupContainer:M,sqlResultHeight:O,dragMounseDown:_,changeUseCatalog:E}}});n("43c2");const se=x()(ie,[["render",h],["__scopeId","data-v-9dc54ca4"]]);t["default"]=se},d9da:function(e,t,n){},ec5b:function(e,t,n){},f38b:function(e,t,n){"use strict";var a,c,o,r,l;n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return l})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(a||(a={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(c||(c={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(o||(o={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(r||(r={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(l||(l={}))},fea2:function(e,t,n){"use strict";n("ec5b")}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-1909d840.f2f29714.js b/ams/dashboard/src/main/resources/static/js/chunk-1909d840.2a125b98.js similarity index 51% rename from ams/dashboard/src/main/resources/static/js/chunk-1909d840.f2f29714.js rename to ams/dashboard/src/main/resources/static/js/chunk-1909d840.2a125b98.js index fd73ff7260..4512bc322a 100644 --- a/ams/dashboard/src/main/resources/static/js/chunk-1909d840.f2f29714.js +++ b/ams/dashboard/src/main/resources/static/js/chunk-1909d840.2a125b98.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1909d840"],{"11e6":function(e,t,n){},4139:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),c=n("5530"),r=(n("96cf"),n("d3b7"),n("159b"),n("7a23")),o=n("6c02"),i=n("2b46"),u=(n("d81d"),n("4de4"),n("47e2")),l={class:"field-wrap"},s=Object(r["defineComponent"])({props:{fields:null,loading:{type:Boolean}},setup:function(e,t){var n=t.expose,a=e,c=Object(u["b"])(),o=c.t,i=Object(r["shallowReactive"])([{dataIndex:"field",title:o("field"),ellipsis:!0},{dataIndex:"type",title:o("type"),ellipsis:!0},{dataIndex:"comment",title:o("description"),ellipsis:!0},{dataIndex:"primaryKey",title:o("primaryKey"),scopedSlots:{customRender:"primaryKey"}}]);return n({getPkname:function(){return a.fields.filter((function(e){return e.checked})).map((function(e){return{fieldName:e.field||""}}))}}),function(t,n){var c=Object(r["resolveComponent"])("a-checkbox"),o=Object(r["resolveComponent"])("a-table");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",l,[Object(r["createVNode"])(o,{loading:e.loading,class:"ant-table-common",columns:Object(r["unref"])(i),"data-source":a.fields,pagination:!1},{bodyCell:Object(r["withCtx"])((function(e){var t=e.column,n=e.record;return["primaryKey"===t.dataIndex?(Object(r["openBlock"])(),Object(r["createBlock"])(c,{key:0,checked:n.checked,"onUpdate:checked":function(e){return n.checked=e}},null,8,["checked","onUpdate:checked"])):Object(r["createCommentVNode"])("",!0)]})),_:1},8,["loading","columns","data-source"])])}}}),d=(n("9ca6"),n("6b0d")),p=n.n(d);const b=p()(s,[["__scopeId","data-v-5b1564d8"]]);var f=b,v={class:"partition-field-wrap"},O=Object(r["defineComponent"])({props:{partitionFields:null,loading:{type:Boolean}},setup:function(e){var t=e,n=Object(u["b"])(),a=n.t,c=Object(r["shallowReactive"])([{dataIndex:"field",title:a("field"),ellipsis:!0},{dataIndex:"type",title:a("type"),ellipsis:!0},{dataIndex:"comment",title:a("description"),ellipsis:!0}]);return function(n,a){var o=Object(r["resolveComponent"])("a-table");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",v,[Object(r["createVNode"])(o,{loading:e.loading,class:"ant-table-common",columns:Object(r["unref"])(c),"data-source":t.partitionFields,pagination:!1},null,8,["loading","columns","data-source"])])}}});const m=O;var j=m,g=(n("b64b"),n("7db0"),n("a434"),n("a878")),h=n("5738"),k=n("d257"),y=n("8552"),P={class:"config-properties"},x={class:"config-header g-flex"},w={class:"td g-flex-ac"},C={class:"td g-flex-ac bd-left"},N=Object(r["createTextVNode"])("+"),V=Object(r["defineComponent"])({props:{propertiesObj:null},setup:function(e,t){var n=t.expose,c=e,o=Object(r["reactive"])([]),i=Object(r["ref"])(),u=Object(r["reactive"])([]),l=Object(r["ref"])(),s=Object(r["reactive"])({data:[]}),d=Object(r["reactive"])(Object(y["a"])());function p(){o.length=0,s.data.length=0,Object.keys(c.propertiesObj).forEach((function(e){s.data.push({key:e,value:c.propertiesObj[e],uuid:Object(k["g"])()})}))}function b(){return f.apply(this,arguments)}function f(){return f=Object(a["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return u.length=0,i.value=[],e.next=4,Object(h["o"])();case 4:t=e.sent,Object.keys(t).forEach((function(e){var n={key:e,label:e,value:e,text:t[e]||""};u.push(n),i.value.push(n)}));case 6:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function v(e,t){return t.key.toUpperCase().indexOf(e.toUpperCase())>=0}function O(e,t,n){var a=t.key,c=u.find((function(e){return e.key===a})),r=s.data.find((function(e){return e.uuid===n.uuid}));r&&(r.value=c.text||"",r.key=c.key||"")}function m(e){var t=s.data.indexOf(e);-1!==t&&s.data.splice(t,1)}function j(){s.data.push({key:"",value:"",uuid:Object(k["g"])()})}return Object(r["watch"])((function(){return c.propertiesObj}),(function(){p()}),{immediate:!0,deep:!0}),n({getProperties:function(){return l.value.validateFields().then((function(){var e={};return s.data.forEach((function(t){e[t.key]=t.value})),Promise.resolve(e)})).catch((function(){return!1}))}}),Object(r["onMounted"])((function(){b()})),function(e,t){var n=Object(r["resolveComponent"])("a-auto-complete"),a=Object(r["resolveComponent"])("a-form-item"),c=Object(r["resolveComponent"])("a-input"),o=Object(r["resolveComponent"])("a-form"),u=Object(r["resolveComponent"])("a-button");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",P,[Object(r["createElementVNode"])("div",x,[Object(r["createElementVNode"])("div",w,Object(r["toDisplayString"])(e.$t("key")),1),Object(r["createElementVNode"])("div",C,Object(r["toDisplayString"])(e.$t("value")),1)]),Object(r["createVNode"])(o,{ref_key:"propertiesFormRef",ref:l,model:Object(r["unref"])(s),class:"g-mt-12"},{default:Object(r["withCtx"])((function(){return[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(s).data,(function(t,o){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(r["createVNode"])(a,{name:["data",o,"key"],rules:[{required:!0,message:"".concat(e.$t(Object(r["unref"])(d).selectPh))}],class:"g-mr-8"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(n,{value:t.key,"onUpdate:value":function(e){return t.key=e},options:i.value,onSelect:function(e,n){return O(e,n,t)},"filter-option":v,style:{width:"100%"},class:"g-mr-12"},{option:Object(r["withCtx"])((function(e){var t=e.key;return[Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(t),1)]})),_:2},1032,["value","onUpdate:value","options","onSelect"])]})),_:2},1032,["name","rules"]),Object(r["createVNode"])(a,{name:["data",o,"value"],rules:[{required:!0,message:"".concat(e.$t(Object(r["unref"])(d).inputPh))}]},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(c,{value:t.value,"onUpdate:value":function(e){return t.value=e},maxlength:64,style:{width:"100%"}},null,8,["value","onUpdate:value"])]})),_:2},1032,["name","rules"]),Object(r["createVNode"])(Object(r["unref"])(g["a"]),{class:"icon-close",onClick:function(e){return m(t)}},null,8,["onClick"])])})),128))]})),_:1},8,["model"]),Object(r["createVNode"])(u,{class:"config-btn",onClick:j},{default:Object(r["withCtx"])((function(){return[N]})),_:1})])}}});n("bc77");const B=V;var E=B,S={class:"upgrade-table"},_={class:"nav-bar"},z={class:"title g-ml-8"},I={class:"content"},R={class:"table-attrs"},F={class:"footer-btn"},$=Object(r["defineComponent"])({emits:["goBack","refresh"],setup:function(e,t){var n=t.emit,u=Object(r["ref"])(!1),l=Object(r["reactive"])([]),s=Object(r["reactive"])([]),d=Object(r["reactive"])({}),p=Object(r["reactive"])([]),b=(Object(o["e"])(),Object(o["d"])()),v=Object(r["computed"])((function(){return Object(c["a"])({},b.query)})),O=Object(r["ref"])(),m=Object(r["ref"])();function g(){return k.apply(this,arguments)}function k(){return k=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r,o,i,p,b,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=v.value,n=t.catalog,a=t.db,r=t.table,n&&a&&r){e.next=4;break}return e.abrupt("return");case 4:return u.value=!0,s.length=0,l.length=0,e.next=9,Object(h["f"])(Object(c["a"])({},v.value));case 9:o=e.sent,i=o.partitionColumnList,p=void 0===i?[]:i,b=o.schema,f=o.properties,(p||[]).forEach((function(e){s.push(e)})),(b||[]).forEach((function(e){l.push(e)})),Object.assign(d,f),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](0);case 18:return e.prev=18,u.value=!1,e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[0,16,18,21]])}))),k.apply(this,arguments)}function y(){P()}function P(){return x.apply(this,arguments)}function x(){return x=Object(a["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:p.length=0,t=O.value.getPkname(),t.forEach((function(e){p.push(e)})),m.value.getProperties().then((function(e){e&&(Object.assign(d,e),w())}));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function w(){return C.apply(this,arguments)}function C(){return C=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,a,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=v.value,a=t.catalog,r=t.db,o=t.table,a&&r&&o){e.next=4;break}return e.abrupt("return");case 4:return u.value=!0,e.next=7,Object(h["q"])(Object(c["a"])(Object(c["a"])({},v.value),{},{pkList:p,properties:d}));case 7:N(),n("refresh"),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),N();case 14:return e.prev=14,u.value=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])}))),C.apply(this,arguments)}function N(){n("goBack")}function V(){N()}return Object(r["onMounted"])((function(){g()})),function(e,t){var n=Object(r["resolveComponent"])("a-form-item"),a=Object(r["resolveComponent"])("a-form"),c=Object(r["resolveComponent"])("a-button");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",S,[Object(r["createElementVNode"])("div",_,[Object(r["createVNode"])(Object(r["unref"])(i["a"]),{onClick:N}),Object(r["createElementVNode"])("span",z,Object(r["toDisplayString"])(e.$t("upgradeHiveTable")),1)]),Object(r["createElementVNode"])("div",I,[Object(r["createElementVNode"])("div",R,[Object(r["createVNode"])(a,{name:"fields",class:"label-120"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(n,{label:e.$t("field"),name:"field"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(f,{loading:u.value,fields:Object(r["unref"])(l),ref_key:"schemaFieldRef",ref:O},null,8,["loading","fields"])]})),_:1},8,["label"]),Object(r["createVNode"])(n,{label:e.$t("partitonField"),name:"partitonField"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(j,{loading:u.value,partitionFields:Object(r["unref"])(s)},null,8,["loading","partitionFields"])]})),_:1},8,["label"]),Object(r["createVNode"])(n,{label:e.$t("otherProperties"),name:"otherProperties"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(E,{propertiesObj:Object(r["unref"])(d),ref_key:"propertiesRef",ref:m},null,8,["propertiesObj"])]})),_:1},8,["label"])]})),_:1})]),Object(r["createElementVNode"])("div",F,[Object(r["createVNode"])(c,{type:"primary",onClick:y,loading:u.value,class:"btn g-mr-12"},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("ok")),1)]})),_:1},8,["loading"]),Object(r["createVNode"])(c,{type:"ghost",onClick:V,class:"btn"},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("cancel")),1)]})),_:1})])])])}}});n("4dbb");const D=p()($,[["__scopeId","data-v-5c84690d"]]);t["default"]=D},"4dbb":function(e,t,n){"use strict";n("cf8e")},5738:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return r})),n.d(t,"m",(function(){return o})),n.d(t,"l",(function(){return i})),n.d(t,"f",(function(){return u})),n.d(t,"p",(function(){return l})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"e",(function(){return b})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return v})),n.d(t,"q",(function(){return O})),n.d(t,"o",(function(){return m})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return g})),n.d(t,"n",(function(){return h}));n("99af");var a=n("b32d");function c(){return a["a"].get("ams/v1/catalogs")}function r(e){var t=e.catalog,n=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:n}})}function o(e){var t=e.catalog,n=e.db,c=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(n,"/tables"),{params:{keywords:c}})}function i(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o,u=e.token,l=void 0===u?"":u;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/details"),{params:{token:l}})}function u(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/hive/details"))}function l(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/upgrade/status"))}function s(e){var t=e.catalog,n=e.db,c=e.table,r=e.page,o=e.pageSize,i=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions"),{params:{page:r,pageSize:o,token:i}})}function d(e){var t=e.catalog,n=e.db,c=e.table,r=e.partition,o=e.specId,i=e.page,u=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions/").concat(r,"/files"),{params:{specId:o,page:i,pageSize:u,token:l}})}function p(e){var t=e.catalog,n=e.db,c=e.table,r=e.page,o=e.pageSize,i=e.token,u=e.ref,l=e.operation;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots"),{params:{page:r,pageSize:o,token:i,ref:u,operation:l}})}function b(e){var t=e.catalog,n=e.db,c=e.table,r=e.snapshotId,o=e.page,i=e.pageSize,u=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots/").concat(r,"/detail"),{params:{page:o,pageSize:i,token:u}})}function f(e){var t=e.catalog,n=e.db,c=e.table,r=e.page,o=e.pageSize,i=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/operations"),{params:{page:r,pageSize:o,token:i}})}function v(e){var t=e.catalog,n=e.db,c=e.table,r=e.page,o=e.pageSize,i=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/optimizing-processes"),{params:{page:r,pageSize:o,token:i}})}function O(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o,u=e.properties,l=void 0===u?{}:u,s=e.pkList,d=void 0===s?[]:s;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/upgrade"),{properties:l,pkList:d})}function m(){return a["a"].get("ams/v1/upgrade/properties")}function j(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o,u=e.processId,l=void 0===u?"":u;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/optimizing-processes/").concat(l,"/cancel"))}function g(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/branches"))}function h(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/tags"))}},"7db0":function(e,t,n){"use strict";var a=n("23e7"),c=n("b727").find,r=n("44d2"),o="find",i=!0;o in[]&&Array(1)[o]((function(){i=!1})),a({target:"Array",proto:!0,forced:i},{find:function(e){return c(this,e,arguments.length>1?arguments[1]:void 0)}}),r(o)},8552:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("7a23"),c=n("47e2");function r(){var e=Object(c["b"])(),t=e.t,n=Object(a["computed"])((function(){return t("catalog")})).value,r=Object(a["computed"])((function(){return t("databaseName")})).value,o=Object(a["computed"])((function(){return t("tableName")})).value,i=Object(a["computed"])((function(){return t("optimzerGroup")})).value,u=Object(a["computed"])((function(){return t("resourceGroup")})).value,l=Object(a["computed"])((function(){return t("parallelism")})).value,s=Object(a["computed"])((function(){return t("username")})).value,d=Object(a["computed"])((function(){return t("password")})).value,p=Object(a["computed"])((function(){return t("database",2)})).value,b=Object(a["computed"])((function(){return t("table",2)})).value,f=Object(a["computed"])((function(){return t("name")})).value,v=Object(a["computed"])((function(){return t("container")})).value;return{selectPh:t("selectPlaceholder"),inputPh:t("inputPlaceholder"),selectClPh:t("selectPlaceholder",{selectPh:n}),selectDBPh:t("selectPlaceholder",{selectPh:r}),inputDBPh:t("inputPlaceholder",{inputPh:r}),inputClPh:t("inputPlaceholder",{inputPh:n}),inputTNPh:t("inputPlaceholder",{inputPh:o}),selectOptGroupPh:t("inputPlaceholder",{inputPh:i}),resourceGroupPh:t("inputPlaceholder",{inputPh:u}),parallelismPh:t("inputPlaceholder",{inputPh:l}),usernamePh:t("inputPlaceholder",{inputPh:s}),passwordPh:t("inputPlaceholder",{inputPh:d}),filterDBPh:t("filterPlaceholder",{inputPh:p}),filterTablePh:t("filterPlaceholder",{inputPh:b}),groupNamePh:t("inputPlaceholder",{inputPh:f}),groupContainer:t("selectPlaceholder",{selectPh:v})}}},"9ca6":function(e,t,n){"use strict";n("ebb5")},bc77:function(e,t,n){"use strict";n("11e6")},cf8e:function(e,t,n){},ebb5:function(e,t,n){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1909d840"],{"11e6":function(e,t,n){},4139:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),c=n("5530"),r=(n("96cf"),n("d3b7"),n("159b"),n("7a23")),o=n("6c02"),i=n("2b46"),l=(n("d81d"),n("4de4"),n("47e2")),u={class:"field-wrap"},s=Object(r["defineComponent"])({props:{fields:null,loading:{type:Boolean}},setup:function(e,t){var n=t.expose,a=e,c=Object(l["b"])(),o=c.t,i=Object(r["shallowReactive"])([{dataIndex:"field",title:o("field"),ellipsis:!0},{dataIndex:"type",title:o("type"),ellipsis:!0},{dataIndex:"comment",title:o("description"),ellipsis:!0},{dataIndex:"primaryKey",title:o("primaryKey"),scopedSlots:{customRender:"primaryKey"}}]);return n({getPkname:function(){return a.fields.filter((function(e){return e.checked})).map((function(e){return{fieldName:e.field||""}}))}}),function(t,n){var c=Object(r["resolveComponent"])("a-checkbox"),o=Object(r["resolveComponent"])("a-table");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",u,[Object(r["createVNode"])(o,{loading:e.loading,class:"ant-table-common",columns:Object(r["unref"])(i),"data-source":a.fields,pagination:!1},{bodyCell:Object(r["withCtx"])((function(e){var t=e.column,n=e.record;return["primaryKey"===t.dataIndex?(Object(r["openBlock"])(),Object(r["createBlock"])(c,{key:0,checked:n.checked,"onUpdate:checked":function(e){return n.checked=e}},null,8,["checked","onUpdate:checked"])):Object(r["createCommentVNode"])("",!0)]})),_:1},8,["loading","columns","data-source"])])}}}),d=(n("9ca6"),n("6b0d")),p=n.n(d);const b=p()(s,[["__scopeId","data-v-5b1564d8"]]);var f=b,v={class:"partition-field-wrap"},g=Object(r["defineComponent"])({props:{partitionFields:null,loading:{type:Boolean}},setup:function(e){var t=e,n=Object(l["b"])(),a=n.t,c=Object(r["shallowReactive"])([{dataIndex:"field",title:a("field"),ellipsis:!0},{dataIndex:"type",title:a("type"),ellipsis:!0},{dataIndex:"comment",title:a("description"),ellipsis:!0}]);return function(n,a){var o=Object(r["resolveComponent"])("a-table");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",v,[Object(r["createVNode"])(o,{loading:e.loading,class:"ant-table-common",columns:Object(r["unref"])(c),"data-source":t.partitionFields,pagination:!1},null,8,["loading","columns","data-source"])])}}});const m=g;var O=m,j=(n("b64b"),n("7db0"),n("a434"),n("a878")),h=n("5738"),k=n("d257"),y=n("8552"),P={class:"config-properties"},x={class:"config-header g-flex"},w={class:"td g-flex-ac"},C={class:"td g-flex-ac bd-left"},N=Object(r["createTextVNode"])("+"),V=Object(r["defineComponent"])({props:{propertiesObj:null},setup:function(e,t){var n=t.expose,c=e,o=Object(r["reactive"])([]),i=Object(r["ref"])(),l=Object(r["reactive"])([]),u=Object(r["ref"])(),s=Object(r["reactive"])({data:[]}),d=Object(r["reactive"])(Object(y["a"])());function p(){o.length=0,s.data.length=0,Object.keys(c.propertiesObj).forEach((function(e){s.data.push({key:e,value:c.propertiesObj[e],uuid:Object(k["g"])()})}))}function b(){return f.apply(this,arguments)}function f(){return f=Object(a["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l.length=0,i.value=[],e.next=4,Object(h["p"])();case 4:t=e.sent,Object.keys(t).forEach((function(e){var n={key:e,label:e,value:e,text:t[e]||""};l.push(n),i.value.push(n)}));case 6:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function v(e,t){return t.key.toUpperCase().indexOf(e.toUpperCase())>=0}function g(e,t,n){var a=t.key,c=l.find((function(e){return e.key===a})),r=s.data.find((function(e){return e.uuid===n.uuid}));r&&(r.value=c.text||"",r.key=c.key||"")}function m(e){var t=s.data.indexOf(e);-1!==t&&s.data.splice(t,1)}function O(){s.data.push({key:"",value:"",uuid:Object(k["g"])()})}return Object(r["watch"])((function(){return c.propertiesObj}),(function(){p()}),{immediate:!0,deep:!0}),n({getProperties:function(){return u.value.validateFields().then((function(){var e={};return s.data.forEach((function(t){e[t.key]=t.value})),Promise.resolve(e)})).catch((function(){return!1}))}}),Object(r["onMounted"])((function(){b()})),function(e,t){var n=Object(r["resolveComponent"])("a-auto-complete"),a=Object(r["resolveComponent"])("a-form-item"),c=Object(r["resolveComponent"])("a-input"),o=Object(r["resolveComponent"])("a-form"),l=Object(r["resolveComponent"])("a-button");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",P,[Object(r["createElementVNode"])("div",x,[Object(r["createElementVNode"])("div",w,Object(r["toDisplayString"])(e.$t("key")),1),Object(r["createElementVNode"])("div",C,Object(r["toDisplayString"])(e.$t("value")),1)]),Object(r["createVNode"])(o,{ref_key:"propertiesFormRef",ref:u,model:Object(r["unref"])(s),class:"g-mt-12"},{default:Object(r["withCtx"])((function(){return[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(s).data,(function(t,o){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(r["createVNode"])(a,{name:["data",o,"key"],rules:[{required:!0,message:"".concat(e.$t(Object(r["unref"])(d).selectPh))}],class:"g-mr-8"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(n,{value:t.key,"onUpdate:value":function(e){return t.key=e},options:i.value,onSelect:function(e,n){return g(e,n,t)},"filter-option":v,style:{width:"100%"},class:"g-mr-12"},{option:Object(r["withCtx"])((function(e){var t=e.key;return[Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(t),1)]})),_:2},1032,["value","onUpdate:value","options","onSelect"])]})),_:2},1032,["name","rules"]),Object(r["createVNode"])(a,{name:["data",o,"value"],rules:[{required:!0,message:"".concat(e.$t(Object(r["unref"])(d).inputPh))}]},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(c,{value:t.value,"onUpdate:value":function(e){return t.value=e},maxlength:64,style:{width:"100%"}},null,8,["value","onUpdate:value"])]})),_:2},1032,["name","rules"]),Object(r["createVNode"])(Object(r["unref"])(j["a"]),{class:"icon-close",onClick:function(e){return m(t)}},null,8,["onClick"])])})),128))]})),_:1},8,["model"]),Object(r["createVNode"])(l,{class:"config-btn",onClick:O},{default:Object(r["withCtx"])((function(){return[N]})),_:1})])}}});n("bc77");const S=V;var B=S,E={class:"upgrade-table"},_={class:"nav-bar"},z={class:"title g-ml-8"},I={class:"content"},R={class:"table-attrs"},F={class:"footer-btn"},$=Object(r["defineComponent"])({emits:["goBack","refresh"],setup:function(e,t){var n=t.emit,l=Object(r["ref"])(!1),u=Object(r["reactive"])([]),s=Object(r["reactive"])([]),d=Object(r["reactive"])({}),p=Object(r["reactive"])([]),b=(Object(o["e"])(),Object(o["d"])()),v=Object(r["computed"])((function(){return Object(c["a"])({},b.query)})),g=Object(r["ref"])(),m=Object(r["ref"])();function j(){return k.apply(this,arguments)}function k(){return k=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r,o,i,p,b,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=v.value,n=t.catalog,a=t.db,r=t.table,n&&a&&r){e.next=4;break}return e.abrupt("return");case 4:return l.value=!0,s.length=0,u.length=0,e.next=9,Object(h["f"])(Object(c["a"])({},v.value));case 9:o=e.sent,i=o.partitionColumnList,p=void 0===i?[]:i,b=o.schema,f=o.properties,(p||[]).forEach((function(e){s.push(e)})),(b||[]).forEach((function(e){u.push(e)})),Object.assign(d,f),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](0);case 18:return e.prev=18,l.value=!1,e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[0,16,18,21]])}))),k.apply(this,arguments)}function y(){P()}function P(){return x.apply(this,arguments)}function x(){return x=Object(a["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:p.length=0,t=g.value.getPkname(),t.forEach((function(e){p.push(e)})),m.value.getProperties().then((function(e){e&&(Object.assign(d,e),w())}));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function w(){return C.apply(this,arguments)}function C(){return C=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,a,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=v.value,a=t.catalog,r=t.db,o=t.table,a&&r&&o){e.next=4;break}return e.abrupt("return");case 4:return l.value=!0,e.next=7,Object(h["r"])(Object(c["a"])(Object(c["a"])({},v.value),{},{pkList:p,properties:d}));case 7:N(),n("refresh"),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),N();case 14:return e.prev=14,l.value=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])}))),C.apply(this,arguments)}function N(){n("goBack")}function V(){N()}return Object(r["onMounted"])((function(){j()})),function(e,t){var n=Object(r["resolveComponent"])("a-form-item"),a=Object(r["resolveComponent"])("a-form"),c=Object(r["resolveComponent"])("a-button");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",E,[Object(r["createElementVNode"])("div",_,[Object(r["createVNode"])(Object(r["unref"])(i["a"]),{onClick:N}),Object(r["createElementVNode"])("span",z,Object(r["toDisplayString"])(e.$t("upgradeHiveTable")),1)]),Object(r["createElementVNode"])("div",I,[Object(r["createElementVNode"])("div",R,[Object(r["createVNode"])(a,{name:"fields",class:"label-120"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(n,{label:e.$t("field"),name:"field"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(f,{loading:l.value,fields:Object(r["unref"])(u),ref_key:"schemaFieldRef",ref:g},null,8,["loading","fields"])]})),_:1},8,["label"]),Object(r["createVNode"])(n,{label:e.$t("partitonField"),name:"partitonField"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(O,{loading:l.value,partitionFields:Object(r["unref"])(s)},null,8,["loading","partitionFields"])]})),_:1},8,["label"]),Object(r["createVNode"])(n,{label:e.$t("otherProperties"),name:"otherProperties"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])(B,{propertiesObj:Object(r["unref"])(d),ref_key:"propertiesRef",ref:m},null,8,["propertiesObj"])]})),_:1},8,["label"])]})),_:1})]),Object(r["createElementVNode"])("div",F,[Object(r["createVNode"])(c,{type:"primary",onClick:y,loading:l.value,class:"btn g-mr-12"},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("ok")),1)]})),_:1},8,["loading"]),Object(r["createVNode"])(c,{type:"ghost",onClick:V,class:"btn"},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("cancel")),1)]})),_:1})])])])}}});n("4dbb");const D=p()($,[["__scopeId","data-v-5c84690d"]]);t["default"]=D},"4dbb":function(e,t,n){"use strict";n("cf8e")},5738:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return r})),n.d(t,"m",(function(){return o})),n.d(t,"l",(function(){return i})),n.d(t,"f",(function(){return l})),n.d(t,"q",(function(){return u})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"e",(function(){return b})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return v})),n.d(t,"o",(function(){return g})),n.d(t,"r",(function(){return m})),n.d(t,"p",(function(){return O})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return h})),n.d(t,"n",(function(){return k}));n("99af"),n("4de4"),n("d3b7");var a=n("b32d");function c(){return a["a"].get("ams/v1/catalogs")}function r(e){var t=e.catalog,n=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:n}})}function o(e){var t=e.catalog,n=e.db,c=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(n,"/tables"),{params:{keywords:c}})}function i(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o,l=e.token,u=void 0===l?"":l;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/details"),{params:{token:u}})}function l(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/hive/details"))}function u(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/upgrade/status"))}function s(e){var t=e.catalog,n=e.db,c=e.table,r=e.filter,o=e.page,i=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions"),{params:{filter:r,page:o,pageSize:i,token:l}})}function d(e){var t=e.catalog,n=e.db,c=e.table,r=e.partition,o=e.specId,i=e.page,l=e.pageSize,u=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions/").concat(r,"/files"),{params:{specId:o,page:i,pageSize:l,token:u}})}function p(e){var t=e.catalog,n=e.db,c=e.table,r=e.page,o=e.pageSize,i=e.token,l=e.ref,u=e.operation;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots"),{params:{page:r,pageSize:o,token:i,ref:l,operation:u}})}function b(e){var t=e.catalog,n=e.db,c=e.table,r=e.snapshotId,o=e.page,i=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots/").concat(r,"/detail"),{params:{page:o,pageSize:i,token:l}})}function f(e){var t=e.catalog,n=e.db,c=e.table,r=e.page,o=e.pageSize,i=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/operations"),{params:{page:r,pageSize:o,token:i}})}function v(e){var t=e.catalog,n=e.db,c=e.table,r=e.page,o=e.pageSize,i=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/optimizing-processes"),{params:{page:r,pageSize:o,token:i}})}function g(e){var t=e.catalog,n=e.db,c=e.table,r=e.processId,o=e.page,i=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/optimizing-processes/").concat(r,"/tasks"),{params:{page:o,pageSize:i,token:l}})}function m(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o,l=e.properties,u=void 0===l?{}:l,s=e.pkList,d=void 0===s?[]:s;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/upgrade"),{properties:u,pkList:d})}function O(){return a["a"].get("ams/v1/upgrade/properties")}function j(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,r=void 0===c?"":c,o=e.table,i=void 0===o?"":o,l=e.processId,u=void 0===l?"":l;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(r,"/tables/").concat(i,"/optimizing-processes/").concat(u,"/cancel"))}function h(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/branches"))}function k(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/tags"))}},"7db0":function(e,t,n){"use strict";var a=n("23e7"),c=n("b727").find,r=n("44d2"),o="find",i=!0;o in[]&&Array(1)[o]((function(){i=!1})),a({target:"Array",proto:!0,forced:i},{find:function(e){return c(this,e,arguments.length>1?arguments[1]:void 0)}}),r(o)},8552:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("7a23"),c=n("47e2");function r(){var e=Object(c["b"])(),t=e.t,n=Object(a["computed"])((function(){return t("catalog")})).value,r=Object(a["computed"])((function(){return t("databaseName")})).value,o=Object(a["computed"])((function(){return t("tableName")})).value,i=Object(a["computed"])((function(){return t("optimzerGroup")})).value,l=Object(a["computed"])((function(){return t("resourceGroup")})).value,u=Object(a["computed"])((function(){return t("parallelism")})).value,s=Object(a["computed"])((function(){return t("username")})).value,d=Object(a["computed"])((function(){return t("password")})).value,p=Object(a["computed"])((function(){return t("database",2)})).value,b=Object(a["computed"])((function(){return t("table",2)})).value,f=Object(a["computed"])((function(){return t("name")})).value,v=Object(a["computed"])((function(){return t("container")})).value;return{selectPh:t("selectPlaceholder"),inputPh:t("inputPlaceholder"),selectClPh:t("selectPlaceholder",{selectPh:n}),selectDBPh:t("selectPlaceholder",{selectPh:r}),inputDBPh:t("inputPlaceholder",{inputPh:r}),inputClPh:t("inputPlaceholder",{inputPh:n}),inputTNPh:t("inputPlaceholder",{inputPh:o}),selectOptGroupPh:t("inputPlaceholder",{inputPh:i}),resourceGroupPh:t("inputPlaceholder",{inputPh:l}),parallelismPh:t("inputPlaceholder",{inputPh:u}),usernamePh:t("inputPlaceholder",{inputPh:s}),passwordPh:t("inputPlaceholder",{inputPh:d}),filterDBPh:t("filterPlaceholder",{inputPh:p}),filterTablePh:t("filterPlaceholder",{inputPh:b}),groupNamePh:t("inputPlaceholder",{inputPh:f}),groupContainer:t("selectPlaceholder",{selectPh:v})}}},"9ca6":function(e,t,n){"use strict";n("ebb5")},bc77:function(e,t,n){"use strict";n("11e6")},cf8e:function(e,t,n){},ebb5:function(e,t,n){}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-65d125fa.b2451a89.js b/ams/dashboard/src/main/resources/static/js/chunk-65d125fa.b2451a89.js deleted file mode 100644 index 7d75f0761c..0000000000 --- a/ams/dashboard/src/main/resources/static/js/chunk-65d125fa.b2451a89.js +++ /dev/null @@ -1,40 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65d125fa"],{"0300":function(t,e,n){"use strict";n("df0a")},"04d1":function(t,e,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"07ac":function(t,e,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},"0855":function(t,e,n){},1448:function(t,e,n){"use strict";n("d360")},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function d(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},2532:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),l=n("ab13"),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~u(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},"3c7f":function(t,e,n){"use strict";var r=n("7a23"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=i,a=n("b3f0");function s(t){for(var e=1;e255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function f(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new r["a"](20),g=null;function v(t,e){g&&d(g,e),g=p.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in i)return d(e,i[r]),v(t,e),e;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var c=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),g=1;switch(c){case"rgba":if(4!==h.length)return 3===h.length?f(e,+h[0],+h[1],+h[2],1):f(e,0,0,0,1);g=u(h.pop());case"rgb":return 3!==h.length?void f(e,0,0,0,1):(f(e,l(h[0]),l(h[1]),l(h[2]),g),v(t,e),e);case"hsla":return 4!==h.length?void f(e,0,0,0,1):(h[3]=u(h[3]),m(h,e),v(t,e),e);case"hsl":return 3!==h.length?void f(e,0,0,0,1):(m(h,e),v(t,e),e);default:return}}f(e,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(f(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),v(t,e),e):void f(e,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(f(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),v(t,e),e):void f(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=u(t[1]),i=u(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return e=e||[],f(e,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function _(t,e){var n=y(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=e[i],u=e[a],c=r-i;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}var O=w;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=y(e[i]),u=y(e[a]),c=r-i,f=C([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:f,leftIndex:i,rightIndex:a,value:r}:f}}var M=S;function j(t,e,n,r){var i=y(t);if(t)return i=b(i),null!=e&&(i[0]=a(e)),null!=n&&(i[1]=u(n)),null!=r&&(i[2]=u(r)),C(m(i),"rgba")}function T(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function k(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},"4e82":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),l=n("577e"),u=n("d039"),c=n("addb"),h=n("a640"),f=n("04d1"),d=n("d998"),p=n("2d00"),g=n("512c"),v=[],y=i(v.sort),m=i(v.push),b=u((function(){v.sort(void 0)})),_=u((function(){v.sort(null)})),x=h("sort"),w=!u((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;rl(n)?1:-1}};r({target:"Array",proto:!0,forced:O},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(w)return void 0===t?y(e):y(e,t);var n,r,i=[],l=s(e);for(r=0;rh)n=s[h++],r&&!l(i,n)||u(f,t?[n,i[n]]:i[n]);return f}};t.exports={entries:c(!0),values:c(!1)}},"726e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return f}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n=0)u=l*n.length;else for(var f=0;f */ -e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,u-=8);t[n+d-p]|=128*g}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),l=n("1a2d"),u=n("7156"),c=n("3a9b"),h=n("d9b5"),f=n("c04e"),d=n("d039"),p=n("241c").f,g=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",_=i[b],x=_.prototype,w=i.TypeError,O=o("".slice),S=o("".charCodeAt),M=function(t){var e=f(t,"number");return"bigint"==typeof e?e:j(e)},j=function(t){var e,n,r,i,o,a,s,l,u=f(t,"number");if(h(u))throw w("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=m(u),e=S(u,0),43===e||45===e){if(n=S(u,2),88===n||120===n)return NaN}else if(48===e){switch(S(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=O(u,2),a=o.length,s=0;si)return NaN;return parseInt(o,r)}return+u};if(a(b,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var T,C=function(t){var e=arguments.length<1?0:_(M(t)),n=this;return c(x,n)&&d((function(){y(n)}))?u(Object(e),n,C):e},k=r?p(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),I=0;k.length>I;I++)l(_,T=k[I])&&!l(C,T)&&v(C,T,g(_,T));C.prototype=x,x.constructor=C,s(i,b,C)}},add7:function(t,e,n){"use strict";n("0855")},b311:function(t,e,n){ -/*! - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */ -(function(e,n){t.exports=n()})(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return D}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(t){try{return document.execCommand(t)}catch(e){return!1}}var c=function(t){var e=l()(t);return u("cut"),e},h=c;function f(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}var d=function(t,e){var n=f(t);e.container.appendChild(n);var r=l()(n);return u("copy"),n.remove(),r},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=d(t.value,e):(n=l()(t),u("copy")),n},g=p;function v(t){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==v(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?g(o,{container:r}):i?"cut"===n?h(i):g(i,{container:r}):void 0},m=y;function b(t){return b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===b(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=m({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return I("action",t)}},{key:"defaultTarget",value:function(t){var e=I("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return I("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return g(t,e)}},{key:"cut",value:function(t){return h(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),D=A},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),i=n(438);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return i(document.body,t,e,n)}t.exports=o},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r - * @license MIT - */ -var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function _(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return E(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function O(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:S(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return L(r)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return f(null,t,e,n)},u.allocUnsafe=function(t){return d(null,t)},u.allocUnsafeSlow=function(t){return d(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,t,e,n);case"utf8":case"utf-8":return j(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function G(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,r,o){return o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return W(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(X(t))}function tt(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b6bbb:function(t,e,n){},bf1c:function(t,e,n){"use strict";n("ee38")},bfa3:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"create",(function(){return Ot})),n.d(r,"copy",(function(){return St})),n.d(r,"clone",(function(){return Mt})),n.d(r,"set",(function(){return jt})),n.d(r,"add",(function(){return Tt})),n.d(r,"scaleAndAdd",(function(){return Ct})),n.d(r,"sub",(function(){return kt})),n.d(r,"len",(function(){return It})),n.d(r,"length",(function(){return At})),n.d(r,"lenSquare",(function(){return Dt})),n.d(r,"lengthSquare",(function(){return Pt})),n.d(r,"mul",(function(){return Lt})),n.d(r,"div",(function(){return Rt})),n.d(r,"dot",(function(){return Nt})),n.d(r,"scale",(function(){return Et})),n.d(r,"normalize",(function(){return Bt})),n.d(r,"distance",(function(){return zt})),n.d(r,"dist",(function(){return Ft})),n.d(r,"distanceSquare",(function(){return Vt})),n.d(r,"distSquare",(function(){return Ht})),n.d(r,"negate",(function(){return Gt})),n.d(r,"lerp",(function(){return Wt})),n.d(r,"applyTransform",(function(){return Ut})),n.d(r,"min",(function(){return Yt})),n.d(r,"max",(function(){return Xt}));var i={};n.r(i),n.d(i,"create",(function(){return Pr})),n.d(i,"identity",(function(){return Lr})),n.d(i,"copy",(function(){return Rr})),n.d(i,"mul",(function(){return Nr})),n.d(i,"translate",(function(){return Er})),n.d(i,"rotate",(function(){return Br})),n.d(i,"scale",(function(){return zr})),n.d(i,"invert",(function(){return Fr})),n.d(i,"clone",(function(){return Vr}));var o={};n.r(o),n.d(o,"init",(function(){return Gi})),n.d(o,"dispose",(function(){return Wi})),n.d(o,"disposeAll",(function(){return Ui})),n.d(o,"getInstance",(function(){return Yi})),n.d(o,"registerPainter",(function(){return Xi})),n.d(o,"version",(function(){return qi}));var a={};n.r(a),n.d(a,"updateProps",(function(){return nc})),n.d(a,"initProps",(function(){return rc})),n.d(a,"removeElement",(function(){return oc})),n.d(a,"removeElementWithFadeOut",(function(){return sc})),n.d(a,"isElementRemoved",(function(){return ic})),n.d(a,"extendShape",(function(){return by})),n.d(a,"extendPath",(function(){return xy})),n.d(a,"registerShape",(function(){return wy})),n.d(a,"getShapeClass",(function(){return Oy})),n.d(a,"makePath",(function(){return Sy})),n.d(a,"makeImage",(function(){return My})),n.d(a,"mergePath",(function(){return Ty})),n.d(a,"resizePath",(function(){return Cy})),n.d(a,"subPixelOptimizeLine",(function(){return ky})),n.d(a,"subPixelOptimizeRect",(function(){return Iy})),n.d(a,"subPixelOptimize",(function(){return Ay})),n.d(a,"getTransform",(function(){return Dy})),n.d(a,"applyTransform",(function(){return Py})),n.d(a,"transformDirection",(function(){return Ly})),n.d(a,"groupTransition",(function(){return Ey})),n.d(a,"clipPointsByRect",(function(){return By})),n.d(a,"clipRectByRect",(function(){return zy})),n.d(a,"createIcon",(function(){return Fy})),n.d(a,"linePolygonIntersect",(function(){return Vy})),n.d(a,"lineLineIntersect",(function(){return Hy})),n.d(a,"setTooltipConfig",(function(){return Uy})),n.d(a,"traverseElements",(function(){return Xy})),n.d(a,"Group",(function(){return Ei})),n.d(a,"Image",(function(){return cl})),n.d(a,"Text",(function(){return El})),n.d(a,"Circle",(function(){return lv})),n.d(a,"Ellipse",(function(){return hv})),n.d(a,"Sector",(function(){return kv})),n.d(a,"Ring",(function(){return Dv})),n.d(a,"Polygon",(function(){return Ev})),n.d(a,"Polyline",(function(){return Fv})),n.d(a,"Rect",(function(){return bl})),n.d(a,"Line",(function(){return Wv})),n.d(a,"BezierCurve",(function(){return Zv})),n.d(a,"Arc",(function(){return Qv})),n.d(a,"IncrementalDisplayable",(function(){return gy})),n.d(a,"CompoundPath",(function(){return ty})),n.d(a,"LinearGradient",(function(){return iy})),n.d(a,"RadialGradient",(function(){return ay})),n.d(a,"BoundingRect",(function(){return ci})),n.d(a,"OrientedBoundingRect",(function(){return fy})),n.d(a,"Point",(function(){return ti})),n.d(a,"Path",(function(){return nl}));var s={};n.r(s),n.d(s,"createList",(function(){return OS})),n.d(s,"getLayoutRect",(function(){return ef})),n.d(s,"createDimensions",(function(){return Rw})),n.d(s,"dataStack",(function(){return SS})),n.d(s,"createSymbol",(function(){return db})),n.d(s,"createScale",(function(){return MS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return jS})),n.d(s,"getECData",(function(){return Bl})),n.d(s,"enableHoverEmphasis",(function(){return Fu})),n.d(s,"createTextStyle",(function(){return TS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return Qi})),n.d(l,"round",(function(){return to})),n.d(l,"asc",(function(){return eo})),n.d(l,"getPrecision",(function(){return no})),n.d(l,"getPrecisionSafe",(function(){return ro})),n.d(l,"getPixelPrecision",(function(){return io})),n.d(l,"getPercentWithPrecision",(function(){return oo})),n.d(l,"MAX_SAFE_INTEGER",(function(){return so})),n.d(l,"remRadian",(function(){return lo})),n.d(l,"isRadianAroundZero",(function(){return uo})),n.d(l,"parseDate",(function(){return ho})),n.d(l,"quantity",(function(){return fo})),n.d(l,"quantityExponent",(function(){return po})),n.d(l,"nice",(function(){return go})),n.d(l,"quantile",(function(){return vo})),n.d(l,"reformIntervals",(function(){return yo})),n.d(l,"isNumeric",(function(){return bo})),n.d(l,"numericToNumber",(function(){return mo}));var u={};n.r(u),n.d(u,"parse",(function(){return ho})),n.d(u,"format",(function(){return yh}));var c={};n.r(c),n.d(c,"extendShape",(function(){return by})),n.d(c,"extendPath",(function(){return xy})),n.d(c,"makePath",(function(){return Sy})),n.d(c,"makeImage",(function(){return My})),n.d(c,"mergePath",(function(){return Ty})),n.d(c,"resizePath",(function(){return Cy})),n.d(c,"createIcon",(function(){return Fy})),n.d(c,"updateProps",(function(){return nc})),n.d(c,"initProps",(function(){return rc})),n.d(c,"getTransform",(function(){return Dy})),n.d(c,"clipPointsByRect",(function(){return By})),n.d(c,"clipRectByRect",(function(){return zy})),n.d(c,"registerShape",(function(){return wy})),n.d(c,"getShapeClass",(function(){return Oy})),n.d(c,"Group",(function(){return Ei})),n.d(c,"Image",(function(){return cl})),n.d(c,"Text",(function(){return El})),n.d(c,"Circle",(function(){return lv})),n.d(c,"Ellipse",(function(){return hv})),n.d(c,"Sector",(function(){return kv})),n.d(c,"Ring",(function(){return Dv})),n.d(c,"Polygon",(function(){return Ev})),n.d(c,"Polyline",(function(){return Fv})),n.d(c,"Rect",(function(){return bl})),n.d(c,"Line",(function(){return Wv})),n.d(c,"BezierCurve",(function(){return Zv})),n.d(c,"Arc",(function(){return Qv})),n.d(c,"IncrementalDisplayable",(function(){return gy})),n.d(c,"CompoundPath",(function(){return ty})),n.d(c,"LinearGradient",(function(){return iy})),n.d(c,"RadialGradient",(function(){return ay})),n.d(c,"BoundingRect",(function(){return ci}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Rh})),n.d(h,"toCamelCase",(function(){return Nh})),n.d(h,"normalizeCssArray",(function(){return Eh})),n.d(h,"encodeHTML",(function(){return Fh})),n.d(h,"formatTpl",(function(){return Wh})),n.d(h,"getTooltipMarker",(function(){return Uh})),n.d(h,"formatTime",(function(){return Yh})),n.d(h,"capitalFirst",(function(){return Xh})),n.d(h,"truncateText",(function(){return ja})),n.d(h,"getTextRect",(function(){return GS}));var f={};n.r(f),n.d(f,"map",(function(){return _t["map"]})),n.d(f,"each",(function(){return _t["each"]})),n.d(f,"indexOf",(function(){return _t["indexOf"]})),n.d(f,"inherits",(function(){return _t["inherits"]})),n.d(f,"reduce",(function(){return _t["reduce"]})),n.d(f,"filter",(function(){return _t["filter"]})),n.d(f,"bind",(function(){return _t["bind"]})),n.d(f,"curry",(function(){return _t["curry"]})),n.d(f,"isArray",(function(){return _t["isArray"]})),n.d(f,"isString",(function(){return _t["isString"]})),n.d(f,"isObject",(function(){return _t["isObject"]})),n.d(f,"isFunction",(function(){return _t["isFunction"]})),n.d(f,"extend",(function(){return _t["extend"]})),n.d(f,"defaults",(function(){return _t["defaults"]})),n.d(f,"clone",(function(){return _t["clone"]})),n.d(f,"merge",(function(){return _t["merge"]}));var d={};n.r(d),n.d(d,"version",(function(){return p_})),n.d(d,"dependencies",(function(){return g_})),n.d(d,"PRIORITY",(function(){return D_})),n.d(d,"init",(function(){return jx})),n.d(d,"connect",(function(){return Tx})),n.d(d,"disConnect",(function(){return Cx})),n.d(d,"disconnect",(function(){return kx})),n.d(d,"dispose",(function(){return Ix})),n.d(d,"getInstanceByDom",(function(){return Ax})),n.d(d,"getInstanceById",(function(){return Dx})),n.d(d,"registerTheme",(function(){return Px})),n.d(d,"registerPreprocessor",(function(){return Lx})),n.d(d,"registerProcessor",(function(){return Rx})),n.d(d,"registerPostInit",(function(){return Nx})),n.d(d,"registerPostUpdate",(function(){return Ex})),n.d(d,"registerUpdateLifecycle",(function(){return Bx})),n.d(d,"registerAction",(function(){return zx})),n.d(d,"registerCoordinateSystem",(function(){return Fx})),n.d(d,"getCoordinateSystemDimensions",(function(){return Vx})),n.d(d,"registerLocale",(function(){return Jc})),n.d(d,"registerLayout",(function(){return Hx})),n.d(d,"registerVisual",(function(){return Gx})),n.d(d,"registerLoading",(function(){return Yx})),n.d(d,"setCanvasCreator",(function(){return Xx})),n.d(d,"registerMap",(function(){return qx})),n.d(d,"getMap",(function(){return Zx})),n.d(d,"registerTransform",(function(){return Kx})),n.d(d,"dataTool",(function(){return $x})),n.d(d,"zrender",(function(){return o})),n.d(d,"matrix",(function(){return i})),n.d(d,"vector",(function(){return r})),n.d(d,"zrUtil",(function(){return _t})),n.d(d,"color",(function(){return Dn})),n.d(d,"throttle",(function(){return am})),n.d(d,"helper",(function(){return s})),n.d(d,"use",(function(){return tw})),n.d(d,"setPlatformAPI",(function(){return fi["d"]})),n.d(d,"parseGeoJSON",(function(){return HS})),n.d(d,"parseGeoJson",(function(){return HS})),n.d(d,"number",(function(){return l})),n.d(d,"time",(function(){return u})),n.d(d,"graphic",(function(){return c})),n.d(d,"format",(function(){return h})),n.d(d,"util",(function(){return f})),n.d(d,"env",(function(){return bt["a"]})),n.d(d,"List",(function(){return Lw})),n.d(d,"Model",(function(){return zc})),n.d(d,"Axis",(function(){return uM})),n.d(d,"ComponentModel",(function(){return cf})),n.d(d,"ComponentView",(function(){return Rg})),n.d(d,"SeriesModel",(function(){return Pg})),n.d(d,"ChartView",(function(){return nm})),n.d(d,"innerDrawElementOnCanvas",(function(){return Zb})),n.d(d,"extendComponentModel",(function(){return cM})),n.d(d,"extendComponentView",(function(){return hM})),n.d(d,"extendSeriesModel",(function(){return fM})),n.d(d,"extendChartView",(function(){return dM}));n("99af");var p=n("7a23"),g={class:"tables-wrap"},v={key:0,class:"tables-content"},y={class:"g-flex-jsb"},m={class:"g-flex-col"},b={class:"g-flex"},_=["title"],x={key:0,class:"create-time"},w={class:"table-info g-flex-ac"},O={class:"text-color"},S={class:"text-color"},M={class:"text-color"},j={class:"text-color"},T={class:"content"};function C(t,e,n,r,i,o){var a=Object(p["resolveComponent"])("a-divider"),s=Object(p["resolveComponent"])("u-details"),l=Object(p["resolveComponent"])("a-tab-pane"),u=Object(p["resolveComponent"])("u-files"),c=Object(p["resolveComponent"])("a-tabs"),h=Object(p["resolveComponent"])("router-view");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",g,[t.isSecondaryNav?(Object(p["openBlock"])(),Object(p["createBlock"])(h,{key:1,onGoBack:t.goBack},null,8,["onGoBack"])):(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",v,[Object(p["createElementVNode"])("div",y,[Object(p["createElementVNode"])("div",m,[Object(p["createElementVNode"])("div",b,[Object(p["createElementVNode"])("span",{title:t.baseInfo.tableName,class:"table-name g-text-nowrap"},Object(p["toDisplayString"])(t.baseInfo.tableName),9,_),t.isIceberg?Object(p["createCommentVNode"])("",!0):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",x,Object(p["toDisplayString"])("".concat(t.$t("createTime"),": ").concat(t.baseInfo.createTime)),1))]),Object(p["createElementVNode"])("div",w,[Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])("".concat(t.$t("table")).concat(t.$t("size")))+": ",1),Object(p["createElementVNode"])("span",O,Object(p["toDisplayString"])(t.baseInfo.size),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("file"))+": ",1),Object(p["createElementVNode"])("span",S,Object(p["toDisplayString"])(t.baseInfo.file),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("averageFileSize"))+": ",1),Object(p["createElementVNode"])("span",M,Object(p["toDisplayString"])(t.baseInfo.averageFile),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("tableFormat"))+": ",1),Object(p["createElementVNode"])("span",j,Object(p["toDisplayString"])(t.baseInfo.tableFormat),1)])])])]),Object(p["createElementVNode"])("div",T,[Object(p["createVNode"])(c,{activeKey:t.activeKey,"onUpdate:activeKey":e[0]||(e[0]=function(e){return t.activeKey=e}),destroyInactiveTabPane:"",onChange:t.onChangeTab},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(l,{key:"Details",tab:"Details",forceRender:""},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(s,{onSetBaseDetailInfo:t.setBaseDetailInfo,ref:"detailRef"},null,8,["onSetBaseDetailInfo"])]})),_:1}),t.detailLoaded?(Object(p["openBlock"])(),Object(p["createBlock"])(l,{key:"Files",tab:"Files"},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(u,{hasPartition:t.baseInfo.hasPartition},null,8,["hasPartition"])]})),_:1})):Object(p["createCommentVNode"])("",!0),(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(t.tabConfigs,(function(t){return Object(p["openBlock"])(),Object(p["createBlock"])(l,{key:t.key,tab:"".concat(t.label)},{default:Object(p["withCtx"])((function(){return[(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["resolveDynamicComponent"])("U".concat(t.key))))]})),_:2},1032,["tab"])})),128))]})),_:1},8,["activeKey","onChange"])])]))])}var k=n("5530"),I=(n("ac1f"),n("5319"),n("1da1")),A=(n("96cf"),n("4de4"),n("d3b7"),n("d81d"),n("b64b"),n("47e2")),D=n("6c02"),P=n("5738"),L=n("d257"),R={class:"table-detail g-flex"},N={class:"left-content"},E={key:0,class:"table-attrs"},B={class:"attr-title"},z={key:1,class:"table-attrs"},F={class:"attr-title"},V={class:"table-attrs"},H={class:"attr-title"},G={class:"right-content"},W={key:0,class:"table-attrs"},U={class:"attr-title"},Y={class:"table-attrs"},X={class:"attr-title"},q={class:"table-attrs"},Z={class:"attr-title"},K=Object(p["defineComponent"])({emits:["setBaseDetailInfo"],setup:function(t,e){var n=e.expose,r=e.emit,i=Object(A["b"])(),o=i.t,a=Object(D["d"])(),s=Object(p["computed"])((function(){return Object(k["a"])({},a.query)}));Object(p["watch"])((function(){return a.query}),(function(t){(null===t||void 0===t?void 0:t.catalog)&&"/tables"===a.path&&f()}));var l={fileCount:"File Count",totalSize:"Total Size",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time"},u=Object(k["a"])(Object(k["a"])({},l),{},{baseWatermark:"Base Watermark"}),c=Object(k["a"])(Object(k["a"])({},l),{},{tableWatermark:"Table Watermark"}),h=Object(p["reactive"])({detailLoading:!1,baseDetailInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},pkList:[],partitionColumnList:[],properties:[],changeMetrics:[],baseMetrics:[],schema:[]}),f=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,i,o,a,l,f,d,p,g,v,y,m,b,_,x,w,O;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(O=function(){r("setBaseDetailInfo",h.baseDetailInfo)},t.prev=1,e=s.value,n=e.catalog,i=e.db,o=e.table,n&&i&&o){t.next=5;break}return t.abrupt("return");case 5:return h.detailLoading=!0,t.next=8,Object(P["l"])(Object(k["a"])({},s.value));case 8:a=t.sent,l=a.pkList,f=void 0===l?[]:l,d=a.tableType,p=a.partitionColumnList,g=void 0===p?[]:p,v=a.properties,y=a.changeMetrics,m=a.schema,b=a.createTime,_=a.tableIdentifier,x=a.baseMetrics,w=a.tableSummary,h.baseDetailInfo=Object(k["a"])(Object(k["a"])({},w),{},{tableType:d,tableName:(null===_||void 0===_?void 0:_.tableName)||"",createTime:b?Object(L["b"])(b):"",hasPartition:!(null===g||void 0===g||!g.length)}),h.pkList=f||[],h.partitionColumnList=g||[],h.schema=m||[],h.changeMetrics=Object.keys(c||{}).map((function(t){return{metric:c[t],value:"lastCommitTime"===t||"tableWatermark"===t?(y||{})[t]?Object(L["b"])((y||{})[t]):"":(y||{})[t]}})).filter((function(t){return t.value})),h.baseMetrics=Object.keys(u||{}).map((function(t){return{metric:u[t],value:"lastCommitTime"===t||"baseWatermark"===t?(x||{})[t]?Object(L["b"])((x||{})[t]):"":(x||{})[t]}})),h.properties=Object.keys(v||{}).map((function(t){return{key:t,value:v[t]}})),O(),t.next=22;break;case 20:t.prev=20,t.t0=t["catch"](1);case 22:return t.prev=22,h.detailLoading=!1,t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[1,20,22,25]])})));return function(){return t.apply(this,arguments)}}();Object(p["onMounted"])((function(){f()})),n({getTableDetails:f});var d=Object(p["shallowReactive"])([{title:o("field"),dataIndex:"field",width:"30%"},{title:o("type"),dataIndex:"type",width:"20%"},{title:o("required"),dataIndex:"required",width:"20%",customRender:function(t){return String(null===t||void 0===t?void 0:t.value)}},{title:o("description"),dataIndex:"comment",ellipsis:!0}]),g=Object(p["shallowReactive"])([{title:o("field"),dataIndex:"field",width:"30%"},{title:o("sourceField"),dataIndex:"sourceField",width:"30%"},{title:o("transform"),dataIndex:"transform",ellipsis:!0}]),v=Object(p["shallowReactive"])([{title:o("metric"),dataIndex:"metric",width:"50%",ellipsis:!0},{title:o("value"),dataIndex:"value",ellipsis:!0}]),y=Object(p["shallowReactive"])([{title:o("key"),dataIndex:"key",width:"50%",ellipsis:!0},{title:o("value"),dataIndex:"value",ellipsis:!0}]);return function(t,e){var n=Object(p["resolveComponent"])("a-table"),r=Object(p["resolveComponent"])("u-loading");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",R,[Object(p["createElementVNode"])("div",N,[Object(p["unref"])(h).pkList&&Object(p["unref"])(h).pkList.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",E,[Object(p["createElementVNode"])("p",B,Object(p["toDisplayString"])(t.$t("primaryKey")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(d),"data-source":Object(p["unref"])(h).pkList,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["unref"])(h).partitionColumnList&&Object(p["unref"])(h).partitionColumnList.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",z,[Object(p["createElementVNode"])("p",F,Object(p["toDisplayString"])(t.$t("partitionKey")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(g),"data-source":Object(p["unref"])(h).partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["createElementVNode"])("div",V,[Object(p["createElementVNode"])("p",H,Object(p["toDisplayString"])(t.$t("schema")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(d),"data-source":Object(p["unref"])(h).schema,pagination:!1},null,8,["columns","data-source"])])]),Object(p["createElementVNode"])("div",G,[Object(p["unref"])(h).changeMetrics&&Object(p["unref"])(h).changeMetrics.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",W,[Object(p["createElementVNode"])("p",U,Object(p["toDisplayString"])(t.$t("changeTableMetrics")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(v),"data-source":Object(p["unref"])(h).changeMetrics,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["createElementVNode"])("div",Y,[Object(p["createElementVNode"])("p",X,Object(p["toDisplayString"])(t.$t("baseTableMetrics")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(v),"data-source":Object(p["unref"])(h).baseMetrics,pagination:!1},null,8,["columns","data-source"])]),Object(p["createElementVNode"])("div",q,[Object(p["createElementVNode"])("p",Z,Object(p["toDisplayString"])(t.$t("properties")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(y),"data-source":Object(p["unref"])(h).properties,pagination:!1},null,8,["columns","data-source"])])]),Object(p["unref"])(h).detailLoading?(Object(p["openBlock"])(),Object(p["createBlock"])(r,{key:0})):Object(p["createCommentVNode"])("",!0)])}}}),$=(n("0300"),n("6b0d")),Q=n.n($);const J=Q()(K,[["__scopeId","data-v-1a704e23"]]);var tt=J,et=(n("159b"),n("b356")),nt={class:"table-partitons"},rt=Object(p["createTextVNode"])("All"),it=Object(p["defineComponent"])({props:{hasPartition:{type:Boolean}},setup:function(t){var e=t,n=Object(p["ref"])(!1),r=Object(A["b"])(),i=r.t,o=Object(p["shallowReactive"])([{title:i("partition"),dataIndex:"partition",ellipsis:!0},{title:i("fileCount"),dataIndex:"fileCount",width:120,ellipsis:!0},{title:i("size"),dataIndex:"size",width:120,ellipsis:!0},{title:i("lastCommitTime"),dataIndex:"lastCommitTime",width:200,ellipsis:!0}]),a=Object(p["shallowReactive"])([{title:i("file"),dataIndex:"file",ellipsis:!0},{title:i("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:i("size"),dataIndex:"size",width:120,ellipsis:!0},{title:i("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:i("commitId"),dataIndex:"commitId",width:200,ellipsis:!0},{title:i("path"),dataIndex:"path",ellipsis:!0,scopedSlots:{customRender:"path"}}]),s=Object(p["reactive"])([]),l=Object(p["reactive"])([]),u=Object(p["ref"])(""),c=Object(p["ref"])(0),h=Object(p["ref"])(!1),f=Object(p["reactive"])(Object(et["a"])()),d=Object(p["reactive"])(Object(et["a"])()),g=Object(D["d"])(),v=g.query,y=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},v));function m(){return b.apply(this,arguments)}function b(){return b=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,h.value=!0,s.length=0,t.next=5,Object(P["j"])(Object(k["a"])(Object(k["a"])({},y),{},{page:f.current,pageSize:f.pageSize}));case 5:e=t.sent,n=e.list,r=e.total,f.total=r,(n||[]).forEach((function(t){t.lastCommitTime=t.lastCommitTime?Object(L["b"])(t.lastCommitTime):"",s.push(t)})),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](0);case 13:return t.prev=13,h.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,11,13,16]])}))),b.apply(this,arguments)}function _(t){var r=t.current,i=void 0===r?1:r,o=t.pageSize,a=void 0===o?25:o;!n.value&&e.hasPartition?(f.current=i,a!==f.pageSize&&(f.current=1),f.pageSize=a):(d.current=i,a!==d.pageSize&&(d.current=1),d.pageSize=a),x()}function x(){e.hasPartition?n.value?w():m():w()}function w(){return O.apply(this,arguments)}function O(){return O=Object(I["a"])(regeneratorRuntime.mark((function t(){var n,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,l.length=0,h.value=!0,n=Object(k["a"])(Object(k["a"])({},y),{},{partition:e.hasPartition?encodeURIComponent(u.value):null,specId:c.value,page:d.current,pageSize:d.pageSize}),t.next=6,Object(P["i"])(n);case 6:r=t.sent,i=r.list,o=r.total,d.total=o,(i||[]).forEach((function(t){t.commitTime=t.commitTime?Object(L["b"])(t.commitTime):"",l.push(t)})),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:return t.prev=14,h.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,12,14,17]])}))),O.apply(this,arguments)}function S(t){u.value=t.partition,c.value=t.specId,n.value=!n.value,n.value&&(d.current=1,w())}return Object(p["onMounted"])((function(){n.value=!1,e.hasPartition?m():w()})),function(e,r){var i=Object(p["resolveComponent"])("a-button"),c=Object(p["resolveComponent"])("a-table"),g=Object(p["resolveComponent"])("a-breadcrumb-item"),v=Object(p["resolveComponent"])("a-breadcrumb"),y=Object(p["resolveComponent"])("a-tooltip");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",nt,[!n.value&&t.hasPartition?(Object(p["openBlock"])(),Object(p["createBlock"])(c,{key:0,rowKey:"partiton",columns:Object(p["unref"])(o),"data-source":Object(p["unref"])(s),pagination:Object(p["unref"])(f),onChange:_,loading:h.value},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["partition"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(i,{key:0,type:"link",onClick:function(t){return S(n)}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.partition),1)]})),_:2},1032,["onClick"])):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])):(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[t.hasPartition?(Object(p["openBlock"])(),Object(p["createBlock"])(v,{key:0,separator:">"},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(g,{onClick:S,class:"text-active"},{default:Object(p["withCtx"])((function(){return[rt]})),_:1}),Object(p["createVNode"])(g,null,{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])("".concat(e.$t("partition")," ").concat(u.value)),1)]})),_:1})]})),_:1})):Object(p["createCommentVNode"])("",!0),Object(p["createVNode"])(c,{rowKey:"file",columns:Object(p["unref"])(a),"data-source":Object(p["unref"])(l),pagination:Object(p["unref"])(d),onChange:_,loading:h.value},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["path"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(y,{key:0},{title:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.path),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.path),1)]})),_:2},1024)):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("bf1c");const ot=Q()(it,[["__scopeId","data-v-a19b17ea"]]);var at=ot,st=(n("3b18"),n("f64c")),lt=n("b311"),ut=n.n(lt),ct=t=>{const e=void 0===(null===t||void 0===t?void 0:t.appendToBody)||t.appendToBody;return{toClipboard(t,n){return new Promise((r,i)=>{const o=document.createElement("button"),a=new ut.a(o,{text:()=>t,action:()=>"copy",container:void 0!==n?n:document.body});a.on("success",t=>{a.destroy(),r(t)}),a.on("error",t=>{a.destroy(),i(t)}),e&&document.body.appendChild(o),o.click(),e&&document.body.removeChild(o)})}}},ht={class:"table-operations"},ft=["onClick"],dt=Object(p["defineComponent"])({setup:function(t){var e=ct(),n=e.toClipboard,r=Object(A["b"])(),i=r.t,o=Object(p["shallowReactive"])([{title:i("time"),dataIndex:"ts",width:"30%"},{title:i("operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]),a=Object(p["ref"])(!1),s=Object(p["ref"])(""),l=Object(p["reactive"])([]),u=Object(p["ref"])(!1),c=Object(p["reactive"])(Object(et["a"])()),h=Object(D["d"])(),f=h.query,d=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},f));function g(){return v.apply(this,arguments)}function v(){return v=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,u.value=!0,l.length=0,t.next=5,Object(P["g"])(Object(k["a"])(Object(k["a"])({},d),{},{page:c.current,pageSize:c.pageSize}));case 5:e=t.sent,n=e.total,r=e.list,c.total=n,(r||[]).forEach((function(t){t.ts=t.ts?Object(L["b"])(t.ts):"",l.push(t)})),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](0);case 13:return t.prev=13,u.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,11,13,16]])}))),v.apply(this,arguments)}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=t.current,n=void 0===e?1:e,r=t.pageSize,i=void 0===r?25:r;c.current=n,i!==c.pageSize&&(c.current=1),c.pageSize=i,g()}function m(t){a.value=!0,s.value=t.operation}function b(){a.value=!1}function _(){return x.apply(this,arguments)}function x(){return x=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n(s.value);case 3:st["a"].success(i("copySuccess")),b(),t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])}))),x.apply(this,arguments)}return Object(p["onMounted"])((function(){g()})),function(t,e){var n=Object(p["resolveComponent"])("a-table"),r=Object(p["resolveComponent"])("a-button"),i=Object(p["resolveComponent"])("a-modal");return Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],null,[Object(p["createElementVNode"])("div",ht,[Object(p["createVNode"])(n,{rowKey:"partiton",columns:Object(p["unref"])(o),"data-source":Object(p["unref"])(l),pagination:Object(p["unref"])(c),onChange:y,loading:u.value},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["operation"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",{key:0,class:"text-active g-max-line-3",onClick:function(t){return m(n)}},Object(p["toDisplayString"])(n.operation),9,ft)):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])]),Object(p["createVNode"])(i,{visible:a.value,width:560,title:"".concat(t.$t("operationDetails")),onCancel:b,class:"operation-wrap"},{footer:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{type:"primary",onClick:_},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("copy")),1)]})),_:1})]})),default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(s.value)+" ",1)]})),_:1},8,["visible","title"])],64)}}});n("da03b");const pt=dt;var gt=pt;function vt(t,e,n,r,i,o){var a=Object(p["resolveComponent"])("a-spin");return Object(p["openBlock"])(),Object(p["createBlock"])(a,{spinning:t.loading,class:"echarts-loading"},{default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("div",{ref:"echart",style:Object(p["normalizeStyle"])({width:t.width,height:t.height}),class:"timeline-echarts"},null,4)]})),_:1},8,["spinning"])} -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var yt=function(t,e){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},yt(t,e)};function mt(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}yt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var bt=n("22d1"),_t=n("6d8b"),xt=function(t,e){return xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},xt(t,e)};function wt(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}xt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function Ot(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function St(t,e){return t[0]=e[0],t[1]=e[1],t}function Mt(t){return[t[0],t[1]]}function jt(t,e,n){return t[0]=e,t[1]=n,t}function Tt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Ct(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function kt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function It(t){return Math.sqrt(Dt(t))}var At=It;function Dt(t){return t[0]*t[0]+t[1]*t[1]}var Pt=Dt;function Lt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Rt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Nt(t,e){return t[0]*e[0]+t[1]*e[1]}function Et(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Bt(t,e){var n=It(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function zt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Ft=zt;function Vt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ht=Vt;function Gt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Wt(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Ut(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Yt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Xt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var qt=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Zt=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new qt(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new qt(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new qt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new qt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new qt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new qt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Kt=Zt,$t=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function se(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,d=c.top;a.push(f,d),l=l&&o&&f===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?ee(s,a):ee(a,s))}function le(t){return"CANVAS"===t.nodeName.toUpperCase()}var ue=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ce=[],he=bt["a"].browser.firefox&&+bt["a"].browser.version.split(".")[0]<39;function fe(t,e,n,r){return n=n||{},r?de(t,e,n):he&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):de(t,e,n),n}function de(t,e,n){if(bt["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(le(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(oe(ce,t,r,i))return n.zrX=ce[0],void(n.zrY=ce[1])}n.zrX=n.zrY=0}function pe(t){return t||window.event}function ge(t,e,n){if(e=pe(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&fe(t,o,e,n)}else{fe(t,e,e,n);var a=ve(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&ue.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function ve(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function ye(t,e,n,r){t.addEventListener(e,n,r)}function me(t,e,n,r){t.removeEventListener(e,n,r)}var be=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var _e=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&r&&r.length>1){var o=xe(r)/xe(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=we(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Se="silent";function Me(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:je}}function je(){be(this.event)}var Te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return wt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Qt),Ce=function(){function t(t,e){this.x=t,this.y=e}return t}(),ke=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ie=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hovered=new Ce(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new Te,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Kt(o),o}return wt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(_t["each"](ke,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=De(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Ce(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ce(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Me(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var r=this.storage.getDisplayList(),i=new Ce(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=Ae(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),a!==Se)){i.target=r[o];break}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new _e);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Ce;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(Qt);function Ae(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||Se}return!1}function De(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}_t["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ie.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=De(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ft(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Pe=Ie,Le=32,Re=7;function Ne(t){var e=0;while(t>=Le)e|=1&t,t>>=1;return t+e}function Ee(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i=0)i++;return i-e}function Be(t,e,n){n--;while(e>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Fe(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Ve(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function He(t,e){var n,r,i=Re,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,r[a]=e,a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}}function c(){while(a>1){var t=a-2;t>0&&r[t-1]=Re||d>=Re);if(p)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l=0;l--)t[d+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=s[c--],1===--a){y=!0;break}if(v=a-Fe(t[u],s,0,a,a-1,e),0!==v){for(h-=v,c-=v,a-=v,d=h+1,f=c+1,l=0;l=Re||v>=Re);if(y)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===a){for(h-=r,u-=r,d=h+1,f=u+1,l=r-1;l>=0;l--)t[d+l]=t[f+l];t[h]=s[c]}else{if(0===a)throw new Error;for(f=h-(a-1),l=0;l=0;l--)t[d+l]=t[f+l];t[h]=s[c]}else for(f=h-(a-1),l=0;ls&&(l=s),ze(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var We=1,Ue=2,Ye=4,Xe=!1;function qe(){Xe||(Xe=!0)}function Ze(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ke,$e=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ze}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(qe(),u.z=0),isNaN(u.z2)&&(qe(),u.z2=0),isNaN(u.zlevel)&&(qe(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Qe=$e;Ke=bt["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Je=Ke,tn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-tn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*tn.bounceIn(2*t):.5*tn.bounceOut(2*t-1)+.5}},en=tn,nn=Math.pow,rn=Math.sqrt,on=1e-8,an=1e-4,sn=rn(3),ln=1/3,un=Ot(),cn=Ot(),hn=Ot();function fn(t){return t>-on&&ton||t<-on}function pn(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function gn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function vn(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,d=0;if(fn(c)&&fn(h))if(fn(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[d++]=p)}else{var g=h*h-4*c*f;if(fn(g)){var v=h/c,y=(p=-s/a+v,-v/2);p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y)}else if(g>0){var m=rn(g),b=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);b=b<0?-nn(-b,ln):nn(b,ln),_=_<0?-nn(-_,ln):nn(_,ln);p=(-s-(b+_))/(3*a);p>=0&&p<=1&&(o[d++]=p)}else{var x=(2*c*s-3*a*h)/(2*rn(c*c*c)),w=Math.acos(x)/3,O=rn(c),S=Math.cos(w),M=(p=(-s-2*O*S)/(3*a),y=(-s+O*(S+sn*Math.sin(w)))/(3*a),(-s+O*(S-sn*Math.sin(w)))/(3*a));p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y),M>=0&&M<=1&&(o[d++]=M)}}return d}function yn(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(fn(a)){if(dn(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(fn(c))i[0]=-o/(2*a);else if(c>0){var h=rn(c),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function mn(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function bn(t,e,n,r,i,o,a,s,l,u,c){var h,f,d,p,g,v=.005,y=1/0;un[0]=l,un[1]=u;for(var m=0;m<1;m+=.05)cn[0]=pn(t,n,i,a,m),cn[1]=pn(e,r,o,s,m),p=Ht(un,cn),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(fn(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=rn(c),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Sn(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Mn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function jn(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;un[0]=a,un[1]=s;for(var f=0;f<1;f+=.05){cn[0]=xn(t,n,i,f),cn[1]=xn(e,r,o,f);var d=Ht(un,cn);d=0&&d=1?1:vn(0,r,o,1,t,s)&&pn(0,i,a,1,s[0])}}}var In=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||_t["noop"],this.ondestroy=t.ondestroy||_t["noop"],this.onrestart=t.onrestart||_t["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(_t["isFunction"])(t)?t:en[t]||kn(t)},t}(),An=In,Dn=n("41ef"),Pn=n("7a29"),Ln=Array.prototype.slice;function Rn(t,e,n){return(e-t)*n+t}function Nn(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=$n,s=e;if(Object(_t["isArrayLike"])(e)){var l=Wn(e);a=l,(1===l&&!Object(_t["isNumber"])(e[0])||2===l&&!Object(_t["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(_t["isNumber"])(e)&&!Object(_t["eqNaN"])(e))a=Un;else if(Object(_t["isString"])(e))if(isNaN(+e)){var u=Dn["parse"](e);u&&(s=u,a=qn)}else a=Un;else if(Object(_t["isGradientObject"])(e)){var c=Object(_t["extend"])({},s);c.colorStops=Object(_t["map"])(e.colorStops,(function(t){return{offset:t.offset,color:Dn["parse"](t.color)}})),Object(Pn["a"])(e)?a=Zn:Object(Pn["b"])(e)&&(a=Kn),s=c}0===i?this.valType=a:a===this.valType&&a!==$n||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(_t["isFunction"])(n)?n:en[n]||kn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=Jn(r),l=Qn(r),u=0;u=0;n--)if(l[n].percent<=e)break;n=d(n,u-2)}else{for(n=f;ne)break;n=d(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:d((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?tr:t[c];if(!Jn(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=v<1?r.rawValue:i.rawValue;else if(Jn(s))s===Yn?Nn(y,r[a],i[a],v):En(y,r[a],i[a],v);else if(Qn(s)){var m=r[a],b=i[a],_=s===Zn;t[c]={type:_?"linear":"radial",x:Rn(m.x,b.x,v),y:Rn(m.y,b.y,v),colorStops:Object(_t["map"])(m.colorStops,(function(t,e){var n=b.colorStops[e];return{offset:Rn(t.offset,n.offset,v),color:Gn(Nn([],t.color,n.color,v))}})),global:b.global},_?(t[c].x2=Rn(m.x2,b.x2,v),t[c].y2=Rn(m.y2,b.y2,v)):t[c].r=Rn(m.r,b.r,v)}else if(h)Nn(y,r[a],i[a],v),o||(t[c]=Gn(y));else{var x=Rn(r[a],i[a],v);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===Un?t[n]=t[n]+r:e===qn?(Dn["parse"](t[n],tr),Bn(tr,tr,r,1),t[n]=Gn(tr)):e===Yn?Bn(t[n],t[n],r,1):e===Xn&&zn(t[n],t[n],r,1)},t}(),nr=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(_t["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(_t["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,Hn(l),r),this._trackKeys.push(a)}s.addKeyframe(t,Hn(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),rr=nr;function ir(){return(new Date).getTime()}var or=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return wt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=ir()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Je(e),!t._paused&&t.update())}this._running=!0,Je(e)},e.prototype.start=function(){this._running||(this._time=ir(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ir(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ir()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new rr(t,e.loop);return this.addAnimator(n),n},e}(Qt),ar=or,sr=300,lr=bt["a"].domSupported,ur=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=_t["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),cr={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},hr=!1;function fr(t){var e=t.pointerType;return"pen"===e||"touch"===e}function dr(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function pr(t){t&&(t.zrByTouch=!0)}function gr(t,e){return ge(t.dom,new yr(t,e),!0)}function vr(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var yr=function(){function t(t,e){this.stopPropagation=_t["noop"],this.stopImmediatePropagation=_t["noop"],this.preventDefault=_t["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),mr={mousedown:function(t){t=ge(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ge(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ge(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ge(this.dom,t);var e=t.toElement||t.relatedTarget;vr(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){hr=!0,t=ge(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){hr||(t=ge(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ge(this.dom,t),pr(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),mr.mousemove.call(this,t),mr.mousedown.call(this,t)},touchmove:function(t){t=ge(this.dom,t),pr(t),this.handler.processGesture(t,"change"),mr.mousemove.call(this,t)},touchend:function(t){t=ge(this.dom,t),pr(t),this.handler.processGesture(t,"end"),mr.mouseup.call(this,t),+new Date-+this.__lastTouchMomentGr||t<-Gr}var Ur=[],Yr=[],Xr=Pr(),qr=Math.abs,Zr=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Wr(this.rotation)||Wr(this.x)||Wr(this.y)||Wr(this.scaleX-1)||Wr(this.scaleY-1)||Wr(this.skewX)||Wr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Pr(),e?this.getLocalTransform(n):Hr(n),t&&(e?Nr(n,t,n):Rr(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Hr(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Ur);var n=Ur[0]<0?-1:1,r=Ur[1]<0?-1:1,i=((Ur[0]-n)*e+n)/Ur[0]||0,o=((Ur[1]-r)*e+r)/Ur[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pr(),Fr(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Nr(Yr,t.invTransform,e),e=Yr);var n=this.originX,r=this.originY;(n||r)&&(Xr[4]=n,Xr[5]=r,Nr(Yr,e,Xr),Yr[4]-=n,Yr[5]-=r,e=Yr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&Ut(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&Ut(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&qr(t[0]-1)>1e-10&&qr(t[3]-1)>1e-10?Math.sqrt(qr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){$r(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var d=n+a,p=r+s;e[4]=-d*i-h*p*o,e[5]=-p*o-f*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&Br(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Kr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $r(t,e){for(var n=0;np&&(p=b,gp&&(p=_,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}ri.x=oi.x=n.x,ri.y=ai.y=n.y,ii.x=ai.x=n.x+n.width,ii.y=oi.y=n.y+n.height,ri.transform(r),ai.transform(r),ii.transform(r),oi.transform(r),e.x=ei(ri.x,ii.x,oi.x,ai.x),e.y=ei(ri.y,ii.y,oi.y,ai.y);var l=ni(ri.x,ii.x,oi.x,ai.x),u=ni(ri.y,ii.y,oi.y,ai.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),ci=ui,hi=n("d51b"),fi=n("726e"),di={};function pi(t,e){e=e||fi["a"];var n=di[e];n||(n=di[e]=new hi["a"](500));var r=n.get(t);return null==r&&(r=fi["c"].measureText(t,e).width,n.put(t,r)),r}function gi(t,e,n,r){var i=pi(t,e),o=bi(e),a=yi(0,i,n),s=mi(0,o,r),l=new ci(a,s,i,o);return l}function vi(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return gi(i[0],e,n,r);for(var a=new ci(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function xi(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=_i(r[0],n.width),u+=_i(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var wi="__zr_normal__",Oi=Kr.concat(["ignore"]),Si=Object(_t["reduce"])(Kr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Mi={},ji=new ci(0,0,0,0),Ti=function(){function t(t){this.id=Object(_t["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=ji;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mi,n,u):xi(Mi,n,u),i.x=Mi.x,i.y=Mi.y,o=Mi.align,a=Mi.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,f=void 0;"center"===c?(h=.5*u.width,f=.5*u.height):(h=_i(c[0],u.width),f=_i(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;p&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=We,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ar:Ir},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Dn["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Dn["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(_t["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(_t["isObject"])(t))for(var n=t,r=Object(_t["keys"])(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(wi,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===wi,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(_t["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~We),l}Object(_t["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~We)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(_t["indexOf"])(r,t),o=Object(_t["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f0||i.force&&!a.length){var S=void 0,M=void 0,j=void 0;if(s){M={},f&&(S={});for(_=0;_=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=_t["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=_t["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Ji(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return _t["isString"](t)?$i(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function to(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ki),t=(+t).toFixed(e),n?t:+t}function eo(t){return t.sort((function(t,e){return t-e})),t}function no(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ro(t)}function ro(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function io(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function oo(t,e,n){if(!t[e])return 0;var r=_t["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var i=Math.pow(10,n),o=_t["map"](t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=_t["map"](o,(function(t){return Math.floor(t)})),l=_t["reduce"](s,(function(t,e){return t+e}),0),u=_t["map"](o,(function(t,e){return t-s[e]}));while(lc&&(c=u[f],h=f);++s[h],u[h]=0,++l}return s[e]/i}function ao(t,e){var n=Math.max(no(t),no(e)),r=t+e;return n>Ki?r:to(r,n)}var so=9007199254740991;function lo(t){var e=2*Math.PI;return(t%e+e)%e}function uo(t){return t>-Zi&&t=10&&e++,e}function go(t,e){var n,r=po(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function vo(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function yo(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r=0||i&&_t["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var ya=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ma=va(ya),ba=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ma(this,t,e)},t}(),_a=new hi["a"](50);function xa(t){if("string"===typeof t){var e=_a.get(t);return e&&e.image}return t}function wa(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=_a.get(t),a={hostEl:n,cb:r,cbPayload:i};if(o)e=o.image,!Sa(e)&&o.pending.push(a);else{var s=fi["c"].loadImage(t,Oa,Oa);s.__zrImageSrc=t,_a.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function Oa(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=pi(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Ca(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=pi(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?ka(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=pi(t,r)}return""===t&&(t=e.placeholder),t}function ka(t,e,n,r){for(var i=0,o=0,a=t.length;od&&c){var p=Math.floor(d/l);n=n.slice(0,p)}if(t&&a&&null!=h)for(var g=Ta(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vl&&Ra(n,t.substring(l,u),e,s),Ra(n,r[2],e,s,r[1]),l=Ma.lastIndex}lo){x>0?(m.tokens=m.tokens.slice(0,x),v(m,_,b),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var C=O.width,k=null==C||"auto"===C;if("string"===typeof C&&"%"===C.charAt(C.length-1))w.percentWidth=C,c.push(w),w.contentWidth=pi(w.text,j);else{if(k){var I=O.backgroundColor,A=I&&I.image;A&&(A=xa(A),Sa(A)&&(w.width=Math.max(w.width,A.width*T/A.height)))}var D=p&&null!=i?i-_:null;null!=D&&D0&&p+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=p}else{var g=za(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=33&&e<=383}var Ea=Object(_t["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Ba(t){return!Na(t)||!!Ea[t]}function za(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:i+c+d>n)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=d)):p?(o.push(l),a.push(u),l=f,u=d):(o.push(f),a.push(d)):(c+=d,p?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Fa="__zr_style_"+Math.round(10*Math.random()),Va={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ha={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Va[Fa]=!0;var Ga=["z","z2","invisible"],Wa=["invisible"],Ua=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype._init=function(e){for(var n=Object(_t["keys"])(e),r=0;r1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(es[0]=Ja(i)*n+t,es[1]=Qa(i)*r+e,ns[0]=Ja(o)*n+t,ns[1]=Qa(o)*r+e,u(s,es,ns),c(l,es,ns),i%=ts,i<0&&(i+=ts),o%=ts,o<0&&(o+=ts),i>o&&!a?o+=ts:ii&&(rs[0]=Ja(d)*n+t,rs[1]=Qa(d)*r+e,u(s,rs,s),c(l,rs,l))}var hs={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fs=[],ds=[],ps=[],gs=[],vs=[],ys=[],ms=Math.min,bs=Math.max,_s=Math.cos,xs=Math.sin,ws=Math.abs,Os=Math.PI,Ss=2*Os,Ms="undefined"!==typeof Float32Array,js=[];function Ts(t){var e=Math.round(t/Os*1e8)/1e8;return e%2*Os}function Cs(t,e){var n=Ts(t[0]);n<0&&(n+=Ss);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ss?i=n+Ss:e&&n-i>=Ss?i=n-Ss:!e&&n>i?i=n+(Ss-Ts(n-i)):e&&n0&&(this._ux=ws(n/Cr/t)||0,this._uy=ws(n/Cr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(hs.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ws(t-this._xi),r=ws(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(hs.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(hs.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(hs.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),js[0]=r,js[1]=i,Cs(js,o),r=js[0],i=js[1];var a=i-r;return this.addData(hs.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=_s(i)*n+t,this._yi=xs(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(hs.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(hs.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ms||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){ps[0]=ps[1]=vs[0]=vs[1]=Number.MAX_VALUE,gs[0]=gs[1]=ys[0]=ys[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||ws(m)>r||h===e-1)&&(p=Math.sqrt(y*y+m*m),i=g,o=v);break;case hs.C:var b=t[h++],_=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];p=_n(i,o,b,_,g,v,x,w,10),i=x,o=w;break;case hs.Q:b=t[h++],_=t[h++],g=t[h++],v=t[h++];p=Tn(i,o,b,_,g,v,10),i=g,o=v;break;case hs.A:var O=t[h++],S=t[h++],M=t[h++],j=t[h++],T=t[h++],C=t[h++],k=C+T;h+=1;t[h++];d&&(a=_s(T)*M+O,s=xs(T)*j+S),p=bs(M,j)*ms(Ss,Math.abs(C)),i=_s(k)*M+O,o=xs(k)*j+S;break;case hs.R:a=i=t[h++],s=o=t[h++];var I=t[h++],A=t[h++];p=2*I+2*A;break;case hs.Z:y=a-i,m=s-o;p=Math.sqrt(y*y+m*m),i=a,o=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,d=this.data,p=this._ux,g=this._uy,v=this._len,y=e<1,m=0,b=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x0&&(t.lineTo(h,f),_=0),w){case hs.M:n=i=d[x++],r=o=d[x++],t.moveTo(i,o);break;case hs.L:a=d[x++],s=d[x++];var S=ws(a-i),M=ws(s-o);if(S>p||M>g){if(y){var j=l[b++];if(m+j>c){var T=(c-m)/j;t.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break t}m+=j}t.lineTo(a,s),i=a,o=s,_=0}else{var C=S*S+M*M;C>_&&(h=a,f=s,_=C)}break;case hs.C:var k=d[x++],I=d[x++],A=d[x++],D=d[x++],P=d[x++],L=d[x++];if(y){j=l[b++];if(m+j>c){T=(c-m)/j;mn(i,k,A,P,T,fs),mn(o,I,D,L,T,ds),t.bezierCurveTo(fs[1],ds[1],fs[2],ds[2],fs[3],ds[3]);break t}m+=j}t.bezierCurveTo(k,I,A,D,P,L),i=P,o=L;break;case hs.Q:k=d[x++],I=d[x++],A=d[x++],D=d[x++];if(y){j=l[b++];if(m+j>c){T=(c-m)/j;Mn(i,k,A,T,fs),Mn(o,I,D,T,ds),t.quadraticCurveTo(fs[1],ds[1],fs[2],ds[2]);break t}m+=j}t.quadraticCurveTo(k,I,A,D),i=A,o=D;break;case hs.A:var R=d[x++],N=d[x++],E=d[x++],B=d[x++],z=d[x++],F=d[x++],V=d[x++],H=!d[x++],G=E>B?E:B,W=ws(E-B)>.001,U=z+F,Y=!1;if(y){j=l[b++];m+j>c&&(U=z+F*(c-m)/j,Y=!0),m+=j}if(W&&t.ellipse?t.ellipse(R,N,E,B,V,z,U,H):t.arc(R,N,G,z,U,H),Y)break t;O&&(n=_s(z)*E+R,r=xs(z)*B+N),i=_s(U)*E+R,o=xs(U)*B+N;break;case hs.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var X=d[x++],q=d[x++];if(y){j=l[b++];if(m+j>c){var Z=c-m;t.moveTo(a,s),t.lineTo(a+ms(Z,X),s),Z-=X,Z>0&&t.lineTo(a+X,s+ms(Z,q)),Z-=q,Z>0&&t.lineTo(a+bs(X-Z,0),s+q),Z-=X,Z>0&&t.lineTo(a,s+bs(q-Z,0));break t}m+=j}t.rect(a,s,X,q);break;case hs.Z:if(y){j=l[b++];if(m+j>c){T=(c-m)/j;t.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break t}m+=j}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=hs,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Is=ks;function As(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+h&&c>r+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>i+h&&u>a+h||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Ns);var f=Math.atan2(l,s);return f<0&&(f+=Ns),f>=r&&f<=i||f+Ns>=r&&f+Ns<=i}function Bs(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var zs=Is.CMD,Fs=2*Math.PI,Vs=1e-4;function Hs(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||u1&&Us(),d=pn(e,r,o,s,Ws[0]),f>1&&(p=pn(e,r,o,s,Ws[1]))),2===f?ve&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=xn(e,r,o,u),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Gs[0]=-l,Gs[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Fs-1e-4){r=0,i=Fs;var c=o?1:-1;return a>=Gs[0]+t&&a<=Gs[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Fs,i+=Fs);for(var f=0,d=0;d<2;d++){var p=Gs[d];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=Fs+g),(g>=r&&g<=i||g+Fs>=r&&g+Fs<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function Zs(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,f=0,d=0,p=0;p1&&(n||(u+=Bs(c,h,f,d,r,i))),v&&(c=s[p],h=s[p+1],f=c,d=h),g){case zs.M:f=s[p++],d=s[p++],c=f,h=d;break;case zs.L:if(n){if(As(c,h,s[p],s[p+1],e,r,i))return!0}else u+=Bs(c,h,s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case zs.C:if(n){if(Ds(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Ys(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case zs.Q:if(n){if(Ps(c,h,s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Xs(c,h,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case zs.A:var y=s[p++],m=s[p++],b=s[p++],_=s[p++],x=s[p++],w=s[p++];p+=1;var O=!!(1-s[p++]);o=Math.cos(x)*b+y,a=Math.sin(x)*_+m,v?(f=o,d=a):u+=Bs(c,h,o,a,r,i);var S=(r-y)*_/b+y;if(n){if(Es(y,m,_,x,x+w,O,e,S,i))return!0}else u+=qs(y,m,_,x,x+w,O,S,i);c=Math.cos(x+w)*b+y,h=Math.sin(x+w)*_+m;break;case zs.R:f=c=s[p++],d=h=s[p++];var M=s[p++],j=s[p++];if(o=f+M,a=d+j,n){if(As(f,d,o,d,e,r,i)||As(o,d,o,a,e,r,i)||As(o,a,f,a,e,r,i)||As(f,a,f,d,e,r,i))return!0}else u+=Bs(o,d,o,a,r,i),u+=Bs(f,a,f,d,r,i);break;case zs.Z:if(n){if(As(c,h,f,d,e,r,i))return!0}else u+=Bs(c,h,f,d,r,i);c=f,h=d;break}}return n||Hs(h,d)||(u+=Bs(c,h,f,d,r,i)||0),0!==u}function Ks(t,e,n){return Zs(t,0,!1,e,n)}function $s(t,e,n,r){return Zs(t,e,!0,n,r)}var Qs=Object(_t["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Va),Js={style:Object(_t["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ha.style)},tl=Kr.concat(["invisible","culling","z","z2","zlevel","parent"]),el=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Ir:e>.2?Dr:Ar}if(t)return Ar}return Ir},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(_t["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(Dn["lum"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&Ye)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),$s(o,a/s,t,e)))return!0}if(this.hasFill())return Ks(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ye,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(_t["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ye)},e.prototype.createStyle=function(t){return Object(_t["createObject"])(Qs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(_t["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(_t["extend"])({},r.shape),Object(_t["extend"])(s,n.shape)):(s=Object(_t["extend"])({},i?this.shape:r.shape),Object(_t["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(_t["extend"])({},this.shape);for(var u={},c=Object(_t["keys"])(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(_t["createObject"])(rl,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=vi(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Za);il.prototype.type="tspan";var ol=il,al=Object(_t["defaults"])({x:0,y:0},Va),sl={style:Object(_t["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ha.style)};function ll(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var ul=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wt(e,t),e.prototype.createStyle=function(t){return Object(_t["createObject"])(al,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=ll(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return sl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ci(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Za);ul.prototype.type="image";var cl=ul;function hl(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var fl=Math.round;function dl(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(fl(2*r)===fl(2*i)&&(t.x1=t.x2=gl(r,s,!0)),fl(2*o)===fl(2*a)&&(t.y1=t.y2=gl(o,s,!0)),t):t}}function pl(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=gl(r,s,!0),t.y=gl(i,s,!0),t.width=Math.max(gl(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(gl(i+a,s,!1)-t.y,0===a?0:1),t):t}}function gl(t,e,n){if(!e)return t;var r=fl(2*t);return(r+fl(e))%2===0?r/2:(r+(n?1:-1))/2}var vl=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),yl={},ml=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype.getDefaultShape=function(){return new vl},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=pl(yl,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?hl(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(nl);ml.prototype.type="rect";var bl=ml,_l={fill:"#000"},xl=2,wl={style:Object(_t["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ha.style)},Ol=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=_l,n.attr(e),n}return wt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,j=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=i.calculatedLineHeight,C=0;C=0&&(C=_[T],"right"===C.align))this._placeToken(C,t,w,g,j,"right",y),O-=C.width,j-=C.width,T--;M+=(r-(M-p)-(v-j)-O)/2;while(S<=T)C=_[S],this._placeToken(C,t,w,g,M+C.width/2,"center",y),M+=C.width,S++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&Nl(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,f=t.textPadding;f&&(i=Ll(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var d=this._getOrCreateChild(ol),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,v=!1,y=0,m=Pl("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),b=Dl("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=xl,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=i,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||fi["a"],p.opacity=Object(_t["retrieve3"])(s.opacity,e.opacity,1),Cl(p,s),b&&(p.lineWidth=Object(_t["retrieve3"])(s.lineWidth,e.lineWidth,y),p.lineDash=Object(_t["retrieve2"])(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=b),m&&(p.fill=m);var x=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new ci(yi(p.x,x,p.textAlign),mi(p.y,w,p.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,d=t.borderRadius,p=this;if(f||t.lineHeight||u&&c){a=this._getOrCreateChild(bl),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=d,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=Object(_t["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(cl),s.onload=function(){p.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=Object(_t["retrieve2"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(_t["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return kl(t)&&(e=[t.fontStyle,t.fontWeight,Tl(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(_t["trim"])(e)||t.textFont||t.font},e}(Za),Sl={left:!0,right:1,center:1},Ml={top:1,bottom:1,middle:1},jl=["fontStyle","fontWeight","fontSize","fontFamily"];function Tl(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?fi["b"]+"px":t+"px":t}function Cl(t,e){for(var n=0;n=0,o=!1;if(t instanceof nl){var a=Hl(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(nu(s)||nu(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(_t["extend"])({},r),u=Object(_t["extend"])({},u),u.fill=s):!nu(u.fill)&&nu(s)?(o=!0,r=Object(_t["extend"])({},r),u=Object(_t["extend"])({},u),u.fill=iu(s)):!nu(u.stroke)&&nu(l)&&(o||(r=Object(_t["extend"])({},r),u=Object(_t["extend"])({},u)),u.stroke=iu(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(_t["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:Zl)}return r}function yu(t,e,n){if(n&&null==n.z2){n=Object(_t["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:Kl)}return n}function mu(t,e,n){var r=Object(_t["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:gu(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(_t["extend"])({},n),a=Object(_t["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function bu(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return vu(this,t,e,n);if("blur"===t)return mu(this,t,n);if("select"===t)return yu(this,t,n)}return n}function _u(t){t.stateProxy=bu;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=bu),n&&(n.stateProxy=bu)}function xu(t,e){!ku(t,e)&&!t.__highByOuter&&du(t,au)}function wu(t,e){!ku(t,e)&&!t.__highByOuter&&du(t,su)}function Ou(t,e){t.__highByOuter|=1<<(e||0),du(t,au)}function Su(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&du(t,su)}function Mu(t){du(t,lu)}function ju(t){du(t,uu)}function Tu(t){du(t,cu)}function Cu(t){du(t,hu)}function ku(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Iu(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Gl(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){uu(t)})),a&&n.push(i)),o.isBlured=!1})),Object(_t["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Au(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Fu(t,e,n){Xu(t,!0),du(t,_u),Gu(t,e,n)}function Vu(t){Xu(t,!1)}function Hu(t,e,n,r){r?Vu(t):Fu(t,e,n)}function Gu(t,e,n){var r=Bl(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Wu=["emphasis","blur","select"],Uu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yu(t,e,n,r){n=n||"itemStyle";for(var i=0;i0){var h=c.duration,f=c.delay,d=c.easing,p={duration:h,delay:f||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function nc(t,e,n,r,i,o){ec("update",t,e,n,r,i,o)}function rc(t,e,n,r,i,o){ec("enter",t,e,n,r,i,o)}function ic(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};_t["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),_t["each"](c.successor,h?d:f)}_t["each"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function d(t){l[t]=!0,f(t)}}}function Wc(t,e){return _t["merge"](_t["merge"]({},t,!0),e,!0)}var Uc={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Yc={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Xc="ZH",qc="EN",Zc=qc,Kc={},$c={},Qc=bt["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Xc)>-1?Xc:Zc}():Zc;function Jc(t,e){t=t.toUpperCase(),$c[t]=new zc(e),Kc[t]=e}function th(t){if(Object(_t["isString"])(t)){var e=Kc[t.toUpperCase()]||{};return t===Xc||t===qc?Object(_t["clone"])(e):Object(_t["merge"])(Object(_t["clone"])(e),Object(_t["clone"])(Kc[Zc]),!1)}return Object(_t["merge"])(Object(_t["clone"])(t),Object(_t["clone"])(Kc[Zc]),!1)}function eh(t){return $c[t]}function nh(){return $c[Zc]}Jc(qc,Uc),Jc(Xc,Yc);var rh=1e3,ih=60*rh,oh=60*ih,ah=24*oh,sh=365*ah,lh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},uh="{yyyy}-{MM}-{dd}",ch={year:"{yyyy}",month:"{yyyy}-{MM}",day:uh,hour:uh+" "+lh.hour,minute:uh+" "+lh.minute,second:uh+" "+lh.second,millisecond:lh.none},hh=["year","month","day","hour","minute","second","millisecond"],fh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function dh(t,e){return t+="","0000".substr(0,e-t.length)+t}function ph(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function gh(t){return t===ph(t)}function vh(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function yh(t,e,n,r){var i=ho(t),o=i[xh(n)](),a=i[wh(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Oh(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Sh(n)](),h=(c-1)%12+1,f=i[Mh(n)](),d=i[jh(n)](),p=i[Th(n)](),g=r instanceof zc?r:eh(r||Qc)||nh(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),b=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,dh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,dh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,dh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,dh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,dh(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,dh(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,dh(p,3)).replace(/{S}/g,p+"")}function mh(t,e,n,r,i){var o=null;if(_t["isString"](n))o=n;else if(_t["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=_t["extend"]({},lh);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(_t["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return yh(new Date(t.value),o,i,r)}function bh(t,e){var n=ho(t),r=n[wh(e)]()+1,i=n[Oh(e)](),o=n[Sh(e)](),a=n[Mh(e)](),s=n[jh(e)](),l=n[Th(e)](),u=0===l,c=u&&0===s,h=c&&0===a,f=h&&0===o,d=f&&1===i,p=d&&1===r;return p?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function _h(t,e,n){var r=_t["isNumber"](t)?ho(t):t;switch(e=e||bh(t,n),e){case"year":return r[xh(n)]();case"half-year":return r[wh(n)]()>=6?1:0;case"quarter":return Math.floor((r[wh(n)]()+1)/4);case"month":return r[wh(n)]();case"day":return r[Oh(n)]();case"half-day":return r[Sh(n)]()/24;case"hour":return r[Sh(n)]();case"minute":return r[Mh(n)]();case"second":return r[jh(n)]();case"millisecond":return r[Th(n)]()}}function xh(t){return t?"getUTCFullYear":"getFullYear"}function wh(t){return t?"getUTCMonth":"getMonth"}function Oh(t){return t?"getUTCDate":"getDate"}function Sh(t){return t?"getUTCHours":"getHours"}function Mh(t){return t?"getUTCMinutes":"getMinutes"}function jh(t){return t?"getUTCSeconds":"getSeconds"}function Th(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ch(t){return t?"setUTCFullYear":"setFullYear"}function kh(t){return t?"setUTCMonth":"setMonth"}function Ih(t){return t?"setUTCDate":"setDate"}function Ah(t){return t?"setUTCHours":"setHours"}function Dh(t){return t?"setUTCMinutes":"setMinutes"}function Ph(t){return t?"setUTCSeconds":"setSeconds"}function Lh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Rh(t){if(!bo(t))return _t["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Nh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Eh=_t["normalizeCssArray"],Bh=/([&<>"'])/g,zh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Fh(t){return null==t?"":(t+"").replace(Bh,(function(t,e){return zh[e]}))}function Vh(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&_t["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?ho(t):t;if(!isNaN(+l))return yh(l,r,n);if(s)return"-"}if("ordinal"===e)return _t["isStringSafe"](t)?i(t):_t["isNumber"](t)&&o(t)?t+"":"-";var u=mo(t);return o(u)?Rh(u):_t["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Hh=["a","b","c","d","e","f","g"],Gh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Wh(t,e,n){_t["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Yh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=ho(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",dh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",dh(s,2)).replace("d",s).replace("hh",dh(l,2)).replace("h",l).replace("mm",dh(u,2)).replace("m",u).replace("ss",dh(c,2)).replace("s",c).replace("SSS",dh(h,3)),t}function Xh(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function qh(t,e){return e=e||"transparent",_t["isString"](t)?t:_t["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Zh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Kh=_t["each"],$h=["left","right","top","bottom","width","height"],Qh=[["width","left","right"],["height","top","bottom"]];function Jh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,f=l.getBoundingRect(),d=e.childAt(u+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=f.width+(p?-p.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var tf=Jh;_t["curry"](Jh,"vertical"),_t["curry"](Jh,"horizontal");function ef(t,e,n){n=Eh(n||0);var r=e.width,i=e.height,o=Ji(t.left,r),a=Ji(t.top,i),s=Ji(t.right,r),l=Ji(t.bottom,i),u=Ji(t.width,r),c=Ji(t.height,i),h=n[2]+n[0],f=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var p=new ci(o+n[3],a+n[0],u,c);return p.margin=n,p}function nf(t){var e=t.layoutMode||t.constructor.layoutMode;return _t["isObject"](e)?e:e?{type:e}:null}function rf(t,e,n){var r=n&&n.ignoreSize;!_t["isArray"](r)&&(r=[r,r]);var i=a(Qh[0],0),o=a(Qh[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(Kh(n,(function(e){u[e]=t[e]})),Kh(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var f=0;f=0;a--)o=_t["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return $o(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(zc);function uf(t){var e=[];return _t["each"](lf.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=_t["map"](e,(function(t){return oa(t).main})),"dataset"!==t&&_t["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}ca(lf,zc),ga(lf),Hc(lf),Gc(lf,uf);var cf=lf,hf="";"undefined"!==typeof navigator&&(hf=navigator.platform||"");var ff="rgba(0, 0, 0, 0.2)",df={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ff,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ff,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ff,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ff,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ff,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ff,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hf.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},pf=Object(_t["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),gf="original",vf="arrayRows",yf="objectRows",mf="keyedColumns",bf="typedArray",_f="unknown",xf="column",wf="row",Of={Must:1,Might:2,Not:3},Sf=Yo();function Mf(t){Sf(t).datasetMap=Object(_t["createHashMap"])()}function jf(t,e,n){var r={},i=Tf(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Sf(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(_t["each"])(t,(function(e,n){var i=Object(_t["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var f=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;re)return t[r];return t[n-1]}function Nf(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Rf(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Ef(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Bf,zf,Ff;"undefined"!==typeof console&&console.warn&&console.log;function Vf(t){0}function Hf(t){throw new Error(t)}var Gf="\0_ec_inner",Wf=1;var Uf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mt(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new zc(r),this._locale=new zc(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Kf(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Kf(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Ff(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(_t["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(_t["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Df(this,e,jo(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Ao(a,o,l);Go(u,e,cf),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],f=[],d=0;Object(_t["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=cf.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(_t["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(_t["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),d++):(h.push(void 0),f.push(void 0))}),this),n[e]=h,r.set(e,f),i.set(e,d),"series"===e&&Bf(this)}Mf(this),Object(_t["each"])(t,(function(t,e){null!=t&&(cf.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(_t["clone"])(t):Object(_t["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){cf.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),cf.topologicalTravel(o,cf.getAllClassMainTypes(),l,this),this._seriesIndices||Bf(this)},e.prototype.getOption=function(){var t=Object(_t["clone"])(this.option);return Object(_t["each"])(t,(function(e,n){if(cf.hasClass(n)){for(var r=jo(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Ho(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Gf],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=e:"max"===n?t<=e:t===e}function ud(t,e){return t.join(",")===e.join(",")}var cd=od,hd=_t["each"],fd=_t["isObject"],dd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pd(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=dd.length;n=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(f>=0&&v>0||f<=0&&v<0){f=ao(f,v),d=v;break}}}return r[0]=f,r[1]=d,r}))}))}var Ed,Bd,zd,Fd,Vd,Hd=function(){function t(t){this.data=t.data||(t.sourceFormat===mf?{}:[]),this.sourceFormat=t.sourceFormat||_f,this.seriesLayoutBy=t.seriesLayoutBy||xf,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return cp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function dp(t){var e,n;return _t["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function pp(t){return new gp(t)}var gp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f1&&r>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},xp=function(){function t(t,e){if(!Object(_t["isNumber"])(e)){var n="";0,Hf(n)}this._opFn=_p[t],this._rvalFloat=mo(e)}return t.prototype.evaluate=function(t){return Object(_t["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(mo(t),this._rvalFloat)},t}(),wp=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(_t["isNumber"])(t)?t:mo(t),r=Object(_t["isNumber"])(e)?e:mo(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(_t["isString"])(t),s=Object(_t["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return nr?-this._resultLT:0},t}(),Op=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=mo(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=mo(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Sp(t,e){return"eq"===t||"ne"===t?new Op("eq"===t,e):Object(_t["hasOwn"])(_p,t)?new xp(t,e):null}var Mp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return yp(t,e)},t}();function jp(t,e){var n=new Mp,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==xf&&Hf(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(_t["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(_t["hasOwn"])(l,n)&&Hf(i),l[n]=r}}));else for(var c=0;c65535?Bp:zp}function Wp(){return[1/0,-1/0]}function Up(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Yp(t,e,n,r,i){var o=Hp[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(_t["map"])(o,(function(t){return t.property})),u=0;uv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=d,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=c&&y<=h||isNaN(y))&&(s[l++]=p),p++}d=!0}else if(2===i){g=f[r[0]];var m=f[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(v=0;v=c&&y<=h||isNaN(y))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=p),p++}d=!0}}if(!d)if(1===i)for(v=0;v=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;vt[M][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(v))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),f=new(Gp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=h;for(var d=1;dn&&(n=r,i=b))}j>0&&ju-d&&(s=u-d,a.length=s);for(var p=0;pc[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();is&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return yp(t[r],this._dimensions[r])}Np={arrayRows:t,objectRows:function(t,e,n,r){return yp(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return yp(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),qp=Xp,Zp=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if($p(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(_t["isTypedArray"])(a)?bf:gf,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=Object(_t["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Object(_t["retrieve2"])(c.sourceHeader,h.sourceHeader),p=Object(_t["retrieve2"])(c.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!d!==!!h.sourceHeader||p;t=g?[Wd(a,{seriesLayoutBy:f,sourceHeader:d,dimensions:p},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[Wd(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&Qp(o)}var a=[],s=[];return Object(_t["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Qp(n),a.push(e),s.push(t._getVersionSign())})),r?e=Pp(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Yd(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(_t["each"])(t.blocks,(function(t){var n=ag(t);n>=e&&(e=n+ +(r&&(!n||ig(t)&&!t.noHeader)))})),e}return 0}function sg(t,e,n,r){var i=e.noHeader,o=cg(ag(e)),a=[],s=e.blocks||[];Object(_t["assert"])(!s||Object(_t["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(_t["hasOwn"])(u,l)){var c=new wp(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(_t["each"])(s,(function(n,i){var s=e.valueFormatter,l=og(n)(s?Object(_t["extend"])(Object(_t["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):hg(a.join(""),i?n:o.html);if(i)return h;var f=Vh(e.header,"ordinal",t.useUTC),d=tg(r,t.renderMode).nameStyle;return"richText"===t.renderMode?pg(t,f,d)+o.richText+h:hg('
'+Fh(f)+"
"+h,n)}function lg(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(_t["isArray"])(t)?t:[t],Object(_t["map"])(t,(function(t,e){return Vh(t,Object(_t["isArray"])(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Vh(l,"ordinal",u),d=e.valueType,p=a?[]:c(e.value),g=!s||!o,v=!s&&o,y=tg(r,i),m=y.nameStyle,b=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":pg(t,f,m))+(a?"":gg(t,p,g,v,b)):hg((s?"":h)+(o?"":fg(f,!s,m))+(a?"":dg(p,g,v,b)),n)}}function ug(t,e,n,r,i,o){if(t){var a=og(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function cg(t){return{html:eg[t],richText:ng[t]}}function hg(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function fg(t,e,n){var r=e?"margin-left:2px":"";return''+Fh(t)+""}function dg(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(_t["isArray"])(t)?t:[t],''+Object(_t["map"])(t,(function(t){return Fh(t)})).join("  ")+""}function pg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function gg(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(_t["isArray"])(e)?e.join(" "):e,o)}function vg(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return qh(r)}function yg(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var mg=function(){function t(){this.richTextStyles={},this._nextStyleNameId=_o()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Uh({color:e,type:t,renderMode:n,markerId:r});return Object(_t["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(_t["isArray"])(e)?Object(_t["each"])(e,(function(t){return Object(_t["extend"])(n,t)})):Object(_t["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function bg(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),f=Object(_t["isArray"])(h),d=vg(o,a);if(c>1||f&&!c){var p=_g(h,o,a,u,d);e=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=cp(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var v=Vo(o),y=v&&o.name||"",m=l.getName(a),b=s?y:m;return rg("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[rg("nameValue",{markerType:"item",markerColor:d,name:b,noName:!Object(_t["trim"])(b),value:e,valueType:n})].concat(r||[])})}function _g(t,e,n,r,i){var o=e.getData(),a=Object(_t["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(rg("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(_t["each"])(r,(function(t){c(cp(o,n,t),t)})):Object(_t["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var xg=Yo();function wg(t,e){return t.getName(e)||t.getId(e)}var Og="__universalTransitionEnabled",Sg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return mt(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=pp({count:Tg,reset:Cg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=xg(this).sourceManager=new Zp(this);r.prepareSource();var i=this.getInitialData(t,n);Ig(i,this),this.dataTask.context.data=i,xg(this).dataBeforeProcessed=i,Mg(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=nf(this),r=n?of(t):{},i=this.subType;cf.hasClass(i)&&(i+="Series"),_t["merge"](t,e.getTheme().get(this.subType)),_t["merge"](t,this.getDefaultOption()),To(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&rf(t,r,n)},e.prototype.mergeOption=function(t,e){t=_t["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=nf(this);n&&rf(this.option,t,n);var r=xg(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Ig(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,xg(this).dataBeforeProcessed=i,Mg(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!_t["isTypedArray"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Lf.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[wg(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Og])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){_t["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return cf.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(cf);function Mg(t){var e=t.name;Vo(t)||(t.name=jg(t)||e)}function jg(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return _t["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Tg(t){return t.model.getRawData().count()}function Cg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),kg}function kg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ig(t,e){_t["each"](_t["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,_t["curry"](Ag,e))}))}function Ag(t,e){var n=Dg(t);return n&&n.setOutputEnd((e||this).count()),e}function Dg(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}_t["mixin"](Sg,fp),_t["mixin"](Sg,Lf),ca(Sg,cf);var Pg=Sg,Lg=function(){function t(){this.group=new Ei,this.uid=Vc("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();la(Lg),ga(Lg);var Rg=Lg;function Ng(){var t=Yo();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Eg=Is.CMD,Bg=[[],[],[]],zg=Math.sqrt,Fg=Math.atan2;function Vg(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Eg.M,h=Eg.C,f=Eg.L,d=Eg.R,p=Eg.A,g=Eg.Q;for(i=0,o=0;i1&&(a*=Hg(p),s*=Hg(p));var g=(i===o?-1:1)*Hg((a*a*(s*s)-a*a*(d*d)-s*s*(f*f))/(a*a*(d*d)+s*s*(f*f)))||0,v=g*a*d/s,y=g*-s*f/a,m=(t+n)/2+Wg(h)*v-Gg(h)*y,b=(e+r)/2+Gg(h)*v+Wg(h)*y,_=qg([1,0],[(f-v)/a,(d-y)/s]),x=[(f-v)/a,(d-y)/s],w=[(-1*f-v)/a,(-1*d-y)/s],O=qg(x,w);if(Xg(x,w)<=-1&&(O=Ug),Xg(x,w)>=1&&(O=0),O<0){var S=Math.round(O/Ug*1e6)/1e6;O=2*Ug+S%2*Ug}c.addData(u,m,b,a,s,_,O,h,o)}var Kg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,$g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Qg(t){var e=new Is;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Is.CMD,l=t.match(Kg);if(!l)return e;for(var u=0;uI*I+A*A&&(S=j,M=T),{cx:S,cy:M,x0:-c,y0:-h,x1:S*(i/x-1),y1:M*(i/x-1)}}function Mv(t){var e;if(Object(_t["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function jv(t,e){var n,r=_v(e.r,0),i=_v(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,f=!!e.clockwise,d=mv(u-l),p=d>dv&&d%dv;if(p>wv&&(d=p),r>wv)if(d>dv-wv)t.moveTo(c+r*gv(l),h+r*pv(l)),t.arc(c,h,r,l,u,!f),i>wv&&(t.moveTo(c+i*gv(u),h+i*pv(u)),t.arc(c,h,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0,O=void 0,S=void 0,M=void 0,j=void 0,T=void 0,C=void 0,k=void 0,I=void 0,A=r*gv(l),D=r*pv(l),P=i*gv(u),L=i*pv(u),R=d>wv;if(R){var N=e.cornerRadius;N&&(n=Mv(N),g=n[0],v=n[1],y=n[2],m=n[3]);var E=mv(r-i)/2;if(b=xv(E,y),_=xv(E,m),x=xv(E,g),w=xv(E,v),M=O=_v(b,_),j=S=_v(x,w),(O>wv||S>wv)&&(T=r*gv(u),C=r*pv(u),k=i*gv(l),I=i*pv(l),dwv){var U=xv(y,M),Y=xv(m,M),X=Sv(k,I,A,D,r,U,f),q=Sv(T,C,P,L,r,Y,f);t.moveTo(c+X.cx+X.x0,h+X.cy+X.y0),M0&&t.arc(c+X.cx,h+X.cy,U,yv(X.y0,X.x0),yv(X.y1,X.x1),!f),t.arc(c,h,r,yv(X.cy+X.y1,X.cx+X.x1),yv(q.cy+q.y1,q.cx+q.x1),!f),Y>0&&t.arc(c+q.cx,h+q.cy,Y,yv(q.y1,q.x1),yv(q.y0,q.x0),!f))}else t.moveTo(c+A,h+D),t.arc(c,h,r,l,u,!f);else t.moveTo(c+A,h+D);if(i>wv&&R)if(j>wv){U=xv(g,j),Y=xv(v,j),X=Sv(P,L,T,C,i,-Y,f),q=Sv(A,D,k,I,i,-U,f);t.lineTo(c+X.cx+X.x0,h+X.cy+X.y0),j0&&t.arc(c+X.cx,h+X.cy,Y,yv(X.y0,X.x0),yv(X.y1,X.x1),!f),t.arc(c,h,i,yv(X.cy+X.y1,X.cx+X.x1),yv(q.cy+q.y1,q.cx+q.x1),f),U>0&&t.arc(c+q.cx,h+q.cy,U,yv(q.y1,q.x1),yv(q.y0,q.x0),!f))}else t.lineTo(c+P,h+L),t.arc(c,h,i,u,l,f);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var Tv=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Cv=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype.getDefaultShape=function(){return new Tv},e.prototype.buildPath=function(t,e){jv(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(nl);Cv.prototype.type="sector";var kv=Cv,Iv=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Av=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype.getDefaultShape=function(){return new Iv},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(nl);Av.prototype.type="ring";var Dv=Av;function Pv(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,d=t.length;f=2){if(r){var o=Pv(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;sly[1]){if(a=!1,i)return a;var u=Math.abs(ly[0]-sy[1]),c=Math.abs(sy[0]-ly[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ry(t){return!t.isGroup}function Ny(t){return null!=t.shape}function Ey(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Ry(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),nc(t,i,n,Bl(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Ry(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ny(t)&&(e.shape=Object(_t["extend"])({},t.shape)),e}}function By(t,e){return Object(_t["map"])(t,(function(t){var n=t[0];n=vy(n,e.x),n=yy(n,e.x+e.width);var r=t[1];return r=vy(r,e.y),r=yy(r,e.y+e.height),[n,r]}))}function zy(t,e){var n=vy(t.x,e.x),r=yy(t.x+t.width,e.x+e.width),i=vy(t.y,e.y),o=yy(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Fy(t,e,n){var r=Object(_t["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(_t["defaults"])(i,n),new cl(r)):Sy(t.replace("path://",""),r,n,"center")}function Vy(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var v=Gy(d,p,c,h)/f;return!(v<0||v>1)}function Gy(t,e,n,r){return t*r-n*e}function Wy(t){return t<=1e-6&&t>=-1e-6}function Uy(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(_t["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(_t["each"])(Object(_t["keys"])(l),(function(t){Object(_t["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Bl(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(_t["defaults"])({content:r,formatterParams:s},i)}}function Yy(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Xy(t,e){if(t)if(Object(_t["isArray"])(t))for(var n=0;n=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function sm(t,e,n,r){var i=t[e];if(i){var o=i[rm]||i,a=i[om],s=i[im];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=am(o,n,"debounce"===r),i[rm]=o,i[om]=r,i[im]=n}return i}}function lm(t,e){var n=t[e];n&&n[rm]&&(n.clear&&n.clear(),t[e]=n[rm])}var um=Yo(),cm={itemStyle:va(Rc,!0),lineStyle:va(Dc,!0)},hm={lineStyle:"stroke",itemStyle:"fill"};function fm(t,e){var n=t.visualStyleMapper||cm[e];return n||cm.itemStyle}function dm(t,e){var n=t.visualDrawType||hm[e];return n||"fill"}var pm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=fm(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=dm(t,r),u=a[l],c=Object(_t["isFunction"])(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(_t["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(_t["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(_t["extend"])({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},gm=new zc,vm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=fm(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){gm.option=n[r];var a=i(gm),s=t.ensureUniqueItemVisual(e,"style");Object(_t["extend"])(s,a),gm.option.decal&&(t.setItemVisual(e,"decal",gm.option.decal),gm.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},ym={performRawSeries:!0,overallReset:function(t){var e=Object(_t["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),um(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=um(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=dm(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},mm=Math.PI;function bm(t,e){e=e||{},_t["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ei,r=new bl({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new El({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new bl({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new Qv({shape:{startAngle:-mm/2,endAngle:-mm/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*mm/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*mm/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var _m=function(){function t(t,e,n,r){this._stageTaskMap=Object(_t["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(_t["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(_t["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(_t["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(_t["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,r.block);f.each((function(t){t.perform(d)})),c.perform(d)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(_t["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||pp({plan:Mm,reset:jm,count:km}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||pp({reset:xm});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(_t["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,f="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,pp({reset:wm,onDirty:Sm})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(_t["assert"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,Object(_t["each"])(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(_t["isFunction"])(t)&&(t={overallReset:t,seriesType:Im(t)}),t.uid=Vc("stageHandler"),e&&(t.visualType=e),t},t}();function xm(t){t.overallReset(t.ecModel,t.api,t.payload)}function wm(t){return t.overallProgress&&Om}function Om(){this.agent.dirty(),this.getDownstream().dirty()}function Sm(){this.agent&&this.agent.dirty()}function Mm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function jm(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=jo(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(_t["map"])(e,(function(t,e){return Cm(e)})):Tm}var Tm=Cm(0);function Cm(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Um=["symbol","symbolSize","symbolRotate","symbolOffset"],Ym=Um.concat(["symbolKeepAspect"]),Xm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(_t["isNumber"])(t)?[t]:Object(_t["isArray"])(t)?t:null:null}function Ob(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&wb(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(_t["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var Sb=new Is(!0);function Mb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function jb(t){return"string"===typeof t&&"none"!==t}function Tb(t){var e=t.fill;return null!=e&&"none"!==e}function Cb(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function kb(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Ib(t,e,n){var r=wa(e.image,e.__image,n);if(Sa(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*_t["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Ab(t,e,n,r){var i,o=Mb(n),a=Tb(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Sb,h=e.__dirty;if(!r){var f=n.fill,d=n.stroke,p=a&&!!f.colorStops,g=o&&!!d.colorStops,v=a&&!!f.image,y=o&&!!d.image,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(m=h?mb(t,f,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?mb(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?Ib(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(x=h||!e.__canvasStrokePattern?Ib(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=m:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:y&&(x?t.strokeStyle=x:o=!1)}var O,S,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=Ob(e),O=i[0],S=i[1]);var j=!0;(u||h&Ye)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),j=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),j&&c.rebuildPath(t,l?s:1),O&&(t.setLineDash(O),t.lineDashOffset=S),r||(n.strokeFirst?(o&&kb(t,n),a&&Cb(t,n)):(a&&Cb(t,n),o&&kb(t,n))),O&&t.setLineDash([])}function Db(t,e,n){var r=e.__image=wa(n.image,e.__image,e,e.onload);if(r&&Sa(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,f=s-c;t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Pb(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||fi["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Ob(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Mb(n)&&t.strokeText(i,n.x,n.y),Tb(n)&&t.fillText(i,n.x,n.y)):(Tb(n)&&t.fillText(i,n.x,n.y),Mb(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Lb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Rb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Nb(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Xb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Va.opacity:a}(r||e.blend!==n.blend)&&(o||(Xb(t,i),o=!0),t.globalCompositeOperation=e.blend||Va.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[P_])if(this._disposed)dx(this.id);else{var r,i,o;if(Object(_t["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[P_]=!0,!this._model||e){var a=new cd(this._api),s=this._theme,l=this._model=new $f;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},yx);var u={seriesTransition:o,optionChanged:!0};if(n)this[L_]={silent:r,updateParams:u},this[P_]=!1,this.getZr().wakeUp();else{try{W_(this),X_.update.call(this,null,u)}catch(c){throw this[L_]=null,this[P_]=!1,c}this._ssr||this._zr.flush(),this[L_]=null,this[P_]=!1,$_.call(this,r),Q_.call(this,r)}}},e.prototype.setTheme=function(){Vf("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||d_&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(bt["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(_t["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(_t["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(_t["each"])(r,(function(t){t.group.ignore=!1})),o}dx(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(wx[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(_t["each"])(xx,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(_t["clone"])(t)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),u=i(d.bottom,u),c.push({dom:f,left:d.left,top:d.top})}})),a*=h,s*=h,l*=h,u*=h;var f=l-a,d=u-s,p=fi["c"].createCanvas(),g=Gi(p,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:d}),e){var v="";return Object(_t["each"])(c,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new bl({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),Object(_t["each"])(c,(function(t){var e=new cl({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}dx(this.id)},e.prototype.convertToPixel=function(t,e){return q_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return q_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=qo(r,t);return Object(_t["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(_t["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}dx(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=qo(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Zm(o,a,e):Km(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(_t["each"])(fx,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&Jm(o,(function(t){var e=Bl(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(_t["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(_t["each"])(gx,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(_t["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Qm(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?dx(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)dx(this.id);else{this._disposed=!0;var t=this.getDom();t&&Qo(this.getDom(),Mx,"");var e=this,n=e._api,r=e._model;Object(_t["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(_t["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete xx[e.id]}},e.prototype.resize=function(t){if(!this[P_])if(this._disposed)dx(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[L_]&&(null==r&&(r=this[L_].silent),n=!0,this[L_]=null),this[P_]=!0;try{n&&W_(this),X_.update.call(this,{type:"resize",animation:Object(_t["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[P_]=!1,i}this[P_]=!1,$_.call(this,r),Q_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)dx(this.id);else if(Object(_t["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),_x[t]){var n=_x[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?dx(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(_t["extend"])({},t);return e.type=gx[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)dx(this.id);else if(Object(_t["isObject"])(e)||(e={silent:!!e}),px[t.type]&&this._model)if(this[P_])this._pendingActions.push(t);else{var n=e.silent;K_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&bt["a"].browser.weChat&&this._throttledZrFlush(),$_.call(this,n),Q_.call(this,n)}},e.prototype.updateLabelLayout=function(){u_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)dx(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);Ge(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(_t["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!bt["a"].node&&!bt["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(ic(t))return;if(t instanceof nl&&Qu(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}W_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),U_(t,!0),U_(t,!1),e.plan()},U_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){Wx.push(n);var o=Rm.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Yx(t,e){_x[t]=e}function Xx(t){Object(fi["d"])({createCanvas:t})}function qx(t,e,n){var r=f_("registerMap");r&&r(t,e,n)}function Zx(t){var e=f_("getMap");return e&&e(t)}var Kx=Dp;Gx(S_,pm),Gx(T_,vm),Gx(T_,ym),Gx(S_,Xm),Gx(T_,qm),Gx(A_,s_),Lx(Ld),Rx(m_,Rd),Yx("default",bm),zx({type:$l,event:$l,update:$l},_t["noop"]),zx({type:Ql,event:Ql,update:Ql},_t["noop"]),zx({type:Jl,event:Jl,update:Jl},_t["noop"]),zx({type:tu,event:tu,update:tu},_t["noop"]),zx({type:eu,event:eu,update:eu},_t["noop"]),Px("light",Em),Px("dark",Gm);var $x={},Qx=[],Jx={registerPreprocessor:Lx,registerProcessor:Rx,registerPostInit:Nx,registerPostUpdate:Ex,registerUpdateLifecycle:Bx,registerAction:zx,registerCoordinateSystem:Fx,registerLayout:Hx,registerVisual:Gx,registerTransform:Kx,registerLoading:Yx,registerMap:qx,registerImpl:h_,PRIORITY:D_,ComponentModel:cf,ComponentView:Rg,SeriesModel:Pg,ChartView:nm,registerComponentModel:function(t){cf.registerClass(t)},registerComponentView:function(t){Rg.registerClass(t)},registerSeriesModel:function(t){Pg.registerClass(t)},registerChartView:function(t){nm.registerClass(t)},registerSubTypeDefaulter:function(t,e){cf.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Xi(t,e)}};function tw(t){Object(_t["isArray"])(t)?Object(_t["each"])(t,(function(t){tw(t)})):Object(_t["indexOf"])(Qx,t)>=0||(Qx.push(t),Object(_t["isFunction"])(t)&&(t={install:t}),t.install(Jx))}function ew(t){return null==t?0:t.length||1}function nw(t){return t}var rw=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||nw,this._newKeyGetter=r||nw,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f1)for(var a=0;a30}var bw,_w,xw,ww,Ow,Sw,Mw,jw=_t["isObject"],Tw=_t["map"],Cw="undefined"===typeof Int32Array?Array:Int32Array,kw="e\0\0",Iw=-1,Aw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Dw=["_approximateExtent"],Pw=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;gw(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===gf;if(s&&!r.pure)for(var l=[],u=t;u0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),_t["isArray"](i)?i=i.slice():jw(i)&&(i=_t["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,jw(e)?_t["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){jw(t)?_t["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?_t["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;zl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){_t["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Tw(this.dimensions,this._getDimInfo,this),this.hostModel)),Ow(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];_t["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(_t["slice"](arguments)))})},t.internalField=function(){bw=function(t){var e=t._invertedIndicesMap;_t["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new Cw(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),Lw=Pw;function Rw(t,e){return Nw(t,e).dimensions}function Nw(t,e){Gd(t)||(t=Ud(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(_t["createHashMap"])(),o=[],a=Bw(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&mw(a),l=r===t.dimensionsDefine,u=l?yw(t):vw(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(_t["createHashMap"])(c),f=new Fp(a),d=0;d0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Bw(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(_t["each"])(e,(function(t){var e;Object(_t["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function zw(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){var i=0;while(r.hasOwnProperty(t+i))i++;t+=i}return e.set(t,!0),t}var Fw=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(_t["createHashMap"])(),this.categoryAxisMap=Object(_t["createHashMap"])(),this.coordSysName=t}return t}();function Vw(t){var e=t.get("coordinateSystem"),n=new Fw(e),r=Hw[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var Hw={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Ko).models[0],o=t.getReferringComponents("yAxis",Ko).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Gw(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Gw(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Ko).models[0];e.coordSysDims=["single"],n.set("single",i),Gw(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Ko).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Gw(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Gw(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(_t["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Gw(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Gw(t){return"category"===t.get("type")}function Ww(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;Uw(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,f=!(!t||!t.get("stack"));if(Object(_t["each"])(r,(function(t,e){Object(_t["isString"])(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,p=u.type,g=0;Object(_t["each"])(r,(function(t){t.coordDim===d&&g++}));var v={name:c,coordDim:d,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,p),y.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Uw(t){return!gw(t.schema)}function Yw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Xw(t,e){return Yw(t,e)?t.getCalculationInfo("stackResultDimension"):e}function qw(t,e){var n,r=t.get("coordinateSystem"),i=rd.get(r);return e&&e.coordSysDims&&(n=_t["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=lw(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Zw(t,e,n){var r,i;return n&&_t["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function Kw(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Ud(t)):(r=i.getSource(),o=r.sourceFormat===gf);var a=Vw(e),s=qw(e,a),l=n.useEncodeDefaulter,u=_t["isFunction"](l)?l:l?_t["curry"](jf,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Nw(r,c),f=Zw(h.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(h),p=Ww(e,{schema:h,store:d}),g=new Lw(h,e);g.setCalculationInfo(p);var v=null!=f&&$w(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:d,null,v),g}function $w(t){if(t.sourceFormat===gf){var e=Qw(t.data||[]);return!_t["isArray"](ko(e))}}function Qw(t){var e=0;while(ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ga(tO);var eO=tO,nO=0,rO=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++nO}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(_t["map"])(r,iO);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(_t["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(_t["createHashMap"])(this.categories))},t}();function iO(t){return Object(_t["isObject"])(t)&&null!=t.value?t.value:t+""}var oO=rO;function aO(t){return"interval"===t.type||"log"===t.type}function sO(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=go(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=uO(a),l=i.niceTickExtent=[to(Math.ceil(t[0]/a)*a,s),to(Math.floor(t[1]/a)*a,s)];return hO(l,t),i}function lO(t){var e=Math.pow(10,po(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,to(n*e)}function uO(t){return no(t)+2}function cO(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function hO(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),cO(t,0,e),cO(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function fO(t,e){return t>=e[0]&&t<=e[1]}function dO(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function pO(t,e){return t*(e[1]-e[0])+e[0]}var gO=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new oO({})),Object(_t["isArray"])(r)&&(r=new oO({categories:Object(_t["map"])(r,(function(t){return Object(_t["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return mt(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(_t["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),fO(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),dO(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(pO(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(eO);eO.registerClass(gO);var vO=gO,yO=to,mO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return mt(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return fO(t,this._extent)},e.prototype.normalize=function(t){return dO(t,this._extent)},e.prototype.scale=function(t){return pO(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=uO(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:yO(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function CO(t){var e=TO(t),n=[];return Object(_t["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var d=Ji(t.get("barWidth"),r),p=Ji(t.get("barMaxWidth"),r),g=Ji(t.get("barMinWidth")||(LO(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:MO(o),stackId:SO(t)})})),kO(n)}function kO(t){var e={};Object(_t["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(_t["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(_t["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=Ji(o,i),l=Ji(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(_t["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&er&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var f,d=0;Object(_t["each"])(r,(function(t,e){t.width||(t.width=h),f=t,d+=t.width*(1+l)})),f&&(d-=f.width*l);var p=-d/2;Object(_t["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function IO(t,e,n){if(t&&e){var r=t[MO(e)];return null!=r&&null!=n?r[SO(n)]:r}}function AO(t,e){var n=jO(t,e),r=CO(n);Object(_t["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=SO(t),a=r[MO(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function DO(t){return{seriesType:t,plan:Ng(),reset:function(t){if(PO(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=Yw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=RO(r,i),d=LO(t),p=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=d&&wO(3*i),u=d&&s&&wO(3*i),m=d&&wO(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;while(null!=(r=t.next())){var O=x.get(c?g:o,r),S=x.get(a,r),M=f,j=void 0;c&&(j=+O-x.get(o,r));var T=void 0,C=void 0,k=void 0,I=void 0;if(h){var A=n.dataToPoint([O,S]);if(c){var D=n.dataToPoint([j,S]);M=D[0]}T=M,C=A[1]+y,k=A[0]-M,I=v,Math.abs(k)>>1;t[i][1]n&&(this._approxInterval=n);var o=BO.length,a=Math.min(NO(BO,this._approxInterval,0,o),o-1);this._interval=BO[a][1],this._minLevelUnit=BO[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(_t["isNumber"])(t)?t:+ho(t)},e.prototype.contain=function(t){return fO(this.parse(t),this._extent)},e.prototype.normalize=function(t){return dO(this.parse(t),this._extent)},e.prototype.scale=function(t){return pO(t,this._extent)},e.type="time",e}(bO),BO=[["second",rh],["minute",ih],["hour",oh],["quarter-day",6*oh],["half-day",12*oh],["day",1.2*ah],["half-week",3.5*ah],["week",7*ah],["month",31*ah],["quarter",95*ah],["half-year",sh/2],["year",sh]];function zO(t,e,n,r){var i=ho(e),o=ho(n),a=function(t){return _h(i,t,r)===_h(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},f=function(){return h()&&a("second")},d=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return d()}}function FO(t,e){return t/=ah,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function VO(t){var e=30*ah;return t/=e,t>6?6:t>3?3:t>2?2:1}function HO(t){return t/=oh,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function GO(t,e){return t/=e?ih:rh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function WO(t){return go(t,!0)}function UO(t,e,n){var r=new Date(t);switch(ph(e)){case"year":case"month":r[kh(n)](0);case"day":r[Ih(n)](1);case"hour":r[Ah(n)](0);case"minute":r[Dh(n)](0);case"second":r[Ph(n)](0),r[Lh(n)](0)}return r.getTime()}function YO(t,e,n,r){var i=1e4,o=fh,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u=r[0]&&m<=r[1]&&h++)}var b=(r[1]-r[0])/e;if(h>1.5*b&&f>b/1.5)break;if(u.push(v),h>b||t===o[d])break}c=[]}}}var _=Object(_t["filter"])(Object(_t["map"])(u,(function(t){return Object(_t["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],w=_.length-1;for(d=0;d<_.length;++d)for(var O=_[d],S=0;S0)r*=10;var o=[to(QO(e[0]/r)*r),to($O(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){ZO.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=tS(t)/tS(this.base),fO(t,this._extent)},e.prototype.normalize=function(t){return t=tS(t)/tS(this.base),dO(t,this._extent)},e.prototype.scale=function(t){return t=pO(t,this._extent),JO(this.base,t)},e.type="log",e}(eO),nS=eS.prototype;function rS(t,e){return KO(t,no(e))}nS.getMinorTicks=ZO.getMinorTicks,nS.getLabel=ZO.getLabel,eO.registerClass(eS);var iS=eS,oS=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[sS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=aS[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),aS={min:"_determinedMin",max:"_determinedMax"},sS={min:"_dataMin",max:"_dataMax"};function lS(t,e,n){var r=t.rawExtentInfo;return r||(r=new oS(t,e,n),t.rawExtentInfo=r,r)}function uS(t,e){return null==e?null:Object(_t["eqNaN"])(e)?NaN:t.parse(e)}function cS(t,e){var n=t.type,r=lS(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=jO("bar",a),l=!1;if(_t["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=CO(s),c=hS(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function hS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=IO(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;_t["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;_t["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,f=c/h-c;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function fS(t,e){var n=e,r=cS(t,n),i=r.extent,o=n.get("splitNumber");t instanceof iS&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function dS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new vO({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new XO({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(eO.getClass(e)||bO)}}function pS(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function gS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):_t["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):_t["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(vS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function vS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function yS(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof vO?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=gS(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;cn&&(t=i,n=a)}if(t)return LS(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(_t["each"])(i,(function(e){"polygon"===e.type?PS(e.exterior,n,r,t):Object(_t["each"])(e.points,(function(e){PS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new ci(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function HS(t,e){return t=zS(t),_t["map"](_t["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new NS(o[0],o.slice(1)));break;case"MultiPolygon":_t["each"](r.coordinates,(function(t){t[0]&&i.push(new NS(t[0],t.slice(1)))}));break;case"LineString":i.push(new ES([r.coordinates]));break;case"MultiLineString":i.push(new ES(r.coordinates))}var a=new BS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function GS(t,e,n,r,i,o,a,s){var l=new El({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var WS=Yo();function US(t){return"category"===t.type?XS(t):KS(t)}function YS(t,e){return"category"===t.type?ZS(t,e):{ticks:_t["map"](t.scale.getTicks(),(function(t){return t.value}))}}function XS(t){var e=t.getLabelModel(),n=qS(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function qS(t,e){var n,r,i=$S(t,"labels"),o=bS(e),a=QS(i,o);return a||(_t["isFunction"](o)?n=iM(t,o):(r="auto"===o?tM(t):o,n=rM(t,r)),JS(i,o,{labels:n,labelCategoryInterval:r}))}function ZS(t,e){var n,r,i=$S(t,"ticks"),o=bS(e),a=QS(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),_t["isFunction"](o))n=iM(t,o,!0);else if("auto"===o){var s=qS(t,t.getLabelModel());r=s.labelCategoryInterval,n=_t["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=rM(t,r,!0);return JS(i,o,{ticks:n,tickCategoryInterval:r})}function KS(t){var e=t.scale.getTicks(),n=gS(t);return{labels:_t["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function $S(t,e){return WS(t)[e]||(WS(t)[e]=[])}function QS(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,d=0;l<=o[1];l+=s){var p=0,g=0,v=vi(n({value:l}),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,f=Math.max(f,p,7),d=Math.max(d,g,7)}var y=f/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),_=WS(t.model),x=t.getExtent(),w=_.lastAutoInterval,O=_.lastTickCount;return null!=w&&null!=O&&Math.abs(w-b)<=1&&Math.abs(O-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function nM(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rM(t,e,n){var r=gS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=_S(t),f=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return d&&p-l!==o[1]&&g(o[1]),s}function iM(t,e,n){var r=t.scale,i=gS(t),o=[];return _t["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var oM=[0,1],aM=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return io(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),sM(n,r.count())),Qi(t,oM,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),sM(n,r.count()));var i=Qi(t,n,oM,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=YS(this,e),r=n.ticks,i=Object(_t["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return lM(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(_t["map"])(n,(function(t){return Object(_t["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return US(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return eM(this)},t}();function sM(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function lM(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(_t["each"])(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=to(t),e=to(e),h?t>e:ti&&(i+=pM);var d=Math.atan2(s,a);if(d<0&&(d+=pM),d>=r&&d<=i||d+pM>=r&&d+pM<=i)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(p-a)*(p-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,SM.fromArray(t[0]),MM.fromArray(t[1]),jM.fromArray(t[2]),ti.sub(TM,SM,MM),ti.sub(CM,jM,MM);var n=TM.len(),r=CM.len();if(!(n<.001||r<.001)){TM.scale(1/n),CM.scale(1/r);var i=TM.dot(CM),o=Math.cos(e);if(o1&&ti.copy(AM,jM),AM.toArray(t[1])}}}}function PM(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function LM(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ft(r[0],r[1]),o=Ft(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Wt([],r[1],r[0],a/i),l=Wt([],r[1],r[2],a/o),u=Wt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var v,y,m=t[0],b=t[a-1];return _(),v<0&&O(-v,.8),y<0&&O(y,.8),_(),x(v,y,1),x(y,v,-1),_(),v<0&&S(-v),y<0&&S(y),u}function _(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&O(-i*n,1)}else O(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){f=o[l-1]*h;w(-f,l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function zM(t,e,n,r){return BM(t,"x","width",e,n,r)}function FM(t,e,n,r){return BM(t,"y","height",e,n,r)}function VM(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new ci(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(_t["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),nc(n,l,e,s)}else if(n.attr(l),!Sc(n).valueAnimation){var h=Object(_t["retrieve2"])(n.style.opacity,1);n.style.opacity=0,rc(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};qM(f,l,ZM),qM(f,n.states.select,ZM)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};qM(d,l,ZM),qM(d,n.states.emphasis,ZM)}jc(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=XM(r),o=i.oldLayout;var p={points:r.shape.points};o?(r.attr({shape:o}),nc(r,{shape:p},e)):(r.setShape(p),r.style.strokePercent=0,rc(r,{style:{strokePercent:1}},e)),i.oldLayout=p}},t}(),$M=KM,QM=Yo();function JM(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=QM(e).labelManager;r||(r=QM(e).labelManager=new $M),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=QM(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}tw(JM);var tj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return mt(e,t),e.prototype.getInitialData=function(t){return Jw(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Ei,n=db("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=db(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Pg),ej=tj;function nj(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=cp(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}var ij=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return mt(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=db(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=oj,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ou(this.childAt(0))},e.prototype.downplay=function(){Su(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(f):nc(h,f,a,n),lc(h)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!u){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,rc(h,f,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,f,d,p=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,f=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=pc(v),f=y.getShallow("scale"),d=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(m||0)*Math.PI/180||0);var b=gb(t.getItemVisual(e,"symbolOffset"),n);b&&(p.x=b[0],p.y=b[1]),d&&p.attr("cursor",d);var _=t.getItemVisual(e,"style"),x=_.fill;if(p instanceof cl){var w=p.style;p.useStyle(Object(_t["extend"])({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else p.__isEmptyBrush?p.useStyle(Object(_t["extend"])({},_)):p.useStyle(_),p.style.decal=null,p.setColor(x,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var O=t.getItemVisual(e,"liftZ"),S=this._z2;null!=O?null==S&&(this._z2=p.z2,p.z2+=O):null!=S&&(p.z2=S,this._z2=null);var M=i&&i.useNameLabel;function j(e){return M?t.getName(e):nj(t,e)}dc(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:j,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=p.ensureState("emphasis");if(T.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a,f){var C=Math.max(Object(_t["isNumber"])(f)?f:1.1,3/this._sizeY);T.scaleX=this._sizeX*C,T.scaleY=this._sizeY*C}this.setSymbolScale(1),Hu(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Bl(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&oc(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();oc(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return pb(t.getItemVisual(e,"symbolSize"))},e}(Ei);function oj(t,e){this.parent.drift(t,e)}var aj=ij;function sj(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function lj(t){return null==t||Object(_t["isObject"])(t)||(t={isIgnore:t}),t||{}}function uj(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:pc(e),cursorStyle:e.get("cursor")}}var cj=function(){function t(t){this.group=new Ei,this._SymbolCtor=t||aj}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=lj(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=uj(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(sj(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var f=i.getItemGraphicEl(h),d=u(c);if(sj(t,d,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==p)n.remove(f),f=new o(t,c,s,l),f.setPosition(d);else{f.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?f.attr(v):nc(f,v,r)}n.add(f),t.setItemGraphicEl(c,f)}else n.remove(f)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=uj(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=lj(n);for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function pj(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function gj(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function vj(t,e,n,r,i,o,a,s){for(var l=gj(t,e),u=[],c=[],h=[],f=[],d=[],p=[],g=[],v=fj(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=i||g<0)break;if(bj(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,f=m;else{var b=y-u,_=m-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],O=e[2*x+1];while(w===y&&O===m&&v=r||bj(w,O))d=y,p=m;else{j=w-u,T=O-c;var I=y-u,A=w-y,D=m-c,P=O-m,L=void 0,R=void 0;if("x"===s){L=Math.abs(I),R=Math.abs(A);var N=j>0?1:-1;d=y-N*L*a,p=m,C=y+N*R*a,k=m}else if("y"===s){L=Math.abs(D),R=Math.abs(P);var E=T>0?1:-1;d=y,p=m-E*L*a,C=y,k=m+E*R*a}else L=Math.sqrt(I*I+D*D),R=Math.sqrt(A*A+P*P),M=R/(R+L),d=y-j*a*(1-M),p=m-T*a*(1-M),C=y+j*a*M,k=m+T*a*M,C=yj(C,mj(w,y)),k=yj(k,mj(O,m)),C=mj(C,yj(w,y)),k=mj(k,yj(O,m)),j=C-y,T=k-m,d=y-j*L/R,p=m-T*L/R,d=yj(d,mj(u,y)),p=yj(p,mj(c,m)),d=mj(d,yj(u,y)),p=mj(p,yj(c,m)),j=y-d,T=m-p,C=y+j*R/L,k=m+T*R/L}t.bezierCurveTo(h,f,d,p,y,m),h=C,f=k}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var xj=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),wj=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return mt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xj},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!bj(n[2*i-2],n[2*i-1]))break;for(;r=0){var m=s?(f-r)*y+r:(h-n)*y+n;return s?[t,m]:[m,t]}n=h,r=f;break;case a.C:h=o[u++],f=o[u++],d=o[u++],p=o[u++],g=o[u++],v=o[u++];var b=s?vn(n,h,d,g,t,l):vn(r,f,p,v,t,l);if(b>0)for(var _=0;_=0){m=s?pn(r,f,p,v,x):pn(n,h,d,g,x);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(nl),Oj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mt(e,t),e}(xj),Sj=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return mt(e,t),e.prototype.getDefaultShape=function(){return new Oj},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!bj(n[2*o-2],n[2*o-1]))break;for(;ie){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function Nj(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=_t["map"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=Rj(u,"x"===i?n.getWidth():n.getHeight()),d=f.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,g=f[0].coord-p,v=f[d-1].coord+p,y=v-g;if(y<.001)return"transparent";_t["each"](f,(function(t){t.offset=(t.coord-g)/y})),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var m=new iy(0,0,0,0,f,!0);return m[i]=g,m[i+"2"]=v,m}}}function Ej(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!Bj(o,e))){var a=e.mapDimension(o.dim),s={};return _t["each"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Bj(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function zj(t,e){return isNaN(t)||isNaN(e)}function Fj(t){for(var e=t.length/2;e>0;e--)if(!zj(t[2*e-2],t[2*e-1]))break;return e-1}function Vj(t,e){return[t[2*e],t[2*e+1]]}function Hj(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function Gj(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var L=d.getState("emphasis").style;L.lineWidth=+d.style.lineWidth+1}Bl(d).seriesIndex=t.seriesIndex,Hu(d,A,D,P);var R=Dj(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:w}),p){var E=a.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(_t["defaults"](l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),E&&(B=Dj(E.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:B,smoothMonotone:N,connectNulls:w}),Yu(p,t,"areaStyle"),Bl(p).seriesIndex=t.seriesIndex,Hu(p,A,D,P)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=j,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){Bl(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=Uo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");s=new aj(i,o),s.x=l,s.y=u,s.setZ(c,h);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=h,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else nm.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Uo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else nm.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;pu(this._polyline,t),e&&pu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new wj({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Sj({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");_t["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=_t["isFunction"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],f=void 0,d=void 0,p=void 0;if(n)if(i){var g=n,v=e.pointToCoord(h);r?(f=g.startAngle,d=g.endAngle,p=-v[1]/180*Math.PI):(f=g.r0,d=g.r,p=v[0])}else{var y=n;r?(f=y.x,d=y.x+y.width,p=t.x):(f=y.y+y.height,d=y.y,p=t.y)}var m=d===f?0:(p-f)/(d-f);a&&(m=1-m);var b=_t["isFunction"](u)?u(o):l*m+c,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(Gj(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new El({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=Fj(a);l>=0&&(dc(o,pc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?rj(i,n):nj(i,t)},enableTextSetter:!0},Uj(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),f=o.get("precision"),d=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),x=g?"x":"y",w=Hj(u,m,x),O=w.range,S=O[1]-O[0],M=void 0;if(S>=1){if(S>1&&!h){var j=Vj(u,O[0]);s.attr({x:j[0]+b,y:j[1]+_}),i&&(M=c.getRawValue(O[0]))}else{j=l.getPointOn(m,x);j&&s.attr({x:j[0]+b,y:j[1]+_});var T=c.getRawValue(O[0]),C=c.getRawValue(O[1]);i&&(M=ea(n,f,T,C,w.t))}r.lastFrameIndex=O[0]}else{var k=1===t||r.lastFrameIndex>0?O[0]:0;j=Vj(u,k);i&&(M=c.getRawValue(k)),s.attr({x:j[0]+b,y:j[1]+_})}i&&Sc(s).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=vj(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=c.current,f=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(i&&(h=Lj(c.current,n,i,a),f=Lj(c.stackedOnCurrent,n,i,a),d=Lj(c.next,n,i,a),p=Lj(c.stackedOnNext,n,i,a)),Aj(h,d)>3e3||l&&Aj(f,p)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),nc(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:f}),l.stopAnimation(),nc(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),f=Math.round(a/h);if(isFinite(f)&&f>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f));var d=void 0;Object(_t["isString"])(i)?d=Zj[i]:Object(_t["isFunction"])(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/f,d,Kj))}}}}}function Qj(t){t.registerChartView(Xj),t.registerSeriesModel(ej),t.registerLayout(qj("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$j("line"))}var Jj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return mt(e,t),e.prototype.getInitialData=function(t,e){return Jw(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Pg);Pg.registerClass(Jj);var tT=Jj,eT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return mt(e,t),e.prototype.getInitialData=function(){return Jw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Wc(tT.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(tT),nT=eT,rT=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),iT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return mt(e,t),e.prototype.getDefaultShape=function(){return new rT},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,f=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function lT(t,e,n){return e*Math.sin(t)*(n?-1:1)}function uT(t,e,n){return e*Math.cos(t)*(n?1:-1)}var cT=Math.max,hT=Math.min;function fT(t,e){var n=t.getArea&&t.getArea();if(Cj(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var dT=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return mt(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Xy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=vT(t,l);h&&this._enableRealtimeSort(h,a,n);var f=t.get("clip",!0)||h,d=fT(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(t){var e=wT[l.type](a,t),n=PT(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=wT[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&xT[l.type](r)){var s=!1;f&&(s=pT[l.type](d,r));var v=gT[l.type](t,a,e,r,i,c,u.model,!1,p);h&&(v.forceLabelAnimation=!0),MT(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?yT(h,c,v,r,e,i,!1,!1):rc(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),O=wT[l.type](a,e,r);if(g){var S=void 0;0===b.length?S=w(n):(S=b[n],S.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&S.setShape("r",y),m[e]=S);var M=wT[l.type](a,e),j=DT(i,M,l);nc(S,{shape:j},c,e)}var T=s.getItemGraphicEl(n);if(a.hasValue(e)&&xT[l.type](O)){var C=!1;if(f&&(C=pT[l.type](d,O),C&&o.remove(T)),T?lc(T):T=gT[l.type](t,a,e,O,i,c,u.model,!!T,p),h&&(T.forceLabelAnimation=!0),x){var k=T.getTextContent();if(k){var I=Sc(k);null!=I.prevValue&&(I.prevValue=I.value)}}else MT(T,a,e,r,O,t,i,"polar"===l.type);_?T.attr({shape:O}):h?yT(h,c,T,O,e,i,!0,x):nc(T,{shape:O},t,e,null),a.setItemGraphicEl(e,T),T.ignore=C,o.add(T)}else o.remove(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&sc(n,t,e)})).execute();var O=this._backgroundGroup||(this._backgroundGroup=new Ei);O.removeAll();for(var S=0;So)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){sc(e,t,Bl(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(nm),pT={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=cT(e.x,t.x),s=hT(e.x+e.width,i),l=cT(e.y,t.y),u=hT(e.y+e.height,o),c=si?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=hT(e.r,t.r),o=cT(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},gT={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new bl({shape:Object(_t["extend"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?oT:kv,c=new u({shape:r,z2:1});c.name="item";var h=ST(i);if(c.calculateTextPosition=aT(h,{isRoundCap:u===oT}),o){var f=c.shape,d=i?"r":"endAngle",p={};f[d]=i?0:r.startAngle,p[d]=r[d],(s?nc:rc)(c,{shape:p},o)}return c}};function vT(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function yT(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?nc:rc)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?nc:rc)(n,{shape:u},c,i)}function mT(t,e){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function OT(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function ST(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function MT(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=r.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=pc(r);dc(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:nj(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var f=t.getTextContent();if(s&&f){var d=r.get(["label","position"]);t.textConfig.inside="middle"===d||null,sT(t,"outside"===d?c:d,ST(a),r.get(["label","rotate"]))}Mc(f,h,o.getRawValue(n),(function(t){return rj(e,t)}));var p=r.getModel(["emphasis"]);Hu(t,p.get("focus"),p.get("blurScope"),p.get("disabled")),Yu(t,r),OT(i)&&(t.style.fill="none",t.style.stroke="none",Object(_t["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function jT(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var TT=function(){function t(){}return t}(),CT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return mt(e,t),e.prototype.getDefaultShape=function(){return new TT},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function AT(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function DT(t,e,n){if(Cj(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function PT(t,e,n){var r="polar"===t.type?kv:bl;return new r({shape:DT(e,n,t),silent:!0,z2:0})}var LT=dT;function RT(t){t.registerChartView(LT),t.registerSeriesModel(nT),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,_t["curry"](AO,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,DO("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$j("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var NT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return mt(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(cf),ET=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return mt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=_t["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new El({style:gc(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new El({style:gc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),d=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!f&&!p,h.silent=!d&&!p,f&&l.on("click",(function(){Zh(f,"_"+t.get("target"))})),d&&h.on("click",(function(){Zh(d,"_"+t.get("subtarget"))})),Bl(l).eventData=Bl(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=ef(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var b=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new bl({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(x)}},e.type="title",e}(Rg);function BT(t){t.registerComponentModel(NT),t.registerComponentView(ET)}function zT(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return FT(n,t,e),n.seriesInvolved&&HT(n,t),n}function FT(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(_t["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=ZT(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(_t["each"])(n.getAxes(),Object(_t["curry"])(p,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),d=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||f)&&Object(_t["each"])(d.baseAxes,Object(_t["curry"])(p,!f||"cross",h)),f&&Object(_t["each"])(d.otherAxes,Object(_t["curry"])(p,"cross",!1))}}function p(r,s,u){var h=u.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||qT(h))){null==s&&(s=h.get("triggerTooltip")),h=r?VT(u,c,i,e,r,s):h;var d=h.get("snap"),p=ZT(u.model),g=s||d||"category"===u.type,v=t.axesInfo[p]={key:p,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:d,useHandle:qT(h),seriesModels:[],linkGroup:null};l[p]=v,t.seriesInvolved=t.seriesInvolved||g;var y=GT(o,u);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[p]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function VT(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(_t["each"])(s,(function(t){l[t]=Object(_t["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(_t["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new zc(l,n,r))}function HT(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(_t["each"])(t.coordSysAxesInfo[ZT(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function GT(t,e){for(var n=e.model,r=e.dim,i=0;i=0||t===e}function UT(t){var e=YT(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=qT(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),aa)return!0;if(o){var s=YT(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=JT(t).pointerEl=new a[i.type](tC(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=JT(t).labelEl=new El(tC(e.label));t.add(i),oC(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=JT(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=JT(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),oC(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Fy(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){be(t.event)},onmousedown:eC(this._onHandleDragMove,this,0,0),drift:eC(this._onHandleDragMove,this),ondragend:eC(this._onHandleDragEnd,this)}),r.add(i)),sC(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");_t["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,sm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){rC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,aC(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(aC(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(aC(r)),JT(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),lm(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function rC(t,e,n,r){iC(JT(n).lastProp,r)||(JT(n).lastProp=r,e?nc(n,r,t):(n.stopAnimation(),n.attr(r)))}function iC(t,e){if(_t["isObject"](t)&&_t["isObject"](e)){var n=!0;return _t["each"](e,(function(e,r){n=n&&iC(t[r],e)})),!!n}return t===e}function oC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function aC(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function sC(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var lC=nC,uC=Math.PI,cC=function(){function t(t,e){this.group=new Ei,this.opt=e,this.axisModel=t,Object(_t["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ei({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!hC[t]},t.prototype.add=function(t){hC[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=lo(e-t);return uo(o)?(i=n>0?"top":"bottom",r="center"):uo(o-uC)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),hC={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(Ut(s,s,a),Ut(l,l,a));var u=Object(_t["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Wv({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]);if(null!=h){var f=e.get(["axisLine","symbolSize"]);Object(_t["isString"])(h)&&(h=[h,h]),(Object(_t["isString"])(f)||Object(_t["isNumber"])(f))&&(f=[f,f]);var d=gb(e.get(["axisLine","symbolOffset"])||0,f),p=f[0],g=f[1];Object(_t["each"])([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==h[r]&&null!=h[r]){var i=db(h[r],-p/2,-g/2,p,g,u.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=mC(n,r,e,t),o=_C(n,r,e,t);if(dC(e,o,i),bC(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=EM(Object(_t["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));VM(a)}},axisName:function(t,e,n,r){var i=Object(_t["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),f=h[0]>h[1]?-1:1,d=["start"===s?h[0]-f*c:"end"===s?h[1]+f*c:(h[0]+h[1])/2,vC(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*uC/180),vC(s)?o=cC.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=fC(t.rotation,s,p||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Object(_t["retrieve"])(t.nameTruncateMaxWidth,v.maxWidth,a),b=new El({x:d[0],y:d[1],rotation:o.rotation,silent:cC.isLabelSilent(e),style:gc(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Uy({el:b,componentModel:e,itemName:i}),b.__fullText=i,b.anid="name",e.get("triggerEvent")){var _=cC.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Bl(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function fC(t,e,n,r){var i,o,a=lo(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return uo(a-uC/2)?(o=l?"bottom":"top",i="center"):uo(a-1.5*uC)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*uC&&a>uC/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function dC(t,e,n){if(!_S(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(pC(o),pC(u)):gC(o,a)&&(r?(pC(a),pC(c)):(pC(o),pC(u))),!1===i?(pC(s),pC(h)):gC(l,s)&&(i?(pC(l),pC(f)):(pC(s),pC(h)))}}function pC(t){t&&(t.ignore=!0)}function gC(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Lr([]);return Br(i,i,-t.rotation),n.applyTransform(Nr([],i,t.getLocalTransform())),r.applyTransform(Nr([],i,e.getLocalTransform())),n.intersect(r)}}function vC(t){return"middle"===t||"center"===t}function yC(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){qC("axisPointer",e)},e.prototype.dispose=function(t,e){qC("axisPointer",e)},e.type="axisPointer",e}(Rg),KC=ZC;function $C(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Uo(o,t);if(null==a||a<0||_t["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,d="x"===h||"radius"===h?1:0,p=o.mapDimension(f),g=[];g[d]=o.get(p,a),g[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(_t["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var QC=Yo();function JC(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(_t["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){uk(i)&&(i=$C({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=uk(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||uk(i),f={},d={},p={list:[],map:{}},g={showPointer:Object(_t["curry"])(nk,d),showTooltip:Object(_t["curry"])(rk,p)};Object(_t["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(_t["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=sk(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&tk(t,a,g,!1,f)}}))}));var v={};return Object(_t["each"])(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(_t["each"])(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,lk(e),lk(t)))),v[t.key]=o}}))})),Object(_t["each"])(v,(function(t,e){tk(c[e],t,g,!0,f)})),ik(d,c,f),ok(p,i,t,a),ak(c,a,n),f}}function tk(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=ek(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(_t["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function ek(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(_t["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);c=f.dataIndices,u=f.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,p=Math.abs(d);p<=a&&((p=0&&s<0)&&(a=p,s=d,i=u,o.length=0),Object(_t["each"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function nk(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function rk(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=ZT(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function ik(t,e,n){var r=n.axesInfo=[];Object(_t["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function ok(t,e,n,r){if(!uk(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function ak(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=QC(r)[i]||{},a=QC(r)[i]={};Object(_t["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(_t["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(_t["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(_t["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function sk(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function lk(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function uk(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function ck(t){QT.registerAxisPointerClass("CartesianAxisPointer",EC),t.registerComponentModel(zC),t.registerComponentView(KC),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(_t["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=zT(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},JC)}var hk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return mt(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(cf),fk=hk;function dk(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function pk(t){if(bt["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;l+=";"+a+":-"+d+"px";var p=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Sk(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=bt["a"].transformSupported?","+_k+r:",left"+r+",top"+r),bk+":"+i}function Mk(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!bt["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=bt["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+_k+":"+a+";":[["top",0],["left",0],[gk,a]]}function jk(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(_t["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function Tk(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=yg(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(Sk(i,n)),o&&r.push("background-color:"+o),Object(_t["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Nh(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(jk(c)),null!=h&&r.push("padding:"+Eh(h).join("px ")+"px"),r.join(";")+";"}function Ck(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&ie(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var kk=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,bt["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Ck(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();ge(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=mk(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=xk+Tk(t,!this._firstShow,this._longHide)+Mk(i[0],i[1],!0)+"border-color:"+qh(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(_t["isString"])(i)&&"item"===n.get("trigger")&&!dk(n)&&(a=Ok(n,r,i)),Object(_t["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(_t["isArray"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!bt["a"].node&&n.getDom()){var i=zk(r,n);this._ticket="";var o=r.dataByCoordSys,a=Wk(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=Nk;l.x=r.x,l.y=r.y,l.update(),Bl(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=$C(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(zk(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=Bk([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,Jm(n,(function(t){return null!=Bl(t).dataIndex?(o=t,!0):null!=Bl(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(_t["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=Bk([e.tooltipOption],r),a=this._renderMode,s=[],l=rg("section",{blocks:[],noHeader:!0}),u=[],c=new mg;Object(_t["each"])(t,(function(t){Object(_t["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=MC(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=rg("section",{header:o,noHeader:!Object(_t["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(_t["each"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=f.getDataParams(d);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=vS(e.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",qh(p.color),a);var g=dp(f.formatTooltip(d,!0,null)),v=g.frag;if(v){var y=Bk([f],r).get("valueFormatter");h.blocks.push(y?Object(_t["extend"])({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,f=o.get("order"),d=ug(l,c,a,f,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var p="richText"===a?"\n\n":"
",g=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Bl(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,f=t.positionDefault,d=Bk([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=d.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),v=new mg;g.marker=v.makeTooltipMarker("item",qh(g.color),h);var y=dp(s.formatTooltip(l,!1,u)),m=d.get("order"),b=d.get("valueFormatter"),_=y.frag,x=_?ug(b?Object(_t["extend"])({valueFormatter:b},_):_,v,h,m,r.get("useUTC"),d.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,x,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Bl(e),i=r.tooltipConfig,o=i.option||{};if(Object(_t["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=Bk(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),f=Math.random()+"",d=new mg;this._showOrMove(c,(function(){var n=Object(_t["clone"])(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,f,t.offsetX,t.offsetY,t.position,e,d)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),d=f.color;if(c)if(Object(_t["isString"])(c)){var p=t.ecModel.get("useUTC"),g=Object(_t["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=yh(g.axisValue,h,p)),h=Wh(h,n,!0)}else if(Object(_t["isFunction"])(c)){var y=Object(_t["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,y)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(_t["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(_t["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(_t["isFunction"])(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(_t["isArray"])(e))n=Ji(e[0],s),r=Ji(e[1],l);else if(Object(_t["isObject"])(e)){var d=e;d.width=u[0],d.height=u[1];var p=ef(d,{width:s,height:l});n=p.x,r=p.y,c=null,h=null}else if(Object(_t["isString"])(e)&&a){var g=Hk(e,f,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=Fk(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=Gk(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=Gk(h)?u[1]/2:"bottom"===h?u[1]:0),dk(t)){g=Vk(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(_t["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(_t["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(_t["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(_t["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!bt["a"].node&&e.getDom()&&(lm(this,"_updatePosition"),this._tooltipContent.dispose(),qC("itemTooltip",e))},e.type="tooltip",e}(Rg);function Bk(t,e,n){var r,i=e.ecModel;n?(r=new zc(n,i,i),r=new zc(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof zc&&(a=a.get("tooltip",!0)),Object(_t["isString"])(a)&&(a={formatter:a}),a&&(r=new zc(a,r,i)))}return r}function zk(t,e){return t.dispatchAction||Object(_t["bind"])(e.dispatchAction,e)}function Fk(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function Vk(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Hk(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function Gk(t){return"center"===t||"middle"===t}function Wk(t,e,n){var r=Zo(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=$o(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Bl(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var Uk=Ek;function Yk(t){tw(ck),t.registerComponentModel(fk),t.registerComponentView(Uk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_t["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_t["noop"])}var Xk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mt(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(cf),qk=Xk,Zk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ko).models[0]},e.type="cartesian2dAxis",e}(cf);_t["mixin"](Zk,wS);var Kk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},$k=_t["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Kk),Qk=_t["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Kk),Jk=_t["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Qk),tI=_t["defaults"]({logBase:10},Qk),eI={category:$k,value:Qk,time:Jk,log:tI},nI={value:1,category:1,time:1,log:1};function rI(t,e,n,r){Object(_t["each"])(nI,(function(i,o){var a=Object(_t["merge"])(Object(_t["merge"])({},eI[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return mt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=nf(this),r=n?of(t):{},i=e.getTheme();Object(_t["merge"])(t,i.get(o+"Axis")),Object(_t["merge"])(t,this.getDefaultOption()),t.type=iI(t),n&&rf(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=oO.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",iI)}function iI(t){return t.type||(t.data?"category":"value")}var oI=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return _t["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),_t["filter"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),aI=oI,sI=["x","y"];function lI(t){return"interval"===t.type||"time"===t.type}var uI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=sI,e}return mt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(lI(t)&&lI(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,h];this._invTransform=Fr([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Ut(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Ut(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new ci(n,r,i,o)},e}(aI),cI=uI,hI=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return mt(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(uM),fI=hI,dI=Math.log;function pI(t,e,n){var r=bO.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=cS(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var f=dI(t.base);u=[dI(u[0])/f,dI(u[1])/f]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=r.getInterval.call(t),g=u[0],v=u[1];if(c&&h)p=(v-g)/a;else if(c){v=u[0]+p*a;while(vu[0]&&isFinite(g)&&isFinite(u[0]))p=lO(p),g=u[1]-p*a}else{var y=t.getTicks().length-1;y>a&&(p=lO(p));var m=p*a;v=Math.ceil(u[1]/p)*p,g=to(v-m),g<0&&u[0]>=0?(g=0,v=to(m)):v>0&&u[1]<=0&&(v=0,g=-to(m))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+p*b,v+p*_),r.setInterval.call(t,p),(b||_)&&r.setNiceExtent.call(t,g+p,v-p)}var gI=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sI,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(_t["keys"])(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;aO(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(fS(u,l),aO(u)&&(e=s))}i.length&&(e||(e=i.pop(),fS(e.scale,e.model)),Object(_t["each"])(i,(function(t){pI(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(_t["each"])(n.x,(function(t){yI(n,"y",t,i)})),Object(_t["each"])(n.y,(function(t){yI(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=ef(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(_t["each"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),bI(t,e?o.x:o.y)}))}s(),i&&(Object(_t["each"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=yS(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Object(_t["each"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(_t["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},BI=function(){function t(t){var e=this._condVal=Object(_t["isString"])(t)?new RegExp(t):Object(_t["isRegExp"])(t)?t:null;if(null==e){var n="";0,Hf(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(_t["isString"])(e)?this._condVal.test(t):!!Object(_t["isNumber"])(e)&&this._condVal.test(t+"")},t}(),zI=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),FI=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(cf),nA=eA;function rA(t,e){var n=Eh(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new bl({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var iA=_t["curry"],oA=_t["each"],aA=Ei,sA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return mt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new aA),this.group.add(this._selectorGroup=new aA),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=ef(l,u,c),f=this.layoutInner(t,i,h,r,a,s),d=ef(_t["defaults"]({width:f.width,height:f.height},l),u,c);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rA(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=_t["createHashMap"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),oA(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new aA;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var d=f.getData(),p=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style"),y=this._createItem(f,a,o,i,e,t,p,v,g,u);y.on("click",iA(cA,a,null,r,c)).on("mouseover",iA(fA,f.name,null,r,c)).on("mouseout",iA(dA,f.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),f=s.getItemVisual(h,"style"),d=s.getItemVisual(h,"legendIcon"),p=Object(Dn["parse"])(f.fill);p&&0===p[3]&&(p[3]=.2,f=_t["extend"](_t["extend"]({},f),{fill:Object(Dn["stringify"])(p,"rgba")}));var g=this._createItem(n,a,o,i,e,t,{},f,d,u);g.on("click",iA(cA,null,a,r,c)).on("mouseover",iA(fA,null,a,r,c)).on("mouseout",iA(dA,null,a,r,c)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();oA(t,(function(t){var r=t.type,i=new El({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);dc(i,{normal:a,emphasis:s},{defaultText:t.title}),Fu(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u){var c=t.visualDrawType,h=i.get("itemWidth"),f=i.get("itemHeight"),d=i.isSelected(e),p=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),v=r.get("icon");l=v||l||"roundRect";var y=lA(l,r,a,s,c,d),m=new aA,b=r.getModel("textStyle");if(!_t["isFunction"](t.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===p?t.getData().getVisual("symbolRotate"):p:0;m.add(uA({itemWidth:h,itemHeight:f,icon:l,iconRotate:_,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else m.add(t.getLegendIcon({itemWidth:h,itemHeight:f,icon:l,iconRotate:p,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var x="left"===o?h+5:-5,w=o,O=i.get("formatter"),S=e;_t["isString"](O)&&O?S=O.replace("{name}",null!=e?e:""):_t["isFunction"](O)&&(S=O(e));var M=r.get("inactiveColor");m.add(new El({style:gc(b,{text:S,x:x,y:f/2,fill:d?b.getTextColor():M,align:w,verticalAlign:"middle"})}));var j=new bl({shape:m.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&Uy({el:j,componentModel:i,itemName:e,itemTooltipOption:T.option}),m.add(j),m.eachChild((function(t){t.silent=!0})),j.silent=!u,this.getContentGroup().add(m),Fu(m),m.__legendDataIndex=n,m},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();tf(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){tf("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),d=t.getOrient().index,p=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?h[d]+=l[p]+f:u[d]+=c[p]+f,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[p]=l[p]+f+c[p],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Rg);function lA(t,e,n,r,i,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),oA(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var s=e.getModel("itemStyle"),l=s.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke";l.decal=r.decal,"inherit"===l.fill&&(l.fill=r[i]),"inherit"===l.stroke&&(l.stroke=r[u]),"inherit"===l.opacity&&(l.opacity=("fill"===i?r:n).opacity),a(l,r);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(a(h,n),"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),d=l[u];l.lineWidth="auto"===f?r.lineWidth>0&&d?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function uA(t){var e=t.icon||"roundRect",n=db(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function cA(t,e,n,r){dA(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),fA(t,e,n,r)}function hA(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],p=[-h.x,-h.y];e||(p[r]=l[s]);var g=[0,0],v=[-f.x,-f.y],y=_t["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=h[o]/2-f[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(v);var b={x:0,y:0};if(b[i]=d?n[i]:h[i],b[o]=Math.max(h[o],f[o]),b[a]=Math.min(0,f[a]+v[1-r]),u.__rectSize=n[i],d){var _={x:0,y:0};_[i]=Math.max(n[i]-f[i]-y,0),_[o]=b[o],u.setClipPath(new bl({shape:_})),u.__rectSize=_[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&nc(l,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;_t["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",_t["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=OA[i],a=SA[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var d=m(u);f.contentPosition[i]=-d.s;for(var p=s+1,g=d,v=d,y=null;p<=c;++p)y=m(l[p]),(!y&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(p=s-1,g=d,v=d,y=null;p>=-1;--p)y=m(l[p]),y&&b(v,y.s)||!(g.i=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(pA),jA=MA;function TA(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function CA(t){tw(mA),t.registerComponentModel(xA),t.registerComponentView(jA),TA(t)}function kA(t){tw(mA),tw(CA)}var IA=Is.CMD;function AA(t,e){return Math.abs(t-e)<1e-5}function DA(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,f=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,r,i){AA(t,r)&&AA(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nS:T2&&l.push(e),l}function PA(t,e,n,r,i,o,a,s,l,u){if(AA(t,n)&&AA(e,r)&&AA(i,a)&&AA(o,s))l.push(a,s);else{var c=2/u,h=c*c,f=a-t,d=s-e,p=Math.sqrt(f*f+d*d);f/=p,d/=p;var g=n-t,v=r-e,y=i-a,m=o-s,b=g*g+v*v,_=y*y+m*m;if(b=0&&S=0)l.push(a,s);else{var M=[],j=[];mn(t,n,i,a,.5,M),mn(e,r,o,s,.5,j),PA(M[0],j[0],M[1],j[1],M[2],j[2],M[3],j[3],l,u),PA(M[4],j[4],M[5],j[5],M[6],j[6],M[7],j[7],l,u)}}}}function LA(t,e){var n=DA(t),r=[];e=e||1;for(var i=0;i0)for(u=0;uMath.abs(u),h=RA([l,u],c?0:1,e),f=(c?s:u)/h.length,d=0;di,a=RA([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,f=0;f1?null:new ti(g*l+t,g*u+e)}function FA(t,e,n){var r=new ti;ti.sub(r,n,e),r.normalize();var i=new ti;ti.sub(i,t,e);var o=i.dot(r);return o}function VA(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function HA(t,e,n){for(var r=t.length,i=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),HA(e,u,c)}function WA(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);WA(t,o[0],i,r),WA(t,o[1],n-i,r)}return r}function UA(t,e){for(var n=[],r=0;r0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var O=Math.sin(w),S=Math.cos(w),M=0;for(b=0;b0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function cD(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(_t["map"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(_t["map"])(o,(function(o,a){return{cp:o,z:uD(o[0],o[1],e,n,r,i),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function hD(t){return qA(t.path,t.count)}function fD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dD(t,e,n){var r=[];function i(t){for(var e=0;e=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var yD={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);gD(t)&&(s=t,l=e),gD(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,f=s?vD(l,s):vD(h?e:t,[h?t:e]),d=0,p=0;p_D))for(var r=n.getIndices(),i=wD(n),o=0;o0&&i.group.traverse((function(t){t instanceof nl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function ID(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function AD(t){return Object(_t["isArray"])(t)?t.sort().join(","):t}function DD(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function PD(t,e){var n=Object(_t["createHashMap"])(),r=Object(_t["createHashMap"])(),i=Object(_t["createHashMap"])();return Object(_t["each"])(t.oldSeries,(function(e,n){var o=t.oldData[n],a=ID(e),s=AD(a);r.set(s,o),Object(_t["isArray"])(a)&&Object(_t["each"])(a,(function(t){i.set(t,{data:o,key:s})}))})),Object(_t["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=ID(t),a=AD(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:DD(s),data:s}],newSeries:[{divide:DD(e),data:e}]});else if(Object(_t["isArray"])(o)){0;var l=[];Object(_t["each"])(o,(function(t){var e=r.get(t);e&&l.push({divide:DD(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:DD(e)}]})}else{var u=i.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:DD(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:e,divide:DD(e)})}}}})),n}function LD(t,e){for(var n=0;n=0&&i.push({data:e.oldData[n],divide:DD(e.oldData[n]),dim:t.dimension})})),Object(_t["each"])(jo(t.to),(function(t){var e=LD(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:DD(r),dim:t.dimension})}})),i.length>0&&o.length>0&&kD(i,o,r)}function ND(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(_t["each"])(jo(n.seriesTransition),(function(t){Object(_t["each"])(jo(t.to),(function(t){for(var e=n.updatedSeries,r=0;r=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=f.dpr,x=0;x0&&t>r[0]){for(s=0;st)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?HD:0),this._needsManuallyCompositing),u.__builtin__||_t["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&We&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,_t["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?_t["merge"](n[t],e,!0):n[t]=e;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return Number(t)-Number(e)},n=Object.keys(t);if(!n.length)return{};var r={};return n.sort(e).forEach((function(e){return r[e]=t[e]})),r},eP=function(t,e){if(!e)return{};e=tP(e);var n=Object.keys(e),r={tooltip:{trigger:"axis"},yAxis:{type:"value"},xAxis:{type:"category",data:n.map((function(t){return Object(L["b"])(t)})),axisTick:{alignWithLabel:!0,interval:0}},grid:{top:40,bottom:50}};t&&(r.title={left:"center",text:t});var i={};return Object.values(e).forEach((function(t){var e=Object.keys(t);e.forEach((function(e){var n=JD["a"].global.t(e);i[n]||(i[n]=[]),i[n].push(t[e])}))})),r.legend={top:"bottom",data:Object.keys(i),lineStyle:{opacity:0}},r.series=Object.keys(i).map((function(t){return{name:t,type:"line",symbol:"circle",data:i[t]}})),r},nP=(n("caad"),n("2532"),n("b0c0"),n("3ca3"),n("ddb0"),n("434d")),rP=n("35c8"),iP=n("f38b"),oP={class:"branch-selector"},aP={class:"branch-btn-label"},sP={class:"branch-selector-search"},lP=["onClick"],uP={class:"item-icon"},cP={class:"item-label"},hP={key:1,class:"empty-tips"},fP=["onClick"],dP={class:"item-icon"},pP={class:"item-label"},gP={key:1,class:"empty-tips"},vP={class:"g-mr-4"},yP={class:"g-mr-4"},mP={class:"g-ml-24"},bP=Object(p["defineComponent"])({props:{catalog:String,db:String,table:String,disabled:Boolean},emits:["refChange"],setup:function(t,e){var n=e.emit,r=t,i=Object(A["b"])(),o=(i.t,Object(p["computed"])((function(){return r.disabled}))),a=Object(p["ref"])({value:"",type:iP["a"].BRANCH,label:""}),s=Object(p["ref"])(""),l=Object(p["ref"])(""),u=Object(p["ref"])(iP["a"].BRANCH),c=Object(p["ref"])([]),h=Object(p["ref"])([]),f=Object(p["computed"])((function(){return c.value.filter((function(t){return!s.value||t.label.includes(s.value)}))})),d=Object(p["computed"])((function(){return h.value.filter((function(t){return!l.value||t.label.includes(l.value)}))})),g=Object(p["ref"])(iP["c"].ALL),v=Object(p["reactive"])([iP["c"].ALL,iP["c"].OPTIMIZING,iP["c"].NONOPTIMIZING]),y=function(t){t.stopPropagation()},m=function(t){return t.parentNode||document.body},b=function(t){a.value=t,g.value=iP["c"].ALL,n("refChange",{ref:t.value,operation:iP["c"].ALL})},_=function(t){n("refChange",{ref:a.value.value,operation:t})},x=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(P["b"])(r);case 2:e=t.sent,c.value=(e.list||[]).map((function(t){return{value:t.name,label:t.name,type:iP["a"].BRANCH}})),c.value.length&&b(c.value[0]);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),w=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(P["n"])(r);case 2:e=t.sent,h.value=(e.list||[]).map((function(t){return{value:t.name,label:t.name,type:iP["a"].TAG}}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),O=function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([x(),w()]);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(p["onMounted"])((function(){u.value=iP["a"].BRANCH,O()})),function(t,e){var n=Object(p["resolveComponent"])("svg-icon"),r=Object(p["resolveComponent"])("a-button"),i=Object(p["resolveComponent"])("a-input"),x=Object(p["resolveComponent"])("a-tab-pane"),w=Object(p["resolveComponent"])("a-tabs"),O=Object(p["resolveComponent"])("a-dropdown"),S=Object(p["resolveComponent"])("a-select-option"),M=Object(p["resolveComponent"])("a-select");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",oP,[Object(p["createVNode"])(O,{trigger:["click"],placement:"bottomLeft",getPopupContainer:m},{overlay:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("div",null,[Object(p["createElementVNode"])("div",sP,[Object(p["withDirectives"])(Object(p["createVNode"])(i,{value:s.value,"onUpdate:value":e[0]||(e[0]=function(t){return s.value=t}),placeholder:t.$t("Filter branches/tags"),onClick:y},null,8,["value","placeholder"]),[[p["vShow"],u.value===Object(p["unref"])(iP["a"]).BRANCH]]),Object(p["withDirectives"])(Object(p["createVNode"])(i,{value:l.value,"onUpdate:value":e[1]||(e[1]=function(t){return l.value=t}),placeholder:t.$t("Filter branches/tags"),onClick:y},null,8,["value","placeholder"]),[[p["vShow"],u.value===Object(p["unref"])(iP["a"]).TAG]])]),Object(p["createVNode"])(w,{activeKey:u.value,"onUpdate:activeKey":e[2]||(e[2]=function(t){return u.value=t}),type:"card"},{default:Object(p["withCtx"])((function(){return[(Object(p["openBlock"])(),Object(p["createBlock"])(x,{key:Object(p["unref"])(iP["a"]).BRANCH,tab:"Branches"},{default:Object(p["withCtx"])((function(){return[Object(p["unref"])(f).length?(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],{key:0},Object(p["renderList"])(Object(p["unref"])(f),(function(t,e){return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:function(e){return b(t)}},[Object(p["createElementVNode"])("div",uP,[t.value===a.value.value?(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["unref"])(nP["a"]),{key:0})):Object(p["createCommentVNode"])("",!0)]),Object(p["createElementVNode"])("span",cP,Object(p["toDisplayString"])(t.label),1)],8,lP)})),128)):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",hP,Object(p["toDisplayString"])(t.$t("nothingToShow")),1))]})),_:1})),(Object(p["openBlock"])(),Object(p["createBlock"])(x,{key:Object(p["unref"])(iP["a"]).TAG,tab:"Tags"},{default:Object(p["withCtx"])((function(){return[Object(p["unref"])(d).length?(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],{key:0},Object(p["renderList"])(Object(p["unref"])(d),(function(t,e){return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:function(e){return b(t)}},[Object(p["createElementVNode"])("div",dP,[t.value===a.value.value?(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["unref"])(nP["a"]),{key:0})):Object(p["createCommentVNode"])("",!0)]),Object(p["createElementVNode"])("span",pP,Object(p["toDisplayString"])(t.label),1)],8,fP)})),128)):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",gP,Object(p["toDisplayString"])(t.$t("nothingToShow")),1))]})),_:1}))]})),_:1},8,["activeKey"])])]})),default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{class:"branch-btn",disabled:!a.value.value||Object(p["unref"])(o)},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":a.value.type,class:"g-mr-8"},null,8,["icon-class"]),Object(p["createElementVNode"])("span",aP,Object(p["toDisplayString"])(a.value.label),1),Object(p["createVNode"])(Object(p["unref"])(rP["a"]))]})),_:1},8,["disabled"])]})),_:1}),Object(p["createElementVNode"])("div",null,[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":"branch",class:"g-mr-4 g-ml-16"}),Object(p["createElementVNode"])("span",vP,Object(p["toDisplayString"])(c.value.length),1),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(t.$t("branches")),1)]),Object(p["createElementVNode"])("div",null,[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":"tag",class:"g-mr-4 g-ml-16"}),Object(p["createElementVNode"])("span",yP,Object(p["toDisplayString"])(h.value.length),1),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(t.$t("tags")),1)]),Object(p["createElementVNode"])("div",mP,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("operation"))+": ",1),Object(p["createVNode"])(M,{class:"g-ml-8",value:g.value,"onUpdate:value":e[3]||(e[3]=function(t){return g.value=t}),style:{width:"160px"},disabled:Object(p["unref"])(o),onChange:_},{default:Object(p["withCtx"])((function(){return[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(Object(p["unref"])(v),(function(t){return Object(p["openBlock"])(),Object(p["createBlock"])(S,{value:t,key:t},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value","disabled"])])])}}});n("1448");const _P=bP;var xP=_P,wP={class:"table-snapshots"},OP=Object(p["createTextVNode"])("All"),SP=Object(p["defineComponent"])({setup:function(t){var e=Object(p["ref"])(!1),n=Object(A["b"])(),r=n.t,i=Object(p["shallowReactive"])([{title:r("snapshotId"),dataIndex:"snapshotId",ellipsis:!0},{title:r("operation"),dataIndex:"operation"},{title:r("records"),dataIndex:"records"},{title:r("fileCount"),dataIndex:"fileCount"},{title:r("commitTime"),dataIndex:"commitTime"}]),o=Object(p["shallowReactive"])([{title:r("operation"),dataIndex:"operation",width:120,ellipsis:!0},{title:r("file"),dataIndex:"file",ellipsis:!0},{title:r("partition"),dataIndex:"partition",width:120},{title:r("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:r("size"),dataIndex:"size",width:120},{title:r("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:r("path"),dataIndex:"path",ellipsis:!0}]),a=Object(p["reactive"])([]),s=Object(p["reactive"])([]),l=Object(p["ref"])(""),u=Object(p["ref"])(!1),c=Object(p["reactive"])(Object(et["a"])()),h=Object(p["reactive"])(Object(et["a"])()),f=Object(D["d"])(),d=f.query,g=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},d)),v=Object(p["ref"])({}),y=Object(p["ref"])({}),m=Object(p["ref"])(""),b=Object(p["ref"])(""),_=function(t){m.value=t.ref,b.value=t.operation,x()};function x(){return w.apply(this,arguments)}function w(){return w=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,i,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,u.value=!0,a.length=0,t.next=5,Object(P["k"])(Object(k["a"])(Object(k["a"])({},g),{},{ref:m.value,operation:b.value,page:c.current,pageSize:c.pageSize}));case 5:e=t.sent,n=e.list,i=void 0===n?[]:n,o=e.total,s={},l={},i.forEach((function(t){var e=t.recordsSummaryForChart,n=t.filesSummaryForChart,r=t.commitTime;s[r]=e||{},l[r]=n||{},"OPTIMIZE"===t.producer&&(t.operation=t.operation+"(optimizing)"),t.commitTime=t.commitTime?Object(L["b"])(t.commitTime):"",a.push(t)})),v.value=eP(r("recordChartTitle"),s),y.value=eP(r("fileChartTitle"),l),c.total=o,t.next=17;break;case 15:t.prev=15,t.t0=t["catch"](0);case 17:return t.prev=17,u.value=!1,t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[0,15,17,20]])}))),w.apply(this,arguments)}function O(t){var n=t.current,r=void 0===n?1:n,i=t.pageSize,o=void 0===i?25:i;e.value?(h.current=r,o!==h.pageSize&&(h.current=1),h.pageSize=o):(c.current=r,o!==c.pageSize&&(c.current=1),c.pageSize=o),S()}function S(){e.value?M():x()}function M(){return j.apply(this,arguments)}function j(){return j=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,s.length=0,u.value=!0,e=Object(k["a"])(Object(k["a"])({},g),{},{snapshotId:l.value,page:h.current,pageSize:h.pageSize}),t.next=6,Object(P["e"])(e);case 6:n=t.sent,r=n.list,i=n.total,h.total=i,r.forEach((function(t){t.commitTime=t.commitTime?Object(L["b"])(t.commitTime):"",s.push(t)})),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:return t.prev=14,u.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,12,14,17]])}))),j.apply(this,arguments)}function T(t){l.value=t.snapshotId,e.value=!e.value,e.value&&(h.current=1,M())}return Object(p["onMounted"])((function(){e.value=!1})),function(t,n){var r=Object(p["resolveComponent"])("a-col"),f=Object(p["resolveComponent"])("a-row"),d=Object(p["resolveComponent"])("a-button"),m=Object(p["resolveComponent"])("a-table"),b=Object(p["resolveComponent"])("a-breadcrumb-item"),x=Object(p["resolveComponent"])("a-breadcrumb"),w=Object(p["resolveComponent"])("a-tooltip");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",wP,[e.value?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createVNode"])(x,{separator:">"},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(b,{onClick:T,class:"text-active"},{default:Object(p["withCtx"])((function(){return[OP]})),_:1}),Object(p["createVNode"])(b,null,{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])("".concat(t.$t("snapshotId")," ").concat(l.value)),1)]})),_:1})]})),_:1}),Object(p["createVNode"])(m,{rowKey:"file",columns:Object(p["unref"])(o),"data-source":Object(p["unref"])(s),pagination:Object(p["unref"])(h),loading:u.value,onChange:O,class:"g-mt-8"},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["path"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(w,{key:0},{title:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.path),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.path),1)]})),_:2},1024)):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])],64)):(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createVNode"])(f,null,{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{span:12},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(QD,{loading:u.value,options:v.value},null,8,["loading","options"])]})),_:1}),Object(p["createVNode"])(r,{span:12},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(QD,{loading:u.value,options:y.value},null,8,["loading","options"])]})),_:1})]})),_:1}),Object(p["createVNode"])(xP,{catalog:Object(p["unref"])(g).catalog,db:Object(p["unref"])(g).db,table:Object(p["unref"])(g).table,disabled:u.value,onRefChange:_},null,8,["catalog","db","table","disabled"]),Object(p["createVNode"])(m,{rowKey:"snapshotId",columns:Object(p["unref"])(i),"data-source":Object(p["unref"])(a),pagination:Object(p["unref"])(c),loading:u.value,onChange:O},{bodyCell:Object(p["withCtx"])((function(t){var e=t.column,n=t.record;return["snapshotId"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(d,{key:0,type:"link",onClick:function(t){return T(n)}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(n.snapshotId),1)]})),_:2},1032,["onClick"])):Object(p["createCommentVNode"])("",!0)]})),expandedRowRender:Object(p["withCtx"])((function(t){var e=t.record;return[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(e.summary,(function(t,e){return Object(p["openBlock"])(),Object(p["createBlock"])(f,{type:"flex",gutter:16,key:e},{default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(r,{flex:"220px",style:{"text-align":"right"}},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e)+" :",1)]})),_:2},1024),Object(p["createVNode"])(r,{flex:"auto"},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]})),_:2},1024)]})),_:2},1024)})),128))]})),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("b328");const MP=Q()(SP,[["__scopeId","data-v-21a1677f"]]);var jP=MP,TP=(n("cd17"),n("ed3b")),CP=n("2909"),kP=n("3c7f"),IP=function(t){return Object(p["pushScopeId"])("data-v-7de44d54"),t=t(),Object(p["popScopeId"])(),t},AP={class:"table-optinize"},DP={class:""},PP=IP((function(){return Object(p["createElementVNode"])("div",{class:""},"success / total",-1)})),LP={class:""},RP=IP((function(){return Object(p["createElementVNode"])("div",{class:""},"size / count",-1)})),NP={class:""},EP=IP((function(){return Object(p["createElementVNode"])("div",{class:""},"size / count",-1)})),BP={key:0,class:"g-flex-ac"},zP={class:"tip-title"},FP=Object(p["defineComponent"])({setup:function(t){var e=Object(p["shallowReactive"])({RUNNING:{title:"RUNNING",color:"#1890ff"},CLOSED:{title:"CLOSED",color:"#c9cdd4"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},FAILED:{title:"FAILED",color:"#f5222d"}}),n=Object(A["b"])(),r=n.t,i=Object(p["shallowReactive"])([{title:r("processId"),dataIndex:"processId"},{title:r("startTime"),dataIndex:"startTime"},{title:r("type"),dataIndex:"optimizingType"},{title:r("status"),dataIndex:"status"},{title:r("duration"),dataIndex:"duration"},{title:r("tasks"),dataIndex:"tasks"},{title:r("finishTime"),dataIndex:"finishTime"},{title:r("input"),dataIndex:"inputFiles"},{title:r("output"),dataIndex:"outputFiles"}]),o=Object(p["reactive"])([]),a=Object(p["ref"])(!1),s=Object(p["ref"])(!0),l=Object(p["ref"])(""),u=Object(p["reactive"])(Object(et["a"])()),c=Object(D["d"])(),h=c.query,f=Object(p["reactive"])(Object(k["a"])({catalog:"",db:"",table:""},h));function d(){return g.apply(this,arguments)}function g(){return g=Object(I["a"])(regeneratorRuntime.mark((function t(){var e,n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a.value=!0,o.length=0,t.next=5,Object(P["h"])(Object(k["a"])(Object(k["a"])({},f),{},{page:u.current,pageSize:u.pageSize}));case 5:e=t.sent,n=e.list,r=e.total,i=void 0===r?0:r,u.total=i,o.push.apply(o,Object(CP["a"])(Object(CP["a"])(n||[]).map((function(t){var e=t.inputFiles,n=void 0===e?{}:e,r=t.outputFiles,i=void 0===r?{}:r;return"RUNNING"===t.status&&(s.value=!1,l.value=t.processId),Object(k["a"])(Object(k["a"])({},t),{},{startTime:t.startTime?Object(L["b"])(t.startTime):"-",finishTime:t.finishTime?Object(L["b"])(t.finishTime):"-",optimizingType:t.optimizingType?t.optimizingType:"-",duration:Object(L["e"])(t.duration||"-"),inputFiles:"".concat(Object(L["a"])(n.totalSize)," / ").concat(n.fileCnt),outputFiles:"".concat(Object(L["a"])(i.totalSize)," / ").concat(i.fileCnt),tasks:"".concat(t.successTasks||"-"," / ").concat(t.totalTasks||"-").concat(t.runningTasks?" (".concat(t.runningTasks," running)"):"")})})))),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:return t.prev=14,a.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,12,14,17]])}))),g.apply(this,arguments)}function v(){return y.apply(this,arguments)}function y(){return y=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:TP["a"].confirm({title:r("cancelOptimizingProcessOptModalTitle"),content:"",okText:"",cancelText:"",onOk:function(){var t=Object(I["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a.value=!0,t.next=4,Object(P["a"])(Object(k["a"])(Object(k["a"])({},f),{},{processId:l.value}));case 4:t.sent,s.value=!0,d(),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}()});case 1:case"end":return t.stop()}}),t)}))),y.apply(this,arguments)}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,e=t.current,n=void 0===e?1:e,r=t.pageSize,i=void 0===r?25:r;u.current=n,i!==u.pageSize&&(u.current=1),u.pageSize=i,d()}return Object(p["onMounted"])((function(){d()})),function(t,n){var l=Object(p["resolveComponent"])("a-button"),c=Object(p["resolveComponent"])("a-tooltip"),h=Object(p["resolveComponent"])("a-table");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",AP,[Object(p["createVNode"])(l,{type:"primary",disabled:s.value,"onUpdate:disabled":n[0]||(n[0]=function(t){return s.value=t}),class:"g-mb-16",onClick:v},{default:Object(p["withCtx"])((function(){return[Object(p["createTextVNode"])(Object(p["toDisplayString"])(Object(p["unref"])(r)("cancel")),1)]})),_:1},8,["disabled"]),Object(p["createVNode"])(h,{rowKey:"processId",columns:Object(p["unref"])(i),"data-source":Object(p["unref"])(o),pagination:Object(p["unref"])(u),onChange:m,loading:a.value},{headerCell:Object(p["withCtx"])((function(t){var e=t.column;return["tasks"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createElementVNode"])("div",DP,Object(p["toDisplayString"])(e.title),1),PP],64)):Object(p["createCommentVNode"])("",!0),"inputFiles"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createElementVNode"])("div",LP,Object(p["toDisplayString"])(e.title),1),RP],64)):Object(p["createCommentVNode"])("",!0),"outputFiles"===e.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:2},[Object(p["createElementVNode"])("div",NP,Object(p["toDisplayString"])(e.title),1),EP],64)):Object(p["createCommentVNode"])("",!0)]})),bodyCell:Object(p["withCtx"])((function(t){var n=t.record,r=t.column;return["status"===r.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",BP,[Object(p["createElementVNode"])("span",{style:Object(p["normalizeStyle"])({"background-color":(Object(p["unref"])(e)[n.status]||{}).color}),class:"status-icon"},null,4),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(n.status),1),"FAILED"===n.status?(Object(p["openBlock"])(),Object(p["createBlock"])(c,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:Object(p["withCtx"])((function(){return[Object(p["createElementVNode"])("div",zP,Object(p["toDisplayString"])(n.failReason),1)]})),default:Object(p["withCtx"])((function(){return[Object(p["createVNode"])(Object(p["unref"])(kP["a"]))]})),_:2},1024)):Object(p["createCommentVNode"])("",!0)])):Object(p["createCommentVNode"])("",!0)]})),_:1},8,["columns","data-source","pagination","loading"])])}}});n("614d"),n("add7");const VP=Q()(FP,[["__scopeId","data-v-7de44d54"]]);var HP=VP,GP=n("0613"),WP=Object(p["defineComponent"])({name:"Tables",components:{UDetails:tt,UFiles:at,UOperations:gt,USnapshots:jP,UOptimized:HP},setup:function(){var t=Object(D["e"])(),e=Object(D["d"])(),n=Object(GP["a"])(),r=Object(p["ref"])(),i=Object(p["shallowReactive"])([{key:"Snapshots",label:"Snapshots"},{key:"Optimized",label:"Optimizing"},{key:"Operations",label:"Operations"}]),o=Object(p["reactive"])({activeKey:"Details",isSecondaryNav:!1,baseInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},detailLoaded:!1}),a=Object(p["computed"])((function(){return"ICEBERG"===o.baseInfo.tableType})),s=function(t){o.detailLoaded=!0,o.baseInfo=Object(k["a"])({},t)},l=function(n){var r=Object(k["a"])({},e.query);r.tab=n,t.replace({query:Object(k["a"])({},r)})},u=function(){},c=function(){},h=function(){n.updateTablesMenu(!1)},f=function(){o.isSecondaryNav=!1,t.back()};return Object(p["watch"])((function(){return e.path}),(function(){o.isSecondaryNav=!!(e.path.indexOf("create")>-1)}),{immediate:!0}),Object(p["watch"])((function(){return e.query}),(function(t,e){var n=t.catalog,r=t.db,i=t.table,a=e.catalog,s=e.db,l=e.table;"".concat(n).concat(r).concat(i)==="".concat(a).concat(s).concat(l)?o.activeKey=t.tab:o.activeKey="Details"})),Object(p["onMounted"])((function(){var t;o.activeKey=(null===(t=e.query)||void 0===t?void 0:t.tab)||"Details",Object(p["nextTick"])((function(){r.value&&r.value.getTableDetails()}))})),Object(k["a"])(Object(k["a"])({},Object(p["toRefs"])(o)),{},{tabConfigs:i,store:n,isIceberg:a,editTable:u,delTable:c,setBaseDetailInfo:s,hideTablesMenu:h,goBack:f,onChangeTab:l})}});n("e353");const UP=Q()(WP,[["render",C],["__scopeId","data-v-3ca83c09"]]);e["default"]=UP},c3a6:function(t,e,n){},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},d360:function(t,e,n){},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},d998:function(t,e,n){var r=n("342f");t.exports=/MSIE|Trident/.test(r)},da03b:function(t,e,n){"use strict";n("ef8b")},df0a:function(t,e,n){},e353:function(t,e,n){"use strict";n("3cc0")},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},ee38:function(t,e,n){},ef8b:function(t,e,n){},f38b:function(t,e,n){"use strict";var r,i,o,a,s;n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),function(t){t["Created"]="#f5f5f5",t["Failed"]="#fff2f0",t["Finished"]="#f6ffed",t["Canceled"]="#f5f5f5"}(r||(r={})),function(t){t["failed"]="FAILED",t["upgrading"]="UPGRADING",t["success"]="SUCCESS",t["none"]="NONE"}(i||(i={})),function(t){t["ICEBERG"]="iceberg",t["ARCTIC"]="amoro",t["HIVE"]="hive",t["PAIMON"]="paimon"}(o||(o={})),function(t){t["BRANCH"]="branch",t["TAG"]="tag"}(a||(a={})),function(t){t["ALL"]="all",t["OPTIMIZING"]="optimizing",t["NONOPTIMIZING"]="non-optimizing"}(s||(s={}))}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-7746c7af.311e5b3c.js b/ams/dashboard/src/main/resources/static/js/chunk-7746c7af.311e5b3c.js deleted file mode 100644 index 3a3640c7d4..0000000000 --- a/ams/dashboard/src/main/resources/static/js/chunk-7746c7af.311e5b3c.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7746c7af"],{"1ccf":function(e,t,n){"use strict";n("1e91")},"1e91":function(e,t,n){},"1fe5":function(e,t,n){"use strict";n("27a2")},2532:function(e,t,n){"use strict";var i=n("23e7"),a=n("e330"),o=n("5a34"),c=n("1d80"),r=n("577e"),s=n("ab13"),l=a("".indexOf);i({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~l(r(c(this)),r(o(e)),arguments.length>1?arguments[1]:void 0)}})},"27a2":function(e,t,n){},"3c7f":function(e,t,n){"use strict";var i=n("7a23"),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=a,c=n("b3f0");function r(e){for(var t=1;t2)if(l=j(l),t=T(l,0),43===t||45===t){if(n=T(l,2),88===n||120===n)return NaN}else if(48===t){switch(T(l,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+l}for(o=y(l,2),c=o.length,r=0;ra)return NaN;return parseInt(o,i)}return+l};if(c(v,!O(" 0o1")||!O("0b1")||O("+0x1"))){for(var w,I=function(e){var t=arguments.length<1?0:O(z(e)),n=this;return u(g,n)&&p((function(){m(n)}))?l(Object(t),n,I):t},L=i?h(O):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),S=0;L.length>S;S++)s(O,w=L[S])&&!s(I,w)&&M(I,w,f(O,w));I.prototype=g,g.constructor=I,r(a,v,I)}},ac31:function(e,t,n){},bb51:function(e,t,n){"use strict";n.r(t);var i=n("7a23"),a={class:"layout"},o={class:"right-content"},c={class:"content"};function r(e,t,n,r,s,l){var u=Object(i["resolveComponent"])("side-bar"),d=Object(i["resolveComponent"])("top-bar"),b=Object(i["resolveComponent"])("router-view");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",a,[Object(i["createVNode"])(u),Object(i["createElementVNode"])("div",o,[e.showTopBar?(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:0})):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",c,[Object(i["createVNode"])(b)])])])}var s=n("46fe"),l=n.n(s),u=n("f171"),d=n.n(u),b=function(e){return Object(i["pushScopeId"])("data-v-c08cb56c"),e=e(),Object(i["popScopeId"])(),e},p=b((function(){return Object(i["createElementVNode"])("img",{src:l.a,class:"logo-img",alt:""},null,-1)})),h={src:d.a,class:"arctic-name",alt:""};function f(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("svg-icon"),s=Object(i["resolveComponent"])("a-menu-item"),l=Object(i["resolveComponent"])("a-menu"),u=Object(i["resolveComponent"])("MenuUnfoldOutlined"),d=Object(i["resolveComponent"])("MenuFoldOutlined"),b=Object(i["resolveComponent"])("a-button"),f=Object(i["resolveComponent"])("TableMenu");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])([{"side-bar-collapsed":e.collapsed},"side-bar"])},[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])([{"logo-collapsed":e.collapsed},"logo g-flex-ae"]),onMouseenter:t[0]||(t[0]=function(t){return e.toggleTablesMenu(!1)}),onClick:t[1]||(t[1]=function(){return e.viewIntroduce&&e.viewIntroduce.apply(e,arguments)})},[p,Object(i["withDirectives"])(Object(i["createElementVNode"])("img",h,null,512),[[i["vShow"],!e.collapsed]])],34),Object(i["createVNode"])(l,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[2]||(t[2]=function(t){return e.selectedKeys=t}),mode:"inline",theme:"dark","inline-collapsed":e.collapsed},{default:Object(i["withCtx"])((function(){return[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.menuList,(function(t){return Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:t.key,onClick:function(n){return e.navClick(t)},onMouseenter:function(n){return e.mouseenter(t)},class:Object(i["normalizeClass"])({"active-color":e.store.isShowTablesMenu&&"tables"===t.key,"table-item-tab":"tables"===t.key})},{icon:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(r,{"icon-class":t.icon,class:"svg-icon"},null,8,["icon-class"])]})),default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.$t(t.title)),1)]})),_:2},1032,["onClick","onMouseenter","class"])})),128))]})),_:1},8,["selectedKeys","inline-collapsed"]),Object(i["createVNode"])(b,{type:"link",onClick:e.toggleCollapsed,class:"toggle-btn"},{default:Object(i["withCtx"])((function(){return[e.collapsed?(Object(i["openBlock"])(),Object(i["createBlock"])(u,{key:0})):(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:1}))]})),_:1},8,["onClick"]),e.store.isShowTablesMenu&&!e.hasToken?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,onClick:t[3]||(t[3]=Object(i["withModifiers"])((function(t){return e.toggleTablesMenu(!1)}),["self"])),onMouseleave:t[4]||(t[4]=function(t){return e.toggleTablesMenu(!1)}),onMouseenter:t[5]||(t[5]=function(t){return e.toggleTablesMenu(!0)}),class:Object(i["normalizeClass"])([{"collapsed-sub-menu":e.collapsed},"tables-menu-wrap"])},[Object(i["createVNode"])(f,{onGoCreatePage:e.goCreatePage},null,8,["onGoCreatePage"])],34)):Object(i["createCommentVNode"])("",!0)],2)}var M=n("5530"),m=(n("ac1f"),n("1276"),n("caad"),n("2532"),n("5319"),n("6c02")),j=n("0613"),v={class:"tables-menu"},O={class:"select-catalog g-flex-ac"},g={class:"label"},N={class:"tables-wrap g-flex"},y={class:"database-list"},T={class:"list-wrap"},z={class:"add g-flex-jsb"},D={class:"label"},w={class:"filter-wrap"},I={class:"table-list"},L={class:"list-wrap"},S={class:"add g-flex-jsb"},k={class:"label"},E={class:"filter-wrap"};function C(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("a-select"),s=Object(i["resolveComponent"])("SearchOutlined"),l=Object(i["resolveComponent"])("CloseCircleOutlined"),u=Object(i["resolveComponent"])("a-input-search"),d=Object(i["resolveComponent"])("u-loading"),b=Object(i["resolveComponent"])("virtual-recycle-scroller"),p=Object(i["resolveComponent"])("createDB-modal");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createElementVNode"])("div",v,[Object(i["createElementVNode"])("div",O,[Object(i["createElementVNode"])("span",g,Object(i["toDisplayString"])(e.$t("catalog")),1),Object(i["createVNode"])(r,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=function(t){return e.curCatalog=t}),options:e.catalogOptions,onChange:e.catalogChange,loading:e.catalogLoading,getPopupContainer:e.getPopupContainer,class:"theme-dark"},null,8,["value","options","onChange","loading","getPopupContainer"])]),Object(i["createElementVNode"])("div",N,[Object(i["createElementVNode"])("div",y,[Object(i["createElementVNode"])("div",T,[Object(i["createElementVNode"])("div",z,[Object(i["createElementVNode"])("span",D,Object(i["toDisplayString"])(e.$t("database",2)),1)]),Object(i["createElementVNode"])("div",w,[Object(i["createVNode"])(u,{value:e.DBSearchInput,"onUpdate:value":t[2]||(t[2]=function(t){return e.DBSearchInput=t}),placeholder:e.placeholder.filterDBPh,onChange:t[3]||(t[3]=function(t){return e.handleSearch("db",t)}),class:"theme-dark"},Object(i["createSlots"])({prefix:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(s)]})),_:2},[e.DBSearchInput?{name:"suffix",fn:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{onClick:t[1]||(t[1]=function(t){return e.clearSearch("db")}),class:"input-clear-icon"})]}))}:void 0]),1032,["value","placeholder"])]),e.loading?(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:0})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(b,{loading:e.loading,items:e.databaseList,activeItem:e.database,itemSize:40,onHandleClickTable:e.handleClickDb,iconName:"database"},null,8,["loading","items","activeItem","onHandleClickTable"])])]),Object(i["createElementVNode"])("div",I,[Object(i["createElementVNode"])("div",L,[Object(i["createElementVNode"])("div",S,[Object(i["createElementVNode"])("span",k,Object(i["toDisplayString"])(e.$t("table",2)),1)]),Object(i["createElementVNode"])("div",E,[Object(i["createVNode"])(u,{value:e.tableSearchInput,"onUpdate:value":t[5]||(t[5]=function(t){return e.tableSearchInput=t}),placeholder:e.placeholder.filterTablePh,onChange:t[6]||(t[6]=function(t){return e.handleSearch("table",t)}),class:"theme-dark"},Object(i["createSlots"])({prefix:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(s)]})),_:2},[e.tableSearchInput?{name:"suffix",fn:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{onClick:t[4]||(t[4]=function(t){return e.clearSearch("table")}),class:"input-clear-icon"})]}))}:void 0]),1032,["value","placeholder"])]),e.tableLoading?(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:0})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(b,{loading:e.tableLoading,items:e.tableList,activeItem:e.tableName,itemSize:40,onHandleClickTable:e.handleClickTable,iconName:"tableOutlined"},null,8,["loading","items","activeItem","onHandleClickTable"])])])])]),Object(i["createVNode"])(p,{visible:e.showCreateDBModal,catalogOptions:e.catalogOptions,onCancel:e.cancel},null,8,["visible","catalogOptions","onCancel"])],64)}n("e9c4"),n("d3b7"),n("d81d"),n("c740"),n("25f0"),n("b0c0");var x=n("e9d5"),U=n("411c");function A(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("a-select"),s=Object(i["resolveComponent"])("a-form-item"),l=Object(i["resolveComponent"])("a-input"),u=Object(i["resolveComponent"])("a-form"),d=Object(i["resolveComponent"])("a-modal");return Object(i["openBlock"])(),Object(i["createBlock"])(d,{visible:e.visible,title:e.$t("createDatabase"),onOk:e.handleOk,onCancel:e.handleCancel},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(u,{ref:"formRef",model:e.formState,class:"label-120"},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(s,{name:"catalog",label:e.$t("catalog"),rules:[{required:!0,message:"".concat(e.placeholder.selectClPh)}]},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(r,{value:e.formState.catalog,"onUpdate:value":t[0]||(t[0]=function(t){return e.formState.catalog=t}),options:e.catalogOptions,placeholder:e.placeholder.selectClPh},null,8,["value","options","placeholder"])]})),_:1},8,["label","rules"]),Object(i["createVNode"])(s,{name:"dbname",label:e.$t("databaseName"),rules:[{required:!0,message:"".concat(e.placeholder.inputDBPh)}]},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{value:e.formState.dbname,"onUpdate:value":t[1]||(t[1]=function(t){return e.formState.dbname=t}),placeholder:e.placeholder.inputDBPh},null,8,["value","placeholder"])]})),_:1},8,["label","rules"])]})),_:1},8,["model"])]})),_:1},8,["visible","title","onOk","onCancel"])}var _=n("8552"),V=Object(i["defineComponent"])({props:{visible:{type:Boolean,default:!1},catalogOptions:{type:Array,default:function(){return[]}}},emits:["cancel"],setup:function(e,t){var n=t.emit,a=Object(i["reactive"])(Object(_["a"])()),o=Object(i["ref"])(),c=Object(i["reactive"])({catalog:void 0,dbname:""}),r=function(){o.value.validateFields().then((function(){o.value.resetFields(),n("cancel")})).catch((function(e){}))},s=function(){o.value.resetFields(),n("cancel")};return{formRef:o,formState:c,placeholder:a,handleOk:r,handleCancel:s}}}),P=n("6b0d"),$=n.n(P);const B=$()(V,[["render",A]]);var R=B,Q=n("5738"),Y=n("d257"),H=["onMouseenter","onClick"],F=["title"];function G(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("svg-icon"),s=Object(i["resolveComponent"])("RecycleScroller"),l=Object(i["resolveComponent"])("a-empty");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[e.items.length&&!e.loading?(Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:0,class:"scroller",items:e.items,"item-size":40,"key-field":"id"},{default:Object(i["withCtx"])((function(t){var n=t.item;return[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])([{active:e.activeItem===n.label,"hive-table":"HIVE"===n.type},"desc"]),onMouseenter:function(t){return e.handleMouseEnter(n)},onClick:function(t){return e.handleClickTable(n)}},["database"===e.iconName?(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:0,"icon-class":"database",class:"table-icon g-mr-8"})):(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:1,"icon-class":e.tableTypeIconMap[n.type],class:"table-icon g-mr-8"},null,8,["icon-class"])),Object(i["createElementVNode"])("p",{title:n.label,class:"name g-text-nowrap"},Object(i["toDisplayString"])(n.label),9,F)],42,H)]})),_:1},8,["items"])):Object(i["createCommentVNode"])("",!0),e.items.length||e.loading?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(l,{key:1,class:"theme-dark",image:e.simpleImage},null,8,["image"]))],64)}n("06f4");var Z=n("fc25");n("a9e3");function W(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}let J;function q(){q.init||(q.init=!0,J=-1!==W())}var X={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){q(),Object(i["nextTick"])(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",J&&this.$el.appendChild(e),e.data="about:blank",J||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!J&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const K=Object(i["withScopeId"])("data-v-b329ee4c");Object(i["pushScopeId"])("data-v-b329ee4c");const ee={class:"resize-observer",tabindex:"-1"};Object(i["popScopeId"])();const te=K((e,t,n,a,o,c)=>(Object(i["openBlock"])(),Object(i["createBlock"])("div",ee)));X.render=te,X.__scopeId="data-v-b329ee4c",X.__file="src/components/ResizeObserver.vue";function ne(e){return ne="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},c=function(c){for(var r=arguments.length,s=new Array(r>1?r-1:0),l=1;l1){var i=e.find((function(e){return e.isIntersecting}));i&&(t=i)}if(n.callback){var a=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(a===n.oldResult)return;n.oldResult=a,n.callback(a,t)}}),this.options.intersection),Object(i["nextTick"])((function(){n.observer&&n.observer.observe(n.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&"number"===typeof this.options.intersection.threshold?this.options.intersection.threshold:0}}]),e}();function Me(e,t,n){var i=t.value;if(i)if("undefined"===typeof IntersectionObserver);else{var a=new fe(e,i,n);e._vue_visibilityState=a}}function me(e,t,n){var i=t.value,a=t.oldValue;if(!he(i,a)){var o=e._vue_visibilityState;i?o?o.createObserver(i,n):Me(e,{value:i},n):je(e)}}function je(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ve={beforeMount:Me,updated:me,unmounted:je};var Oe=function(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map((function(e){e(n)})),(e.get("*")||[]).slice().map((function(e){e(t,n)}))}}},ge={itemsLimit:1e3},Ne=/(auto|scroll)/;function ye(e,t){return null===e.parentNode?t:ye(e.parentNode,t.concat([e]))}var Te=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},ze=function(e){return Te(e,"overflow")+Te(e,"overflow-y")+Te(e,"overflow-x")},De=function(e){return Ne.test(ze(e))};function we(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=ye(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,a,o){const c=Object(i["markRaw"])({id:Ce++,index:t,used:!0,key:a,type:o}),r=Object(i["shallowReactive"])({item:n,position:0,nr:c});return e.push(r),r},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(e),t||(e.nr.used=!1,e.position=-9999,this.$_views.delete(e.nr.key))},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,100))}))},handleVisibilityChange(e,t){this.ready&&(e||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.$_computedMinItemSize,a=this.typeField,o=this.simpleArray?null:this.keyField,c=this.items,r=c.length,s=this.sizes,l=this.$_views,u=this.$_unusedViews,d=this.pool;let b,p,h,f;if(r)if(this.$_prerender)b=0,p=this.prerender,h=null;else{const e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),null===n&&te.start&&(a=o),o=~~((i+a)/2)}while(o!==n);for(o<0&&(o=0),b=o,h=s[r-1].accumulator,p=o;pr&&(p=r))}else b=~~(e.start/n),p=Math.ceil(e.end/n),b<0&&(b=0),p>r&&(p=r),h=r*n}else b=p=h=0;p-b>ge.itemsLimit&&this.itemsLimitError(),this.totalSize=h;const M=b<=this.$_endIndex&&p>=this.$_startIndex;if(this.$_continuous!==M){if(M){l.clear(),u.clear();for(let e=0,t=d.length;eo?e[o]===f.item[o]:e===f.item)),(-1===f.nr.index||f.nr.index=p)&&this.unuseView(f));const m=M?null:new Map;let j,v,O,g;for(let N=b;N=O.length)&&(f=this.addView(d,N,j,e,v),this.unuseView(f,!0),O=u.get(v)),f=O[g],f.item=j,f.nr.used=!0,f.nr.index=N,f.nr.key=e,f.nr.type=v,m.set(v,g+1),g++),l.set(e,f)),f.position=null===n?s[N-1].accumulator:N*n):f&&this.unuseView(f)}return this.$_startIndex=b,this.$_endIndex=p,this.emitUpdate&&this.$emit("update",b,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:M}},getListenerTarget(){let e=we(this.$el);return!window.document||e!==window.document.documentElement&&e!==window.document.body||(e=window),e},getScroll(){const{$el:e,direction:t}=this,n="vertical"===t;let i;if(this.pageMode){const t=e.getBoundingClientRect(),a=n?t.height:t.width;let o=-(n?t.top:t.left),c=n?window.innerHeight:window.innerWidth;o<0&&(c+=o,o=0),o+c>a&&(c=a-o),i={start:o,end:o+c}}else i=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!ke&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;t=null===this.itemSize?e>0?this.sizes[e-1].accumulator:0:e*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){"vertical"===this.direction?this.$el.scrollTop=e:this.$el.scrollLeft=e},itemsLimitError(){throw setTimeout(()=>{}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.index-t.index)}}};const Ue={key:0,class:"vue-recycle-scroller__slot"},Ae={key:1,class:"vue-recycle-scroller__slot"};function _e(e,t,n,a,o,c){const r=Object(i["resolveComponent"])("ResizeObserver"),s=Object(i["resolveDirective"])("observe-visibility");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])("div",{class:["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,["direction-"+e.direction]:!0}],onScrollPassive:t[2]||(t[2]=(...e)=>c.handleScroll&&c.handleScroll(...e))},[e.$slots.before?(Object(i["openBlock"])(),Object(i["createBlock"])("div",Ue,[Object(i["renderSlot"])(e.$slots,"before")])):Object(i["createCommentVNode"])("v-if",!0),Object(i["createVNode"])("div",{ref:"wrapper",style:{["vertical"===e.direction?"minHeight":"minWidth"]:o.totalSize+"px"},class:"vue-recycle-scroller__item-wrapper"},[(Object(i["openBlock"])(!0),Object(i["createBlock"])(i["Fragment"],null,Object(i["renderList"])(o.pool,n=>(Object(i["openBlock"])(),Object(i["createBlock"])("div",{key:n.nr.id,style:o.ready?{transform:`translate${"vertical"===e.direction?"Y":"X"}(${n.position}px)`}:null,class:["vue-recycle-scroller__item-view",{hover:o.hoverKey===n.nr.key}],onMouseenter:e=>o.hoverKey=n.nr.key,onMouseleave:t[1]||(t[1]=e=>o.hoverKey=null)},[Object(i["renderSlot"])(e.$slots,"default",{item:n.item,index:n.nr.index,active:n.nr.used})],46,["onMouseenter"]))),128))],4),e.$slots.after?(Object(i["openBlock"])(),Object(i["createBlock"])("div",Ae,[Object(i["renderSlot"])(e.$slots,"after")])):Object(i["createCommentVNode"])("v-if",!0),Object(i["createVNode"])(r,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[s,c.handleVisibilityChange]])}xe.render=_e,xe.__file="src/components/RecycleScroller.vue";var Ve={name:"DynamicScroller",components:{RecycleScroller:xe},provide(){return"undefined"!==typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver(e=>{for(const t of e)if(t.target){const e=new CustomEvent("resize",{detail:{contentRect:t.contentRect}});t.target.dispatchEvent(e)}})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Le,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Se,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:i}=this,a=this.vscrollData.sizes;for(let o=0;o{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,0===this.$_undefinedSizes?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Pe(e,t,n,a,o,c){const r=Object(i["resolveComponent"])("RecycleScroller");return Object(i["openBlock"])(),Object(i["createBlock"])(r,Object(i["mergeProps"])({ref:"scroller",items:c.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id"},e.$attrs,{onResize:c.onScrollerResize,onVisible:c.onScrollerVisible}),{default:Object(i["withCtx"])(({item:t,index:n,active:a})=>[Object(i["renderSlot"])(e.$slots,"default",{item:t.item,index:n,active:a,itemWithSize:t})]),before:Object(i["withCtx"])(()=>[Object(i["renderSlot"])(e.$slots,"before")]),after:Object(i["withCtx"])(()=>[Object(i["renderSlot"])(e.$slots,"after")]),_:1},16,["items","min-item-size","direction","onResize","onVisible"])}Ve.render=Pe,Ve.__file="src/components/DynamicScroller.vue";var $e={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(){this.size||this.onDataUpdate()},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData?this.$_watchData=this.$watch("data",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!e&&this.size||this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applySize(e,t)}this.$_pendingSizeUpdate=null})},applySize(e,t){const n=Math.round("vertical"===this.vscrollParent.direction?t:e);n&&this.size!==n&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=n,this.vscrollData.validSizes[this.id]=!0,this.emitResize&&this.$emit("resize",this.id))},observeSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize(e){const{width:t,height:n}=e.detail.contentRect;this.applySize(t,n)}},render(){return Object(i["h"])(this.tag,this.$slots.default())}};$e.__file="src/components/DynamicScrollerItem.vue";n("a899");var Be=n("f38b"),Re=Object(i["defineComponent"])({components:{RecycleScroller:xe},emits:["mouseEnter","handleClickTable"],setup:function(e,t){var n=t.emit,i=function(e){n("mouseEnter",e.label)},a=function(e){n("handleClickTable",e)};return{simpleImage:Z["a"].PRESENTED_IMAGE_SIMPLE,tableTypeIconMap:Be["d"],handleMouseEnter:i,handleClickTable:a}},props:{items:{type:Array,default:function(){return[]}},activeItem:{type:String,default:""},itemSize:{type:Number,default:40},iconName:{type:String,default:"tableOutlined"},loading:{type:Boolean,default:!1}}});n("1ccf");const Qe=$()(Re,[["render",G],["__scopeId","data-v-abd9edf8"]]);var Ye=Qe,He=Object(i["defineComponent"])({name:"TablesMenu",components:{SearchOutlined:x["a"],CloseCircleOutlined:U["a"],CreateDBModal:R,virtualRecycleScroller:Ye},emits:["goCreatePage"],setup:function(e,t){var n=t.emit,a=Object(m["e"])(),o=Object(m["d"])(),c=Object(j["a"])(),r=Object(i["reactive"])({catalogLoading:!1,DBSearchInput:"",tableSearchInput:"",curCatalog:"",database:"",tableName:"",type:"",catalogOptions:[],showCreateDBModal:!1,loading:!1,tableLoading:!1,databaseList:[],tableList:[]}),s="easylake-menu-catalog-db-table",l=JSON.parse(localStorage.getItem(s)||"{}"),u=Object(i["reactive"])(Object(_["a"])()),d=function(e){"table"===e?p():h()},b=function(e){"table"===e?(r.tableSearchInput="",p()):(r.DBSearchInput="",h())},p=Object(Y["c"])((function(){I()})),h=Object(Y["c"])((function(){w(!0)})),f=function(e){r.database!==e.id&&(r.database=e.id,r.tableName="",I())},v=function(e){return e.parentNode},O=function(){},g=function(e){r.curCatalog=e,r.databaseList.length=0,r.tableList.length=0,w()},N=function(){r.showCreateDBModal=!0},y=function(){r.showCreateDBModal=!1},T=function(){n("goCreatePage")},z=function(e){r.tableName=e.label,r.type=e.type,localStorage.setItem(s,JSON.stringify({catalog:r.curCatalog,database:r.database,tableName:e.label})),c.updateTablesMenu(!1);var t="HIVE"===e.type?"/hive-tables":"/tables",n={path:t,query:{catalog:r.curCatalog,db:r.database,table:r.tableName,type:r.type}};o.path.indexOf("tables")>-1?a.replace(n):a.push(n)},D=function(){r.catalogLoading=!0,Object(Q["c"])().then((function(e){if(e){if(r.catalogOptions=(e||[]).map((function(e){return{value:e.catalogName,label:e.catalogName}})),r.catalogOptions.length){var t,n=r.catalogOptions.findIndex((function(e){return e.value===l.catalog})),i=o.query;r.curCatalog=n>-1?l.catalog:(null===i||void 0===i||null===(t=i.catalog)||void 0===t?void 0:t.toString())||r.catalogOptions[0].value}w()}})).finally((function(){r.catalogLoading=!1}))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r.curCatalog&&(r.loading=!0,Object(Q["d"])({catalog:r.curCatalog,keywords:r.DBSearchInput}).then((function(t){if(r.databaseList=(t||[]).map((function(e){return{id:e,label:e}})),r.databaseList.length&&!e){var n,i,a=r.databaseList.findIndex((function(e){return e.id===l.database}));r.database=a>-1?l.database:(null===(n=o.query)||void 0===n||null===(i=n.db)||void 0===i?void 0:i.toString())||r.databaseList[0].id||"",I()}})).finally((function(){r.loading=!1})))},I=function(){r.curCatalog&&r.database&&(r.tableLoading=!0,r.tableList.length=0,Object(Q["m"])({catalog:r.curCatalog,db:r.database,keywords:r.tableSearchInput}).then((function(e){r.tableList=(e||[]).map((function(e){return{id:e.name,label:e.name,type:e.type}}))})).finally((function(){r.tableLoading=!1})))};return Object(i["onBeforeMount"])((function(){var e=l.database,t=l.tableName;r.database=e,r.tableName=t,D()})),Object(M["a"])(Object(M["a"])({},Object(i["toRefs"])(r)),{},{placeholder:u,handleClickDb:f,getPopupContainer:v,clickDatabase:O,catalogChange:g,addDatabase:N,cancel:y,createTable:T,handleClickTable:z,handleSearch:d,clearSearch:b})}});n("4468");const Fe=$()(He,[["render",C],["__scopeId","data-v-059a481c"]]);var Ge=Fe,Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},We=Ze,Je=n("b3f0");function qe(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(!r.value){s.value&&clearTimeout(s.value);var t=e?0:200;s.value=setTimeout((function(){o.updateTablesMenu(e)}),t)}},v=function(){n.push({path:"/introduce"})};return Object(M["a"])(Object(M["a"])({},Object(i["toRefs"])(c)),{},{hasToken:r,menuList:l,toggleCollapsed:d,navClick:b,mouseenter:p,store:o,toggleTablesMenu:f,goCreatePage:h,viewIntroduce:v})}});n("78d8");const lt=$()(st,[["render",f],["__scopeId","data-v-c08cb56c"]]);var ut=lt,dt=(n("99af"),{class:"custom-top-bar"}),bt={class:"version-info"},pt={class:"g-mr-8"},ht={class:"g-mr-8"};function ft(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("question-circle-outlined"),s=Object(i["resolveComponent"])("a-tooltip"),l=Object(i["resolveComponent"])("LogoutOutlined"),u=Object(i["resolveComponent"])("a-button");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",dt,[Object(i["createElementVNode"])("div",bt,[Object(i["createElementVNode"])("span",pt,Object(i["toDisplayString"])("".concat(e.$t("version"),": ").concat(e.verInfo.version)),1),Object(i["createElementVNode"])("span",ht,Object(i["toDisplayString"])("".concat(e.$t("commitTime"),": ").concat(e.verInfo.commitTime)),1)]),Object(i["createVNode"])(s,{placement:"bottomRight","arrow-point-at-center":"",overlayClassName:"topbar-tooltip"},{title:Object(i["withCtx"])((function(){return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.$t("userGuide")),1)]})),default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(r,{class:"question-icon",onClick:e.goDocs},null,8,["onClick"])]})),_:1}),Object(i["createVNode"])(s,null,{title:Object(i["withCtx"])((function(){return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.$t("logout")),1)]})),default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(u,{class:"logout-button",onClick:e.handleLogout},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{style:{"font-size":"1.2em"}})]})),_:1},8,["onClick"])]})),_:1})])}n("cd17");var Mt=n("ed3b"),mt=n("1da1"),jt=(n("96cf"),n("3c7f")),vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},Ot=vt;function gt(e){for(var t=1;t1?arguments[1]:void 0)}}),o("includes")},e9c4:function(e,t,n){var i=n("23e7"),a=n("da84"),o=n("d066"),c=n("2ba4"),r=n("e330"),s=n("d039"),l=a.Array,u=o("JSON","stringify"),d=r(/./.exec),b=r("".charAt),p=r("".charCodeAt),h=r("".replace),f=r(1..toString),M=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,v=function(e,t,n){var i=b(n,t-1),a=b(n,t+1);return d(m,e)&&!d(j,a)||d(j,e)&&!d(m,i)?"\\u"+f(p(e,0),16):e},O=s((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&i({target:"JSON",stat:!0,forced:O},{stringify:function(e,t,n){for(var i=0,a=arguments.length,o=l(a);i1?arguments[1]:void 0)}})},"376e":function(e,t,a){"use strict";a("5f36")},"3c6b":function(e,t,a){"use strict";a("7fad")},"4e01":function(e,t,a){"use strict";a("d3b7"),a("159b"),a("b64b"),a("a434");var n=a("7a23"),r=a("a878"),c=a("d257"),o=a("8552"),u=a("47e2"),i={class:"config-properties"},l={key:0},s={class:"config-header g-flex"},p={class:"td g-flex-ac"},b={class:"td g-flex-ac bd-left"},f=Object(n["createTextVNode"])("+"),d=Object(n["defineComponent"])({props:{propertiesObj:null,isEdit:{type:Boolean}},setup:function(e,t){var a=t.expose,d=e,O=Object(u["b"])(),g=O.t,j=Object(n["shallowReactive"])([{dataIndex:"key",title:g("key"),width:284,ellipsis:!0},{dataIndex:"value",title:g("value"),ellipsis:!0}]),m=Object(n["ref"])(),v=Object(n["reactive"])({data:[]}),h=Object(n["reactive"])(Object(o["a"])()),k=Object(n["computed"])((function(){return d.isEdit}));function y(){v.data.length=0,Object.keys(d.propertiesObj).forEach((function(e){v.data.push({key:e,value:d.propertiesObj[e],uuid:Object(c["g"])()})}))}function C(e){var t=v.data.indexOf(e);-1!==t&&v.data.splice(t,1)}function w(){v.data.push({key:"",value:"",uuid:Object(c["g"])()})}return Object(n["watch"])((function(){return d.propertiesObj}),(function(){y()}),{immediate:!0,deep:!0}),a({getPropertiesWithoputValidation:function(){var e={};return v.data.forEach((function(t){e[t.key]=t.value})),Promise.resolve(e)},getProperties:function(){return m.value.validateFields().then((function(){var e={};return v.data.forEach((function(t){e[t.key]=t.value})),Promise.resolve(e)})).catch((function(){return!1}))}}),Object(n["onMounted"])((function(){})),function(e,t){var a=Object(n["resolveComponent"])("a-input"),c=Object(n["resolveComponent"])("a-form-item"),o=Object(n["resolveComponent"])("a-form"),u=Object(n["resolveComponent"])("a-button"),d=Object(n["resolveComponent"])("a-table");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",i,[Object(n["unref"])(k)?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",p,Object(n["toDisplayString"])(e.$t("key")),1),Object(n["createElementVNode"])("div",b,Object(n["toDisplayString"])(e.$t("value")),1)]),Object(n["createVNode"])(o,{ref_key:"propertiesFormRef",ref:m,model:Object(n["unref"])(v),class:"g-mt-12"},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(Object(n["unref"])(v).data,(function(t,o){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(n["createVNode"])(c,{name:["data",o,"key"],rules:[{required:!0,message:"".concat(e.$t(Object(n["unref"])(h).inputPh))}],class:"g-mr-8"},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(a,{value:t.key,"onUpdate:value":function(e){return t.key=e},style:{width:"100%"}},null,8,["value","onUpdate:value"])]})),_:2},1032,["name","rules"]),Object(n["createVNode"])(c,{name:["data",o,"value"],rules:[{required:!0,message:"".concat(e.$t(Object(n["unref"])(h).inputPh))}]},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(a,{value:t.value,"onUpdate:value":function(e){return t.value=e},style:{width:"100%"}},null,8,["value","onUpdate:value"])]})),_:2},1032,["name","rules"]),Object(n["createVNode"])(Object(n["unref"])(r["a"]),{class:"icon-close",onClick:function(e){return C(t)}},null,8,["onClick"])])})),128))]})),_:1},8,["model"]),Object(n["createVNode"])(u,{class:"config-btn",onClick:w},{default:Object(n["withCtx"])((function(){return[f]})),_:1})])):Object(n["createCommentVNode"])("",!0),Object(n["unref"])(k)?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:1,rowKey:"uuid",columns:Object(n["unref"])(j),"data-source":Object(n["unref"])(v).data,pagination:!1},null,8,["columns","data-source"]))])}}});a("9054");const O=d;t["a"]=O},5606:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return i})),a.d(t,"g",(function(){return l})),a.d(t,"f",(function(){return s})),a.d(t,"e",(function(){return p}));var n=a("5530"),r=(a("b0c0"),a("b32d"));function c(){return r["a"].get("ams/v1/catalog/metastore/types")}function o(e){return r["a"].get("ams/v1/catalogs/".concat(e))}function u(e){return r["a"].delete("ams/v1/catalogs/".concat(e))}function i(e){return r["a"].get("ams/v1/catalogs/".concat(e,"/delete/check"))}function l(e){var t=e.isCreate,a=e.name;return delete e.isCreate,t?r["a"].post("ams/v1/catalogs",Object(n["a"])({},e)):r["a"].put("ams/v1/catalogs/".concat(a),Object(n["a"])({},e))}function s(){return r["a"].get("ams/v1/settings/system")}function p(){return r["a"].get("ams/v1/settings/containers")}},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"d",(function(){return c})),a.d(t,"m",(function(){return o})),a.d(t,"l",(function(){return u})),a.d(t,"f",(function(){return i})),a.d(t,"q",(function(){return l})),a.d(t,"j",(function(){return s})),a.d(t,"i",(function(){return p})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return f})),a.d(t,"g",(function(){return d})),a.d(t,"h",(function(){return O})),a.d(t,"o",(function(){return g})),a.d(t,"r",(function(){return j})),a.d(t,"p",(function(){return m})),a.d(t,"a",(function(){return v})),a.d(t,"b",(function(){return h})),a.d(t,"n",(function(){return k}));a("99af"),a("4de4"),a("d3b7");var n=a("b32d");function r(){return n["a"].get("ams/v1/catalogs")}function c(e){var t=e.catalog,a=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:a}})}function o(e){var t=e.catalog,a=e.db,r=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(a,"/tables"),{params:{keywords:r}})}function u(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o,i=e.token,l=void 0===i?"":i;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/details"),{params:{token:l}})}function i(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/hive/details"))}function l(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/upgrade/status"))}function s(e){var t=e.catalog,a=e.db,r=e.table,c=e.filter,o=e.page,u=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/partitions"),{params:{filter:c,page:o,pageSize:u,token:i}})}function p(e){var t=e.catalog,a=e.db,r=e.table,c=e.partition,o=e.specId,u=e.page,i=e.pageSize,l=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/partitions/").concat(c,"/files"),{params:{specId:o,page:u,pageSize:i,token:l}})}function b(e){var t=e.catalog,a=e.db,r=e.table,c=e.page,o=e.pageSize,u=e.token,i=e.ref,l=e.operation;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/snapshots"),{params:{page:c,pageSize:o,token:u,ref:i,operation:l}})}function f(e){var t=e.catalog,a=e.db,r=e.table,c=e.snapshotId,o=e.page,u=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/snapshots/").concat(c,"/detail"),{params:{page:o,pageSize:u,token:i}})}function d(e){var t=e.catalog,a=e.db,r=e.table,c=e.page,o=e.pageSize,u=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/operations"),{params:{page:c,pageSize:o,token:u}})}function O(e){var t=e.catalog,a=e.db,r=e.table,c=e.page,o=e.pageSize,u=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/optimizing-processes"),{params:{page:c,pageSize:o,token:u}})}function g(e){var t=e.catalog,a=e.db,r=e.table,c=e.processId,o=e.page,u=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/optimizing-processes/").concat(c,"/tasks"),{params:{page:o,pageSize:u,token:i}})}function j(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o,i=e.properties,l=void 0===i?{}:i,s=e.pkList,p=void 0===s?[]:s;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/upgrade"),{properties:l,pkList:p})}function m(){return n["a"].get("ams/v1/upgrade/properties")}function v(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o,i=e.processId,l=void 0===i?"":i;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/optimizing-processes/").concat(l,"/cancel"))}function h(e){var t=e.catalog,a=e.db,r=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/branches"))}function k(e){var t=e.catalog,a=e.db,r=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/tags"))}},"5f36":function(e,t,a){},"6c78":function(e,t,a){},"7db0":function(e,t,a){"use strict";var n=a("23e7"),r=a("b727").find,c=a("44d2"),o="find",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),c(o)},"7fad":function(e,t,a){},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("7a23"),r=a("47e2");function c(){var e=Object(r["b"])(),t=e.t,a=Object(n["computed"])((function(){return t("catalog")})).value,c=Object(n["computed"])((function(){return t("databaseName")})).value,o=Object(n["computed"])((function(){return t("tableName")})).value,u=Object(n["computed"])((function(){return t("optimzerGroup")})).value,i=Object(n["computed"])((function(){return t("resourceGroup")})).value,l=Object(n["computed"])((function(){return t("parallelism")})).value,s=Object(n["computed"])((function(){return t("username")})).value,p=Object(n["computed"])((function(){return t("password")})).value,b=Object(n["computed"])((function(){return t("database",2)})).value,f=Object(n["computed"])((function(){return t("table",2)})).value,d=Object(n["computed"])((function(){return t("name")})).value,O=Object(n["computed"])((function(){return t("container")})).value;return{selectPh:t("selectPlaceholder"),inputPh:t("inputPlaceholder"),selectClPh:t("selectPlaceholder",{selectPh:a}),selectDBPh:t("selectPlaceholder",{selectPh:c}),inputDBPh:t("inputPlaceholder",{inputPh:c}),inputClPh:t("inputPlaceholder",{inputPh:a}),inputTNPh:t("inputPlaceholder",{inputPh:o}),selectOptGroupPh:t("inputPlaceholder",{inputPh:u}),resourceGroupPh:t("inputPlaceholder",{inputPh:i}),parallelismPh:t("inputPlaceholder",{inputPh:l}),usernamePh:t("inputPlaceholder",{inputPh:s}),passwordPh:t("inputPlaceholder",{inputPh:p}),filterDBPh:t("filterPlaceholder",{inputPh:b}),filterTablePh:t("filterPlaceholder",{inputPh:f}),groupNamePh:t("inputPlaceholder",{inputPh:d}),groupContainer:t("selectPlaceholder",{selectPh:O})}}},9054:function(e,t,a){"use strict";a("6c78")},"9df0":function(e,t,a){},adb5:function(e,t,a){"use strict";a.r(t);a("cd17");var n=a("ed3b"),r=a("1da1"),c=(a("06f4"),a("fc25")),o=(a("99af"),a("d3b7"),a("159b"),a("ac1f"),a("5319"),a("c740"),a("a434"),a("96cf"),a("7a23")),u=a("5738"),i=(a("3b18"),a("f64c")),l=a("5530"),s=a("15fd"),p=a("ade3"),b=(a("25f0"),a("d81d"),a("b0c0"),a("7db0"),a("b64b"),a("caad"),a("d9e2"),a("a15b"),a("2532"),a("00b4"),a("5606")),f=a("47e2"),d=a("4e01"),O=a("8552"),g=a("6c02"),j=a("e723"),m=["typeshow"],v={class:"detail-wrap"},h={class:"detail-content-wrap"},k={class:"content-wrap"},y={class:"header"},C={key:1,class:"config-value"},w={key:1},E={key:1},B={key:1},x={class:"header"},N={key:1,class:"config-value"},P={key:1,class:"config-value"},S={key:1,class:"config-value"},_={key:3},V=["onClick"],R={class:"header"},I={key:1,class:"config-value"},z={key:1,class:"config-value"},D={key:1,class:"config-value"},G={key:6},U=["onClick","title"],M={key:1,class:"config-value"},T={key:1,class:"config-value"},A={class:"header"},L={class:"header"},$={key:0,class:"footer-btn"},F={key:1,class:"footer-btn"},q=Object(o["defineComponent"])({props:{isEdit:{type:Boolean}},emits:["updateEdit","updateCatalogs"],setup:function(e,t){var a,c=t.emit,u=e,q={"Internal Catalog":"Internal Catalog","External Catalog":"External Catalog"},K=Object(f["b"])(),H=K.t,X=Object(g["d"])(),J=Object(o["reactive"])(Object(O["a"])()),W=Object(o["ref"])(""),Z=Object(o["computed"])((function(){return u.isEdit})),Q=Object(o["computed"])((function(){return"/ams/v1/files"})),Y=Object(o["computed"])((function(){var e,t=((null===(e=X.query)||void 0===e?void 0:e.catalogname)||"").toString();return"new catalog"===decodeURIComponent(t)})),ee=Object(o["computed"])((function(){return"hive"===pe.catalog.type})),te=(Object(o["computed"])((function(){return"ams"===pe.catalog.type})),Object(o["ref"])(!1)),ae=Object(o["ref"])(),ne=Object(o["ref"])(),re=Object(o["ref"])(),ce={MIXED_HIVE:"MIXED_HIVE",ICEBERG:"ICEBERG",MIXED_ICEBERG:"MIXED_ICEBERG",PAIMON:"PAIMON"},oe=(a={},Object(p["a"])(a,ce.ICEBERG,"Iceberg"),Object(p["a"])(a,ce.MIXED_HIVE,"Mixed Hive"),Object(p["a"])(a,ce.MIXED_ICEBERG,"Mixed Iceberg"),Object(p["a"])(a,ce.PAIMON,"Paimon"),a),ue={ams:[ce.MIXED_ICEBERG,ce.ICEBERG],hive:[ce.MIXED_HIVE,ce.MIXED_ICEBERG,ce.ICEBERG,ce.PAIMON],hadoop:[ce.MIXED_ICEBERG,ce.ICEBERG,ce.PAIMON],glue:[ce.MIXED_ICEBERG,ce.ICEBERG],custom:[ce.MIXED_ICEBERG,ce.ICEBERG]},ie={"hadoop.core.site":"core-site.xml","hadoop.hdfs.site":"hdfs-site.xml","hive.site":"hive-site.xml"},le={storageConfig:{"hadoop.core.site":"","hadoop.hdfs.site":""},authConfig:{"auth.kerberos.keytab":"","auth.kerberos.krb5":""}},se=Object(o["ref"])([{label:q["Internal Catalog"],value:q["Internal Catalog"]},{label:q["External Catalog"],value:q["External Catalog"]}]),pe=Object(o["reactive"])({catalog:{name:"",type:"ams",typeshow:q["Internal Catalog"],optimizerGroup:void 0},tableFormat:"",storageConfig:{},authConfig:{},properties:{},tableProperties:{},storageConfigArray:[],authConfigArray:[]}),be=Object(o["reactive"])([{label:"SIMPLE",value:"SIMPLE"},{label:"KERBEROS",value:"KERBEROS"}]),fe=Object(o["reactive"])([{label:"AK/SK",value:"AK/SK"},{label:"CUSTOM",value:"CUSTOM"}]),de={"hadoop.core.site":"Hadoop core-site","hadoop.hdfs.site":"Hadoop hdfs-site","hive.site":"Hadoop hive-site"},Oe={"auth.kerberos.keytab":"Kerberos Keytab","auth.kerberos.krb5":"Kerberos Krb5"},ge={ams:["warehouse"],hadoop:["warehouse"],custom:["catalog-impl"],glue:["warehouse","lock-impl","lock.table"],PAIMON:["warehouse"]};Object(o["watch"])((function(){return X.query}),(function(e){e&&ve()}),{immediate:!0,deep:!0});var je=Object(o["reactive"])([]),me=Object(o["ref"])([]);function ve(){we()}var he=function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(j["e"])();case 2:t=e.sent,a=(t||[]).map((function(e){return{lable:e.resourceGroup.name,value:e.resourceGroup.name}})),me.value=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function ke(){return ye.apply(this,arguments)}function ye(){return ye=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["d"])();case 2:t=e.sent,(t||[]).forEach((function(e){"ams"!==e.value&&je.push({label:e.display,value:e.value})})),Ce();case 5:case"end":return e.stop()}}),e)}))),ye.apply(this,arguments)}function Ce(){W.value=(je.find((function(e){return e.value===pe.catalog.type}))||{}).label}function we(){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r,c,o,u,i,s,p,f,d,O,g,j;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,te.value=!0,t=X.query,a=t.catalogname,n=t.type,a){e.next=5;break}return e.abrupt("return");case 5:if(!Y.value){e.next=20;break}pe.catalog.name="",pe.catalog.type=n||"ams",pe.catalog.optimizerGroup=void 0,pe.tableFormat=ce.MIXED_ICEBERG,pe.authConfig=Object(l["a"])({},le.authConfig),pe.storageConfig=Object(l["a"])({},le.storageConfig),r=ge[pe.catalog.type]||[],pe.properties={},r.forEach((function(e){pe.properties[e]=""})),pe.tableProperties={},pe.storageConfigArray.length=0,pe.authConfigArray.length=0,e.next=37;break;case 20:return e.next=22,Object(b["c"])(a);case 22:if(c=e.sent,c){e.next=25;break}return e.abrupt("return");case 25:o=c.name,u=c.type,i=c.tableFormatList,s=c.storageConfig,p=c.authConfig,f=c.properties,d=c.tableProperties,O=c.optimizerGroup,pe.catalog.name=o,pe.catalog.type=u,pe.catalog.optimizerGroup=O,pe.tableFormat=i.join(""),pe.authConfig=p,pe.storageConfig=s,pe.properties=f||{},pe.tableProperties=d||{},pe.storageConfigArray.length=0,pe.authConfigArray.length=0,Ce();case 37:pe.catalog.typeshow="ams"===pe.catalog.type?q["Internal Catalog"]:q["External Catalog"],g=pe.storageConfig,j=pe.authConfig,Object.keys(g).forEach((function(e){var t=["hadoop.core.site","hadoop.hdfs.site"];if(ee.value&&t.push("hive.site"),t.includes(e)){var a,n,r,c={key:e,label:de[e],value:null===(a=g[e])||void 0===a?void 0:a.fileName,fileName:null===(n=g[e])||void 0===n?void 0:n.fileName,fileUrl:null===(r=g[e])||void 0===r?void 0:r.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};pe.storageConfigArray.push(c)}})),Object.keys(j).forEach((function(e){if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){var t,a,n,r={key:e,label:Oe[e],value:null===(t=j[e])||void 0===t?void 0:t.fileName,fileName:null===(a=j[e])||void 0===a?void 0:a.fileName,fileUrl:null===(n=j[e])||void 0===n?void 0:n.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};pe.authConfigArray.push(r)}})),e.next=45;break;case 43:e.prev=43,e.t0=e["catch"](0);case 45:return e.prev=45,te.value=!1,e.finish(45);case 48:case"end":return e.stop()}}),e,null,[[0,43,45,48]])}))),Ee.apply(this,arguments)}var Be=function(e){e===q["Internal Catalog"]?pe.catalog.type="ams":pe.catalog.type=je[0].value,ze()},xe=Object(o["computed"])((function(){var e=pe.catalog.type;return ue[e]||[]}));function Ne(){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,ne.value.getPropertiesWithoputValidation();case 2:for(r in t=e.sent,a=ge[pe.catalog.type]||[],a.forEach((function(e){e&&!t[e]&&(t[e]="")})),n=ge[pe.tableFormat]||[],n.forEach((function(e){e&&!t[e]&&(t[e]="")})),t)t[r]||a.includes(r)||n.includes(r)||delete t[r];pe.properties=t;case 9:case"end":return e.stop()}}),e)}))),Pe.apply(this,arguments)}var Se=Object(o["reactive"])([{label:"S3",value:"S3"}]),_e=Object(o["reactive"])([{label:"Hadoop",value:"Hadoop"}]),Ve=Object(o["reactive"])([{label:"Hadoop",value:"Hadoop"},{label:"S3",value:"S3"}]),Re=Object(o["computed"])((function(){var e=pe.catalog.type;return"ams"===e||"custom"===e?Ve:"glue"===e?Se:"hive"===e||"hadoop"===e?_e:null})),Ie=Object(o["computed"])((function(){var e=pe.storageConfig["storage.type"];return"Hadoop"===e?be:"S3"===e?fe:null}));function ze(){return De.apply(this,arguments)}function De(){return De=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(pe.tableFormat=xe.value[0],Y.value){e.next=3;break}return e.abrupt("return");case 3:if(t=pe.storageConfigArray.findIndex((function(e){return"hive.site"===e.key})),!ee.value){e.next=11;break}if(!(t>-1)){e.next=7;break}return e.abrupt("return");case 7:pe.storageConfigArray.push({key:"hive.site",label:de["hive.site"],value:"",fileName:"",fileUrl:"",fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1}),pe.storageConfig["hive.site"]="",e.next=12;break;case 11:t>-1&&(pe.storageConfigArray.splice(t,1),delete pe.storageConfig["hive.site"]);case 12:return e.next=14,Ne();case 14:case"end":return e.stop()}}),e)}))),De.apply(this,arguments)}function Ge(){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Ne();case 2:case"end":return e.stop()}}),e)}))),Ue.apply(this,arguments)}function Me(){c("updateEdit",!0)}function Te(){return Ae.apply(this,arguments)}function Ae(){return Ae=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["a"])(pe.catalog.name);case 2:if(t=e.sent,!t){e.next=6;break}return He(),e.abrupt("return");case 6:n["a"].confirm({title:H("cannotDeleteModalTitle"),content:H("cannotDeleteModalContent"),wrapClassName:"not-delete-modal"});case 7:case"end":return e.stop()}}),e)}))),Ae.apply(this,arguments)}function Le(e,t){return $e.apply(this,arguments)}function $e(){return $e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a){e.next=2;break}return e.abrupt("return",Promise.reject(new Error(H("inputPlaceholder"))));case 2:if(!/^[a-zA-Z][\w-]*$/.test(a)){e.next=6;break}return e.abrupt("return",Promise.resolve());case 6:return e.abrupt("return",Promise.reject(new Error(H("invalidInput"))));case 7:case"end":return e.stop()}}),e)}))),$e.apply(this,arguments)}function Fe(){var e=pe.storageConfig,t=pe.authConfig,a=pe.storageConfigArray,n=pe.authConfigArray;Object.keys(t).forEach((function(e){if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){var a=(n.find((function(t){return t.key===e}))||{}).fileId;t[e]=a}})),Object.keys(e).forEach((function(t){if(["hadoop.core.site","hadoop.hdfs.site","hive.site"].includes(t)){var n=(a.find((function(e){return e.key===t}))||{}).fileId;e[t]=n}}))}function qe(){ae.value.validateFields().then(Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r,o,u,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=pe.catalog,a=pe.tableFormat,n=pe.storageConfig,r=pe.authConfig,e.next=3,ne.value.getProperties();case 3:return o=e.sent,e.next=6,re.value.getProperties();case 6:if(u=e.sent,o){e.next=9;break}return e.abrupt("return");case 9:if(u){e.next=11;break}return e.abrupt("return");case 11:return te.value=!0,t.typeshow,p=Object(s["a"])(t,m),Fe(),e.next=16,Object(b["g"])(Object(l["a"])(Object(l["a"])({isCreate:Y.value},p),{},{tableFormatList:[a],storageConfig:n,authConfig:r,properties:o,tableProperties:u})).then((function(){i["a"].success("".concat(H("save")," ").concat(H("success"))),c("updateEdit",!1,{catalogName:t.name,catalogType:t.type}),we(),ae.value.resetFields()})).catch((function(){i["a"].error("".concat(H("save")," ").concat(H("failed")))})).finally((function(){te.value=!1}));case 16:case"end":return e.stop()}}),e)})))).catch((function(){}))}function Ke(){ae.value.resetFields(),c("updateEdit",!1),we()}function He(){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n["a"].confirm({title:H("deleteCatalogModalTitle"),onOk:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["b"])(pe.catalog.name);case 2:i["a"].success("".concat(H("remove")," ").concat(H("success"))),c("updateEdit",!1,{});case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()});case 1:case"end":return e.stop()}}),e)}))),Xe.apply(this,arguments)}function Je(e,t,a){try{if("uploading"===e.file.status?t.uploadLoading=!0:t.uploadLoading=!1,"done"===e.file.status){var n=e.file.response.code;if(200!==n)throw new Error("failed");var r=e.file.response.result,c=r.url,o=r.id;t.isSuccess=!0,t.fileName="STORAGE"===a?ie[t.key]:e.file.name,t.fileUrl=c,t.fileId=o,i["a"].success("".concat(e.file.name," ").concat(H("uploaded")," ").concat(H("success")))}else"error"===e.file.status&&(t.isSuccess=!1,i["a"].error("".concat(e.file.name," ").concat(H("uploaded")," ").concat(H("failed"))))}catch(u){i["a"].error("".concat(H("uploaded")," ").concat(H("failed")))}}function We(e){e&&window.open(e)}return Object(o["onMounted"])((function(){ke(),he()})),function(e,t){var a=Object(o["resolveComponent"])("a-form-item"),n=Object(o["resolveComponent"])("a-input"),r=Object(o["resolveComponent"])("a-select"),c=Object(o["resolveComponent"])("a-radio"),u=Object(o["resolveComponent"])("a-radio-group"),i=Object(o["resolveComponent"])("a-button"),l=Object(o["resolveComponent"])("a-upload"),s=Object(o["resolveComponent"])("a-form"),p=Object(o["resolveComponent"])("u-loading");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",v,[Object(o["createElementVNode"])("div",h,[Object(o["createElementVNode"])("div",k,[Object(o["createVNode"])(s,{ref_key:"formRef",ref:ae,model:Object(o["unref"])(pe),class:"catalog-form"},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",y,Object(o["toDisplayString"])(e.$t("basic")),1)]})),_:1}),Object(o["createVNode"])(a,{label:e.$t("name"),name:["catalog","name"],rules:[{required:Object(o["unref"])(Z)&&Object(o["unref"])(Y),validator:Le}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)&&Object(o["unref"])(Y)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).catalog.name,"onUpdate:value":t[0]||(t[0]=function(e){return Object(o["unref"])(pe).catalog.name=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",C,Object(o["toDisplayString"])(Object(o["unref"])(pe).catalog.name),1))]})),_:1},8,["label","rules"]),Object(o["createVNode"])(a,{label:e.$t("type"),name:["catalog","typeshow"]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)&&Object(o["unref"])(Y)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).catalog.typeshow,"onUpdate:value":t[1]||(t[1]=function(e){return Object(o["unref"])(pe).catalog.typeshow=e}),options:se.value,placeholder:Object(o["unref"])(J).selectPh,onChange:Be},null,8,["value","options","placeholder"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",w,Object(o["toDisplayString"])(Object(o["unref"])(pe).catalog.typeshow),1))]})),_:1},8,["label"]),Object(o["unref"])(pe).catalog.typeshow===q["External Catalog"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:0,label:e.$t("metastore"),name:["catalog","type"],rules:[{required:Object(o["unref"])(Z)&&Object(o["unref"])(Y)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)&&Object(o["unref"])(Y)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).catalog.type,"onUpdate:value":t[2]||(t[2]=function(e){return Object(o["unref"])(pe).catalog.type=e}),options:Object(o["unref"])(je),placeholder:Object(o["unref"])(J).selectPh,onChange:ze},null,8,["value","options","placeholder"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",E,Object(o["toDisplayString"])(W.value),1))]})),_:1},8,["label","rules"])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,{label:e.$t("tableFormat"),name:["tableFormat"],rules:[{required:Object(o["unref"])(Z)&&Object(o["unref"])(Y)}]},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(u,{disabled:!Object(o["unref"])(Z)||!Object(o["unref"])(Y),value:Object(o["unref"])(pe).tableFormat,"onUpdate:value":t[3]||(t[3]=function(e){return Object(o["unref"])(pe).tableFormat=e}),name:"radioGroup",onChange:Ge},{default:Object(o["withCtx"])((function(){return[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(xe),(function(e){return Object(o["openBlock"])(),Object(o["createBlock"])(c,{key:e,value:e},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(oe[e]),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["disabled","value"])]})),_:1},8,["label","rules"]),Object(o["createVNode"])(a,{label:e.$t("optimizerGroup"),name:["catalog","optimizerGroup"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).catalog.optimizerGroup,"onUpdate:value":t[4]||(t[4]=function(e){return Object(o["unref"])(pe).catalog.optimizerGroup=e}),options:me.value,placeholder:Object(o["unref"])(J).selectPh},null,8,["value","options","placeholder"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",B,Object(o["toDisplayString"])(Object(o["unref"])(pe).catalog.optimizerGroup),1))]})),_:1},8,["label","rules"]),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",x,Object(o["toDisplayString"])(e.$t("storageConfigName")),1)]})),_:1}),Object(o["createVNode"])(a,{label:"Type",name:["storageConfig","storage.type"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).storageConfig["storage.type"],"onUpdate:value":t[5]||(t[5]=function(e){return Object(o["unref"])(pe).storageConfig["storage.type"]=e}),placeholder:Object(o["unref"])(J).selectPh,options:Object(o["unref"])(Re)},null,8,["value","placeholder","options"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",N,Object(o["toDisplayString"])(Object(o["unref"])(pe).storageConfig["storage.type"]),1))]})),_:1},8,["name","rules"]),"S3"===Object(o["unref"])(pe).storageConfig["storage.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:1,label:"Endpoint",name:["storageConfig","storage.s3.endpoint"],rules:[{required:!1}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).storageConfig["storage.s3.endpoint"],"onUpdate:value":t[6]||(t[6]=function(e){return Object(o["unref"])(pe).storageConfig["storage.s3.endpoint"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",P,Object(o["toDisplayString"])(Object(o["unref"])(pe).storageConfig["storage.s3.endpoint"]),1))]})),_:1},8,["name"])):Object(o["createCommentVNode"])("",!0),"S3"===Object(o["unref"])(pe).storageConfig["storage.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:2,label:"Region",name:["storageConfig","storage.s3.region"],rules:[{required:!1}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).storageConfig["storage.s3.region"],"onUpdate:value":t[7]||(t[7]=function(e){return Object(o["unref"])(pe).storageConfig["storage.s3.region"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",S,Object(o["toDisplayString"])(Object(o["unref"])(pe).storageConfig["storage.s3.region"]),1))]})),_:1},8,["name"])):Object(o["createCommentVNode"])("",!0),"Hadoop"===Object(o["unref"])(pe).storageConfig["storage.type"]?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",_,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(pe).storageConfigArray,(function(t){return Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(l,{key:0,"file-list":t.fileList,"onUpdate:file-list":function(e){return t.fileList=e},name:"file",accept:".xml",showUploadList:!1,action:Object(o["unref"])(Q),disabled:t.uploadLoading,onChange:function(e){return Je(e,t,"STORAGE")}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(i,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("upload")),1)]})),_:2},1032,["loading"])]})),_:2},1032,["file-list","onUpdate:file-list","action","disabled","onChange"])):Object(o["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",{key:1,class:Object(o["normalizeClass"])(["config-value",{"view-active":!!t.fileUrl}]),onClick:function(e){return We(t.fileUrl)}},Object(o["toDisplayString"])(t.fileName),11,V)):Object(o["createCommentVNode"])("",!0)]})),_:2},1032,["label"])})),128))])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",R,Object(o["toDisplayString"])(e.$t("authenticationConfig")),1)]})),_:1}),Object(o["createVNode"])(a,{label:"Type",name:["authConfig","auth.type"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).authConfig["auth.type"],"onUpdate:value":t[8]||(t[8]=function(e){return Object(o["unref"])(pe).authConfig["auth.type"]=e}),placeholder:Object(o["unref"])(J).selectPh,options:Object(o["unref"])(Ie)},null,8,["value","placeholder","options"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",I,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.type"]),1))]})),_:1},8,["name","rules"]),"SIMPLE"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:4,label:"Hadoop Username",name:["authConfig","auth.simple.hadoop_username"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.simple.hadoop_username"],"onUpdate:value":t[9]||(t[9]=function(e){return Object(o["unref"])(pe).authConfig["auth.simple.hadoop_username"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",z,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.simple.hadoop_username"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),"KERBEROS"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:5,label:"Kerberos Principal",name:["authConfig","auth.kerberos.principal"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.kerberos.principal"],"onUpdate:value":t[10]||(t[10]=function(e){return Object(o["unref"])(pe).authConfig["auth.kerberos.principal"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",D,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.kerberos.principal"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),"KERBEROS"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",G,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(pe).authConfigArray,(function(t){return Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(l,{key:0,"file-list":t.fileList,"onUpdate:file-list":function(e){return t.fileList=e},name:"file",accept:"auth.kerberos.keytab"===t.key?".keytab":".conf",showUploadList:!1,action:Object(o["unref"])(Q),disabled:t.uploadLoading,onChange:function(e){return Je(e,t)}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(i,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("upload")),1)]})),_:2},1032,["loading"])]})),_:2},1032,["file-list","onUpdate:file-list","accept","action","disabled","onChange"])):Object(o["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",{key:1,class:Object(o["normalizeClass"])(["config-value auth-filename",{"view-active":!!t.fileUrl}]),onClick:function(e){return We(t.fileUrl)},title:t.fileName},Object(o["toDisplayString"])(t.fileName),11,U)):Object(o["createCommentVNode"])("",!0)]})),_:2},1032,["label"])})),128))])):Object(o["createCommentVNode"])("",!0),"AK/SK"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:7,label:"Access Key",name:["authConfig","auth.ak_sk.access_key"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.ak_sk.access_key"],"onUpdate:value":t[11]||(t[11]=function(e){return Object(o["unref"])(pe).authConfig["auth.ak_sk.access_key"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",M,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.ak_sk.access_key"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),"AK/SK"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:8,label:"Secret Key",name:["authConfig","auth.ak_sk.secret_key"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.ak_sk.secret_key"],"onUpdate:value":t[12]||(t[12]=function(e){return Object(o["unref"])(pe).authConfig["auth.ak_sk.secret_key"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",T,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.ak_sk.secret_key"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",A,Object(o["toDisplayString"])(e.$t("properties")),1)]})),_:1}),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(d["a"],{propertiesObj:Object(o["unref"])(pe).properties,isEdit:Object(o["unref"])(Z),ref_key:"propertiesRef",ref:ne},null,8,["propertiesObj","isEdit"])]})),_:1}),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",L,Object(o["toDisplayString"])(e.$t("tableProperties")),1)]})),_:1}),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(d["a"],{propertiesObj:Object(o["unref"])(pe).tableProperties,isEdit:Object(o["unref"])(Z),ref_key:"tablePropertiesRef",ref:re},null,8,["propertiesObj","isEdit"])]})),_:1})]})),_:1},8,["model"])])]),Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",$,[Object(o["createVNode"])(i,{type:"primary",onClick:qe,class:"save-btn g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("save")),1)]})),_:1}),Object(o["createVNode"])(i,{onClick:Ke},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("cancel")),1)]})),_:1})])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(Z)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",F,[Object(o["createVNode"])(i,{type:"primary",onClick:Me,class:"edit-btn g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("edit")),1)]})),_:1}),Object(o["createVNode"])(i,{onClick:Te,class:"remove-btn"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("remove")),1)]})),_:1})])),te.value?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:2})):Object(o["createCommentVNode"])("",!0)])}}}),K=(a("3c6b"),a("376e"),a("6b0d")),H=a.n(K);const X=H()(q,[["__scopeId","data-v-019ab485"]]);var J=X,W={class:"catalogs-wrap g-flex"},Z={class:"catalog-list-left"},Q={class:"catalog-header"},Y={key:0,class:"catalog-list"},ee=["onClick"],te=Object(o["createTextVNode"])("+"),ae={class:"catalog-detail"},ne=Object(o["defineComponent"])({setup:function(e){var t=Object(f["b"])(),a=t.t,i=Object(g["e"])(),l=Object(g["d"])(),s=Object(o["reactive"])([]),p=Object(o["reactive"])({}),b=Object(o["ref"])(!1),d="new catalog",O=Object(o["ref"])(!1),j=c["a"].PRESENTED_IMAGE_SIMPLE;function m(){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,O.value=!0,e.next=4,Object(u["c"])();case 4:t=e.sent,s.length=0,(t||[]).forEach((function(e){s.push({catalogName:e.catalogName,catalogType:e.catalogType})}));case 7:return e.prev=7,O.value=!1,e.finish(7);case 10:case"end":return e.stop()}}),e,null,[[0,,7,10]])}))),v.apply(this,arguments)}function h(){var e=l.query,t=e.catalogname,a=void 0===t?"":t,n=e.type,r={};if(decodeURIComponent(a)!==d){var c,o;if(a)r.catalogName=a,r.catalogType=n;else r.catalogName=null===(c=s[0])||void 0===c?void 0:c.catalogName,r.catalogType=null===(o=s[0])||void 0===o?void 0:o.catalogType;y(r)}else N()}function k(e){b.value?_((function(){y(e),b.value=!1,w(!1)})):y(e)}function y(e){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.catalogName,n=t.catalogType,p.catalogName=a||"",p.catalogType=n||"",e.next=5,i.replace({path:"/catalogs",query:{catalogname:encodeURIComponent(p.catalogName),type:p.catalogType}});case 5:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function w(e,t){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){var n,r,c,o,u,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(b.value=t,!a){e.next=5;break}return e.next=4,B();case 4:null!==a&&void 0!==a&&a.catalogName||(a.catalogName=null===(n=s[0])||void 0===n?void 0:n.catalogName,a.catalogType=null===(r=s[0])||void 0===r?void 0:r.catalogType);case 5:if(c=s.findIndex((function(e){return e.catalogName===d})),!(c>-1)){e.next=11;break}return s.splice(c),i={catalogName:null===(o=s[0])||void 0===o?void 0:o.catalogName,catalogType:null===(u=s[0])||void 0===u?void 0:u.catalogType},y(i),e.abrupt("return");case 11:a&&y(a);case 12:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function B(){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m();case 2:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function N(){b.value?_((function(){P()})):P()}function P(){return S.apply(this,arguments)}function S(){return S=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={catalogName:d,catalogType:""},e.next=3,y(t);case 3:s.push(t),b.value=!0;case 5:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function _(e){n["a"].confirm({title:a("leavePageModalTitle"),content:a("leavePageModalContent"),okText:a("leave"),onOk:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.t0=e,!t.t0){t.next=4;break}return t.next=4,e();case 4:case"end":return t.stop()}}),t)})));function a(){return t.apply(this,arguments)}return a}()})}return Object(o["onMounted"])(Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m();case 2:h();case 3:case"end":return e.stop()}}),e)})))),Object(g["c"])((function(e,t,a){b.value?_((function(){a()})):a()})),function(e,t){var a=Object(o["resolveComponent"])("a-button"),n=Object(o["resolveComponent"])("a-empty");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",W,[Object(o["createElementVNode"])("div",Z,[Object(o["createElementVNode"])("div",Q,Object(o["toDisplayString"])("".concat(e.$t("catalog")," ").concat(e.$t("list"))),1),Object(o["unref"])(s).length&&!O.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("ul",Y,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(s),(function(e){return Object(o["openBlock"])(),Object(o["createElementBlock"])("li",{key:e.catalogName,class:Object(o["normalizeClass"])(["catalog-item g-text-nowrap",{active:e.catalogName===Object(o["unref"])(p).catalogName}]),onClick:function(t){return k(e)}},Object(o["toDisplayString"])(e.catalogName),11,ee)})),128))])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,{onClick:N,disabled:Object(o["unref"])(p).catalogName===d,class:"add-btn"},{default:Object(o["withCtx"])((function(){return[te]})),_:1},8,["disabled"])]),Object(o["createElementVNode"])("div",ae,[Object(o["unref"])(s).length||O.value?(Object(o["openBlock"])(),Object(o["createBlock"])(J,{key:1,isEdit:b.value,onUpdateEdit:w,onUpdateCatalogs:B},null,8,["isEdit"])):(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,image:Object(o["unref"])(j),class:"detail-empty"},null,8,["image"]))])])}}});a("c5c7");const re=H()(ne,[["__scopeId","data-v-0914312d"]]);t["default"]=re},c5c7:function(e,t,a){"use strict";a("9df0")},caad:function(e,t,a){"use strict";var n=a("23e7"),r=a("4d64").includes,c=a("44d2");n({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),c("includes")},e723:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return o})),a.d(t,"i",(function(){return u})),a.d(t,"h",(function(){return i})),a.d(t,"e",(function(){return l})),a.d(t,"b",(function(){return p})),a.d(t,"a",(function(){return b})),a.d(t,"j",(function(){return f})),a.d(t,"g",(function(){return d})),a.d(t,"f",(function(){return O}));var n=a("1da1"),r=(a("96cf"),a("99af"),a("b0c0"),a("b32d"));function c(e){var t=e.optimizerGroup,a=e.page,n=e.pageSize;return r["a"].get("ams/v1/optimize/optimizerGroups/".concat(t,"/tables"),{params:{page:a,pageSize:n}})}function o(e){var t=e.optimizerGroup,a=e.page,n=e.pageSize;return r["a"].get("ams/v1/optimize/optimizerGroups/".concat(t,"/optimizers"),{params:{page:a,pageSize:n}})}function u(e){var t=e.optimizerGroup,a=e.parallelism;return r["a"].post("ams/v1/optimize/optimizerGroups/".concat(t,"/optimizers"),{parallelism:a})}function i(e){var t=e.optimizerGroup,a=e.jobId;return r["a"].delete("ams/v1/optimize/optimizerGroups/".concat(t,"/optimizers/").concat(a))}function l(){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r["a"].get("ams/v1/optimize/resourceGroups");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}var p=function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r["a"].get("ams/v1/optimize/containers/get");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(e){return r["a"].post("ams/v1/optimize/resourceGroups",e)},f=function(e){return r["a"].put("ams/v1/optimize/resourceGroups",e)},d=function(e){return r["a"].get("/ams/v1/optimize/resourceGroups/".concat(e.name,"/delete/check"))},O=function(e){return r["a"].delete("/ams/v1/optimize/resourceGroups/".concat(e.name))}}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-7a087ab9.d5e3aa90.js b/ams/dashboard/src/main/resources/static/js/chunk-7a087ab9.d5e3aa90.js deleted file mode 100644 index 9c4900fb67..0000000000 --- a/ams/dashboard/src/main/resources/static/js/chunk-7a087ab9.d5e3aa90.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a087ab9"],{2532:function(e,t,a){"use strict";var n=a("23e7"),r=a("e330"),c=a("5a34"),o=a("1d80"),u=a("577e"),i=a("ab13"),l=r("".indexOf);n({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~l(u(o(this)),u(c(e)),arguments.length>1?arguments[1]:void 0)}})},"376e":function(e,t,a){"use strict";a("5f36")},"3c6b":function(e,t,a){"use strict";a("7fad")},"4e01":function(e,t,a){"use strict";a("d3b7"),a("159b"),a("b64b"),a("a434");var n=a("7a23"),r=a("a878"),c=a("d257"),o=a("8552"),u=a("47e2"),i={class:"config-properties"},l={key:0},s={class:"config-header g-flex"},p={class:"td g-flex-ac"},b={class:"td g-flex-ac bd-left"},f=Object(n["createTextVNode"])("+"),d=Object(n["defineComponent"])({props:{propertiesObj:null,isEdit:{type:Boolean}},setup:function(e,t){var a=t.expose,d=e,O=Object(u["b"])(),g=O.t,j=Object(n["shallowReactive"])([{dataIndex:"key",title:g("key"),width:284,ellipsis:!0},{dataIndex:"value",title:g("value"),ellipsis:!0}]),m=Object(n["ref"])(),v=Object(n["reactive"])({data:[]}),h=Object(n["reactive"])(Object(o["a"])()),k=Object(n["computed"])((function(){return d.isEdit}));function y(){v.data.length=0,Object.keys(d.propertiesObj).forEach((function(e){v.data.push({key:e,value:d.propertiesObj[e],uuid:Object(c["g"])()})}))}function C(e){var t=v.data.indexOf(e);-1!==t&&v.data.splice(t,1)}function w(){v.data.push({key:"",value:"",uuid:Object(c["g"])()})}return Object(n["watch"])((function(){return d.propertiesObj}),(function(){y()}),{immediate:!0,deep:!0}),a({getPropertiesWithoputValidation:function(){var e={};return v.data.forEach((function(t){e[t.key]=t.value})),Promise.resolve(e)},getProperties:function(){return m.value.validateFields().then((function(){var e={};return v.data.forEach((function(t){e[t.key]=t.value})),Promise.resolve(e)})).catch((function(){return!1}))}}),Object(n["onMounted"])((function(){})),function(e,t){var a=Object(n["resolveComponent"])("a-input"),c=Object(n["resolveComponent"])("a-form-item"),o=Object(n["resolveComponent"])("a-form"),u=Object(n["resolveComponent"])("a-button"),d=Object(n["resolveComponent"])("a-table");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",i,[Object(n["unref"])(k)?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",p,Object(n["toDisplayString"])(e.$t("key")),1),Object(n["createElementVNode"])("div",b,Object(n["toDisplayString"])(e.$t("value")),1)]),Object(n["createVNode"])(o,{ref_key:"propertiesFormRef",ref:m,model:Object(n["unref"])(v),class:"g-mt-12"},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(Object(n["unref"])(v).data,(function(t,o){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(n["createVNode"])(c,{name:["data",o,"key"],rules:[{required:!0,message:"".concat(e.$t(Object(n["unref"])(h).inputPh))}],class:"g-mr-8"},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(a,{value:t.key,"onUpdate:value":function(e){return t.key=e},style:{width:"100%"}},null,8,["value","onUpdate:value"])]})),_:2},1032,["name","rules"]),Object(n["createVNode"])(c,{name:["data",o,"value"],rules:[{required:!0,message:"".concat(e.$t(Object(n["unref"])(h).inputPh))}]},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(a,{value:t.value,"onUpdate:value":function(e){return t.value=e},style:{width:"100%"}},null,8,["value","onUpdate:value"])]})),_:2},1032,["name","rules"]),Object(n["createVNode"])(Object(n["unref"])(r["a"]),{class:"icon-close",onClick:function(e){return C(t)}},null,8,["onClick"])])})),128))]})),_:1},8,["model"]),Object(n["createVNode"])(u,{class:"config-btn",onClick:w},{default:Object(n["withCtx"])((function(){return[f]})),_:1})])):Object(n["createCommentVNode"])("",!0),Object(n["unref"])(k)?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:1,rowKey:"uuid",columns:Object(n["unref"])(j),"data-source":Object(n["unref"])(v).data,pagination:!1},null,8,["columns","data-source"]))])}}});a("9054");const O=d;t["a"]=O},5606:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return i})),a.d(t,"g",(function(){return l})),a.d(t,"f",(function(){return s})),a.d(t,"e",(function(){return p}));var n=a("5530"),r=(a("b0c0"),a("b32d"));function c(){return r["a"].get("ams/v1/catalog/metastore/types")}function o(e){return r["a"].get("ams/v1/catalogs/".concat(e))}function u(e){return r["a"].delete("ams/v1/catalogs/".concat(e))}function i(e){return r["a"].get("ams/v1/catalogs/".concat(e,"/delete/check"))}function l(e){var t=e.isCreate,a=e.name;return delete e.isCreate,t?r["a"].post("ams/v1/catalogs",Object(n["a"])({},e)):r["a"].put("ams/v1/catalogs/".concat(a),Object(n["a"])({},e))}function s(){return r["a"].get("ams/v1/settings/system")}function p(){return r["a"].get("ams/v1/settings/containers")}},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"d",(function(){return c})),a.d(t,"m",(function(){return o})),a.d(t,"l",(function(){return u})),a.d(t,"f",(function(){return i})),a.d(t,"p",(function(){return l})),a.d(t,"j",(function(){return s})),a.d(t,"i",(function(){return p})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return f})),a.d(t,"g",(function(){return d})),a.d(t,"h",(function(){return O})),a.d(t,"q",(function(){return g})),a.d(t,"o",(function(){return j})),a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return v})),a.d(t,"n",(function(){return h}));a("99af");var n=a("b32d");function r(){return n["a"].get("ams/v1/catalogs")}function c(e){var t=e.catalog,a=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:a}})}function o(e){var t=e.catalog,a=e.db,r=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(a,"/tables"),{params:{keywords:r}})}function u(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o,i=e.token,l=void 0===i?"":i;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/details"),{params:{token:l}})}function i(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/hive/details"))}function l(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/upgrade/status"))}function s(e){var t=e.catalog,a=e.db,r=e.table,c=e.page,o=e.pageSize,u=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/partitions"),{params:{page:c,pageSize:o,token:u}})}function p(e){var t=e.catalog,a=e.db,r=e.table,c=e.partition,o=e.specId,u=e.page,i=e.pageSize,l=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/partitions/").concat(c,"/files"),{params:{specId:o,page:u,pageSize:i,token:l}})}function b(e){var t=e.catalog,a=e.db,r=e.table,c=e.page,o=e.pageSize,u=e.token,i=e.ref,l=e.operation;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/snapshots"),{params:{page:c,pageSize:o,token:u,ref:i,operation:l}})}function f(e){var t=e.catalog,a=e.db,r=e.table,c=e.snapshotId,o=e.page,u=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/snapshots/").concat(c,"/detail"),{params:{page:o,pageSize:u,token:i}})}function d(e){var t=e.catalog,a=e.db,r=e.table,c=e.page,o=e.pageSize,u=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/operations"),{params:{page:c,pageSize:o,token:u}})}function O(e){var t=e.catalog,a=e.db,r=e.table,c=e.page,o=e.pageSize,u=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/optimizing-processes"),{params:{page:c,pageSize:o,token:u}})}function g(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o,i=e.properties,l=void 0===i?{}:i,s=e.pkList,p=void 0===s?[]:s;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/upgrade"),{properties:l,pkList:p})}function j(){return n["a"].get("ams/v1/upgrade/properties")}function m(e){var t=e.catalog,a=void 0===t?"":t,r=e.db,c=void 0===r?"":r,o=e.table,u=void 0===o?"":o,i=e.processId,l=void 0===i?"":i;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(c,"/tables/").concat(u,"/optimizing-processes/").concat(l,"/cancel"))}function v(e){var t=e.catalog,a=e.db,r=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/branches"))}function h(e){var t=e.catalog,a=e.db,r=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(r,"/tags"))}},"5f36":function(e,t,a){},"6c78":function(e,t,a){},"7db0":function(e,t,a){"use strict";var n=a("23e7"),r=a("b727").find,c=a("44d2"),o="find",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),c(o)},"7fad":function(e,t,a){},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("7a23"),r=a("47e2");function c(){var e=Object(r["b"])(),t=e.t,a=Object(n["computed"])((function(){return t("catalog")})).value,c=Object(n["computed"])((function(){return t("databaseName")})).value,o=Object(n["computed"])((function(){return t("tableName")})).value,u=Object(n["computed"])((function(){return t("optimzerGroup")})).value,i=Object(n["computed"])((function(){return t("resourceGroup")})).value,l=Object(n["computed"])((function(){return t("parallelism")})).value,s=Object(n["computed"])((function(){return t("username")})).value,p=Object(n["computed"])((function(){return t("password")})).value,b=Object(n["computed"])((function(){return t("database",2)})).value,f=Object(n["computed"])((function(){return t("table",2)})).value,d=Object(n["computed"])((function(){return t("name")})).value,O=Object(n["computed"])((function(){return t("container")})).value;return{selectPh:t("selectPlaceholder"),inputPh:t("inputPlaceholder"),selectClPh:t("selectPlaceholder",{selectPh:a}),selectDBPh:t("selectPlaceholder",{selectPh:c}),inputDBPh:t("inputPlaceholder",{inputPh:c}),inputClPh:t("inputPlaceholder",{inputPh:a}),inputTNPh:t("inputPlaceholder",{inputPh:o}),selectOptGroupPh:t("inputPlaceholder",{inputPh:u}),resourceGroupPh:t("inputPlaceholder",{inputPh:i}),parallelismPh:t("inputPlaceholder",{inputPh:l}),usernamePh:t("inputPlaceholder",{inputPh:s}),passwordPh:t("inputPlaceholder",{inputPh:p}),filterDBPh:t("filterPlaceholder",{inputPh:b}),filterTablePh:t("filterPlaceholder",{inputPh:f}),groupNamePh:t("inputPlaceholder",{inputPh:d}),groupContainer:t("selectPlaceholder",{selectPh:O})}}},9054:function(e,t,a){"use strict";a("6c78")},"9df0":function(e,t,a){},adb5:function(e,t,a){"use strict";a.r(t);a("cd17");var n=a("ed3b"),r=a("1da1"),c=(a("06f4"),a("fc25")),o=(a("99af"),a("d3b7"),a("159b"),a("ac1f"),a("5319"),a("c740"),a("a434"),a("96cf"),a("7a23")),u=a("5738"),i=(a("3b18"),a("f64c")),l=a("5530"),s=a("15fd"),p=a("ade3"),b=(a("25f0"),a("d81d"),a("b0c0"),a("7db0"),a("b64b"),a("caad"),a("d9e2"),a("a15b"),a("2532"),a("00b4"),a("5606")),f=a("47e2"),d=a("4e01"),O=a("8552"),g=a("6c02"),j=a("e723"),m=["typeshow"],v={class:"detail-wrap"},h={class:"detail-content-wrap"},k={class:"content-wrap"},y={class:"header"},C={key:1,class:"config-value"},w={key:1},E={key:1},B={key:1},x={class:"header"},N={key:1,class:"config-value"},P={key:1,class:"config-value"},_={key:1,class:"config-value"},S={key:3},V=["onClick"],R={class:"header"},I={key:1,class:"config-value"},z={key:1,class:"config-value"},D={key:1,class:"config-value"},G={key:6},U=["onClick","title"],M={key:1,class:"config-value"},T={key:1,class:"config-value"},A={class:"header"},L={class:"header"},$={key:0,class:"footer-btn"},F={key:1,class:"footer-btn"},q=Object(o["defineComponent"])({props:{isEdit:{type:Boolean}},emits:["updateEdit","updateCatalogs"],setup:function(e,t){var a,c=t.emit,u=e,q={"Internal Catalog":"Internal Catalog","External Catalog":"External Catalog"},K=Object(f["b"])(),H=K.t,X=Object(g["d"])(),J=Object(o["reactive"])(Object(O["a"])()),W=Object(o["ref"])(""),Z=Object(o["computed"])((function(){return u.isEdit})),Q=Object(o["computed"])((function(){return"/ams/v1/files"})),Y=Object(o["computed"])((function(){var e,t=((null===(e=X.query)||void 0===e?void 0:e.catalogname)||"").toString();return"new catalog"===decodeURIComponent(t)})),ee=Object(o["computed"])((function(){return"hive"===pe.catalog.type})),te=(Object(o["computed"])((function(){return"ams"===pe.catalog.type})),Object(o["ref"])(!1)),ae=Object(o["ref"])(),ne=Object(o["ref"])(),re=Object(o["ref"])(),ce={MIXED_HIVE:"MIXED_HIVE",ICEBERG:"ICEBERG",MIXED_ICEBERG:"MIXED_ICEBERG",PAIMON:"PAIMON"},oe=(a={},Object(p["a"])(a,ce.ICEBERG,"Iceberg"),Object(p["a"])(a,ce.MIXED_HIVE,"Mixed Hive"),Object(p["a"])(a,ce.MIXED_ICEBERG,"Mixed Iceberg"),Object(p["a"])(a,ce.PAIMON,"Paimon"),a),ue={ams:[ce.MIXED_ICEBERG,ce.ICEBERG],hive:[ce.MIXED_HIVE,ce.MIXED_ICEBERG,ce.ICEBERG,ce.PAIMON],hadoop:[ce.MIXED_ICEBERG,ce.ICEBERG,ce.PAIMON],glue:[ce.MIXED_ICEBERG,ce.ICEBERG],custom:[ce.MIXED_ICEBERG,ce.ICEBERG]},ie={"hadoop.core.site":"core-site.xml","hadoop.hdfs.site":"hdfs-site.xml","hive.site":"hive-site.xml"},le={storageConfig:{"hadoop.core.site":"","hadoop.hdfs.site":""},authConfig:{"auth.kerberos.keytab":"","auth.kerberos.krb5":""}},se=Object(o["ref"])([{label:q["Internal Catalog"],value:q["Internal Catalog"]},{label:q["External Catalog"],value:q["External Catalog"]}]),pe=Object(o["reactive"])({catalog:{name:"",type:"ams",typeshow:q["Internal Catalog"],optimizerGroup:void 0},tableFormat:"",storageConfig:{},authConfig:{},properties:{},tableProperties:{},storageConfigArray:[],authConfigArray:[]}),be=Object(o["reactive"])([{label:"SIMPLE",value:"SIMPLE"},{label:"KERBEROS",value:"KERBEROS"}]),fe=Object(o["reactive"])([{label:"AK/SK",value:"AK/SK"},{label:"CUSTOM",value:"CUSTOM"}]),de={"hadoop.core.site":"Hadoop core-site","hadoop.hdfs.site":"Hadoop hdfs-site","hive.site":"Hadoop hive-site"},Oe={"auth.kerberos.keytab":"Kerberos Keytab","auth.kerberos.krb5":"Kerberos Krb5"},ge={ams:["warehouse"],hadoop:["warehouse"],custom:["catalog-impl"],glue:["warehouse","lock-impl","lock.table"],PAIMON:["warehouse"]};Object(o["watch"])((function(){return X.query}),(function(e){e&&ve()}),{immediate:!0,deep:!0});var je=Object(o["reactive"])([]),me=Object(o["ref"])([]);function ve(){we()}var he=function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(j["e"])();case 2:t=e.sent,a=(t||[]).map((function(e){return{lable:e.resourceGroup.name,value:e.resourceGroup.name}})),me.value=a;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function ke(){return ye.apply(this,arguments)}function ye(){return ye=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["d"])();case 2:t=e.sent,(t||[]).forEach((function(e){"ams"!==e.value&&je.push({label:e.display,value:e.value})})),Ce();case 5:case"end":return e.stop()}}),e)}))),ye.apply(this,arguments)}function Ce(){W.value=(je.find((function(e){return e.value===pe.catalog.type}))||{}).label}function we(){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r,c,o,u,i,s,p,f,d,O,g,j;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,te.value=!0,t=X.query,a=t.catalogname,n=t.type,a){e.next=5;break}return e.abrupt("return");case 5:if(!Y.value){e.next=20;break}pe.catalog.name="",pe.catalog.type=n||"ams",pe.catalog.optimizerGroup=void 0,pe.tableFormat=ce.MIXED_ICEBERG,pe.authConfig=Object(l["a"])({},le.authConfig),pe.storageConfig=Object(l["a"])({},le.storageConfig),r=ge[pe.catalog.type]||[],pe.properties={},r.forEach((function(e){pe.properties[e]=""})),pe.tableProperties={},pe.storageConfigArray.length=0,pe.authConfigArray.length=0,e.next=37;break;case 20:return e.next=22,Object(b["c"])(a);case 22:if(c=e.sent,c){e.next=25;break}return e.abrupt("return");case 25:o=c.name,u=c.type,i=c.tableFormatList,s=c.storageConfig,p=c.authConfig,f=c.properties,d=c.tableProperties,O=c.optimizerGroup,pe.catalog.name=o,pe.catalog.type=u,pe.catalog.optimizerGroup=O,pe.tableFormat=i.join(""),pe.authConfig=p,pe.storageConfig=s,pe.properties=f||{},pe.tableProperties=d||{},pe.storageConfigArray.length=0,pe.authConfigArray.length=0,Ce();case 37:pe.catalog.typeshow="ams"===pe.catalog.type?q["Internal Catalog"]:q["External Catalog"],g=pe.storageConfig,j=pe.authConfig,Object.keys(g).forEach((function(e){var t=["hadoop.core.site","hadoop.hdfs.site"];if(ee.value&&t.push("hive.site"),t.includes(e)){var a,n,r,c={key:e,label:de[e],value:null===(a=g[e])||void 0===a?void 0:a.fileName,fileName:null===(n=g[e])||void 0===n?void 0:n.fileName,fileUrl:null===(r=g[e])||void 0===r?void 0:r.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};pe.storageConfigArray.push(c)}})),Object.keys(j).forEach((function(e){if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){var t,a,n,r={key:e,label:Oe[e],value:null===(t=j[e])||void 0===t?void 0:t.fileName,fileName:null===(a=j[e])||void 0===a?void 0:a.fileName,fileUrl:null===(n=j[e])||void 0===n?void 0:n.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};pe.authConfigArray.push(r)}})),e.next=45;break;case 43:e.prev=43,e.t0=e["catch"](0);case 45:return e.prev=45,te.value=!1,e.finish(45);case 48:case"end":return e.stop()}}),e,null,[[0,43,45,48]])}))),Ee.apply(this,arguments)}var Be=function(e){e===q["Internal Catalog"]?pe.catalog.type="ams":pe.catalog.type=je[0].value,ze()},xe=Object(o["computed"])((function(){var e=pe.catalog.type;return ue[e]||[]}));function Ne(){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,ne.value.getPropertiesWithoputValidation();case 2:for(r in t=e.sent,a=ge[pe.catalog.type]||[],a.forEach((function(e){e&&!t[e]&&(t[e]="")})),n=ge[pe.tableFormat]||[],n.forEach((function(e){e&&!t[e]&&(t[e]="")})),t)t[r]||a.includes(r)||n.includes(r)||delete t[r];pe.properties=t;case 9:case"end":return e.stop()}}),e)}))),Pe.apply(this,arguments)}var _e=Object(o["reactive"])([{label:"S3",value:"S3"}]),Se=Object(o["reactive"])([{label:"Hadoop",value:"Hadoop"}]),Ve=Object(o["reactive"])([{label:"Hadoop",value:"Hadoop"},{label:"S3",value:"S3"}]),Re=Object(o["computed"])((function(){var e=pe.catalog.type;return"ams"===e||"custom"===e?Ve:"glue"===e?_e:"hive"===e||"hadoop"===e?Se:null})),Ie=Object(o["computed"])((function(){var e=pe.storageConfig["storage.type"];return"Hadoop"===e?be:"S3"===e?fe:null}));function ze(){return De.apply(this,arguments)}function De(){return De=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(pe.tableFormat=xe.value[0],Y.value){e.next=3;break}return e.abrupt("return");case 3:if(t=pe.storageConfigArray.findIndex((function(e){return"hive.site"===e.key})),!ee.value){e.next=11;break}if(!(t>-1)){e.next=7;break}return e.abrupt("return");case 7:pe.storageConfigArray.push({key:"hive.site",label:de["hive.site"],value:"",fileName:"",fileUrl:"",fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1}),pe.storageConfig["hive.site"]="",e.next=12;break;case 11:t>-1&&(pe.storageConfigArray.splice(t,1),delete pe.storageConfig["hive.site"]);case 12:return e.next=14,Ne();case 14:case"end":return e.stop()}}),e)}))),De.apply(this,arguments)}function Ge(){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Ne();case 2:case"end":return e.stop()}}),e)}))),Ue.apply(this,arguments)}function Me(){c("updateEdit",!0)}function Te(){return Ae.apply(this,arguments)}function Ae(){return Ae=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["a"])(pe.catalog.name);case 2:if(t=e.sent,!t){e.next=6;break}return He(),e.abrupt("return");case 6:n["a"].confirm({title:H("cannotDeleteModalTitle"),content:H("cannotDeleteModalContent"),wrapClassName:"not-delete-modal"});case 7:case"end":return e.stop()}}),e)}))),Ae.apply(this,arguments)}function Le(e,t){return $e.apply(this,arguments)}function $e(){return $e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a){e.next=2;break}return e.abrupt("return",Promise.reject(new Error(H("inputPlaceholder"))));case 2:if(!/^[a-zA-Z][\w-]*$/.test(a)){e.next=6;break}return e.abrupt("return",Promise.resolve());case 6:return e.abrupt("return",Promise.reject(new Error(H("invalidInput"))));case 7:case"end":return e.stop()}}),e)}))),$e.apply(this,arguments)}function Fe(){var e=pe.storageConfig,t=pe.authConfig,a=pe.storageConfigArray,n=pe.authConfigArray;Object.keys(t).forEach((function(e){if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){var a=(n.find((function(t){return t.key===e}))||{}).fileId;t[e]=a}})),Object.keys(e).forEach((function(t){if(["hadoop.core.site","hadoop.hdfs.site","hive.site"].includes(t)){var n=(a.find((function(e){return e.key===t}))||{}).fileId;e[t]=n}}))}function qe(){ae.value.validateFields().then(Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r,o,u,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=pe.catalog,a=pe.tableFormat,n=pe.storageConfig,r=pe.authConfig,e.next=3,ne.value.getProperties();case 3:return o=e.sent,e.next=6,re.value.getProperties();case 6:if(u=e.sent,o){e.next=9;break}return e.abrupt("return");case 9:if(u){e.next=11;break}return e.abrupt("return");case 11:return te.value=!0,t.typeshow,p=Object(s["a"])(t,m),Fe(),e.next=16,Object(b["g"])(Object(l["a"])(Object(l["a"])({isCreate:Y.value},p),{},{tableFormatList:[a],storageConfig:n,authConfig:r,properties:o,tableProperties:u})).then((function(){i["a"].success("".concat(H("save")," ").concat(H("success"))),c("updateEdit",!1,{catalogName:t.name,catalogType:t.type}),we(),ae.value.resetFields()})).catch((function(){i["a"].error("".concat(H("save")," ").concat(H("failed")))})).finally((function(){te.value=!1}));case 16:case"end":return e.stop()}}),e)})))).catch((function(){}))}function Ke(){ae.value.resetFields(),c("updateEdit",!1),we()}function He(){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n["a"].confirm({title:H("deleteCatalogModalTitle"),onOk:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["b"])(pe.catalog.name);case 2:i["a"].success("".concat(H("remove")," ").concat(H("success"))),c("updateEdit",!1,{});case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()});case 1:case"end":return e.stop()}}),e)}))),Xe.apply(this,arguments)}function Je(e,t,a){try{if("uploading"===e.file.status?t.uploadLoading=!0:t.uploadLoading=!1,"done"===e.file.status){var n=e.file.response.code;if(200!==n)throw new Error("failed");var r=e.file.response.result,c=r.url,o=r.id;t.isSuccess=!0,t.fileName="STORAGE"===a?ie[t.key]:e.file.name,t.fileUrl=c,t.fileId=o,i["a"].success("".concat(e.file.name," ").concat(H("uploaded")," ").concat(H("success")))}else"error"===e.file.status&&(t.isSuccess=!1,i["a"].error("".concat(e.file.name," ").concat(H("uploaded")," ").concat(H("failed"))))}catch(u){i["a"].error("".concat(H("uploaded")," ").concat(H("failed")))}}function We(e){e&&window.open(e)}return Object(o["onMounted"])((function(){ke(),he()})),function(e,t){var a=Object(o["resolveComponent"])("a-form-item"),n=Object(o["resolveComponent"])("a-input"),r=Object(o["resolveComponent"])("a-select"),c=Object(o["resolveComponent"])("a-radio"),u=Object(o["resolveComponent"])("a-radio-group"),i=Object(o["resolveComponent"])("a-button"),l=Object(o["resolveComponent"])("a-upload"),s=Object(o["resolveComponent"])("a-form"),p=Object(o["resolveComponent"])("u-loading");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",v,[Object(o["createElementVNode"])("div",h,[Object(o["createElementVNode"])("div",k,[Object(o["createVNode"])(s,{ref_key:"formRef",ref:ae,model:Object(o["unref"])(pe),class:"catalog-form"},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",y,Object(o["toDisplayString"])(e.$t("basic")),1)]})),_:1}),Object(o["createVNode"])(a,{label:e.$t("name"),name:["catalog","name"],rules:[{required:Object(o["unref"])(Z)&&Object(o["unref"])(Y),validator:Le}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)&&Object(o["unref"])(Y)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).catalog.name,"onUpdate:value":t[0]||(t[0]=function(e){return Object(o["unref"])(pe).catalog.name=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",C,Object(o["toDisplayString"])(Object(o["unref"])(pe).catalog.name),1))]})),_:1},8,["label","rules"]),Object(o["createVNode"])(a,{label:e.$t("type"),name:["catalog","typeshow"]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)&&Object(o["unref"])(Y)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).catalog.typeshow,"onUpdate:value":t[1]||(t[1]=function(e){return Object(o["unref"])(pe).catalog.typeshow=e}),options:se.value,placeholder:Object(o["unref"])(J).selectPh,onChange:Be},null,8,["value","options","placeholder"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",w,Object(o["toDisplayString"])(Object(o["unref"])(pe).catalog.typeshow),1))]})),_:1},8,["label"]),Object(o["unref"])(pe).catalog.typeshow===q["External Catalog"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:0,label:e.$t("metastore"),name:["catalog","type"],rules:[{required:Object(o["unref"])(Z)&&Object(o["unref"])(Y)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)&&Object(o["unref"])(Y)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).catalog.type,"onUpdate:value":t[2]||(t[2]=function(e){return Object(o["unref"])(pe).catalog.type=e}),options:Object(o["unref"])(je),placeholder:Object(o["unref"])(J).selectPh,onChange:ze},null,8,["value","options","placeholder"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",E,Object(o["toDisplayString"])(W.value),1))]})),_:1},8,["label","rules"])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,{label:e.$t("tableFormat"),name:["tableFormat"],rules:[{required:Object(o["unref"])(Z)&&Object(o["unref"])(Y)}]},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(u,{disabled:!Object(o["unref"])(Z)||!Object(o["unref"])(Y),value:Object(o["unref"])(pe).tableFormat,"onUpdate:value":t[3]||(t[3]=function(e){return Object(o["unref"])(pe).tableFormat=e}),name:"radioGroup",onChange:Ge},{default:Object(o["withCtx"])((function(){return[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(xe),(function(e){return Object(o["openBlock"])(),Object(o["createBlock"])(c,{key:e,value:e},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(oe[e]),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["disabled","value"])]})),_:1},8,["label","rules"]),Object(o["createVNode"])(a,{label:e.$t("optimizerGroup"),name:["catalog","optimizerGroup"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).catalog.optimizerGroup,"onUpdate:value":t[4]||(t[4]=function(e){return Object(o["unref"])(pe).catalog.optimizerGroup=e}),options:me.value,placeholder:Object(o["unref"])(J).selectPh},null,8,["value","options","placeholder"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",B,Object(o["toDisplayString"])(Object(o["unref"])(pe).catalog.optimizerGroup),1))]})),_:1},8,["label","rules"]),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",x,Object(o["toDisplayString"])(e.$t("storageConfigName")),1)]})),_:1}),Object(o["createVNode"])(a,{label:"Type",name:["storageConfig","storage.type"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).storageConfig["storage.type"],"onUpdate:value":t[5]||(t[5]=function(e){return Object(o["unref"])(pe).storageConfig["storage.type"]=e}),placeholder:Object(o["unref"])(J).selectPh,options:Object(o["unref"])(Re)},null,8,["value","placeholder","options"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",N,Object(o["toDisplayString"])(Object(o["unref"])(pe).storageConfig["storage.type"]),1))]})),_:1},8,["name","rules"]),"S3"===Object(o["unref"])(pe).storageConfig["storage.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:1,label:"Endpoint",name:["storageConfig","storage.s3.endpoint"],rules:[{required:!1}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).storageConfig["storage.s3.endpoint"],"onUpdate:value":t[6]||(t[6]=function(e){return Object(o["unref"])(pe).storageConfig["storage.s3.endpoint"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",P,Object(o["toDisplayString"])(Object(o["unref"])(pe).storageConfig["storage.s3.endpoint"]),1))]})),_:1},8,["name"])):Object(o["createCommentVNode"])("",!0),"S3"===Object(o["unref"])(pe).storageConfig["storage.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:2,label:"Region",name:["storageConfig","storage.s3.region"],rules:[{required:!1}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).storageConfig["storage.s3.region"],"onUpdate:value":t[7]||(t[7]=function(e){return Object(o["unref"])(pe).storageConfig["storage.s3.region"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",_,Object(o["toDisplayString"])(Object(o["unref"])(pe).storageConfig["storage.s3.region"]),1))]})),_:1},8,["name"])):Object(o["createCommentVNode"])("",!0),"Hadoop"===Object(o["unref"])(pe).storageConfig["storage.type"]?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",S,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(pe).storageConfigArray,(function(t){return Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(l,{key:0,"file-list":t.fileList,"onUpdate:file-list":function(e){return t.fileList=e},name:"file",accept:".xml",showUploadList:!1,action:Object(o["unref"])(Q),disabled:t.uploadLoading,onChange:function(e){return Je(e,t,"STORAGE")}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(i,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("upload")),1)]})),_:2},1032,["loading"])]})),_:2},1032,["file-list","onUpdate:file-list","action","disabled","onChange"])):Object(o["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",{key:1,class:Object(o["normalizeClass"])(["config-value",{"view-active":!!t.fileUrl}]),onClick:function(e){return We(t.fileUrl)}},Object(o["toDisplayString"])(t.fileName),11,V)):Object(o["createCommentVNode"])("",!0)]})),_:2},1032,["label"])})),128))])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",R,Object(o["toDisplayString"])(e.$t("authenticationConfig")),1)]})),_:1}),Object(o["createVNode"])(a,{label:"Type",name:["authConfig","auth.type"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(r,{key:0,value:Object(o["unref"])(pe).authConfig["auth.type"],"onUpdate:value":t[8]||(t[8]=function(e){return Object(o["unref"])(pe).authConfig["auth.type"]=e}),placeholder:Object(o["unref"])(J).selectPh,options:Object(o["unref"])(Ie)},null,8,["value","placeholder","options"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",I,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.type"]),1))]})),_:1},8,["name","rules"]),"SIMPLE"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:4,label:"Hadoop Username",name:["authConfig","auth.simple.hadoop_username"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.simple.hadoop_username"],"onUpdate:value":t[9]||(t[9]=function(e){return Object(o["unref"])(pe).authConfig["auth.simple.hadoop_username"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",z,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.simple.hadoop_username"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),"KERBEROS"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:5,label:"Kerberos Principal",name:["authConfig","auth.kerberos.principal"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.kerberos.principal"],"onUpdate:value":t[10]||(t[10]=function(e){return Object(o["unref"])(pe).authConfig["auth.kerberos.principal"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",D,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.kerberos.principal"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),"KERBEROS"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",G,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(pe).authConfigArray,(function(t){return Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(l,{key:0,"file-list":t.fileList,"onUpdate:file-list":function(e){return t.fileList=e},name:"file",accept:"auth.kerberos.keytab"===t.key?".keytab":".conf",showUploadList:!1,action:Object(o["unref"])(Q),disabled:t.uploadLoading,onChange:function(e){return Je(e,t)}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(i,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("upload")),1)]})),_:2},1032,["loading"])]})),_:2},1032,["file-list","onUpdate:file-list","accept","action","disabled","onChange"])):Object(o["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",{key:1,class:Object(o["normalizeClass"])(["config-value auth-filename",{"view-active":!!t.fileUrl}]),onClick:function(e){return We(t.fileUrl)},title:t.fileName},Object(o["toDisplayString"])(t.fileName),11,U)):Object(o["createCommentVNode"])("",!0)]})),_:2},1032,["label"])})),128))])):Object(o["createCommentVNode"])("",!0),"AK/SK"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:7,label:"Access Key",name:["authConfig","auth.ak_sk.access_key"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.ak_sk.access_key"],"onUpdate:value":t[11]||(t[11]=function(e){return Object(o["unref"])(pe).authConfig["auth.ak_sk.access_key"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",M,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.ak_sk.access_key"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),"AK/SK"===Object(o["unref"])(pe).authConfig["auth.type"]?(Object(o["openBlock"])(),Object(o["createBlock"])(a,{key:8,label:"Secret Key",name:["authConfig","auth.ak_sk.secret_key"],rules:[{required:Object(o["unref"])(Z)}]},{default:Object(o["withCtx"])((function(){return[Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,value:Object(o["unref"])(pe).authConfig["auth.ak_sk.secret_key"],"onUpdate:value":t[12]||(t[12]=function(e){return Object(o["unref"])(pe).authConfig["auth.ak_sk.secret_key"]=e})},null,8,["value"])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",T,Object(o["toDisplayString"])(Object(o["unref"])(pe).authConfig["auth.ak_sk.secret_key"]),1))]})),_:1},8,["name","rules"])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",A,Object(o["toDisplayString"])(e.$t("properties")),1)]})),_:1}),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(d["a"],{propertiesObj:Object(o["unref"])(pe).properties,isEdit:Object(o["unref"])(Z),ref_key:"propertiesRef",ref:ne},null,8,["propertiesObj","isEdit"])]})),_:1}),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",L,Object(o["toDisplayString"])(e.$t("tableProperties")),1)]})),_:1}),Object(o["createVNode"])(a,null,{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(d["a"],{propertiesObj:Object(o["unref"])(pe).tableProperties,isEdit:Object(o["unref"])(Z),ref_key:"tablePropertiesRef",ref:re},null,8,["propertiesObj","isEdit"])]})),_:1})]})),_:1},8,["model"])])]),Object(o["unref"])(Z)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",$,[Object(o["createVNode"])(i,{type:"primary",onClick:qe,class:"save-btn g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("save")),1)]})),_:1}),Object(o["createVNode"])(i,{onClick:Ke},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("cancel")),1)]})),_:1})])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(Z)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",F,[Object(o["createVNode"])(i,{type:"primary",onClick:Me,class:"edit-btn g-mr-12"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("edit")),1)]})),_:1}),Object(o["createVNode"])(i,{onClick:Te,class:"remove-btn"},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("remove")),1)]})),_:1})])),te.value?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:2})):Object(o["createCommentVNode"])("",!0)])}}}),K=(a("3c6b"),a("376e"),a("6b0d")),H=a.n(K);const X=H()(q,[["__scopeId","data-v-019ab485"]]);var J=X,W={class:"catalogs-wrap g-flex"},Z={class:"catalog-list-left"},Q={class:"catalog-header"},Y={key:0,class:"catalog-list"},ee=["onClick"],te=Object(o["createTextVNode"])("+"),ae={class:"catalog-detail"},ne=Object(o["defineComponent"])({setup:function(e){var t=Object(f["b"])(),a=t.t,i=Object(g["e"])(),l=Object(g["d"])(),s=Object(o["reactive"])([]),p=Object(o["reactive"])({}),b=Object(o["ref"])(!1),d="new catalog",O=Object(o["ref"])(!1),j=c["a"].PRESENTED_IMAGE_SIMPLE;function m(){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,O.value=!0,e.next=4,Object(u["c"])();case 4:t=e.sent,s.length=0,(t||[]).forEach((function(e){s.push({catalogName:e.catalogName,catalogType:e.catalogType})}));case 7:return e.prev=7,O.value=!1,e.finish(7);case 10:case"end":return e.stop()}}),e,null,[[0,,7,10]])}))),v.apply(this,arguments)}function h(){var e=l.query,t=e.catalogname,a=void 0===t?"":t,n=e.type,r={};if(decodeURIComponent(a)!==d){var c,o;if(a)r.catalogName=a,r.catalogType=n;else r.catalogName=null===(c=s[0])||void 0===c?void 0:c.catalogName,r.catalogType=null===(o=s[0])||void 0===o?void 0:o.catalogType;y(r)}else N()}function k(e){b.value?S((function(){y(e),b.value=!1,w(!1)})):y(e)}function y(e){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.catalogName,n=t.catalogType,p.catalogName=a||"",p.catalogType=n||"",e.next=5,i.replace({path:"/catalogs",query:{catalogname:encodeURIComponent(p.catalogName),type:p.catalogType}});case 5:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function w(e,t){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){var n,r,c,o,u,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(b.value=t,!a){e.next=5;break}return e.next=4,B();case 4:null!==a&&void 0!==a&&a.catalogName||(a.catalogName=null===(n=s[0])||void 0===n?void 0:n.catalogName,a.catalogType=null===(r=s[0])||void 0===r?void 0:r.catalogType);case 5:if(c=s.findIndex((function(e){return e.catalogName===d})),!(c>-1)){e.next=11;break}return s.splice(c),i={catalogName:null===(o=s[0])||void 0===o?void 0:o.catalogName,catalogType:null===(u=s[0])||void 0===u?void 0:u.catalogType},y(i),e.abrupt("return");case 11:a&&y(a);case 12:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function B(){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m();case 2:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function N(){b.value?S((function(){P()})):P()}function P(){return _.apply(this,arguments)}function _(){return _=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={catalogName:d,catalogType:""},e.next=3,y(t);case 3:s.push(t),b.value=!0;case 5:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function S(e){n["a"].confirm({title:a("leavePageModalTitle"),content:a("leavePageModalContent"),okText:a("leave"),onOk:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.t0=e,!t.t0){t.next=4;break}return t.next=4,e();case 4:case"end":return t.stop()}}),t)})));function a(){return t.apply(this,arguments)}return a}()})}return Object(o["onMounted"])(Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m();case 2:h();case 3:case"end":return e.stop()}}),e)})))),Object(g["c"])((function(e,t,a){b.value?S((function(){a()})):a()})),function(e,t){var a=Object(o["resolveComponent"])("a-button"),n=Object(o["resolveComponent"])("a-empty");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",W,[Object(o["createElementVNode"])("div",Z,[Object(o["createElementVNode"])("div",Q,Object(o["toDisplayString"])("".concat(e.$t("catalog")," ").concat(e.$t("list"))),1),Object(o["unref"])(s).length&&!O.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("ul",Y,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(s),(function(e){return Object(o["openBlock"])(),Object(o["createElementBlock"])("li",{key:e.catalogName,class:Object(o["normalizeClass"])(["catalog-item g-text-nowrap",{active:e.catalogName===Object(o["unref"])(p).catalogName}]),onClick:function(t){return k(e)}},Object(o["toDisplayString"])(e.catalogName),11,ee)})),128))])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(a,{onClick:N,disabled:Object(o["unref"])(p).catalogName===d,class:"add-btn"},{default:Object(o["withCtx"])((function(){return[te]})),_:1},8,["disabled"])]),Object(o["createElementVNode"])("div",ae,[Object(o["unref"])(s).length||O.value?(Object(o["openBlock"])(),Object(o["createBlock"])(J,{key:1,isEdit:b.value,onUpdateEdit:w,onUpdateCatalogs:B},null,8,["isEdit"])):(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,image:Object(o["unref"])(j),class:"detail-empty"},null,8,["image"]))])])}}});a("c5c7");const re=H()(ne,[["__scopeId","data-v-0914312d"]]);t["default"]=re},c5c7:function(e,t,a){"use strict";a("9df0")},caad:function(e,t,a){"use strict";var n=a("23e7"),r=a("4d64").includes,c=a("44d2");n({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),c("includes")},e723:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return o})),a.d(t,"i",(function(){return u})),a.d(t,"h",(function(){return i})),a.d(t,"e",(function(){return l})),a.d(t,"b",(function(){return p})),a.d(t,"a",(function(){return b})),a.d(t,"j",(function(){return f})),a.d(t,"g",(function(){return d})),a.d(t,"f",(function(){return O}));var n=a("1da1"),r=(a("96cf"),a("99af"),a("b0c0"),a("b32d"));function c(e){var t=e.optimizerGroup,a=e.page,n=e.pageSize;return r["a"].get("ams/v1/optimize/optimizerGroups/".concat(t,"/tables"),{params:{page:a,pageSize:n}})}function o(e){var t=e.optimizerGroup,a=e.page,n=e.pageSize;return r["a"].get("ams/v1/optimize/optimizerGroups/".concat(t,"/optimizers"),{params:{page:a,pageSize:n}})}function u(e){var t=e.optimizerGroup,a=e.parallelism;return r["a"].post("ams/v1/optimize/optimizerGroups/".concat(t,"/optimizers"),{parallelism:a})}function i(e){var t=e.optimizerGroup,a=e.jobId;return r["a"].delete("ams/v1/optimize/optimizerGroups/".concat(t,"/optimizers/").concat(a))}function l(){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r["a"].get("ams/v1/optimize/resourceGroups");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}var p=function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r["a"].get("ams/v1/optimize/containers/get");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(e){return r["a"].post("ams/v1/optimize/resourceGroups",e)},f=function(e){return r["a"].put("ams/v1/optimize/resourceGroups",e)},d=function(e){return r["a"].get("/ams/v1/optimize/resourceGroups/".concat(e.name,"/delete/check"))},O=function(e){return r["a"].delete("/ams/v1/optimize/resourceGroups/".concat(e.name))}}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-c4d29046.1fde858d.js b/ams/dashboard/src/main/resources/static/js/chunk-c4d29046.1fde858d.js new file mode 100644 index 0000000000..0d55954d2a --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/chunk-c4d29046.1fde858d.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c4d29046"],{"0014":function(e,t,n){},"3f25":function(e,t,n){},5738:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"m",(function(){return r})),n.d(t,"l",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"q",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"k",(function(){return b})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return v})),n.d(t,"o",(function(){return m})),n.d(t,"r",(function(){return g})),n.d(t,"p",(function(){return O})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return h})),n.d(t,"n",(function(){return k}));n("99af"),n("4de4"),n("d3b7");var a=n("b32d");function c(){return a["a"].get("ams/v1/catalogs")}function o(e){var t=e.catalog,n=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:n}})}function r(e){var t=e.catalog,n=e.db,c=e.keywords;return a["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(n,"/tables"),{params:{keywords:c}})}function l(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r,u=e.token,i=void 0===u?"":u;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/details"),{params:{token:i}})}function u(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/hive/details"))}function i(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r;return a["a"].get("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/upgrade/status"))}function s(e){var t=e.catalog,n=e.db,c=e.table,o=e.filter,r=e.page,l=e.pageSize,u=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions"),{params:{filter:o,page:r,pageSize:l,token:u}})}function d(e){var t=e.catalog,n=e.db,c=e.table,o=e.partition,r=e.specId,l=e.page,u=e.pageSize,i=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/partitions/").concat(o,"/files"),{params:{specId:r,page:l,pageSize:u,token:i}})}function b(e){var t=e.catalog,n=e.db,c=e.table,o=e.page,r=e.pageSize,l=e.token,u=e.ref,i=e.operation;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots"),{params:{page:o,pageSize:r,token:l,ref:u,operation:i}})}function p(e){var t=e.catalog,n=e.db,c=e.table,o=e.snapshotId,r=e.page,l=e.pageSize,u=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/snapshots/").concat(o,"/detail"),{params:{page:r,pageSize:l,token:u}})}function f(e){var t=e.catalog,n=e.db,c=e.table,o=e.page,r=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/operations"),{params:{page:o,pageSize:r,token:l}})}function v(e){var t=e.catalog,n=e.db,c=e.table,o=e.page,r=e.pageSize,l=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/optimizing-processes"),{params:{page:o,pageSize:r,token:l}})}function m(e){var t=e.catalog,n=e.db,c=e.table,o=e.processId,r=e.page,l=e.pageSize,u=e.token;return a["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/optimizing-processes/").concat(o,"/tasks"),{params:{page:r,pageSize:l,token:u}})}function g(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r,u=e.properties,i=void 0===u?{}:u,s=e.pkList,d=void 0===s?[]:s;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/upgrade"),{properties:i,pkList:d})}function O(){return a["a"].get("ams/v1/upgrade/properties")}function j(e){var t=e.catalog,n=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,l=void 0===r?"":r,u=e.processId,i=void 0===u?"":u;return a["a"].post("ams/v1/tables/catalogs/".concat(n,"/dbs/").concat(o,"/tables/").concat(l,"/optimizing-processes/").concat(i,"/cancel"))}function h(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/branches"))}function k(e){var t=e.catalog,n=e.db,c=e.table;return a["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(n,"/tables/").concat(c,"/tags"))}},8552:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n("7a23"),c=n("47e2");function o(){var e=Object(c["b"])(),t=e.t,n=Object(a["computed"])((function(){return t("catalog")})).value,o=Object(a["computed"])((function(){return t("databaseName")})).value,r=Object(a["computed"])((function(){return t("tableName")})).value,l=Object(a["computed"])((function(){return t("optimzerGroup")})).value,u=Object(a["computed"])((function(){return t("resourceGroup")})).value,i=Object(a["computed"])((function(){return t("parallelism")})).value,s=Object(a["computed"])((function(){return t("username")})).value,d=Object(a["computed"])((function(){return t("password")})).value,b=Object(a["computed"])((function(){return t("database",2)})).value,p=Object(a["computed"])((function(){return t("table",2)})).value,f=Object(a["computed"])((function(){return t("name")})).value,v=Object(a["computed"])((function(){return t("container")})).value;return{selectPh:t("selectPlaceholder"),inputPh:t("inputPlaceholder"),selectClPh:t("selectPlaceholder",{selectPh:n}),selectDBPh:t("selectPlaceholder",{selectPh:o}),inputDBPh:t("inputPlaceholder",{inputPh:o}),inputClPh:t("inputPlaceholder",{inputPh:n}),inputTNPh:t("inputPlaceholder",{inputPh:r}),selectOptGroupPh:t("inputPlaceholder",{inputPh:l}),resourceGroupPh:t("inputPlaceholder",{inputPh:u}),parallelismPh:t("inputPlaceholder",{inputPh:i}),usernamePh:t("inputPlaceholder",{inputPh:s}),passwordPh:t("inputPlaceholder",{inputPh:d}),filterDBPh:t("filterPlaceholder",{inputPh:b}),filterTablePh:t("filterPlaceholder",{inputPh:p}),groupNamePh:t("inputPlaceholder",{inputPh:f}),groupContainer:t("selectPlaceholder",{selectPh:v})}}},9065:function(e,t,n){"use strict";n("0014")},b0b0:function(e,t,n){"use strict";n("d9da")},b7af:function(e,t,n){"use strict";n("3f25")},d323:function(e,t,n){"use strict";n.r(t);var a=n("7a23"),c={class:"console-wrap"},o={class:"sql-block"},r={class:"top-ops g-flex-jsb"},l={class:"title-left g-flex-ac"},u={class:"select-catalog g-mr-12"},i={class:"label"},s={class:"title-right"},d={class:"sql-content"},b={class:"sql-raw"},p={class:"g-ml-12"},f={class:"sql-shortcuts"},v={class:"shortcuts"},m={class:"tab-operation"},g={class:"tab"},O=["onClick"],j={class:"debug-result"};function h(e,t,n,h,k,C){var y=Object(a["resolveComponent"])("a-select"),w=Object(a["resolveComponent"])("svg-icon"),B=Object(a["resolveComponent"])("a-tooltip"),N=Object(a["resolveComponent"])("sql-editor"),S=Object(a["resolveComponent"])("loading-outlined"),E=Object(a["resolveComponent"])("close-circle-outlined"),V=Object(a["resolveComponent"])("check-circle-outlined"),x=Object(a["resolveComponent"])("a-button"),P=Object(a["resolveComponent"])("sql-log"),q=Object(a["resolveComponent"])("sql-result"),R=Object(a["resolveComponent"])("u-loading");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",c,[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["console-content",{fullscreen:e.fullscreen}])},[Object(a["createElementVNode"])("div",{style:Object(a["normalizeStyle"])({height:"".concat(e.sqlResultHeight,"px")}),class:"sql-wrap"},[Object(a["createElementVNode"])("div",o,[Object(a["createElementVNode"])("div",r,[Object(a["createElementVNode"])("div",l,[Object(a["createElementVNode"])("div",u,[Object(a["createElementVNode"])("span",i,Object(a["toDisplayString"])(e.$t("use")),1),Object(a["createVNode"])(y,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=function(t){return e.curCatalog=t}),style:{width:"200px"},options:e.catalogOptions,onChange:e.changeUseCatalog},null,8,["value","options","onChange"])]),"Running"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(B,{key:0,title:e.$t("pause"),placement:"bottom"},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg","icon-class":"sqlpause",onClick:t[1]||(t[1]=function(t){return e.handleIconClick("pause")}),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]})),_:1},8,["title"])):(Object(a["openBlock"])(),Object(a["createBlock"])(B,{key:1,title:e.$t("run"),placement:"bottom"},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg","icon-class":"sqldebug",onClick:t[2]||(t[2]=function(t){return e.handleIconClick("debug")}),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]})),_:1},8,["title"])),Object(a["createVNode"])(B,{title:e.$t("format"),placement:"bottom"},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg",isStroke:!0,"icon-class":"format",onClick:t[3]||(t[3]=function(t){return e.handleIconClick("format")}),disabled:e.readOnly},null,8,["disabled"])]})),_:1},8,["title"])]),Object(a["createElementVNode"])("div",s,[Object(a["createVNode"])(B,{title:e.fullscreen?e.$t("recovery"):e.$t("fullscreen"),placement:"bottom",getPopupContainer:e.getPopupContainer},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(w,{className:"icon-svg",isStroke:!0,"icon-class":e.fullscreen?"sqlinit":"sqlmax",onClick:e.handleFull,disabled:!1,class:"g-ml-12"},null,8,["icon-class","onClick"])]})),_:1},8,["title","getPopupContainer"])])]),Object(a["createElementVNode"])("div",d,[Object(a["createElementVNode"])("div",b,[Object(a["createVNode"])(N,{ref:"sqlEditorRef",sqlValue:e.sqlSource,value:e.sqlSource,"onUpdate:value":t[4]||(t[4]=function(t){return e.sqlSource=t}),readOnly:e.readOnly,options:{readOnly:e.readOnly,minimap:{enabled:!1}}},null,8,["sqlValue","value","readOnly","options"])]),e.runStatus?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:"run-status",style:Object(a["normalizeStyle"])({background:e.bgcMap[e.runStatus]})},["Running"===e.runStatus||"Canceling"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(S,{key:0,style:{color:"#1890ff"}})):Object(a["createCommentVNode"])("",!0),"Canceled"===e.runStatus||"Failed"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(E,{key:1,style:{color:"#ff4d4f"}})):Object(a["createCommentVNode"])("",!0),"Finished"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(V,{key:2,style:{color:"#52c41a"}})):Object(a["createCommentVNode"])("",!0),"Created"===e.runStatus?(Object(a["openBlock"])(),Object(a["createBlock"])(E,{key:3,style:{color:"#333"}})):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("span",p,Object(a["toDisplayString"])(e.$t(e.runStatus)),1)],4)):Object(a["createCommentVNode"])("",!0)])]),Object(a["createElementVNode"])("div",f,[Object(a["createElementVNode"])("div",v,Object(a["toDisplayString"])(e.$t("sqlShortcuts")),1),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.shortcuts,(function(t){return Object(a["openBlock"])(),Object(a["createBlock"])(x,{key:t,type:"link",disabled:"Running"===e.runStatus||"Canceling"===e.runStatus,onClick:function(n){return e.generateCode(t)},class:"code"},{default:Object(a["withCtx"])((function(){return[Object(a["createTextVNode"])(Object(a["toDisplayString"])(t),1)]})),_:2},1032,["disabled","onClick"])})),128))])],4),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["sql-result",e.resultFullscreen?"result-full":""]),style:Object(a["normalizeStyle"])({height:"calc(100% - ".concat(e.sqlResultHeight,"px)")})},[Object(a["createElementVNode"])("span",{class:"drag-line",onMousedown:t[5]||(t[5]=function(){return e.dragMounseDown&&e.dragMounseDown.apply(e,arguments)})},[Object(a["createVNode"])(w,{class:"icon","icon-class":"slide"})],32),Object(a["createElementVNode"])("div",m,[Object(a["createElementVNode"])("div",g,[Object(a["createElementVNode"])("span",{class:Object(a["normalizeClass"])([{active:"log"===e.operationActive},"tab-item"]),onClick:t[6]||(t[6]=function(t){return e.operationActive="log"})},Object(a["toDisplayString"])(e.$t("log")),3),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.resultTabList,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("span",{key:t.id,class:Object(a["normalizeClass"])([{active:e.operationActive===t.id},"tab-item"]),onClick:function(n){return e.operationActive=t.id}},Object(a["toDisplayString"])(t.id),11,O)})),128))])]),Object(a["createElementVNode"])("div",j,[Object(a["withDirectives"])(Object(a["createVNode"])(P,{ref:"sqlLogRef"},null,512),[[a["vShow"],"log"===e.operationActive]]),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.resultTabList,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],{key:t.id},[e.operationActive===t.id?(Object(a["openBlock"])(),Object(a["createBlock"])(q,{key:0,info:t},null,8,["info"])):Object(a["createCommentVNode"])("",!0)],64)})),128))])],6)],2),e.loading?(Object(a["openBlock"])(),Object(a["createBlock"])(R,{key:0})):Object(a["createCommentVNode"])("",!0)])}n("3b18");var k=n("f64c"),C=n("2909"),y=n("1da1"),w=(n("96cf"),n("d3b7"),n("159b"),n("c740"),n("a15b"),n("5530")),B=n("c2c6"),N={theme:"arcticSql",language:"sql",fontSize:12,lineHeight:24,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',folding:!0,suggestLineHeight:20,autoIndent:!0,renderLineHighlight:"all",scrollBeyondLastLine:!1,contextmenu:!1,readOnly:!0,fixedOverflowWidgets:!0},S=Object.assign({},N,{theme:"arcticSql",language:"sql",readOnly:!1,lineHeight:24,fontSize:12,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',lineNumbersMinChars:3,wordWrap:"on",renderLineHighlight:"all",minimap:{enabled:!1},contextmenu:!1,automaticLayout:!0,scrollBeyondLastLine:!1}),E=Object(a["defineComponent"])({props:{sqlValue:null,options:null,readOnly:{type:Boolean}},emits:["save","update:value","change"],setup:function(e,t){var n,c=t.expose,o=t.emit,r=e,l="",u={};function i(){n&&n.layout()}function s(){if(n){var e=n.addCommand(B["KeyMod"].CtrlCmd|B["KeyCode"].KEY_S,(function(){o("save")}));u.save=e;var t=n.addCommand(B["KeyMod"].Alt|B["KeyMod"].Shift|B["KeyCode"].KEY_F,(function(){d()}));u.format=t}}function d(){var e=n&&n.getAction("editor.action.formatDocument");e&&e.run()}return Object(a["watch"])((function(){return r.sqlValue}),(function(e){e&&l!==e&&n&&n.setValue(e)})),window.addEventListener("resize",i),c({executeCommand:function(e){var t=u[e],a=n;t&&a&&a._commandService.executeCommand(t)},updateOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n&&n.updateOptions(e)}}),Object(a["onBeforeUnmount"])((function(){window.removeEventListener("resize",i),n&&n.dispose()})),Object(a["onMounted"])((function(){var e=document.getElementsByClassName("m-sql-editor")[0];Object(a["nextTick"])((function(){var t=n=B["editor"].create(e,Object(w["a"])(Object(w["a"])({},S),r.options));s(),t.setValue(r.sqlValue||""),t.onDidChangeModelContent((function(e){var t=n.getValue();o("update:value",t),o("change",t),l=t}))}))})),function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["m-sql-editor",{disabled:e.readOnly}]),style:{height:"100%",width:"100%"}},null,2)}}}),V=(n("fea2"),n("6b0d")),x=n.n(V);const P=x()(E,[["__scopeId","data-v-13c652ee"]]);var q=P,R=n("f38b"),L=n("8fe6"),z=n("411c"),I=n("d34f"),D={class:"sql-result-wrap"},M={class:"g-ml-8"},F={key:0,class:"empty"},H={key:1,class:"result-wrap"},T={class:"ant-table sql-result-table",style:{width:"100%"}},A={class:"ant-table-thead"},_={class:"ant-table-tbody"},G=["title"],U=Object(a["defineComponent"])({props:{info:null},setup:function(e){var t=e,n=Object(a["computed"])((function(){var e;return!t.info||!(null!==(e=t.info)&&void 0!==e&&e.columns)})),c=Object(a["computed"])((function(){var e;return null===(e=t.info)||void 0===e?void 0:e.status}));return function(e,o){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",D,[Object(a["createElementVNode"])("div",{class:"result-status",style:Object(a["normalizeStyle"])({background:Object(a["unref"])(R["b"])[Object(a["unref"])(c)]})},["Running"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(L["a"]),{key:0,style:{color:"#1890ff"}})):Object(a["createCommentVNode"])("",!0),"Canceled"===Object(a["unref"])(c)||"Failed"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(z["a"]),{key:1,style:{color:"#ff4d4f"}})):Object(a["createCommentVNode"])("",!0),"Finished"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(I["a"]),{key:2,style:{color:"#52c41a"}})):Object(a["createCommentVNode"])("",!0),"Created"===Object(a["unref"])(c)?(Object(a["openBlock"])(),Object(a["createBlock"])(Object(a["unref"])(z["a"]),{key:3,style:{color:"#333"}})):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("span",M,Object(a["toDisplayString"])(Object(a["unref"])(c)),1)],4),Object(a["unref"])(n)?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",F,Object(a["toDisplayString"])(e.$t("noResult")),1)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",H,[Object(a["createElementVNode"])("table",T,[Object(a["createElementVNode"])("thead",A,[Object(a["createElementVNode"])("tr",null,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(t.info.columns,(function(e){return Object(a["openBlock"])(),Object(a["createElementBlock"])("th",{key:e},Object(a["toDisplayString"])(e),1)})),128))])]),Object(a["createElementVNode"])("tbody",_,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(t.info.rowData,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("tr",{key:t+1},[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e,(function(e,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("td",{key:t+e+n},[Object(a["createElementVNode"])("span",{class:"td-val",title:e},Object(a["toDisplayString"])(e),9,G)])})),128))])})),128))])])]))])}}});n("9065");const $=x()(U,[["__scopeId","data-v-5e56b470"]]);var K=$,Y={class:"sql-log"},J=["innerHTML"],W=Object(a["defineComponent"])({setup:function(e,t){var n=t.expose,c=Object(a["ref"])("");return n({initData:function(e){c.value=e}}),function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Y,[Object(a["createElementVNode"])("div",{innerHTML:c.value,style:{"white-space":"pre-wrap","font-size":"12px"}},null,8,J)])}}});n("b0b0");const Z=x()(W,[["__scopeId","data-v-d5f228ba"]]);var Q=Z,X=n("b32d");function ee(e){return X["a"].get("ams/v1/terminal/".concat(e,"/result"))}function te(){return X["a"].get("ams/v1/terminal/examples")}function ne(e){return X["a"].get("ams/v1/terminal/examples/".concat(e))}function ae(e){var t=e.catalog,n=e.sql;return X["a"].post("ams/v1/terminal/catalogs/".concat(t,"/execute"),{sql:n})}function ce(e){return X["a"].put("ams/v1/terminal/".concat(e,"/stop"))}function oe(e){return X["a"].get("ams/v1/terminal/".concat(e,"/logs"))}function re(){return X["a"].get("ams/v1/terminal/latestInfos")}var le=n("5738"),ue=n("8552"),ie=Object(a["defineComponent"])({name:"Terminal",components:{SqlEditor:q,SqlResult:K,SqlLog:Q,CheckCircleOutlined:I["a"],CloseCircleOutlined:z["a"],LoadingOutlined:L["a"]},setup:function(){var e=Object(a["reactive"])(Object(ue["a"])()),t=Object(a["ref"])(!1),n=Object(a["ref"])(null),c=Object(a["ref"])(null),o=Object(a["ref"])(!1),r=Object(a["ref"])(""),l=Object(a["ref"])(!1),u=Object(a["ref"])(""),i=Object(a["ref"])(),s=Object(a["ref"])(!1),d=Object(a["ref"])(!1),b=Object(a["ref"])("log"),p=Object(a["reactive"])([]),f=Object(a["reactive"])([]),v=Object(a["ref"])(""),m=Object(a["ref"])(),g=Object(a["reactive"])([]),O=Object(a["ref"])(476),j=Object(a["shallowReactive"])(R["b"]),h="easylake-sql-source",w="easylake-use-catalog";Object(a["watch"])((function(){return o}),(function(){n.value.updateOptions({readOnly:o})}));var B=function(e){"debug"!==e?"format"!==e?"pause"===e&&L():n.value&&n.value.executeCommand("format"):q()},N=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(le["c"])();case 2:t=e.sent,(t||[]).forEach((function(e){p.push({value:e.catalogName,label:e.catalogName})})),p.length&&(n=K(w),a=p.findIndex((function(e){return e.value===n})),v.value=a>-1?n:p[0].value);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,te();case 2:t=e.sent,f.push.apply(f,Object(C["a"])(t||[]));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){$(w,v.value)},V=function(){s.value=!s.value},x=function(){d.value=!d.value},P=function(){g.length=0,c.value.initData("")},q=function(){var t=Object(y["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,v.value){t.next=4;break}return k["a"].error(e.selectClPh),t.abrupt("return");case 4:return l.value=!0,P(),u.value="Running",t.next=9,ae({catalog:v.value,sql:r.value});case 9:n=t.sent,i.value=n.sessionId||"0",I(),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](0),u.value="Failed",k["a"].error(t.t0.message||"error");case 18:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}(),L=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.value){e.next=9;break}return b.value="log",m.value&&clearTimeout(m.value),l.value=!1,u.value="Canceling",P(),o.value=!0,e.next=9,ce(i.value).then((function(){u.value="Canceled"})).catch((function(){u.value="Failed"})).finally((function(){o.value=!1}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,g.length=0,e.next=4,ee(i.value||"0");case 4:t=e.sent,t&&t.length&&g.push.apply(g,Object(C["a"])(t)),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var t,n,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(m.value&&clearTimeout(m.value),"Running"===u.value){e.next=3;break}return e.abrupt("return");case 3:if(!i.value){e.next=20;break}return e.next=6,oe(i.value);case 6:return t=e.sent,b.value="log",n=t||{},a=n.logStatus,o=n.logs,null!==o&&void 0!==o&&o.length&&c.value.initData(o.join("\n")),"Canceled"!==u.value&&(u.value=a),e.next=13,z();case 13:if("Finished"!==a&&"Canceled"!==a){e.next=17;break}g.length&&(b.value=g[0].id),e.next=20;break;case 17:if("Canceled"!==u.value){e.next=19;break}return e.abrupt("return");case 19:m.value=setTimeout((function(){I()}),1500);case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,b.value="log","Running"!==u.value){e.next=4;break}return e.abrupt("return");case 4:return clearTimeout(m.value),t.value=!0,e.next=8,ne(n);case 8:a=e.sent,r.value=r.value+"\n-- SQL shortcut generated\n"+a,l.value=!1,u.value="",P(),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](0),k["a"].error(e.t0.message);case 18:return e.prev=18,t.value=!1,e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[0,15,18,21]])})));return function(t){return e.apply(this,arguments)}}(),M=function(){return document.body},F=function(){var e=Object(y["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n.value&&(r.value=K(h)),t.value=!0,e.next=5,re();case 5:a=e.sent,i.value=a.sessionId,a.sessionId>"0"&&(n.value&&!r.value&&(r.value=a.sql||""),u.value="Running",l.value=!0,I()),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),k["a"].error(e.t0.message);case 13:return e.prev=13,t.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])})));return function(){return e.apply(this,arguments)}}(),H={topbarHeight:48,optionHeight:44,resultTabHeight:40,runStatusHeight:32,gap:48},T=0,A=0,_=function(e){T=e.clientY,A=O.value,window.addEventListener("mousemove",G),window.addEventListener("mouseup",U)},G=function(e){var t=e.clientY,n=t-T,a=s.value?0:H.topbarHeight,c=u.value?H.runStatusHeight:0,o=A+n;o=Math.max(o,H.optionHeight+c),o=Math.min(o,window.innerHeight-a-(s.value?0:H.gap)-H.optionHeight-4),O.value=o},U=function e(){window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",e)},$=function(e,t){localStorage.setItem(e,t)},K=function(e){return localStorage.getItem(e)||""};return Object(a["onBeforeUnmount"])((function(){clearTimeout(m.value),$(h,r.value)})),Object(a["onMounted"])((function(){F(),S(),N()})),{loading:t,bgcMap:j,sqlLogRef:c,sqlEditorRef:n,fullscreen:s,resultFullscreen:d,operationActive:b,resultTabList:g,runStatus:u,shortcuts:f,curCatalog:v,catalogOptions:p,handleIconClick:B,handleFull:V,resultFull:x,showDebug:l,sqlSource:r,readOnly:o,generateCode:D,getPopupContainer:M,sqlResultHeight:O,dragMounseDown:_,changeUseCatalog:E}}});n("b7af");const se=x()(ie,[["render",h],["__scopeId","data-v-63042b65"]]);t["default"]=se},d9da:function(e,t,n){},ec5b:function(e,t,n){},f38b:function(e,t,n){"use strict";var a,c,o,r,l;n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return l})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(a||(a={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(c||(c={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(o||(o={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(r||(r={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(l||(l={}))},fea2:function(e,t,n){"use strict";n("ec5b")}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-c92af2b4.2678050a.js b/ams/dashboard/src/main/resources/static/js/chunk-c92af2b4.2678050a.js new file mode 100644 index 0000000000..b919d75a68 --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/chunk-c92af2b4.2678050a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c92af2b4"],{"1ccf":function(e,t,n){"use strict";n("1e91")},"1e91":function(e,t,n){},"1fe5":function(e,t,n){"use strict";n("27a2")},2532:function(e,t,n){"use strict";var i=n("23e7"),a=n("e330"),o=n("5a34"),c=n("1d80"),r=n("577e"),s=n("ab13"),l=a("".indexOf);i({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~l(r(c(this)),r(o(e)),arguments.length>1?arguments[1]:void 0)}})},"27a2":function(e,t,n){},"3c7f":function(e,t,n){"use strict";var i=n("7a23"),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=a,c=n("b3f0");function r(e){for(var t=1;t2)if(l=j(l),t=T(l,0),43===t||45===t){if(n=T(l,2),88===n||120===n)return NaN}else if(48===t){switch(T(l,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+l}for(o=y(l,2),c=o.length,r=0;ra)return NaN;return parseInt(o,i)}return+l};if(c(v,!O(" 0o1")||!O("0b1")||O("+0x1"))){for(var w,I=function(e){var t=arguments.length<1?0:O(z(e)),n=this;return u(g,n)&&p((function(){m(n)}))?l(Object(t),n,I):t},L=i?h(O):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),S=0;L.length>S;S++)s(O,w=L[S])&&!s(I,w)&&M(I,w,f(O,w));I.prototype=g,g.constructor=I,r(a,v,I)}},ac31:function(e,t,n){},bb51:function(e,t,n){"use strict";n.r(t);var i=n("7a23"),a={class:"layout"},o={class:"right-content"},c={class:"content"};function r(e,t,n,r,s,l){var u=Object(i["resolveComponent"])("side-bar"),d=Object(i["resolveComponent"])("top-bar"),b=Object(i["resolveComponent"])("router-view");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",a,[Object(i["createVNode"])(u),Object(i["createElementVNode"])("div",o,[e.showTopBar?(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:0})):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",c,[Object(i["createVNode"])(b)])])])}var s=n("46fe"),l=n.n(s),u=n("f171"),d=n.n(u),b=function(e){return Object(i["pushScopeId"])("data-v-c08cb56c"),e=e(),Object(i["popScopeId"])(),e},p=b((function(){return Object(i["createElementVNode"])("img",{src:l.a,class:"logo-img",alt:""},null,-1)})),h={src:d.a,class:"arctic-name",alt:""};function f(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("svg-icon"),s=Object(i["resolveComponent"])("a-menu-item"),l=Object(i["resolveComponent"])("a-menu"),u=Object(i["resolveComponent"])("MenuUnfoldOutlined"),d=Object(i["resolveComponent"])("MenuFoldOutlined"),b=Object(i["resolveComponent"])("a-button"),f=Object(i["resolveComponent"])("TableMenu");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])([{"side-bar-collapsed":e.collapsed},"side-bar"])},[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])([{"logo-collapsed":e.collapsed},"logo g-flex-ae"]),onMouseenter:t[0]||(t[0]=function(t){return e.toggleTablesMenu(!1)}),onClick:t[1]||(t[1]=function(){return e.viewIntroduce&&e.viewIntroduce.apply(e,arguments)})},[p,Object(i["withDirectives"])(Object(i["createElementVNode"])("img",h,null,512),[[i["vShow"],!e.collapsed]])],34),Object(i["createVNode"])(l,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[2]||(t[2]=function(t){return e.selectedKeys=t}),mode:"inline",theme:"dark","inline-collapsed":e.collapsed},{default:Object(i["withCtx"])((function(){return[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.menuList,(function(t){return Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:t.key,onClick:function(n){return e.navClick(t)},onMouseenter:function(n){return e.mouseenter(t)},class:Object(i["normalizeClass"])({"active-color":e.store.isShowTablesMenu&&"tables"===t.key,"table-item-tab":"tables"===t.key})},{icon:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(r,{"icon-class":t.icon,class:"svg-icon"},null,8,["icon-class"])]})),default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.$t(t.title)),1)]})),_:2},1032,["onClick","onMouseenter","class"])})),128))]})),_:1},8,["selectedKeys","inline-collapsed"]),Object(i["createVNode"])(b,{type:"link",onClick:e.toggleCollapsed,class:"toggle-btn"},{default:Object(i["withCtx"])((function(){return[e.collapsed?(Object(i["openBlock"])(),Object(i["createBlock"])(u,{key:0})):(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:1}))]})),_:1},8,["onClick"]),e.store.isShowTablesMenu&&!e.hasToken?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,onClick:t[3]||(t[3]=Object(i["withModifiers"])((function(t){return e.toggleTablesMenu(!1)}),["self"])),onMouseleave:t[4]||(t[4]=function(t){return e.toggleTablesMenu(!1)}),onMouseenter:t[5]||(t[5]=function(t){return e.toggleTablesMenu(!0)}),class:Object(i["normalizeClass"])([{"collapsed-sub-menu":e.collapsed},"tables-menu-wrap"])},[Object(i["createVNode"])(f,{onGoCreatePage:e.goCreatePage},null,8,["onGoCreatePage"])],34)):Object(i["createCommentVNode"])("",!0)],2)}var M=n("5530"),m=(n("ac1f"),n("1276"),n("caad"),n("2532"),n("5319"),n("6c02")),j=n("0613"),v={class:"tables-menu"},O={class:"select-catalog g-flex-ac"},g={class:"label"},N={class:"tables-wrap g-flex"},y={class:"database-list"},T={class:"list-wrap"},z={class:"add g-flex-jsb"},D={class:"label"},w={class:"filter-wrap"},I={class:"table-list"},L={class:"list-wrap"},S={class:"add g-flex-jsb"},k={class:"label"},E={class:"filter-wrap"};function C(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("a-select"),s=Object(i["resolveComponent"])("SearchOutlined"),l=Object(i["resolveComponent"])("CloseCircleOutlined"),u=Object(i["resolveComponent"])("a-input-search"),d=Object(i["resolveComponent"])("u-loading"),b=Object(i["resolveComponent"])("virtual-recycle-scroller"),p=Object(i["resolveComponent"])("createDB-modal");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createElementVNode"])("div",v,[Object(i["createElementVNode"])("div",O,[Object(i["createElementVNode"])("span",g,Object(i["toDisplayString"])(e.$t("catalog")),1),Object(i["createVNode"])(r,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=function(t){return e.curCatalog=t}),options:e.catalogOptions,onChange:e.catalogChange,loading:e.catalogLoading,getPopupContainer:e.getPopupContainer,class:"theme-dark"},null,8,["value","options","onChange","loading","getPopupContainer"])]),Object(i["createElementVNode"])("div",N,[Object(i["createElementVNode"])("div",y,[Object(i["createElementVNode"])("div",T,[Object(i["createElementVNode"])("div",z,[Object(i["createElementVNode"])("span",D,Object(i["toDisplayString"])(e.$t("database",2)),1)]),Object(i["createElementVNode"])("div",w,[Object(i["createVNode"])(u,{value:e.DBSearchInput,"onUpdate:value":t[2]||(t[2]=function(t){return e.DBSearchInput=t}),placeholder:e.placeholder.filterDBPh,onChange:t[3]||(t[3]=function(t){return e.handleSearch("db",t)}),class:"theme-dark"},Object(i["createSlots"])({prefix:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(s)]})),_:2},[e.DBSearchInput?{name:"suffix",fn:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{onClick:t[1]||(t[1]=function(t){return e.clearSearch("db")}),class:"input-clear-icon"})]}))}:void 0]),1032,["value","placeholder"])]),e.loading?(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:0})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(b,{loading:e.loading,items:e.databaseList,activeItem:e.database,itemSize:40,onHandleClickTable:e.handleClickDb,iconName:"database"},null,8,["loading","items","activeItem","onHandleClickTable"])])]),Object(i["createElementVNode"])("div",I,[Object(i["createElementVNode"])("div",L,[Object(i["createElementVNode"])("div",S,[Object(i["createElementVNode"])("span",k,Object(i["toDisplayString"])(e.$t("table",2)),1)]),Object(i["createElementVNode"])("div",E,[Object(i["createVNode"])(u,{value:e.tableSearchInput,"onUpdate:value":t[5]||(t[5]=function(t){return e.tableSearchInput=t}),placeholder:e.placeholder.filterTablePh,onChange:t[6]||(t[6]=function(t){return e.handleSearch("table",t)}),class:"theme-dark"},Object(i["createSlots"])({prefix:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(s)]})),_:2},[e.tableSearchInput?{name:"suffix",fn:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{onClick:t[4]||(t[4]=function(t){return e.clearSearch("table")}),class:"input-clear-icon"})]}))}:void 0]),1032,["value","placeholder"])]),e.tableLoading?(Object(i["openBlock"])(),Object(i["createBlock"])(d,{key:0})):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(b,{loading:e.tableLoading,items:e.tableList,activeItem:e.tableName,itemSize:40,onHandleClickTable:e.handleClickTable,iconName:"tableOutlined"},null,8,["loading","items","activeItem","onHandleClickTable"])])])])]),Object(i["createVNode"])(p,{visible:e.showCreateDBModal,catalogOptions:e.catalogOptions,onCancel:e.cancel},null,8,["visible","catalogOptions","onCancel"])],64)}n("e9c4"),n("d3b7"),n("d81d"),n("c740"),n("25f0"),n("b0c0");var x=n("e9d5"),U=n("411c");function A(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("a-select"),s=Object(i["resolveComponent"])("a-form-item"),l=Object(i["resolveComponent"])("a-input"),u=Object(i["resolveComponent"])("a-form"),d=Object(i["resolveComponent"])("a-modal");return Object(i["openBlock"])(),Object(i["createBlock"])(d,{visible:e.visible,title:e.$t("createDatabase"),onOk:e.handleOk,onCancel:e.handleCancel},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(u,{ref:"formRef",model:e.formState,class:"label-120"},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(s,{name:"catalog",label:e.$t("catalog"),rules:[{required:!0,message:"".concat(e.placeholder.selectClPh)}]},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(r,{value:e.formState.catalog,"onUpdate:value":t[0]||(t[0]=function(t){return e.formState.catalog=t}),options:e.catalogOptions,placeholder:e.placeholder.selectClPh},null,8,["value","options","placeholder"])]})),_:1},8,["label","rules"]),Object(i["createVNode"])(s,{name:"dbname",label:e.$t("databaseName"),rules:[{required:!0,message:"".concat(e.placeholder.inputDBPh)}]},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{value:e.formState.dbname,"onUpdate:value":t[1]||(t[1]=function(t){return e.formState.dbname=t}),placeholder:e.placeholder.inputDBPh},null,8,["value","placeholder"])]})),_:1},8,["label","rules"])]})),_:1},8,["model"])]})),_:1},8,["visible","title","onOk","onCancel"])}var _=n("8552"),V=Object(i["defineComponent"])({props:{visible:{type:Boolean,default:!1},catalogOptions:{type:Array,default:function(){return[]}}},emits:["cancel"],setup:function(e,t){var n=t.emit,a=Object(i["reactive"])(Object(_["a"])()),o=Object(i["ref"])(),c=Object(i["reactive"])({catalog:void 0,dbname:""}),r=function(){o.value.validateFields().then((function(){o.value.resetFields(),n("cancel")})).catch((function(e){}))},s=function(){o.value.resetFields(),n("cancel")};return{formRef:o,formState:c,placeholder:a,handleOk:r,handleCancel:s}}}),P=n("6b0d"),$=n.n(P);const B=$()(V,[["render",A]]);var R=B,Q=n("5738"),Y=n("d257"),H=["onMouseenter","onClick"],F=["title"];function G(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("svg-icon"),s=Object(i["resolveComponent"])("RecycleScroller"),l=Object(i["resolveComponent"])("a-empty");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[e.items.length&&!e.loading?(Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:0,class:"scroller",items:e.items,"item-size":40,"key-field":"id"},{default:Object(i["withCtx"])((function(t){var n=t.item;return[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])([{active:e.activeItem===n.label,"hive-table":"HIVE"===n.type},"desc"]),onMouseenter:function(t){return e.handleMouseEnter(n)},onClick:function(t){return e.handleClickTable(n)}},["database"===e.iconName?(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:0,"icon-class":"database",class:"table-icon g-mr-8"})):(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:1,"icon-class":e.tableTypeIconMap[n.type],class:"table-icon g-mr-8"},null,8,["icon-class"])),Object(i["createElementVNode"])("p",{title:n.label,class:"name g-text-nowrap"},Object(i["toDisplayString"])(n.label),9,F)],42,H)]})),_:1},8,["items"])):Object(i["createCommentVNode"])("",!0),e.items.length||e.loading?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(l,{key:1,class:"theme-dark",image:e.simpleImage},null,8,["image"]))],64)}n("06f4");var Z=n("fc25");n("a9e3");function W(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}let J;function q(){q.init||(q.init=!0,J=-1!==W())}var X={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){q(),Object(i["nextTick"])(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",J&&this.$el.appendChild(e),e.data="about:blank",J||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!J&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const K=Object(i["withScopeId"])("data-v-b329ee4c");Object(i["pushScopeId"])("data-v-b329ee4c");const ee={class:"resize-observer",tabindex:"-1"};Object(i["popScopeId"])();const te=K((e,t,n,a,o,c)=>(Object(i["openBlock"])(),Object(i["createBlock"])("div",ee)));X.render=te,X.__scopeId="data-v-b329ee4c",X.__file="src/components/ResizeObserver.vue";function ne(e){return ne="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},c=function(c){for(var r=arguments.length,s=new Array(r>1?r-1:0),l=1;l1){var i=e.find((function(e){return e.isIntersecting}));i&&(t=i)}if(n.callback){var a=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(a===n.oldResult)return;n.oldResult=a,n.callback(a,t)}}),this.options.intersection),Object(i["nextTick"])((function(){n.observer&&n.observer.observe(n.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&"number"===typeof this.options.intersection.threshold?this.options.intersection.threshold:0}}]),e}();function Me(e,t,n){var i=t.value;if(i)if("undefined"===typeof IntersectionObserver);else{var a=new fe(e,i,n);e._vue_visibilityState=a}}function me(e,t,n){var i=t.value,a=t.oldValue;if(!he(i,a)){var o=e._vue_visibilityState;i?o?o.createObserver(i,n):Me(e,{value:i},n):je(e)}}function je(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ve={beforeMount:Me,updated:me,unmounted:je};var Oe=function(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map((function(e){e(n)})),(e.get("*")||[]).slice().map((function(e){e(t,n)}))}}},ge={itemsLimit:1e3},Ne=/(auto|scroll)/;function ye(e,t){return null===e.parentNode?t:ye(e.parentNode,t.concat([e]))}var Te=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},ze=function(e){return Te(e,"overflow")+Te(e,"overflow-y")+Te(e,"overflow-x")},De=function(e){return Ne.test(ze(e))};function we(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=ye(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,a,o){const c=Object(i["markRaw"])({id:Ce++,index:t,used:!0,key:a,type:o}),r=Object(i["shallowReactive"])({item:n,position:0,nr:c});return e.push(r),r},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(e),t||(e.nr.used=!1,e.position=-9999,this.$_views.delete(e.nr.key))},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,100))}))},handleVisibilityChange(e,t){this.ready&&(e||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.$_computedMinItemSize,a=this.typeField,o=this.simpleArray?null:this.keyField,c=this.items,r=c.length,s=this.sizes,l=this.$_views,u=this.$_unusedViews,d=this.pool;let b,p,h,f;if(r)if(this.$_prerender)b=0,p=this.prerender,h=null;else{const e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),null===n&&te.start&&(a=o),o=~~((i+a)/2)}while(o!==n);for(o<0&&(o=0),b=o,h=s[r-1].accumulator,p=o;pr&&(p=r))}else b=~~(e.start/n),p=Math.ceil(e.end/n),b<0&&(b=0),p>r&&(p=r),h=r*n}else b=p=h=0;p-b>ge.itemsLimit&&this.itemsLimitError(),this.totalSize=h;const M=b<=this.$_endIndex&&p>=this.$_startIndex;if(this.$_continuous!==M){if(M){l.clear(),u.clear();for(let e=0,t=d.length;eo?e[o]===f.item[o]:e===f.item)),(-1===f.nr.index||f.nr.index=p)&&this.unuseView(f));const m=M?null:new Map;let j,v,O,g;for(let N=b;N=O.length)&&(f=this.addView(d,N,j,e,v),this.unuseView(f,!0),O=u.get(v)),f=O[g],f.item=j,f.nr.used=!0,f.nr.index=N,f.nr.key=e,f.nr.type=v,m.set(v,g+1),g++),l.set(e,f)),f.position=null===n?s[N-1].accumulator:N*n):f&&this.unuseView(f)}return this.$_startIndex=b,this.$_endIndex=p,this.emitUpdate&&this.$emit("update",b,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:M}},getListenerTarget(){let e=we(this.$el);return!window.document||e!==window.document.documentElement&&e!==window.document.body||(e=window),e},getScroll(){const{$el:e,direction:t}=this,n="vertical"===t;let i;if(this.pageMode){const t=e.getBoundingClientRect(),a=n?t.height:t.width;let o=-(n?t.top:t.left),c=n?window.innerHeight:window.innerWidth;o<0&&(c+=o,o=0),o+c>a&&(c=a-o),i={start:o,end:o+c}}else i=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!ke&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;t=null===this.itemSize?e>0?this.sizes[e-1].accumulator:0:e*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){"vertical"===this.direction?this.$el.scrollTop=e:this.$el.scrollLeft=e},itemsLimitError(){throw setTimeout(()=>{}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.index-t.index)}}};const Ue={key:0,class:"vue-recycle-scroller__slot"},Ae={key:1,class:"vue-recycle-scroller__slot"};function _e(e,t,n,a,o,c){const r=Object(i["resolveComponent"])("ResizeObserver"),s=Object(i["resolveDirective"])("observe-visibility");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])("div",{class:["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,["direction-"+e.direction]:!0}],onScrollPassive:t[2]||(t[2]=(...e)=>c.handleScroll&&c.handleScroll(...e))},[e.$slots.before?(Object(i["openBlock"])(),Object(i["createBlock"])("div",Ue,[Object(i["renderSlot"])(e.$slots,"before")])):Object(i["createCommentVNode"])("v-if",!0),Object(i["createVNode"])("div",{ref:"wrapper",style:{["vertical"===e.direction?"minHeight":"minWidth"]:o.totalSize+"px"},class:"vue-recycle-scroller__item-wrapper"},[(Object(i["openBlock"])(!0),Object(i["createBlock"])(i["Fragment"],null,Object(i["renderList"])(o.pool,n=>(Object(i["openBlock"])(),Object(i["createBlock"])("div",{key:n.nr.id,style:o.ready?{transform:`translate${"vertical"===e.direction?"Y":"X"}(${n.position}px)`}:null,class:["vue-recycle-scroller__item-view",{hover:o.hoverKey===n.nr.key}],onMouseenter:e=>o.hoverKey=n.nr.key,onMouseleave:t[1]||(t[1]=e=>o.hoverKey=null)},[Object(i["renderSlot"])(e.$slots,"default",{item:n.item,index:n.nr.index,active:n.nr.used})],46,["onMouseenter"]))),128))],4),e.$slots.after?(Object(i["openBlock"])(),Object(i["createBlock"])("div",Ae,[Object(i["renderSlot"])(e.$slots,"after")])):Object(i["createCommentVNode"])("v-if",!0),Object(i["createVNode"])(r,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[s,c.handleVisibilityChange]])}xe.render=_e,xe.__file="src/components/RecycleScroller.vue";var Ve={name:"DynamicScroller",components:{RecycleScroller:xe},provide(){return"undefined"!==typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver(e=>{for(const t of e)if(t.target){const e=new CustomEvent("resize",{detail:{contentRect:t.contentRect}});t.target.dispatchEvent(e)}})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Le,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Se,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:i}=this,a=this.vscrollData.sizes;for(let o=0;o{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,0===this.$_undefinedSizes?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Pe(e,t,n,a,o,c){const r=Object(i["resolveComponent"])("RecycleScroller");return Object(i["openBlock"])(),Object(i["createBlock"])(r,Object(i["mergeProps"])({ref:"scroller",items:c.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id"},e.$attrs,{onResize:c.onScrollerResize,onVisible:c.onScrollerVisible}),{default:Object(i["withCtx"])(({item:t,index:n,active:a})=>[Object(i["renderSlot"])(e.$slots,"default",{item:t.item,index:n,active:a,itemWithSize:t})]),before:Object(i["withCtx"])(()=>[Object(i["renderSlot"])(e.$slots,"before")]),after:Object(i["withCtx"])(()=>[Object(i["renderSlot"])(e.$slots,"after")]),_:1},16,["items","min-item-size","direction","onResize","onVisible"])}Ve.render=Pe,Ve.__file="src/components/DynamicScroller.vue";var $e={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(){this.size||this.onDataUpdate()},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData?this.$_watchData=this.$watch("data",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!e&&this.size||this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applySize(e,t)}this.$_pendingSizeUpdate=null})},applySize(e,t){const n=Math.round("vertical"===this.vscrollParent.direction?t:e);n&&this.size!==n&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=n,this.vscrollData.validSizes[this.id]=!0,this.emitResize&&this.$emit("resize",this.id))},observeSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize(e){const{width:t,height:n}=e.detail.contentRect;this.applySize(t,n)}},render(){return Object(i["h"])(this.tag,this.$slots.default())}};$e.__file="src/components/DynamicScrollerItem.vue";n("a899");var Be=n("f38b"),Re=Object(i["defineComponent"])({components:{RecycleScroller:xe},emits:["mouseEnter","handleClickTable"],setup:function(e,t){var n=t.emit,i=function(e){n("mouseEnter",e.label)},a=function(e){n("handleClickTable",e)};return{simpleImage:Z["a"].PRESENTED_IMAGE_SIMPLE,tableTypeIconMap:Be["d"],handleMouseEnter:i,handleClickTable:a}},props:{items:{type:Array,default:function(){return[]}},activeItem:{type:String,default:""},itemSize:{type:Number,default:40},iconName:{type:String,default:"tableOutlined"},loading:{type:Boolean,default:!1}}});n("1ccf");const Qe=$()(Re,[["render",G],["__scopeId","data-v-abd9edf8"]]);var Ye=Qe,He=Object(i["defineComponent"])({name:"TablesMenu",components:{SearchOutlined:x["a"],CloseCircleOutlined:U["a"],CreateDBModal:R,virtualRecycleScroller:Ye},emits:["goCreatePage"],setup:function(e,t){var n=t.emit,a=Object(m["e"])(),o=Object(m["d"])(),c=Object(j["a"])(),r=Object(i["reactive"])({catalogLoading:!1,DBSearchInput:"",tableSearchInput:"",curCatalog:"",database:"",tableName:"",type:"",catalogOptions:[],showCreateDBModal:!1,loading:!1,tableLoading:!1,databaseList:[],tableList:[]}),s="easylake-menu-catalog-db-table",l=JSON.parse(localStorage.getItem(s)||"{}"),u=Object(i["reactive"])(Object(_["a"])()),d=function(e){"table"===e?p():h()},b=function(e){"table"===e?(r.tableSearchInput="",p()):(r.DBSearchInput="",h())},p=Object(Y["c"])((function(){I()})),h=Object(Y["c"])((function(){w(!0)})),f=function(e){r.database!==e.id&&(r.database=e.id,r.tableName="",I())},v=function(e){return e.parentNode},O=function(){},g=function(e){r.curCatalog=e,r.databaseList.length=0,r.tableList.length=0,w()},N=function(){r.showCreateDBModal=!0},y=function(){r.showCreateDBModal=!1},T=function(){n("goCreatePage")},z=function(e){r.tableName=e.label,r.type=e.type,localStorage.setItem(s,JSON.stringify({catalog:r.curCatalog,database:r.database,tableName:e.label})),c.updateTablesMenu(!1);var t="HIVE"===e.type?"/hive-tables":"/tables",n={path:t,query:{catalog:r.curCatalog,db:r.database,table:r.tableName,type:r.type}};o.path.indexOf("tables")>-1?a.replace(n):a.push(n)},D=function(){r.catalogLoading=!0,Object(Q["c"])().then((function(e){if(e){if(r.catalogOptions=(e||[]).map((function(e){return{value:e.catalogName,label:e.catalogName}})),r.catalogOptions.length){var t,n=r.catalogOptions.findIndex((function(e){return e.value===l.catalog})),i=o.query;r.curCatalog=n>-1?l.catalog:(null===i||void 0===i||null===(t=i.catalog)||void 0===t?void 0:t.toString())||r.catalogOptions[0].value}w()}})).finally((function(){r.catalogLoading=!1}))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r.curCatalog&&(r.loading=!0,Object(Q["d"])({catalog:r.curCatalog,keywords:r.DBSearchInput}).then((function(t){if(r.databaseList=(t||[]).map((function(e){return{id:e,label:e}})),r.databaseList.length&&!e){var n,i,a,c,s=r.databaseList.findIndex((function(e){return e.id===l.database}));r.database=s>-1?l.database:r.curCatalog===(null===(n=o.query)||void 0===n||null===(i=n.catalog)||void 0===i?void 0:i.toString())?(null===(a=o.query)||void 0===a||null===(c=a.db)||void 0===c?void 0:c.toString())||r.databaseList[0].id||"":r.databaseList[0].id||"",I()}})).finally((function(){r.loading=!1})))},I=function(){r.curCatalog&&r.database&&(r.tableLoading=!0,r.tableList.length=0,Object(Q["m"])({catalog:r.curCatalog,db:r.database,keywords:r.tableSearchInput}).then((function(e){r.tableList=(e||[]).map((function(e){return{id:e.name,label:e.name,type:e.type}}))})).finally((function(){r.tableLoading=!1})))};return Object(i["onBeforeMount"])((function(){var e=l.database,t=l.tableName;r.database=e,r.tableName=t,D()})),Object(M["a"])(Object(M["a"])({},Object(i["toRefs"])(r)),{},{placeholder:u,handleClickDb:f,getPopupContainer:v,clickDatabase:O,catalogChange:g,addDatabase:N,cancel:y,createTable:T,handleClickTable:z,handleSearch:d,clearSearch:b})}});n("8b65");const Fe=$()(He,[["render",C],["__scopeId","data-v-03551ced"]]);var Ge=Fe,Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},We=Ze,Je=n("b3f0");function qe(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(!r.value){s.value&&clearTimeout(s.value);var t=e?0:200;s.value=setTimeout((function(){o.updateTablesMenu(e)}),t)}},v=function(){n.push({path:"/introduce"})};return Object(M["a"])(Object(M["a"])({},Object(i["toRefs"])(c)),{},{hasToken:r,menuList:l,toggleCollapsed:d,navClick:b,mouseenter:p,store:o,toggleTablesMenu:f,goCreatePage:h,viewIntroduce:v})}});n("78d8");const lt=$()(st,[["render",f],["__scopeId","data-v-c08cb56c"]]);var ut=lt,dt=(n("99af"),{class:"custom-top-bar"}),bt={class:"version-info"},pt={class:"g-mr-8"},ht={class:"g-mr-8"};function ft(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("question-circle-outlined"),s=Object(i["resolveComponent"])("a-tooltip"),l=Object(i["resolveComponent"])("LogoutOutlined"),u=Object(i["resolveComponent"])("a-button");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",dt,[Object(i["createElementVNode"])("div",bt,[Object(i["createElementVNode"])("span",pt,Object(i["toDisplayString"])("".concat(e.$t("version"),": ").concat(e.verInfo.version)),1),Object(i["createElementVNode"])("span",ht,Object(i["toDisplayString"])("".concat(e.$t("commitTime"),": ").concat(e.verInfo.commitTime)),1)]),Object(i["createVNode"])(s,{placement:"bottomRight","arrow-point-at-center":"",overlayClassName:"topbar-tooltip"},{title:Object(i["withCtx"])((function(){return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.$t("userGuide")),1)]})),default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(r,{class:"question-icon",onClick:e.goDocs},null,8,["onClick"])]})),_:1}),Object(i["createVNode"])(s,null,{title:Object(i["withCtx"])((function(){return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.$t("logout")),1)]})),default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(u,{class:"logout-button",onClick:e.handleLogout},{default:Object(i["withCtx"])((function(){return[Object(i["createVNode"])(l,{style:{"font-size":"1.2em"}})]})),_:1},8,["onClick"])]})),_:1})])}n("cd17");var Mt=n("ed3b"),mt=n("1da1"),jt=(n("96cf"),n("3c7f")),vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},Ot=vt;function gt(e){for(var t=1;t1?arguments[1]:void 0)}}),o("includes")},e9c4:function(e,t,n){var i=n("23e7"),a=n("da84"),o=n("d066"),c=n("2ba4"),r=n("e330"),s=n("d039"),l=a.Array,u=o("JSON","stringify"),d=r(/./.exec),b=r("".charAt),p=r("".charCodeAt),h=r("".replace),f=r(1..toString),M=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,v=function(e,t,n){var i=b(n,t-1),a=b(n,t+1);return d(m,e)&&!d(j,a)||d(j,e)&&!d(m,i)?"\\u"+f(p(e,0),16):e},O=s((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&i({target:"JSON",stat:!0,forced:O},{stringify:function(e,t,n){for(var i=0,a=arguments.length,o=l(a);i-1)})),s=Object(n["reactive"])({loading:!1,showErrorMsg:!1,activeKey:"Details",status:"",displayStatus:"",errorMessage:"",tableName:"tableName",partitionColumnList:[],schema:[]}),l=function(){a.back()},u=Object(n["computed"])((function(){return Object(b["a"])({},c.query)})),g=function(){var e=Object(d["a"])(regeneratorRuntime.mark((function e(){var n,o,i,l,d,p,m,v,O=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=O.length>0&&void 0!==O[0]&&O[0],e.prev=1,t.value&&clearTimeout(t.value),o=u.value,i=o.catalog,l=o.db,d=o.table,i&&l&&d){e.next=6;break}return e.abrupt("return");case 6:return!n&&(s.loading=!0),e.next=9,Object(V["p"])(Object(b["a"])({},u.value));case 9:p=e.sent,m=p.status,v=p.errorMessage,s.status=m,s.displayStatus=m===E["e"].upgrading?r("upgrading"):r("upgrade"),s.errorMessage=v||"",m===E["e"].upgrading?t.value=setTimeout((function(){g(!0)}),1500):m===E["e"].none?f():m===E["e"].success?a.replace({path:"/tables",query:Object(b["a"])({},c.query)}):m===E["e"].failed&&f();case 15:return e.prev=15,!n&&(s.loading=!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,,15,18]])})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=Object(d["a"])(regeneratorRuntime.mark((function e(){var t,a,n,c,o,r,i,l,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=u.value,a=t.catalog,n=t.db,c=t.table,a&&n&&c){e.next=4;break}return e.abrupt("return");case 4:return s.loading=!0,e.next=7,Object(V["f"])(Object(b["a"])({},u.value));case 7:o=e.sent,r=o.partitionColumnList,i=void 0===r?[]:r,l=o.schema,d=o.tableIdentifier,s.tableName=(null===d||void 0===d?void 0:d.tableName)||"",s.partitionColumnList=i||[],s.schema=l||[],e.next=16;break;case 14:e.prev=14,e.t0=e["catch"](0);case 16:return e.prev=16,s.loading=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,14,16,19]])})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=Object(d["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){a.push({path:"/hive-tables/upgrade",query:Object(b["a"])({},c.query)})},O=function(){m()};return Object(n["watch"])((function(){return c.query}),(function(e,t){var a=e.catalog,n=e.db,o=e.table;"/hive-tables"!==c.path||a===t.catalog&&n===t.db&&o===t.table||m()})),Object(n["onBeforeUnmount"])((function(){clearTimeout(t.value)})),Object(n["onMounted"])((function(){m()})),Object(b["a"])(Object(b["a"])({},Object(n["toRefs"])(s)),{},{isSecondaryNav:i,upgradeStatus:e,upgradeTable:v,goBack:l,refresh:O})}});a("c289");const L=y()(z,[["render",u],["__scopeId","data-v-acbd8ea4"]]);t["default"]=L},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return o})),a.d(t,"m",(function(){return r})),a.d(t,"l",(function(){return i})),a.d(t,"f",(function(){return s})),a.d(t,"p",(function(){return l})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return g})),a.d(t,"h",(function(){return f})),a.d(t,"q",(function(){return m})),a.d(t,"o",(function(){return v})),a.d(t,"a",(function(){return O})),a.d(t,"b",(function(){return j})),a.d(t,"n",(function(){return h}));a("99af");var n=a("b32d");function c(){return n["a"].get("ams/v1/catalogs")}function o(e){var t=e.catalog,a=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:a}})}function r(e){var t=e.catalog,a=e.db,c=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(a,"/tables"),{params:{keywords:c}})}function i(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,i=void 0===r?"":r,s=e.token,l=void 0===s?"":s;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(i,"/details"),{params:{token:l}})}function s(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,i=void 0===r?"":r;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(i,"/hive/details"))}function l(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,i=void 0===r?"":r;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(i,"/upgrade/status"))}function u(e){var t=e.catalog,a=e.db,c=e.table,o=e.page,r=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/partitions"),{params:{page:o,pageSize:r,token:i}})}function d(e){var t=e.catalog,a=e.db,c=e.table,o=e.partition,r=e.specId,i=e.page,s=e.pageSize,l=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/partitions/").concat(o,"/files"),{params:{specId:r,page:i,pageSize:s,token:l}})}function b(e){var t=e.catalog,a=e.db,c=e.table,o=e.page,r=e.pageSize,i=e.token,s=e.ref,l=e.operation;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/snapshots"),{params:{page:o,pageSize:r,token:i,ref:s,operation:l}})}function p(e){var t=e.catalog,a=e.db,c=e.table,o=e.snapshotId,r=e.page,i=e.pageSize,s=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/snapshots/").concat(o,"/detail"),{params:{page:r,pageSize:i,token:s}})}function g(e){var t=e.catalog,a=e.db,c=e.table,o=e.page,r=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/operations"),{params:{page:o,pageSize:r,token:i}})}function f(e){var t=e.catalog,a=e.db,c=e.table,o=e.page,r=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/optimizing-processes"),{params:{page:o,pageSize:r,token:i}})}function m(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,i=void 0===r?"":r,s=e.properties,l=void 0===s?{}:s,u=e.pkList,d=void 0===u?[]:u;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(i,"/upgrade"),{properties:l,pkList:d})}function v(){return n["a"].get("ams/v1/upgrade/properties")}function O(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,i=void 0===r?"":r,s=e.processId,l=void 0===s?"":s;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(i,"/optimizing-processes/").concat(l,"/cancel"))}function j(e){var t=e.catalog,a=e.db,c=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/branches"))}function h(e){var t=e.catalog,a=e.db,c=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/tags"))}},7371:function(e,t,a){"use strict";a("0482")},9017:function(e,t,a){},a65b:function(e,t,a){},c289:function(e,t,a){"use strict";a("a65b")},e900:function(e,t,a){"use strict";a("9017")},f38b:function(e,t,a){"use strict";var n,c,o,r,i;a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(n||(n={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(c||(c={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(o||(o={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(r||(r={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(i||(i={}))}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ca733964"],{"0482":function(e,t,a){},"06e7":function(e,t,a){"use strict";a.r(t);var n=a("7a23"),c={class:"hive-tables-wrap"},o={key:0,class:"tables-content"},r={class:"g-flex-jsb table-top"},s=["title"],i={class:"right-btn"},l={class:"content"};function u(e,t,a,u,d,b){var p=Object(n["resolveComponent"])("a-button"),g=Object(n["resolveComponent"])("u-details"),f=Object(n["resolveComponent"])("a-tab-pane"),m=Object(n["resolveComponent"])("a-tabs"),v=Object(n["resolveComponent"])("u-loading"),O=Object(n["resolveComponent"])("router-view"),j=Object(n["resolveComponent"])("error-msg");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[e.isSecondaryNav?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("span",{title:e.tableName,class:"table-name g-text-nowrap"},Object(n["toDisplayString"])(e.tableName),9,s),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{type:"primary",disabled:e.status===e.upgradeStatus.upgrading,onClick:e.upgradeTable},{default:Object(n["withCtx"])((function(){return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.displayStatus),1)]})),_:1},8,["disabled","onClick"]),e.status===e.upgradeStatus.failed?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:0,onClick:t[0]||(t[0]=function(t){return e.showErrorMsg=!0}),class:"fail-msg"},Object(n["toDisplayString"])(e.$t("lastUpgradingFailed")),1)):Object(n["createCommentVNode"])("",!0)])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(m,{activeKey:e.activeKey,"onUpdate:activeKey":t[1]||(t[1]=function(t){return e.activeKey=t})},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(f,{key:"Details",tab:"Details"},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(g,{partitionColumnList:e.partitionColumnList,schema:e.schema},null,8,["partitionColumnList","schema"])]})),_:1})]})),_:1},8,["activeKey"])])])),e.loading?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:1})):Object(n["createCommentVNode"])("",!0),e.isSecondaryNav?(Object(n["openBlock"])(),Object(n["createBlock"])(O,{key:2,onGoBack:e.goBack,onRefresh:e.refresh},null,8,["onGoBack","onRefresh"])):Object(n["createCommentVNode"])("",!0),e.showErrorMsg?(Object(n["openBlock"])(),Object(n["createBlock"])(j,{key:3,msg:e.errorMessage,onCancle:t[2]||(t[2]=function(t){return e.showErrorMsg=!1})},null,8,["msg"])):Object(n["createCommentVNode"])("",!0)])}var d=a("1da1"),b=a("5530"),p=(a("96cf"),a("ac1f"),a("5319"),a("47e2")),g={class:"hive-table-detail g-flex"},f={class:"left-content"},m={key:0,class:"table-attrs"},v={class:"attr-title"},O={class:"table-attrs"},j={class:"attr-title"},k=Object(n["defineComponent"])({props:{schema:null,partitionColumnList:null},setup:function(e){var t=e,a=Object(p["b"])(),c=a.t,o=Object(n["shallowReactive"])([{title:c("field"),dataIndex:"field",width:"30%"},{title:c("type"),dataIndex:"type",width:"30%"},{title:c("description"),dataIndex:"comment",ellipsis:!0}]),r=Object(n["shallowReactive"])([{title:c("field"),dataIndex:"field",width:"30%"},{title:c("type"),dataIndex:"type",width:"30%"},{title:c("description"),dataIndex:"comment",ellipsis:!0}]);return function(e,a){var c=Object(n["resolveComponent"])("a-table");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",g,[Object(n["createElementVNode"])("div",f,[t.partitionColumnList&&t.partitionColumnList.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",m,[Object(n["createElementVNode"])("p",v,Object(n["toDisplayString"])(e.$t("partitionKey")),1),Object(n["createVNode"])(c,{rowKey:"field",columns:Object(n["unref"])(r),"data-source":t.partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("div",O,[Object(n["createElementVNode"])("p",j,Object(n["toDisplayString"])(e.$t("schema")),1),Object(n["createVNode"])(c,{rowKey:"field",columns:Object(n["unref"])(o),"data-source":t.schema,pagination:!1},null,8,["columns","data-source"])])])])}}}),h=(a("7371"),a("6b0d")),y=a.n(h);const C=y()(k,[["__scopeId","data-v-31e13dc2"]]);var w=C,N={class:"msg"},S=Object(n["defineComponent"])({props:{msg:null},emits:["cancle"],setup:function(e,t){var a=t.emit,c=e;return function(e,t){var o=Object(n["resolveComponent"])("a-modal");return Object(n["openBlock"])(),Object(n["createBlock"])(o,{visible:!0,width:560,title:"".concat(e.$t("errorMessage")),footer:null,onCancel:t[0]||(t[0]=function(e){return a("cancle")}),class:"upgrade-error"},{default:Object(n["withCtx"])((function(){return[Object(n["createElementVNode"])("p",N,Object(n["toDisplayString"])(c.msg),1)]})),_:1},8,["title"])}}});a("e900");const I=y()(S,[["__scopeId","data-v-a5995806"]]);var B=I,x=a("6c02"),E=a("f38b"),V=a("5738"),z=Object(n["defineComponent"])({name:"Tables",components:{UDetails:w,errorMsg:B},setup:function(){var e=E["e"],t=Object(n["ref"])(),a=Object(x["e"])(),c=Object(x["d"])(),o=Object(p["b"])(),r=o.t,s=Object(n["computed"])((function(){return!!(c.path.indexOf("upgrade")>-1)})),i=Object(n["reactive"])({loading:!1,showErrorMsg:!1,activeKey:"Details",status:"",displayStatus:"",errorMessage:"",tableName:"tableName",partitionColumnList:[],schema:[]}),l=function(){a.back()},u=Object(n["computed"])((function(){return Object(b["a"])({},c.query)})),g=function(){var e=Object(d["a"])(regeneratorRuntime.mark((function e(){var n,o,s,l,d,p,m,v,O=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=O.length>0&&void 0!==O[0]&&O[0],e.prev=1,t.value&&clearTimeout(t.value),o=u.value,s=o.catalog,l=o.db,d=o.table,s&&l&&d){e.next=6;break}return e.abrupt("return");case 6:return!n&&(i.loading=!0),e.next=9,Object(V["q"])(Object(b["a"])({},u.value));case 9:p=e.sent,m=p.status,v=p.errorMessage,i.status=m,i.displayStatus=m===E["e"].upgrading?r("upgrading"):r("upgrade"),i.errorMessage=v||"",m===E["e"].upgrading?t.value=setTimeout((function(){g(!0)}),1500):m===E["e"].none?f():m===E["e"].success?a.replace({path:"/tables",query:Object(b["a"])({},c.query)}):m===E["e"].failed&&f();case 15:return e.prev=15,!n&&(i.loading=!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,,15,18]])})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=Object(d["a"])(regeneratorRuntime.mark((function e(){var t,a,n,c,o,r,s,l,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=u.value,a=t.catalog,n=t.db,c=t.table,a&&n&&c){e.next=4;break}return e.abrupt("return");case 4:return i.loading=!0,e.next=7,Object(V["f"])(Object(b["a"])({},u.value));case 7:o=e.sent,r=o.partitionColumnList,s=void 0===r?[]:r,l=o.schema,d=o.tableIdentifier,i.tableName=(null===d||void 0===d?void 0:d.tableName)||"",i.partitionColumnList=s||[],i.schema=l||[],e.next=16;break;case 14:e.prev=14,e.t0=e["catch"](0);case 16:return e.prev=16,i.loading=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,14,16,19]])})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=Object(d["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){a.push({path:"/hive-tables/upgrade",query:Object(b["a"])({},c.query)})},O=function(){m()};return Object(n["watch"])((function(){return c.query}),(function(e,t){var a=e.catalog,n=e.db,o=e.table;"/hive-tables"!==c.path||a===t.catalog&&n===t.db&&o===t.table||m()})),Object(n["onBeforeUnmount"])((function(){clearTimeout(t.value)})),Object(n["onMounted"])((function(){m()})),Object(b["a"])(Object(b["a"])({},Object(n["toRefs"])(i)),{},{isSecondaryNav:s,upgradeStatus:e,upgradeTable:v,goBack:l,refresh:O})}});a("c289");const L=y()(z,[["render",u],["__scopeId","data-v-acbd8ea4"]]);t["default"]=L},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return o})),a.d(t,"m",(function(){return r})),a.d(t,"l",(function(){return s})),a.d(t,"f",(function(){return i})),a.d(t,"q",(function(){return l})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return g})),a.d(t,"h",(function(){return f})),a.d(t,"o",(function(){return m})),a.d(t,"r",(function(){return v})),a.d(t,"p",(function(){return O})),a.d(t,"a",(function(){return j})),a.d(t,"b",(function(){return k})),a.d(t,"n",(function(){return h}));a("99af"),a("4de4"),a("d3b7");var n=a("b32d");function c(){return n["a"].get("ams/v1/catalogs")}function o(e){var t=e.catalog,a=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases"),{params:{keywords:a}})}function r(e){var t=e.catalog,a=e.db,c=e.keywords;return n["a"].get("ams/v1/catalogs/".concat(t,"/databases/").concat(a,"/tables"),{params:{keywords:c}})}function s(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,s=void 0===r?"":r,i=e.token,l=void 0===i?"":i;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(s,"/details"),{params:{token:l}})}function i(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,s=void 0===r?"":r;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(s,"/hive/details"))}function l(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,s=void 0===r?"":r;return n["a"].get("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(s,"/upgrade/status"))}function u(e){var t=e.catalog,a=e.db,c=e.table,o=e.filter,r=e.page,s=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/partitions"),{params:{filter:o,page:r,pageSize:s,token:i}})}function d(e){var t=e.catalog,a=e.db,c=e.table,o=e.partition,r=e.specId,s=e.page,i=e.pageSize,l=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/partitions/").concat(o,"/files"),{params:{specId:r,page:s,pageSize:i,token:l}})}function b(e){var t=e.catalog,a=e.db,c=e.table,o=e.page,r=e.pageSize,s=e.token,i=e.ref,l=e.operation;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/snapshots"),{params:{page:o,pageSize:r,token:s,ref:i,operation:l}})}function p(e){var t=e.catalog,a=e.db,c=e.table,o=e.snapshotId,r=e.page,s=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/snapshots/").concat(o,"/detail"),{params:{page:r,pageSize:s,token:i}})}function g(e){var t=e.catalog,a=e.db,c=e.table,o=e.page,r=e.pageSize,s=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/operations"),{params:{page:o,pageSize:r,token:s}})}function f(e){var t=e.catalog,a=e.db,c=e.table,o=e.page,r=e.pageSize,s=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/optimizing-processes"),{params:{page:o,pageSize:r,token:s}})}function m(e){var t=e.catalog,a=e.db,c=e.table,o=e.processId,r=e.page,s=e.pageSize,i=e.token;return n["a"].get("ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/optimizing-processes/").concat(o,"/tasks"),{params:{page:r,pageSize:s,token:i}})}function v(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,s=void 0===r?"":r,i=e.properties,l=void 0===i?{}:i,u=e.pkList,d=void 0===u?[]:u;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(s,"/upgrade"),{properties:l,pkList:d})}function O(){return n["a"].get("ams/v1/upgrade/properties")}function j(e){var t=e.catalog,a=void 0===t?"":t,c=e.db,o=void 0===c?"":c,r=e.table,s=void 0===r?"":r,i=e.processId,l=void 0===i?"":i;return n["a"].post("ams/v1/tables/catalogs/".concat(a,"/dbs/").concat(o,"/tables/").concat(s,"/optimizing-processes/").concat(l,"/cancel"))}function k(e){var t=e.catalog,a=e.db,c=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/branches"))}function h(e){var t=e.catalog,a=e.db,c=e.table;return n["a"].get("/ams/v1/tables/catalogs/".concat(t,"/dbs/").concat(a,"/tables/").concat(c,"/tags"))}},7371:function(e,t,a){"use strict";a("0482")},9017:function(e,t,a){},a65b:function(e,t,a){},c289:function(e,t,a){"use strict";a("a65b")},e900:function(e,t,a){"use strict";a("9017")},f38b:function(e,t,a){"use strict";var n,c,o,r,s;a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return s})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(n||(n={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(c||(c={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(o||(o={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(r||(r={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(s||(s={}))}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-vendors.b1527279.js b/ams/dashboard/src/main/resources/static/js/chunk-vendors.b30107ea.js similarity index 100% rename from ams/dashboard/src/main/resources/static/js/chunk-vendors.b1527279.js rename to ams/dashboard/src/main/resources/static/js/chunk-vendors.b30107ea.js diff --git a/ams/dashboard/src/services/table.service.ts b/ams/dashboard/src/services/table.service.ts index e8355971de..8173bf82a1 100644 --- a/ams/dashboard/src/services/table.service.ts +++ b/ams/dashboard/src/services/table.service.ts @@ -64,13 +64,14 @@ export function getPartitionTable( catalog: string db: string, table: string, - page: number - pageSize: number + filter: string, + page: number, + pageSize: number, token: string } ) { - const { catalog, db, table, page, pageSize, token } = params - return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/partitions`, { params: { page, pageSize, token } }) + const { catalog, db, table, filter, page, pageSize, token } = params + return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/partitions`, { params: { filter, page, pageSize, token } }) } // get partions @@ -149,8 +150,8 @@ export function getOperations( const { catalog, db, table, page, pageSize, token } = params return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/operations`, { params: { page, pageSize, token } }) } -// get optimizes -export function getOptimizes( +// get optimizing processes +export function getOptimizingProcesses( params: { catalog: string db: string, @@ -164,6 +165,22 @@ export function getOptimizes( return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/optimizing-processes`, { params: { page, pageSize, token } }) } +// get optimizing taskes +export function getTasksByOptimizingProcessId( + params: { + catalog: string + db: string, + table: string, + processId: number, + page: number + pageSize: number + token?: string + } +) { + const { catalog, db, table, processId, page, pageSize, token } = params + return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/optimizing-processes/${processId}/tasks`, { params: { page, pageSize, token } }) +} + export function upgradeHiveTable( { catalog = '' as string, db = '' as string, table = '' as string, properties = {} as IMap, pkList = [] as IMap[] } ) { diff --git a/ams/dashboard/src/types/common.type.ts b/ams/dashboard/src/types/common.type.ts index 2e7049b17a..33d109073f 100644 --- a/ams/dashboard/src/types/common.type.ts +++ b/ams/dashboard/src/types/common.type.ts @@ -136,6 +136,35 @@ export interface BreadcrumbSnapshotItem { commitTime: number | string } +export interface FilesStatistics { + fileCnt: number + totalSize: number + averageSize: number +} + +export interface BreadcrumbOptimizingItem { + tableId: number + processId: number + taskId: number + partitionData: string + status: string + retryNum: number + optimizerToken: string + threadId: number + thread: string + startTime: number | string + endTime: number | string + costTime: number + formatCostTime: string + failReason: string + summary: Record + inputFiles: FilesStatistics + outputFiles: FilesStatistics + inputFilesDesc: string + outputFilesDesc: string + properties: Record +} + export interface SnapshotItemSummary { 'total-data-files': number 'total-delete-files': number diff --git a/ams/dashboard/src/utils/index.ts b/ams/dashboard/src/utils/index.ts index 8821a3f6e7..9598f6cf3a 100644 --- a/ams/dashboard/src/utils/index.ts +++ b/ams/dashboard/src/utils/index.ts @@ -56,16 +56,23 @@ export const formatMS2Time = (time: number, fromHour?: boolean): string => { return '0 ms' } if (time < Second) { - return (fromHour ? '0 min ' : '') + `${time} ms` + return fromHour ? '0 min ' : time + ' ms' } if (time >= Second && time < Minute) { const s = Math.floor(time / Second) - return (fromHour ? '0 min ' : '') + (s ? s + ' s' : '') + if (fromHour) { + return '0 min' + } + return s ? s + ' s' : '' } if (time >= Minute && time < Hour) { const calcMin = Math.floor(time / Minute) const s = Math.floor((time - calcMin * Minute) / Second) - return time % Minute === 0 ? time / Minute + ' min' : calcMin + ' min ' + (s ? s + ' s' : '') + if (fromHour) { + return calcMin + ' min' + } else { + return time % Minute === 0 ? time / Minute + ' min' : calcMin + ' min ' + (s ? s + ' s' : '') + } } if (time % Hour === 0) { return time / Hour + ' h' diff --git a/ams/dashboard/src/views/tables/components/Files.vue b/ams/dashboard/src/views/tables/components/Files.vue index 9b08f0fe86..84da74ea18 100644 --- a/ams/dashboard/src/views/tables/components/Files.vue +++ b/ams/dashboard/src/views/tables/components/Files.vue @@ -1,22 +1,38 @@