diff --git a/ams/dashboard/src/components/Topbar.vue b/ams/dashboard/src/components/Topbar.vue index 688ea6cb1c..d25e068660 100644 --- a/ams/dashboard/src/components/Topbar.vue +++ b/ams/dashboard/src/components/Topbar.vue @@ -8,14 +8,24 @@ + + + + + + \ No newline at end of file +Amoro
\ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/app.45032a60.js b/ams/dashboard/src/main/resources/static/js/app.45032a60.js deleted file mode 100644 index 58904e6895..0000000000 --- a/ams/dashboard/src/main/resources/static/js/app.45032a60.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function n(n){for(var C,E,a=n[0],o=n[1],A=n[2],c=0,d=[];c'});r.a.add(a);n["default"]=a},"0613":function(e,n,t){"use strict";var C=t("be92"),E=function(){return{userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}},i={getShowTablesMenu:function(e){return e.isShowTablesMenu}};n["a"]=Object(C["b"])("datalake",{state:E,getters:i,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),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-arctic",use:"icon-arctic-usage",viewBox:"0 0 16 16",content:''});r.a.add(a);n["default"]=a},"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",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?",welecomeTip:"Welcome to Arcitc!",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"},i={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},r={en:E,zh:i},a={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:a});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),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-optimizing",use:"icon-optimizing-usage",viewBox:"0 0 14 14",content:'\n\n\n'});r.a.add(a);n["default"]=a},"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=i(e);return t(n)}function i(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=i,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),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-tables",use:"icon-tables-usage",viewBox:"0 0 16 16",content:'\n\n'});r.a.add(a);n["default"]=a},"494b":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-format",use:"icon-format-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});r.a.add(a);n["default"]=a},"4b1e":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-branch",use:"icon-branch-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(a);n["default"]=a},"54e7":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=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(a);n["default"]=a},"563a":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-sqldebug",use:"icon-sqldebug-usage",viewBox:"0 0 16 16",content:'\n\n\n'});r.a.add(a);n["default"]=a},"5fbf":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-catalogs",use:"icon-catalogs-usage",viewBox:"0 0 16 16",content:'\n\n'});r.a.add(a);n["default"]=a},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),i=t("21a1"),r=t.n(i),a=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(a);n["default"]=a},7607:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-sqlpause",use:"icon-sqlpause-usage",viewBox:"0 0 16 16",content:'\n\n\n'});r.a.add(a);n["default"]=a},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),i=t("21a1"),r=t.n(i),a=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(a);n["default"]=a},"9ac0":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-hive",use:"icon-hive-usage",viewBox:"0 0 16 16",content:''});r.a.add(a);n["default"]=a},"9c15":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=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(a);n["default"]=a},a4b1:function(e,n,t){},ac42:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(a);n["default"]=a},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-52183f66").then(t.bind(null,"bb51"))},i=function(){return t.e("chunk-e27313ec").then(t.bind(null,"8cdb"))},r=function(){return t.e("chunk-7a087ab9").then(t.bind(null,"adb5"))},a=function(){return t.e("chunk-5bc028de").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:r},{path:"tables",name:"Tables",component:a,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:i},{path:"/:pathMatch(.*)*",name:"Page404",component:i}],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"),i=(t("96cf"),t("c740"),t("b0c0"),t("a434"),t("d3b7"),t("d9e2"),t("99af"),t("ac1f"),t("1276"),t("bc3a")),r=t.n(i),a=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=r.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 r.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 i=r.a.CancelToken.source();return n.cancelToken=i.token,c.push({name:t,cancel:i.cancel,routeChangeCancel:n.routeChangeCancel}),n.useToken&&d(n),T(n).then((function(e){var t=e.data,E=t.code,i=t.message;if(n.returnCode)return e.data;if(0===E||200===E)return e.data.result;if(403===E){var r=Object(a["a"])();return r.updateUserInfo({userName:""}),n.handleError&&C["a"].error(i||"need login"),o["a"].push({path:"/login"})}return Promise.reject(new Error(i||"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),i=t("21a1"),r=t.n(i),a=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(a);n["default"]=a},bbf7:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-iceberg",use:"icon-iceberg-usage",viewBox:"0 0 16 16",content:''});r.a.add(a);n["default"]=a},cd49:function(e,n,t){"use strict";t.r(n);var C=t("5530"),E=t("1da1"),i=(t("e260"),t("e6cf"),t("cca6"),t("a79df"),t("96cf"),t("7a23")),r=t("64aa"),a=t("eb60"),o=Object(i["defineComponent"])({setup:function(e){var n=Object(i["ref"])(r["a"].locale);return function(e,t){var C=Object(i["resolveComponent"])("router-view"),E=Object(i["resolveComponent"])("a-config-provider");return Object(i["openBlock"])(),Object(i["createBlock"])(E,{locale:"en"===n.value?Object(i["unref"])(r["a"]):Object(i["unref"])(a["a"])},{default:Object(i["withCtx"])((function(){return[Object(i["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,r){var a=Object(i["resolveComponent"])("a-spin");return C.visible?Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,ref:"loadingRef",class:Object(i["normalizeClass"])(["u-loading",{fullscreen:t.fullscreen}])},[Object(i["createVNode"])(a,{tip:t.loadingText},null,8,["tip"])],2)),[[i["vShow"],C.visible]]):Object(i["createCommentVNode"])("",!0)}var _={name:"ULoading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup:function(){var e=Object(i["ref"])(!0),n=function(){e.value=!1};return Object(i["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}),i=E.match(/(\S+)$/),r=[];if(i){var a=i[0].toUpperCase();z.keywords.forEach((function(e){e.startsWith(a)&&r.push({label:e,kind:j["languages"].CompletionItemKind.Keyword,insertText:e})})),z.operators.forEach((function(e){e.startsWith(a)&&r.push({label:e,kind:j["languages"].CompletionItemKind.Operator,insertText:e})})),z.builtinFunctions.forEach((function(e){e.startsWith(a)&&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 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(i["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(i["ref"])(!1),r=Object(i["computed"])((function(){return C.isStroke?C.disabled?"#999":E.value?"#1890ff":"#333":""})),a=Object(i["computed"])((function(){return"#icon-".concat(C.iconClass)})),o=Object(i["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(i["openBlock"])(),Object(i["createElementBlock"])("svg",{class:Object(i["normalizeClass"])(Object(i["unref"])(o)),"aria-hidden":"true",onClick:A,stroke:Object(i["unref"])(r),onMouseover:c,onMouseout:d},[Object(i["createElementVNode"])("use",{"xlink:href":Object(i["unref"])(a)},null,8,Ce)],42,te)}}});t("6170");const ie=x()(Ee,[["__scopeId","data-v-31b97cb0"]]);var re=ie,ae=t("e82a"),oe=t("d257"),Ae=Object(i["createApp"])(c).use(Object(s["a"])());Ae.component("svg-icon",re),Ae.use(T["a"]),q(Ae),Object(E["a"])(regeneratorRuntime.mark((function e(){var n,t,E,i;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,ae["a"].getCurUserInfo(t);case 5:E=e.sent,E&&n.updateUserInfo({userName:E.userName});case 7:return e.prev=7,i=Object(l["a"])(),d["a"].beforeEach((function(e,n,t){if("/login"===e.fullPath){if(i.userInfo.userName)return t("/");i.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),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-sqlinit",use:"icon-sqlinit-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});r.a.add(a);n["default"]=a},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 i})),t.d(n,"d",(function(){return r})),t.d(n,"b",(function(){return a})),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=i&&nC&&e<=E?"".concat(Math.floor(e/t)," min"):e>E&&e<=30*E?"".concat(Math.floor(e/C)," h"):">30 d"},a=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,i=new Array(E),r=0;r\n\n\n\n\n\n\n\n\n'});r.a.add(a);n["default"]=a},e583:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-sqlmax",use:"icon-sqlmax-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});r.a.add(a);n["default"]=a},e5fc:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),i=t("21a1"),r=t.n(i),a=new E.a({id:"icon-database",use:"icon-database-usage",viewBox:"0 0 16 16",content:'\n\n'});r.a.add(a);n["default"]=a},e82a:function(e,n,t){"use strict";var C=t("d4ec"),E=t("bee2"),i=t("b32d"),r=function(){function e(){Object(C["a"])(this,e)}return Object(E["a"])(e,[{key:"login",value:function(e){return i["a"].post("ams/v1/login",e,{returnCode:!0})}},{key:"getCurUserInfo",value:function(e){return i["a"].get("ams/v1/login/current",{handleError:!1,params:{token:e}}).then((function(e){return e}))}}]),e}();n["a"]=new r}}); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/app.848136c8.js b/ams/dashboard/src/main/resources/static/js/app.848136c8.js new file mode 100644 index 0000000000..c9c908eba2 --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/app.848136c8.js @@ -0,0 +1 @@ +(function(e){function n(n){for(var C,E,i=n[0],o=n[1],A=n[2],c=0,d=[];c'});a.a.add(i);n["default"]=i},"0613":function(e,n,t){"use strict";var C=t("be92"),E=function(){return{userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}},r={getShowTablesMenu:function(e){return e.isShowTablesMenu}};n["a"]=Object(C["b"])("datalake",{state:E,getters:r,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),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-arctic",use:"icon-arctic-usage",viewBox:"0 0 16 16",content:''});a.a.add(i);n["default"]=i},"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?",welecomeTip:"Welcome to Arcitc!",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"},r={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},a={en:E,zh:r},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:a,datetimeFormats:i});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),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-optimizing",use:"icon-optimizing-usage",viewBox:"0 0 14 14",content:'\n\n\n'});a.a.add(i);n["default"]=i},"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=r(e);return t(n)}function r(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=r,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),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-tables",use:"icon-tables-usage",viewBox:"0 0 16 16",content:'\n\n'});a.a.add(i);n["default"]=i},"494b":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-format",use:"icon-format-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});a.a.add(i);n["default"]=i},"4b1e":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-branch",use:"icon-branch-usage",viewBox:"0 0 1024 1024",content:''});a.a.add(i);n["default"]=i},"54e7":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),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'});a.a.add(i);n["default"]=i},"563a":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-sqldebug",use:"icon-sqldebug-usage",viewBox:"0 0 16 16",content:'\n\n\n'});a.a.add(i);n["default"]=i},"5fbf":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-catalogs",use:"icon-catalogs-usage",viewBox:"0 0 16 16",content:'\n\n'});a.a.add(i);n["default"]=i},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),r=t("21a1"),a=t.n(r),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'});a.a.add(i);n["default"]=i},7607:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-sqlpause",use:"icon-sqlpause-usage",viewBox:"0 0 16 16",content:'\n\n\n'});a.a.add(i);n["default"]=i},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),r=t("21a1"),a=t.n(r),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'});a.a.add(i);n["default"]=i},"9ac0":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-hive",use:"icon-hive-usage",viewBox:"0 0 16 16",content:''});a.a.add(i);n["default"]=i},"9c15":function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),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'});a.a.add(i);n["default"]=i},a4b1:function(e,n,t){},ac42:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});a.a.add(i);n["default"]=i},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"))},r=function(){return t.e("chunk-e27313ec").then(t.bind(null,"8cdb"))},a=function(){return t.e("chunk-7a087ab9").then(t.bind(null,"adb5"))},i=function(){return t.e("chunk-5bc028de").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:a},{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:d},{path:"terminal",name:"Terminal",component:s},{path:"introduce",name:"Introduce",component:T}]},{path:"/login",name:"Login",component:l},{path:"/404",name:"Page404",component:r},{path:"/:pathMatch(.*)*",name:"Page404",component:r}],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"),r=(t("96cf"),t("c740"),t("b0c0"),t("a434"),t("d3b7"),t("d9e2"),t("99af"),t("ac1f"),t("1276"),t("bc3a")),a=t.n(r),i=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=a.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 a.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 r=a.a.CancelToken.source();return n.cancelToken=r.token,c.push({name:t,cancel:r.cancel,routeChangeCancel:n.routeChangeCancel}),n.useToken&&d(n),T(n).then((function(e){var t=e.data,E=t.code,r=t.message;if(n.returnCode)return e.data;if(0===E||200===E)return e.data.result;if(403===E){var a=Object(i["a"])();return a.updateUserInfo({userName:""}),n.handleError&&C["a"].error(r||"need login"),o["a"].push({path:"/login"})}return Promise.reject(new Error(r||"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),r=t("21a1"),a=t.n(r),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'});a.a.add(i);n["default"]=i},bbf7:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-iceberg",use:"icon-iceberg-usage",viewBox:"0 0 16 16",content:''});a.a.add(i);n["default"]=i},cd49:function(e,n,t){"use strict";t.r(n);var C=t("5530"),E=t("1da1"),r=(t("e260"),t("e6cf"),t("cca6"),t("a79df"),t("96cf"),t("7a23")),a=t("64aa"),i=t("eb60"),o=Object(r["defineComponent"])({setup:function(e){var n=Object(r["ref"])(a["a"].locale);return function(e,t){var C=Object(r["resolveComponent"])("router-view"),E=Object(r["resolveComponent"])("a-config-provider");return Object(r["openBlock"])(),Object(r["createBlock"])(E,{locale:"en"===n.value?Object(r["unref"])(a["a"]):Object(r["unref"])(i["a"])},{default:Object(r["withCtx"])((function(){return[Object(r["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,a){var i=Object(r["resolveComponent"])("a-spin");return C.visible?Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,ref:"loadingRef",class:Object(r["normalizeClass"])(["u-loading",{fullscreen:t.fullscreen}])},[Object(r["createVNode"])(i,{tip:t.loadingText},null,8,["tip"])],2)),[[r["vShow"],C.visible]]):Object(r["createCommentVNode"])("",!0)}var _={name:"ULoading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup:function(){var e=Object(r["ref"])(!0),n=function(){e.value=!1};return Object(r["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}),r=E.match(/(\S+)$/),a=[];if(r){var i=r[0].toUpperCase();z.keywords.forEach((function(e){e.startsWith(i)&&a.push({label:e,kind:j["languages"].CompletionItemKind.Keyword,insertText:e})})),z.operators.forEach((function(e){e.startsWith(i)&&a.push({label:e,kind:j["languages"].CompletionItemKind.Operator,insertText:e})})),z.builtinFunctions.forEach((function(e){e.startsWith(i)&&a.push({label:e,kind:j["languages"].CompletionItemKind.Function,insertText:e})}))}return{suggestions:Array.from(new Set(a))}}}),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(r["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(r["ref"])(!1),a=Object(r["computed"])((function(){return C.isStroke?C.disabled?"#999":E.value?"#1890ff":"#333":""})),i=Object(r["computed"])((function(){return"#icon-".concat(C.iconClass)})),o=Object(r["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(r["openBlock"])(),Object(r["createElementBlock"])("svg",{class:Object(r["normalizeClass"])(Object(r["unref"])(o)),"aria-hidden":"true",onClick:A,stroke:Object(r["unref"])(a),onMouseover:c,onMouseout:d},[Object(r["createElementVNode"])("use",{"xlink:href":Object(r["unref"])(i)},null,8,Ce)],42,te)}}});t("6170");const re=x()(Ee,[["__scopeId","data-v-31b97cb0"]]);var ae=re,ie=t("e82a"),oe=t("d257"),Ae=Object(r["createApp"])(c).use(Object(s["a"])());Ae.component("svg-icon",ae),Ae.use(T["a"]),q(Ae),Object(E["a"])(regeneratorRuntime.mark((function e(){var n,t,E,r;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,ie["a"].getCurUserInfo(t);case 5:E=e.sent,E&&n.updateUserInfo({userName:E.userName});case 7:return e.prev=7,r=Object(l["a"])(),d["a"].beforeEach((function(e,n,t){if("/login"===e.fullPath){if(r.userInfo.userName)return t("/");r.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),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-sqlinit",use:"icon-sqlinit-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});a.a.add(i);n["default"]=i},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 r})),t.d(n,"d",(function(){return a})),t.d(n,"b",(function(){return i})),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=r&&nC&&e<=E?"".concat(Math.floor(e/t)," min"):e>E&&e<=30*E?"".concat(Math.floor(e/C)," h"):">30 d"},i=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,r=new Array(E),a=0;a\n\n\n\n\n\n\n\n\n'});a.a.add(i);n["default"]=i},e583:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-sqlmax",use:"icon-sqlmax-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});a.a.add(i);n["default"]=i},e5fc:function(e,n,t){"use strict";t.r(n);var C=t("e017"),E=t.n(C),r=t("21a1"),a=t.n(r),i=new E.a({id:"icon-database",use:"icon-database-usage",viewBox:"0 0 16 16",content:'\n\n'});a.a.add(i);n["default"]=i},e82a:function(e,n,t){"use strict";var C=t("d4ec"),E=t("bee2"),r=t("b32d"),a=function(){function e(){Object(C["a"])(this,e)}return Object(E["a"])(e,[{key:"login",value:function(e){return r["a"].post("ams/v1/login",e,{returnCode:!0})}},{key:"logout",value:function(){return r["a"].post("ams/v1/logout",{handleError:!1,returnCode:!0})}},{key:"getCurUserInfo",value:function(e){return r["a"].get("ams/v1/login/current",{handleError:!1,params:{token:e}}).then((function(e){return e}))}}]),e}();n["a"]=new a}}); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-52183f66.65da3c9a.js b/ams/dashboard/src/main/resources/static/js/chunk-7746c7af.a2df1c66.js similarity index 60% rename from ams/dashboard/src/main/resources/static/js/chunk-52183f66.65da3c9a.js rename to ams/dashboard/src/main/resources/static/js/chunk-7746c7af.a2df1c66.js index 6f7e35d44f..8daaa3c2a7 100644 --- a/ams/dashboard/src/main/resources/static/js/chunk-52183f66.65da3c9a.js +++ b/ams/dashboard/src/main/resources/static/js/chunk-7746c7af.a2df1c66.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52183f66"],{"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){},"2be2":function(e,t,n){"use strict";n("5925")},"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(N,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)&&f(I,w,M(O,w));I.prototype=N,N.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 M(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"),M=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"])(M,{onGoCreatePage:e.goCreatePage},null,8,["onGoCreatePage"])],34)):Object(i["createCommentVNode"])("",!0)],2)}var f=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"},N={class:"label"},g={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",N,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",g,[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 U=n("e9d5"),x=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}}}),$=n("6b0d"),P=n.n($);const B=P()(V,[["render",A]]);var R=B,Q=n("5738"),Y=n("d257"),F=["onMouseenter","onClick"],H=["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,H)],42,F)]})),_: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 fe(e,t,n){var i=t.value;if(i)if("undefined"===typeof IntersectionObserver);else{var a=new Me(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):fe(e,{value:i},n):je(e)}}function je(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ve={beforeMount:fe,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)}))}}},Ne={itemsLimit:1e3},ge=/(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 ge.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,M;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>Ne.itemsLimit&&this.itemsLimitError(),this.totalSize=h;const f=b<=this.$_endIndex&&p>=this.$_startIndex;if(this.$_continuous!==f){if(f){l.clear(),u.clear();for(let e=0,t=d.length;eo?e[o]===M.item[o]:e===M.item)),(-1===M.nr.index||M.nr.index=p)&&this.unuseView(M));const m=f?null:new Map;let j,v,O,N;for(let g=b;g=O.length)&&(M=this.addView(d,g,j,e,v),this.unuseView(M,!0),O=u.get(v)),M=O[N],M.item=j,M.nr.used=!0,M.nr.index=g,M.nr.key=e,M.nr.type=v,m.set(v,N+1),N++),l.set(e,M)),M.position=null===n?s[g-1].accumulator:g*n):M&&this.unuseView(M)}return this.$_startIndex=b,this.$_endIndex=p,this.emitUpdate&&this.$emit("update",b,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:f}},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 xe={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",xe,[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]])}Ue.render=_e,Ue.__file="src/components/RecycleScroller.vue";var Ve={name:"DynamicScroller",components:{RecycleScroller:Ue},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 $e(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=$e,Ve.__file="src/components/DynamicScroller.vue";var Pe={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())}};Pe.__file="src/components/DynamicScrollerItem.vue";n("a899");var Be=n("f38b"),Re=Object(i["defineComponent"])({components:{RecycleScroller:Ue},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=P()(Re,[["render",G],["__scopeId","data-v-abd9edf8"]]);var Ye=Qe,Fe=Object(i["defineComponent"])({name:"TablesMenu",components:{SearchOutlined:U["a"],CloseCircleOutlined:x["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)})),M=function(e){r.database!==e.id&&(r.database=e.id,r.tableName="",I())},v=function(e){return e.parentNode},O=function(){},N=function(e){r.curCatalog=e,r.databaseList.length=0,r.tableList.length=0,w()},g=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["b"])().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["c"])({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["l"])({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(f["a"])(Object(f["a"])({},Object(i["toRefs"])(r)),{},{placeholder:u,handleClickDb:M,getPopupContainer:v,clickDatabase:O,catalogChange:N,addDatabase:g,cancel:y,createTable:T,handleClickTable:z,handleSearch:d,clearSearch:b})}});n("4468");const He=P()(Fe,[["render",C],["__scopeId","data-v-059a481c"]]);var Ge=He,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(f["a"])(Object(f["a"])({},Object(i["toRefs"])(c)),{},{hasToken:r,menuList:l,toggleCollapsed:d,navClick:b,mouseenter:p,store:o,toggleTablesMenu:M,goCreatePage:h,viewIntroduce:v})}});n("78d8");const lt=P()(st,[["render",M],["__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 Mt(e,t,n,a,o,c){var r=Object(i["resolveComponent"])("question-circle-outlined"),s=Object(i["resolveComponent"])("a-tooltip");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})])}var ft=n("1da1"),mt=(n("96cf"),n("3c7f")),jt=n("b32d");function vt(){return jt["a"].get("ams/v1/versionInfo")}var Ot=Object(i["defineComponent"])({name:"Topbar",components:{QuestionCircleOutlined:mt["a"]},setup:function(){var e=Object(i["reactive"])({version:"",commitTime:""}),t=function(){var t=Object(ft["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,vt();case 2:n=t.sent,n&&(e.version=n.version,e.commitTime=n.commitTime);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){window.open("https://amoro.netease.com/docs/latest/")};return Object(i["onMounted"])((function(){t()})),{verInfo:e,goDocs:n}}});n("2be2");const Nt=P()(Ot,[["render",Mt]]);var gt=Nt,yt=Object(i["defineComponent"])({name:"Layout",components:{SideBar:ut,TopBar:gt},props:{menus:{type:Array,default:function(){return[]}},showTopBar:{type:Boolean,default:!0}}});n("1fe5");const Tt=P()(yt,[["render",r],["__scopeId","data-v-148e5fa0"]]);var zt=Tt,Dt=Object(i["defineComponent"])({setup:function(e){return function(e,t){return Object(i["openBlock"])(),Object(i["createBlock"])(zt)}}});const wt=Dt;t["default"]=wt},caad:function(e,t,n){"use strict";var i=n("23e7"),a=n("4d64").includes,o=n("44d2");i({target:"Array",proto:!0},{includes:function(e){return a(this,e,arguments.length>1?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),M=r(1..toString),f=/[\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"+M(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)}})},"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["b"])().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["c"])({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["l"])({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);i